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
b0bd79a348ed8b5dfc8c43840a20e6830ef6b75f
304
py
Python
remove_file.py
Kondziowy/PythonBasicTraining
b7f98a4263faee6f94179a0786ba7eb2dd1e2191
[ "BSD-3-Clause" ]
1
2018-07-31T10:19:26.000Z
2018-07-31T10:19:26.000Z
remove_file.py
Kondziowy/PythonBasicTraining
b7f98a4263faee6f94179a0786ba7eb2dd1e2191
[ "BSD-3-Clause" ]
null
null
null
remove_file.py
Kondziowy/PythonBasicTraining
b7f98a4263faee6f94179a0786ba7eb2dd1e2191
[ "BSD-3-Clause" ]
2
2018-10-16T14:03:26.000Z
2021-11-03T11:03:20.000Z
import os file_to_remove = os.path.join(os.getcwd(), "non_existent_file") print("Do you want to remove %s? Please answer yes or no" % file_to_remove) answer = input() answer_is_true = bool(answer) if answer_is_true: print("Removing file %s" % file_to_remove) os.unlink(file_to_remove)
25.333333
76
0.717105
51
304
4
0.529412
0.196078
0.235294
0.137255
0
0
0
0
0
0
0
0
0.171053
304
12
77
25.333333
0.809524
0
0
0
0
0
0.278912
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.25
0
0
0
null
0
1
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
b0be2dab3a63f0cb3d9d3bdfab2cb2812cc2a281
1,919
py
Python
cms/migrations/0010_auto_20160526_2100.py
porimol/django-blog
3f6b1241a33bfe86049b9bf20c9325323a795513
[ "MIT" ]
null
null
null
cms/migrations/0010_auto_20160526_2100.py
porimol/django-blog
3f6b1241a33bfe86049b9bf20c9325323a795513
[ "MIT" ]
null
null
null
cms/migrations/0010_auto_20160526_2100.py
porimol/django-blog
3f6b1241a33bfe86049b9bf20c9325323a795513
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-05-26 21:00 from __future__ import unicode_literals import ckeditor.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cms', '0009_auto_20160523_2050'), ...
30.951613
114
0.574257
173
1,919
6.242775
0.398844
0.058333
0.038889
0.061111
0.384259
0.384259
0.310185
0.257407
0.257407
0.257407
0
0.023916
0.302762
1,919
61
115
31.459016
0.783259
0.034914
0
0.537037
1
0
0.132504
0.012439
0
0
0
0
0
1
0
false
0
0.074074
0
0.12963
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
b0be8894f64600fd0757eaf6f3ee2d6d81f5af64
1,248
py
Python
taesko/web-server/bin/gen_test_files.py
taesko/training-projects
638649b0b5987ba971ae5ce1f171642de3cde739
[ "Apache-2.0" ]
null
null
null
taesko/web-server/bin/gen_test_files.py
taesko/training-projects
638649b0b5987ba971ae5ce1f171642de3cde739
[ "Apache-2.0" ]
null
null
null
taesko/web-server/bin/gen_test_files.py
taesko/training-projects
638649b0b5987ba971ae5ce1f171642de3cde739
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import argparse import io UNITS = { 'B': 1, 'KB': 1024, 'MB': 1024 * 1024, 'GB': 1024 * 1024 * 1024 } WRITE_CHUNK_SIZE = 4096 def generate_file(size): for _ in range(size): yield 'a' def main(): parser = argparse.ArgumentParser() parser.add_argument('size...
24
75
0.546474
162
1,248
4.061728
0.419753
0.048632
0.06383
0.051672
0.079027
0.079027
0
0
0
0
0
0.036428
0.318109
1,248
51
76
24.470588
0.73678
0.016827
0
0.051282
1
0
0.120718
0
0
0
0
0
0
1
0.051282
false
0
0.051282
0
0.102564
0.025641
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
b0be94fb9c81a75f4f837400a9026609f64e2449
2,246
py
Python
examples/trivial_post_input.py
ajCameron/mewbot
0f299ed75241b08b2f94aa9d96ce31507fdf8851
[ "BSD-2-Clause" ]
null
null
null
examples/trivial_post_input.py
ajCameron/mewbot
0f299ed75241b08b2f94aa9d96ce31507fdf8851
[ "BSD-2-Clause" ]
null
null
null
examples/trivial_post_input.py
ajCameron/mewbot
0f299ed75241b08b2f94aa9d96ce31507fdf8851
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 """ Implementing a new Input - as it happens to be the first input, a few other things are going to have to go on - like defining some behaviors - and actually building a bot - and fixing any weird type errors """ from __future__ import annotations from typing import Set, Type, Dict, Any fro...
23.642105
74
0.675423
261
2,246
5.681992
0.452107
0.052596
0.046527
0.058665
0.188806
0.188806
0.188806
0.137559
0.137559
0.093055
0
0.001167
0.236866
2,246
94
75
23.893617
0.864061
0.256011
0
0.326087
0
0
0.018035
0.01306
0
0
0
0
0
1
0.130435
false
0
0.152174
0.130435
0.478261
0.130435
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
1
0
0
0
1
b0c074773ab99866ac587534be9b11db15239fcb
440
py
Python
evento/migrations/0004_palestrante_social_midia.py
kelwys/open_event
5fb4b8e88839745b5be50acde563f8ec0b1cab24
[ "MIT" ]
null
null
null
evento/migrations/0004_palestrante_social_midia.py
kelwys/open_event
5fb4b8e88839745b5be50acde563f8ec0b1cab24
[ "MIT" ]
4
2020-02-12T01:22:34.000Z
2021-04-08T19:49:45.000Z
evento/migrations/0004_palestrante_social_midia.py
kelwys/open_event
5fb4b8e88839745b5be50acde563f8ec0b1cab24
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-08-14 14:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('evento', '0003_remove_palestrante_slug'), ] operations = [ migrations.AddField( model_name='palestrante', name='soci...
23.157895
91
0.627273
49
440
5.489796
0.755102
0.074349
0.111524
0
0
0
0
0
0
0
0
0.064417
0.259091
440
18
92
24.444444
0.760736
0.102273
0
0
1
0
0.175573
0.071247
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
b0c4d4953970b9a057d89ec9ae6bd9458f2f551c
915
py
Python
account_report/config/account_report.py
dineshpanchal93/helpremove
37e03e922645d52a7bc5d293fa936b0b82017715
[ "MIT" ]
null
null
null
account_report/config/account_report.py
dineshpanchal93/helpremove
37e03e922645d52a7bc5d293fa936b0b82017715
[ "MIT" ]
null
null
null
account_report/config/account_report.py
dineshpanchal93/helpremove
37e03e922645d52a7bc5d293fa936b0b82017715
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "label": _("Sanket"), "items": [ { "type": "doctype", "name": "Test", "description": _("For Test.") }, { "type": "doctype", "name": "overtime", "description": _("For Test.") } ...
16.636364
46
0.473224
81
915
5.098765
0.567901
0.065375
0.094431
0
0
0
0
0
0
0
0
0.007924
0.310383
915
54
47
16.944444
0.646593
0
0
0.192308
0
0
0.402186
0
0
0
0
0
0
1
0.019231
true
0
0.038462
0.019231
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
b0ce431f33e9104ccdf070e60059a68bb11ef3dd
2,065
py
Python
lib/python2.7/site-packages/appionlib/apConfig.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/appionlib/apConfig.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/appionlib/apConfig.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
1
2019-09-05T20:58:37.000Z
2019-09-05T20:58:37.000Z
import os import sys import inspect import re #================= def getAppionDir(): ### convoluted way to get location of this file appiondir = None this_file = __file__ libdir = os.path.dirname(this_file) #result: appion/lib/appionlib libdir = os.path.abspath(libdir) #result: /path/to/appion/lib/appionlib tr...
29.5
82
0.666344
273
2,065
4.989011
0.43956
0.044053
0.037445
0.026432
0.052863
0.052863
0.052863
0.052863
0
0
0
0.002345
0.17385
2,065
69
83
29.927536
0.796014
0.276029
0
0.106383
0
0
0.142954
0.020325
0
0
0
0
0
0
null
null
0
0.085106
null
null
0.042553
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
b0d5b1f14d1e08ae83b27daff547c34e93a0bc83
630
py
Python
project1/tasks/migrations/0004_auto_20200414_2310.py
sujeethiremath/Project-1
7f0bff66287d479e231e123615f2df18f9107178
[ "MIT" ]
null
null
null
project1/tasks/migrations/0004_auto_20200414_2310.py
sujeethiremath/Project-1
7f0bff66287d479e231e123615f2df18f9107178
[ "MIT" ]
null
null
null
project1/tasks/migrations/0004_auto_20200414_2310.py
sujeethiremath/Project-1
7f0bff66287d479e231e123615f2df18f9107178
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-04-14 23:10 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('tasks', '0003_taskcategory'), ] operations = [ migrations.AlterField( model_name='taskcategory'...
25.2
106
0.611111
65
630
5.846154
0.569231
0.063158
0.073684
0.115789
0
0
0
0
0
0
0
0.04793
0.271429
630
24
107
26.25
0.779956
0.071429
0
0.222222
1
0
0.125214
0
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
b0df79b6bb2a6ccc0002c8726493fa73df74dc18
3,382
py
Python
src/protocols/BLE/ble_replay_attack.py
QWERTSKIHACK/peniot
8b5c5c4dddb5adf53977c3e2e99e645a086f1f0b
[ "MIT" ]
143
2019-12-31T08:12:36.000Z
2022-03-31T15:59:51.000Z
src/protocols/BLE/ble_replay_attack.py
QWERTSKIHACK/peniot
8b5c5c4dddb5adf53977c3e2e99e645a086f1f0b
[ "MIT" ]
5
2020-01-28T15:47:23.000Z
2022-02-23T11:18:55.000Z
src/protocols/BLE/ble_replay_attack.py
QWERTSKIHACK/peniot
8b5c5c4dddb5adf53977c3e2e99e645a086f1f0b
[ "MIT" ]
39
2019-12-30T22:19:38.000Z
2022-03-17T10:24:37.000Z
import os from protocols.BLE.ble_device import BLEDevice class BLEReplayAttackHelper: """ This is the helper class which is used to perform BLE Replay attack. """ def __init__(self, file_path): self.file_path = file_path self.write_requests = {} self.run() def run(self): ...
35.6
97
0.542578
372
3,382
4.747312
0.252688
0.103058
0.059456
0.032276
0.197622
0.087203
0.052095
0.052095
0
0
0
0.001408
0.369899
3,382
94
98
35.978723
0.827311
0.130101
0
0
0
0
0.076806
0
0
0
0
0
0
0
null
null
0.019608
0.039216
null
null
0.039216
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
b0e4b665dd58b3e8b801aedc19174727230ae45e
4,215
py
Python
instacopy/apps/accounts/models.py
romannovikov/instacopy-petproject
92ffec02b860c77377182cd1fc58043be195e06e
[ "MIT" ]
null
null
null
instacopy/apps/accounts/models.py
romannovikov/instacopy-petproject
92ffec02b860c77377182cd1fc58043be195e06e
[ "MIT" ]
null
null
null
instacopy/apps/accounts/models.py
romannovikov/instacopy-petproject
92ffec02b860c77377182cd1fc58043be195e06e
[ "MIT" ]
null
null
null
from django.contrib.auth.base_user import AbstractBaseUser from django.contrib.auth.base_user import BaseUserManager from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.validators import UnicodeUsernameValidator from django.core.mail import send_mail from django.db import models from django...
32.175573
106
0.676394
500
4,215
5.498
0.246
0.040742
0.034922
0.038196
0.277919
0.234995
0.178247
0.12841
0.108403
0.043652
0
0.003062
0.225148
4,215
130
107
32.423077
0.838641
0.018743
0
0.080808
0
0
0.0904
0.009747
0
0
0
0
0
1
0.121212
false
0.060606
0.090909
0.080808
0.565657
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
b0e4c0a581ab78e0cacf0e6c26f3b1787787c271
952
py
Python
cdApi/task.py
renqiukai/cd_api
4f1f641adaf031252b097db03249a2581268cc11
[ "MIT" ]
null
null
null
cdApi/task.py
renqiukai/cd_api
4f1f641adaf031252b097db03249a2581268cc11
[ "MIT" ]
null
null
null
cdApi/task.py
renqiukai/cd_api
4f1f641adaf031252b097db03249a2581268cc11
[ "MIT" ]
null
null
null
''' @说明 :任务接口。 @时间 :2020/3/19 下午4:51:48 @作者 :任秋锴 @版本 :1.0 ''' from .base import base class task(base): def __init__(self, token): super().__init__(token) def list(self, pageNum=1, pageSize=10): api_name = "manager/task/list" data = { "pageNum": pageNum, ...
22.666667
62
0.557773
117
952
4.384615
0.393162
0.109162
0.109162
0.140351
0.491228
0.378168
0.210526
0
0
0
0
0.025758
0.306723
952
41
63
23.219512
0.751515
0.068277
0
0.148148
0
0
0.110353
0
0
0
0
0
0
1
0.222222
false
0.037037
0.037037
0
0.444444
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
b0e4f881519b7b7801df06fc497c4a1299f7ee6e
1,288
py
Python
src/MonitorProcesses.py
OurFriendIrony/python-retropie
0ac70a9d72599d9232f01a167e13caee0e770909
[ "Apache-2.0" ]
null
null
null
src/MonitorProcesses.py
OurFriendIrony/python-retropie
0ac70a9d72599d9232f01a167e13caee0e770909
[ "Apache-2.0" ]
null
null
null
src/MonitorProcesses.py
OurFriendIrony/python-retropie
0ac70a9d72599d9232f01a167e13caee0e770909
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import datetime import os import time def get_process_ids(): return [pid for pid in os.listdir('/proc') if pid.isdigit()] def get_process_name(pid): try: return open(os.path.join('/proc', pid, 'comm'), 'rb').read()[:-1] # Remove last character (new line) except IOError: ...
24.301887
109
0.637422
193
1,288
3.937824
0.316062
0.071053
0.059211
0.078947
0.360526
0.273684
0.192105
0.089474
0.089474
0.089474
0
0.002045
0.240683
1,288
52
110
24.769231
0.775051
0.038043
0
0
0
0
0.050121
0
0
0
0
0
0
1
0.1875
false
0
0.09375
0.125
0.46875
0.09375
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
1
0
0
0
1
b0f421213a87668cd2537c284e6cd254612111ec
1,105
py
Python
tests/unit/transformations/test_poinstToHist.py
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
5
2019-10-14T01:06:57.000Z
2021-02-02T16:33:06.000Z
tests/unit/transformations/test_poinstToHist.py
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
null
null
null
tests/unit/transformations/test_poinstToHist.py
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Check PointsToHist adapter class """ from load import ROOT as R from matplotlib import pyplot as plt import numpy as N from matplotlib.ticker import MaxNLocator import gna.constructors as C from gna.bindings import DataType from gna.unittest import * # Create the matrix def test_points_to_hi...
26.309524
75
0.699548
163
1,105
4.613497
0.417178
0.071809
0.039894
0.047872
0.56383
0.56383
0.56383
0.56383
0.473404
0.473404
0
0.014208
0.171946
1,105
41
76
26.95122
0.80765
0.148416
0
0.272727
0
0
0.088362
0
0
0
0
0
0.090909
1
0.090909
false
0
0.318182
0
0.409091
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
b0fdda3ba1996ccb5054d8fa4862ebad666e12c0
1,737
py
Python
dd/api/workflow/sql.py
octo-technology/ddapi
08b56016bf59a02c42d79a117a8de1e23e5b4f90
[ "Apache-2.0" ]
4
2019-06-09T13:15:37.000Z
2020-12-22T08:37:36.000Z
dd/api/workflow/sql.py
octo-technology/ddapi
08b56016bf59a02c42d79a117a8de1e23e5b4f90
[ "Apache-2.0" ]
null
null
null
dd/api/workflow/sql.py
octo-technology/ddapi
08b56016bf59a02c42d79a117a8de1e23e5b4f90
[ "Apache-2.0" ]
null
null
null
from dd.api.workflow.actions import Action from .callables import QueryCallableBuilder, ActionCallableBuilder class SQLOperator(object): def __init__(self, context, dataset): self.context = context self.parent_dataset = dataset def query(self, query, output_table=None, create_table=False, if_...
43.425
110
0.647093
196
1,737
5.581633
0.382653
0.070384
0.046618
0.032907
0.045704
0
0
0
0
0
0
0
0.288428
1,737
39
111
44.538462
0.885113
0.310881
0
0
0
0
0.006318
0
0
0
0
0
0
1
0.210526
false
0
0.157895
0
0.526316
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
7c01f5fa8329cd5fa6a9c416885f42b8af42f214
2,531
py
Python
examples/rough_translated1/osggraphicscost.py
JaneliaSciComp/osgpyplusplus
a5ae3f69c7e9101a32d8cc95fe680dab292f75ac
[ "BSD-3-Clause" ]
17
2015-06-01T12:19:46.000Z
2022-02-12T02:37:48.000Z
examples/rough_translated1/osggraphicscost.py
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-07-04T14:36:49.000Z
2015-07-23T18:09:49.000Z
examples/rough_translated1/osggraphicscost.py
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-11-28T17:00:31.000Z
2020-01-08T07:00:59.000Z
#!/bin/env python # Automatically translated python version of # OpenSceneGraph example program "osggraphicscost" # !!! This program will need manual tuning before it will work. !!! import sys from osgpypp import osg from osgpypp import osgDB from osgpypp import osgViewer # Translated from file 'osggraphicscost.c...
29.091954
113
0.732122
301
2,531
6.112957
0.51495
0.041848
0.027717
0
0
0
0
0
0
0
0
0.000959
0.176215
2,531
86
114
29.430233
0.881535
0.522323
0
0
0
0
0.076988
0.018613
0
0
0
0
0
0
null
null
0
0.148148
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
9fcfe54f419e3a8ec09bb2264e8fd60442fe4b84
2,076
py
Python
src/django_clickhouse/routers.py
belonesox/django-clickhouse
05ad3b54868a33d6e8dea65b80f4820f4ff09cf2
[ "MIT" ]
2
2020-10-14T07:29:25.000Z
2020-10-14T07:29:36.000Z
src/django_clickhouse/routers.py
M1ha-Shvn/django-clickhouse
f54c4c721f5f93dd0e0fbbcfa4ebdf814e5d626e
[ "MIT" ]
null
null
null
src/django_clickhouse/routers.py
M1ha-Shvn/django-clickhouse
f54c4c721f5f93dd0e0fbbcfa4ebdf814e5d626e
[ "MIT" ]
null
null
null
""" This file defines router to find appropriate database """ from typing import Type import random import six from infi.clickhouse_orm.migrations import Operation, DropTable, CreateTable from .clickhouse_models import ClickHouseModel from .configuration import config from .utils import lazy_class_import class Defa...
35.793103
84
0.662331
261
2,076
5.10728
0.318008
0.037509
0.033758
0.04051
0.286572
0.286572
0.246062
0.246062
0.246062
0.171043
0
0
0.259152
2,076
57
85
36.421053
0.86671
0.305395
0
0
0
0
0.063042
0.040977
0
0
0
0
0
1
0.125
false
0
0.333333
0
0.708333
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
9fe0060fcc93266141442ef1fb0f458c880f4905
1,107
py
Python
setup.py
wilsonify/sampyl
fb05a0d04393e4f1691bcc9bc664dbc1b688fc97
[ "MIT" ]
308
2015-06-30T18:16:04.000Z
2022-03-14T17:21:59.000Z
setup.py
wilsonify/sampyl
fb05a0d04393e4f1691bcc9bc664dbc1b688fc97
[ "MIT" ]
20
2015-07-02T06:12:20.000Z
2020-11-26T16:06:57.000Z
setup.py
wilsonify/sampyl
fb05a0d04393e4f1691bcc9bc664dbc1b688fc97
[ "MIT" ]
66
2015-07-27T11:19:03.000Z
2022-03-24T03:35:53.000Z
#!/usr/bin/env python import setuptools with open("README.md", "r") as fh: long_description = fh.read() classifiers = ['Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 2...
36.9
65
0.535682
98
1,107
6.020408
0.642857
0.161017
0.211864
0.088136
0
0
0
0
0
0
0
0.010782
0.32972
1,107
29
66
38.172414
0.784367
0.018067
0
0
0
0
0.471455
0.059853
0
0
0
0
0
1
0
false
0
0.045455
0
0.045455
0
0
0
0
null
0
1
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
9fec2a5997ad717ca0080f1dbd00ec25ea248e76
7,307
py
Python
descarteslabs/common/proto/visualization/visualization_pb2.py
descarteslabs/descarteslabs-python
efc874d6062603dc424c9646287a9b1f8636e7ac
[ "Apache-2.0" ]
167
2017-03-23T22:16:58.000Z
2022-03-08T09:19:30.000Z
descarteslabs/common/proto/visualization/visualization_pb2.py
descarteslabs/descarteslabs-python
efc874d6062603dc424c9646287a9b1f8636e7ac
[ "Apache-2.0" ]
93
2017-03-23T22:11:40.000Z
2021-12-13T18:38:53.000Z
descarteslabs/common/proto/visualization/visualization_pb2.py
descarteslabs/descarteslabs-python
efc874d6062603dc424c9646287a9b1f8636e7ac
[ "Apache-2.0" ]
46
2017-03-25T19:12:14.000Z
2021-08-15T18:04:29.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: descarteslabs/common/proto/visualization/visualization.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf impor...
45.385093
684
0.76023
915
7,307
5.783607
0.162842
0.04384
0.068216
0.061224
0.680272
0.607899
0.557256
0.549698
0.522487
0.522487
0
0.035747
0.115643
7,307
160
685
45.66875
0.783194
0.055289
0
0.554745
1
0.007299
0.226818
0.189523
0
0
0
0
0
1
0
false
0
0.029197
0
0.029197
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
9ff048d58ca2f656063ac9f73dccb6d22e8f63ac
2,258
py
Python
fluid/parameter.py
PaulDodd/signac-flow-project-helpers
208c7c8da52c4b0108c3989c77423cc5ff86ba59
[ "MIT" ]
1
2017-05-30T14:22:59.000Z
2017-05-30T14:22:59.000Z
fluid/parameter.py
PaulDodd/signac-flow-project-helpers
208c7c8da52c4b0108c3989c77423cc5ff86ba59
[ "MIT" ]
null
null
null
fluid/parameter.py
PaulDodd/signac-flow-project-helpers
208c7c8da52c4b0108c3989c77423cc5ff86ba59
[ "MIT" ]
null
null
null
# TODO: Remove from project _params_warned_once = False class FluidParams(dict): defaults = dict() # the default values of the parameters def __init__(self, job, readonly=None): dict.__init__(self) try: # TODO: this may not really be the right case. from mpi4py import MPI...
34.738462
103
0.590345
276
2,258
4.634058
0.355072
0.037529
0.037529
0.02502
0.114152
0.082877
0.082877
0.082877
0.082877
0.082877
0
0.001937
0.313995
2,258
64
104
35.28125
0.823757
0.095217
0
0.075472
0
0
0.04666
0
0
0
0
0.015625
0
1
0.150943
false
0
0.056604
0.037736
0.320755
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
9ff8310c218c0dabb97df75347295e6a2190420f
488
py
Python
habmapslib/habmapslib/ConfHandler.py
alpeza/habmapsgateway
a531da53b78b3e445b2cae8be1edc73a9084d40d
[ "CC0-1.0" ]
null
null
null
habmapslib/habmapslib/ConfHandler.py
alpeza/habmapsgateway
a531da53b78b3e445b2cae8be1edc73a9084d40d
[ "CC0-1.0" ]
null
null
null
habmapslib/habmapslib/ConfHandler.py
alpeza/habmapsgateway
a531da53b78b3e445b2cae8be1edc73a9084d40d
[ "CC0-1.0" ]
null
null
null
import yaml class ConfHandler(object): """Clase encargada de cargar la configuración""" def __init__(self, file='conf.yaml'): super(ConfHandler, self).__init__() self.configfile = file self.config = {} self.load() def load(self): with open(self.configfile) as file: ...
25.684211
65
0.616803
57
488
5.140351
0.508772
0.136519
0.095563
0
0
0
0
0
0
0
0
0
0.266393
488
18
66
27.111111
0.818436
0.086066
0
0
0
0
0.020455
0
0
0
0
0
0
1
0.285714
false
0
0.071429
0.071429
0.5
0.142857
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
9ffe2a4deb11f401370f062f1d769452ff6b6772
475
py
Python
mopidy_cd/__init__.py
M0Rf30/mopidy-cd
1ae7653ab2505b74bdbbb08e5fb18f08b17a9c4b
[ "Apache-2.0" ]
6
2021-02-20T23:37:27.000Z
2022-03-18T11:47:11.000Z
mopidy_cd/__init__.py
M0Rf30/mopidy-cd
1ae7653ab2505b74bdbbb08e5fb18f08b17a9c4b
[ "Apache-2.0" ]
6
2015-01-25T19:06:06.000Z
2017-05-25T13:16:24.000Z
mopidy_cd/__init__.py
M0Rf30/mopidy-cd
1ae7653ab2505b74bdbbb08e5fb18f08b17a9c4b
[ "Apache-2.0" ]
3
2017-09-05T03:48:23.000Z
2018-08-12T08:44:46.000Z
from __future__ import unicode_literals import os from mopidy import config, ext __version__ = '0.5.1' class Extension(ext.Extension): dist_name = 'Mopidy-Cd' ext_name = 'cd' version = __version__ def get_default_config(self): conf_file = os.path.join(os.path.dirname(__file__), 'ext.conf...
19.791667
71
0.682105
62
475
4.854839
0.548387
0.053156
0
0
0
0
0
0
0
0
0
0.008065
0.216842
475
23
72
20.652174
0.801075
0
0
0
0
0
0.065263
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.785714
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
b00b2ce13b72f7b45c0aeb5900744ebe59160bfc
1,482
py
Python
students/models.py
wjarczak/WSB-CRUD
fe866bf848cb06e9b747ab649ef6f821e06b613e
[ "MIT" ]
null
null
null
students/models.py
wjarczak/WSB-CRUD
fe866bf848cb06e9b747ab649ef6f821e06b613e
[ "MIT" ]
null
null
null
students/models.py
wjarczak/WSB-CRUD
fe866bf848cb06e9b747ab649ef6f821e06b613e
[ "MIT" ]
null
null
null
from django.db import models from django.core.validators import MinValueValidator, MaxValueValidator class Representative(models.Model): name = models.CharField(max_length=100) def __str__(self): return self.name class Student(models.Model): # If required delete blank=True DEPARTMENTS = ( ...
36.146341
117
0.672065
171
1,482
5.631579
0.432749
0.093458
0.11215
0.149533
0.141225
0.062305
0
0
0
0
0
0.013817
0.218623
1,482
41
118
36.146341
0.817789
0.035762
0
0.064516
0
0
0.067975
0.016118
0
0
0
0
0
1
0.096774
false
0
0.064516
0.064516
0.645161
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
b018c9cad7ae7c283f401fcfcde7addbadba5cc0
4,958
py
Python
tests/test_coesa.py
TheMagicNacho/artemis-nozzle
5c02672feb7b437a4ff0ccc45394de3010bcd5ab
[ "BSD-2-Clause" ]
89
2016-02-11T04:00:24.000Z
2022-02-22T02:54:44.000Z
tests/test_coesa.py
TheMagicNacho/artemis-nozzle
5c02672feb7b437a4ff0ccc45394de3010bcd5ab
[ "BSD-2-Clause" ]
27
2017-06-15T23:34:04.000Z
2021-09-03T20:24:29.000Z
tests/test_coesa.py
TheMagicNacho/artemis-nozzle
5c02672feb7b437a4ff0ccc45394de3010bcd5ab
[ "BSD-2-Clause" ]
27
2016-03-13T17:08:41.000Z
2021-11-10T09:37:30.000Z
# coding: utf-8 """ Tests of the U.S. 1976 Standard Atmosphere implementation. All of them are validated against the `standard`_. .. _`standard`: http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19770009539_1977009539.pdf """ from __future__ import division, absolute_import import numpy as np from numpy.testin...
30.604938
95
0.681121
812
4,958
3.928571
0.229064
0.070219
0.1279
0.165517
0.623197
0.526959
0.475549
0.464263
0.424451
0.399373
0
0.136476
0.182735
4,958
161
96
30.795031
0.65079
0.120008
0
0.336842
0
0
0.000464
0
0
0
0
0
0.326316
1
0.094737
false
0
0.063158
0
0.168421
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
b01fc9fd99dc545f5a8930fd38ef8ceac81d37f2
2,255
py
Python
prototypes/pyplasma/plasma.py
Krissmedt/imprunko
94171d0d47171cc4b199cd52f5f29385cbff903e
[ "MIT" ]
5
2018-10-26T07:08:16.000Z
2019-05-10T06:47:37.000Z
prototypes/pyplasma/plasma.py
Krissmedt/imprunko
94171d0d47171cc4b199cd52f5f29385cbff903e
[ "MIT" ]
9
2018-11-09T08:50:48.000Z
2019-06-06T20:11:12.000Z
prototypes/pyplasma/plasma.py
Krissmedt/imprunko
94171d0d47171cc4b199cd52f5f29385cbff903e
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np import matplotlib.pyplot as plt import sys, os sys.path.append('../../python') #plasma, plasmatools sys.path.append('../../corgi/pycorgi') #corgi mesh infrastucture import corgi import plasmatools as ptools import pyplasma as plasma from configSetup i...
21.893204
83
0.536142
240
2,255
4.966667
0.45
0.033557
0.047819
0.031879
0.080537
0.045302
0
0
0
0
0
0.009377
0.196009
2,255
102
84
22.107843
0.648097
0.211086
0
0
0
0
0.072289
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
b028d206a1d82cc97d050fb73dff3defba0564d9
32,457
py
Python
precomp.py
leeleing/precomp
cd367bcf9fa7fe10bd266dccec0a90598777abf0
[ "MIT" ]
3
2015-03-30T09:20:34.000Z
2015-03-30T09:20:46.000Z
precomp.py
leeleing/precomp
cd367bcf9fa7fe10bd266dccec0a90598777abf0
[ "MIT" ]
null
null
null
precomp.py
leeleing/precomp
cd367bcf9fa7fe10bd266dccec0a90598777abf0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Mar 30 10:17:05 2015 @author: lilei """ import sys import re import math import datetime # Program name ProgName = "precomp" # Version string Version = "0.1" # This controls whether info/debug messages are printed # (0=none, 1=info, 2=info+debug) DebugLevel = 1 def PRSetDe...
40.219331
132
0.454109
3,762
32,457
3.776715
0.111111
0.027238
0.008446
0.015484
0.504856
0.384361
0.310177
0.248944
0.188415
0.158291
0
0.022949
0.428074
32,457
807
133
40.219331
0.742445
0.014604
0
0.293548
0
0.01129
0.089383
0.008301
0
0
0
0
0
0
null
null
0
0.006452
null
null
0.006452
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
b02abc7af032efc782386f23e25eba5fb278f342
7,658
py
Python
src/syft/proto/core/store/dataset_pb2.py
dnabanita7/PySyft
ce2510e65f5bad382e88806bcde30fa38c3c76c4
[ "Apache-2.0" ]
2
2018-07-23T20:34:10.000Z
2020-08-01T09:09:09.000Z
packages/syft/src/syft/proto/core/store/dataset_pb2.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
5
2020-09-11T05:47:12.000Z
2020-10-13T08:36:17.000Z
packages/syft/src/syft/proto/core/store/dataset_pb2.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
1
2021-07-12T09:15:44.000Z
2021-07-12T09:15:44.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/core/store/dataset.proto """Generated protocol buffer code.""" # third party from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as ...
32.866953
608
0.608906
844
7,658
5.190758
0.17891
0.045652
0.073727
0.06163
0.582059
0.570189
0.510614
0.469528
0.460854
0.425702
0
0.03586
0.293549
7,658
232
609
33.008621
0.773937
0.040611
0
0.617925
1
0.004717
0.15135
0.127079
0
0
0
0
0
1
0
false
0
0.028302
0
0.028302
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
b02e4515bb481c38113374f9e12b7da7290e3f01
695
py
Python
blogauth/urls.py
fengyunxiren/myblog
092aff15189ce9e519654f1c574c8f52208e43fd
[ "MIT" ]
null
null
null
blogauth/urls.py
fengyunxiren/myblog
092aff15189ce9e519654f1c574c8f52208e43fd
[ "MIT" ]
null
null
null
blogauth/urls.py
fengyunxiren/myblog
092aff15189ce9e519654f1c574c8f52208e43fd
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('permission/', views.PermissionView.as_view()), path('permission/<int:id>/', views.PermissionDetailView.as_view()), path('group/', views.GroupView.as_view()), path('group/<int:id>/', views.GroupDetailView.as_view()), path('group/...
43.4375
76
0.683453
87
695
5.344828
0.287356
0.129032
0.193548
0.150538
0.249462
0.249462
0
0
0
0
0
0
0.105036
695
15
77
46.333333
0.747588
0
0
0
0
0
0.23741
0.106475
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
1
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
b0347df7a60e6914c2a2b748f8c7a743cfac0c76
769
py
Python
apps/functions/models.py
hashqueue/beer_server
7b471d5c3fdd021564bc87d73c4e04a69059d291
[ "MIT" ]
12
2021-11-16T07:20:22.000Z
2022-02-17T17:25:45.000Z
apps/functions/models.py
hashqueue/beer_server
7b471d5c3fdd021564bc87d73c4e04a69059d291
[ "MIT" ]
1
2021-07-02T09:57:44.000Z
2021-08-07T12:02:59.000Z
apps/functions/models.py
hashqueue/beer_server
7b471d5c3fdd021564bc87d73c4e04a69059d291
[ "MIT" ]
3
2021-09-17T08:22:02.000Z
2021-12-16T06:22:30.000Z
from django.db import models from project.models import Project from utils.django_utils.base_model import BaseModel # Create your models here. class Function(BaseModel): function_name = models.CharField(max_length=150, verbose_name='全局函数名称', help_text='全局函数名称') function_desc = models.CharField(max_length=25...
34.954545
119
0.742523
100
769
5.44
0.48
0.141544
0.066176
0.088235
0
0
0
0
0
0
0
0.009217
0.153446
769
21
120
36.619048
0.826421
0.031209
0
0
0
0
0.087483
0
0
0
0
0
0
1
0.071429
false
0
0.214286
0.071429
0.785714
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
b0361c18aa588ddb28bdd809f68046f13c198e67
1,789
py
Python
rbacProject/apps/system/migrations/0001_initial.py
xeroCBW/testmodel
6000d79f91d11bcf6ba76befb3a94a007231ecdc
[ "MIT" ]
null
null
null
rbacProject/apps/system/migrations/0001_initial.py
xeroCBW/testmodel
6000d79f91d11bcf6ba76befb3a94a007231ecdc
[ "MIT" ]
54
2020-06-24T07:12:19.000Z
2022-03-12T00:43:57.000Z
rbacProject/apps/system/migrations/0001_initial.py
xeroCBW/testmodel
6000d79f91d11bcf6ba76befb3a94a007231ecdc
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2020-06-17 09:21 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='EmailSetup', fields=[ ('id', models.AutoFie...
40.659091
114
0.571269
178
1,789
5.578652
0.393258
0.166163
0.100705
0.120846
0.463243
0.463243
0.396777
0.322256
0.322256
0.322256
0
0.025842
0.286193
1,789
43
115
41.604651
0.751762
0.025154
0
0.333333
1
0
0.136625
0
0
0
0
0
0
1
0
false
0.027778
0.027778
0
0.138889
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
b03f88e16c879a83208558d3fc39b1f8ba23e0d7
1,260
py
Python
src/Crypto/Cesar/cesarToTxtClass.py
edouard-lebas/CryptoGenerator
d43f2b3fa472493f49015e8402e382681692a63c
[ "MIT" ]
null
null
null
src/Crypto/Cesar/cesarToTxtClass.py
edouard-lebas/CryptoGenerator
d43f2b3fa472493f49015e8402e382681692a63c
[ "MIT" ]
null
null
null
src/Crypto/Cesar/cesarToTxtClass.py
edouard-lebas/CryptoGenerator
d43f2b3fa472493f49015e8402e382681692a63c
[ "MIT" ]
null
null
null
class cesarToTxtClass: def __init__(self, cesar, offset=None): self.cesar = cesar.decode("utf-8").upper() self.alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".decode("utf-8") if offset != None: self.offset = offset def processCesarWithOffset(self): decrypted = "" fo...
34.054054
68
0.493651
123
1,260
5.02439
0.260163
0.23301
0.165049
0.032362
0.313916
0.313916
0.313916
0.313916
0.20712
0.20712
0
0.008108
0.412698
1,260
36
69
35
0.827027
0
0
0.545455
0
0
0.028571
0.020635
0
0
0
0
0
1
0.090909
false
0
0
0
0.181818
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
b0459ab31de0abe03994e4d8b3589f512d689f69
525
py
Python
menu.py
magnoborgo/RotoPaintToSplineWarp2
dd4139c36f10c63ac84d8c4f44ef32f0d9faab0d
[ "BSD-3-Clause" ]
3
2016-07-07T05:50:03.000Z
2022-01-25T18:14:09.000Z
menu.py
magnoborgo/RotoPaintToSplineWarp2
dd4139c36f10c63ac84d8c4f44ef32f0d9faab0d
[ "BSD-3-Clause" ]
null
null
null
menu.py
magnoborgo/RotoPaintToSplineWarp2
dd4139c36f10c63ac84d8c4f44ef32f0d9faab0d
[ "BSD-3-Clause" ]
null
null
null
import nuke nuke.tprint('Loading RotopaintToSplineWarp_v2.py') try: from RotopaintToSplineWarp_v2 import * except: pass #=============================================================================== # BVFX ToolBar Menu definitions #=============================================================================...
37.5
108
0.531429
45
525
6.066667
0.688889
0.168498
0
0
0
0
0
0
0
0
0
0.010352
0.08
525
13
109
40.384615
0.554865
0.358095
0
0
0
0
0.428144
0.149701
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
b046300b981c773725f526bde993a097a7d89f16
530
py
Python
apps/api/urls.py
rddimon/test-product-scanner
e614e4c801e9235710b7c2a6956615c47dfc66a4
[ "MIT" ]
null
null
null
apps/api/urls.py
rddimon/test-product-scanner
e614e4c801e9235710b7c2a6956615c47dfc66a4
[ "MIT" ]
1
2017-12-14T06:52:30.000Z
2017-12-14T07:18:23.000Z
apps/api/urls.py
rddimon/test-product-scanner
e614e4c801e9235710b7c2a6956615c47dfc66a4
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from rest_framework import routers from apps.api import views from apps.api.viewsets import payment router = routers.DefaultRouter() router.register(r'number-of-products', payment.NumberOfProductsViewSet) router.register(r'crawls-per-month', payment.CrawlsPerMonthViewSet) ro...
29.444444
72
0.775472
66
530
6.212121
0.5
0.102439
0.109756
0
0
0
0
0
0
0
0
0
0.098113
530
17
73
31.176471
0.857741
0
0
0
0
0
0.14717
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
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
b04c4fa82b964be326bed724fb232deff833597a
4,207
py
Python
CST1101_WK07CL12_Functions_Examples_15-Mar-2021.py
ProfessorPatrickOnline/AlgorithmicProblemSolving
8ddc2480a5922dde37140e64d48058930a546901
[ "MIT" ]
2
2021-03-15T16:33:01.000Z
2021-03-24T19:31:30.000Z
CST1101_WK07CL12_Functions_Examples_15-Mar-2021.py
ProfessorPatrickOnline/AlgorithmicProblemSolving
8ddc2480a5922dde37140e64d48058930a546901
[ "MIT" ]
null
null
null
CST1101_WK07CL12_Functions_Examples_15-Mar-2021.py
ProfessorPatrickOnline/AlgorithmicProblemSolving
8ddc2480a5922dde37140e64d48058930a546901
[ "MIT" ]
9
2021-03-15T12:38:26.000Z
2021-03-15T16:45:26.000Z
# Topic - Functions: Examples and Exercises # CST1101-OLXX Spr-2021 WK07CL12 Review # by Professor Patrick PaSlattery@CityTech.CUNY.edu ### VOID FUNCTION print("Example of a void function for its side effects") # a simple function which prints whatever argument it receives def print_void(argument): """T...
32.361538
84
0.701925
604
4,207
4.854305
0.215232
0.028649
0.052524
0.059686
0.503752
0.488404
0.398022
0.34618
0.34618
0.34618
0
0.01052
0.209175
4,207
129
85
32.612403
0.870754
0.447587
0
0.432836
0
0
0.391098
0
0
0
0
0
0
1
0.104478
false
0
0
0
0.149254
0.507463
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
b055e141091e745cf0d474840b9594aad57dcca0
807
py
Python
test/unit/test_clipboardtool.py
muchu1983/104_cameo
8c7f78de198a5bd8d870589402e3b7e8b59f520a
[ "BSD-3-Clause" ]
null
null
null
test/unit/test_clipboardtool.py
muchu1983/104_cameo
8c7f78de198a5bd8d870589402e3b7e8b59f520a
[ "BSD-3-Clause" ]
null
null
null
test/unit/test_clipboardtool.py
muchu1983/104_cameo
8c7f78de198a5bd8d870589402e3b7e8b59f520a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (C) 2015, MuChu Hsu Contributed by Muchu Hsu (muchu1983@gmail.com) This file is part of BSD license <https://opensource.org/licenses/BSD-3-Clause> """ import unittest import logging from cameo.clipboardtool import ClipboardTool """ 測試 剪貼簿存取工具 """ class ClipboardToolTest(unittest...
19.682927
64
0.670384
96
807
5.53125
0.677083
0.030132
0.022599
0.026365
0
0
0
0
0
0
0
0.015674
0.209418
807
40
65
20.175
0.816614
0.260223
0
0.125
0
0
0.113274
0.070796
0
0
0
0
0.0625
1
0.1875
false
0.125
0.1875
0
0.4375
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
b0594ae49374433f3aa1f3742afab1c61b1b7b74
444
py
Python
py_code/test_0.py
marcoromanelli-github/GreedyFeatureSelection
d8fcba2701422c689e526b6a0f70bb121cca323c
[ "MIT" ]
null
null
null
py_code/test_0.py
marcoromanelli-github/GreedyFeatureSelection
d8fcba2701422c689e526b6a0f70bb121cca323c
[ "MIT" ]
null
null
null
py_code/test_0.py
marcoromanelli-github/GreedyFeatureSelection
d8fcba2701422c689e526b6a0f70bb121cca323c
[ "MIT" ]
null
null
null
import numpy as np from gfs import PygfsManager def test0(): feat = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9], [1, 1, 1]]) labels = [1, 3, 4, 5] gfsMan = PygfsManager(feat, labels, "shannon".encode()) print("Selected features ---> ", gfsMan.greedyAlgorithm(2)) gfsMan = PygfsManager(feat, labels, ...
24.666667
65
0.608108
58
444
4.517241
0.551724
0.015267
0.022901
0.21374
0.374046
0.374046
0.374046
0
0
0
0
0.056338
0.20045
444
17
66
26.117647
0.68169
0
0
0.181818
0
0
0.148649
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.272727
0.181818
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
b061e1568627ba39223550341c9594a791a27bf2
2,632
py
Python
rayonix_detector_XPP_shmem_server.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
null
null
null
rayonix_detector_XPP_shmem_server.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
1
2019-10-22T21:28:31.000Z
2019-10-22T21:39:12.000Z
rayonix_detector_XPP_shmem_server.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
2
2019-06-06T15:06:46.000Z
2020-07-20T02:03:22.000Z
#!/bin/env python """ Acquire a series of images using the XPP Rayonix detector with the LCLS data acquisition system and a server running on a "mond" node. This script listens to a shared memory server of the DAQ system and resends images to a client program (Lauecollect) running on "xpp-daq" or "xpp-control". Setup:...
29.909091
104
0.669453
395
2,632
4.394937
0.44557
0.031106
0.016129
0.025346
0.029954
0.029954
0.029954
0
0
0
0
0.053952
0.197188
2,632
87
105
30.252874
0.767629
0.12386
0
0
0
0
0.071237
0.02571
0
0
0
0
0
0
null
null
0.017857
0.107143
null
null
0.053571
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
b06d500456a17fff250fdc19fdba3a4c134815c4
6,242
py
Python
tests/cli/test_status.py
lokijuhy/renku-python
0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f
[ "Apache-2.0" ]
null
null
null
tests/cli/test_status.py
lokijuhy/renku-python
0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f
[ "Apache-2.0" ]
null
null
null
tests/cli/test_status.py
lokijuhy/renku-python
0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017-2021 - Swiss Data Science Center (SDSC) # A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and # Eidgenössische Technische Hochschule Zürich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in c...
39.0125
99
0.706825
861
6,242
5.020906
0.178862
0.049965
0.087439
0.083276
0.714087
0.670368
0.613232
0.550081
0.479991
0.463798
0
0.016428
0.161327
6,242
159
100
39.257862
0.80936
0.152035
0
0.531915
0
0
0.201487
0.009722
0
0
0
0
0.468085
1
0.053191
false
0
0.042553
0
0.095745
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
c65d268e17ddada13f57df3482c5e152addc4044
676
py
Python
localization/scripts/sort_loc.py
Ubastic/SlayTheSpire_Modify
0ed92839fff2b35fc602cb879c32aeb0af322cab
[ "Apache-2.0" ]
null
null
null
localization/scripts/sort_loc.py
Ubastic/SlayTheSpire_Modify
0ed92839fff2b35fc602cb879c32aeb0af322cab
[ "Apache-2.0" ]
2
2021-12-14T20:46:50.000Z
2021-12-14T21:40:10.000Z
localization/scripts/sort_loc.py
Ubastic/SlayTheSpire_Modify
0ed92839fff2b35fc602cb879c32aeb0af322cab
[ "Apache-2.0" ]
null
null
null
import json import sys import io from util import read_json, flatten, get_json_files, get_loc_dirs if sys.version_info.major < 3: raise Exception("must use python 3") def write_json(filename, data): # TODO: replace with util.write_json once sorting loc files is common. with io.open(filename, 'w', encoding=...
25.037037
103
0.702663
106
676
4.216981
0.556604
0.080537
0.053691
0
0
0
0
0
0
0
0
0.007353
0.195266
676
26
104
26
0.814338
0.100592
0
0
0
0
0.05124
0
0
0
0
0.038462
0
1
0.117647
false
0
0.235294
0
0.352941
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
c668f5b013583437e8b15720641b5bff93215e37
1,190
py
Python
bloc_client/internal/rabbitmq.py
fBloc/bloc-client-python
68b61610db0d0a30ba21807a18b4c81db8327500
[ "MIT" ]
null
null
null
bloc_client/internal/rabbitmq.py
fBloc/bloc-client-python
68b61610db0d0a30ba21807a18b4c81db8327500
[ "MIT" ]
null
null
null
bloc_client/internal/rabbitmq.py
fBloc/bloc-client-python
68b61610db0d0a30ba21807a18b4c81db8327500
[ "MIT" ]
null
null
null
from typing import Any from dataclasses import dataclass, field import pika ExchangeName = "bloc_topic_exchange" @dataclass class RabbitMQ: user: str password: str host: str port: int v_host: str channel: Any = field(init=False) def __post_init__(self): connection = pika.Blockin...
28.333333
97
0.653782
130
1,190
5.784615
0.4
0.058511
0.058511
0.079787
0.215426
0.215426
0.215426
0.215426
0.215426
0.215426
0
0.001138
0.261345
1,190
41
98
29.02439
0.85438
0.021008
0
0
0
0
0.024936
0
0
0
0
0
0
1
0.0625
false
0.0625
0.09375
0
0.375
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
c669b734a4dd7b4d3ee133c4fa4748cd3b8c1de3
2,688
py
Python
SSolver.py
Hexman768/SudokuSolver
e65be1bc84f540942f40ef37c6273e09dd7ef059
[ "MIT" ]
null
null
null
SSolver.py
Hexman768/SudokuSolver
e65be1bc84f540942f40ef37c6273e09dd7ef059
[ "MIT" ]
null
null
null
SSolver.py
Hexman768/SudokuSolver
e65be1bc84f540942f40ef37c6273e09dd7ef059
[ "MIT" ]
null
null
null
board = [[7,8,0,4,0,0,1,2,0], [6,0,0,0,7,5,0,0,9], [0,0,0,6,0,1,0,7,8], [0,0,7,0,4,0,2,6,0], [0,0,1,0,5,0,9,3,0], [9,0,4,0,6,0,0,0,5], [0,7,0,3,0,0,0,1,2], [1,2,0,0,0,7,4,0,0], [0,4,9,2,0,6,0,0,7]] def solve(): if (checkBoar...
34.461538
72
0.327753
359
2,688
2.454039
0.128134
0.040863
0.079455
0.051078
0.505108
0.450624
0.450624
0.427923
0.373439
0.309875
0
0.097366
0.533854
2,688
77
73
34.909091
0.605746
0.00558
0
0.434783
0
0
0.039831
0
0
0
0
0
0
1
0.072464
false
0
0
0
0.333333
0.043478
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
c66e6033876eee24c42dc6ab4ff04551891c29b2
4,632
py
Python
visafinder/models.py
taiwangoldcard/twvisafinder
9a5a1bf475560ff82a352c55910b13e68118c0a4
[ "Apache-2.0" ]
1
2020-07-20T05:39:40.000Z
2020-07-20T05:39:40.000Z
visafinder/models.py
taiwangoldcard/twvisafinder
9a5a1bf475560ff82a352c55910b13e68118c0a4
[ "Apache-2.0" ]
4
2020-07-02T05:10:40.000Z
2021-09-23T03:16:36.000Z
visafinder/models.py
taiwangoldcard/twvisafinder
9a5a1bf475560ff82a352c55910b13e68118c0a4
[ "Apache-2.0" ]
1
2020-09-12T08:55:02.000Z
2020-09-12T08:55:02.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.utils import timezone from django_countries.fields import CountryField class VisaCategory(models.Model): name = models.CharField(max_length=100) description = models.CharField(max_length=200) def __s...
36.472441
98
0.641192
496
4,632
5.868952
0.423387
0.046376
0.05359
0.070079
0.307111
0.282377
0.193061
0.138097
0.138097
0.138097
0
0.008442
0.207254
4,632
126
99
36.761905
0.784314
0.014465
0
0.175926
0
0
0.188295
0
0
0
0
0
0
1
0.046296
false
0
0.037037
0.046296
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
c672dd728f416fa4a40e6abe079d13fba6e2c6ee
5,105
py
Python
exordium/migrations/0001_initial.py
apocalyptech/exordium
a582380e34d247dd07a9fd5161febe8087760054
[ "MIT", "BSD-3-Clause" ]
3
2017-04-22T11:09:12.000Z
2020-01-28T12:14:27.000Z
exordium/migrations/0001_initial.py
apocalyptech/exordium
a582380e34d247dd07a9fd5161febe8087760054
[ "MIT", "BSD-3-Clause" ]
5
2021-03-04T20:52:32.000Z
2022-03-15T19:27:35.000Z
exordium/migrations/0001_initial.py
apocalyptech/exordium
a582380e34d247dd07a9fd5161febe8087760054
[ "MIT", "BSD-3-Clause" ]
1
2017-11-11T08:06:51.000Z
2017-11-11T08:06:51.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-30 18:47 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations ...
52.628866
183
0.584133
506
5,105
5.764822
0.237154
0.097703
0.061707
0.082276
0.528625
0.488858
0.435722
0.394241
0.360645
0.321563
0
0.019494
0.256415
5,105
96
184
53.177083
0.748946
0.012929
0
0.329545
1
0
0.117752
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.090909
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
c674646bc427c3b18dc51b1172575aa2e33cf642
2,876
py
Python
projects/day051/twitter-complaint-bot.py
gabrielmdr/100-days-of-code
095357e3edb2479efcba81851614901c0000389d
[ "MIT" ]
null
null
null
projects/day051/twitter-complaint-bot.py
gabrielmdr/100-days-of-code
095357e3edb2479efcba81851614901c0000389d
[ "MIT" ]
null
null
null
projects/day051/twitter-complaint-bot.py
gabrielmdr/100-days-of-code
095357e3edb2479efcba81851614901c0000389d
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.common.exceptions import NoSuchElementException import time CHROME_DRIVER_PATH = "C:\\Development\\chromedriver.exe" TWITTER_EMAIL = "Your Twitter account e-mail address" TWITTER_PASSWORD = "Your Twitter account password" PROMISED_DOWN = 20 PROMISED_UP = 7.5 class Intern...
50.45614
260
0.651947
435
2,876
4.147126
0.229885
0.192905
0.154656
0.093126
0.380266
0.378603
0.354767
0.33592
0.264412
0.247228
0
0.02018
0.190195
2,876
56
261
51.357143
0.754401
0
0
0.08
0
0.14
0.366829
0.27121
0
0
0
0
0
1
0.06
false
0.06
0.06
0
0.18
0.06
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
c675b74078fdc8567ea2be181c76fee78293a249
333
py
Python
Course_2/Week_4/streams.py
internetworksio/Google-ITAutomation-Python
6027750a33e8df883d762223bb0c4a5a95395bc0
[ "MIT" ]
2
2021-03-23T16:02:32.000Z
2022-03-13T09:32:56.000Z
Course_2/Week_4/streams.py
internetworksio/Google-ITAutomation-Python
6027750a33e8df883d762223bb0c4a5a95395bc0
[ "MIT" ]
null
null
null
Course_2/Week_4/streams.py
internetworksio/Google-ITAutomation-Python
6027750a33e8df883d762223bb0c4a5a95395bc0
[ "MIT" ]
7
2021-01-14T05:39:54.000Z
2022-03-13T09:33:01.000Z
#!/usr/bin/env python3 """ This script is used for course notes. Author: Erick Marin Date: 12/19/2020 """ data = input("This will come from STDIN: ") print("Now we write it to STDOUT: " + data) # Generating a standard error (type) by concatenating a string with an integer print("Now we generate an error to STDERR: "...
23.785714
78
0.702703
55
333
4.254545
0.818182
0.068376
0.08547
0
0
0
0
0
0
0
0
0.036765
0.183183
333
13
79
25.615385
0.823529
0.522523
0
0
0
0
0.6
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
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
c678e10feedbccce944c147fb062aaa2aae8259d
5,328
py
Python
AppSettings.py
FrUh/userpass-manager
340a57786169333cff0687d1568729e7acf2275c
[ "MIT" ]
1
2016-03-18T09:59:22.000Z
2016-03-18T09:59:22.000Z
AppSettings.py
FrUh/userpass-manager
340a57786169333cff0687d1568729e7acf2275c
[ "MIT" ]
2
2015-10-11T22:12:58.000Z
2015-10-17T19:33:20.000Z
AppSettings.py
FrUh/userpass-manager
340a57786169333cff0687d1568729e7acf2275c
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ MIT License Copyright (c) 2013-2016 Frantisek Uhrecky 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, includ...
28.340426
111
0.685435
738
5,328
4.806233
0.296748
0.050747
0.040598
0.027629
0.245842
0.236256
0.236256
0.236256
0.218776
0.218776
0
0.008383
0.216404
5,328
188
112
28.340426
0.841198
0.397898
0
0.101695
0
0
0.131772
0
0
0
0
0
0
1
0.118644
false
0.050847
0.067797
0
0.254237
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
c67e5a6fdcbd223c30896d1b8c1617c7a9b4005d
1,541
py
Python
src/0010对称二叉树/index.py
zzh2036/OneDayOneLeetcode
1198692e68f8f0dbf15555e45969122e1a92840a
[ "MIT" ]
null
null
null
src/0010对称二叉树/index.py
zzh2036/OneDayOneLeetcode
1198692e68f8f0dbf15555e45969122e1a92840a
[ "MIT" ]
null
null
null
src/0010对称二叉树/index.py
zzh2036/OneDayOneLeetcode
1198692e68f8f0dbf15555e45969122e1a92840a
[ "MIT" ]
null
null
null
''' 给定一个二叉树,检查它是否是镜像对称的 例如,二叉树 [1,2,2,3,4,4,3] 是对称的。 1 / \ 2 2 / \ / \ 3 4 4 3 但是下面这个 [1,2,2,null,3,null,3] 则不是镜像对称的: 1 / \ 2 2 \ \ 3 3 进阶: 你可以运用递归和迭代两种方法解决这个问题吗? ''' # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # ...
20.546667
84
0.473069
197
1,541
3.680203
0.294416
0.048276
0.016552
0.016552
0.409655
0.342069
0.342069
0.322759
0.322759
0.322759
0
0.031425
0.421804
1,541
74
85
20.824324
0.782267
0.22453
0
0.558824
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.029412
0
0.558824
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
c6844c750d43ad925e651c20d49595d8ff367eef
446
py
Python
tests/test_cipher.py
shukurovasif/Python
1e0b9f8d1b02d27e5fee731dbb78d05c05a23f8b
[ "MIT" ]
null
null
null
tests/test_cipher.py
shukurovasif/Python
1e0b9f8d1b02d27e5fee731dbb78d05c05a23f8b
[ "MIT" ]
null
null
null
tests/test_cipher.py
shukurovasif/Python
1e0b9f8d1b02d27e5fee731dbb78d05c05a23f8b
[ "MIT" ]
null
null
null
import unittest from src.caesar_cipher.caesar_cipher import Caesar class CipherTest(unittest.TestCase): def setUp(self): self.caesar = Caesar(1, 'abc') def test_encrypt(self): encrypted = self.caesar.encrypt() self.assertEqual(encrypted, 'bcd') def test_decrypt(self): ...
23.473684
50
0.634529
49
446
5.693878
0.428571
0.143369
0.100358
0
0
0
0
0
0
0
0
0.003021
0.257848
446
18
51
24.777778
0.839879
0
0
0
0
0
0.020179
0
0
0
0
0
0.166667
1
0.25
false
0
0.166667
0
0.5
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
c686b3b8b539bfe7a8a88499b00e4c8543ecae97
642
py
Python
statsmodels/info.py
yarikoptic/statsmodels
f990cb1a1ef0c9883c9394444e6f9d027efabec6
[ "BSD-3-Clause" ]
34
2018-07-13T11:30:46.000Z
2022-01-05T13:48:10.000Z
venv/lib/python3.6/site-packages/statsmodels/info.py
HeyWeiPan/vnpy_crypto
844381797a475a01c05a4e162592a5a6e3a48032
[ "MIT" ]
6
2015-08-28T16:59:03.000Z
2019-04-12T22:29:01.000Z
venv/lib/python3.6/site-packages/statsmodels/info.py
HeyWeiPan/vnpy_crypto
844381797a475a01c05a4e162592a5a6e3a48032
[ "MIT" ]
28
2015-04-01T20:02:25.000Z
2021-07-03T00:09:28.000Z
""" Statistical models - standard `regression` models - `GLS` (generalized least squares regression) - `OLS` (ordinary least square regression) - `WLS` (weighted least square regression) - `GLASAR` (GLS with autoregressive errors model) - `GLM` (generalized linear models) - robust statistical models - ...
23.777778
55
0.699377
69
642
6.434783
0.681159
0.076577
0.094595
0
0
0
0
0
0
0
0
0.001912
0.185358
642
26
56
24.692308
0.847036
0.830218
0
0
0
0
0.287129
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c687a467871bf155c67343c044f3f07b013cbdad
3,995
py
Python
pybingwallpaper/webutil.py
jing5460/pybingwallpaper
5150d72e4427cf6ca0eb441a62961682de11839f
[ "MIT" ]
571
2015-01-05T16:24:18.000Z
2022-03-27T02:13:03.000Z
pybingwallpaper/webutil.py
jing5460/pybingwallpaper
5150d72e4427cf6ca0eb441a62961682de11839f
[ "MIT" ]
44
2015-01-19T05:37:22.000Z
2021-11-20T18:29:46.000Z
pybingwallpaper/webutil.py
jing5460/pybingwallpaper
5150d72e4427cf6ca0eb441a62961682de11839f
[ "MIT" ]
121
2015-01-09T08:30:42.000Z
2022-03-11T02:21:33.000Z
#!/usr/bin/env python import gzip import ssl from io import BytesIO from . import log from .ntlmauth import HTTPNtlmAuthHandler from .py23 import get_moved_attr, import_moved _logger = log.getChild('webutil') Request = get_moved_attr('urllib2', 'urllib.request', 'Request') urlopen = get_moved_attr('urllib2', 'urllib...
35.353982
114
0.638048
501
3,995
4.954092
0.319361
0.044319
0.038678
0.022965
0.232071
0.191378
0.088638
0.066882
0
0
0
0.015102
0.237547
3,995
112
115
35.669643
0.799737
0.005006
0
0.225806
0
0.010753
0.150981
0.006039
0
0
0
0
0
1
0.064516
false
0.064516
0.075269
0
0.236559
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
c68bad95c4e672ee2bedabc2bbab4e630ffbb47b
737
py
Python
src/database.py
Alchemication/third-eye
0935c31cbe24c01dfbe9a8e02b2cef602a8eacbe
[ "MIT" ]
null
null
null
src/database.py
Alchemication/third-eye
0935c31cbe24c01dfbe9a8e02b2cef602a8eacbe
[ "MIT" ]
null
null
null
src/database.py
Alchemication/third-eye
0935c31cbe24c01dfbe9a8e02b2cef602a8eacbe
[ "MIT" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker, scoped_session from config import DB_FILE_PATH, LOG_DB_EVENTS # Sql lite connection params, change connection params below to other DB for more production-ready code engine = create_eng...
49.133333
103
0.744912
95
737
5.578947
0.589474
0.079245
0.037736
0
0
0
0
0
0
0
0
0.006579
0.175034
737
14
104
52.642857
0.865132
0.256445
0
0
0
0
0.088073
0.044037
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
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
c68de9add5718f79dd1dd53174aec36a9976cd31
2,650
py
Python
docker/deps/torchlayers/torchlayers/regularization.py
DenDen047/SpatialNetworks
62a076d12af474b19b406e605d970662d9699cdf
[ "MIT" ]
3
2019-12-15T23:29:11.000Z
2020-05-08T03:26:20.000Z
docker/deps/torchlayers/torchlayers/regularization.py
DenDen047/SpatialNetworks
62a076d12af474b19b406e605d970662d9699cdf
[ "MIT" ]
null
null
null
docker/deps/torchlayers/torchlayers/regularization.py
DenDen047/SpatialNetworks
62a076d12af474b19b406e605d970662d9699cdf
[ "MIT" ]
3
2019-12-30T15:49:57.000Z
2020-04-30T08:06:18.000Z
import torch from ._dev_utils import modules class StochasticDepth(torch.nn.Module): """Randomly skip module during training with specified `p`, leaving inference untouched. Originally proposed by Gao Huang et. al in `Deep Networks with Stochastic Depth <www.arxiv.org/abs/1512.03385>`__. Originally...
36.805556
155
0.673585
358
2,650
4.893855
0.513966
0.027968
0.02968
0.032534
0.026256
0
0
0
0
0
0
0.015241
0.232453
2,650
71
156
37.323944
0.846116
0.62566
0
0
0
0
0.065896
0
0
0
0
0
0
1
0.190476
false
0
0.095238
0.047619
0.52381
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
c6991a801df0308c7227211edcd7e628100ef924
284
py
Python
ngram_bangla.py
mahirsust/RAKE-BengaliKeywordExtraction
82ffd2b12a868823d7002660fcda84c5e904c974
[ "MIT" ]
3
2018-03-28T05:37:06.000Z
2021-04-06T17:54:20.000Z
ngram_bangla.py
mahirsust/RAKE-BengaliKeywordExtraction
82ffd2b12a868823d7002660fcda84c5e904c974
[ "MIT" ]
1
2018-04-16T17:13:40.000Z
2018-04-16T17:13:40.000Z
ngram_bangla.py
mahirsust/RAKE-BengaliKeywordExtraction
82ffd2b12a868823d7002660fcda84c5e904c974
[ "MIT" ]
2
2018-04-06T20:32:36.000Z
2020-07-11T14:54:54.000Z
from nltk import ngrams sample_file = open('H:/xampp/htdocs/RAKE-BengaliKeywordExtraction/oneline_bangla.txt', 'r',encoding='utf8') text = sample_file.read() n = 3 sixgrams = ngrams(text.split(), n) for grams in sixgrams: print(grams, file=open("output2.txt", "a", encoding='utf8'))
40.571429
107
0.735915
42
284
4.904762
0.714286
0.097087
0
0
0
0
0
0
0
0
0
0.015564
0.09507
284
7
108
40.571429
0.785992
0
0
0
0
0
0.298246
0.224561
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
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
c69d3cbcd2f2e6a6975cf761fbdd8c68b2bb34f6
833
py
Python
setup.py
notpeter/legiscrape
f90375dbfffa8aef62807ba34e9225b3f0b3776e
[ "MIT" ]
3
2019-01-03T16:33:45.000Z
2020-07-24T00:42:53.000Z
setup.py
notpeter/legiscrape
f90375dbfffa8aef62807ba34e9225b3f0b3776e
[ "MIT" ]
1
2018-09-12T16:46:47.000Z
2018-09-12T16:46:47.000Z
setup.py
notpeter/legiscrape
f90375dbfffa8aef62807ba34e9225b3f0b3776e
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='legiscrape', version='0.1.0', description='Legistar Scraper', long_description=( 'Legiscrape - Download Video from Legistar Meetings / Granicus Video Toolbox.' ), classifiers=[ 'Development Status :: 3 - Alpha', 'License...
30.851852
86
0.605042
81
833
6.123457
0.740741
0.040323
0
0
0
0
0
0
0
0
0
0.009709
0.258103
833
26
87
32.038462
0.79288
0
0
0
0
0
0.463385
0.068427
0
0
0
0
0
1
0
true
0
0.04
0
0.04
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
c6ac16548b8e8dbd03c7dd828b2f08dd5d9bd025
1,593
py
Python
authentication/forms.py
klevamane/zuriboard-blog
ad73802923611c8c55aa4fe4855aa263fe179620
[ "MIT" ]
null
null
null
authentication/forms.py
klevamane/zuriboard-blog
ad73802923611c8c55aa4fe4855aa263fe179620
[ "MIT" ]
null
null
null
authentication/forms.py
klevamane/zuriboard-blog
ad73802923611c8c55aa4fe4855aa263fe179620
[ "MIT" ]
null
null
null
from django.contrib.auth import authenticate from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from django import forms from authentication.models import User class SignupForm(UserCreationForm): email = forms.EmailField(required=True) firstname = forms.CharField(max_length=100, requi...
32.510204
90
0.622097
167
1,593
5.832335
0.42515
0.045175
0.061602
0.043121
0.078029
0.078029
0.078029
0
0
0
0
0.009475
0.271186
1,593
48
91
33.1875
0.829457
0.367232
0
0
0
0
0.067677
0
0
0
0
0
0
1
0.043478
false
0.043478
0.173913
0
0.565217
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
c6c15e89ccf4daa866adbebc113c115338ca36e1
538
py
Python
va_explorer/va_analytics/migrations/0003_auto_20210805_2354.py
VA-Explorer/va_explorer
e43cfbff0ce5209c12134b7ac4ce439db6fc87a2
[ "Apache-2.0" ]
null
null
null
va_explorer/va_analytics/migrations/0003_auto_20210805_2354.py
VA-Explorer/va_explorer
e43cfbff0ce5209c12134b7ac4ce439db6fc87a2
[ "Apache-2.0" ]
125
2020-10-07T12:00:15.000Z
2022-03-31T21:29:21.000Z
va_explorer/va_analytics/migrations/0003_auto_20210805_2354.py
VA-Explorer/va_explorer
e43cfbff0ce5209c12134b7ac4ce439db6fc87a2
[ "Apache-2.0" ]
2
2020-10-29T16:08:42.000Z
2020-12-08T19:03:41.000Z
# Generated by Django 3.1.5 on 2021-08-05 23:54 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('va_analytics', '0002_update_dashboard_permissions'), ] operations = [ migrations.AlterModelOptions( name='dashboard', option...
29.888889
218
0.639405
58
538
5.793103
0.706897
0.071429
0
0
0
0
0
0
0
0
0
0.045024
0.215613
538
17
219
31.647059
0.751185
0.083643
0
0
1
0
0.393075
0.06721
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
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
c6c288a0f3c018f0f024cc4c087e4d43ba0ae61f
960
py
Python
main.py
Cholly-Tse/cordcloud-action
0ce6028993c3caca67c5b314a7792fef8284388f
[ "MIT" ]
1
2021-12-15T01:50:08.000Z
2021-12-15T01:50:08.000Z
main.py
Cholly-Tse/cordcloud-action
0ce6028993c3caca67c5b314a7792fef8284388f
[ "MIT" ]
null
null
null
main.py
Cholly-Tse/cordcloud-action
0ce6028993c3caca67c5b314a7792fef8284388f
[ "MIT" ]
null
null
null
from actions_toolkit import core from app.action import Action # 获取输入 email = core.get_input('email', required=True) passwd = core.get_input('passwd', required=True) host = core.get_input('host') or 'cordcloud.us,cordcloud.one,cordcloud.biz,c-cloud.xyz' pushplus_key = core.get_input('pushplus_key', required=True) # ...
28.235294
87
0.639583
145
960
4.193103
0.510345
0.046053
0.078947
0
0
0
0
0
0
0
0
0.00133
0.216667
960
33
88
29.090909
0.803191
0.040625
0
0
0
0
0.270742
0.056769
0
0
0
0
0
1
0
false
0.086957
0.086957
0
0.086957
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
c6cab4a868fb10bd80c897456777eb07eff97a98
1,580
py
Python
PolTools/utils/heatmap_utils/set_matrix_bounds.py
GeoffSCollins/PolTools
1ea9b166efc56610c385802f9491b4c8ec25a1d0
[ "MIT" ]
null
null
null
PolTools/utils/heatmap_utils/set_matrix_bounds.py
GeoffSCollins/PolTools
1ea9b166efc56610c385802f9491b4c8ec25a1d0
[ "MIT" ]
null
null
null
PolTools/utils/heatmap_utils/set_matrix_bounds.py
GeoffSCollins/PolTools
1ea9b166efc56610c385802f9491b4c8ec25a1d0
[ "MIT" ]
null
null
null
from PolTools.utils.make_random_filename import generate_random_filename def set_matrix_bounds(matrix_filename, minimum_value, maximum_value): """ Sets minimum and maximum values for the matrix by replacing values smaller than the minimum value with the minimum value and replacing values larger than the m...
30.980392
118
0.656329
209
1,580
4.741627
0.282297
0.090817
0.068618
0.045409
0.078708
0
0
0
0
0
0
0.001715
0.262025
1,580
50
119
31.6
0.848199
0.243671
0
0.076923
1
0
0.004378
0
0
0
0
0
0
1
0.038462
false
0
0.038462
0
0.115385
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
c6cbb5caa5db831eb874586cc4284c546526818d
242
py
Python
tests/agent_finder_test.py
pnarvor/nephelae_simulation
7b3f3a2c2aaa49324f8b09a6ab62819c280efa4c
[ "BSD-3-Clause" ]
null
null
null
tests/agent_finder_test.py
pnarvor/nephelae_simulation
7b3f3a2c2aaa49324f8b09a6ab62819c280efa4c
[ "BSD-3-Clause" ]
null
null
null
tests/agent_finder_test.py
pnarvor/nephelae_simulation
7b3f3a2c2aaa49324f8b09a6ab62819c280efa4c
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/python3 import os import sys sys.path.append("../") import signal import ivy_ros_tunnel as irt finder = irt.IvyAgentFinder() signal.signal(signal.SIGINT, lambda signal, frame: finder.stop()) finder.start() signal.pause()
12.1
65
0.727273
34
242
5.117647
0.647059
0.137931
0
0
0
0
0
0
0
0
0
0.004762
0.132231
242
19
66
12.736842
0.82381
0.07438
0
0
0
0
0.013761
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
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
c6cc98b3103b159d79deac9bc44c5feef2963767
2,093
py
Python
Tools/disass/sample/apt1_cookiebag_parser.py
upxnoops/RE-Toolkit
4d1faecbe6c4498c9d2a0b607aaaeef393076062
[ "MIT" ]
null
null
null
Tools/disass/sample/apt1_cookiebag_parser.py
upxnoops/RE-Toolkit
4d1faecbe6c4498c9d2a0b607aaaeef393076062
[ "MIT" ]
null
null
null
Tools/disass/sample/apt1_cookiebag_parser.py
upxnoops/RE-Toolkit
4d1faecbe6c4498c9d2a0b607aaaeef393076062
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- ############################################################################# ## ## ## This file is part of Disass ## ## ...
36.086207
118
0.474439
189
2,093
5.063492
0.52381
0.050157
0.062696
0.087774
0.142111
0.104493
0.104493
0.104493
0.104493
0.104493
0
0.011861
0.355471
2,093
58
119
36.086207
0.697554
0.379838
0
0.153846
0
0
0.190736
0
0
0
0
0
0
0
null
null
0
0.115385
null
null
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
1
0
0
0
0
0
0
0
0
1
c6d620c44811c72ed54cfdf3c72e1b630e4ad832
248
py
Python
local_runner.py
mirzawaqasahmed/F5-Migration
27f9e1c8a92a1363bdf39897e485debdf8fbb7ad
[ "Apache-2.0" ]
1
2019-12-05T14:24:41.000Z
2019-12-05T14:24:41.000Z
local_runner.py
mirzawaqasahmed/F5-Migration
27f9e1c8a92a1363bdf39897e485debdf8fbb7ad
[ "Apache-2.0" ]
null
null
null
local_runner.py
mirzawaqasahmed/F5-Migration
27f9e1c8a92a1363bdf39897e485debdf8fbb7ad
[ "Apache-2.0" ]
null
null
null
import sys from app.f5_mig import * if len(sys.argv)>1: file_names="" for i in sys.argv[1:]: file_names=file_names+"$val$"+i fun_f5_mig(file_names[5:], 'local', 0) else: fun_f5_mig(input("Please provide path to config files\n"), 'local', 0)
22.545455
71
0.693548
48
248
3.395833
0.604167
0.220859
0.09816
0.147239
0.208589
0
0
0
0
0
0
0.037209
0.133065
248
10
72
24.8
0.72093
0
0
0
0
0
0.209677
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
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
c6da3967c71835fe358f3ec4c0cf910d44461aa5
332
py
Python
indifferent/__init__.py
LandRegistry/audit
f0404195b0c90d5f96c4ce523ac8a179a1b479d5
[ "MIT" ]
null
null
null
indifferent/__init__.py
LandRegistry/audit
f0404195b0c90d5f96c4ce523ac8a179a1b479d5
[ "MIT" ]
null
null
null
indifferent/__init__.py
LandRegistry/audit
f0404195b0c90d5f96c4ce523ac8a179a1b479d5
[ "MIT" ]
null
null
null
import os, sys from flask import Flask app = Flask(__name__) # add config app.config.from_object('config') if not os.environ.get('REDIS_URL'): print "REDIS_URL not set. Using default=[%s]" % app.config['REDIS_URL'] if not os.environ.get('REDIS_NS'): print "REDIS_NS not set. Using default=[%s]" % app.config[...
23.714286
75
0.701807
55
332
4.036364
0.4
0.121622
0.063063
0.126126
0.495496
0.495496
0.297297
0.297297
0
0
0
0
0.144578
332
13
76
25.538462
0.78169
0.03012
0
0
0
0
0.353125
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0.25
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
c6da5e98e98673a58586fde93fd5e7d02a1727ac
1,342
py
Python
core/models/users.py
domlysi/django-rest-skeleton
33d8dd694b832dbbe6500318b17a0fbe0cdec9a0
[ "MIT" ]
null
null
null
core/models/users.py
domlysi/django-rest-skeleton
33d8dd694b832dbbe6500318b17a0fbe0cdec9a0
[ "MIT" ]
null
null
null
core/models/users.py
domlysi/django-rest-skeleton
33d8dd694b832dbbe6500318b17a0fbe0cdec9a0
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.contrib.auth.base_user import BaseUserManager from django.contrib.auth.models import AbstractUser from django.db import models from django.utils.translation import ugettext_lazy as _ class CustomUserManager(BaseUserManager): def create_user(self, email, p...
26.84
72
0.637854
154
1,342
5.422078
0.415584
0.05988
0.061078
0.075449
0.22515
0.22515
0.158084
0.088623
0
0
0
0.003115
0.282414
1,342
49
73
27.387755
0.863967
0.092399
0
0.114286
0
0
0.042699
0
0
0
0
0
0
1
0.057143
false
0.114286
0.142857
0
0.457143
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
c6f13bd815b8efb3b59b2d4a5c828843a6ea377c
2,568
py
Python
jupyter/aBasic/a_datatype_class/Ex02_number.py
WoolinChoi/test
a0f9c8ecc63443acaae61d744eecec6c943d3a26
[ "MIT" ]
null
null
null
jupyter/aBasic/a_datatype_class/Ex02_number.py
WoolinChoi/test
a0f9c8ecc63443acaae61d744eecec6c943d3a26
[ "MIT" ]
1
2021-03-30T09:01:47.000Z
2021-03-30T09:01:47.000Z
jupyter/aBasic/a_datatype_class/Ex02_number.py
WoolinChoi/test
a0f9c8ecc63443acaae61d744eecec6c943d3a26
[ "MIT" ]
1
2019-12-06T18:21:10.000Z
2019-12-06T18:21:10.000Z
""" 숫자형 종류 - 정수형 - 실수형 - 복소수형 1 + 2j, 3i ( 많이 사용안함 ) - 8진수 0o25 - 16진수 0x25 """ # 파이션의 모든 자료형은 객체로 취급한다 # 실행 : ctrl + shift + F10 """ [ 기초 연산자 ] + : 더하기 - : 빼기 * : 곱하기 / : 나누기(실수값 결과) // : 나누기(정수값 결과) ...
15.950311
53
0.392523
391
2,568
2.578005
0.368286
0.049603
0.083333
0.055556
0.064484
0.044643
0.03373
0.03373
0.03373
0
0
0.080503
0.380841
2,568
161
54
15.950311
0.553459
0.075935
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
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
c6f175b70fd25d8633c97d3d0d59465e21251689
978
py
Python
example/apps/buttons/methods/Buttons.py
NinjaDero/Directly
bb241b49c54c8a1510438f955b39d1785594cc64
[ "MIT" ]
4
2015-03-09T10:50:05.000Z
2020-07-02T17:22:37.000Z
example/apps/buttons/methods/Buttons.py
NinjaDero/Directly
bb241b49c54c8a1510438f955b39d1785594cc64
[ "MIT" ]
null
null
null
example/apps/buttons/methods/Buttons.py
NinjaDero/Directly
bb241b49c54c8a1510438f955b39d1785594cc64
[ "MIT" ]
null
null
null
from Directly import Ext @Ext.cls class Buttons(): @staticmethod @Ext.method def ping(request): return "Pong!" @staticmethod @Ext.method def reverse(request, text): return text[::-1] @staticmethod @Ext.method def full_caps(request, text): all_caps = Buttons...
23.853659
87
0.621677
127
978
4.629921
0.417323
0.102041
0.142857
0.163265
0.153061
0
0
0
0
0
0
0.001445
0.292434
978
41
88
23.853659
0.848266
0.198364
0
0.387097
0
0
0.019206
0
0
0
0
0
0
1
0.193548
false
0
0.032258
0.064516
0.451613
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
05a63268f7ba62ddc8e53b1892c17870b64734e1
359
py
Python
tests/test_csv.py
andriyor/amalgama-pq
9b3478ca22080fc612fb40cda488a8538b2624dc
[ "MIT" ]
2
2019-12-16T07:55:00.000Z
2020-04-21T14:55:18.000Z
tests/test_csv.py
andriyor/amalgama-pq
9b3478ca22080fc612fb40cda488a8538b2624dc
[ "MIT" ]
1
2018-12-31T14:43:49.000Z
2019-01-04T12:11:23.000Z
tests/test_csv.py
andriyor/amalgama-pq
9b3478ca22080fc612fb40cda488a8538b2624dc
[ "MIT" ]
null
null
null
import csv import pytest from amalgama import amalgama with open("tests/tests_data/test.csv") as f: records = csv.DictReader(f) csv_data = [(row["artist"], row["title"], row["url"]) for row in records] @pytest.mark.parametrize("artist,title,url", csv_data) def test_amalgama(artist, title, url): assert ...
23.933333
77
0.710306
54
359
4.62963
0.462963
0.132
0.168
0
0
0
0
0
0
0
0
0
0.144847
359
14
78
25.642857
0.814332
0
0
0
0
0
0.153203
0.069638
0
0
0
0
0.111111
1
0.111111
false
0
0.333333
0
0.444444
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
05a790fbafb31c5c06905d3d054894d6b9089b78
3,001
py
Python
main.py
msarmad17/Sports-Goods-Website
06aef86267a1df57acd0d4814939b1018e2f4799
[ "MIT" ]
null
null
null
main.py
msarmad17/Sports-Goods-Website
06aef86267a1df57acd0d4814939b1018e2f4799
[ "MIT" ]
null
null
null
main.py
msarmad17/Sports-Goods-Website
06aef86267a1df57acd0d4814939b1018e2f4799
[ "MIT" ]
null
null
null
import os import urllib.parse import pyodbc from flask import Flask, render_template, request, url_for, redirect app = Flask(__name__) app.config['SECRET_KEY'] = '' server = '' database = '' username = '' password = '' driver= '{ODBC Driver 17 for SQL Server}' cnxn = pyodbc.connect('DRIVER='+driver+';SERVER='+server...
28.311321
211
0.608464
355
3,001
5.067606
0.267606
0.091718
0.046693
0.056698
0.217343
0.142301
0.104503
0.104503
0.104503
0
0
0.004239
0.213929
3,001
105
212
28.580952
0.758372
0.020993
0
0.126582
0
0.012658
0.219346
0
0
0
0
0
0
1
0.101266
false
0.050633
0.050633
0.037975
0.253165
0.050633
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
05a9bc04cad9c5464ef3c1a03892c7b0f5c63cfb
381
py
Python
tests/processor/unit/test_binarize.py
yubessy/prepkit
5d2732c05288cd2e76d5d3f539210a91b01f5804
[ "MIT" ]
3
2018-01-21T07:21:27.000Z
2018-01-21T11:22:08.000Z
tests/processor/unit/test_binarize.py
yubessy/prepkit
5d2732c05288cd2e76d5d3f539210a91b01f5804
[ "MIT" ]
null
null
null
tests/processor/unit/test_binarize.py
yubessy/prepkit
5d2732c05288cd2e76d5d3f539210a91b01f5804
[ "MIT" ]
null
null
null
from pandas import Series from pandas.util.testing import assert_series_equal from prepkit.processor.unit.binarize import Binarize from ..._helper import array_uint8 def test_process(): processor = Binarize() target = Series([0.0, 0.5, 1.0]) result = processor.process(target) expected = Series(array...
25.4
52
0.737533
53
381
5.150943
0.45283
0.07326
0.124542
0
0
0
0
0
0
0
0
0.034268
0.15748
381
14
53
27.214286
0.816199
0
0
0
0
0
0
0
0
0
0
0
0.2
1
0.1
false
0
0.4
0
0.5
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
05b007a00217d2af68bbaa5fe4304dbc30f869b4
2,685
py
Python
openGaussBase/testcase/KEYWORDS/password/Opengauss_Function_Keyword_Password_Case0020.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/password/Opengauss_Function_Keyword_Password_Case0020.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/password/Opengauss_Function_Keyword_Password_Case0020.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
36.283784
124
0.665922
316
2,685
5.509494
0.370253
0.045951
0.082711
0.119472
0.541068
0.541068
0.541068
0.541068
0.479035
0.479035
0
0.009781
0.200372
2,685
74
125
36.283784
0.800652
0.220112
0
0.368421
0
0
0.28071
0.096695
0
0
0
0
0.210526
1
0.157895
false
0.368421
0.105263
0
0.289474
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
05b634a8c059d2bb71a3445843476ec62e3b3af8
2,204
py
Python
Adafruit_7Segment.py
VipSaran/Py_Led_Clock
715a8a6f285a7cd3b91880841794b9147f381616
[ "Apache-2.0" ]
5
2015-02-02T23:12:58.000Z
2019-09-11T00:56:26.000Z
Adafruit_7Segment.py
VipSaran/Py_Led_Clock
715a8a6f285a7cd3b91880841794b9147f381616
[ "Apache-2.0" ]
null
null
null
Adafruit_7Segment.py
VipSaran/Py_Led_Clock
715a8a6f285a7cd3b91880841794b9147f381616
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import time import datetime from Adafruit_LEDBackpack import LEDBackpack # =========================================================================== # 7-Segment Display # =========================================================================== # This class is meant to be used with the four-cha...
31.042254
77
0.625681
274
2,204
5.007299
0.474453
0.046647
0.058309
0.027697
0.084548
0.084548
0.084548
0.084548
0.084548
0
0
0.040462
0.215064
2,204
70
78
31.485714
0.752601
0.312613
0
0.121951
0
0
0.143525
0
0
0
0.051402
0
0
0
null
null
0
0.073171
null
null
0.02439
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
05b6b30cd93d53473d5e66bba9111d92bf8eac54
3,882
py
Python
magma/uniquification.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
167
2017-10-08T00:59:22.000Z
2022-02-08T00:14:39.000Z
magma/uniquification.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
719
2017-08-29T17:58:28.000Z
2022-03-31T23:39:18.000Z
magma/uniquification.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
14
2017-09-01T03:25:16.000Z
2021-11-05T13:30:24.000Z
from dataclasses import dataclass from enum import Enum, auto from magma.is_definition import isdefinition from magma.logging import root_logger from magma.passes import DefinitionPass _logger = root_logger() class MultipleDefinitionException(Exception): pass class UniquificationMode(Enum): WARN = auto()...
31.560976
83
0.658939
454
3,882
5.4163
0.277533
0.01952
0.02928
0.01708
0.089467
0.027654
0.027654
0
0
0
0
0.001727
0.25425
3,882
122
84
31.819672
0.847668
0.049974
0
0.021505
0
0
0.037188
0
0
0
0
0
0.021505
1
0.107527
false
0.086022
0.053763
0
0.344086
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
05bb92dacd41ea41ab76afe93555fad51feee30d
8,970
py
Python
sysdfiles/network_file.py
ghuband/sysdfiles
eb13167b07b27351c3962a42b30dcd50ce551d71
[ "MIT" ]
null
null
null
sysdfiles/network_file.py
ghuband/sysdfiles
eb13167b07b27351c3962a42b30dcd50ce551d71
[ "MIT" ]
1
2020-06-05T20:58:05.000Z
2020-06-05T20:58:05.000Z
sysdfiles/network_file.py
ghuband/sysdfiles
eb13167b07b27351c3962a42b30dcd50ce551d71
[ "MIT" ]
1
2020-06-09T02:35:35.000Z
2020-06-09T02:35:35.000Z
from .ini_file import IniFile # ============================================================================= # NetworkFile # ============================================================================= class NetworkFile(IniFile): def __init__(self, file_name=''): IniFile.__init__(self, file_name) ...
48.225806
79
0.273579
516
8,970
4.399225
0.368217
0.049339
0.119824
0.037004
0.023789
0
0
0
0
0
0
0.007442
0.565552
8,970
185
80
48.486486
0.575058
0.018618
0
0.089385
0
0
0.233549
0.047619
0
0
0
0
0
1
0.005587
false
0
0.005587
0
0.01676
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
05bd376dd5628d7b549caf34657630bda2a92602
1,255
py
Python
nobody/design_pattern.py
Nobody2019/nobody
6e3acbd02c2ea758e4e85f69d08406f26d6965de
[ "MIT" ]
null
null
null
nobody/design_pattern.py
Nobody2019/nobody
6e3acbd02c2ea758e4e85f69d08406f26d6965de
[ "MIT" ]
null
null
null
nobody/design_pattern.py
Nobody2019/nobody
6e3acbd02c2ea758e4e85f69d08406f26d6965de
[ "MIT" ]
null
null
null
# coding=utf-8 """ @Author: Liang Chao @Email: nobody_team@outlook.com @File: design_pattern.py @Created: 2020/10/23 19:25 @Desc: """ from nobody.decorators import synchronized def singleton(cls): instances = {} @synchronized def get_instance(*args, **kw): if cls not in instances: in...
23.679245
89
0.612749
139
1,255
5.179856
0.366906
0.152778
0.054167
0.0625
0.5
0.475
0.475
0.475
0.475
0.475
0
0.013963
0.258167
1,255
52
90
24.134615
0.759399
0.413546
0
0
0
0
0.01264
0
0
0
0
0
0
1
0.2
false
0
0.05
0
0.6
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
05bd89bc2faa856a1dcdea63f443e42ea9700c22
3,270
py
Python
venv/Foundation/While.py
AnatoleZho/Python3
3d3d32b5ad0affef76287b89bc87267fc551127d
[ "MIT" ]
null
null
null
venv/Foundation/While.py
AnatoleZho/Python3
3d3d32b5ad0affef76287b89bc87267fc551127d
[ "MIT" ]
null
null
null
venv/Foundation/While.py
AnatoleZho/Python3
3d3d32b5ad0affef76287b89bc87267fc551127d
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # 用户输入和 while 循环 # 1. 函数 input() 的工作原理 # 下面的程序让用户输入一些文本,再将这些文本呈现给用户: ''' message = raw_input("Tell me something, and I will repeat it back to you:") print str(message) ''' # 1.1. 编写清晰的程序 ''' name = raw_input('Please enter your name:') print 'Hello, ' + name.title() + '!' ''...
20.185185
82
0.660245
452
3,270
4.714602
0.389381
0.037541
0.026279
0.028156
0.151103
0.151103
0.126701
0.126701
0.126701
0.126701
0
0.013451
0.204281
3,270
161
83
20.310559
0.805534
0.146177
0
0.076923
0
0
0.262264
0
0
0
0
0
0
0
null
null
0
0
null
null
0.269231
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
05bf9c6752c44e7ab5b60ca375c194113e706f0e
650
py
Python
Problems/Study Plans/Dynamic Programming/Dynamic Programming I/21_arithmetic_slices.py
andor2718/LeetCode
59874f49085818e6da751f1cc26867b31079d35d
[ "BSD-3-Clause" ]
1
2022-01-17T19:51:15.000Z
2022-01-17T19:51:15.000Z
Problems/Study Plans/Dynamic Programming/Dynamic Programming I/21_arithmetic_slices.py
andor2718/LeetCode
59874f49085818e6da751f1cc26867b31079d35d
[ "BSD-3-Clause" ]
null
null
null
Problems/Study Plans/Dynamic Programming/Dynamic Programming I/21_arithmetic_slices.py
andor2718/LeetCode
59874f49085818e6da751f1cc26867b31079d35d
[ "BSD-3-Clause" ]
null
null
null
# https://leetcode.com/problems/arithmetic-slices/ class Solution: def numberOfArithmeticSlices(self, nums: list[int]) -> int: arithmetic_slices = 0 if len(nums) <= 2: return arithmetic_slices last_diff = nums[1] - nums[0] last_increment = 0 for idx in range(2, l...
36.111111
65
0.603077
76
650
4.934211
0.368421
0.213333
0.117333
0
0
0
0
0
0
0
0
0.020089
0.310769
650
17
66
38.235294
0.816964
0.073846
0
0.133333
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.266667
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
05d35d454a680f011fb0f6d5a66f5ed65ce0ef57
1,838
py
Python
perma_web/perma/migrations/0037_auto_20181004_1709.py
rachelaus/perma
36c05080520ea3ffce465dbc383795c060fa4112
[ "MIT", "Unlicense" ]
317
2015-02-12T16:53:34.000Z
2022-03-14T23:38:04.000Z
perma_web/perma/migrations/0037_auto_20181004_1709.py
rachelaus/perma
36c05080520ea3ffce465dbc383795c060fa4112
[ "MIT", "Unlicense" ]
2,069
2015-01-06T20:09:24.000Z
2022-03-31T15:44:36.000Z
perma_web/perma/migrations/0037_auto_20181004_1709.py
rachelaus/perma
36c05080520ea3ffce465dbc383795c060fa4112
[ "MIT", "Unlicense" ]
69
2015-01-12T18:56:07.000Z
2022-02-22T19:57:10.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-10-04 17:09 from __future__ import unicode_literals from django.db import migrations, models def change_private_reason(apps, schema_editor): # Links labeled 'Private by policy' created prior to this deployment # were made private because of an imp...
47.128205
307
0.68716
237
1,838
5.172996
0.464135
0.063622
0.035889
0.04894
0.430669
0.381729
0.381729
0.381729
0.381729
0.381729
0
0.025555
0.190968
1,838
38
308
48.368421
0.798924
0.237758
0
0.347826
1
0
0.32089
0.016511
0
0
0
0
0
1
0.043478
false
0
0.086957
0
0.26087
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
05d37b297a9f2fcdf04514fab982cad7467733d0
1,609
py
Python
src/tune.py
avaneesh93/frame-prediction
c7f45fed3651bd8fc7e2db1a88eefb8a8057f117
[ "MIT" ]
1
2020-07-08T10:20:22.000Z
2020-07-08T10:20:22.000Z
src/tune.py
avaneesh93/frame-prediction
c7f45fed3651bd8fc7e2db1a88eefb8a8057f117
[ "MIT" ]
null
null
null
src/tune.py
avaneesh93/frame-prediction
c7f45fed3651bd8fc7e2db1a88eefb8a8057f117
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Dec 8 22:10:50 2018 @author: roshanprakash """ from dataset_loader import * from encode_decode import * from train_model import * from test_model import * import matplotlib.pyplot as plt import numpy as np import os # first load the data print('Loadi...
29.254545
97
0.691734
241
1,609
4.414938
0.427386
0.051692
0.073308
0.035714
0
0
0
0
0
0
0
0.032875
0.187073
1,609
54
98
29.796296
0.780581
0.073337
0
0
0
0
0.126866
0
0
0
0
0
0
0
null
null
0
0.205882
null
null
0.176471
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
05d42a2a49213688cfdecdb536afe80161c44f8b
371
py
Python
code/examples/benchmark.py
megbedell/spectro-pessimism
e3d549287b1023f9790a156afab50551be93222a
[ "MIT" ]
null
null
null
code/examples/benchmark.py
megbedell/spectro-pessimism
e3d549287b1023f9790a156afab50551be93222a
[ "MIT" ]
4
2017-12-09T17:01:34.000Z
2017-12-16T16:59:05.000Z
code/examples/benchmark.py
megbedell/spectro-pessimism
e3d549287b1023f9790a156afab50551be93222a
[ "MIT" ]
1
2017-12-10T23:34:32.000Z
2017-12-10T23:34:32.000Z
# simple benchmark from generator import * import time # number of simulated photons N = int(5E7) t1 = time.time() spectrum = Etalon() spectrograph = MaroonX() generate_rv_series(spectrograph, spectrum, [0.], photons_per_spectrum=N) t2 = time.time() print("Total time for tracing: {:.2f} s".format(t2-t1)) print("Simul...
26.5
72
0.725067
54
371
4.907407
0.62963
0.060377
0
0
0
0
0
0
0
0
0
0.033742
0.121294
371
14
73
26.5
0.779141
0.118598
0
0
1
0
0.209231
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
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
05d721857319cb7f32220a3666d9ce4de8d3c451
228
py
Python
python/examples/websocket/main.py
fission/environment-registry
1ed158f60be08a597272b5e9f7466553fad53e81
[ "Apache-2.0" ]
null
null
null
python/examples/websocket/main.py
fission/environment-registry
1ed158f60be08a597272b5e9f7466553fad53e81
[ "Apache-2.0" ]
null
null
null
python/examples/websocket/main.py
fission/environment-registry
1ed158f60be08a597272b5e9f7466553fad53e81
[ "Apache-2.0" ]
null
null
null
def main(ws, clients): print("The number of clients is: {}".format(len(clients))) count = 0 while not ws.closed and count < 5: message = ws.receive() ws.send(message) count += 1 ws.close()
28.5
62
0.570175
32
228
4.0625
0.71875
0
0
0
0
0
0
0
0
0
0
0.018519
0.289474
228
8
63
28.5
0.783951
0
0
0
0
0
0.122271
0
0
0
0
0
0
1
0.125
false
0
0
0
0.125
0.125
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
05d942b6219ab700d71bf16a525ce0defff271d7
1,294
py
Python
oauth/models.py
DheerendraRathor/iitb_oauth_py
c06b21acb4f6d09c813bb8cbf545a18dafb46b9c
[ "BSD-3-Clause" ]
2
2016-03-10T09:16:39.000Z
2020-08-18T12:33:02.000Z
oauth/models.py
DheerendraRathor/iitb_oauth_py
c06b21acb4f6d09c813bb8cbf545a18dafb46b9c
[ "BSD-3-Clause" ]
null
null
null
oauth/models.py
DheerendraRathor/iitb_oauth_py
c06b21acb4f6d09c813bb8cbf545a18dafb46b9c
[ "BSD-3-Clause" ]
2
2017-06-03T12:48:46.000Z
2019-08-04T16:51:14.000Z
try: from django.utils import timezone except ImportError: from datetime import datetime as timezone from django.db import models from django.contrib.auth.models import User from .request import Token class OAuthToken(models.Model): user = models.OneToOneField(User, related_name='token') refresh_toke...
35.944444
59
0.66306
156
1,294
5.275641
0.326923
0.09356
0.061968
0.087485
0.208991
0.077764
0
0
0
0
0
0.008351
0.25966
1,294
35
60
36.971429
0.850731
0
0
0
0
0
0.003864
0
0
0
0
0
0
1
0.032258
false
0
0.193548
0
0.548387
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
05dbfcf8b89bbc56d036e597eec51697babb764c
5,710
py
Python
certsrv/certsrv.py
degagne/python-certsrv
38fa73dedb087e9228a88a7877e8f3d18f5c460f
[ "MIT" ]
1
2021-12-08T21:04:11.000Z
2021-12-08T21:04:11.000Z
certsrv/certsrv.py
degagne/python-certsrv
38fa73dedb087e9228a88a7877e8f3d18f5c460f
[ "MIT" ]
null
null
null
certsrv/certsrv.py
degagne/python-certsrv
38fa73dedb087e9228a88a7877e8f3d18f5c460f
[ "MIT" ]
null
null
null
import re import os import requests from contextlib import suppress from typing import NoReturn, Union from requests.auth import HTTPBasicAuth from requests_ntlm3 import HttpNtlmAuth from certsrv.utils import handle_response, find_error_response, retrieve_cert from certsrv import DEFAULT_CA_FILE, USER_AGENT, PKI_HEADE...
37.81457
87
0.636953
643
5,710
5.55832
0.278383
0.01371
0.025462
0.019026
0.358702
0.34751
0.294628
0.258254
0.23643
0.211808
0
0.008177
0.271804
5,710
150
88
38.066667
0.851371
0.355342
0
0.230769
0
0
0.107485
0.017365
0
0
0
0
0
1
0.102564
false
0.064103
0.128205
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
05dcf70f1db7e50f74ffe57cd958745b44f08523
727
py
Python
filters/unformat_abstract.py
BenPortner/panflute-filters
4b35c68f95eb411fa511d889ff7c8d08db17a700
[ "BSD-3-Clause" ]
49
2016-04-27T05:31:10.000Z
2022-02-22T22:01:16.000Z
filters/unformat_abstract.py
BenPortner/panflute-filters
4b35c68f95eb411fa511d889ff7c8d08db17a700
[ "BSD-3-Clause" ]
3
2018-08-17T02:15:01.000Z
2020-01-02T01:43:58.000Z
filters/unformat_abstract.py
BenPortner/panflute-filters
4b35c68f95eb411fa511d889ff7c8d08db17a700
[ "BSD-3-Clause" ]
17
2016-12-12T18:15:03.000Z
2022-03-17T22:35:30.000Z
""" Remove formatting from abstract """ from panflute import * format_element = (Emph, Strong, Strikeout, Subscript, Superscript, SmallCaps) def remove_format(e, doc): if isinstance(e, format_element): return Span(*e.content) def remove_all(e, doc): # This filters removes formatting from all of meta...
27.961538
77
0.697387
100
727
4.91
0.54
0.05499
0.07943
0.065173
0.069246
0
0
0
0
0
0
0
0.200825
727
25
78
29.08
0.845095
0.259972
0
0
0
0
0.045455
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0
0.461538
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
05e02ac2e78ea8cce2d41e9ee79a4091c181332c
714
py
Python
run.py
xiaoland/DaemonReminder
e9b23dca901a57b63bc244816dd85d81102016ec
[ "Apache-2.0" ]
null
null
null
run.py
xiaoland/DaemonReminder
e9b23dca901a57b63bc244816dd85d81102016ec
[ "Apache-2.0" ]
null
null
null
run.py
xiaoland/DaemonReminder
e9b23dca901a57b63bc244816dd85d81102016ec
[ "Apache-2.0" ]
null
null
null
# author: Lan_zhijiang # description: Launch program # date: 2021/08/26 from log import Log from tts import BaiduTts from encryption import Encryption from main import DaemonReminderMain from ui import DaemonReminderApp import json class Base: def __init__(self): self.log = Log() self.setting...
21
89
0.672269
89
714
5.247191
0.460674
0.029979
0.059957
0.068522
0.085653
0
0
0
0
0
0
0.016014
0.212885
714
33
90
21.636364
0.814947
0.152661
0
0
0
0
0.1
0.076667
0
0
0
0
0
1
0.055556
false
0
0.333333
0
0.444444
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
05e30602f2e92da59a954b819fa4b92134edd9c4
7,471
py
Python
tasks/geoquery_comment_request.py
aiddata/geo-hpc
8f684e72c14795f2e1532896a4b0999fe6c14d24
[ "MIT" ]
5
2020-02-14T14:21:51.000Z
2021-08-22T19:47:48.000Z
tasks/geoquery_comment_request.py
aiddata/geo-hpc
8f684e72c14795f2e1532896a4b0999fe6c14d24
[ "MIT" ]
1
2017-11-05T20:56:21.000Z
2017-12-08T17:22:13.000Z
tasks/geoquery_comment_request.py
aiddata/geo-hpc
8f684e72c14795f2e1532896a4b0999fe6c14d24
[ "MIT" ]
3
2020-02-27T11:33:43.000Z
2021-08-22T19:47:57.000Z
"""process geoquery request for comment emails called by cronjob on server for branch """ # ----------------------------------------------------------------------------- import sys import os branch = sys.argv[1] utils_dir = os.path.join( os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'utils') s...
27.568266
126
0.591755
928
7,471
4.602371
0.324353
0.018965
0.009131
0.010536
0.08827
0.063685
0.048701
0.034652
0.034652
0.016858
0
0.007366
0.254986
7,471
270
127
27.67037
0.759971
0.184982
0
0.070313
0
0
0.226747
0.02129
0
0
0
0
0
0
null
null
0
0.0625
null
null
0.109375
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
05f5840c418734188bd6fcf6f00cb7cbc206282a
606
py
Python
neo_finrl/env_fx_trading/util/action_enum.py
cove9988/NeoFinRL
ccb451216cb2e94da60240b7210a83023ed1f9ed
[ "MIT" ]
null
null
null
neo_finrl/env_fx_trading/util/action_enum.py
cove9988/NeoFinRL
ccb451216cb2e94da60240b7210a83023ed1f9ed
[ "MIT" ]
null
null
null
neo_finrl/env_fx_trading/util/action_enum.py
cove9988/NeoFinRL
ccb451216cb2e94da60240b7210a83023ed1f9ed
[ "MIT" ]
null
null
null
class ActionEnum(enumerate): """ Enum for action space """ BUY = 1 SELL = -1 HOLD = 0 EXIT = 3 def form_action(action): """ Form action from action space """ r = 0.0 if action <= -0.5: r =-(action + 0.5) * 2 return ActionEnum.SELL, r, "SELL" elif acti...
20.2
42
0.486799
82
606
3.585366
0.378049
0.095238
0.108844
0.061224
0.231293
0.231293
0.231293
0.231293
0.231293
0.231293
0
0.046632
0.363036
606
30
43
20.2
0.715026
0.171617
0
0
0
0
0.022124
0
0
0
0
0
0
1
0.117647
false
0
0
0
0.647059
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
05f5a3774dfdff522dee36b45d1f8e16494992e8
396
py
Python
server/dq/migrations/0002_alter_downloadjob_priority.py
tomaso/download-queue
ac2f02427d129d525a8ca32299d085461ac9c20b
[ "Apache-2.0" ]
null
null
null
server/dq/migrations/0002_alter_downloadjob_priority.py
tomaso/download-queue
ac2f02427d129d525a8ca32299d085461ac9c20b
[ "Apache-2.0" ]
5
2021-06-23T13:46:07.000Z
2021-07-26T14:50:51.000Z
server/dq/migrations/0002_alter_downloadjob_priority.py
tomaso/download-queue
ac2f02427d129d525a8ca32299d085461ac9c20b
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2 on 2021-04-22 06:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("dq", "0001_initial"), ] operations = [ migrations.AlterField( model_name="downloadjob", name="priority", f...
20.842105
71
0.603535
42
396
5.595238
0.857143
0
0
0
0
0
0
0
0
0
0
0.073944
0.282828
396
18
72
22
0.753521
0.108586
0
0
1
0
0.094017
0
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
af1482275ee6a41ed1132d77e57ed7788533276a
456
py
Python
cpdb/activity_grid/migrations/0002_activitycard_important.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
25
2018-07-20T22:31:40.000Z
2021-07-15T16:58:41.000Z
cpdb/activity_grid/migrations/0002_activitycard_important.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
13
2018-06-18T23:08:47.000Z
2022-02-10T07:38:25.000Z
cpdb/activity_grid/migrations/0002_activitycard_important.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
6
2018-05-17T21:59:43.000Z
2020-11-17T00:30:26.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-20 04:34 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('activity_grid', '0001_initial'), ] operations = [ migrations.AddField( ...
21.714286
53
0.620614
48
456
5.729167
0.833333
0
0
0
0
0
0
0
0
0
0
0.0625
0.263158
456
20
54
22.8
0.755952
0.149123
0
0
1
0
0.119481
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.461538
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
af1620a3e8c7154e40c75756f0f3efb30e0b57c2
3,059
py
Python
english_frequencies.py
MasterScott/matasano-cryptochallenges
4c5c3b37e57a9425b52e65c2eb8db23481c3ef51
[ "MIT" ]
null
null
null
english_frequencies.py
MasterScott/matasano-cryptochallenges
4c5c3b37e57a9425b52e65c2eb8db23481c3ef51
[ "MIT" ]
1
2017-04-17T17:03:02.000Z
2017-04-17T17:03:02.000Z
english_frequencies.py
MasterScott/matasano-cryptochallenges
4c5c3b37e57a9425b52e65c2eb8db23481c3ef51
[ "MIT" ]
2
2017-04-17T17:03:09.000Z
2019-10-28T23:33:44.000Z
# http://norvig.com/mayzner.html character_frequencies = { 'a': 8.04, 'c': 3.34, 'b': 1.48, 'e': 12.49, 'd': 3.82, 'g': 1.87, 'f': 2.40, 'i': 7.57, 'h': 5.05, 'k': 0.54, 'j': 0.16, 'm': 2.51, 'l': 4.07, 'o': 7.64, 'n': 7.23, 'q': 0.12, 'p': 2.14, ...
17.58046
83
0.428245
508
3,059
2.521654
0.419291
0.01171
0.032787
0.044496
0.046838
0
0
0
0
0
0
0.189985
0.334096
3,059
173
84
17.682081
0.438881
0.009807
0
0.049689
0
0
0.090849
0
0
0
0
0
0
1
0.024845
false
0
0
0.006211
0.049689
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
af20abd1f16cef13ab282cc8b087377465786388
4,780
py
Python
armor.py
brodyhill9/dnd-ascension-api
dd1a31f52fe4fa696a792b21442d498d9b5aad1e
[ "MIT" ]
null
null
null
armor.py
brodyhill9/dnd-ascension-api
dd1a31f52fe4fa696a792b21442d498d9b5aad1e
[ "MIT" ]
null
null
null
armor.py
brodyhill9/dnd-ascension-api
dd1a31f52fe4fa696a792b21442d498d9b5aad1e
[ "MIT" ]
null
null
null
import mysql_connector import json def handler(event, context): q = """ select armor_id, armor_name, armor_desc, armor_type, cost, armor_class, strength, IF(stealth_dis, 'true', 'false') stealth_dis, ...
34.890511
84
0.380126
373
4,780
4.675603
0.193029
0.072248
0.114679
0.013761
0.59633
0.512041
0.490252
0.346904
0.284404
0.284404
0
0.002605
0.518201
4,780
137
85
34.890511
0.754668
0
0
0.59375
0
0
0.463292
0.008785
0
0
0
0
0
1
0.007813
false
0
0.015625
0
0.101563
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
af281b71d5dc8b4b89c8f774c158725a97dff5f4
1,072
py
Python
setup.py
mverleg/django_tex_response
fbc3c260ddb9409909c0324759bbd16e037d1a8b
[ "BSD-3-Clause" ]
null
null
null
setup.py
mverleg/django_tex_response
fbc3c260ddb9409909c0324759bbd16e037d1a8b
[ "BSD-3-Clause" ]
1
2019-09-11T06:48:59.000Z
2019-09-11T06:48:59.000Z
setup.py
mverleg/django_tex_response
fbc3c260ddb9409909c0324759bbd16e037d1a8b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ For installing with pip """ from distutils.core import setup import setuptools # keep! setup( name='tex-response', version='1.2.2', author=u'Mark V', author_email='markv.nl.dev@gmail.com', packages=['tex_response'], include_package_data=True, url='https://gith...
29.777778
136
0.627799
123
1,072
5.406504
0.723577
0.114286
0.150376
0.117293
0
0
0
0
0
0
0
0.01218
0.234142
1,072
35
137
30.628571
0.797808
0.06903
0
0.074074
0
0.037037
0.572874
0.022267
0
0
0
0
0
1
0
true
0
0.074074
0
0.074074
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
af2d38414276ce72f6fa6e049df7497fc3b47045
927
py
Python
upload_to_github.py
RayJiang16/JHExtension
e6cf5dd3631828b6c4e66c1b5e8811b54118792c
[ "MIT" ]
null
null
null
upload_to_github.py
RayJiang16/JHExtension
e6cf5dd3631828b6c4e66c1b5e8811b54118792c
[ "MIT" ]
null
null
null
upload_to_github.py
RayJiang16/JHExtension
e6cf5dd3631828b6c4e66c1b5e8811b54118792c
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding=utf-8 import os import subprocess import shutil name = os.getcwd().split('/')[-1] spec = name + '.podspec' def pushToGit(desc): url = "git@github.com:RayJiang16/"+name+".git" subprocess.call(["git", "add", "."]) subprocess.call(["git", "commit", "-m", desc]) subprocess.c...
28.090909
84
0.556634
103
927
4.912621
0.514563
0.193676
0.201581
0.083004
0
0
0
0
0
0
0
0.005195
0.169364
927
32
85
28.96875
0.651948
0.03452
0
0
0
0
0.288117
0.029148
0
0
0
0
0
1
0.12
false
0
0.12
0
0.24
0.12
0
0
0
null
0
1
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
af2e6f25f872749efc6a54724014ab682998cd16
4,410
py
Python
corefacility/core/entity/token.py
serik1987/corefacility
78d84e19403361e83ef562e738473849f9133bef
[ "RSA-MD" ]
null
null
null
corefacility/core/entity/token.py
serik1987/corefacility
78d84e19403361e83ef562e738473849f9133bef
[ "RSA-MD" ]
null
null
null
corefacility/core/entity/token.py
serik1987/corefacility
78d84e19403361e83ef562e738473849f9133bef
[ "RSA-MD" ]
null
null
null
from base64 import b64encode, b64decode from datetime import datetime, timedelta from django.utils import timezone from .entity import Entity from .entity_exceptions import EntityNotFoundException from .entity_fields import RelatedEntityField, ManagedEntityField, EntityPasswordManager, ExpiryDateManager class Token(...
35.564516
110
0.660544
505
4,410
5.560396
0.344554
0.043091
0.023504
0.018519
0.037037
0.017806
0.017806
0
0
0
0
0.00522
0.261451
4,410
123
111
35.853659
0.856924
0.251247
0
0.114754
0
0
0.059889
0.007312
0
0
0
0
0
1
0.114754
false
0.131148
0.098361
0
0.393443
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
af33022a9edd8d9c8719ff26c3a7ddaf95e1b94c
423
py
Python
test/testserver.py
hulingfeng211/weixin
e3b869ffa2bf54366d561535c84e118db0e9827e
[ "Apache-2.0" ]
null
null
null
test/testserver.py
hulingfeng211/weixin
e3b869ffa2bf54366d561535c84e118db0e9827e
[ "Apache-2.0" ]
null
null
null
test/testserver.py
hulingfeng211/weixin
e3b869ffa2bf54366d561535c84e118db0e9827e
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- from tornado.ioloop import IOLoop from tornado.web import RequestHandler, Application __author__ = 'george' class IndexHandler(RequestHandler): def post(self, *args, **kwargs): print self.request.body if __name__ == "__main__": app = Application([ (r'/message'...
19.227273
51
0.647754
46
423
5.695652
0.717391
0.083969
0
0
0
0
0
0
0
0
0
0.033435
0.222222
423
21
52
20.142857
0.762918
0.047281
0
0
0
0
0.092269
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.142857
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
af440c91b45d181c4863ffcdde774fe2626812bc
563
py
Python
api/action_plans/migrations/0016_populate_action_plans.py
uktrade/market-access-api
850a59880f8f62263784bcd9c6b3362e447dbc7a
[ "MIT" ]
null
null
null
api/action_plans/migrations/0016_populate_action_plans.py
uktrade/market-access-api
850a59880f8f62263784bcd9c6b3362e447dbc7a
[ "MIT" ]
51
2018-05-31T12:16:31.000Z
2022-03-08T09:36:48.000Z
api/action_plans/migrations/0016_populate_action_plans.py
uktrade/market-access-api
850a59880f8f62263784bcd9c6b3362e447dbc7a
[ "MIT" ]
2
2019-12-24T09:47:42.000Z
2021-02-09T09:36:51.000Z
# Generated by Django 3.2.5 on 2021-08-26 16:53 from django.db import migrations def populate_action_plan_models(apps, schema_editor): Barrier = apps.get_model("barriers", "Barrier") ActionPlan = apps.get_model("action_plans", "ActionPlan") for barrier in Barrier.objects.filter(action_plan__isnull=True)...
26.809524
68
0.735346
70
563
5.671429
0.628571
0.075567
0.09068
0.120907
0
0
0
0
0
0
0
0.039916
0.154529
563
20
69
28.15
0.794118
0.079929
0
0
1
0
0.151163
0.056202
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.454545
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
af498e8f8f7c07e2e41f8b3ca471ffcdd1b0c170
470
py
Python
tests/unit/test_arg_parse.py
cloud-gov/external-domain-broker-migrator
6f827b3242e6d45e29d3e2404955cbea9ae1a25b
[ "CC0-1.0" ]
1
2020-08-14T22:53:03.000Z
2020-08-14T22:53:03.000Z
tests/unit/test_arg_parse.py
cloud-gov/external-domain-broker-migrator
6f827b3242e6d45e29d3e2404955cbea9ae1a25b
[ "CC0-1.0" ]
63
2020-08-14T20:07:53.000Z
2021-12-20T21:39:07.000Z
tests/unit/test_arg_parse.py
cloud-gov/external-domain-broker-migrator
6f827b3242e6d45e29d3e2404955cbea9ae1a25b
[ "CC0-1.0" ]
null
null
null
import pytest from migrator.__main__ import parse_args def test_arg_parse_fails_with_no_args(): with pytest.raises(SystemExit): parse_args([]) def test_arg_parse_returns_cron_for_cron(): parsed = parse_args(["--cron"]) assert parsed.cron assert not parsed.instance def test_arg_parse_retur...
22.380952
52
0.731915
64
470
4.96875
0.359375
0.113208
0.09434
0.141509
0.242138
0.150943
0
0
0
0
0
0
0.16383
470
20
53
23.5
0.80916
0
0
0
0
0
0.07234
0
0
0
0
0
0.307692
1
0.230769
false
0
0.153846
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
af551816eac684fcec0cc64108ec736589d1b5c2
23,961
py
Python
py/device/power.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
3
2022-01-06T16:52:52.000Z
2022-03-07T11:30:47.000Z
py/device/power.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
null
null
null
py/device/power.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
1
2021-10-24T01:47:22.000Z
2021-10-24T01:47:22.000Z
# Copyright 2015 The Chromium OS 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 collections import logging import re import statistics import time from cros.factory.device import device_types from cros.factory.utils import typ...
32.823288
80
0.693627
2,729
23,961
5.982411
0.16343
0.054024
0.059721
0.005513
0.450753
0.394034
0.318449
0.241945
0.209237
0.172424
0
0.008393
0.204416
23,961
729
81
32.868313
0.84803
0.329202
0
0.428177
0
0
0.107918
0.006298
0
0
0
0.006859
0
1
0.20442
false
0.002762
0.019337
0.002762
0.48895
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
af57ebbdb444061df146a19cd7a6babc819e1eeb
9,411
py
Python
StudyStuff/DataAnalysis/read csv.py
MatKier/LatinIME-ebm-study-Android-Studio
1a09013befd4327bae140ed8376d3bde93315451
[ "Apache-2.0" ]
1
2018-09-19T09:49:55.000Z
2018-09-19T09:49:55.000Z
StudyStuff/DataAnalysis/read csv.py
MatKier/LatinIME-ebm-study-Android-Studio
1a09013befd4327bae140ed8376d3bde93315451
[ "Apache-2.0" ]
null
null
null
StudyStuff/DataAnalysis/read csv.py
MatKier/LatinIME-ebm-study-Android-Studio
1a09013befd4327bae140ed8376d3bde93315451
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import math as maths import matplotlib.pyplot as plt import os usecols_ = ["x", "y", "offsetX", "offsetY", "keyCenterX", "keyCenterY", "holdTime", "flightTime", "pressure"] usecols = ["offsetX", "offsetY", "keyCenterX", "keyCenterY", "holdTime", "flightTime", "pressure"] default...
39.049793
236
0.71714
1,159
9,411
5.750647
0.201035
0.013803
0.029707
0.046212
0.461815
0.417554
0.374194
0.227607
0.190098
0.125131
0
0.012356
0.148656
9,411
241
237
39.049793
0.819521
0.102965
0
0.223464
0
0
0.108169
0.012586
0
0
0
0
0
0
null
null
0.005587
0.027933
null
null
0.005587
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
af59165c25dfc49bc06440d9d1871b1138bd54ec
970
py
Python
backend/underbudget/schemas/envelope.py
vimofthevine/underbudget4
c90eecf9879f7ce57c77a68b3f83b1d76c4451af
[ "MIT" ]
null
null
null
backend/underbudget/schemas/envelope.py
vimofthevine/underbudget4
c90eecf9879f7ce57c77a68b3f83b1d76c4451af
[ "MIT" ]
45
2019-12-23T23:45:10.000Z
2022-03-31T05:01:22.000Z
backend/underbudget/schemas/envelope.py
vimofthevine/underbudget4
c90eecf9879f7ce57c77a68b3f83b1d76c4451af
[ "MIT" ]
1
2020-12-26T17:16:58.000Z
2020-12-26T17:16:58.000Z
""" Envelope schema """ from marshmallow import Schema, fields, validate class EnvelopeSchema(Schema): """ Envelope schema """ id = fields.Integer(dump_only=True) category_id = fields.Integer(data_key="categoryId") name = fields.String(required=True, validate=validate.Length(min=1)) archived = fi...
35.925926
86
0.717526
116
970
5.87069
0.336207
0.082232
0.123348
0.061674
0.51395
0.51395
0.51395
0.417034
0.417034
0.417034
0
0.002421
0.148454
970
26
87
37.307692
0.822034
0.059794
0
0.470588
0
0
0.06278
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.882353
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
af5fb10d412f2b358040690ce3c5b5ad1ef7391c
2,193
py
Python
disc/disc03.py
FyisFe/UCB-CS61A-20Fall
40312a939e17c3de6735df7fc2eb2d66286f87ad
[ "MIT" ]
3
2022-01-21T15:52:32.000Z
2022-03-06T11:02:34.000Z
disc/disc03.py
FyisFe/UCB-CS61A-20Fall
40312a939e17c3de6735df7fc2eb2d66286f87ad
[ "MIT" ]
null
null
null
disc/disc03.py
FyisFe/UCB-CS61A-20Fall
40312a939e17c3de6735df7fc2eb2d66286f87ad
[ "MIT" ]
1
2022-02-13T08:28:27.000Z
2022-02-13T08:28:27.000Z
def multiply(m, n): if n > m: m, n = n, m if n == 0: return 0 return m + multiply(m, n - 1) # print(multiply(3, 5)) def rec(x, y): # x ^ y if y > 0: return x * rec(x, y - 1) return 1 # print(rec(3, 5)) def hailstone(n): # n is even: n = n / 2 # n is odd: n =...
19.936364
77
0.50114
323
2,193
3.303406
0.182663
0.084349
0.044986
0.047798
0.129335
0.076851
0
0
0
0
0
0.101897
0.351117
2,193
109
78
20.119266
0.647927
0.364797
0
0.16
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0.02
0.62
0.06
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
af62c7ac476a95ffd94910f9dfa0aa4309ecbcf8
759
py
Python
tests/test_clamd.py
polyswarm/polyswarm-client
1ce057725d7db59c3582e4cd3cf148cde7ddddeb
[ "MIT" ]
21
2018-09-15T00:12:42.000Z
2020-10-28T00:42:59.000Z
tests/test_clamd.py
polyswarm/polyswarm-client
1ce057725d7db59c3582e4cd3cf148cde7ddddeb
[ "MIT" ]
435
2018-09-05T18:53:21.000Z
2021-11-30T17:32:10.000Z
tests/test_clamd.py
polyswarm/polyswarm-client
1ce057725d7db59c3582e4cd3cf148cde7ddddeb
[ "MIT" ]
3
2019-07-26T00:14:47.000Z
2021-04-26T10:57:56.000Z
import aiohttp import pytest from microengine_utils.malwarerepoclient import DummyMalwareRepoClient from polyswarmartifact import ArtifactType from microengine.clamav import Scanner from tests.utils.fixtures import not_listening_on_port @pytest.mark.skipif(not_listening_on_port(3310), reason='ClamAV is not running'...
31.625
91
0.770751
95
759
5.978947
0.557895
0.06338
0.049296
0.06338
0
0
0
0
0
0
0
0.006163
0.144928
759
23
92
33
0.869029
0
0
0
0
0
0.040843
0
0
0
0
0
0.058824
1
0
false
0
0.352941
0
0.352941
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
af6bf9465fb49f0c2f6f759160eacd47661439ee
451
py
Python
instructors/migrations/0016_user_location.py
bastoune57/gokiting_back_end
f3edcbeede292713349b28f2390b5d57e1420f8e
[ "MIT" ]
null
null
null
instructors/migrations/0016_user_location.py
bastoune57/gokiting_back_end
f3edcbeede292713349b28f2390b5d57e1420f8e
[ "MIT" ]
null
null
null
instructors/migrations/0016_user_location.py
bastoune57/gokiting_back_end
f3edcbeede292713349b28f2390b5d57e1420f8e
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-03-05 10:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('instructors', '0015_remove_user_avatar_user_avatar_url_and_more'), ] operations = [ migrations.AddField( model_name='user', ...
23.736842
88
0.638581
52
451
5.326923
0.788462
0.072202
0
0
0
0
0
0
0
0
0
0.065089
0.250554
451
18
89
25.055556
0.754438
0.099778
0
0
1
0
0.195545
0.118812
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