hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a96a8a9570ed3b24a4bfee94944da9262d1bde3 | 449 | py | Python | setup.py | nopipifish/bert4keras | d8fd065b9b74b8a82b381b7183f9934422e4caa9 | [
"Apache-2.0"
] | 1 | 2020-09-09T02:34:28.000Z | 2020-09-09T02:34:28.000Z | setup.py | nopipifish/bert4keras | d8fd065b9b74b8a82b381b7183f9934422e4caa9 | [
"Apache-2.0"
] | null | null | null | setup.py | nopipifish/bert4keras | d8fd065b9b74b8a82b381b7183f9934422e4caa9 | [
"Apache-2.0"
] | null | null | null | #! -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='bert4keras',
version='0.8.4',
description='an elegant bert4keras',
long_description='bert4keras: https://github.com/bojone/bert4keras',
license='Apache License 2.0',
url='https://github.com/bojone/bert4keras',
... | 26.411765 | 72 | 0.674833 | 56 | 449 | 5.321429 | 0.642857 | 0.080537 | 0.09396 | 0.134228 | 0.201342 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036842 | 0.153675 | 449 | 16 | 73 | 28.0625 | 0.747368 | 0.051225 | 0 | 0 | 0 | 0 | 0.411765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a98cfd9f20dfc0c1b38e64c743a29230c7a8c4f | 195 | py | Python | whoPay.py | susurigirl/susuri | cec96cc9abd5a25762e15db27c17e70a95ae874c | [
"MIT"
] | null | null | null | whoPay.py | susurigirl/susuri | cec96cc9abd5a25762e15db27c17e70a95ae874c | [
"MIT"
] | null | null | null | whoPay.py | susurigirl/susuri | cec96cc9abd5a25762e15db27c17e70a95ae874c | [
"MIT"
] | null | null | null | import random
names_string = input("내기를 할 친구들의 이름을 적습니다. 콤마(,)로 분리해서 적습니다.\n")
names = names_string.split(",")
print(names)
n = random.randint(0, len(names))
print(f"오늘 커피는 {names[n]}가 쏩니다!")
| 19.5 | 64 | 0.676923 | 35 | 195 | 3.714286 | 0.685714 | 0.169231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.138462 | 195 | 9 | 65 | 21.666667 | 0.767857 | 0 | 0 | 0 | 0 | 0 | 0.328205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a99a93e656914b21bfd27861c1447d786a91bee | 2,929 | py | Python | MicroPython_BUILD/components/micropython/esp32/modules_examples/mqtt_example.py | FlorianPoot/MicroPython_ESP32_psRAM_LoBo | fff2e193d064effe36a7d456050faa78fe6280a8 | [
"Apache-2.0"
] | 838 | 2017-07-14T10:08:13.000Z | 2022-03-22T22:09:14.000Z | MicroPython_BUILD/components/micropython/esp32/modules_examples/mqtt_example.py | FlorianPoot/MicroPython_ESP32_psRAM_LoBo | fff2e193d064effe36a7d456050faa78fe6280a8 | [
"Apache-2.0"
] | 395 | 2017-08-18T15:56:17.000Z | 2022-03-20T11:28:23.000Z | MicroPython_BUILD/components/micropython/esp32/modules_examples/mqtt_example.py | FlorianPoot/MicroPython_ESP32_psRAM_LoBo | fff2e193d064effe36a7d456050faa78fe6280a8 | [
"Apache-2.0"
] | 349 | 2017-09-02T18:00:23.000Z | 2022-03-31T23:26:22.000Z | import network
def conncb(task):
print("[{}] Connected".format(task))
def disconncb(task):
print("[{}] Disconnected".format(task))
def subscb(task):
print("[{}] Subscribed".format(task))
def pubcb(pub):
print("[{}] Published: {}".format(pub[0], pub[1]))
def datacb(msg):
print("[{}] Data arrived... | 33.284091 | 216 | 0.712188 | 347 | 2,929 | 5.965418 | 0.357349 | 0.02657 | 0.028986 | 0.031884 | 0.329469 | 0.315942 | 0.315942 | 0.236715 | 0.236715 | 0.236715 | 0 | 0.01428 | 0.115398 | 2,929 | 87 | 217 | 33.666667 | 0.784639 | 0.313418 | 0 | 0.162162 | 0 | 0 | 0.252552 | 0.11338 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0.054054 | 0.054054 | 0 | 0.216216 | 0.189189 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0a9a47e3f3a1f529a8e26eeea21042cb90395afd | 585 | py | Python | mlb/game/migrations/0009_game_game_type.py | atadams/mlb | 633b2eb53e5647c64a48c31ca68a50714483fb1d | [
"MIT"
] | null | null | null | mlb/game/migrations/0009_game_game_type.py | atadams/mlb | 633b2eb53e5647c64a48c31ca68a50714483fb1d | [
"MIT"
] | null | null | null | mlb/game/migrations/0009_game_game_type.py | atadams/mlb | 633b2eb53e5647c64a48c31ca68a50714483fb1d | [
"MIT"
] | null | null | null | # Generated by Django 2.2.8 on 2019-12-14 19:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('game', '0008_auto_20191214_1019'),
]
operations = [
migrations.AddField(
model_name='game',
name='game_type',
... | 30.789474 | 253 | 0.589744 | 67 | 585 | 5.059701 | 0.820896 | 0.047198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073009 | 0.22735 | 585 | 18 | 254 | 32.5 | 0.676991 | 0.076923 | 0 | 0 | 1 | 0 | 0.280669 | 0.042751 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a9a9f93de2f3ba2e7d9c2affc936358894ee511 | 36,217 | py | Python | backend/main/chapters/c06_lists.py | Vman45/futurecoder | 0f4abc0ab00ec473e6cf6f51d534ef2deb26a086 | [
"MIT"
] | null | null | null | backend/main/chapters/c06_lists.py | Vman45/futurecoder | 0f4abc0ab00ec473e6cf6f51d534ef2deb26a086 | [
"MIT"
] | 1 | 2022-02-28T01:35:27.000Z | 2022-02-28T01:35:27.000Z | backend/main/chapters/c06_lists.py | suchoudh/futurecoder | 0f4abc0ab00ec473e6cf6f51d534ef2deb26a086 | [
"MIT"
] | null | null | null | # flake8: NOQA E501
import ast
import random
from textwrap import dedent
from typing import List
from main.exercises import generate_list, generate_string
from main.text import ExerciseStep, MessageStep, Page, Step, VerbatimStep, search_ast
from main.utils import returns_stdout
class IntroducingLists(Page):
clas... | 34.038534 | 415 | 0.608333 | 5,225 | 36,217 | 4.174354 | 0.147177 | 0.009399 | 0.002613 | 0.011462 | 0.17074 | 0.130301 | 0.10834 | 0.088121 | 0.072716 | 0.057631 | 0 | 0.022418 | 0.294254 | 36,217 | 1,063 | 416 | 34.070555 | 0.830908 | 0.342408 | 0 | 0.356061 | 1 | 0.083333 | 0.554466 | 0.00836 | 0 | 0 | 0 | 0.002822 | 0 | 1 | 0.058712 | false | 0.001894 | 0.013258 | 0.005682 | 0.176136 | 0.104167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a9abefb5c7f43f4b3586ebf44ef35bd05d5118a | 1,223 | py | Python | redisSeed.py | bigmacd/miscPython | ec473c724be54241e369a1bdb0f739d2b0ed02ee | [
"BSD-3-Clause"
] | null | null | null | redisSeed.py | bigmacd/miscPython | ec473c724be54241e369a1bdb0f739d2b0ed02ee | [
"BSD-3-Clause"
] | null | null | null | redisSeed.py | bigmacd/miscPython | ec473c724be54241e369a1bdb0f739d2b0ed02ee | [
"BSD-3-Clause"
] | null | null | null | import time
import redis
import json
import argparse
""" Follows the StackExchange best practice for creating a work queue.
Basically push a task and publish a message that a task is there."""
def PushTask(client, queue, task, topic):
client.lpush(queue, task)
client.publish(topic, queue)
if __name_... | 34.942857 | 95 | 0.614881 | 158 | 1,223 | 4.664557 | 0.424051 | 0.061058 | 0.115332 | 0.048847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008959 | 0.269828 | 1,223 | 34 | 96 | 35.970588 | 0.816349 | 0 | 0 | 0 | 0 | 0 | 0.192771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.148148 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a9deb518dd12c6a3961ce613b76fcc3db2acd68 | 602 | py | Python | algorithm_training/abc87.py | hirotosuzuki/algorithm_training | 3134bad4ea2ea57a77e05be6f21ba776a558f520 | [
"MIT"
] | null | null | null | algorithm_training/abc87.py | hirotosuzuki/algorithm_training | 3134bad4ea2ea57a77e05be6f21ba776a558f520 | [
"MIT"
] | null | null | null | algorithm_training/abc87.py | hirotosuzuki/algorithm_training | 3134bad4ea2ea57a77e05be6f21ba776a558f520 | [
"MIT"
] | null | null | null | class TaskA:
def run(self):
V, A, B, C = map(int, input().split())
pass
class TaskB:
def run(self):
A = int(input())
B = int(input())
C = int(input())
X = int(input())
counter = 0
for a in range(A+1):
for b in range(B+1):
... | 21.5 | 54 | 0.413621 | 78 | 602 | 3.089744 | 0.410256 | 0.165975 | 0.124481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039394 | 0.451827 | 602 | 28 | 55 | 21.5 | 0.690909 | 0 | 0 | 0.208333 | 0 | 0 | 0.013267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.083333 | 0 | 0 | 0.25 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0a9e0852ce066b6a61ac5cfb9625f8879b66f594 | 536 | py | Python | serveur/serveurDroit.py | PL4typus/SysNetProject17 | 283c127a3363876360bc52b54eae939c6104c6b4 | [
"MIT"
] | null | null | null | serveur/serveurDroit.py | PL4typus/SysNetProject17 | 283c127a3363876360bc52b54eae939c6104c6b4 | [
"MIT"
] | null | null | null | serveur/serveurDroit.py | PL4typus/SysNetProject17 | 283c127a3363876360bc52b54eae939c6104c6b4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import socket,sys,os
TCP_IP = '127.0.0.1'
TCP_PORT = 6262
BUFFER_SIZE = 1024
s= socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.bind((TCP_IP,TCP_PORT))
s.listen(5)
conn, addr = s.accept()
print('Connection entrante :', addr)
data = conn.recv(BUFFER_SIZE)
if data == "m" :
os.popen("chmod... | 14.486486 | 51 | 0.641791 | 91 | 536 | 3.681319 | 0.538462 | 0.089552 | 0.071642 | 0.107463 | 0.226866 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042889 | 0.173507 | 536 | 36 | 52 | 14.888889 | 0.713318 | 0.029851 | 0 | 0.090909 | 0 | 0 | 0.144509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a9ea2c54f2546f23ad0eceb20e12ee8b19cd36b | 888 | py | Python | BE/common/helpers.py | kosior/ngLearn-1 | 4cc52153876aca409d56bd9cabace9283946bd32 | [
"MIT"
] | 1 | 2018-05-06T00:31:35.000Z | 2018-05-06T00:31:35.000Z | BE/common/helpers.py | kosior/ngLearn-1 | 4cc52153876aca409d56bd9cabace9283946bd32 | [
"MIT"
] | null | null | null | BE/common/helpers.py | kosior/ngLearn-1 | 4cc52153876aca409d56bd9cabace9283946bd32 | [
"MIT"
] | null | null | null | from rest_framework_jwt.utils import jwt_decode_handler
from users.models import User
from users.serializers import UserSerializer
def jwt_response_payload_handler(token, user=None, request=None):
return {
'token': token,
'user': UserSerializer(user, context={'request': request}).data
}
def... | 24 | 71 | 0.684685 | 118 | 888 | 4.90678 | 0.313559 | 0.055268 | 0.093264 | 0.06563 | 0.226252 | 0.082902 | 0 | 0 | 0 | 0 | 0 | 0.002899 | 0.222973 | 888 | 36 | 72 | 24.666667 | 0.836232 | 0 | 0 | 0.148148 | 0 | 0 | 0.046171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.111111 | 0.037037 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0aa3e139fa08c65698af3c065bdbf7e9c6759f7b | 1,946 | py | Python | NewsPaperD7(final)/NewsPaper/News/migrations/0001_initial.py | GregTMJ/django-files | dfd2c8da596522b77fb3dfc8089f0d287a94d53b | [
"MIT"
] | 1 | 2021-05-29T21:17:56.000Z | 2021-05-29T21:17:56.000Z | NewsPaperD6/NewsPaper/News/migrations/0001_initial.py | GregTMJ/django-files | dfd2c8da596522b77fb3dfc8089f0d287a94d53b | [
"MIT"
] | null | null | null | NewsPaperD6/NewsPaper/News/migrations/0001_initial.py | GregTMJ/django-files | dfd2c8da596522b77fb3dfc8089f0d287a94d53b | [
"MIT"
] | 1 | 2021-06-30T12:43:39.000Z | 2021-06-30T12:43:39.000Z | # Generated by Django 3.2 on 2021-04-15 18:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | 42.304348 | 153 | 0.611511 | 202 | 1,946 | 5.757426 | 0.376238 | 0.034394 | 0.048151 | 0.075666 | 0.437661 | 0.399828 | 0.399828 | 0.399828 | 0.285469 | 0.211522 | 0 | 0.017194 | 0.252826 | 1,946 | 45 | 154 | 43.244444 | 0.782669 | 0.022097 | 0 | 0.394737 | 1 | 0 | 0.079432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 0.184211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0aa43893204c6ba098361aa19c39257195d9d726 | 425 | py | Python | blitz_api/migrations/0020_auto_20190529_1200.py | MelanieFJNR/Blitz-API | 9a6daecd158fe07a6aeb80cbf586781eb688f0f9 | [
"MIT"
] | 3 | 2019-10-22T00:16:49.000Z | 2021-07-15T07:44:43.000Z | blitz_api/migrations/0020_auto_20190529_1200.py | MelanieFJNR/Blitz-API | 9a6daecd158fe07a6aeb80cbf586781eb688f0f9 | [
"MIT"
] | 1,183 | 2018-04-19T18:40:30.000Z | 2022-03-31T21:05:05.000Z | blitz_api/migrations/0020_auto_20190529_1200.py | MelanieFJNR/Blitz-API | 9a6daecd158fe07a6aeb80cbf586781eb688f0f9 | [
"MIT"
] | 12 | 2018-04-17T19:16:42.000Z | 2022-01-27T00:19:59.000Z | # Generated by Django 2.0.8 on 2019-05-29 16:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blitz_api', '0019_merge_20190524_1719'),
]
operations = [
migrations.AlterField(
model_name='exportmedia',
name='fil... | 22.368421 | 83 | 0.607059 | 48 | 425 | 5.229167 | 0.833333 | 0.063745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099042 | 0.263529 | 425 | 18 | 84 | 23.611111 | 0.702875 | 0.105882 | 0 | 0 | 1 | 0 | 0.171958 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0aaa92e8b56443a2b167621484f9881042d7391b | 983 | py | Python | ProgramFlow/functions/banner.py | kumarvgit/python3 | 318c5e7503fafc9c60082fa123e2930bd82a4ec9 | [
"MIT"
] | null | null | null | ProgramFlow/functions/banner.py | kumarvgit/python3 | 318c5e7503fafc9c60082fa123e2930bd82a4ec9 | [
"MIT"
] | null | null | null | ProgramFlow/functions/banner.py | kumarvgit/python3 | 318c5e7503fafc9c60082fa123e2930bd82a4ec9 | [
"MIT"
] | null | null | null | def banner_text(text):
screen_width = 80
if len(text) > screen_width - 4:
print("EEK!!")
print("THE TEXT IS TOO LONG TO FIT IN THE SPECIFIED WIDTH")
if text == "*":
print("*" * screen_width)
else:
centred_text = text.center(screen_width - 4)
output_string = "**{0... | 30.71875 | 67 | 0.66531 | 153 | 983 | 4.137255 | 0.496732 | 0.205371 | 0.047393 | 0.063191 | 0.129542 | 0.129542 | 0.129542 | 0.129542 | 0.129542 | 0.129542 | 0 | 0.017588 | 0.190234 | 983 | 31 | 68 | 31.709677 | 0.777638 | 0 | 0 | 0.076923 | 0 | 0 | 0.399797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0 | 0 | 0.038462 | 0.230769 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0aab9dbbc4006ac10614eb6e13f1101929dde5bc | 5,242 | py | Python | objectstoreSiteMover.py | nikmagini/pilot | 1c84fcf6f7e43b669d2357326cdbe06382ac829f | [
"Apache-2.0"
] | 13 | 2015-02-19T17:17:10.000Z | 2021-12-22T06:48:02.000Z | objectstoreSiteMover.py | nikmagini/pilot | 1c84fcf6f7e43b669d2357326cdbe06382ac829f | [
"Apache-2.0"
] | 85 | 2015-01-06T15:01:51.000Z | 2018-11-29T09:03:35.000Z | objectstoreSiteMover.py | nikmagini/pilot | 1c84fcf6f7e43b669d2357326cdbe06382ac829f | [
"Apache-2.0"
] | 22 | 2015-06-09T12:08:29.000Z | 2018-11-20T10:07:01.000Z | #!/usr/bin/env python
# Copyright European Organization for Nuclear Research (CERN)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Authors:
... | 44.803419 | 256 | 0.702404 | 618 | 5,242 | 5.857605 | 0.333333 | 0.012431 | 0.039779 | 0.053039 | 0.530663 | 0.513536 | 0.487569 | 0.487569 | 0.427072 | 0.427072 | 0 | 0.093664 | 0.169019 | 5,242 | 116 | 257 | 45.189655 | 0.737374 | 0.15166 | 0 | 0.2 | 0 | 0.05 | 0.226713 | 0.155919 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ab496b4beb92ca3fe52c60cfcbb81b2b17b5de3 | 22,976 | py | Python | serde/src/gen/thrift/gen-py/megastruct/ttypes.py | amCharlie/hive | e1870c190188a3b706849059969c8bec2220b6d2 | [
"Apache-2.0"
] | 2 | 2021-04-24T08:07:45.000Z | 2021-04-24T08:07:46.000Z | serde/src/gen/thrift/gen-py/megastruct/ttypes.py | amCharlie/hive | e1870c190188a3b706849059969c8bec2220b6d2 | [
"Apache-2.0"
] | 14 | 2020-12-26T22:01:38.000Z | 2022-02-09T22:41:46.000Z | serde/src/gen/thrift/gen-py/megastruct/ttypes.py | amCharlie/hive | e1870c190188a3b706849059969c8bec2220b6d2 | [
"Apache-2.0"
] | 7 | 2021-08-16T07:49:24.000Z | 2022-03-17T09:04:34.000Z | #
# Autogenerated by Thrift Compiler (0.13.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive impo... | 43.680608 | 430 | 0.550531 | 2,549 | 22,976 | 4.70969 | 0.105139 | 0.057976 | 0.022491 | 0.035985 | 0.596668 | 0.480966 | 0.371512 | 0.316868 | 0.247813 | 0.237984 | 0 | 0.045433 | 0.346666 | 22,976 | 525 | 431 | 43.76381 | 0.754314 | 0.025244 | 0 | 0.396963 | 1 | 0 | 0.034345 | 0.003956 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030369 | false | 0 | 0.010846 | 0.013015 | 0.08243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ab4aa21cfd4871d1766355bdd0923074d0f5c05 | 32,515 | py | Python | gpMgmt/bin/gpload_test/gpload2/TEST.py | Tylarb/gpdb | 15e1341cfbac7f70d2086a9a1d46149a82765b5e | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2020-07-08T13:20:27.000Z | 2020-07-08T13:20:27.000Z | gpMgmt/bin/gpload_test/gpload2/TEST.py | Tylarb/gpdb | 15e1341cfbac7f70d2086a9a1d46149a82765b5e | [
"PostgreSQL",
"Apache-2.0"
] | 6 | 2020-06-24T18:56:06.000Z | 2022-02-26T08:53:11.000Z | gpMgmt/bin/gpload_test/gpload2/TEST.py | Tylarb/gpdb | 15e1341cfbac7f70d2086a9a1d46149a82765b5e | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import unittest
import sys
import os
import string
import time
import socket
import fileinput
import platform
import re
try:
import subprocess32 as subprocess
except:
import subprocess
import pg
def get_port_from_conf():
file = os.environ.get('MASTER_DATA_DIRECTORY')+'/postgresql.con... | 42.172503 | 421 | 0.611041 | 4,386 | 32,515 | 4.347697 | 0.120383 | 0.02706 | 0.023127 | 0.034611 | 0.524411 | 0.480518 | 0.454612 | 0.416487 | 0.386019 | 0.359589 | 0 | 0.024738 | 0.249085 | 32,515 | 770 | 422 | 42.227273 | 0.756266 | 0.030909 | 0 | 0.257282 | 0 | 0.006472 | 0.291934 | 0.010893 | 0 | 0 | 0 | 0 | 0.001618 | 0 | null | null | 0.001618 | 0.019417 | null | null | 0.004854 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ab8196f812a9bd1c5cff6d84c43cd3a82467a55 | 618 | py | Python | VMI/VMItest.py | thomasbarillot/DAQ | 20126655f74194757d25380680af9429ff27784e | [
"MIT"
] | 1 | 2017-04-25T10:56:01.000Z | 2017-04-25T10:56:01.000Z | VMI/VMItest.py | thomasbarillot/DAQ | 20126655f74194757d25380680af9429ff27784e | [
"MIT"
] | null | null | null | VMI/VMItest.py | thomasbarillot/DAQ | 20126655f74194757d25380680af9429ff27784e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat May 7 11:38:18 2016
@author: thomasbarillot
VMI control
"""
from ctypes import cdll
#slib="VMIcrtl_ext.dll"
#hlib=cdll('VMIcrtl.dll')
import VMIcrtl_ext
test=VMIcrtl_ext.VMIcrtl()
#%%
print test.GetFilename()
#%%
test.setFilename('20161115_1841.dat')
print test.GetFilen... | 12.875 | 37 | 0.699029 | 90 | 618 | 4.755556 | 0.555556 | 0.070093 | 0.093458 | 0.11215 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066543 | 0.124595 | 618 | 48 | 38 | 12.875 | 0.724584 | 0.134304 | 0 | 0.111111 | 0 | 0 | 0.038375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.277778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ab878278314d67f6d0be9f6568f133ce9e1ee76 | 8,119 | py | Python | var/spack/repos/builtin/packages/openssl/package.py | vitodb/spack | b9ab1de4c5f7b21d9f9cb88b7251820a48e82d27 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/openssl/package.py | vitodb/spack | b9ab1de4c5f7b21d9f9cb88b7251820a48e82d27 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1 | 2021-01-11T09:16:43.000Z | 2021-01-12T20:07:23.000Z | var/spack/repos/builtin/packages/openssl/package.py | vitodb/spack | b9ab1de4c5f7b21d9f9cb88b7251820a48e82d27 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1 | 2021-01-06T18:58:26.000Z | 2021-01-06T18:58:26.000Z | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import llnl.util.tty as tty
from spack import *
import spack.architecture
import os
class Openssl(Package): # Uses F... | 51.713376 | 96 | 0.711787 | 832 | 8,119 | 6.897837 | 0.419471 | 0.051577 | 0.032933 | 0.008887 | 0.041122 | 0.041122 | 0.023349 | 0.023349 | 0.023349 | 0.023349 | 0 | 0.263539 | 0.18352 | 8,119 | 156 | 97 | 52.044872 | 0.602202 | 0.204828 | 0 | 0 | 0 | 0.010204 | 0.498985 | 0.369942 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.040816 | 0.010204 | 0.163265 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ab9be78769ca53a9456cd93a3fd3ab2a85a0c35 | 4,799 | py | Python | vispy/util/profiler.py | izaid/vispy | 402cf95bfef88d70c9c45bb27c532ed72944e14a | [
"BSD-3-Clause"
] | null | null | null | vispy/util/profiler.py | izaid/vispy | 402cf95bfef88d70c9c45bb27c532ed72944e14a | [
"BSD-3-Clause"
] | null | null | null | vispy/util/profiler.py | izaid/vispy | 402cf95bfef88d70c9c45bb27c532ed72944e14a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2014, Vispy Development Team.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
# Adapted from PyQtGraph
import sys
from . import ptime
from .. import config
class Profiler(object):
"""Simple profiler allowing directed, hierarchical measurement of ti... | 34.52518 | 79 | 0.583663 | 587 | 4,799 | 4.599659 | 0.337308 | 0.018148 | 0.016296 | 0.013333 | 0.028889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0092 | 0.320483 | 4,799 | 138 | 80 | 34.775362 | 0.818767 | 0.356324 | 0 | 0.202532 | 0 | 0 | 0.034343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139241 | false | 0.050633 | 0.037975 | 0 | 0.329114 | 0.025316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0abbc3e1d5afde9470d734d62bcb0511ac93cadd | 5,390 | py | Python | samples/samplenetconf/demos/vr_demo3.py | gaberger/pysdn | 67442e1c259d8ca8620ada95b95977e3852463c5 | [
"BSD-3-Clause"
] | 1 | 2017-08-22T14:17:10.000Z | 2017-08-22T14:17:10.000Z | samples/samplenetconf/demos/vr_demo3.py | gaberger/pysdn | 67442e1c259d8ca8620ada95b95977e3852463c5 | [
"BSD-3-Clause"
] | 1 | 2021-03-26T00:47:22.000Z | 2021-03-26T00:47:22.000Z | samples/samplenetconf/demos/vr_demo3.py | gaberger/pysdn | 67442e1c259d8ca8620ada95b95977e3852463c5 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2015, BROCADE COMMUNICATIONS SYSTEMS, INC
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright n... | 34.113924 | 78 | 0.62115 | 637 | 5,390 | 5.188383 | 0.343799 | 0.01997 | 0.026626 | 0.03177 | 0.288351 | 0.232073 | 0.232073 | 0.232073 | 0.232073 | 0.214523 | 0 | 0.007679 | 0.226902 | 5,390 | 157 | 79 | 34.33121 | 0.785457 | 0.281633 | 0 | 0.425743 | 0 | 0 | 0.254305 | 0.061457 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.059406 | null | null | 0.336634 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0abcc62b08fba05c95b291d22e16bd5e45062b59 | 204 | py | Python | Codility/python/tape_equilibrium.py | ajeet1308/code_problems | 5d99839b6319295c6d81dd86775c46a536e7a1ca | [
"MIT"
] | 61 | 2020-09-26T19:57:44.000Z | 2022-03-09T18:51:44.000Z | Codility/python/tape_equilibrium.py | ajeet1308/code_problems | 5d99839b6319295c6d81dd86775c46a536e7a1ca | [
"MIT"
] | 88 | 2020-09-19T20:00:27.000Z | 2021-10-31T09:41:57.000Z | Codility/python/tape_equilibrium.py | ajeet1308/code_problems | 5d99839b6319295c6d81dd86775c46a536e7a1ca | [
"MIT"
] | 218 | 2020-09-20T08:18:03.000Z | 2022-01-30T23:13:16.000Z | def solution(A):
total = sum(A)
m = float('inf')
left_sum = 0
for n in A[:-1]:
left_sum += n
v = abs(total - 2*left_sum)
if v < m:
m = v
return m
| 15.692308 | 35 | 0.426471 | 33 | 204 | 2.545455 | 0.575758 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.441176 | 204 | 12 | 36 | 17 | 0.710526 | 0 | 0 | 0 | 0 | 0 | 0.014778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0abf250849dcb075b82b1ca50e27cc3adefcc742 | 3,993 | py | Python | src/mgls_bootstrapping.py | rosich/mgls | 64c924f59adba2dddf44bb70a84868173f0b7120 | [
"MIT"
] | null | null | null | src/mgls_bootstrapping.py | rosich/mgls | 64c924f59adba2dddf44bb70a84868173f0b7120 | [
"MIT"
] | null | null | null | src/mgls_bootstrapping.py | rosich/mgls | 64c924f59adba2dddf44bb70a84868173f0b7120 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from math import sin, cos, tan, atan, pi, acos, sqrt, exp, log10
import sys, os
import copy
import random
import numpy as np
import multiprocessing as mp
import ConfigParser
sys.path.append('./bin')
import mGLS, mMGLS
sys.path.append('./src')
from EnvGlobals import Globals
import mgls_io
import mgls_m... | 31.690476 | 91 | 0.672176 | 543 | 3,993 | 4.767956 | 0.313076 | 0.118192 | 0.023175 | 0.016995 | 0.4017 | 0.344921 | 0.323677 | 0.323677 | 0.27192 | 0.27192 | 0 | 0.020395 | 0.214125 | 3,993 | 125 | 92 | 31.944 | 0.804653 | 0.088405 | 0 | 0.381579 | 0 | 0.013158 | 0.031302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.039474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ac18453ebf1417fb6591ada4674116fa981b20f | 402 | py | Python | biserici_inlemnite/app/migrations/0096_bisericapage_datare_an.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | biserici_inlemnite/app/migrations/0096_bisericapage_datare_an.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | biserici_inlemnite/app/migrations/0096_bisericapage_datare_an.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.13 on 2021-10-29 11:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0095_bisericapage_utitle'),
]
operations = [
migrations.AddField(
model_name='bisericapage',
name='datare_an... | 21.157895 | 61 | 0.606965 | 43 | 402 | 5.581395 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0.278607 | 402 | 18 | 62 | 22.333333 | 0.758621 | 0.114428 | 0 | 0 | 1 | 0 | 0.135593 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ac20eefa93e74fa6f679df0410321e3088f3827 | 664 | py | Python | services/core-api/app/api/mms_now_submissions/models/surface_bulk_sample_activity.py | bcgov/mds | 6c427a66a5edb4196222607291adef8fd6677038 | [
"Apache-2.0"
] | 25 | 2018-07-09T19:04:37.000Z | 2022-03-15T17:27:10.000Z | services/core-api/app/api/mms_now_submissions/models/surface_bulk_sample_activity.py | areyeslo/mds | e8c38e593e09b78e2a57009c0d003d6c4bfa32e6 | [
"Apache-2.0"
] | 983 | 2018-04-25T20:08:07.000Z | 2022-03-31T21:45:20.000Z | services/core-api/app/api/mms_now_submissions/models/surface_bulk_sample_activity.py | areyeslo/mds | e8c38e593e09b78e2a57009c0d003d6c4bfa32e6 | [
"Apache-2.0"
] | 58 | 2018-05-15T22:35:50.000Z | 2021-11-29T19:40:52.000Z | from app.api.utils.models_mixins import Base
from app.extensions import db
class MMSSurfaceBulkSampleActivity(Base):
__tablename__ = "surface_bulk_sample_activity"
__table_args__ = {"schema": "mms_now_submissions"}
id = db.Column(db.Integer, primary_key=True)
messageid = db.Column(db.Integer, db.Forei... | 36.888889 | 97 | 0.724398 | 85 | 664 | 5.388235 | 0.541176 | 0.122271 | 0.152838 | 0.148472 | 0.087336 | 0.087336 | 0 | 0 | 0 | 0 | 0 | 0.010714 | 0.156627 | 664 | 17 | 98 | 39.058824 | 0.807143 | 0 | 0 | 0 | 0 | 0 | 0.191265 | 0.14759 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0.071429 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0ac3e100821a287c22e2857e9d532f5d8e059c8b | 2,723 | py | Python | src/trusted/validator_arm/dgen_output.py | kapkic/native_client | 51c8bc8c249d55606232ae011bdfc8b4cab3d794 | [
"BSD-3-Clause"
] | 1 | 2021-12-23T00:36:43.000Z | 2021-12-23T00:36:43.000Z | src/trusted/validator_arm/dgen_output.py | kapkic/native_client | 51c8bc8c249d55606232ae011bdfc8b4cab3d794 | [
"BSD-3-Clause"
] | null | null | null | src/trusted/validator_arm/dgen_output.py | kapkic/native_client | 51c8bc8c249d55606232ae011bdfc8b4cab3d794 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python2
#
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
"""
Some common boilerplates and helper functions for source code generation
in files dgen_test_output.py and dgen_decode_out... | 31.298851 | 76 | 0.693353 | 386 | 2,723 | 4.772021 | 0.373057 | 0.043974 | 0.022801 | 0.023887 | 0.12595 | 0.12595 | 0.12595 | 0.12595 | 0.12595 | 0.12595 | 0 | 0.008756 | 0.203085 | 2,723 | 86 | 77 | 31.662791 | 0.840092 | 0.319868 | 0 | 0.06383 | 0 | 0 | 0.194604 | 0.013777 | 0 | 0 | 0 | 0.011628 | 0.042553 | 1 | 0.12766 | false | 0 | 0 | 0 | 0.255319 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ac42e49c824529d0aa71dbe888c2a691322545e | 2,527 | py | Python | ui_splash_screen.py | hirokiyaginuma/scriptspinner-software | 87185f237f76feeee33a2b74a4d05be088bde011 | [
"Unlicense"
] | null | null | null | ui_splash_screen.py | hirokiyaginuma/scriptspinner-software | 87185f237f76feeee33a2b74a4d05be088bde011 | [
"Unlicense"
] | null | null | null | ui_splash_screen.py | hirokiyaginuma/scriptspinner-software | 87185f237f76feeee33a2b74a4d05be088bde011 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'splash_screen.ui'
##
## Created by: Qt User Interface Compiler version 5.15.1
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
############... | 37.716418 | 140 | 0.646617 | 285 | 2,527 | 5.677193 | 0.435088 | 0.103832 | 0.038937 | 0.029666 | 0.02225 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042085 | 0.172537 | 2,527 | 66 | 141 | 38.287879 | 0.731707 | 0.091017 | 0 | 0.043478 | 1 | 0.021739 | 0.192743 | 0.024505 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.065217 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ac98e5cdb6676a542021f48c116aa5fa733e705 | 16,208 | py | Python | convoy/crypto.py | hebinhuang/batch-shipyard | f87d94850380bee273eb51c5c35381952a5722b8 | [
"MIT"
] | null | null | null | convoy/crypto.py | hebinhuang/batch-shipyard | f87d94850380bee273eb51c5c35381952a5722b8 | [
"MIT"
] | null | null | null | convoy/crypto.py | hebinhuang/batch-shipyard | f87d94850380bee273eb51c5c35381952a5722b8 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation
#
# All rights reserved.
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights... | 35.311547 | 79 | 0.653258 | 2,038 | 16,208 | 5.052012 | 0.185476 | 0.028166 | 0.022727 | 0.03312 | 0.41521 | 0.379856 | 0.32566 | 0.271465 | 0.221445 | 0.197358 | 0 | 0.006029 | 0.24272 | 16,208 | 458 | 80 | 35.388646 | 0.832817 | 0.296088 | 0 | 0.363636 | 0 | 0 | 0.120575 | 0.008142 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064394 | false | 0.125 | 0.060606 | 0.003788 | 0.200758 | 0.049242 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0acb3e8369864a2998734321cae251dc26fd05fa | 2,884 | py | Python | extractFeatures.py | PatrickJReed/Longboard | f6ca4a6e51c91296894aee2e02b86f83b38c080a | [
"MIT"
] | 1 | 2020-04-27T19:55:29.000Z | 2020-04-27T19:55:29.000Z | extractFeatures.py | PatrickJReed/Longboard2 | f6ca4a6e51c91296894aee2e02b86f83b38c080a | [
"MIT"
] | 1 | 2020-02-26T18:06:09.000Z | 2020-02-26T18:06:09.000Z | extractFeatures.py | PatrickJReed/Longboard | f6ca4a6e51c91296894aee2e02b86f83b38c080a | [
"MIT"
] | null | null | null | #!/home/ubuntu/miniconda2/bin/python
from __future__ import division
import sys
import glob, os, gc
import uuid
import os.path
import csv
import numpy as np
from time import time
from subprocess import (call, Popen, PIPE)
from itertools import product
import shutil
import re
import pickle
from boto3.session import Ses... | 31.692308 | 138 | 0.662968 | 452 | 2,884 | 4.09292 | 0.265487 | 0.048649 | 0.075676 | 0.077838 | 0.402703 | 0.38 | 0.342703 | 0.261081 | 0.215676 | 0.215676 | 0 | 0.02397 | 0.175451 | 2,884 | 91 | 139 | 31.692308 | 0.753995 | 0.016297 | 0 | 0.106667 | 0 | 0 | 0.093827 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.293333 | null | null | 0.053333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0acf1290742f590cb6015abc57d74458d907cabb | 1,164 | py | Python | soil/build/lib/soil/openstack/snapshot.py | JackDan9/soil | ae612a4634634aace834491fbdefbc69e6167674 | [
"MIT"
] | 1 | 2020-08-06T11:58:35.000Z | 2020-08-06T11:58:35.000Z | soil/build/lib/soil/openstack/snapshot.py | JackDan9/soil | ae612a4634634aace834491fbdefbc69e6167674 | [
"MIT"
] | 4 | 2019-12-13T11:27:28.000Z | 2022-02-27T11:58:38.000Z | soil/build/lib/soil/openstack/snapshot.py | JackDan9/soil | ae612a4634634aace834491fbdefbc69e6167674 | [
"MIT"
] | null | null | null | # Copyright 2020 Soil, Inc.
from soil.openstack.base import DataBase
from soil.openstack.base import SourceBase
class SnapshotData(DataBase):
"""A class for openstack snapshot data"""
def __init__(self, data):
self.data = data['snapshot']
class Snapshot(SourceBase):
"""A class for openstac... | 25.304348 | 63 | 0.636598 | 138 | 1,164 | 5.108696 | 0.311594 | 0.102128 | 0.106383 | 0.059574 | 0.215603 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0047 | 0.2689 | 1,164 | 45 | 64 | 25.866667 | 0.823737 | 0.079897 | 0 | 0.071429 | 0 | 0 | 0.029245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.035714 | 0.071429 | 0.035714 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0acf5c8efa495629dab15411d7c1138e6f73ca8f | 1,417 | py | Python | data_structures/queue/queue_on_pseudo_stack.py | hank-chou/python | a9f729fa263bce599d2774f3f6afb5a18bcc9862 | [
"MIT"
] | 13 | 2021-03-11T00:25:22.000Z | 2022-03-19T00:19:23.000Z | data_structures/queue/queue_on_pseudo_stack.py | hank-chou/python | a9f729fa263bce599d2774f3f6afb5a18bcc9862 | [
"MIT"
] | 162 | 2021-03-09T01:52:11.000Z | 2022-03-12T01:09:07.000Z | data_structures/queue/queue_on_pseudo_stack.py | hank-chou/python | a9f729fa263bce599d2774f3f6afb5a18bcc9862 | [
"MIT"
] | 18 | 2020-02-09T13:00:11.000Z | 2021-03-11T08:47:36.000Z | """Queue represented by a pseudo stack (represented by a list with pop and append)"""
class Queue:
def __init__(self):
self.stack = []
self.length = 0
def __str__(self):
printed = "<" + str(self.stack)[1:-1] + ">"
return printed
"""Enqueues {@code item}
@param item
... | 24.431034 | 85 | 0.562456 | 180 | 1,417 | 4.383333 | 0.288889 | 0.152091 | 0.08365 | 0.076046 | 0.186312 | 0.058302 | 0 | 0 | 0 | 0 | 0 | 0.014463 | 0.316867 | 1,417 | 57 | 86 | 24.859649 | 0.80062 | 0.055752 | 0 | 0.133333 | 0 | 0 | 0.002158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0 | 0.033333 | 0.4 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ad16ca68b13c3255bfd62c00d84e6b8aa940002 | 3,021 | py | Python | finex_history.py | yihming/gdax-data | 7e562f314e9ef12eb6be2df3b97190af632c4530 | [
"MIT"
] | null | null | null | finex_history.py | yihming/gdax-data | 7e562f314e9ef12eb6be2df3b97190af632c4530 | [
"MIT"
] | null | null | null | finex_history.py | yihming/gdax-data | 7e562f314e9ef12eb6be2df3b97190af632c4530 | [
"MIT"
] | null | null | null | import datetime
import calendar
import requests
import pandas as pd
import json
import os.path
import time
import MySQLdb as M
from gdax_history import timestamp_to_utcstr
def connect_to_db():
config = json.load(open('dbconn.json'))["mysql"]
db = M.connect(host = config["host"],
user = conf... | 30.21 | 207 | 0.581595 | 398 | 3,021 | 4.28392 | 0.386935 | 0.058065 | 0.008798 | 0.009384 | 0.119648 | 0.081525 | 0.03871 | 0 | 0 | 0 | 0 | 0.031496 | 0.285336 | 3,021 | 99 | 208 | 30.515152 | 0.758221 | 0.098974 | 0 | 0.060606 | 0 | 0.015152 | 0.117899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015152 | 0.136364 | null | null | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ad19b186920402498e9734534abe48d50e505b7 | 2,154 | py | Python | src/producers/connector.py | cvelas31/public_transportation_streaming | 903a1a147645e1b0783555db4bfc02098f7941ae | [
"MIT"
] | null | null | null | src/producers/connector.py | cvelas31/public_transportation_streaming | 903a1a147645e1b0783555db4bfc02098f7941ae | [
"MIT"
] | null | null | null | src/producers/connector.py | cvelas31/public_transportation_streaming | 903a1a147645e1b0783555db4bfc02098f7941ae | [
"MIT"
] | null | null | null | """Configures a Kafka Connector for Postgres Station data"""
import json
import logging
import requests
from settings import Settings
logger = logging.getLogger(__name__)
KAFKA_CONNECT_URL = f"{Settings.URLs.KAFKA_CONNECT_URL}/connectors"
CONNECTOR_NAME = "stations"
def configure_connector():
"""Starts and co... | 35.311475 | 98 | 0.679201 | 248 | 2,154 | 5.774194 | 0.532258 | 0.083799 | 0.041899 | 0.032123 | 0.065642 | 0.065642 | 0.065642 | 0 | 0 | 0 | 0 | 0.008656 | 0.19545 | 2,154 | 60 | 99 | 35.9 | 0.817657 | 0.243733 | 0 | 0 | 0 | 0 | 0.469603 | 0.220223 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.025641 | false | 0.025641 | 0.102564 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ad4a301cbaa49708e90318cda5d0db992bcc1f1 | 354 | py | Python | controllers/albums.py | jeonginlee/groove_scheduler | 84e61834e940e2ff138ffeeea61fd301f3c2a244 | [
"MIT"
] | null | null | null | controllers/albums.py | jeonginlee/groove_scheduler | 84e61834e940e2ff138ffeeea61fd301f3c2a244 | [
"MIT"
] | null | null | null | controllers/albums.py | jeonginlee/groove_scheduler | 84e61834e940e2ff138ffeeea61fd301f3c2a244 | [
"MIT"
] | null | null | null | from flask import *
albums = Blueprint('albums', __name__, template_folder='templates')
@albums.route('/albums/edit')
def albums_edit_route():
options = {
"edit": True
}
return render_template("albums.html", **options)
@albums.route('/albums')
def albums_route():
options = {
"edit": False
}
return render_... | 19.666667 | 67 | 0.700565 | 42 | 354 | 5.666667 | 0.428571 | 0.138655 | 0.142857 | 0.218487 | 0.310924 | 0.310924 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129944 | 354 | 18 | 68 | 19.666667 | 0.772727 | 0 | 0 | 0.285714 | 0 | 0 | 0.180282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.357143 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ad4ca562029351bba499bd795e4d3faca8ffc96 | 3,113 | py | Python | Incident-Response/Tools/dfirtrack/dfirtrack_main/views/division_views.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 1 | 2021-07-24T17:22:50.000Z | 2021-07-24T17:22:50.000Z | Incident-Response/Tools/dfirtrack/dfirtrack_main/views/division_views.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-28T03:40:31.000Z | 2022-02-28T03:40:52.000Z | Incident-Response/Tools/dfirtrack/dfirtrack_main/views/division_views.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-25T08:34:51.000Z | 2022-03-16T17:29:44.000Z | from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import redirect, render
from django.urls import reverse
from django.views.generic import DetailView, ListView
from django.views.generic.edit import CreateView, UpdateView
from dfirtrack_main.forms import ... | 40.428571 | 85 | 0.697719 | 356 | 3,113 | 5.924157 | 0.213483 | 0.045519 | 0.054054 | 0.034139 | 0.598388 | 0.562352 | 0.505453 | 0.475107 | 0.449028 | 0.449028 | 0 | 0 | 0.196595 | 3,113 | 76 | 86 | 40.960526 | 0.843263 | 0 | 0 | 0.454545 | 0 | 0 | 0.137488 | 0.088982 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0ad6db55250893c680ef209759e33e069cabdd9a | 4,292 | py | Python | modules/stackoverflow/models.py | tjsavage/polymer-dashboard | 19bc467f1206613f8eec646b6f2bc43cc319ef75 | [
"CNRI-Python",
"Linux-OpenIB"
] | 1 | 2017-04-26T18:51:43.000Z | 2017-04-26T18:51:43.000Z | modules/stackoverflow/models.py | tjsavage/polymer-dashboard | 19bc467f1206613f8eec646b6f2bc43cc319ef75 | [
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | modules/stackoverflow/models.py | tjsavage/polymer-dashboard | 19bc467f1206613f8eec646b6f2bc43cc319ef75 | [
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | import fix_path
import json
import datetime
from google.appengine.ext import ndb
# Taken from http://stackoverflow.com/questions/455580/json-datetime-between-python-and-javascript
dthandler = lambda obj: (
obj.isoformat()
if isinstance(obj, datetime.datetime)
or isinstance(obj, datetime.date)
else Non... | 40.490566 | 98 | 0.682199 | 467 | 4,292 | 6.012848 | 0.188437 | 0.209402 | 0.080128 | 0.064815 | 0.389601 | 0.259972 | 0.12963 | 0.032051 | 0 | 0 | 0 | 0.001807 | 0.226468 | 4,292 | 106 | 99 | 40.490566 | 0.843976 | 0.025862 | 0 | 0.16129 | 0 | 0 | 0.071839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043011 | false | 0 | 0.043011 | 0 | 0.344086 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0add5b092c6c665d2b618a20a05d4cd299d00402 | 1,948 | py | Python | src/handler.py | MrIgumnov96/ETL-CloudDeployment | 666b85a9350460fba49f82ec90f5cddc0bdd0235 | [
"Unlicense"
] | null | null | null | src/handler.py | MrIgumnov96/ETL-CloudDeployment | 666b85a9350460fba49f82ec90f5cddc0bdd0235 | [
"Unlicense"
] | null | null | null | src/handler.py | MrIgumnov96/ETL-CloudDeployment | 666b85a9350460fba49f82ec90f5cddc0bdd0235 | [
"Unlicense"
] | null | null | null | import boto3
import src.app as app
import csv
import psycopg2 as ps
import os
from dotenv import load_dotenv
load_dotenv()
dbname = os.environ["db"]
host = os.environ["host"]
port = os.environ["port"]
user = os.environ["user"]
password = os.environ["pass"]
connection = ps.connect(dbname=dbname,
... | 31.419355 | 185 | 0.587269 | 259 | 1,948 | 4.324324 | 0.42471 | 0.064286 | 0.046429 | 0.026786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017446 | 0.264374 | 1,948 | 62 | 186 | 31.419355 | 0.764131 | 0.325975 | 0 | 0 | 0 | 0.032258 | 0.186191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0.064516 | 0.193548 | 0 | 0.258065 | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0ae19706ac78f27bbbf84e3668bc38423a4a2fcd | 739 | py | Python | feaas/runners/__init__.py | tsuru/varnishapi | d63a8c8c5f9c837855509fc5af59d8213c1c91d6 | [
"BSD-3-Clause"
] | 3 | 2015-05-04T03:20:09.000Z | 2016-02-19T10:35:35.000Z | feaas/runners/__init__.py | tsuru/varnishapi | d63a8c8c5f9c837855509fc5af59d8213c1c91d6 | [
"BSD-3-Clause"
] | 3 | 2015-01-02T13:18:56.000Z | 2021-02-08T20:17:14.000Z | feaas/runners/__init__.py | tsuru/varnishapi | d63a8c8c5f9c837855509fc5af59d8213c1c91d6 | [
"BSD-3-Clause"
] | 5 | 2015-01-02T13:11:45.000Z | 2016-08-26T06:14:35.000Z | # Copyright 2014 varnishapi authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import time
from feaas import storage
class Base(object):
def __init__(self, manager, interval, *locks):
self.manager = manager
self.st... | 24.633333 | 57 | 0.649526 | 96 | 739 | 4.90625 | 0.5625 | 0.070064 | 0.055202 | 0.080679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007421 | 0.270636 | 739 | 29 | 58 | 25.482759 | 0.866419 | 0.207037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ae880533e14de2255d5554b8a0bb6b7cbc5e1bb | 1,089 | py | Python | Assignment 1 n 2 Day 8.py | paju3125/LetsUpgrade-Python-B7 | c5767361f60f1ec405ab235af85035e2bb9a71e3 | [
"Apache-2.0"
] | null | null | null | Assignment 1 n 2 Day 8.py | paju3125/LetsUpgrade-Python-B7 | c5767361f60f1ec405ab235af85035e2bb9a71e3 | [
"Apache-2.0"
] | null | null | null | Assignment 1 n 2 Day 8.py | paju3125/LetsUpgrade-Python-B7 | c5767361f60f1ec405ab235af85035e2bb9a71e3 | [
"Apache-2.0"
] | null | null | null | # Assignment 1 Day 8
# write a decorator function for taking input for you
# any kind of function you want to build
def getInput(calculate_arg_fuc):
def wrap_function():
print("Enter two numbers ")
a=int(input("Enter first number = "))
b=int(input("Enter second number = "))
... | 22.22449 | 85 | 0.651974 | 146 | 1,089 | 4.821918 | 0.493151 | 0.090909 | 0.073864 | 0.080966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024067 | 0.236915 | 1,089 | 48 | 86 | 22.6875 | 0.823105 | 0.264463 | 0 | 0.137931 | 0 | 0 | 0.226542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0 | 0 | 0.241379 | 0.206897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0aea8c17200ee38f7b989cd3fe4ee1c7be72a125 | 4,286 | py | Python | modox/chan_modifier.py | lukpazera/modox | 4ee5a6033e405f9f7f3a7c80a1cb3c558c90fb01 | [
"MIT"
] | 11 | 2021-02-19T17:11:04.000Z | 2021-12-03T17:14:58.000Z | modox/chan_modifier.py | lukpazera/modox | 4ee5a6033e405f9f7f3a7c80a1cb3c558c90fb01 | [
"MIT"
] | null | null | null | modox/chan_modifier.py | lukpazera/modox | 4ee5a6033e405f9f7f3a7c80a1cb3c558c90fb01 | [
"MIT"
] | null | null | null |
import lx
import modo
import select
import item
from run import run
class ChannelModifierUtils(object):
@classmethod
def attachModifierToItem(cls, modifierModoItem, hostModoItem):
"""
Allows for attaching modifier to locator type item.
Attached item will show up under the locator ... | 28.573333 | 110 | 0.614326 | 459 | 4,286 | 5.690632 | 0.335512 | 0.033691 | 0.051685 | 0.048239 | 0.116769 | 0.06317 | 0.06317 | 0.06317 | 0.06317 | 0.06317 | 0 | 0.004274 | 0.290247 | 4,286 | 150 | 111 | 28.573333 | 0.854372 | 0.365376 | 0 | 0.148148 | 0 | 0 | 0.100493 | 0.030956 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.092593 | 0.055556 | 0.537037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0af1a3c68967c05606abe6a22eb2bbc2a17f6f6f | 1,164 | py | Python | tests/serverless/checks/aws/test_AdminPolicyDocument.py | peaudecastor/checkov | a4804b61c1b1390b7abd44ab53285fcbc3e7e80b | [
"Apache-2.0"
] | null | null | null | tests/serverless/checks/aws/test_AdminPolicyDocument.py | peaudecastor/checkov | a4804b61c1b1390b7abd44ab53285fcbc3e7e80b | [
"Apache-2.0"
] | null | null | null | tests/serverless/checks/aws/test_AdminPolicyDocument.py | peaudecastor/checkov | a4804b61c1b1390b7abd44ab53285fcbc3e7e80b | [
"Apache-2.0"
] | null | null | null | import os
import unittest
from checkov.serverless.checks.function.aws.AdminPolicyDocument import check
from checkov.serverless.runner import Runner
from checkov.runner_filter import RunnerFilter
class TestAdminPolicyDocument(unittest.TestCase):
def test_summary(self):
runner = Runner()
current_di... | 36.375 | 102 | 0.668385 | 137 | 1,164 | 5.445255 | 0.40146 | 0.080429 | 0.117962 | 0.064343 | 0.116622 | 0.116622 | 0.116622 | 0.116622 | 0 | 0 | 0 | 0.00441 | 0.22079 | 1,164 | 31 | 103 | 37.548387 | 0.818082 | 0.006014 | 0 | 0 | 0 | 0 | 0.232035 | 0.082251 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.045455 | false | 0.090909 | 0.227273 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0af3c3569db12057875193547cf2329c8c03ae92 | 581 | py | Python | api/views/stores/att_handler.py | cderwin/maps | 0146260935a749679396022b6d2b1d90b6df2539 | [
"MIT"
] | null | null | null | api/views/stores/att_handler.py | cderwin/maps | 0146260935a749679396022b6d2b1d90b6df2539 | [
"MIT"
] | 7 | 2016-02-09T07:18:48.000Z | 2016-02-09T07:25:40.000Z | api/views/stores/att_handler.py | cderwin/maps | 0146260935a749679396022b6d2b1d90b6df2539 | [
"MIT"
] | null | null | null | from .default_handler import StoresHandler
class ATTStoresHandler(StoresHandler):
def handle_request(self, **kwargs):
kwargs.update({'provider': 'att'})
return super(ATTStoresHandler, self).handle_request(**kwargs)
def get_url(self, **kwargs):
lat = float(kwargs.get('lat'))
lo... | 36.3125 | 120 | 0.636833 | 76 | 581 | 4.736842 | 0.381579 | 0.066667 | 0.077778 | 0.077778 | 0.122222 | 0.122222 | 0.122222 | 0.122222 | 0 | 0 | 0 | 0.017058 | 0.192771 | 581 | 15 | 121 | 38.733333 | 0.750533 | 0 | 0 | 0 | 0 | 0 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0af3eac5180ad01027c97600a407eb3106203f56 | 349 | py | Python | pythonProject/MUNDO 2/Desafio 54.py | lucasjlgc/Aulas-de-Python- | 6aaed1c660487a680e9c449210600ccdfa326612 | [
"MIT"
] | null | null | null | pythonProject/MUNDO 2/Desafio 54.py | lucasjlgc/Aulas-de-Python- | 6aaed1c660487a680e9c449210600ccdfa326612 | [
"MIT"
] | 1 | 2021-06-25T15:29:11.000Z | 2021-06-25T15:29:11.000Z | pythonProject/MUNDO 2/Desafio 54.py | lucasjlgc/Aulas-de-Python- | 6aaed1c660487a680e9c449210600ccdfa326612 | [
"MIT"
] | null | null | null | #Leia o ano de nascimento de 7 pessoas e mostre quantas ja atingiram a maioridade e quantas ainda não
for c in range(1,8):
p=int(input('Qual o ano de seu nascimento? '))
a=2021-p
if a>= 18:
print('A pessoa numero {} já é maior de idade'.format(c))
else:
print('A pessoa numero {} não é... | 29.083333 | 101 | 0.638968 | 63 | 349 | 3.539683 | 0.619048 | 0.035874 | 0.053812 | 0.161435 | 0.179372 | 0.179372 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.252149 | 349 | 11 | 102 | 31.727273 | 0.819923 | 0.286533 | 0 | 0 | 0 | 0 | 0.435484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0af766c917854c90cf7eae087d9105162f3eb248 | 8,667 | py | Python | py/testdir_multi_jvm/test_many_fp_formats_libsvm_2.py | vkuznet/h2o | e08f7014f228cbaecfb21f57379970e6a3ac0756 | [
"Apache-2.0"
] | null | null | null | py/testdir_multi_jvm/test_many_fp_formats_libsvm_2.py | vkuznet/h2o | e08f7014f228cbaecfb21f57379970e6a3ac0756 | [
"Apache-2.0"
] | null | null | null | py/testdir_multi_jvm/test_many_fp_formats_libsvm_2.py | vkuznet/h2o | e08f7014f228cbaecfb21f57379970e6a3ac0756 | [
"Apache-2.0"
] | null | null | null | import unittest, random, sys, time
sys.path.extend(['.','..','py'])
import h2o, h2o_cmd, h2o_hosts, h2o_browse as h2b, h2o_import as h2i, h2o_exec as h2e, h2o_glm
import h2o_util
zeroList = [
'Result0 = 0',
]
# the first column should use this
exprList = [
'Result<n> = sum(<keyX>[<col1>])',
]
DO_S... | 45.376963 | 151 | 0.572055 | 989 | 8,667 | 4.905966 | 0.336704 | 0.016076 | 0.016488 | 0.02535 | 0.128813 | 0.125103 | 0.112531 | 0.02803 | 0.02803 | 0 | 0 | 0.025137 | 0.325257 | 8,667 | 190 | 152 | 45.615789 | 0.804549 | 0.219222 | 0 | 0.113821 | 0 | 0 | 0.097485 | 0.00387 | 0 | 0 | 0 | 0 | 0.04878 | 0 | null | null | 0 | 0.03252 | null | null | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0af8af43646ac075b324487dffc3942d97354220 | 1,145 | py | Python | examples/rpc_server_side.py | calendar42/SleekXMPP--XEP-0080- | d7bd5fd29f26a5d7de872a49ff63a353b8043e49 | [
"BSD-3-Clause"
] | 1 | 2016-10-24T05:30:25.000Z | 2016-10-24T05:30:25.000Z | examples/rpc_server_side.py | vijayp/SleekXMPP | b2e7f57334d27f140f079213c2016615b7168742 | [
"BSD-3-Clause"
] | null | null | null | examples/rpc_server_side.py | vijayp/SleekXMPP | b2e7f57334d27f140f079213c2016615b7168742 | [
"BSD-3-Clause"
] | null | null | null | """
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2011 Dann Martens
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
from sleekxmpp.plugins.xep_0009.remote import Endpoint, remote, Remote, \
ANY_ALL
import threading
class Thermostat(Endpoint):
def FQN(s... | 22.019231 | 73 | 0.627074 | 125 | 1,145 | 5.512 | 0.472 | 0.108853 | 0.113208 | 0.058055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012063 | 0.275983 | 1,145 | 52 | 74 | 22.019231 | 0.819059 | 0.125764 | 0 | 0.071429 | 0 | 0 | 0.067485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.071429 | 0.071429 | 0.428571 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0afb2dc8c2daf11d9a82ca819aeffdafacc6c971 | 2,515 | py | Python | graph.py | VaniSHadow/tpGenerator | 2a2e0a65df48c812d9fa2e2b1474573c6a6ab6c0 | [
"Unlicense"
] | null | null | null | graph.py | VaniSHadow/tpGenerator | 2a2e0a65df48c812d9fa2e2b1474573c6a6ab6c0 | [
"Unlicense"
] | null | null | null | graph.py | VaniSHadow/tpGenerator | 2a2e0a65df48c812d9fa2e2b1474573c6a6ab6c0 | [
"Unlicense"
] | null | null | null | import random
import numpy
import copy
class Graph:
"""n表示图中点的个数,m表示图中边的个数"""
def __init__(self, n, m, edge_weight=1, directed=True, connected='weak', loop=False, weighted=False, trim=True):
"""
n 图中点的个数
m 图中边的个数
edge_weight 边的权值上限
directed 有向性
connected 连通性
loop 有环性
weighted 带权性
trim ... | 27.043011 | 113 | 0.622664 | 407 | 2,515 | 3.815725 | 0.184275 | 0.035415 | 0.061816 | 0.066967 | 0.388281 | 0.365744 | 0.324533 | 0.324533 | 0.282035 | 0.282035 | 0 | 0.024549 | 0.206362 | 2,515 | 92 | 114 | 27.336957 | 0.753507 | 0.006759 | 0 | 0.236111 | 0 | 0 | 0.005314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0afbde7fb6ef3a1d965ab24316c2720252ada994 | 970 | py | Python | csv2googlesheets/to_google_sheets.py | AlexSkrn/csv2googlesheets | 71656dcc6827b1c58ffe80bc55aa6f1ee816f216 | [
"MIT"
] | null | null | null | csv2googlesheets/to_google_sheets.py | AlexSkrn/csv2googlesheets | 71656dcc6827b1c58ffe80bc55aa6f1ee816f216 | [
"MIT"
] | null | null | null | csv2googlesheets/to_google_sheets.py | AlexSkrn/csv2googlesheets | 71656dcc6827b1c58ffe80bc55aa6f1ee816f216 | [
"MIT"
] | null | null | null | """This module provides a console interface to convert CSV to Google Sheets."""
from csv2googlesheets.gapi_authorization import auth_with_google
from csv2googlesheets.gapi_create_sheet import create_sheet
from csv2googlesheets.gapi_write_to_sheet import write_to_sheet
from csv2googlesheets.parse_file import build_spr... | 32.333333 | 79 | 0.786598 | 131 | 970 | 5.427481 | 0.351145 | 0.068917 | 0.101266 | 0.081575 | 0.098453 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007308 | 0.153608 | 970 | 29 | 80 | 33.448276 | 0.858709 | 0.14433 | 0 | 0 | 0 | 0 | 0.009768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0afd7a5b152406bcaea034f10b6d1b88302e3d68 | 434 | py | Python | web/snowflake.py | jphacks/C_2118 | a63279e92362e09d1856e3d44edb4793d370fd7a | [
"MIT"
] | null | null | null | web/snowflake.py | jphacks/C_2118 | a63279e92362e09d1856e3d44edb4793d370fd7a | [
"MIT"
] | 5 | 2021-10-30T00:55:45.000Z | 2021-10-30T04:23:36.000Z | web/snowflake.py | jphacks/C_2118 | a63279e92362e09d1856e3d44edb4793d370fd7a | [
"MIT"
] | null | null | null | import time
class Snowflake:
def __init__(self, init_serial_no=0):
self.machine_id = 0
self.epoch = 0
self.serial_no = init_serial_no
def generate(self):
unique_id = (
((int(time.time() * 1000) - self.epoch) & 0x1FFFFFFFFFF) << 22
| (self.machine_id & 0... | 24.111111 | 74 | 0.546083 | 53 | 434 | 4.188679 | 0.45283 | 0.18018 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059649 | 0.343318 | 434 | 17 | 75 | 25.529412 | 0.719298 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0.052995 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e40169279b6d0abaccc4f8f3610827c98bbcceff | 6,197 | py | Python | Overview/11 - funktsioonid.py | priidupaomets/python_kursus | 731ab386ca40c321288659db21db23912ca7f8dd | [
"MIT"
] | 1 | 2021-02-19T15:21:28.000Z | 2021-02-19T15:21:28.000Z | Overview/11 - funktsioonid.py | priidupaomets/python_kursus | 731ab386ca40c321288659db21db23912ca7f8dd | [
"MIT"
] | null | null | null | Overview/11 - funktsioonid.py | priidupaomets/python_kursus | 731ab386ca40c321288659db21db23912ca7f8dd | [
"MIT"
] | 1 | 2018-03-24T11:01:46.000Z | 2018-03-24T11:01:46.000Z | """
funktsioonid.py
Funktsioonide ja protseduuride kasutamine
"""
#
# Protseduur
#
def minu_funktsioon():
print("See on protseduur")
# Kutsume funktsiooni välja
minu_funktsioon()
#
# Funktsioon
#
def liida(num1, num2):
return num1 + num2
sum = liida(3, 5)
print(sum)
# Näide vaikeväärtuste kasutamisest
# ... | 24.01938 | 116 | 0.606745 | 916 | 6,197 | 4.098253 | 0.209607 | 0.021843 | 0.022376 | 0.015983 | 0.51252 | 0.428609 | 0.393713 | 0.333777 | 0.313266 | 0.283165 | 0 | 0.072966 | 0.250282 | 6,197 | 257 | 117 | 24.11284 | 0.735041 | 0.272229 | 0 | 0.563636 | 0 | 0 | 0.022732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127273 | false | 0 | 0 | 0.030303 | 0.224242 | 0.406061 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
e40722bed82cf8f0cac95ef9146f043dd3dc25ca | 5,318 | py | Python | 05-Environments/hw02/hw02/hw02.py | ericchen12377/CS61A_LearningDoc | 31f23962b0e2834795bf61eeb0f4884cc5da1809 | [
"MIT"
] | 2 | 2020-04-24T18:36:53.000Z | 2020-04-25T00:15:55.000Z | 05-Environments/hw02/hw02/hw02.py | ericchen12377/CS61A_LearningDoc | 31f23962b0e2834795bf61eeb0f4884cc5da1809 | [
"MIT"
] | null | null | null | 05-Environments/hw02/hw02/hw02.py | ericchen12377/CS61A_LearningDoc | 31f23962b0e2834795bf61eeb0f4884cc5da1809 | [
"MIT"
] | null | null | null | """ Homework 2: Higher Order Functions"""
HW_SOURCE_FILE = 'hw02.py'
from operator import add, mul, sub
square = lambda x: x * x
identity = lambda x: x
triple = lambda x: 3 * x
increment = lambda x: x + 1
######################
# Required Questions #
######################
def product(n, f):
"""Return the pr... | 25.690821 | 92 | 0.548326 | 788 | 5,318 | 3.624365 | 0.178934 | 0.031863 | 0.046218 | 0.037815 | 0.382353 | 0.30042 | 0.248599 | 0.212185 | 0.212185 | 0.184874 | 0 | 0.057647 | 0.275856 | 5,318 | 206 | 93 | 25.815534 | 0.683978 | 0.587251 | 0 | 0.288136 | 0 | 0 | 0.150635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.271186 | false | 0 | 0.016949 | 0.050847 | 0.559322 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e409ad0c94dc67812d4ce4eb1f3a9b3b256b6a43 | 638 | py | Python | acceptance/test/TestStartStopFeature.py | ismacaulay/qtcwatchdog | 72f3588eef1019bac8788fa58c52722dfa7c4d28 | [
"MIT"
] | null | null | null | acceptance/test/TestStartStopFeature.py | ismacaulay/qtcwatchdog | 72f3588eef1019bac8788fa58c52722dfa7c4d28 | [
"MIT"
] | 12 | 2015-10-22T15:38:28.000Z | 2016-03-22T18:53:57.000Z | acceptance/test/TestStartStopFeature.py | ismacaulay/qtcwatchdog | 72f3588eef1019bac8788fa58c52722dfa7c4d28 | [
"MIT"
] | null | null | null | from acceptance.harness.acceptance_test import WatchdogAcceptanceTest
class TestStartStopFeature(WatchdogAcceptanceTest):
def test_willStartObserverWhenWatchdogStarted(self):
self.create_and_start_watchdog()
self.assertTrue(self.fs_observer.running)
def test_willStopObserverWhenWatchdogStop... | 26.583333 | 69 | 0.761755 | 61 | 638 | 7.704918 | 0.393443 | 0.044681 | 0.089362 | 0.108511 | 0.476596 | 0.404255 | 0.285106 | 0.212766 | 0.212766 | 0.212766 | 0 | 0 | 0.166144 | 638 | 23 | 70 | 27.73913 | 0.883459 | 0 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e409e1ff47556f0c395cedaf6538d4e9082df50c | 1,243 | py | Python | neural_spline_flows/nde/transforms/transform_test.py | VincentStimper/nsf | 6bde505639ebcb67bffa227ea0021e3de235e03d | [
"MIT"
] | null | null | null | neural_spline_flows/nde/transforms/transform_test.py | VincentStimper/nsf | 6bde505639ebcb67bffa227ea0021e3de235e03d | [
"MIT"
] | null | null | null | neural_spline_flows/nde/transforms/transform_test.py | VincentStimper/nsf | 6bde505639ebcb67bffa227ea0021e3de235e03d | [
"MIT"
] | null | null | null | import torch
import torchtestcase
from neural_spline_flows.nde.transforms import base
class TransformTest(torchtestcase.TorchTestCase):
"""Base test for all transforms."""
def assert_tensor_is_good(self, tensor, shape=None):
self.assertIsInstance(tensor, torch.Tensor)
self.assertFalse(torch.... | 37.666667 | 78 | 0.693484 | 149 | 1,243 | 5.630872 | 0.416107 | 0.042908 | 0.05006 | 0.064362 | 0.052443 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001992 | 0.192277 | 1,243 | 32 | 79 | 38.84375 | 0.833665 | 0.023331 | 0 | 0 | 0 | 0 | 0.026534 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.136364 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e40c283a7830ae526fea47bfe3f1719fdb809be3 | 358 | py | Python | directory-traversal/validate-file-extension-null-byte-bypass.py | brandonaltermatt/penetration-testing-scripts | 433b5d000a5573e60b9d8e49932cedce74937ebc | [
"MIT"
] | null | null | null | directory-traversal/validate-file-extension-null-byte-bypass.py | brandonaltermatt/penetration-testing-scripts | 433b5d000a5573e60b9d8e49932cedce74937ebc | [
"MIT"
] | null | null | null | directory-traversal/validate-file-extension-null-byte-bypass.py | brandonaltermatt/penetration-testing-scripts | 433b5d000a5573e60b9d8e49932cedce74937ebc | [
"MIT"
] | null | null | null | """
https://portswigger.net/web-security/file-path-traversal/lab-validate-file-extension-null-byte-bypass
"""
import sys
import requests
site = sys.argv[1]
if 'https://' in site:
site = site.rstrip('/').lstrip('https://')
url = f'''https://{site}/image?filename=../../../etc/passwd%00.png'''
s = requests.Session... | 21.058824 | 101 | 0.664804 | 52 | 358 | 4.576923 | 0.730769 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009288 | 0.097765 | 358 | 17 | 102 | 21.058824 | 0.727554 | 0.282123 | 0 | 0 | 0 | 0 | 0.292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.222222 | 0 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7c0efca532f7042e0db58c5e7fb4f25f0274261b | 3,437 | py | Python | Assignment Day 2 .py | ShubhamKahlon57/Letsupgrade-python-Batch-7 | 7989c2d2f17e58dd4ee8f278c37d2c1d18e5e3af | [
"Apache-2.0"
] | null | null | null | Assignment Day 2 .py | ShubhamKahlon57/Letsupgrade-python-Batch-7 | 7989c2d2f17e58dd4ee8f278c37d2c1d18e5e3af | [
"Apache-2.0"
] | null | null | null | Assignment Day 2 .py | ShubhamKahlon57/Letsupgrade-python-Batch-7 | 7989c2d2f17e58dd4ee8f278c37d2c1d18e5e3af | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
#List and function
# In[6]:
# empty list
my_list = []
# list of integers
my_list = [1, 2, 3]
# list with mixed data types
my_list = [1, "Hello", 3.4]
# In[7]:
# nested list
my_list = ["mouse", [8, 4, 6], ['a']]
# In[11]:
# List indexing
my_list = ['p', '... | 12.059649 | 66 | 0.607507 | 573 | 3,437 | 3.541012 | 0.289703 | 0.069 | 0.0414 | 0.016264 | 0.22622 | 0.207491 | 0.175456 | 0.089699 | 0.089699 | 0.080828 | 0 | 0.05208 | 0.195519 | 3,437 | 284 | 67 | 12.102113 | 0.681736 | 0.441082 | 0 | 0.347826 | 0 | 0 | 0.134021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.405797 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
7c0f552f843493e2753dc5c4baf8ccf2206f5f32 | 195 | py | Python | hackerrank/pickingNumbers.py | irvandindaprakoso/online-test-py | a7a6cd98ba3e0b74558ecb7e431eb2729077a38a | [
"W3C"
] | null | null | null | hackerrank/pickingNumbers.py | irvandindaprakoso/online-test-py | a7a6cd98ba3e0b74558ecb7e431eb2729077a38a | [
"W3C"
] | null | null | null | hackerrank/pickingNumbers.py | irvandindaprakoso/online-test-py | a7a6cd98ba3e0b74558ecb7e431eb2729077a38a | [
"W3C"
] | null | null | null | def pickingNumbers(a):
# Write your code here
max = 0
for i in a:
c = a.count(i)
d = a.count(i-1)
e = c+d
if e>max:
max = e
return max
| 17.727273 | 26 | 0.435897 | 32 | 195 | 2.65625 | 0.59375 | 0.141176 | 0.164706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.461538 | 195 | 10 | 27 | 19.5 | 0.790476 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c120c632a3695672ca8dce5ff251b3540195c6e | 68,026 | py | Python | sandroad.py | lancelee82/bluelake | 3ac3bba191ec5e331dcf66e0a20725445585c316 | [
"MIT"
] | null | null | null | sandroad.py | lancelee82/bluelake | 3ac3bba191ec5e331dcf66e0a20725445585c316 | [
"MIT"
] | null | null | null | sandroad.py | lancelee82/bluelake | 3ac3bba191ec5e331dcf66e0a20725445585c316 | [
"MIT"
] | null | null | null | """
Flatpath, go forward forever.
http://codeincomplete.com/posts/javascript-racer/
http://www.extentofthejam.com/pseudo/
http://pixel.garoux.net/screen/game_list
Usage:
* UP/DOWN/LEFT/RIGHT
* SPACE : hide/show road map
* TAB : replay this road
* RETURN : go to a new road
TODO:
* hill road
* more road sprites
* soun... | 28.824576 | 100 | 0.467263 | 9,147 | 68,026 | 3.285886 | 0.075107 | 0.032606 | 0.023789 | 0.014639 | 0.617647 | 0.553234 | 0.499667 | 0.445269 | 0.421613 | 0.401051 | 0 | 0.064184 | 0.397186 | 68,026 | 2,359 | 101 | 28.836795 | 0.668764 | 0.099668 | 0 | 0.460497 | 0 | 0 | 0.046124 | 0.008643 | 0 | 0 | 0 | 0.00212 | 0 | 0 | null | null | 0.003762 | 0.005267 | null | null | 0.007524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c154bd7941e6664ea91468d29e01f725ad32c14 | 2,914 | py | Python | app/auth/views.py | ifaraag/app | d952f0dc58fd703074c19ed3235c1520119baf5f | [
"MIT"
] | null | null | null | app/auth/views.py | ifaraag/app | d952f0dc58fd703074c19ed3235c1520119baf5f | [
"MIT"
] | null | null | null | app/auth/views.py | ifaraag/app | d952f0dc58fd703074c19ed3235c1520119baf5f | [
"MIT"
] | null | null | null | from flask import Blueprint, render_template, redirect, url_for, request, flash
from flask.ext.login import login_required, login_user, logout_user
from werkzeug import check_password_hash, generate_password_hash
from app import db, login_manager, pubnub, app, _callback
from .models import User
from .forms import Logi... | 37.358974 | 133 | 0.630062 | 344 | 2,914 | 5.162791 | 0.296512 | 0.061937 | 0.027027 | 0.031532 | 0.175113 | 0.078266 | 0.078266 | 0.078266 | 0.078266 | 0.052928 | 0 | 0.000451 | 0.239876 | 2,914 | 77 | 134 | 37.844156 | 0.801354 | 0.019218 | 0 | 0.181818 | 1 | 0 | 0.156162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106061 | false | 0.045455 | 0.090909 | 0.015152 | 0.318182 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c18032075b4197ee9055f4f541529df445b2854 | 998 | py | Python | tests/cli/conftest.py | Aahbree/reference-data-repository | f318c0532aaf941ec4f00c8375c9dea45c56f186 | [
"MIT"
] | null | null | null | tests/cli/conftest.py | Aahbree/reference-data-repository | f318c0532aaf941ec4f00c8375c9dea45c56f186 | [
"MIT"
] | 5 | 2021-01-27T22:17:19.000Z | 2021-12-14T17:13:58.000Z | tests/cli/conftest.py | Aahbree/reference-data-repository | f318c0532aaf941ec4f00c8375c9dea45c56f186 | [
"MIT"
] | 5 | 2021-12-08T02:33:44.000Z | 2021-12-13T03:21:51.000Z | # This file is part of the Reference Data Repository (refdata).
#
# Copyright (C) 2021 New York University.
#
# refdata is free software; you can redistribute it and/or modify it under the
# terms of the MIT License; see LICENSE file for more details.
"""Fixtures for testing the command-line interface."""
import os
i... | 30.242424 | 78 | 0.733467 | 148 | 998 | 4.885135 | 0.547297 | 0.055325 | 0.082988 | 0.099585 | 0.135546 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004831 | 0.170341 | 998 | 32 | 79 | 31.1875 | 0.868357 | 0.450902 | 0 | 0 | 0 | 0 | 0.035849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7c1a4912119b5eeaa02dc5d6942de0df8f969733 | 1,783 | py | Python | python/jittor/utils/publish.py | Jittor/Jittor | bc945bae94bded917214b0afe12be6bf5b919dbe | [
"Apache-2.0"
] | 4 | 2020-01-12T13:16:16.000Z | 2020-01-12T15:43:54.000Z | python/jittor/utils/publish.py | Jittor/Jittor | bc945bae94bded917214b0afe12be6bf5b919dbe | [
"Apache-2.0"
] | null | null | null | python/jittor/utils/publish.py | Jittor/Jittor | bc945bae94bded917214b0afe12be6bf5b919dbe | [
"Apache-2.0"
] | 1 | 2020-01-12T13:17:17.000Z | 2020-01-12T13:17:17.000Z | #!/usr/bin/python3
# ***************************************************************
# Copyright (c) 2022 Jittor. All Rights Reserved.
# Maintainers:
# Dun Liang <randonlang@gmail.com>.
#
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code packag... | 34.288462 | 144 | 0.647224 | 258 | 1,783 | 4.403101 | 0.403101 | 0.105634 | 0.098592 | 0.077465 | 0.498239 | 0.387324 | 0.285211 | 0.123239 | 0 | 0 | 0 | 0.029373 | 0.140774 | 1,783 | 52 | 145 | 34.288462 | 0.712141 | 0.326416 | 0 | 0.137931 | 0 | 0.137931 | 0.643098 | 0.296296 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.103448 | false | 0 | 0.034483 | 0 | 0.137931 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c1d6fd7dc1976bcfc2727fbe10b4b7b22073b1a | 705 | py | Python | 2017/third.py | vla3089/adventofcode | 0aefb5509e9f816f89eeab703393be7222632e02 | [
"Apache-2.0"
] | null | null | null | 2017/third.py | vla3089/adventofcode | 0aefb5509e9f816f89eeab703393be7222632e02 | [
"Apache-2.0"
] | null | null | null | 2017/third.py | vla3089/adventofcode | 0aefb5509e9f816f89eeab703393be7222632e02 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
input = 368078
size = 1
s_size = size * size # squared size
while (s_size < input):
size += 2
s_size = size * size
bottom_right = s_size
bottom_left = s_size - size + 1
top_left = s_size - 2 * size + 2
top_right = s_size - 3 * size + 3
input_x = -1
input_y = -1
# bottom horizontal lin... | 19.054054 | 47 | 0.631206 | 125 | 705 | 3.28 | 0.224 | 0.085366 | 0.065854 | 0.063415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040462 | 0.26383 | 705 | 36 | 48 | 19.583333 | 0.749518 | 0.079433 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c1dfdf1304b0b11fe75fef3682da8277a3d5207 | 2,981 | py | Python | racer/methods/genetic_programming/parameterized.py | max-eth/racer | 952991aedec5d8229bb1126c9c066613f5c30146 | [
"MIT"
] | 1 | 2022-02-26T00:10:03.000Z | 2022-02-26T00:10:03.000Z | racer/methods/genetic_programming/parameterized.py | max-eth/racer | 952991aedec5d8229bb1126c9c066613f5c30146 | [
"MIT"
] | null | null | null | racer/methods/genetic_programming/parameterized.py | max-eth/racer | 952991aedec5d8229bb1126c9c066613f5c30146 | [
"MIT"
] | null | null | null | import copy
import numpy as np
from racer.utils import load_pickle
from racer.methods.genetic_programming.program_tree import ProgramTree
class ParameterizedTree(ProgramTree):
# This makes the assumption that all children of the underlying tree are in a field .children and that the underlying tree has the field .... | 32.402174 | 146 | 0.637035 | 356 | 2,981 | 5.103933 | 0.255618 | 0.13869 | 0.089158 | 0.039626 | 0.226197 | 0.171712 | 0.171712 | 0.134287 | 0.134287 | 0.134287 | 0 | 0.002325 | 0.27843 | 2,981 | 91 | 147 | 32.758242 | 0.842399 | 0.051325 | 0 | 0.2 | 0 | 0 | 0.027965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.057143 | 0.1 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c28fc0563fc8f73fd257c1d3e24a953c2e9ec7c | 1,780 | py | Python | src/compas/datastructures/mesh/bbox.py | arpastrana/compas | ed677a162c14dbe562c82d72f370279259faf7da | [
"MIT"
] | 2 | 2021-03-17T18:14:22.000Z | 2021-09-19T13:50:02.000Z | src/compas/datastructures/mesh/bbox.py | arpastrana/compas | ed677a162c14dbe562c82d72f370279259faf7da | [
"MIT"
] | 9 | 2019-09-11T08:53:19.000Z | 2019-09-16T08:35:39.000Z | src/compas/datastructures/mesh/bbox.py | Licini/compas | 34f65adb3d0abc3f403312ffba62aa76f3376292 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from compas.geometry import bounding_box
from compas.geometry import bounding_box_xy
__all__ = [
'mesh_bounding_box',
'mesh_bounding_box_xy',
]
def mesh_bounding_box(mesh):
"""Compute the (axis... | 23.733333 | 148 | 0.561236 | 247 | 1,780 | 3.842105 | 0.206478 | 0.096944 | 0.110643 | 0.101159 | 0.514226 | 0.478398 | 0.404636 | 0.404636 | 0.404636 | 0.322445 | 0 | 0.061297 | 0.211798 | 1,780 | 74 | 149 | 24.054054 | 0.61511 | 0.538202 | 0 | 0 | 0 | 0 | 0.085592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.380952 | 0 | 0.571429 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7c2c549754955b919f978ac6624f7aa2371b569a | 19,500 | py | Python | PS12/api2.py | AbhinavSingh-21f1002369/AFKZenCoders | 344475e7d5d60c09637b0bec28c5dab1befe2b65 | [
"MIT"
] | null | null | null | PS12/api2.py | AbhinavSingh-21f1002369/AFKZenCoders | 344475e7d5d60c09637b0bec28c5dab1befe2b65 | [
"MIT"
] | null | null | null | PS12/api2.py | AbhinavSingh-21f1002369/AFKZenCoders | 344475e7d5d60c09637b0bec28c5dab1befe2b65 | [
"MIT"
] | 2 | 2021-10-11T09:28:00.000Z | 2021-10-14T10:30:11.000Z | from flask import Flask, render_template, request, jsonify,send_file, redirect,session, url_for
from werkzeug import secure_filename
import os
import utilities, queries
import logger
from flask_cors import CORS, cross_origin
from datetime import timedelta
app = Flask(__name__)
CORS(app)
cors = CORS(app, resources={r"/*... | 38.16047 | 182 | 0.655385 | 2,475 | 19,500 | 5.080808 | 0.117172 | 0.044612 | 0.012883 | 0.02505 | 0.673797 | 0.629026 | 0.557694 | 0.508072 | 0.493201 | 0.448668 | 0 | 0.014299 | 0.182308 | 19,500 | 511 | 183 | 38.16047 | 0.774287 | 0.051795 | 0 | 0.48227 | 0 | 0.01182 | 0.345304 | 0.025683 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009456 | 0.016548 | null | null | 0.016548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c3522929deb4bb2524b97c1af2b5f08df9a050e | 5,585 | py | Python | backend/0_publish_audio.py | bmj-hackathon/ethberlinzwei-babelfish_3_0 | e986ad1b9fa896f20d7cdd296d130d804f55ecfa | [
"Apache-2.0"
] | 1 | 2019-08-28T12:12:09.000Z | 2019-08-28T12:12:09.000Z | backend/0_publish_audio.py | bmj-hackathon/ethberlinzwei-babelfish_3_0 | e986ad1b9fa896f20d7cdd296d130d804f55ecfa | [
"Apache-2.0"
] | 8 | 2020-09-07T01:00:44.000Z | 2022-03-02T05:19:32.000Z | backend/0_publish_audio.py | bmj-hackathon/ethberlinzwei-babelfish_3_0 | e986ad1b9fa896f20d7cdd296d130d804f55ecfa | [
"Apache-2.0"
] | 3 | 2019-08-24T20:36:08.000Z | 2021-02-18T20:28:11.000Z | import sys
import logging
# loggers_dict = logging.Logger.manager.loggerDict
#
# logger = logging.getLogger()
# logger.handlers = []
#
# # Set level
# logger.setLevel(logging.DEBUG)
#
# # FORMAT = "%(asctime)s - %(levelno)s - %(module)-15s - %(funcName)-15s - %(message)s"
# # FORMAT = "%(asctime)s %(levelno)s: %(modul... | 36.986755 | 128 | 0.708684 | 721 | 5,585 | 5.363384 | 0.306519 | 0.06827 | 0.039566 | 0.024825 | 0.138092 | 0.088699 | 0.049651 | 0.049651 | 0.03129 | 0 | 0 | 0.012566 | 0.116562 | 5,585 | 150 | 129 | 37.233333 | 0.77118 | 0.253715 | 0 | 0.067568 | 0 | 0 | 0.315175 | 0.062014 | 0 | 0 | 0.010214 | 0.006667 | 0.054054 | 1 | 0.013514 | false | 0.054054 | 0.175676 | 0 | 0.202703 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7c359f84b8ac8bafab4c67c76d69bd091361babb | 3,613 | py | Python | nexpose/nexpose_vulnerabilityexception.py | Patralos/nexpose-client-python | bec81da29883b1b004046e29a9e7f7a6686467c1 | [
"BSD-3-Clause"
] | 29 | 2017-06-27T04:44:03.000Z | 2021-11-29T15:04:00.000Z | nexpose/nexpose_vulnerabilityexception.py | Patralos/nexpose-client-python | bec81da29883b1b004046e29a9e7f7a6686467c1 | [
"BSD-3-Clause"
] | 40 | 2017-06-21T18:00:49.000Z | 2018-06-06T21:13:34.000Z | nexpose/nexpose_vulnerabilityexception.py | Patralos/nexpose-client-python | bec81da29883b1b004046e29a9e7f7a6686467c1 | [
"BSD-3-Clause"
] | 23 | 2017-07-18T16:40:57.000Z | 2021-01-26T09:58:53.000Z | # Future Imports for py2/3 backwards compat.
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from builtins import object
from .xml_utils import get_attribute, get_content_of
from future import standard_library
standard_library.install_aliases()
def fix_null... | 42.011628 | 164 | 0.715749 | 408 | 3,613 | 6.056373 | 0.245098 | 0.050992 | 0.084986 | 0.107649 | 0.231081 | 0.10603 | 0.062323 | 0 | 0 | 0 | 0 | 0.002406 | 0.194575 | 3,613 | 85 | 165 | 42.505882 | 0.846735 | 0.045115 | 0 | 0.114286 | 0 | 0 | 0.118211 | 0.015394 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.071429 | false | 0 | 0.057143 | 0 | 0.442857 | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c3d1d7e925f2c1752e9865895938aea4dee29d9 | 6,830 | py | Python | guardian/decorators.py | peopledoc/django-guardian | 459827c2329975113cbf0d11f4fd476b5689a055 | [
"BSD-2-Clause"
] | null | null | null | guardian/decorators.py | peopledoc/django-guardian | 459827c2329975113cbf0d11f4fd476b5689a055 | [
"BSD-2-Clause"
] | null | null | null | guardian/decorators.py | peopledoc/django-guardian | 459827c2329975113cbf0d11f4fd476b5689a055 | [
"BSD-2-Clause"
] | null | null | null | from django.conf import settings
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.core.exceptions import PermissionDenied
from django.http import HttpResponseForbidden, HttpResponseRedirect
from django.utils.functional import wraps
from django.utils.http import urlquote
from django.db.models import Model... | 47.762238 | 80 | 0.630893 | 796 | 6,830 | 5.258794 | 0.273869 | 0.026278 | 0.028428 | 0.016722 | 0.11419 | 0.053989 | 0.043 | 0.043 | 0 | 0 | 0 | 0.014131 | 0.295461 | 6,830 | 142 | 81 | 48.098592 | 0.855777 | 0.048609 | 0 | 0.027027 | 0 | 0 | 0.116797 | 0.005387 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027027 | 0.175676 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c46086ba91c653227726b101b253bd36be2a7f4 | 5,963 | py | Python | boolean2/tokenizer.py | AbrahmAB/booleannet | a07124047d18a5b7265e050a234969ac58970c7a | [
"MIT"
] | null | null | null | boolean2/tokenizer.py | AbrahmAB/booleannet | a07124047d18a5b7265e050a234969ac58970c7a | [
"MIT"
] | null | null | null | boolean2/tokenizer.py | AbrahmAB/booleannet | a07124047d18a5b7265e050a234969ac58970c7a | [
"MIT"
] | null | null | null | """
Main tokenizer.
"""
from itertools import *
import sys, random
import util
import ply.lex as lex
class Lexer:
"""
Lexer for boolean rules
"""
literals = '=*,'
tokens = (
'LABEL', 'ID','STATE', 'ASSIGN', 'EQUAL',
'AND', 'OR', 'NOT',
'NUMBER', 'LPAREN','RPAREN', 'COMMA'... | 25.374468 | 171 | 0.528928 | 777 | 5,963 | 3.990991 | 0.234234 | 0.017414 | 0.022573 | 0.021928 | 0.159626 | 0.133505 | 0.098355 | 0.060626 | 0.039987 | 0.039987 | 0 | 0.019417 | 0.309073 | 5,963 | 235 | 172 | 25.374468 | 0.733252 | 0.015093 | 0 | 0.097744 | 0 | 0 | 0.139391 | 0.007136 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037594 | null | null | 0.007519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c478777d84107b3217342ab649b11b3244e8389 | 7,606 | py | Python | pyec/distribution/bayes/structure/basic.py | hypernicon/pyec | 7072835c97d476fc45ffc3b34f5c3ec607988e6d | [
"MIT"
] | 2 | 2015-03-16T21:18:27.000Z | 2017-10-09T19:59:24.000Z | pyec/distribution/bayes/structure/basic.py | hypernicon/pyec | 7072835c97d476fc45ffc3b34f5c3ec607988e6d | [
"MIT"
] | null | null | null | pyec/distribution/bayes/structure/basic.py | hypernicon/pyec | 7072835c97d476fc45ffc3b34f5c3ec607988e6d | [
"MIT"
] | null | null | null | """
Copyright (C) 2012 Alan J Lockett
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute,... | 35.050691 | 460 | 0.620431 | 858 | 7,606 | 5.48951 | 0.258741 | 0.053716 | 0.017197 | 0.015287 | 0.310403 | 0.278981 | 0.206794 | 0.140127 | 0.128238 | 0.109554 | 0 | 0.006008 | 0.299763 | 7,606 | 217 | 461 | 35.050691 | 0.878333 | 0.007757 | 0 | 0.511905 | 0 | 0 | 0.018501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.029762 | 0.017857 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c486bb219145330aa050e526b0e111823623d51 | 620 | py | Python | projects/code_combat/8_Cloudrip_Mountain/471-Distracting_Dungeon/distracting_dungeon.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | projects/code_combat/8_Cloudrip_Mountain/471-Distracting_Dungeon/distracting_dungeon.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | projects/code_combat/8_Cloudrip_Mountain/471-Distracting_Dungeon/distracting_dungeon.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | def moveBothTo(point):
while hero.distanceTo(point) > 1:
hero.move(point)
hero.command(peasant, "move", point)
peasant = hero.findNearest(hero.findFriends())
while True:
hero.command(peasant, "buildXY", "decoy", peasant.pos.x + 2, peasant.pos.y)
var nextPoint = {"x": hero.pos.x,... | 31 | 80 | 0.606452 | 76 | 620 | 4.947368 | 0.355263 | 0.074468 | 0.095745 | 0.090426 | 0.095745 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014989 | 0.246774 | 620 | 19 | 81 | 32.631579 | 0.79015 | 0 | 0 | 0.125 | 0 | 0 | 0.033278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c48ecfa52411dc6356f3fa1289a95505f086e55 | 2,599 | py | Python | issues/migrations/0001_initial.py | QizaiMing/ergo-project-manager | 2b02b2ab6d9e48bfccbbca8c05180b07177dcb77 | [
"MIT"
] | null | null | null | issues/migrations/0001_initial.py | QizaiMing/ergo-project-manager | 2b02b2ab6d9e48bfccbbca8c05180b07177dcb77 | [
"MIT"
] | 3 | 2020-11-01T22:08:38.000Z | 2022-03-12T00:49:00.000Z | issues/migrations/0001_initial.py | QizaiMing/ergo-project-manager | 2b02b2ab6d9e48bfccbbca8c05180b07177dcb77 | [
"MIT"
] | 2 | 2021-01-03T07:17:16.000Z | 2021-05-29T17:27:11.000Z | # Generated by Django 2.2.12 on 2020-05-01 03:34
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | 50.960784 | 157 | 0.614852 | 278 | 2,599 | 5.586331 | 0.320144 | 0.036059 | 0.054089 | 0.084997 | 0.529298 | 0.486156 | 0.438506 | 0.386993 | 0.386993 | 0.386993 | 0 | 0.015516 | 0.231243 | 2,599 | 50 | 158 | 51.98 | 0.761762 | 0.017699 | 0 | 0.395349 | 1 | 0 | 0.124657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.069767 | 0 | 0.162791 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c4a4e05ac30862172f332ac22daa59c8c1ecce1 | 2,764 | py | Python | com/binghe/hacker/tools/script/ak/check_virus.py | ffffff0x/python-hacker | a2dc7f9031669a86bd2c87892c0a8c1e54bb2a79 | [
"Apache-2.0"
] | 52 | 2019-02-11T13:02:20.000Z | 2022-02-06T07:43:55.000Z | com/binghe/hacker/tools/script/ak/check_virus.py | sunshinelyz/python-hacker | a2dc7f9031669a86bd2c87892c0a8c1e54bb2a79 | [
"Apache-2.0"
] | null | null | null | com/binghe/hacker/tools/script/ak/check_virus.py | sunshinelyz/python-hacker | a2dc7f9031669a86bd2c87892c0a8c1e54bb2a79 | [
"Apache-2.0"
] | 15 | 2019-02-25T03:04:50.000Z | 2021-10-19T02:13:52.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- coding: gbk -*-
# Date: 2019/2/22
# Created by 冰河
# Description 将生成的bindshell.exe提交到vscan.novirusthanks.org检测
# 用法 python check_virus.py -f bindshell.exe
# 博客 https://blog.csdn.net/l1028386804
import re
import httplib
import time
import os
import optparse... | 29.72043 | 67 | 0.599132 | 291 | 2,764 | 5.652921 | 0.4811 | 0.007295 | 0.045593 | 0.035258 | 0.167781 | 0.167781 | 0.167781 | 0.167781 | 0.080243 | 0.080243 | 0 | 0.020457 | 0.239508 | 2,764 | 93 | 68 | 29.72043 | 0.762131 | 0.087192 | 0 | 0.185714 | 0 | 0 | 0.242846 | 0.079889 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085714 | null | null | 0.114286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c4bb1688cf1e8399ddcf1585b39fc36418f8801 | 827 | py | Python | modules/gitbox/files/asfgit/hooks/sync.py | Humbedooh/infrastructure-puppet | a85f797d847b80e877cd5b7c66513970f6f80703 | [
"Apache-2.0"
] | 1 | 2019-06-09T10:25:04.000Z | 2019-06-09T10:25:04.000Z | modules/gitbox/files/asfgit/hooks/sync.py | Humbedooh/infrastructure-puppet | a85f797d847b80e877cd5b7c66513970f6f80703 | [
"Apache-2.0"
] | 1 | 2020-05-08T07:07:43.000Z | 2020-05-08T07:07:43.000Z | modules/gitbox/files/asfgit/hooks/sync.py | Humbedooh/infrastructure-puppet | a85f797d847b80e877cd5b7c66513970f6f80703 | [
"Apache-2.0"
] | 1 | 2019-12-31T07:28:19.000Z | 2019-12-31T07:28:19.000Z | #!/usr/local/bin/python
import json
import socket
import sys
import asfgit.cfg as cfg
import asfgit.git as git
import asfgit.log as log
import asfgit.util as util
import subprocess, os, time
def main():
ghurl = "git@github:apache/%s.git" % cfg.repo_name
os.chdir("/x1/repos/asf/%s.git" % cfg.repo_name)
tr... | 30.62963 | 98 | 0.613059 | 120 | 827 | 4.175 | 0.475 | 0.095808 | 0.027944 | 0.043912 | 0.283433 | 0.223553 | 0.223553 | 0 | 0 | 0 | 0 | 0.001565 | 0.227328 | 827 | 26 | 99 | 31.807692 | 0.782473 | 0.026602 | 0 | 0 | 0 | 0 | 0.16812 | 0.029888 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.380952 | 0 | 0.428571 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7c4c2493de449c01316f5bf624115a0a13bde60f | 9,598 | py | Python | rosimport/_rosdef_loader.py | asmodehn/rosimport | c63e4769650b1cf19f23fbaa65a356ffae20a536 | [
"MIT"
] | 5 | 2017-11-11T18:26:28.000Z | 2019-06-12T08:47:58.000Z | rosimport/_rosdef_loader.py | asmodehn/rosimport | c63e4769650b1cf19f23fbaa65a356ffae20a536 | [
"MIT"
] | 8 | 2017-06-30T08:28:46.000Z | 2017-07-18T04:50:18.000Z | rosimport/_rosdef_loader.py | pyros-dev/rosimport | c63e4769650b1cf19f23fbaa65a356ffae20a536 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
import contextlib
import importlib
import site
import tempfile
import shutil
from rosimport import genrosmsg_py, genrossrv_py
"""
A module to setup custom importer for .msg and .srv files
Upon import, it will first find the .msg file, then generate t... | 44.435185 | 137 | 0.620025 | 1,200 | 9,598 | 4.800833 | 0.276667 | 0.016664 | 0.013886 | 0.009721 | 0.255511 | 0.222184 | 0.20309 | 0.190939 | 0.157264 | 0.124631 | 0 | 0.003737 | 0.303084 | 9,598 | 215 | 138 | 44.64186 | 0.857527 | 0.443634 | 0 | 0.076923 | 0 | 0 | 0.036036 | 0.0043 | 0 | 0 | 0 | 0.009302 | 0 | 1 | 0.120879 | false | 0 | 0.263736 | 0.043956 | 0.527473 | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7c5785c50891073f1d8d050a467303e1d02503f4 | 5,967 | py | Python | fair/forcing/ozone_tr.py | znicholls/FAIR | 599c44ed140b069968ba7d1ca99de40218e42545 | [
"Apache-2.0"
] | 1 | 2020-11-14T16:09:39.000Z | 2020-11-14T16:09:39.000Z | fair/forcing/ozone_tr.py | znicholls/FAIR | 599c44ed140b069968ba7d1ca99de40218e42545 | [
"Apache-2.0"
] | 1 | 2020-11-02T17:59:02.000Z | 2020-11-02T17:59:02.000Z | fair/forcing/ozone_tr.py | znicholls/FAIR | 599c44ed140b069968ba7d1ca99de40218e42545 | [
"Apache-2.0"
] | 2 | 2020-11-02T16:42:05.000Z | 2020-12-15T16:36:24.000Z | from __future__ import division
import numpy as np
from ..constants import molwt
def regress(emissions,
beta=np.array([2.8249e-4, 1.0695e-4, -9.3604e-4, 99.7831e-4])):
"""Calculates tropospheric ozone forcing from precursor emissions.
Inputs: (nt x 40) emissions array
Keywords:
beta... | 36.384146 | 78 | 0.586224 | 911 | 5,967 | 3.731065 | 0.231614 | 0.015299 | 0.014122 | 0.014416 | 0.702265 | 0.702265 | 0.69138 | 0.644307 | 0.600177 | 0.558694 | 0 | 0.113499 | 0.306016 | 5,967 | 163 | 79 | 36.607362 | 0.707317 | 0.452321 | 0 | 0.56 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.04 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c606dd98dcd0e38522a604061eae8d10c8862e6 | 1,844 | py | Python | manuscript/link_checker.py | wuyang1002431655/tango_with_django_19 | 42d5878e4a12037daf04d785826357cd4351a16d | [
"Apache-2.0"
] | 244 | 2016-04-12T15:39:47.000Z | 2021-09-10T07:43:55.000Z | manuscript/link_checker.py | wuyang1002431655/tango_with_django_19 | 42d5878e4a12037daf04d785826357cd4351a16d | [
"Apache-2.0"
] | 57 | 2016-03-29T22:12:09.000Z | 2019-08-26T07:50:11.000Z | manuscript/link_checker.py | wuyang1002431655/tango_with_django_19 | 42d5878e4a12037daf04d785826357cd4351a16d | [
"Apache-2.0"
] | 311 | 2016-04-27T04:41:02.000Z | 2021-09-19T14:03:35.000Z | # Checks for broken links in the book chapters, printing the status of each link found to stdout.
# The Python package 'requests' must be installed and available for this simple module to work.
# Author: David Maxwell
# Date: 2017-02-14
import re
import requests
def main(chapters_list_filename, hide_success=True):
""... | 28.369231 | 103 | 0.645879 | 256 | 1,844 | 4.496094 | 0.441406 | 0.069505 | 0.034752 | 0.03649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023571 | 0.240781 | 1,844 | 65 | 104 | 28.369231 | 0.798571 | 0.170824 | 0 | 0.125 | 0 | 0 | 0.13836 | 0.096633 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c67194eb5ab82333266efd8ffcbf64d199afeff | 637 | py | Python | Luke 02/02.py | Nilzone-/Knowit-Julekalender-2017 | 66ef8a651277e0fef7d9278f3f129410b5b98ee0 | [
"MIT"
] | null | null | null | Luke 02/02.py | Nilzone-/Knowit-Julekalender-2017 | 66ef8a651277e0fef7d9278f3f129410b5b98ee0 | [
"MIT"
] | null | null | null | Luke 02/02.py | Nilzone-/Knowit-Julekalender-2017 | 66ef8a651277e0fef7d9278f3f129410b5b98ee0 | [
"MIT"
] | null | null | null | import numpy as np
size = 1000
def create_wall(x, y):
return "{0:b}".format(x**3 + 12*x*y + 5*x*y**2).count("1") & 1
def build_grid():
return np.array([create_wall(j+1, i+1) for i in range(size) for j in range(size)]).reshape(size, size)
def visit(grid, x=0, y=0):
if grid[x][y]:
return
grid[x][y] = 1
... | 20.548387 | 104 | 0.620094 | 133 | 637 | 2.932331 | 0.308271 | 0.035897 | 0.128205 | 0.053846 | 0.187179 | 0.071795 | 0 | 0 | 0 | 0 | 0 | 0.050193 | 0.186813 | 637 | 31 | 105 | 20.548387 | 0.702703 | 0 | 0 | 0.095238 | 0 | 0 | 0.106583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.238095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c67a7fccb58ad0744513e429cedf4044452005e | 311 | py | Python | databases/music.py | danielicapui/programa-o-avancada | d0e5b876b951ae04a46ffcda0dc0143e3f7114d9 | [
"MIT"
] | null | null | null | databases/music.py | danielicapui/programa-o-avancada | d0e5b876b951ae04a46ffcda0dc0143e3f7114d9 | [
"MIT"
] | null | null | null | databases/music.py | danielicapui/programa-o-avancada | d0e5b876b951ae04a46ffcda0dc0143e3f7114d9 | [
"MIT"
] | null | null | null | from utills import *
conn,cur=start('music')
criarTabela("tracks","title text,plays integer")
music=[('trunder',20),
('my way',15)]
insertInto("tracks","title,plays",music)
#cur.executemany("insert into tracks (title,plays) values (?,?)",music)
buscaTabela("tracks","title")
conn.commit()
conn.close()
| 25.916667 | 71 | 0.691318 | 40 | 311 | 5.375 | 0.65 | 0.204651 | 0.148837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014235 | 0.096463 | 311 | 11 | 72 | 28.272727 | 0.75089 | 0.22508 | 0 | 0 | 0 | 0 | 0.316667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c684d5c56bbbdacbeb8612a9b08130a83635f9a | 13,250 | py | Python | video_analysis/code/scene_postprocess.py | pdxcycling/carv.io | cce0f91a76d3ceed714b3625d415131fd9540899 | [
"MIT"
] | null | null | null | video_analysis/code/scene_postprocess.py | pdxcycling/carv.io | cce0f91a76d3ceed714b3625d415131fd9540899 | [
"MIT"
] | null | null | null | video_analysis/code/scene_postprocess.py | pdxcycling/carv.io | cce0f91a76d3ceed714b3625d415131fd9540899 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import re
from collections import Counter
from flow_preprocess import FlowPreprocess
class ScenePostprocess(object):
"""
Heavy-lifting macro-feature class
"""
def __init__(self, flow_df, quality_df, remove_transitions=False):
"""
Default construct... | 35.05291 | 128 | 0.60234 | 1,702 | 13,250 | 4.480024 | 0.174501 | 0.029508 | 0.035803 | 0.016787 | 0.309115 | 0.268459 | 0.229246 | 0.183475 | 0.153311 | 0.132852 | 0 | 0.006762 | 0.31917 | 13,250 | 377 | 129 | 35.145889 | 0.838488 | 0.367774 | 0 | 0.109489 | 0 | 0 | 0.066629 | 0.003146 | 0 | 0 | 0 | 0.013263 | 0 | 1 | 0.138686 | false | 0.007299 | 0.036496 | 0 | 0.313869 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c6b5cb13f50ba4f535dc82987b58898ad693a5f | 5,966 | py | Python | data/external/repositories/42139/KDDCup13Track2-master/blocking.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories/42139/KDDCup13Track2-master/blocking.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories/42139/KDDCup13Track2-master/blocking.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | #!/usr/bin/env python
from common import *
import csv
import argparse
from unidecode import unidecode
from nameparser import constants as npc
from collections import defaultdict
import cPickle as pickle
import re
stopwords_custom = set(['document', 'preparation', 'system', 'consortium', 'committee', 'international', '... | 29.979899 | 703 | 0.632417 | 936 | 5,966 | 3.930556 | 0.192308 | 0.014134 | 0.030443 | 0.074205 | 0.563468 | 0.555858 | 0.555858 | 0.537374 | 0.537374 | 0.522153 | 0 | 0.029124 | 0.177003 | 5,966 | 199 | 704 | 29.9799 | 0.720163 | 0.016929 | 0 | 0.58642 | 0 | 0 | 0.15714 | 0.005289 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.049383 | null | null | 0.092593 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c6cc14ec8ce3c7dc9875cccdf742d57d079973d | 10,181 | py | Python | diofant/tests/integrals/test_heurisch.py | Electric-tric/diofant | 92c4bf0ef301e5d6f0cfab545b036e1cb7de3c0a | [
"BSD-3-Clause"
] | 1 | 2021-08-22T09:34:15.000Z | 2021-08-22T09:34:15.000Z | diofant/tests/integrals/test_heurisch.py | Electric-tric/diofant | 92c4bf0ef301e5d6f0cfab545b036e1cb7de3c0a | [
"BSD-3-Clause"
] | null | null | null | diofant/tests/integrals/test_heurisch.py | Electric-tric/diofant | 92c4bf0ef301e5d6f0cfab545b036e1cb7de3c0a | [
"BSD-3-Clause"
] | null | null | null | import pytest
from diofant import (Add, Derivative, Ei, Eq, Function, I, Integral, LambertW,
Piecewise, Rational, Sum, Symbol, acos, asin, asinh,
besselj, cos, cosh, diff, erf, exp, li, log, pi, ratsimp,
root, simplify, sin, sinh, sqrt, symbols, tan)
from ... | 34.511864 | 112 | 0.534722 | 1,869 | 10,181 | 2.87801 | 0.107009 | 0.030117 | 0.072504 | 0.023796 | 0.466072 | 0.342443 | 0.232757 | 0.204313 | 0.189812 | 0.138873 | 0 | 0.047576 | 0.232001 | 10,181 | 294 | 113 | 34.629252 | 0.640363 | 0.122778 | 0 | 0.086957 | 0 | 0 | 0.00146 | 0 | 0 | 0 | 0 | 0.003401 | 0.467391 | 1 | 0.141304 | false | 0 | 0.016304 | 0.005435 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c70c6e774d6a8ca53417d3cc9999e257be28aad | 1,093 | py | Python | test/test_pipeline/components/classification/test_passive_aggressive.py | vardaan-raj/auto-sklearn | 4597152e3a60cd6f6e32719a3bef26e13951b102 | [
"BSD-3-Clause"
] | 1 | 2021-02-21T16:44:44.000Z | 2021-02-21T16:44:44.000Z | test/test_pipeline/components/classification/test_passive_aggressive.py | vardaan-raj/auto-sklearn | 4597152e3a60cd6f6e32719a3bef26e13951b102 | [
"BSD-3-Clause"
] | 9 | 2021-02-12T17:52:34.000Z | 2021-06-26T11:37:41.000Z | test/test_pipeline/components/classification/test_passive_aggressive.py | vardaan-raj/auto-sklearn | 4597152e3a60cd6f6e32719a3bef26e13951b102 | [
"BSD-3-Clause"
] | 1 | 2021-07-06T23:02:42.000Z | 2021-07-06T23:02:42.000Z | import sklearn.linear_model
from autosklearn.pipeline.components.classification.passive_aggressive import \
PassiveAggressive
from .test_base import BaseClassificationComponentTest
class PassiveAggressiveComponentTest(BaseClassificationComponentTest):
__test__ = True
res = dict()
res["default_iris... | 30.361111 | 79 | 0.725526 | 123 | 1,093 | 6.105691 | 0.447154 | 0.11984 | 0.106525 | 0.026631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10989 | 0.167429 | 1,093 | 35 | 80 | 31.228571 | 0.715385 | 0 | 0 | 0 | 0 | 0 | 0.26624 | 0.15279 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.185185 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7c7633cae0980db6c9c40b9c34972bdb7f5c0282 | 7,139 | py | Python | Detect.py | SymenYang/Vanish-Point-Detect | 0e83e2b2a86e9523ed4a86f592f3a8dee594d691 | [
"MIT"
] | 2 | 2017-10-17T10:08:25.000Z | 2017-10-17T11:17:39.000Z | Detect.py | SymenYang/Vanish-Point-Detect | 0e83e2b2a86e9523ed4a86f592f3a8dee594d691 | [
"MIT"
] | null | null | null | Detect.py | SymenYang/Vanish-Point-Detect | 0e83e2b2a86e9523ed4a86f592f3a8dee594d691 | [
"MIT"
] | null | null | null | import cv2 as cv
import numpy as np
import copy
import math
import Edges
import INTPoint
eps = 1e-7
votes = {}
Groups = []
VPoints = []
Centers = []
Cluster = []
voters = {}
def getEdges(image):
#moved to Edges.py
return Edges.getEdges(image)
def getLines(edges):
#moved to Edges.py
return Edges.getLin... | 26.838346 | 157 | 0.559462 | 979 | 7,139 | 4.078652 | 0.162411 | 0.030053 | 0.033058 | 0.038567 | 0.314801 | 0.261207 | 0.184323 | 0.118708 | 0.089657 | 0.089657 | 0 | 0.049771 | 0.2964 | 7,139 | 266 | 158 | 26.838346 | 0.745172 | 0.057851 | 0 | 0.237209 | 0 | 0 | 0.011481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027907 | null | null | 0.004651 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c76d6a2f8e354238a96f859815250852db8cda1 | 738 | py | Python | kafka-rockset-integration/generate_customers_data.py | farkaskid/recipes | 8eef799cda899ea266f2849d485917f9b0d83190 | [
"Apache-2.0"
] | 21 | 2019-02-27T22:30:28.000Z | 2021-07-18T17:26:56.000Z | kafka-rockset-integration/generate_customers_data.py | farkaskid/recipes | 8eef799cda899ea266f2849d485917f9b0d83190 | [
"Apache-2.0"
] | 16 | 2019-07-03T22:04:21.000Z | 2022-02-26T18:34:05.000Z | kafka-rockset-integration/generate_customers_data.py | farkaskid/recipes | 8eef799cda899ea266f2849d485917f9b0d83190 | [
"Apache-2.0"
] | 11 | 2019-03-13T08:55:31.000Z | 2022-02-07T08:35:16.000Z | """Generate Customer Data"""
import csv
import random
from config import MIN_CUSTOMER_ID, MAX_CUSTOMER_ID
ACQUISITION_SOURCES = [
'OrganicSearch',
'PaidSearch',
'Email',
'SocialMedia',
'Display',
'Affiliate'
'Referral'
]
def main():
with open('customers.csv', 'w') as fout:
w... | 22.363636 | 85 | 0.617886 | 73 | 738 | 5.972603 | 0.616438 | 0.137615 | 0.059633 | 0.073395 | 0.119266 | 0.119266 | 0 | 0 | 0 | 0 | 0 | 0.001832 | 0.260163 | 738 | 32 | 86 | 23.0625 | 0.796703 | 0.02981 | 0 | 0 | 1 | 0 | 0.195775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c79d2fe84aae88ef213fa559ea2499797887d57 | 959 | py | Python | doc/gallery-src/analysis/run_blockMcnpMaterialCard.py | celikten/armi | 4e100dd514a59caa9c502bd5a0967fd77fdaf00e | [
"Apache-2.0"
] | 1 | 2021-05-29T16:02:31.000Z | 2021-05-29T16:02:31.000Z | doc/gallery-src/analysis/run_blockMcnpMaterialCard.py | celikten/armi | 4e100dd514a59caa9c502bd5a0967fd77fdaf00e | [
"Apache-2.0"
] | null | null | null | doc/gallery-src/analysis/run_blockMcnpMaterialCard.py | celikten/armi | 4e100dd514a59caa9c502bd5a0967fd77fdaf00e | [
"Apache-2.0"
] | null | null | null | """
Write MCNP Material Cards
=========================
Here we load a test reactor and write each component of one fuel block out as
MCNP material cards.
Normally, code-specific utility code would belong in a code-specific ARMI
plugin. But in this case, the need for MCNP materials cards is so pervasive
that it made ... | 31.966667 | 79 | 0.755996 | 136 | 959 | 5.308824 | 0.610294 | 0.055402 | 0.047091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002436 | 0.1439 | 959 | 29 | 80 | 33.068966 | 0.876979 | 0.402503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7c79e12b0a22b9ba1c999ecbf405c389b15998f7 | 6,612 | py | Python | life_line_chart/_autogenerate_data.py | mustaqimM/life_line_chart | a9bbbbdeb5568aa0cc3b3b585337a3d655f4b2d6 | [
"MIT"
] | null | null | null | life_line_chart/_autogenerate_data.py | mustaqimM/life_line_chart | a9bbbbdeb5568aa0cc3b3b585337a3d655f4b2d6 | [
"MIT"
] | null | null | null | life_line_chart/_autogenerate_data.py | mustaqimM/life_line_chart | a9bbbbdeb5568aa0cc3b3b585337a3d655f4b2d6 | [
"MIT"
] | null | null | null | import names
import os
import datetime
from random import random
def generate_gedcom_file():
"""generate some gedcom file"""
db = {}
db['n_individuals'] = 0
db['max_individuals'] = 8000
db['n_families'] = 0
db['yougest'] = None
gedcom_content = """
0 HEAD
1 SOUR Gramps
2 VERS 3.3.0
2 N... | 35.548387 | 130 | 0.545977 | 850 | 6,612 | 4.035294 | 0.196471 | 0.041691 | 0.02449 | 0.020408 | 0.223032 | 0.18484 | 0.159767 | 0.146939 | 0.146939 | 0.11312 | 0 | 0.029804 | 0.320024 | 6,612 | 185 | 131 | 35.740541 | 0.733096 | 0.007411 | 0 | 0.096386 | 1 | 0 | 0.148849 | 0.006558 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042169 | false | 0 | 0.03012 | 0 | 0.096386 | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c7e5ef5e8a7277261b9729c9f251391fd2d29dc | 1,415 | py | Python | apps/goods/views_base.py | sunwei19910119/DjangoShop | 188102dc8ef9f4751f4eeeb7574e95c8cc270484 | [
"MIT"
] | 3 | 2018-08-22T02:41:55.000Z | 2022-03-03T08:49:38.000Z | apps/goods/views_base.py | sunwei19910119/DjangoShop | 188102dc8ef9f4751f4eeeb7574e95c8cc270484 | [
"MIT"
] | null | null | null | apps/goods/views_base.py | sunwei19910119/DjangoShop | 188102dc8ef9f4751f4eeeb7574e95c8cc270484 | [
"MIT"
] | 1 | 2019-10-23T12:24:08.000Z | 2019-10-23T12:24:08.000Z | # encoding: utf-8
from goods.models import Goods
from django.views.generic.base import View
class GoodsListView(View):
def get(self, request):
"""
通过django的view实现商品列表页
"""
json_list = []
goods = Goods.objects.all()[:10]
# for good in goods:
# json_dict ... | 32.159091 | 85 | 0.633922 | 159 | 1,415 | 5.45283 | 0.352201 | 0.073818 | 0.076125 | 0.089965 | 0.320646 | 0.129181 | 0 | 0 | 0 | 0 | 0 | 0.002913 | 0.272085 | 1,415 | 43 | 86 | 32.906977 | 0.838835 | 0.424735 | 0 | 0 | 0 | 0 | 0.005175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7c81cc51df1ab53c03a469cdc7c5c3c8cd7e2980 | 508 | py | Python | url_shortener/src/__init__.py | Andrelpoj/hire.me | 79428e2094a6b56e762a7f958e1b75f395f59cef | [
"Apache-2.0"
] | null | null | null | url_shortener/src/__init__.py | Andrelpoj/hire.me | 79428e2094a6b56e762a7f958e1b75f395f59cef | [
"Apache-2.0"
] | null | null | null | url_shortener/src/__init__.py | Andrelpoj/hire.me | 79428e2094a6b56e762a7f958e1b75f395f59cef | [
"Apache-2.0"
] | null | null | null | from flask import Flask
from .extensions import db
from .routes import short
from . import config
def create_app():
""" Creates Flask App, connect to Database and register Blueprint of routes"""
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = config.DATABASE_CONNECTION_URI
app.co... | 28.222222 | 83 | 0.690945 | 64 | 508 | 5.25 | 0.484375 | 0.10119 | 0.113095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222441 | 508 | 18 | 84 | 28.222222 | 0.850633 | 0.139764 | 0 | 0 | 0 | 0 | 0.128019 | 0.128019 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7c82fafc5019f5e066e5d9af9ec1a1742645a993 | 27,180 | py | Python | polyaxon_cli/cli/experiment.py | tiagopms/polyaxon-cli | eb13e3b8389ccf069a421a4dabc87aaa506ab61c | [
"MIT"
] | null | null | null | polyaxon_cli/cli/experiment.py | tiagopms/polyaxon-cli | eb13e3b8389ccf069a421a4dabc87aaa506ab61c | [
"MIT"
] | null | null | null | polyaxon_cli/cli/experiment.py | tiagopms/polyaxon-cli | eb13e3b8389ccf069a421a4dabc87aaa506ab61c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import sys
import click
import rhea
from polyaxon_cli.cli.getters.experiment import (
get_experiment_job_or_local,
get_project_experiment_or_local
)
from polyaxon_cli.cli.upload import upload
from polyaxon_cli.client imp... | 33.84807 | 99 | 0.606659 | 2,827 | 27,180 | 5.659356 | 0.089848 | 0.048753 | 0.040378 | 0.051566 | 0.768986 | 0.705607 | 0.636852 | 0.606163 | 0.585349 | 0.570286 | 0 | 0.003379 | 0.281347 | 27,180 | 802 | 100 | 33.890274 | 0.815697 | 0.134106 | 0 | 0.587473 | 0 | 0 | 0.14221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049676 | false | 0.030238 | 0.034557 | 0 | 0.088553 | 0.146868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c85f2097ce6518402e3aa24b38cc365cc5ffeaa | 4,981 | py | Python | Whats Cooking/KaggleCookingComparison.py | rupakc/Kaggle-Compendium | 61634ba742f9a0239f2d1e45973c4bb477ac6306 | [
"MIT"
] | 17 | 2018-01-11T05:49:06.000Z | 2021-08-22T16:50:10.000Z | Whats Cooking/KaggleCookingComparison.py | Tuanlase02874/Machine-Learning-Kaggle | c31651acd8f2407d8b60774e843a2527ce19b013 | [
"MIT"
] | null | null | null | Whats Cooking/KaggleCookingComparison.py | Tuanlase02874/Machine-Learning-Kaggle | c31651acd8f2407d8b60774e843a2527ce19b013 | [
"MIT"
] | 8 | 2017-11-27T06:58:50.000Z | 2021-08-22T16:50:13.000Z | # -*- coding: utf-8 -*-
"""
Created on Sat Dec 26 13:20:45 2015
Code for Kaggle What's Cooking Competition
It uses the following classifiers with tf-idf,hashvectors and bag_of_words approach
1. Adaboost
2. Extratrees
3. Bagging
4. Random Forests
@author: Rupak Chakraborty
"""
import numpy as np
import time
import json... | 32.344156 | 90 | 0.739611 | 635 | 4,981 | 5.607874 | 0.233071 | 0.019657 | 0.038753 | 0.028082 | 0.251896 | 0.155013 | 0.074136 | 0.038192 | 0 | 0 | 0 | 0.012103 | 0.153985 | 4,981 | 153 | 91 | 32.555556 | 0.832938 | 0.024493 | 0 | 0.183486 | 0 | 0 | 0.171447 | 0.009778 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.110092 | null | null | 0.174312 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c88b8dca0946deb62b53070c85ee8a8bd47974e | 845 | py | Python | initial_load.py | hongyuanChrisLi/RealEstateDBConvert | 0fd04f5213ff3fd3548db3f322828bd80cf41791 | [
"Apache-2.0"
] | null | null | null | initial_load.py | hongyuanChrisLi/RealEstateDBConvert | 0fd04f5213ff3fd3548db3f322828bd80cf41791 | [
"Apache-2.0"
] | null | null | null | initial_load.py | hongyuanChrisLi/RealEstateDBConvert | 0fd04f5213ff3fd3548db3f322828bd80cf41791 | [
"Apache-2.0"
] | null | null | null | from mysql_dao.select_dao import SelectDao as MysqlSelectDao
from postgres_dao.ddl_dao import DdlDao
from postgres_dao.dml_dao import DmlDao as PsqlDmlDao
psql_ddl_dao = DdlDao()
mysql_select_dao = MysqlSelectDao()
psql_dml_dao = PsqlDmlDao()
psql_ddl_dao.create_tables()
county_data = mysql_select_dao.select_all_cou... | 28.166667 | 60 | 0.857988 | 141 | 845 | 4.602837 | 0.241135 | 0.09245 | 0.138675 | 0.16641 | 0.365177 | 0.291217 | 0.098613 | 0 | 0 | 0 | 0 | 0 | 0.068639 | 845 | 29 | 61 | 29.137931 | 0.824651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c8e9965cc893f149c68d0938c7cdd288fb5e3a7 | 980 | py | Python | src/urh/ui/delegates/CheckBoxDelegate.py | awesome-archive/urh | c8c3aabc9d637ca660d8c72c3d8372055e0f3ec7 | [
"Apache-2.0"
] | 1 | 2017-06-21T02:37:16.000Z | 2017-06-21T02:37:16.000Z | src/urh/ui/delegates/CheckBoxDelegate.py | dspmandavid/urh | 30643c1a68634b1c97eb9989485a4e96a3b038ae | [
"Apache-2.0"
] | null | null | null | src/urh/ui/delegates/CheckBoxDelegate.py | dspmandavid/urh | 30643c1a68634b1c97eb9989485a4e96a3b038ae | [
"Apache-2.0"
] | null | null | null | from PyQt5.QtCore import QModelIndex, QAbstractItemModel, Qt, pyqtSlot
from PyQt5.QtWidgets import QItemDelegate, QWidget, QStyleOptionViewItem, QCheckBox
class CheckBoxDelegate(QItemDelegate):
def __init__(self, parent=None):
super().__init__(parent)
self.enabled = True
def createEditor(self... | 37.692308 | 94 | 0.715306 | 97 | 980 | 7.14433 | 0.443299 | 0.069264 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002503 | 0.184694 | 980 | 26 | 95 | 37.692308 | 0.864831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c9666a6d0704c6c5a1d15ed10e9ce79d7670676 | 3,215 | py | Python | project/server/models.py | mvlima/flask-jwt-auth | 6cb210b50888b1e9a41ea9e63a80eafcbe436560 | [
"MIT"
] | null | null | null | project/server/models.py | mvlima/flask-jwt-auth | 6cb210b50888b1e9a41ea9e63a80eafcbe436560 | [
"MIT"
] | null | null | null | project/server/models.py | mvlima/flask-jwt-auth | 6cb210b50888b1e9a41ea9e63a80eafcbe436560 | [
"MIT"
] | null | null | null | # project/server/models.py
import jwt
import datetime
from project.server import app, db, bcrypt
class User(db.Model):
""" User Model for storing user related details """
__tablename__ = "users"
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
username = db.Column(db.String(255), uni... | 32.806122 | 90 | 0.612753 | 368 | 3,215 | 5.211957 | 0.296196 | 0.050052 | 0.062565 | 0.04171 | 0.18561 | 0.163712 | 0.163712 | 0.095933 | 0.095933 | 0.052138 | 0 | 0.009961 | 0.281804 | 3,215 | 97 | 91 | 33.14433 | 0.820702 | 0.080871 | 0 | 0.115942 | 0 | 0 | 0.07058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.057971 | 0.043478 | 0.014493 | 0.492754 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7c98495a22a6d3d8755497c989624d8a5c427192 | 60,943 | py | Python | elastalert/alerts.py | dekhrekh/elastalert | 0c1ce30302c575bd0be404582cd452f38c01c774 | [
"Apache-2.0"
] | null | null | null | elastalert/alerts.py | dekhrekh/elastalert | 0c1ce30302c575bd0be404582cd452f38c01c774 | [
"Apache-2.0"
] | null | null | null | elastalert/alerts.py | dekhrekh/elastalert | 0c1ce30302c575bd0be404582cd452f38c01c774 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import copy
import datetime
import json
import logging
import subprocess
import sys
import warnings
from email.mime.text import MIMEText
from email.utils import formatdate
from smtplib import SMTP
from smtplib import SMTP_SSL
from smtplib import SMTPAuthenticationError
from smtplib import SMTPEx... | 44.289971 | 137 | 0.607814 | 7,440 | 60,943 | 4.771371 | 0.104301 | 0.05048 | 0.026959 | 0.006704 | 0.427646 | 0.314544 | 0.252373 | 0.207583 | 0.181695 | 0.173526 | 0 | 0.002861 | 0.283101 | 60,943 | 1,375 | 138 | 44.322182 | 0.809613 | 0.093514 | 0 | 0.245411 | 0 | 0.000966 | 0.15868 | 0.024326 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011594 | 0.029952 | null | null | 0.002899 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c9e60fb8b9a1847e8db908d6cfa14b5a53e1aaf | 623 | py | Python | API/migrations/0005_alter_news_date_time_alter_news_headline.py | kgarchie/ReSTful-Django-API | 851c76eb75747042ceac0a6c164266409ca935d4 | [
"MIT"
] | null | null | null | API/migrations/0005_alter_news_date_time_alter_news_headline.py | kgarchie/ReSTful-Django-API | 851c76eb75747042ceac0a6c164266409ca935d4 | [
"MIT"
] | null | null | null | API/migrations/0005_alter_news_date_time_alter_news_headline.py | kgarchie/ReSTful-Django-API | 851c76eb75747042ceac0a6c164266409ca935d4 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-23 14:31
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('API', '0004_alter_news_date_time_alter_news_headline'),
]
operations = [
migrations.AlterField(
model_name='news... | 24.92 | 98 | 0.603531 | 69 | 623 | 5.289855 | 0.594203 | 0.049315 | 0.136986 | 0.158904 | 0.20274 | 0.20274 | 0 | 0 | 0 | 0 | 0 | 0.089485 | 0.282504 | 623 | 24 | 99 | 25.958333 | 0.727069 | 0.072231 | 0 | 0.333333 | 1 | 0 | 0.126736 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ca33bba047d555eff412922059b6da8837f7980 | 270 | py | Python | examples/setuptools-rust-starter/tests/test_setuptools_rust_starter.py | FriendRat/pyo3 | 5446fe2062cb3bf11bf61bd4a2c58a7ed8b408d2 | [
"Apache-2.0"
] | 1 | 2021-06-18T16:27:31.000Z | 2021-06-18T16:27:31.000Z | examples/setuptools-rust-starter/tests/test_setuptools_rust_starter.py | FriendRat/pyo3 | 5446fe2062cb3bf11bf61bd4a2c58a7ed8b408d2 | [
"Apache-2.0"
] | 5 | 2021-11-08T22:05:41.000Z | 2022-03-28T22:07:04.000Z | examples/setuptools-rust-starter/tests/test_setuptools_rust_starter.py | FriendRat/pyo3 | 5446fe2062cb3bf11bf61bd4a2c58a7ed8b408d2 | [
"Apache-2.0"
] | null | null | null | from setuptools_rust_starter import PythonClass, ExampleClass
def test_python_class() -> None:
py_class = PythonClass(value=10)
assert py_class.value == 10
def test_example_class() -> None:
example = ExampleClass(value=11)
assert example.value == 11
| 22.5 | 61 | 0.733333 | 35 | 270 | 5.428571 | 0.514286 | 0.073684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035874 | 0.174074 | 270 | 11 | 62 | 24.545455 | 0.816144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7caa2f54344b5d827f792813f87cde352f46a120 | 827 | py | Python | StateGoHome.py | LHGames-2017/superintelligence | bd9ea3d444e571a0f9607bf0f6799807f7e644ca | [
"MIT"
] | null | null | null | StateGoHome.py | LHGames-2017/superintelligence | bd9ea3d444e571a0f9607bf0f6799807f7e644ca | [
"MIT"
] | null | null | null | StateGoHome.py | LHGames-2017/superintelligence | bd9ea3d444e571a0f9607bf0f6799807f7e644ca | [
"MIT"
] | null | null | null | from PlayerState import *
from pathFinder import PathFinder
from StateLook4Resources import *
class StateGoHome(PlayerState):
""" State Implementation: has a resource and go back home """
def __init__(self, player):
self.player = player
self.player.setTarget(self.player.playerData.HouseLocati... | 31.807692 | 71 | 0.689238 | 93 | 827 | 6.043011 | 0.505376 | 0.177936 | 0.05694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.226119 | 827 | 25 | 72 | 33.08 | 0.870313 | 0.141475 | 0 | 0 | 0 | 0 | 0.015647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0.058824 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7caf56de8045038d74971a889dbed39c31d7bb50 | 1,306 | py | Python | tests/python/gaia-ui-tests/gaiatest/tests/functional/lockscreen/test_lockscreen_unlock_to_camera_with_passcode.py | BReduardokramer/gaia | c00302cdcd435ab193e8365917cfc6abac9e4f2e | [
"Apache-2.0"
] | 1 | 2021-11-09T00:27:34.000Z | 2021-11-09T00:27:34.000Z | tests/python/gaia-ui-tests/gaiatest/tests/functional/lockscreen/test_lockscreen_unlock_to_camera_with_passcode.py | AmyYLee/gaia | a5dbae8235163d7f985bdeb7d649268f02749a8b | [
"Apache-2.0"
] | null | null | null | tests/python/gaia-ui-tests/gaiatest/tests/functional/lockscreen/test_lockscreen_unlock_to_camera_with_passcode.py | AmyYLee/gaia | a5dbae8235163d7f985bdeb7d649268f02749a8b | [
"Apache-2.0"
] | null | null | null | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from gaiatest import GaiaTestCase
from gaiatest.apps.lockscreen.app import LockScreen
class TestCameraUnlockWithPassco... | 31.095238 | 90 | 0.717458 | 173 | 1,306 | 5.202312 | 0.520231 | 0.026667 | 0.046667 | 0.035556 | 0.195556 | 0.195556 | 0.195556 | 0.1 | 0 | 0 | 0 | 0.010427 | 0.19219 | 1,306 | 41 | 91 | 31.853659 | 0.842654 | 0.238897 | 0 | 0.105263 | 0 | 0 | 0.087221 | 0.061866 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.105263 | false | 0.263158 | 0.105263 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7cb2d3d2cb22c43c3c911d744e22c33bc37cdf49 | 1,661 | py | Python | landing/views.py | theflatladder/kyrsovaya | d6d661854cd955e544a199e201f325decc360cc1 | [
"MIT"
] | null | null | null | landing/views.py | theflatladder/kyrsovaya | d6d661854cd955e544a199e201f325decc360cc1 | [
"MIT"
] | null | null | null | landing/views.py | theflatladder/kyrsovaya | d6d661854cd955e544a199e201f325decc360cc1 | [
"MIT"
] | null | null | null | from django.shortcuts import render, render_to_response, redirect
from django.contrib import auth
from django.contrib.auth.forms import UserCreationForm
from django.template.context_processors import csrf
from django.http import HttpResponseRedirect
def login(request):
args = {}
args.update(csrf(request))
... | 31.339623 | 140 | 0.668874 | 186 | 1,661 | 5.876344 | 0.327957 | 0.060384 | 0.043916 | 0.040256 | 0.064044 | 0.064044 | 0.064044 | 0 | 0 | 0 | 0 | 0.000777 | 0.225166 | 1,661 | 52 | 141 | 31.942308 | 0.848485 | 0 | 0 | 0.25 | 0 | 0 | 0.123494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.075 | 0.125 | 0.025 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7cb439e7ed9a5e950d6cf894c40e5a62043d06e9 | 5,183 | py | Python | vendor/packages/translate-toolkit/translate/convert/test_po2tmx.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | 2 | 2019-08-19T17:08:47.000Z | 2019-10-05T11:37:02.000Z | vendor/packages/translate-toolkit/translate/convert/test_po2tmx.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | null | null | null | vendor/packages/translate-toolkit/translate/convert/test_po2tmx.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from translate.convert import po2tmx
from translate.convert import test_convert
from translate.misc import wStringIO
from translate.storage import tmx
from translate.storage import lisa
class TestPO2TMX:
def po2tmx(self, posource, sourcelanguage='en', targetlanguage=... | 33.43871 | 128 | 0.641134 | 636 | 5,183 | 5.198113 | 0.349057 | 0.019964 | 0.03539 | 0.051724 | 0.22686 | 0.185723 | 0.176951 | 0.176951 | 0.156987 | 0.156987 | 0 | 0.015672 | 0.224387 | 5,183 | 154 | 129 | 33.655844 | 0.806716 | 0.017557 | 0 | 0.289256 | 0 | 0.016529 | 0.349851 | 0.045087 | 0 | 0 | 0 | 0 | 0.157025 | 0 | null | null | 0.016529 | 0.041322 | null | null | 0.140496 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cb5817de3a17f08a3afdfbe15a3bbd0fbe2d1d8 | 346 | py | Python | setup.py | GeorgeDittmar/MarkovTextGenerator | df6a56e23051e1f263ba22889dc3b5d0dc03e370 | [
"Apache-2.0"
] | 1 | 2021-11-26T15:49:31.000Z | 2021-11-26T15:49:31.000Z | setup.py | GeorgeDittmar/Mimic | df6a56e23051e1f263ba22889dc3b5d0dc03e370 | [
"Apache-2.0"
] | 1 | 2019-06-24T17:30:41.000Z | 2019-06-26T04:53:00.000Z | setup.py | GeorgeDittmar/MarkovTextGenerator | df6a56e23051e1f263ba22889dc3b5d0dc03e370 | [
"Apache-2.0"
] | 2 | 2020-05-04T07:57:17.000Z | 2021-02-23T05:10:11.000Z | #!/usr/bin/env python
from distutils.core import setup
setup(name='Mimik',
version='1.0',
description='Python framework for markov models',
author='George Dittmar',
author_email='georgedittmar@gmail.com',
url='https://www.python.org/sigs/distutils-sig/',
packages=['distutils', 'dis... | 26.615385 | 55 | 0.65896 | 41 | 346 | 5.536585 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.184971 | 346 | 12 | 56 | 28.833333 | 0.797872 | 0.057803 | 0 | 0 | 0 | 0 | 0.452308 | 0.070769 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cb6009fc34f03127073ead641d466f1b2a5c978 | 2,313 | py | Python | app/search/hot_eval/hl_reportable.py | don4apaev/anfisa | 2e4bdd83c584c0000f037413ccc1f9067c07fa70 | [
"Apache-2.0"
] | null | null | null | app/search/hot_eval/hl_reportable.py | don4apaev/anfisa | 2e4bdd83c584c0000f037413ccc1f9067c07fa70 | [
"Apache-2.0"
] | null | null | null | app/search/hot_eval/hl_reportable.py | don4apaev/anfisa | 2e4bdd83c584c0000f037413ccc1f9067c07fa70 | [
"Apache-2.0"
] | null | null | null | def evalRec(env, rec):
"""hl_reportable"""
return (len(set(rec.Genes) &
{
'ABHD12',
'ACTG1',
'ADGRV1',
'AIFM1',
'ATP6V1B1',
'BCS1L',
'BSND',
'CABP2',
'CACNA1D',
'CDC14A',
'... | 21.027273 | 32 | 0.253783 | 118 | 2,313 | 4.966102 | 0.983051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118221 | 0.601383 | 2,313 | 110 | 33 | 21.027273 | 0.517354 | 0.00562 | 0 | 0 | 0 | 0 | 0.234858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009174 | false | 0 | 0 | 0 | 0.018349 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cbd766d520e1888b731cf3cea3bb5f44d830c1f | 520 | py | Python | david/modules/artist/view.py | ktmud/david | 4b8d6f804b73cdfa1a8ddf784077fa9a39f1e36f | [
"MIT"
] | 2 | 2016-04-07T08:21:32.000Z | 2020-11-26T11:49:20.000Z | david/modules/artist/view.py | ktmud/david | 4b8d6f804b73cdfa1a8ddf784077fa9a39f1e36f | [
"MIT"
] | null | null | null | david/modules/artist/view.py | ktmud/david | 4b8d6f804b73cdfa1a8ddf784077fa9a39f1e36f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from flask import Blueprint, request
from david.lib.template import st
from .model import Artist
bp = Blueprint('artist', __name__)
@bp.app_template_global('artists')
def artists():
return Artist.query.all()
@bp.route('/artist/<uid>/')
def intro(uid):
artist = Artist.get_or_404(uid)
... | 23.636364 | 57 | 0.688462 | 74 | 520 | 4.702703 | 0.472973 | 0.04023 | 0.074713 | 0.091954 | 0.270115 | 0.270115 | 0.270115 | 0.270115 | 0.270115 | 0.270115 | 0 | 0.015556 | 0.134615 | 520 | 21 | 58 | 24.761905 | 0.757778 | 0.040385 | 0 | 0.133333 | 0 | 0 | 0.199195 | 0.104628 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.066667 | 0.6 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.