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
f618d376cd5f990c13a8674db30dbeb3c323537c
437
py
Python
config/api_router.py
anhlt59/django_celery
4e3825752191067c71b25b1f932279961a6dde2a
[ "MIT" ]
null
null
null
config/api_router.py
anhlt59/django_celery
4e3825752191067c71b25b1f932279961a6dde2a
[ "MIT" ]
null
null
null
config/api_router.py
anhlt59/django_celery
4e3825752191067c71b25b1f932279961a6dde2a
[ "MIT" ]
null
null
null
from django.conf import settings from rest_framework.routers import DefaultRouter, SimpleRouter from django.urls import include, path from django_celery.api.users.views import UserViewSet if settings.DEBUG: router = DefaultRouter() else: router = SimpleRouter() router.register("users", UserViewSet) app_name...
23
74
0.76659
54
437
6.092593
0.537037
0.091185
0.091185
0
0
0
0
0
0
0
0
0
0.130435
437
18
75
24.277778
0.865789
0
0
0
0
0
0.128146
0.09611
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
f618e484b7df2635b2d21ffd1f4a23e06f18555a
3,366
py
Python
src/praw_stream.py
jacobmas/docker-twitter-streamer
e24dd0ba500caae174609efbb8f2a63c6e69c511
[ "MIT" ]
null
null
null
src/praw_stream.py
jacobmas/docker-twitter-streamer
e24dd0ba500caae174609efbb8f2a63c6e69c511
[ "MIT" ]
null
null
null
src/praw_stream.py
jacobmas/docker-twitter-streamer
e24dd0ba500caae174609efbb8f2a63c6e69c511
[ "MIT" ]
null
null
null
# stdlib import os import sys import logging import json from json import JSONEncoder import praw from kinesis_producer import StdoutProducer from twitter_query_parser import TwitterSeachQuery log = logging.getLogger(__name__) class RedditException(Exception): """Invalid SubRedditException.""" ...
35.808511
154
0.639929
384
3,366
5.471354
0.330729
0.025702
0.015707
0.020942
0
0
0
0
0
0
0
0
0.257279
3,366
93
155
36.193548
0.8404
0.085859
0
0.030769
0
0
0.115164
0.019588
0
0
0
0.010753
0
1
0.107692
false
0.015385
0.123077
0
0.338462
0.046154
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
f61b4c3a467a7b980a56213bb7bb31c68ded2089
9,071
py
Python
Python/qos_manager.py
Deyuan/qmsim
8a34bc19c0bf614c9362e44b7170dbb3d54a9010
[ "Apache-2.0" ]
null
null
null
Python/qos_manager.py
Deyuan/qmsim
8a34bc19c0bf614c9362e44b7170dbb3d54a9010
[ "Apache-2.0" ]
null
null
null
Python/qos_manager.py
Deyuan/qmsim
8a34bc19c0bf614c9362e44b7170dbb3d54a9010
[ "Apache-2.0" ]
null
null
null
# QoS Manager # Managing all requests related to QoS # Author: Deyuan Guo, Chunkun Bo # Date: Dec 10, 2015 import sys import os import socket import errno import monitor_container import qos_scheduler import itf_spec import itf_database QOS_SERVER_ADDR = ('localhost', 20000) # Define a class for QoS requests class Q...
35.712598
90
0.556719
1,028
9,071
4.758755
0.202335
0.055192
0.07359
0.027187
0.296198
0.246321
0.219747
0.170687
0.162306
0.144726
0
0.006986
0.337229
9,071
253
91
35.853755
0.80672
0.101753
0
0.229592
0
0
0.20899
0.017857
0
0
0
0
0
0
null
null
0.005102
0.040816
null
null
0.168367
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
f6224d3a2801a7df8d62a2a94a132fbef822cef0
902
py
Python
test/test_default_not_tight.py
ttesileanu/pydove
35fd2cd36c55d949d7d76add8ce026851e8c7dd1
[ "MIT" ]
6
2021-03-28T21:13:21.000Z
2022-03-25T15:42:22.000Z
test/test_default_not_tight.py
ttesileanu/pygrutils
35fd2cd36c55d949d7d76add8ce026851e8c7dd1
[ "MIT" ]
1
2021-03-30T22:24:51.000Z
2021-04-01T19:20:23.000Z
test/test_default_not_tight.py
ttesileanu/pygrutils
35fd2cd36c55d949d7d76add8ce026851e8c7dd1
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.4.2 # kernelspec: # display_name: pydove # language: python # name: pydove # --- # %% [markdown] # # Test...
20.5
82
0.575388
114
902
4.464912
0.596491
0.015717
0.074656
0.027505
0.031434
0
0
0
0
0
0
0.033898
0.280488
902
43
83
20.976744
0.750385
0.395787
0
0.333333
0
0
0.281071
0.049713
0
0
0
0
0
1
0
true
0
0.055556
0
0.055556
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
f62407c57d381ccdc8ffc3bcd761bf3a8e917443
378
py
Python
criminals/migrations/0003_auto_20210219_1552.py
Three-Dev-Musketeers/Mumbai_Police
293fbc1d81db459c23649c9c6b1eef8c38da1939
[ "MIT" ]
5
2021-02-19T20:37:35.000Z
2021-12-19T06:41:50.000Z
criminals/migrations/0003_auto_20210219_1552.py
Divesh2201/Mumbai_Police
dfabf8494de2c790178541ee20d37d3002ca12af
[ "MIT" ]
1
2021-10-04T17:37:51.000Z
2021-10-05T10:50:36.000Z
criminals/migrations/0003_auto_20210219_1552.py
Divesh2201/Mumbai_Police
dfabf8494de2c790178541ee20d37d3002ca12af
[ "MIT" ]
4
2021-03-05T05:44:20.000Z
2021-04-25T17:23:16.000Z
# Generated by Django 3.1.6 on 2021-02-19 10:22 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('criminals', '0002_criminalsinfo_image'), ] operations = [ migrations.RenameField( model_name='criminalsinfo', old_name='full...
19.894737
50
0.600529
38
378
5.842105
0.815789
0
0
0
0
0
0
0
0
0
0
0.070896
0.291005
378
18
51
21
0.757463
0.119048
0
0
1
0
0.190332
0.072508
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
f625073f4f20ce3c62fee8004fceed128eacec8d
1,981
py
Python
losses/test_ssim.py
sunshinnnn/DSMnet
eed7a4de12f93cd625e1e68758aa4c3193a60d28
[ "Apache-2.0" ]
31
2018-08-14T04:05:41.000Z
2022-02-07T06:23:22.000Z
losses/test_ssim.py
sunshinnnn/DSMnet
eed7a4de12f93cd625e1e68758aa4c3193a60d28
[ "Apache-2.0" ]
3
2019-04-08T23:25:03.000Z
2020-12-09T20:05:38.000Z
losses/test_ssim.py
sunshinnnn/DSMnet
eed7a4de12f93cd625e1e68758aa4c3193a60d28
[ "Apache-2.0" ]
8
2018-08-14T04:05:44.000Z
2021-03-16T16:10:57.000Z
import sys sys.path.append("../") import torch import matplotlib.pyplot as plt from util.util import to_tensor, imsplot_tensor from util.imwrap import imwrap_BCHW # as imwrap from dataloader.imagerw import load_image, load_disp #, save_image from SSIM import SSIM def implot(im1, im2, im3, im4, im5, im6, im7, im8): ...
38.843137
74
0.638062
325
1,981
3.806154
0.298462
0.05093
0.077607
0.058205
0.383185
0.247373
0.247373
0.247373
0.203719
0.203719
0
0.092212
0.189803
1,981
50
75
39.62
0.678505
0.277133
0
0
0
0
0.048557
0.023927
0
0
0
0
0
0
null
null
0
0.179487
null
null
0.051282
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
f6294efecd7299adfde8c96549534a1b8251ef79
610
py
Python
dash_app/config.py
pykcel/myportfolio
958ffe6a8ab541007f7182e7ff5c86931a0c0ccd
[ "MIT" ]
null
null
null
dash_app/config.py
pykcel/myportfolio
958ffe6a8ab541007f7182e7ff5c86931a0c0ccd
[ "MIT" ]
1
2021-04-12T11:25:42.000Z
2021-04-12T15:52:43.000Z
dash_app/config.py
pykcel/myportfolio
958ffe6a8ab541007f7182e7ff5c86931a0c0ccd
[ "MIT" ]
null
null
null
import os basedir = os.path.abspath(os.path.dirname(__file__)) DATA_PATH = os.path.join(os.path.dirname(basedir), "data") DEGIRO_PATH = os.path.join(os.path.dirname(basedir), "degiro_creds.json") EXCHANGE_MAPPING_PATH = os.path.join(DATA_PATH, "raw/exchange_symbol_map.json") # Path to DB with SQLAlchemy syntax: # Refe...
35.882353
80
0.777049
92
610
4.956522
0.576087
0.092105
0.085526
0.092105
0.149123
0.149123
0.149123
0.149123
0
0
0
0.003552
0.077049
610
16
81
38.125
0.806394
0.193443
0
0
0
0
0.359343
0.166324
0
0
0
0
0
1
0
false
0.111111
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f62f27041be15aaaced95b59a1845cdded1bc93a
307
py
Python
src/the_tale/the_tale/game/emissaries/management/commands/emissaries_remove_orphan_effects.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
85
2017-11-21T12:22:02.000Z
2022-03-27T23:07:17.000Z
src/the_tale/the_tale/game/emissaries/management/commands/emissaries_remove_orphan_effects.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
545
2017-11-04T14:15:04.000Z
2022-03-27T14:19:27.000Z
src/the_tale/the_tale/game/emissaries/management/commands/emissaries_remove_orphan_effects.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
45
2017-11-11T12:36:30.000Z
2022-02-25T06:10:44.000Z
import smart_imports smart_imports.all() class Command(utilities_base.Command): help = 'Search orphan effects' LOCKS = ['game_commands'] def _handle(self, *args, **options): self.logger.info('remove orphan effects') logic.remove_orphan_event_effects(logger=self.logger)
17.055556
61
0.700326
37
307
5.594595
0.675676
0.115942
0
0
0
0
0
0
0
0
0
0
0.188925
307
17
62
18.058824
0.831325
0
0
0
0
0
0.179739
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.75
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
f6323adb71601500b2b7dcfcad40e64e877063c6
431
py
Python
First_Flask_Platform/app/views.py
neuJump/COMP30670-Assignment2-Flask
770b9fa0f18f7d0d4ea7a8fabe5ac5817c72dc2d
[ "MIT" ]
null
null
null
First_Flask_Platform/app/views.py
neuJump/COMP30670-Assignment2-Flask
770b9fa0f18f7d0d4ea7a8fabe5ac5817c72dc2d
[ "MIT" ]
null
null
null
First_Flask_Platform/app/views.py
neuJump/COMP30670-Assignment2-Flask
770b9fa0f18f7d0d4ea7a8fabe5ac5817c72dc2d
[ "MIT" ]
null
null
null
from flask import render_template from app import app import SystemInfo.main @app.route('/') def index(): sysInfo = SystemInfo.main.main() returnDict = {} returnDict['title'] = 'Assignment 2: Flask & Systeminfo' returnDict['heading'] = 'COMP30670' returnDict['subHeading'] = 'Assignment 2:...
33.153846
66
0.675174
45
431
6.422222
0.488889
0.096886
0.110727
0.179931
0.249135
0
0
0
0
0
0
0.020057
0.190255
431
13
67
33.153846
0.808023
0
0
0
0
0
0.264286
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.416667
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
f633bface7b821abb8c0114dbe26ac4f098225a4
535
py
Python
python/plugin_unet/dataset.py
serjik85kg/UnetV2-pytorch-segmentation
c53598d00aeb0c79cb9dd52b6ab3b4976d127f21
[ "MIT" ]
null
null
null
python/plugin_unet/dataset.py
serjik85kg/UnetV2-pytorch-segmentation
c53598d00aeb0c79cb9dd52b6ab3b4976d127f21
[ "MIT" ]
null
null
null
python/plugin_unet/dataset.py
serjik85kg/UnetV2-pytorch-segmentation
c53598d00aeb0c79cb9dd52b6ab3b4976d127f21
[ "MIT" ]
null
null
null
# coding: utf-8 import numpy as np from torchvision.transforms import ToTensor, Normalize, Compose # from sd_lib.nn.dataset import SlyDataset input_image_normalizer = Compose([ ToTensor(), Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]), ]) # class UnetV2Dataset(SlyDataset): # def _get...
28.157895
86
0.699065
79
535
4.506329
0.56962
0.067416
0.109551
0.089888
0
0
0
0
0
0
0
0.061086
0.173832
535
18
87
29.722222
0.744344
0.575701
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
1
0
0
0
0
1
f63771cbca3bfd63d672bd871a2472a63c4173ca
41,409
py
Python
code/adversarial/train.py
urkax/CollageNet
337098b40afbf0b3c8514f80a9953a797988938d
[ "MIT" ]
10
2021-07-12T14:32:16.000Z
2021-12-10T09:11:30.000Z
code/adversarial/train.py
urkax/CollageNet
337098b40afbf0b3c8514f80a9953a797988938d
[ "MIT" ]
null
null
null
code/adversarial/train.py
urkax/CollageNet
337098b40afbf0b3c8514f80a9953a797988938d
[ "MIT" ]
3
2021-11-16T12:54:19.000Z
2022-01-07T13:52:26.000Z
import os import sys import json import socket import getpass import glog as log import numpy as np import torch import torch.nn.functional as F from torch.utils.data import DataLoader from tensorboardX import SummaryWriter import time p = os.path.dirname(os.path.dirname((os.path.abspath(__file__)))) if p not in sys.p...
64.701563
327
0.698351
6,152
41,409
4.218791
0.046814
0.027048
0.041612
0.035255
0.792479
0.701048
0.671534
0.641982
0.604223
0.561339
0
0.014056
0.189089
41,409
640
328
64.701563
0.758867
0.003019
0
0.32696
0
0.007648
0.113463
0.039049
0
0
0
0
0.003824
1
0.005736
false
0.003824
0.030593
0
0.040153
0.003824
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f637b629ac57da2447d1ec193883db4f65a06e49
784
py
Python
base/migrations/0007_auto_20191031_1524.py
amin-da71/Benbb96
0c9e37425d0665e403ba6fecf0c4b17669c29ada
[ "MIT" ]
null
null
null
base/migrations/0007_auto_20191031_1524.py
amin-da71/Benbb96
0c9e37425d0665e403ba6fecf0c4b17669c29ada
[ "MIT" ]
13
2021-02-13T20:15:18.000Z
2022-03-11T23:57:07.000Z
base/migrations/0007_auto_20191031_1524.py
amin-da71/Benbb96
0c9e37425d0665e403ba6fecf0c4b17669c29ada
[ "MIT" ]
null
null
null
# Generated by Django 2.1.11 on 2019-10-31 14:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('base', '0006_auto_20190731_1549'), ] operations = [ migrations.AddField( model_name='projet', name='logged_only', ...
32.666667
171
0.647959
91
784
5.461538
0.604396
0.072435
0.092555
0.108652
0.498994
0.498994
0.350101
0.350101
0.350101
0.350101
0
0.054237
0.247449
784
23
172
34.086957
0.788136
0.058673
0
0.352941
1
0
0.317935
0.03125
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
f6380063f172c32604eb7d88b92e65b8adccba98
4,660
py
Python
handlers/category.py
cstieg/Item-Catalog
7e91c268872a6aaea231b979fdd27a666aab1764
[ "MIT" ]
null
null
null
handlers/category.py
cstieg/Item-Catalog
7e91c268872a6aaea231b979fdd27a666aab1764
[ "MIT" ]
null
null
null
handlers/category.py
cstieg/Item-Catalog
7e91c268872a6aaea231b979fdd27a666aab1764
[ "MIT" ]
null
null
null
"""Handlers for category""" import flask from werkzeug.exceptions import BadRequest, Unauthorized from json import dumps from itemcatalog import app import models import login @app.route('/catalog/<catalog_id>/addcategory', methods=['GET', 'POST']) @login.check_logged_in def add_category_handler(catalog_id): ""...
36.692913
105
0.670172
580
4,660
5.168966
0.143103
0.084056
0.051034
0.0507
0.727819
0.719813
0.597398
0.570714
0.547365
0.547365
0
0
0.236695
4,660
126
106
36.984127
0.842845
0.18412
0
0.597222
0
0
0.13079
0.049046
0
0
0
0
0
1
0.055556
false
0
0.083333
0
0.222222
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f63c6d71a21a96cea4d40db191c51264cea7cefe
792
py
Python
blog_app/posts/migrations/0001_initial.py
haddercone/Blog.github.io
1908706312bfd2946b01e988806d37d861d6395d
[ "MIT" ]
1
2019-06-10T10:49:02.000Z
2019-06-10T10:49:02.000Z
blog_app/posts/migrations/0001_initial.py
haddercone/Blog.github.io
1908706312bfd2946b01e988806d37d861d6395d
[ "MIT" ]
null
null
null
blog_app/posts/migrations/0001_initial.py
haddercone/Blog.github.io
1908706312bfd2946b01e988806d37d861d6395d
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-04-17 16:19 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Auther', ...
29.333333
128
0.60101
87
792
5.37931
0.609195
0.096154
0.115385
0.153846
0.111111
0
0
0
0
0
0
0.067591
0.271465
792
26
129
30.461538
0.743501
0.054293
0
0
1
0
0.05087
0
0
0
0
0
0
1
0
false
0
0.157895
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f63fd47e767276cc8e0cf77a0beb6b73482acef3
2,705
py
Python
bin/scrape_software_versions.py
jpfeuffer/quantms
4762fd62e59352cdf04797275c1aa50e11bea4dc
[ "MIT" ]
null
null
null
bin/scrape_software_versions.py
jpfeuffer/quantms
4762fd62e59352cdf04797275c1aa50e11bea4dc
[ "MIT" ]
null
null
null
bin/scrape_software_versions.py
jpfeuffer/quantms
4762fd62e59352cdf04797275c1aa50e11bea4dc
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import os import re results = {} version_files = [x for x in os.listdir(".") if x.endswith(".version.txt")] # TODO https://github.com/nf-core/proteomicslfq/pull/165 def get_versions(software, version_file): semver_regex = r"((?P<major>0|[1-9]\d*)\.(?P<mi...
33.8125
259
0.603697
333
2,705
4.771772
0.405405
0.173065
0.00944
0.012587
0.092511
0.05601
0.050346
0.01888
0.01888
0.01888
0
0.015661
0.197412
2,705
79
260
34.240506
0.71626
0.041035
0
0.035088
0
0.017544
0.355613
0.14653
0
0
0
0.012658
0
1
0.017544
false
0
0.052632
0
0.087719
0.070175
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
f6409463cc8856df6f86a4d40066e1cd24e510d1
9,669
py
Python
eventbus/util/transcoding.py
adyshev/eventbus
7479e42fe8d2749cc5798921a49a9e30bbbd7c29
[ "MIT" ]
2
2020-10-02T20:22:23.000Z
2020-12-08T11:37:29.000Z
eventbus/util/transcoding.py
adyshev/eventbus
7479e42fe8d2749cc5798921a49a9e30bbbd7c29
[ "MIT" ]
107
2020-12-03T09:44:06.000Z
2022-03-31T22:58:40.000Z
eventbus/util/transcoding.py
adyshev/eventbus
7479e42fe8d2749cc5798921a49a9e30bbbd7c29
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from enum import Enum from json import JSONDecoder, JSONEncoder from uuid import UUID from types import MethodType, FunctionType from base64 import b64decode, b64encode from typing import Optional from decimal import Decimal from functools import wraps, singledispatch from collec...
26.203252
111
0.637088
1,202
9,669
4.796173
0.143927
0.034345
0.030529
0.019428
0.251865
0.215785
0.171032
0.154727
0.146574
0.135126
0
0.008369
0.23384
9,669
368
112
26.274457
0.769843
0.048402
0
0.220472
0
0
0.080398
0.002406
0
0
0
0
0
1
0.19685
false
0
0.062992
0.086614
0.503937
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
f64b7a8173c2b1a5bbc6c0e6c85a655208cbfcdc
1,363
py
Python
openstacksdk_learn/connect_to_openstack.py
PyLearner/myworks
6dd87bfce5d0b3b17d02248fceb3d91d97cab7d5
[ "Apache-2.0" ]
null
null
null
openstacksdk_learn/connect_to_openstack.py
PyLearner/myworks
6dd87bfce5d0b3b17d02248fceb3d91d97cab7d5
[ "Apache-2.0" ]
null
null
null
openstacksdk_learn/connect_to_openstack.py
PyLearner/myworks
6dd87bfce5d0b3b17d02248fceb3d91d97cab7d5
[ "Apache-2.0" ]
null
null
null
import sys from openstack import connection from openstack import profile from openstack import utils # open logging # utils.enable_logging(debug=True, stream=sys.stdout) # get the connection to the def create_connection(auth_url, region, project_name, username, password): prof = profile.Profile() prof.set_r...
26.72549
74
0.637564
174
1,363
4.850575
0.390805
0.049763
0.067536
0.035545
0.199052
0.199052
0.199052
0.199052
0
0
0
0.033882
0.242113
1,363
51
75
26.72549
0.783156
0.210565
0
0.1875
0
0
0.070356
0
0
0
0
0
0
1
0.0625
false
0.125
0.125
0
0.21875
0.125
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
f64c6ab7f6e36bf7679b8e6652f68eaedb1efce2
3,237
py
Python
source/tests/lineFollow_color_test.py
nikhilrj/CARDS
509815f23c11881e6444308fa1014aed6a1af358
[ "MIT" ]
null
null
null
source/tests/lineFollow_color_test.py
nikhilrj/CARDS
509815f23c11881e6444308fa1014aed6a1af358
[ "MIT" ]
null
null
null
source/tests/lineFollow_color_test.py
nikhilrj/CARDS
509815f23c11881e6444308fa1014aed6a1af358
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import sys,tty,termios,time from Adafruit_MotorHAT import Adafruit_MotorHAT, Adafruit_DCMotor import atexit import os # create a default object, no changes to I2C address or frequency mh = Adafruit_MotorHAT(addr=0x60) # recommended for auto-disabling motors on shutdown! def turnOffMotors(): m...
23.121429
120
0.697868
481
3,237
4.654886
0.35343
0.078607
0.022331
0.033497
0.077713
0.048236
0
0
0
0
0
0.080456
0.159098
3,237
139
121
23.28777
0.742101
0.175471
0
0.021277
0
0
0.011694
0
0
0
0.016598
0
0
0
null
null
0
0.06383
null
null
0.031915
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
f64f0bf8607a8268530c54c53c865bb99234b740
491
py
Python
k_road/entity/curb.py
NREL/K_Road
ec8049cf1b81c58dd3b95f8298a362d863cd4a68
[ "BSD-3-Clause" ]
1
2021-04-19T23:28:26.000Z
2021-04-19T23:28:26.000Z
k_road/entity/curb.py
NREL/K_Road
ec8049cf1b81c58dd3b95f8298a362d863cd4a68
[ "BSD-3-Clause" ]
null
null
null
k_road/entity/curb.py
NREL/K_Road
ec8049cf1b81c58dd3b95f8298a362d863cd4a68
[ "BSD-3-Clause" ]
null
null
null
from typing import TYPE_CHECKING from pymunk import Vec2d from k_road.entity.entity_type import EntityType from k_road.entity.linear_entity import LinearEntity if TYPE_CHECKING: from k_road.k_road_process import KRoadProcess class Curb(LinearEntity): """ """ def __init__(self, parent: 'KRoadProces...
27.277778
109
0.733198
66
491
5.19697
0.469697
0.058309
0.078717
0.087464
0
0
0
0
0
0
0
0.031477
0.158859
491
17
110
28.882353
0.799031
0
0
0
0
0
0.025
0
0
0
0
0
0
1
0.111111
false
0
0.555556
0
0.777778
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
f6564c3aa86d6886e8b682e54e0af816a7485bc7
834
py
Python
migdb/forms.py
roundium/migdb
b855b4126d614176913b453004f444af6b13c8a4
[ "MIT" ]
1
2019-07-31T11:33:55.000Z
2019-07-31T11:33:55.000Z
migdb/forms.py
roundium/migdb
b855b4126d614176913b453004f444af6b13c8a4
[ "MIT" ]
6
2019-12-04T23:56:56.000Z
2021-06-10T18:42:08.000Z
migdb/forms.py
roundium/migdb
b855b4126d614176913b453004f444af6b13c8a4
[ "MIT" ]
2
2019-07-31T11:40:31.000Z
2019-08-05T17:11:17.000Z
from django import forms # if you wanto add more actions add them here. ACTIONS = ( ("nochange", "No Change"), ("rename", "Rename"), ("format", "Format"), ("format_rename", "Format And Rename"), ("delete", "Delete"), ) class FieldForm(forms.Form): current_field_name = forms.CharField(max_leng...
32.076923
68
0.707434
105
834
5.504762
0.428571
0.134948
0.17301
0.207612
0.235294
0.235294
0.235294
0.15917
0.15917
0
0
0.016035
0.177458
834
25
69
33.36
0.826531
0.191847
0
0
0
0
0.124066
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.588235
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
f657d3da0f2df7785004ba54e89b91a1863dc311
2,343
py
Python
king.py
iamaris/pystock
864f8beba0cf50a7a4f52bf7c67e83fdfd774a9c
[ "Apache-2.0" ]
null
null
null
king.py
iamaris/pystock
864f8beba0cf50a7a4f52bf7c67e83fdfd774a9c
[ "Apache-2.0" ]
null
null
null
king.py
iamaris/pystock
864f8beba0cf50a7a4f52bf7c67e83fdfd774a9c
[ "Apache-2.0" ]
null
null
null
import urllib import pandas as pd import pandas.io.data as web from datetime import datetime import matplotlib.pyplot as plt import pickle as pk znga = web.DataReader("ZNGA", "yahoo", datetime(2009,1,1)) gluu = web.DataReader("GLUU", "yahoo", datetime(2009,1,1)) vix = web.DataReader("^vix", "yahoo", datetime(2009,1,1)...
33
102
0.638498
389
2,343
3.827764
0.22365
0.075218
0.114171
0.120887
0.274681
0.147079
0.132975
0.112156
0.112156
0.112156
0
0.050356
0.101579
2,343
70
103
33.471429
0.657007
0.145113
0
0
0
0
0.190263
0
0
0
0
0
0
0
null
null
0
0.153846
null
null
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
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f65ac0eedabd1229f3ef273bd194acbc19de95ce
260
py
Python
December-05/python_kamali1511_csvtohtml.py
subinvelleringatt/A-December-of-Algorithms-2019
504e4a688726ce92e1414114ebace5ea1fc9ece7
[ "MIT" ]
228
2019-11-20T12:57:05.000Z
2021-12-09T03:35:09.000Z
December-05/python_kamali1511_csvtohtml.py
subinvelleringatt/A-December-of-Algorithms-2019
504e4a688726ce92e1414114ebace5ea1fc9ece7
[ "MIT" ]
29
2019-11-30T14:19:43.000Z
2020-01-17T17:38:28.000Z
December-05/python_kamali1511_csvtohtml.py
subinvelleringatt/A-December-of-Algorithms-2019
504e4a688726ce92e1414114ebace5ea1fc9ece7
[ "MIT" ]
188
2019-11-27T14:29:55.000Z
2021-12-25T02:18:29.000Z
import pandas csv_location = 'C:\\Users\\KAMALI\\Documents\\ACM.csv' html_location = 'C:\\Users\\KAMALI\\Desktop\\table.html' dfObj = pandas.read_csv(csv_location) htmlData = dfObj.to_html() with open(html_location, 'w') as infile: infile.write(htmlData)
21.666667
56
0.738462
38
260
4.894737
0.578947
0.11828
0.150538
0.215054
0
0
0
0
0
0
0
0
0.096154
260
11
57
23.636364
0.791489
0
0
0
0
0
0.293436
0.289575
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f65c06725e5ddb8fb4ebfd63d95e68a494b80930
416
py
Python
aiida_mock_codes/_env_keys.py
greschd/aiida-mock-codes
004e0ca603899eabe57f2768812e9459d3e0e5a9
[ "Apache-2.0" ]
null
null
null
aiida_mock_codes/_env_keys.py
greschd/aiida-mock-codes
004e0ca603899eabe57f2768812e9459d3e0e5a9
[ "Apache-2.0" ]
1
2020-11-28T21:03:55.000Z
2020-11-30T12:40:45.000Z
aiida_mock_codes/_env_keys.py
greschd/aiida-mock-codes
004e0ca603899eabe57f2768812e9459d3e0e5a9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Defines the environment variable names for the mock code execution. """ from enum import Enum class EnvKeys(Enum): """ An enum containing the environment variables defined for the mock code execution. """ LABEL = 'AIIDA_MOCK_LABEL' DATA_DIR = 'AIIDA_MOCK_DATA_DIR' ...
23.111111
67
0.706731
54
416
5.185185
0.537037
0.128571
0.071429
0.1
0.164286
0
0
0
0
0
0
0.003012
0.201923
416
17
68
24.470588
0.840361
0.413462
0
0
0
0
0.387097
0.225806
0
0
0
0
0
1
0
false
0
0.166667
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f65e003ea60103b50a34da17a8e176a9ae7573bb
2,049
py
Python
sentiments_in_political_speeches/main.py
Jana-Z/sentiments_in_german_political_speeches
4ef558c5872202a7899c660b3e600c165f3a6ce2
[ "MIT" ]
null
null
null
sentiments_in_political_speeches/main.py
Jana-Z/sentiments_in_german_political_speeches
4ef558c5872202a7899c660b3e600c165f3a6ce2
[ "MIT" ]
null
null
null
sentiments_in_political_speeches/main.py
Jana-Z/sentiments_in_german_political_speeches
4ef558c5872202a7899c660b3e600c165f3a6ce2
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd import matplotlib.pyplot as plt import collections from itertools import cycle, islice from readability import plotter as read import speeches from emotions import data from emotions import stemmer from emotions import calculator from plotting import emotions_plott...
31.523077
96
0.674963
272
2,049
4.838235
0.279412
0.100304
0.086626
0.049392
0.378419
0.269757
0.224164
0.203647
0.203647
0.203647
0
0.001884
0.223036
2,049
64
97
32.015625
0.824749
0.030259
0
0.163636
0
0
0.085181
0.010585
0
0
0
0
0
0
null
null
0
0.236364
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
f65e8499d1c5b6cd15665f571e02ba58033f1920
4,749
py
Python
test/test_pipeline.py
MilesCranmer/bifrost
951dd4a449850d22cfd74f4db13ecf806fe5cc30
[ "BSD-3-Clause" ]
1
2017-06-27T10:12:44.000Z
2017-06-27T10:12:44.000Z
test/test_pipeline.py
MilesCranmer/bifrost
951dd4a449850d22cfd74f4db13ecf806fe5cc30
[ "BSD-3-Clause" ]
null
null
null
test/test_pipeline.py
MilesCranmer/bifrost
951dd4a449850d22cfd74f4db13ecf806fe5cc30
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2016, The Bifrost Authors. All rights reserved. # Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must r...
43.172727
73
0.730891
659
4,749
5.171472
0.3217
0.06162
0.049296
0.019953
0.359742
0.287559
0.277582
0.253521
0.232394
0.232394
0
0.011236
0.156665
4,749
109
74
43.568807
0.8397
0.355443
0
0.416667
0
0
0.061329
0.008177
0
0
0
0.009174
0.208333
0
null
null
0
0.083333
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
f663a3710764487e9930ac48b883d9c2b9f1ba2a
5,304
py
Python
hello.py
jvns/git-workflow
f67c12b444a2a9eaf6d677cee093b44d9359fa3b
[ "MIT" ]
205
2015-01-07T07:33:17.000Z
2022-03-10T15:36:48.000Z
hello.py
usmanakram232/git-workflow
f67c12b444a2a9eaf6d677cee093b44d9359fa3b
[ "MIT" ]
3
2015-11-28T23:40:54.000Z
2021-07-08T01:11:23.000Z
hello.py
usmanakram232/git-workflow
f67c12b444a2a9eaf6d677cee093b44d9359fa3b
[ "MIT" ]
28
2015-02-18T16:35:04.000Z
2022-02-03T07:30:29.000Z
from flask import Flask, render_template, jsonify, request, g, abort import pandas as pd import networkx as nx import pygraphviz as pgv import json import tempfile import numpy as np import brewer2mpl from StringIO import StringIO import psycopg2 import urlparse import os app = Flask(__name__) app.config['DEBUG'] = T...
30.65896
109
0.637821
742
5,304
4.40566
0.300539
0.039768
0.019272
0.02019
0.087489
0.075252
0.019578
0
0
0
0
0.010875
0.219834
5,304
172
110
30.837209
0.77912
0.014517
0
0.075862
0
0
0.104799
0.009207
0
0
0
0
0
0
null
null
0.013793
0.082759
null
null
0.006897
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
f66f9216ccf7018139eacffb698b267bfd4e1bbc
2,189
py
Python
examples/webapp_flask.py
avalente/appmetrics
366fc7e1ca897e49a2227cbfa43bfa02a47f1acc
[ "Apache-2.0" ]
60
2015-01-19T05:32:32.000Z
2021-06-08T07:35:02.000Z
examples/webapp_flask.py
alexKeleon/appmetrics
366fc7e1ca897e49a2227cbfa43bfa02a47f1acc
[ "Apache-2.0" ]
6
2015-03-02T19:25:02.000Z
2021-03-27T17:26:07.000Z
examples/webapp_flask.py
alexKeleon/appmetrics
366fc7e1ca897e49a2227cbfa43bfa02a47f1acc
[ "Apache-2.0" ]
12
2015-01-19T05:04:14.000Z
2020-09-08T07:49:54.000Z
""" simple flask application to show appmetrics usage. """ # a couple of endpoints are defined and a couple of metrics # measuring throughput and latency for each endpoint plus one # for the global throughput # # of course, flask must be installed (pip install flask) # Example: # # $ python examples/webapp_flask.py ...
32.191176
394
0.734125
241
2,189
6.560166
0.406639
0.041746
0.043011
0.053131
0.110057
0.084756
0
0
0
0
0
0.279255
0.14116
2,189
67
395
32.671642
0.561702
0.561444
0
0.137931
0
0
0.130388
0
0
0
0
0
0
1
0.068966
false
0
0.103448
0
0.241379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f67a7ad9d7958716c654a9de8d7055db963e7764
620
py
Python
cohorts_proj/api/migrations/0002_auto_20201118_0125.py
zferic/harmonization-website
f6a081481df3a3a62cb075fbb63ad0470b0d4e06
[ "MIT" ]
1
2020-09-20T02:32:01.000Z
2020-09-20T02:32:01.000Z
cohorts_proj/api/migrations/0002_auto_20201118_0125.py
zferic/harmonization-website
f6a081481df3a3a62cb075fbb63ad0470b0d4e06
[ "MIT" ]
20
2020-04-17T14:01:41.000Z
2022-03-12T00:30:23.000Z
cohorts_proj/api/migrations/0002_auto_20201118_0125.py
zferic/harmonization-website
f6a081481df3a3a62cb075fbb63ad0470b0d4e06
[ "MIT" ]
3
2020-10-08T00:24:51.000Z
2021-06-02T20:07:30.000Z
# Generated by Django 3.0.7 on 2020-11-18 01:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.AlterField( model_name='datasetuploadmodel', name='dataset_type',...
32.631579
281
0.648387
68
620
5.647059
0.632353
0.104167
0.088542
0
0
0
0
0
0
0
0
0.044266
0.198387
620
18
282
34.444444
0.72837
0.072581
0
0
1
0
0.357766
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
f67c5e99f8382f72d21656638e76066a8f6362fa
1,096
py
Python
web/api/maestro_api/db/models/agent.py
Farfetch/maestro
837d93866123aea8b90ad0e2aaf3f13bf3ef6907
[ "MIT" ]
21
2022-02-02T11:52:14.000Z
2022-02-06T02:44:16.000Z
web/api/maestro_api/db/models/agent.py
Farfetch/maestro
837d93866123aea8b90ad0e2aaf3f13bf3ef6907
[ "MIT" ]
78
2022-02-02T12:13:12.000Z
2022-03-29T08:10:42.000Z
web/api/maestro_api/db/models/agent.py
Farfetch/maestro
837d93866123aea8b90ad0e2aaf3f13bf3ef6907
[ "MIT" ]
null
null
null
from maestro_api.libs.extended.enum import ExtendedEnum from mongoengine import StringField from maestro_api.db.mixins import CreatedUpdatedDocumentMixin from maestro_api.libs.datetime import strftime class AgentStatus(ExtendedEnum): """ Agents sends their status from time to time. If Agent stop sending s...
30.444444
85
0.684307
119
1,096
6.176471
0.478992
0.044898
0.057143
0.04898
0
0
0
0
0
0
0
0
0.22354
1,096
35
86
31.314286
0.86369
0.108577
0
0
0
0
0.104493
0
0
0
0
0
0
1
0.04
false
0
0.16
0.04
0.64
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
f67e76c93cfde02c31983edf748ae38341b647b9
4,969
py
Python
accounts/views.py
Jaheen/CrazyCart
bb72ed71edfe90580482c47d90bcd7ecaa302970
[ "MIT" ]
null
null
null
accounts/views.py
Jaheen/CrazyCart
bb72ed71edfe90580482c47d90bcd7ecaa302970
[ "MIT" ]
10
2021-03-18T22:40:53.000Z
2022-03-11T23:50:51.000Z
accounts/views.py
Jaheen/CrazyCart
bb72ed71edfe90580482c47d90bcd7ecaa302970
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from django.contrib.auth import login as UserLogin, logout as UserLogout, authenticate from django.contrib import messages from .models import * from .verification import sendVerificationEmail #SUGGESTED TO USE CLA...
39.436508
120
0.623063
530
4,969
5.824528
0.209434
0.09621
0.122449
0.062196
0.429219
0.303855
0.303855
0.267898
0.230969
0.18335
0
0
0.251962
4,969
125
121
39.752
0.830508
0.043671
0
0.435185
0
0
0.153117
0.034541
0
0
0
0
0
1
0.064815
false
0.074074
0.055556
0.009259
0.287037
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
9c8c2ec534ad96bf825fbadbde34d2692ea3214c
10,275
py
Python
src/FLI/camera.py
astroufsc/python-FLI
e5fc8802bca100433802e03915edd2cd0bd62b05
[ "MIT" ]
1
2015-05-29T00:38:00.000Z
2015-05-29T00:38:00.000Z
src/FLI/camera.py
astroufsc/python-FLI
e5fc8802bca100433802e03915edd2cd0bd62b05
[ "MIT" ]
null
null
null
src/FLI/camera.py
astroufsc/python-FLI
e5fc8802bca100433802e03915edd2cd0bd62b05
[ "MIT" ]
null
null
null
""" FLI.camera.py Object-oriented interface for handling FLI USB cameras author: Craig Wm. Versek, Yankee Environmental Systems author_email: cwv@yesinc.com """ __author__ = 'Craig Wm. Versek' __date__ = '2012-08-08' import sys, time, warnings try: from collections import OrderedDict except Impor...
40.936255
120
0.605742
1,266
10,275
4.671406
0.224329
0.031958
0.02232
0.015218
0.278999
0.235374
0.189212
0.165201
0.147954
0.134427
0
0.014477
0.267251
10,275
250
121
41.1
0.771019
0.051095
0
0.125749
0
0
0.086601
0
0
0
0
0.008
0
0
null
null
0
0.047904
null
null
0.023952
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
9c8d9632b51002742a71d2968e1021ca4aac37d9
761
py
Python
tests/client/lcd/api/feegrant_test.py
terra-money/terra.py
d66de6bb4d9d78f08ad8ffe05ae72d847fc5099d
[ "MIT" ]
66
2021-10-21T23:29:38.000Z
2022-03-30T15:58:13.000Z
tests/client/lcd/api/feegrant_test.py
terra-money/terra.py
d66de6bb4d9d78f08ad8ffe05ae72d847fc5099d
[ "MIT" ]
50
2021-10-19T06:11:56.000Z
2022-03-31T17:06:57.000Z
tests/client/lcd/api/feegrant_test.py
terra-money/terra.py
d66de6bb4d9d78f08ad8ffe05ae72d847fc5099d
[ "MIT" ]
39
2021-11-07T17:28:31.000Z
2022-03-31T15:03:57.000Z
from terra_sdk.client.lcd import LCDClient, PaginationOptions terra = LCDClient( url="https://pisco-lcd.terra.dev/", chain_id="pisco-1", ) pagOpt = PaginationOptions(limit=2, count_total=True) def test_allowances(): result, _ = terra.feegrant.allowances( "terra17lmam6zguazs5q5u6z5mmx76uj63gldns...
26.241379
78
0.73456
66
761
8.378788
0.560606
0.086799
0.068716
0.209765
0.256781
0.256781
0.256781
0
0
0
0
0.09019
0.169514
761
28
79
27.178571
0.78481
0
0
0.1
0
0
0.353482
0.289093
0
0
0
0
0.25
1
0.1
false
0
0.05
0
0.15
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
9c92762d98989b0ae4eb5388e7e45d799bef4d27
445
py
Python
catalog/migrations/0009_auto_20180929_1001.py
mentatij/otus_catalog_dj
46bb1fc148bb436743d170176e5103282dfb6cc3
[ "MIT" ]
null
null
null
catalog/migrations/0009_auto_20180929_1001.py
mentatij/otus_catalog_dj
46bb1fc148bb436743d170176e5103282dfb6cc3
[ "MIT" ]
null
null
null
catalog/migrations/0009_auto_20180929_1001.py
mentatij/otus_catalog_dj
46bb1fc148bb436743d170176e5103282dfb6cc3
[ "MIT" ]
null
null
null
# Generated by Django 2.1.1 on 2018-09-29 10:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalog', '0008_auto_20180928_1244'), ] operations = [ migrations.AlterField( model_name='product', name='image', ...
23.421053
109
0.613483
51
445
5.254902
0.823529
0
0
0
0
0
0
0
0
0
0
0.093656
0.25618
445
18
110
24.722222
0.716012
0.101124
0
0
1
0
0.165829
0.057789
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
9c950d2a39976a79ca933929f87f958add0fa87e
7,312
py
Python
transform/support/docxRenderer.py
openenglishbible/USFM-Tools
8438b29037d7b413d59d6ba7507c473bbda2da8c
[ "MIT" ]
14
2016-02-01T15:02:35.000Z
2022-01-18T06:21:56.000Z
transform/support/docxRenderer.py
openenglishbible/USFM-Tools
8438b29037d7b413d59d6ba7507c473bbda2da8c
[ "MIT" ]
2
2021-02-27T10:05:58.000Z
2022-02-26T19:10:46.000Z
transform/support/docxRenderer.py
openenglishbible/USFM-Tools
8438b29037d7b413d59d6ba7507c473bbda2da8c
[ "MIT" ]
6
2015-02-11T22:41:12.000Z
2021-01-03T09:13:58.000Z
# -*- coding: utf-8 -*- # import codecs import os from docx import Document from docx.shared import Inches, Pt, RGBColor import abstractRenderer # # Renders to Word .docx # class Renderer(abstractRenderer.AbstractRenderer): def __init__(self, inputDir, outputDir, outputName, config): abstractRe...
34.490566
149
0.591493
872
7,312
4.847477
0.199541
0.074521
0.06766
0.039745
0.483322
0.427017
0.311568
0.286965
0.280341
0.253844
0
0.012156
0.279951
7,312
211
150
34.654028
0.790693
0.033643
0
0.258278
0
0
0.043744
0.007243
0
0
0
0
0
1
0.317881
false
0.033113
0.033113
0.013245
0.470199
0.07947
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
9c95da0f17b2e834d70853f308abd5efe0eb37b4
357
py
Python
merge_csv.py
RicherMans/Dcase2018_pooling
10540502bba7215a1ba157614b39fedecb079d9b
[ "Apache-2.0" ]
13
2019-04-14T08:10:59.000Z
2021-04-01T08:36:35.000Z
merge_csv.py
RicherMans/Dcase2018_pooling
10540502bba7215a1ba157614b39fedecb079d9b
[ "Apache-2.0" ]
null
null
null
merge_csv.py
RicherMans/Dcase2018_pooling
10540502bba7215a1ba157614b39fedecb079d9b
[ "Apache-2.0" ]
3
2019-04-22T10:40:27.000Z
2020-05-14T11:27:09.000Z
import argparse import pandas as pd parser = argparse.ArgumentParser() parser.add_argument('csvs', type=argparse.FileType('r'), nargs='+') parser.add_argument('-out', type=argparse.FileType('w'), default='out.csv') args = parser.parse_args() pd.concat([pd.read_csv(f, sep='\t') for f in args.csvs], axis=0).to_...
39.666667
75
0.70028
56
357
4.375
0.571429
0.073469
0.138776
0
0
0
0
0
0
0
0
0.003125
0.103641
357
8
76
44.625
0.7625
0
0
0
0
0
0.061625
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
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
9c9783eb738d90cec205f76bc47ef31bc9e4981c
1,867
py
Python
tests/test_generate_histogram_plot.py
laelbarlow/amoebae
3c6607bcb64a60baee2f19f0a25e14b325e9725d
[ "Apache-2.0" ]
8
2020-07-16T21:36:38.000Z
2021-11-28T08:32:05.000Z
tests/test_generate_histogram_plot.py
laelbarlow/amoebae
3c6607bcb64a60baee2f19f0a25e14b325e9725d
[ "Apache-2.0" ]
null
null
null
tests/test_generate_histogram_plot.py
laelbarlow/amoebae
3c6607bcb64a60baee2f19f0a25e14b325e9725d
[ "Apache-2.0" ]
1
2020-07-31T21:21:15.000Z
2020-07-31T21:21:15.000Z
#!/usr/bin/env python3 """PyTest tests for the generate_histogram_plot.py module. """ import os import sys sys.path.append(os.path.join(os.path.dirname(sys.path[0]),'amoebaelib')) # Customize. from generate_histogram_plot import \ generate_histogram, \ generate_double_histogram, \ autolabel_bars, \ generate_bar_chart ...
22.22619
90
0.528656
179
1,867
5.290503
0.24581
0.179514
0.126716
0.126716
0.621964
0.563886
0.44773
0.44773
0.392819
0.237592
0
0.001348
0.205142
1,867
83
91
22.493976
0.636792
0.408677
0
0.333333
1
0
0.043419
0
0
0
0
0
0.190476
1
0.190476
false
0
0.142857
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
9c9d795d7478f8874ad3e2278920a0dbad64e675
1,639
py
Python
NiaPy/tests/test_ba.py
kivancguckiran/NiaPy
06d3699c1466bfc54c4220a4aabe97cad50f75e4
[ "MIT" ]
2
2018-10-07T08:41:44.000Z
2019-04-05T15:30:56.000Z
NiaPy/tests/test_ba.py
kivancguckiran/NiaPy
06d3699c1466bfc54c4220a4aabe97cad50f75e4
[ "MIT" ]
null
null
null
NiaPy/tests/test_ba.py
kivancguckiran/NiaPy
06d3699c1466bfc54c4220a4aabe97cad50f75e4
[ "MIT" ]
null
null
null
# pylint: disable=old-style-class, line-too-long from NiaPy.tests.test_algorithm import AlgorithmTestCase, MyBenchmark from NiaPy.algorithms.basic import BatAlgorithm class BATestCase(AlgorithmTestCase): def test_parameter_type(self): d = BatAlgorithm.typeParameters() self.assertTrue(d['Qmax'](10...
49.666667
157
0.661379
252
1,639
4.218254
0.206349
0.112888
0.120414
0.084666
0.540922
0.507056
0.507056
0.428975
0.428975
0.355597
0
0.043034
0.163514
1,639
32
158
51.21875
0.732312
0.028066
0
0
0
0
0.027656
0
0
0
0
0
0.5
1
0.115385
false
0
0.076923
0
0.230769
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
9c9f0bd5bac5004d0be7ff13716a4af3686f9d6a
17,094
py
Python
src/shaders/MaterialX/build_materialX_osl.py
FrankFirsching/OpenShadingLanguage
2789d4345a2865af669c8b3bb402a5bff9faf927
[ "BSD-3-Clause" ]
2
2019-10-05T20:01:05.000Z
2021-07-29T19:28:18.000Z
src/shaders/MaterialX/build_materialX_osl.py
brechtvl/OpenShadingLanguage
71c4fb263fcdc88decf2b86d346836f7a2b4d463
[ "BSD-3-Clause" ]
null
null
null
src/shaders/MaterialX/build_materialX_osl.py
brechtvl/OpenShadingLanguage
71c4fb263fcdc88decf2b86d346836f7a2b4d463
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ''' Generate compilable .osl files from .mx templates Adam Martinez TODO: Some functionalization in place, can it be expanded? Add ability to specify shader and shader type to compile to osl Is there a more compact representation of the BUILD_DICT we can employ? ''' import os imp...
40.507109
155
0.514333
1,915
17,094
4.34047
0.144125
0.016121
0.01552
0.012031
0.387753
0.321824
0.306184
0.27346
0.164461
0.15219
0
0.031897
0.293904
17,094
421
156
40.603325
0.656752
0.064175
0
0.263298
1
0.013298
0.384259
0.021101
0
0
0
0.002375
0
1
0.010638
false
0
0.013298
0
0.042553
0.023936
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
9ca0a45bddeef0f2653047fb40011df6a5d96a62
782
py
Python
QuickStarts/HM.py
nj-czy/UCTB
bddb8b47953bef1f44cb06f1a57a3d7efbd31c3a
[ "MIT" ]
28
2020-02-28T03:16:43.000Z
2022-03-31T07:24:47.000Z
QuickStarts/HM.py
nj-czy/UCTB
bddb8b47953bef1f44cb06f1a57a3d7efbd31c3a
[ "MIT" ]
8
2020-06-30T09:34:56.000Z
2022-01-17T12:20:28.000Z
QuickStarts/HM.py
nj-czy/UCTB
bddb8b47953bef1f44cb06f1a57a3d7efbd31c3a
[ "MIT" ]
13
2020-06-04T09:47:36.000Z
2022-02-25T09:50:52.000Z
from UCTB.dataset import NodeTrafficLoader from UCTB.model import HM from UCTB.evaluation import metric from UCTB.utils import save_predict_in_dataset data_loader = NodeTrafficLoader(dataset='Bike', city='NYC', closeness_len=0, period_len=0, trend_len=4, with_lm=False, normalize=F...
41.157895
104
0.704604
103
782
5.048544
0.378641
0.173077
0.107692
0.121154
0.115385
0.115385
0
0
0
0
0
0.006483
0.210997
782
18
105
43.444444
0.836305
0.069054
0
0
0
0
0.015515
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9ca4c6440cb1de8f401d9054c72769d131e5b57a
2,808
py
Python
zookeeper-contrib/zookeeper-contrib-rest/src/python/demo_queue.py
lzk630/zookeeper
424631f0361ef9c97c439f2e2570bdadfb47f774
[ "Apache-2.0" ]
255
2015-07-16T06:23:51.000Z
2022-03-22T06:43:23.000Z
src/contrib/rest/src/python/demo_queue.py
phunt/zookeeper
8bf467bca26079ce6fca94dfef96efa13d4df664
[ "Apache-2.0" ]
46
2015-11-18T01:46:53.000Z
2022-03-21T21:19:55.000Z
src/contrib/rest/src/python/demo_queue.py
phunt/zookeeper
8bf467bca26079ce6fca94dfef96efa13d4df664
[ "Apache-2.0" ]
132
2015-01-07T08:54:50.000Z
2021-06-23T07:48:34.000Z
#! /usr/bin/env python # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "...
28.08
86
0.633903
387
2,808
4.560724
0.496124
0.033994
0.014731
0.01813
0
0
0
0
0
0
0
0.009843
0.276353
2,808
99
87
28.363636
0.85876
0.446581
0
0
0
0
0.08526
0
0
0
0
0
0
0
null
null
0
0.093023
null
null
0.093023
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
9ca51e950be017b28a0d4cdd38cd2171db8c47ae
6,010
py
Python
trade_remedies_api/core/migrations/0001_initial.py
uktrade/trade-remedies-api
fbe2d142ef099c7244788a0f72dd1003eaa7edce
[ "MIT" ]
1
2020-08-13T10:37:15.000Z
2020-08-13T10:37:15.000Z
trade_remedies_api/core/migrations/0001_initial.py
uktrade/trade-remedies-api
fbe2d142ef099c7244788a0f72dd1003eaa7edce
[ "MIT" ]
4
2020-09-10T13:41:52.000Z
2020-12-16T09:00:21.000Z
trade_remedies_api/core/migrations/0001_initial.py
uktrade/trade-remedies-api
fbe2d142ef099c7244788a0f72dd1003eaa7edce
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2018-10-15 14:44 from django.conf import settings import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import django_countries.fields import security.models import timezone_field.fields import u...
39.281046
134
0.450749
468
6,010
5.641026
0.333333
0.051136
0.036364
0.045076
0.328409
0.293561
0.202273
0.173485
0.143939
0.143939
0
0.015338
0.446755
6,010
152
135
39.539474
0.778647
0.007488
0
0.4
1
0
0.130974
0.018447
0
0
0
0
0
1
0
false
0.006897
0.062069
0
0.089655
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
9cb7c784e0a6d8c1980b922a58d1d3caf3ac317b
1,094
py
Python
project/apps/registration/migrations/0003_auto_20190904_0615.py
dbinetti/barberscore
13c3d8193834bd2bb79922e28d3f5ab1675bdffd
[ "BSD-2-Clause" ]
13
2017-08-07T15:45:49.000Z
2019-07-03T13:58:50.000Z
project/apps/registration/migrations/0003_auto_20190904_0615.py
barberscore/barberscore-api
2aa9f8598c18c28ba1d4a294f76fd055619f803e
[ "BSD-2-Clause" ]
309
2017-07-14T02:34:12.000Z
2022-01-14T21:37:02.000Z
project/apps/registration/migrations/0003_auto_20190904_0615.py
dbinetti/barberscore-django
16fbd9945becda0a765bbdf52ad459a63655128f
[ "BSD-2-Clause" ]
5
2017-08-07T14:01:07.000Z
2019-06-24T19:44:55.000Z
# Generated by Django 2.2.4 on 2019-09-04 13:15 from django.db import migrations def forward(apps, schema_editor): Entry = apps.get_model('registration.entry') Group = apps.get_model('bhs.group') Chart = apps.get_model('bhs.chart') es = Entry.objects.all() for e in es: try: g ...
26.682927
52
0.581353
136
1,094
4.588235
0.470588
0.033654
0.057692
0.048077
0
0
0
0
0
0
0
0.041005
0.308958
1,094
40
53
27.35
0.784392
0.041133
0
0.121212
1
0
0.067813
0.021968
0
0
0
0
0
1
0.030303
false
0
0.030303
0
0.151515
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
9cbade0bc4a1a6746c6d1a8abe962b54698d0d4e
3,469
py
Python
src/generator/dependency_tracker.py
SirGFM/SirGFM.github.io
d2432be03bb0ced68b546bd25769e59dfade4982
[ "Zlib" ]
null
null
null
src/generator/dependency_tracker.py
SirGFM/SirGFM.github.io
d2432be03bb0ced68b546bd25769e59dfade4982
[ "Zlib" ]
null
null
null
src/generator/dependency_tracker.py
SirGFM/SirGFM.github.io
d2432be03bb0ced68b546bd25769e59dfade4982
[ "Zlib" ]
null
null
null
import json import sys import re class BufferedWriter(): def __init__(self, txt='', max_len=80, out=sys.stdout): self._txt = txt self._len = len(txt) self._max_len = max_len self._out = out def write(self, txt, force=False): """Write some text. If the line were to go b...
33.355769
113
0.502162
425
3,469
3.929412
0.32
0.05988
0.023952
0.02515
0.160479
0.126347
0.083832
0.083832
0.051497
0
0
0.006893
0.37273
3,469
103
114
33.679612
0.76057
0.064572
0
0.101266
0
0.012658
0.116949
0.011525
0
0
0
0
0
0
null
null
0.012658
0.037975
null
null
0.101266
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
9cd017d4ef005fd4cb543de0bc5fedaa0f8e0574
747
py
Python
Aurix code/jsonDijkstra/map2json/Line_t.py
SamiEzz/embeddedTwirtee
118e7709c9bb173701e25c4b1375ee1d384a61a4
[ "MIT" ]
null
null
null
Aurix code/jsonDijkstra/map2json/Line_t.py
SamiEzz/embeddedTwirtee
118e7709c9bb173701e25c4b1375ee1d384a61a4
[ "MIT" ]
1
2020-02-26T16:14:32.000Z
2020-02-26T16:14:32.000Z
python_tools/map2json/Line_t.py
SamiEzz/embeddedTwirtee
118e7709c9bb173701e25c4b1375ee1d384a61a4
[ "MIT" ]
null
null
null
from Point_t import Point_t from Leg import * import math class Line_t(Leg): """Classe représentant une ligne""" def __init__(self, coo_tulpe_start, coo_tulpe_end, id): Leg.__init__(self, id) #classe mere leg self._point_start = Point_t(coo_tulpe_start) #point start du leg se...
43.941176
244
0.686747
127
747
3.637795
0.251969
0.175325
0.151515
0.103896
0.160173
0.160173
0.108225
0
0
0
0
0.004918
0.1834
747
16
245
46.6875
0.752459
0.125837
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.230769
0
0.538462
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
9cd122ce12f565785b62e9d4b58b2d66d5dbc30f
1,849
py
Python
api/organisations/tests/factories.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
3
2019-05-15T09:30:39.000Z
2020-04-22T16:14:23.000Z
api/organisations/tests/factories.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
85
2019-04-24T10:39:35.000Z
2022-03-21T14:52:12.000Z
api/organisations/tests/factories.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
1
2021-01-17T11:12:19.000Z
2021-01-17T11:12:19.000Z
import random import factory from django.utils import timezone from api.addresses.tests.factories import AddressFactory from api.organisations import models from api.organisations.enums import OrganisationType, OrganisationStatus from api.organisations.tests.providers import OrganisationProvider factory.Faker.add_pr...
33.017857
105
0.746349
201
1,849
6.706468
0.383085
0.062315
0.053412
0.051929
0.163205
0.127596
0
0
0
0
0
0.000651
0.169822
1,849
55
106
33.618182
0.877524
0.005949
0
0.097561
0
0
0.057766
0.024523
0
0
0
0
0
1
0.073171
false
0
0.170732
0
0.707317
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
9cd6a9907dbb3c98dd8a89732b5e0a3f3014b425
444
py
Python
setup.py
CD3/txt2svg
d53110b320f8442f57a694ae24b557f1d410e0ba
[ "MIT" ]
null
null
null
setup.py
CD3/txt2svg
d53110b320f8442f57a694ae24b557f1d410e0ba
[ "MIT" ]
null
null
null
setup.py
CD3/txt2svg
d53110b320f8442f57a694ae24b557f1d410e0ba
[ "MIT" ]
null
null
null
#! /usr/bin/env python from setuptools import setup, find_packages setup( name='txt2svg', license="MIT", version="0.1", description='A tool for generating svg images from plain text files.', url='https://github.com/CD3/txt2svg', author='C.D. Clark III', packages=find_packages(), instal...
23.368421
74
0.657658
56
444
5.125
0.821429
0.083624
0
0
0
0
0
0
0
0
0
0.022161
0.186937
444
18
75
24.666667
0.772853
0.047297
0
0
0
0
0.447867
0.085308
0
0
0
0
0
1
0
true
0
0.066667
0
0.066667
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
9cdcd417120489c50be7c4fe5fc7166efe788f6e
1,659
py
Python
temp.py
zimmed/project200
07ed6952bcec890c4cbc3b00d09ca3be6c1cfbf8
[ "MIT" ]
null
null
null
temp.py
zimmed/project200
07ed6952bcec890c4cbc3b00d09ca3be6c1cfbf8
[ "MIT" ]
null
null
null
temp.py
zimmed/project200
07ed6952bcec890c4cbc3b00d09ca3be6c1cfbf8
[ "MIT" ]
1
2021-06-01T10:44:21.000Z
2021-06-01T10:44:21.000Z
from store.user import User from store import ModelStore as DataStore from game import Game from core.dotdict import DotDict from server import EventServer import sys def prnt(obj, k): def f(model, key, func): print obj + ':' + k + ' -> ' + model[k] return f def server_main(): print ...
29.105263
83
0.579867
236
1,659
4
0.351695
0.044492
0.066737
0.074153
0.09322
0.03178
0
0
0
0
0
0.012185
0.257987
1,659
56
84
29.625
0.754671
0
0
0
0
0
0.112116
0
0
0
0
0
0
0
null
null
0
0.12
null
null
0.08
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
9cdd480827a1fd289872f3766e3983a441501350
5,164
py
Python
tools/polyfilt.py
ernestyalumni/18-327-wavelets-filter-banks
eeb3fd65b42808cf907aa716110417515dbbfd82
[ "MIT" ]
13
2015-07-18T16:13:19.000Z
2021-11-09T12:04:01.000Z
tools/polyfilt.py
ernestyalumni/18-327-wavelets-filter-banks
eeb3fd65b42808cf907aa716110417515dbbfd82
[ "MIT" ]
null
null
null
tools/polyfilt.py
ernestyalumni/18-327-wavelets-filter-banks
eeb3fd65b42808cf907aa716110417515dbbfd82
[ "MIT" ]
7
2015-07-30T20:05:22.000Z
2021-06-29T01:11:08.000Z
## polyfilt.py ## This is my implementation of polyfilt.m ## Polyphase implementation of a filter ## using Python libraries numpy, scipy ## ## The main reference that I'll use is ## Gilbert Strang, and Kevin Amaratunga. 18.327 Wavelets, Filter Banks and Applications, Spring 2003. (Massachusetts Institute of Technology...
46.107143
241
0.445972
522
5,164
4.404215
0.454023
0.00696
0.010439
0.024793
0.101783
0.066986
0.030448
0
0
0
0
0.033611
0.441131
5,164
111
242
46.522523
0.762994
0.853796
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9cdf1578fa4f2e1b103a8b115bdfeb2d7e8e8584
2,716
py
Python
main/config/config.py
m-adamski/python-send-db-result
797aa2faec33e21c15c8fb703a6790815b070b28
[ "MIT" ]
1
2020-10-02T21:32:37.000Z
2020-10-02T21:32:37.000Z
main/config/config.py
m-adamski/python-send-db-result
797aa2faec33e21c15c8fb703a6790815b070b28
[ "MIT" ]
null
null
null
main/config/config.py
m-adamski/python-send-db-result
797aa2faec33e21c15c8fb703a6790815b070b28
[ "MIT" ]
null
null
null
import os import json def load_config_file(config_path): if config_path is not None and os.path.isfile(config_path): with open(config_path, "r") as config_file: return json.load(config_file) else: return {} class Config: # Database configuration db_host = "127.0.0.1" ...
31.218391
104
0.576215
310
2,716
4.867742
0.274194
0.058317
0.027833
0.021206
0.074221
0.074221
0.074221
0.074221
0.074221
0.074221
0
0.010405
0.327688
2,716
86
105
31.581395
0.815991
0.115611
0
0.061538
0
0
0.104471
0
0
0
0
0
0
1
0.061538
false
0.061538
0.030769
0.015385
0.430769
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
9ce3032a51e788ff5c21581798ceabf05763db56
1,664
py
Python
tinymongo/errors.py
sumants-dev/tinymongo
e904f274524fa3f86c5aeb04a7e8199414567de7
[ "MIT" ]
177
2016-04-04T14:23:35.000Z
2022-02-21T15:40:17.000Z
tinymongo/errors.py
sumants-dev/tinymongo
e904f274524fa3f86c5aeb04a7e8199414567de7
[ "MIT" ]
35
2016-07-14T10:15:11.000Z
2022-02-13T15:19:27.000Z
tinymongo/errors.py
sumants-dev/tinymongo
e904f274524fa3f86c5aeb04a7e8199414567de7
[ "MIT" ]
33
2016-07-17T14:15:02.000Z
2022-02-21T16:28:55.000Z
"""Exceptions raised by TinyMongo.""" class TinyMongoError(Exception): """Base class for all TinyMongo exceptions.""" class ConnectionFailure(TinyMongoError): """Raised when a connection to the database file cannot be made or is lost. """ class ConfigurationError(TinyMongoError): """Raised when so...
26.83871
79
0.689904
192
1,664
5.895833
0.46875
0.04417
0.084806
0.066254
0
0
0
0
0
0
0
0
0.23137
1,664
61
80
27.278689
0.885066
0.52524
0
0.111111
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.722222
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
9ce978cb516c10830f3bfe23b46648f71d09abc3
517
py
Python
Flask/6. Profile Pages/config.py
AndresAlb/Tutorials
d23800806f7286c405c45745f5e5a0bb7d8c954e
[ "MIT" ]
null
null
null
Flask/6. Profile Pages/config.py
AndresAlb/Tutorials
d23800806f7286c405c45745f5e5a0bb7d8c954e
[ "MIT" ]
null
null
null
Flask/6. Profile Pages/config.py
AndresAlb/Tutorials
d23800806f7286c405c45745f5e5a0bb7d8c954e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jul 15 23:54:49 2020 @author: Andres Angeles Albores """ import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): # Prevent CSRF attack on web forms SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess' # Define th...
25.85
71
0.682785
75
517
4.56
0.746667
0.052632
0.070175
0
0
0
0
0
0
0
0
0.030733
0.181818
517
20
72
25.85
0.777778
0.321083
0
0
0
0
0.169591
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.714286
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
9cf240d5a20da7ecb3612e9bcfa120ca7475b3f0
1,653
py
Python
tests/demtools/scripts/test_input_path.py
uw-cryo/dem-tools
c99a74b3361bca7d1733e9699c3cedd25a5b5948
[ "MIT" ]
null
null
null
tests/demtools/scripts/test_input_path.py
uw-cryo/dem-tools
c99a74b3361bca7d1733e9699c3cedd25a5b5948
[ "MIT" ]
3
2019-09-30T19:40:42.000Z
2019-10-27T02:23:58.000Z
tests/demtools/scripts/test_input_path.py
jomey/dem-tools
c99a74b3361bca7d1733e9699c3cedd25a5b5948
[ "MIT" ]
1
2020-02-07T07:15:13.000Z
2020-02-07T07:15:13.000Z
import argparse from pathlib import Path import pytest from demtools.scripts import InputPath @pytest.fixture(scope='module') def tmp_test_file(tmp_input_path): file = Path(tmp_input_path.join('test_input_file.txt')) print(str(file)) file.touch(mode=0o644, exist_ok=True) return file @pytest.fixtur...
28.016949
80
0.687235
220
1,653
4.868182
0.227273
0.117647
0.102708
0.052288
0.670401
0.582633
0.554622
0.436975
0.345472
0.345472
0
0.013921
0.217786
1,653
58
81
28.5
0.814385
0
0
0.255814
0
0
0.07925
0.013914
0
0
0
0
0.046512
1
0.209302
false
0
0.093023
0.046512
0.395349
0.023256
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
9cf63d6fac7165c02677980da20f53fa501da497
12,911
py
Python
shellshock_scanner.py
CapTheFlag/shellshock-scanner
cb309ae4e4323613e05458ab3c3a7f9483c86a81
[ "MIT" ]
25
2015-01-05T11:59:25.000Z
2022-01-27T13:27:15.000Z
shellshock_scanner.py
surajsinghbisht054/shellshock-scanner
cb309ae4e4323613e05458ab3c3a7f9483c86a81
[ "MIT" ]
null
null
null
shellshock_scanner.py
surajsinghbisht054/shellshock-scanner
cb309ae4e4323613e05458ab3c3a7f9483c86a81
[ "MIT" ]
15
2015-01-06T07:35:53.000Z
2021-01-29T22:42:28.000Z
#!/usr/bin/env python # Author: Mario Rivas Vivar # https://twitter.com/Grifo """ Scan a list of hosts with a list of CGIs trying to exploit the ShellShock vulnerability with different methods and payloads (CVE-2014-6271, CVE-2014-6278) """ import httplib,sys,time import pprint import csv import argparse from threa...
38.311573
233
0.597552
1,518
12,911
4.956522
0.170619
0.050505
0.048379
0.061005
0.454811
0.420255
0.39673
0.335327
0.31446
0.258772
0
0.01876
0.269228
12,911
336
234
38.425595
0.778696
0.048796
0
0.289855
0
0.007246
0.193105
0.00721
0
0
0
0
0
0
null
null
0
0.021739
null
null
0.057971
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
9cfc8c3c743996c080aad3979946e5244ed37a91
2,079
py
Python
jaraco/financial/records.py
jaraco/jaraco.financial
cb6700f6194c5bf144c0c6cf150487d89d8336c5
[ "MIT" ]
null
null
null
jaraco/financial/records.py
jaraco/jaraco.financial
cb6700f6194c5bf144c0c6cf150487d89d8336c5
[ "MIT" ]
1
2016-08-06T17:39:03.000Z
2016-08-06T17:39:03.000Z
jaraco/financial/records.py
jaraco/jaraco.financial
cb6700f6194c5bf144c0c6cf150487d89d8336c5
[ "MIT" ]
null
null
null
from __future__ import print_function import smtplib import email.mime.multipart import email.mime.text import getpass import io import codecs from path import Path from jaraco.ui import progress def email_message(body_text, subject=None): SMTP_SERVER = 'pod51011.outlook.com' SMTP_PORT = 587 SMTP_USERNA...
26.653846
72
0.68254
265
2,079
5.184906
0.418868
0.026201
0.032751
0.027656
0
0
0
0
0
0
0
0.01863
0.199615
2,079
77
73
27
0.807091
0.185666
0
0
0
0
0.128793
0.019814
0
0
0
0
0
1
0.085106
false
0.085106
0.191489
0
0.319149
0.106383
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
9cfead09c9dd64dc64989c8b12c4c6d06757ef47
10,427
py
Python
bughunter/action/ifels.py
ChrisTimperley/BugHunter
090201f491c50fff5a36507ea6861142570d18b9
[ "MIT" ]
4
2017-03-01T05:10:01.000Z
2021-12-14T15:18:01.000Z
bughunter/action/ifels.py
ChrisTimperley/BugCollector
090201f491c50fff5a36507ea6861142570d18b9
[ "MIT" ]
4
2016-10-16T22:57:17.000Z
2017-01-12T21:39:45.000Z
bughunter/action/ifels.py
ChrisTimperley/BugCollector
090201f491c50fff5a36507ea6861142570d18b9
[ "MIT" ]
null
null
null
from bughunter.action.core import * from bughunter.action.basic import ModifyStatement, InsertStatement, DeleteStatement import cgum.statement ##### # GROUP: If-Statement-Related ##### class WrapStatement(ReplaceRepairAction): @staticmethod def from_json(jsn, before, after): return ReplaceRepairAction....
37.239286
92
0.609667
1,302
10,427
4.823349
0.096006
0.020701
0.044586
0.026752
0.659713
0.615127
0.586783
0.56258
0.536306
0.499841
0
0.000658
0.271411
10,427
279
93
37.37276
0.825984
0.111441
0
0.557214
0
0
0.027109
0
0
0
0
0
0.004975
1
0.199005
false
0
0.014925
0.154229
0.412935
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
1
0
0
0
1
1400297ab0c1bbad58a3bb093a0ed2a676260382
358
py
Python
pjbank/__init__.py
pjbank/pjbank-python-sdk
ddfaab13da8a56d67b233ad1628ac9d8223b6eab
[ "MIT" ]
15
2017-08-15T17:39:56.000Z
2019-12-30T18:06:15.000Z
pjbank/__init__.py
pjbank/pjbank-python-sdk
ddfaab13da8a56d67b233ad1628ac9d8223b6eab
[ "MIT" ]
13
2017-08-29T11:03:20.000Z
2019-07-04T19:51:16.000Z
pjbank/__init__.py
pjbank/pjbank-python-sdk
ddfaab13da8a56d67b233ad1628ac9d8223b6eab
[ "MIT" ]
7
2017-08-29T05:10:43.000Z
2019-07-23T17:59:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ pjbank """ from pjbank.api import PJBankAPI from pjbank.contadigital import ContaDigital from pjbank.recebimentos.boleto import Boleto from pjbank.recebimentos.cartaocredito import CartaoCredito from pjbank.config import __version__ conta_digital = ContaDigital() bole...
23.866667
59
0.787709
42
358
6.595238
0.5
0.180505
0.158845
0
0
0
0
0
0
0
0
0.003145
0.111732
358
15
60
23.866667
0.867925
0.136872
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.625
0
0.625
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
1403046e6da2ce010da71e8998d42356dcbbc94e
780
py
Python
day1/if_else_statements.py
anishLearnsToCode/python-workshop-4
d34c312d17c0d4194b2a1d269b8c0e2a56a04699
[ "MIT" ]
4
2020-07-15T13:47:10.000Z
2021-09-15T20:28:50.000Z
day1/if_else_statements.py
anishLearnsToCode/python-workshop-4
d34c312d17c0d4194b2a1d269b8c0e2a56a04699
[ "MIT" ]
null
null
null
day1/if_else_statements.py
anishLearnsToCode/python-workshop-4
d34c312d17c0d4194b2a1d269b8c0e2a56a04699
[ "MIT" ]
2
2020-07-18T03:28:03.000Z
2020-11-01T00:56:02.000Z
""" If else predicate = is any logical expression if predicate: code elif predicate2: (not compulsory) code2 elif predicate3: code3 .. .. .. .. else: (not compulsory) code """ # switch statements not supported by python number = int(input()) if number > 10: print('i am in if block') print('s...
16.25
48
0.617949
105
780
4.590476
0.419048
0.136929
0.080913
0.062241
0
0
0
0
0
0
0
0.044068
0.24359
780
47
49
16.595745
0.772881
0.484615
0
0
0
0
0.411458
0
0
0
0
0
0
1
0
false
0
0
0
0
0.571429
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
1405502804e6766f590b833e1213c48823a5938b
989
py
Python
muchscript/__init__.py
SblipDev/MuchScript
dc12196fc3bafb1e7520f1390222c585e056d9d9
[ "MIT" ]
7
2021-12-16T05:00:12.000Z
2021-12-19T17:10:44.000Z
muchscript/__init__.py
shaurya-blip/MuchScript
ce30b8c3f5a80ea73588f76ef4e4cef3c014bf63
[ "MIT" ]
null
null
null
muchscript/__init__.py
shaurya-blip/MuchScript
ce30b8c3f5a80ea73588f76ef4e4cef3c014bf63
[ "MIT" ]
null
null
null
''' ░░░░░░░░░▄░░░░░░░░░░░░░░▄░░░░ ░░░░░░░░▌▒█░░░░░░░░░░░▄▀▒▌░░░ ░░░░░░░░▌▒▒█░░░░░░░░▄▀▒▒▒▐░░░ ░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐░░░ ░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐░░░ ░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌░░░ ░░▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒▌░░ ░░▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐░░ ░▐░░░▒▒▒▒▒▒▒▒▌██▀▒▒░░░▒▒▒▀▄▌░ ░▌░▒▄██▄▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒▌░ ▀▒▀▐▄█▄█▌▄░▀▒...
24.121951
58
0.325581
86
989
9.825581
0.825581
0.004734
0.007101
0
0
0
0
0
0
0
0
0.02854
0.078868
989
40
59
24.725
0.294182
0.734075
0
0
0
0
0.253968
0
0
0
0
0
0
1
0
false
0
0
0
0
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
140dcd138e5e9fd07dd672e8a40ec75a11c99019
2,786
py
Python
tests/tests.py
Kellel/reports
975e99396301e87176a38dd440a273c9319b3e22
[ "BSD-3-Clause" ]
null
null
null
tests/tests.py
Kellel/reports
975e99396301e87176a38dd440a273c9319b3e22
[ "BSD-3-Clause" ]
null
null
null
tests/tests.py
Kellel/reports
975e99396301e87176a38dd440a273c9319b3e22
[ "BSD-3-Clause" ]
null
null
null
import unittest import re import os from report.parser import REGEX, parser, ParseError from report.app import Application class TestRegularExpressions(unittest.TestCase): def test_date(self): test_string = "1992-05-29 PDT" self.assertIsNotNone(re.match(REGEX.date, test_string)) def test_date...
32.022989
124
0.663317
354
2,786
5.048023
0.254237
0.123111
0.078344
0.145495
0.484051
0.354225
0.225518
0.225518
0.18075
0.123671
0
0.063528
0.214645
2,786
86
125
32.395349
0.753199
0.394831
0
0
0
0
0.076784
0
0
0
0
0
0.243902
1
0.243902
false
0
0.121951
0
0.390244
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
142238b3e9c405d99ac6dba9ee0ddd6daa8d498b
761
py
Python
Enroll.py
olawale0254/Student-enrolment-Predictions-
039b3a46cf8a99543cb705eaaca9b8d9d44d1da6
[ "MIT" ]
null
null
null
Enroll.py
olawale0254/Student-enrolment-Predictions-
039b3a46cf8a99543cb705eaaca9b8d9d44d1da6
[ "MIT" ]
null
null
null
Enroll.py
olawale0254/Student-enrolment-Predictions-
039b3a46cf8a99543cb705eaaca9b8d9d44d1da6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[2]: import pandas as pd import numpy as np # In[3]: # reading data data = pd.read_csv('dattaa.csv') # In[4]: X = data.drop('verdit', axis=1).values y = data.verdit.values # In[5]: # splitting data as X_train and X_test from sklearn.model_selection import train_t...
14.634615
91
0.729304
125
761
4.256
0.464
0.056391
0.052632
0.056391
0
0
0
0
0
0
0
0.018547
0.149803
761
51
92
14.921569
0.803709
0.214192
0
0
0
0
0.02735
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
1
0
0
0
0
1
1425874ed3b65aa3172f2c1bffc189ea1d8e25c8
1,660
py
Python
sdks/python/apache_beam/utils/plugin.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
4
2018-09-25T16:10:54.000Z
2020-07-13T23:52:12.000Z
sdks/python/apache_beam/utils/plugin.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
41
2018-08-16T23:54:04.000Z
2022-01-24T20:27:19.000Z
sdks/python/apache_beam/utils/plugin.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
6
2019-06-02T16:18:52.000Z
2020-11-04T04:17:08.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
35.319149
76
0.753012
234
1,660
5.213675
0.5
0.07459
0.039344
0.02623
0
0
0
0
0
0
0
0.00292
0.174699
1,660
46
77
36.086957
0.887591
0.65241
0
0.133333
0
0
0.001859
0
0
0
0
0
0
1
0.2
false
0
0.133333
0.066667
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
1426c615ae8ca36340d1ad10524328d32710a591
2,922
py
Python
Supertrend Indicator/zrd_login.py
Alfin72/share-trade-indicator
163710bbbc493987176b00a1b3425a84c10daf0e
[ "Apache-2.0" ]
null
null
null
Supertrend Indicator/zrd_login.py
Alfin72/share-trade-indicator
163710bbbc493987176b00a1b3425a84c10daf0e
[ "Apache-2.0" ]
null
null
null
Supertrend Indicator/zrd_login.py
Alfin72/share-trade-indicator
163710bbbc493987176b00a1b3425a84c10daf0e
[ "Apache-2.0" ]
null
null
null
from kiteconnect import KiteConnect from kiteconnect import KiteTicker import pdb import pandas as pd import datetime import os api_k = "put_your_api_key_here" # api_key api_s = "put_your_api_secret_here" # api_secret filename = str(datetime.datetime.now().date()) + ' token' + '.txt' def read_acc...
50.37931
1,538
0.675565
348
2,922
5.5
0.603448
0.103448
0.023511
0.019854
0.133751
0.109718
0.092999
0.059561
0.059561
0.059561
0
0
0.132786
2,922
57
1,539
51.263158
0.755328
0.00616
0
0.153846
0
0
0.422293
0.015823
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.282051
0.102564
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
142e0ef36f1e50a80f773ead8542d87b2003badb
3,905
py
Python
srs/Tournament.py
jokvedaras/game-framework
9ff60e15d1beff54f94e280501929664ce59afe7
[ "Apache-2.0" ]
null
null
null
srs/Tournament.py
jokvedaras/game-framework
9ff60e15d1beff54f94e280501929664ce59afe7
[ "Apache-2.0" ]
null
null
null
srs/Tournament.py
jokvedaras/game-framework
9ff60e15d1beff54f94e280501929664ce59afe7
[ "Apache-2.0" ]
null
null
null
# Alex Ciaramella and Greg Suner # Abstract Tournament Class # Tournament is observable while players are observers import Message import Observable import ScoreKeeper class Tournament(Observable.Observable): # set up a list of players when tournament is initialized def __init__(self): Observable.Ob...
33.663793
100
0.660691
512
3,905
4.917969
0.246094
0.0556
0.0417
0.047657
0.186259
0.124305
0.096505
0.096505
0.096505
0.096505
0
0.001749
0.268118
3,905
115
101
33.956522
0.879286
0.26146
0
0.128571
0
0
0
0
0
0
0
0.008696
0
1
0.228571
false
0.028571
0.042857
0.028571
0.314286
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1433e7c6bf5034dbcfa59dccb53b2a3d0e6d70f2
277
py
Python
samples-python1/500-forrange.py
LunaticNeko/chandrakasem-lectures
5c50bf16e606f54cb341369c812e23a50f1eee94
[ "CC-BY-4.0", "MIT" ]
null
null
null
samples-python1/500-forrange.py
LunaticNeko/chandrakasem-lectures
5c50bf16e606f54cb341369c812e23a50f1eee94
[ "CC-BY-4.0", "MIT" ]
null
null
null
samples-python1/500-forrange.py
LunaticNeko/chandrakasem-lectures
5c50bf16e606f54cb341369c812e23a50f1eee94
[ "CC-BY-4.0", "MIT" ]
null
null
null
# for in range # Print numbers 20XX where XX is 1..20 for i in range(1, 21): print("20", f"{i:02d}", sep="") # ^ formatting # ^ variable/value to format # ^^ 2 digits, with leading zero # ^ integer
21.307692
51
0.458484
34
277
3.735294
0.794118
0.110236
0
0
0
0
0
0
0
0
0
0.08125
0.422383
277
12
52
23.083333
0.7125
0.66787
0
0
0
0
0.108434
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
1443349cfe7290e5fde2e9b993127fa2b050e3ee
2,103
py
Python
wildlifecompliance/migrations/0354_remediationactiontaken_remediationactiontakendocument.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
1
2020-12-07T17:12:40.000Z
2020-12-07T17:12:40.000Z
wildlifecompliance/migrations/0354_remediationactiontaken_remediationactiontakendocument.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
14
2020-01-08T08:08:26.000Z
2021-03-19T22:59:46.000Z
wildlifecompliance/migrations/0354_remediationactiontaken_remediationactiontakendocument.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
15
2020-01-08T08:02:28.000Z
2021-11-03T06:48:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-12-20 07:11 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('wildlifecompliance', '0353_auto_20191220_1334'), ] ...
45.717391
183
0.627675
196
2,103
6.5
0.403061
0.077708
0.032967
0.051805
0.436421
0.381476
0.381476
0.381476
0.310832
0.310832
0
0.026482
0.245839
2,103
45
184
46.733333
0.776797
0.032335
0
0.421053
1
0
0.247047
0.144685
0
0
0
0
0
1
0
false
0
0.078947
0
0.157895
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
1443eba36140a106439af6c4b73f1d1fea95754f
214
py
Python
files/read_lines.py
nv-krishna/python-crash-course
d481faeb2196712cd52ca1d34dc1fe967d13712f
[ "Apache-2.0" ]
2
2020-11-02T05:52:33.000Z
2021-06-09T01:28:22.000Z
files/read_lines.py
nv-krishna/python-crash-course
d481faeb2196712cd52ca1d34dc1fe967d13712f
[ "Apache-2.0" ]
null
null
null
files/read_lines.py
nv-krishna/python-crash-course
d481faeb2196712cd52ca1d34dc1fe967d13712f
[ "Apache-2.0" ]
2
2021-04-08T05:26:04.000Z
2021-06-09T01:28:23.000Z
file_name = 'pi_digits.txt' with open(file_name) as file_object: lines = file_object.readlines() pi_string = '' for line in lines: pi_string += line.strip() print(pi_string) print(len(pi_string))
19.454545
36
0.691589
33
214
4.212121
0.545455
0.230216
0
0
0
0
0
0
0
0
0
0
0.186916
214
11
37
19.454545
0.798851
0
0
0
0
0
0.060465
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
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
144811c35936d86235f73bcc74dc537fd45c6aff
3,796
py
Python
accounts/migrations/0001_initial.py
qinyanjuidavid/Dhana
5a97ab224897bb87ce69d476a88930f3012ae7c5
[ "MIT" ]
null
null
null
accounts/migrations/0001_initial.py
qinyanjuidavid/Dhana
5a97ab224897bb87ce69d476a88930f3012ae7c5
[ "MIT" ]
null
null
null
accounts/migrations/0001_initial.py
qinyanjuidavid/Dhana
5a97ab224897bb87ce69d476a88930f3012ae7c5
[ "MIT" ]
1
2022-02-14T19:11:08.000Z
2022-02-14T19:11:08.000Z
# Generated by Django 4.0.1 on 2022-02-01 12:57 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.db.models.manager import phonenumber_field.modelfields class Migration(migrations.Migration): initial = True dependencies = [ ] o...
53.464789
168
0.613804
399
3,796
5.671679
0.265664
0.111799
0.092797
0.058772
0.475475
0.475475
0.351745
0.322581
0.283694
0.283694
0
0.014629
0.243678
3,796
70
169
54.228571
0.773598
0.011855
0
0.412698
1
0
0.129368
0
0
0
0
0
0
1
0
false
0.015873
0.079365
0
0.142857
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
144e7dc3bdd38db6b198578e9cb50720e54398ed
695
py
Python
Employee/models.py
TheStrixCoder/Parking-Lot-Management
dcb4c439928f9e2c8623e82e3acb860cf50d7041
[ "MIT" ]
null
null
null
Employee/models.py
TheStrixCoder/Parking-Lot-Management
dcb4c439928f9e2c8623e82e3acb860cf50d7041
[ "MIT" ]
null
null
null
Employee/models.py
TheStrixCoder/Parking-Lot-Management
dcb4c439928f9e2c8623e82e3acb860cf50d7041
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Employee(models.Model): user_name = models.CharField(u'user_name',default='abc',max_length = 20) user_first_name = models.CharField(u'Enter first name',max_length=15,default='Chaman') user_last_name = models.CharField(u'Enter first name',max_le...
36.578947
95
0.713669
98
695
4.836735
0.428571
0.158228
0.168776
0.126582
0.261603
0.261603
0.261603
0.261603
0.261603
0.261603
0
0.017301
0.168345
695
18
96
38.611111
0.802768
0.034532
0
0
0
0
0.189836
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0.083333
0.833333
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
144f22d32bbe5f4da41b97bb3ce594626e7bd532
1,421
py
Python
pyctuator/health/db_health_provider.py
TheCodingLand/pyctuator
a5c9f41e426b006892020ce3b98d5e56c27e9dbc
[ "Apache-2.0" ]
1
2020-10-24T16:31:15.000Z
2020-10-24T16:31:15.000Z
pyctuator/health/db_health_provider.py
yanoom/pyctuator
b3aff058e1193eb6db8b887b1c1cf8c116819f82
[ "Apache-2.0" ]
1
2020-07-06T20:37:11.000Z
2020-07-06T20:37:11.000Z
pyctuator/health/db_health_provider.py
yanoom/pyctuator
b3aff058e1193eb6db8b887b1c1cf8c116819f82
[ "Apache-2.0" ]
1
2020-07-02T21:37:52.000Z
2020-07-02T21:37:52.000Z
import importlib.util import time from dataclasses import dataclass from typing import Optional from sqlalchemy.engine import Engine from sqlalchemy.exc import OperationalError from pyctuator.health.health_provider import HealthProvider, HealthStatus, Status, HealthDetails @dataclass class DbHealthDetails(HealthDet...
28.42
104
0.683322
152
1,421
6.302632
0.407895
0.06263
0.08142
0.100209
0.112735
0
0
0
0
0
0
0.004541
0.225194
1,421
49
105
29
0.865577
0
0
0.057143
0
0
0.043631
0
0
0
0
0
0
1
0.114286
false
0
0.228571
0.057143
0.685714
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
145305b18a0c50cfad6baef16c32b27105d46bdd
21,225
py
Python
emma/core/metadata.py
djangowebstudio/emma
afbdaa5c02b4164687356755fddba307eb682ef4
[ "BSD-3-Clause" ]
null
null
null
emma/core/metadata.py
djangowebstudio/emma
afbdaa5c02b4164687356755fddba307eb682ef4
[ "BSD-3-Clause" ]
null
null
null
emma/core/metadata.py
djangowebstudio/emma
afbdaa5c02b4164687356755fddba307eb682ef4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ metadata.py Created by Geert Dekkers on 2008-02-11. Copyright (c) 2008, 2009 Geert Dekkers Web Studio, 2010, 2011, 2012 Django Web Studio. All rights reserved. """ import string import sys import os import unittest import subprocess import re import datetime import time from...
44.403766
157
0.527962
2,193
21,225
5.045144
0.243502
0.043022
0.013557
0.017625
0.316612
0.283623
0.269975
0.244035
0.214479
0.214479
0
0.015504
0.367915
21,225
478
158
44.403766
0.809183
0.039058
0
0.343348
0
0.004292
0.141115
0.021654
0.021459
0
0
0.002092
0
0
null
null
0.021459
0.04721
null
null
0.025751
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
14562d82389831158d99eb2713f73021e22e88ef
669
py
Python
api/urls.py
tomazin/tpp
d9815cca93b43fc37593c3735161ec61d36c54b1
[ "MIT" ]
1
2018-02-07T14:21:10.000Z
2018-02-07T14:21:10.000Z
api/urls.py
tpportugal/tpp_admin
76089465d49fc043837422b67c9f818380427093
[ "MIT" ]
null
null
null
api/urls.py
tpportugal/tpp_admin
76089465d49fc043837422b67c9f818380427093
[ "MIT" ]
1
2021-06-20T17:31:29.000Z
2021-06-20T17:31:29.000Z
from django.conf import settings from django.conf.urls import url from django.contrib import admin from django.urls import include from django.views.generic import RedirectView from graphene_django.views import GraphQLView from api.apps.gdrive.views import upload_timetable urlpatterns = [ #url(r'^$', RedirectView...
30.409091
92
0.735426
88
669
5.454545
0.397727
0.104167
0.058333
0
0
0
0
0
0
0
0
0
0.140508
669
21
93
31.857143
0.834783
0.092676
0
0.117647
0
0
0.062706
0
0
0
0
0
0
1
0
false
0
0.470588
0
0.470588
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
145bf345f806782fbc11a49939daa4c8e412d622
807
py
Python
setup.py
jhamrick/dbtools
40ad39dd87b8bd25b48cfd5fb819e35f85a61f43
[ "MIT" ]
15
2015-04-08T12:22:37.000Z
2020-08-29T17:50:00.000Z
setup.py
jhamrick/dbtools
40ad39dd87b8bd25b48cfd5fb819e35f85a61f43
[ "MIT" ]
null
null
null
setup.py
jhamrick/dbtools
40ad39dd87b8bd25b48cfd5fb819e35f85a61f43
[ "MIT" ]
6
2015-01-07T09:13:18.000Z
2021-10-17T15:37:09.000Z
#!/usr/bin/env python from distutils.core import setup setup( name='dbtools', version=open("VERSION.txt").read().strip(), description='Lightweight SQLite interface', author='Jessica B. Hamrick', author_email='jhamrick@berkeley.edu', url='https://github.com/jhamrick/dbtools', packages=['dbt...
27.827586
49
0.599752
79
807
6.101266
0.797468
0.118257
0.103734
0
0
0
0
0
0
0
0
0.006579
0.246592
807
28
50
28.821429
0.786184
0.024783
0
0
0
0
0.526718
0.026718
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
145ce43f4d1275496b60c29a64125c4a8e0ea1ef
1,442
py
Python
realestate_com_au/fajita/cookie_repository.py
aspratyush/realestate-com-au-api
20fceb8ae16c516337034f832d2d3a940fbfe525
[ "MIT" ]
null
null
null
realestate_com_au/fajita/cookie_repository.py
aspratyush/realestate-com-au-api
20fceb8ae16c516337034f832d2d3a940fbfe525
[ "MIT" ]
null
null
null
realestate_com_au/fajita/cookie_repository.py
aspratyush/realestate-com-au-api
20fceb8ae16c516337034f832d2d3a940fbfe525
[ "MIT" ]
null
null
null
import os import pickle class CookieInvalidException(Exception): pass class CookieRepository(object): """ Class to act as a repository for the cookies. TODO: refactor to use http.cookiejar.FileCookieJar """ def __init__(self, cookie_directory=None, validate_fn=None): self.c...
28.84
80
0.65534
165
1,442
5.527273
0.369697
0.098684
0.104167
0.04386
0.120614
0.120614
0.120614
0.120614
0
0
0
0
0.267684
1,442
49
81
29.428571
0.863636
0.110957
0
0.137931
0
0
0.008936
0
0
0
0
0.020408
0
1
0.172414
false
0.034483
0.068966
0
0.448276
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
1466fa7202c905c1ed7d0f3f21914b3b36e75eb2
390
py
Python
make_a_plea/celery.py
uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas
4c625b13fa2826bdde083a0270dcea1791f6dc18
[ "MIT" ]
3
2015-12-22T16:37:14.000Z
2018-01-22T18:44:38.000Z
make_a_plea/celery.py
uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas
4c625b13fa2826bdde083a0270dcea1791f6dc18
[ "MIT" ]
145
2015-03-04T11:17:50.000Z
2022-03-21T12:10:13.000Z
make_a_plea/celery.py
uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas
4c625b13fa2826bdde083a0270dcea1791f6dc18
[ "MIT" ]
3
2015-12-29T14:59:12.000Z
2021-04-11T06:24:11.000Z
from __future__ import absolute_import import os from celery import Celery from django.conf import settings if not "DJANGO_SETTINGS_MODULE" in os.environ: os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'make_a_plea.settings.local') app = Celery('apps.plea') app.config_from_object('django.conf:settings', namesp...
27.857143
81
0.810256
55
390
5.472727
0.509091
0.066445
0.13289
0
0
0
0
0
0
0
0
0
0.092308
390
13
82
30
0.850282
0
0
0
0
0
0.269231
0.179487
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
146cf0019e1baae0f4a02bb5f0b25a3b7ca507b7
3,676
py
Python
openr/py/openr/cli/clis/prefix_mgr.py
xubingyue/openr
d883b613ff0dae8c1048488bd5332cd138d78af7
[ "MIT" ]
1
2021-01-13T09:45:11.000Z
2021-01-13T09:45:11.000Z
openr/py/openr/cli/clis/prefix_mgr.py
xubingyue/openr
d883b613ff0dae8c1048488bd5332cd138d78af7
[ "MIT" ]
null
null
null
openr/py/openr/cli/clis/prefix_mgr.py
xubingyue/openr
d883b613ff0dae8c1048488bd5332cd138d78af7
[ "MIT" ]
null
null
null
# # Copyright (c) 2014-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from __future__ import divi...
31.689655
78
0.661045
452
3,676
5.188053
0.300885
0.049893
0.040938
0.054584
0.257569
0.231983
0.231983
0.175693
0.175693
0.154371
0
0.00784
0.23667
3,676
115
79
31.965217
0.827869
0.180359
0
0.217391
0
0
0.099347
0.014782
0
0
0
0
0
1
0.101449
false
0.072464
0.144928
0
0.333333
0.014493
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
146e301faad6d37d22b69f9018760b69109e85d8
4,267
py
Python
CombatSystem/combatGame.py
climbablebug44/synergy
dc9bec9da56d436842151e9ceaf004a7db3ed8d0
[ "MIT" ]
null
null
null
CombatSystem/combatGame.py
climbablebug44/synergy
dc9bec9da56d436842151e9ceaf004a7db3ed8d0
[ "MIT" ]
null
null
null
CombatSystem/combatGame.py
climbablebug44/synergy
dc9bec9da56d436842151e9ceaf004a7db3ed8d0
[ "MIT" ]
null
null
null
import pygame from CombatSystem import playerEntity from common import gameConstants as c from CombatSystem.spriteSheetManager import spriteSheetManager from pygame import mixer class combatGame(object): def __init__(self, size, screen): self.clock = pygame.time.Clock() # self.sSManager = spriteSh...
41.833333
118
0.541833
453
4,267
5.066225
0.309051
0.056645
0.045752
0.037037
0.264052
0.253595
0.235294
0.235294
0.171678
0.171678
0
0.025219
0.3588
4,267
101
119
42.247525
0.813596
0.039372
0
0.175
0
0
0.019146
0
0
0
0
0.019802
0
1
0.075
false
0
0.0625
0
0.2
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
146e6232114db733f3b0d7c61e5999eb7219ef0b
18,337
py
Python
semvecpy/vectors/binary_packedbitvectors.py
semanticvectors/semvecpy
b08c038a75faa9130f84cb8ff2ce57a40bca75c1
[ "BSD-3-Clause" ]
6
2019-08-07T19:09:21.000Z
2021-12-10T15:14:07.000Z
semvecpy/vectors/binary_packedbitvectors.py
semanticvectors/semvecpy
b08c038a75faa9130f84cb8ff2ce57a40bca75c1
[ "BSD-3-Clause" ]
2
2019-08-20T16:34:49.000Z
2020-08-07T22:52:57.000Z
semvecpy/vectors/binary_packedbitvectors.py
semanticvectors/semvecpy
b08c038a75faa9130f84cb8ff2ce57a40bca75c1
[ "BSD-3-Clause" ]
5
2019-06-20T18:50:05.000Z
2020-02-14T07:04:41.000Z
""" Binary vectors provide the basis for a representational approach developed by Pentti Kanerva known as the Binary Spatter Code, with the following key components: (1) Randomly generated bit vectors with a .5 probability of a set bit in each component (2) A *superposition* operator: this combines bit vectors elementw...
38.122661
149
0.587173
2,452
18,337
4.354812
0.199429
0.006556
0.005619
0.007492
0.226072
0.180465
0.150871
0.1062
0.09852
0.073609
0
0.03096
0.305993
18,337
480
150
38.202083
0.807952
0.329443
0
0.193676
1
0.059289
0.006765
0
0
0
0
0.004167
0
1
0.130435
false
0
0.035573
0.011858
0.252964
0.003953
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
148507709ec89a7b9ce8b3e2efc0d3035c5ed4c9
423
py
Python
web/opsgrid/core/migrations/0010_auto_20200612_1724.py
simon-weber/opsgrid
9719b9438a4a17eb75b638613a20b534ef82edc7
[ "MIT" ]
null
null
null
web/opsgrid/core/migrations/0010_auto_20200612_1724.py
simon-weber/opsgrid
9719b9438a4a17eb75b638613a20b534ef82edc7
[ "MIT" ]
1
2021-07-26T15:43:47.000Z
2021-07-28T10:06:49.000Z
web/opsgrid/core/migrations/0010_auto_20200612_1724.py
simon-weber/opsgrid
9719b9438a4a17eb75b638613a20b534ef82edc7
[ "MIT" ]
null
null
null
# Generated by Django 2.2.9 on 2020-06-12 17:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("core", "0009_alertstatus_alarming_hosts"), ] operations = [ migrations.AlterField( model_name="alertstatus", name="a...
22.263158
69
0.619385
45
423
5.711111
0.755556
0.101167
0
0
0
0
0
0
0
0
0
0.061093
0.264775
423
18
70
23.5
0.765273
0.106383
0
0
1
0
0.183511
0.082447
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
14873e1459fd28392f8d92a01500f6ff166f405e
1,086
py
Python
switch.py
wangzhifengemc/Pied
3cb726835b80c5e40c79cb37a8382b085217aad2
[ "MIT" ]
null
null
null
switch.py
wangzhifengemc/Pied
3cb726835b80c5e40c79cb37a8382b085217aad2
[ "MIT" ]
null
null
null
switch.py
wangzhifengemc/Pied
3cb726835b80c5e40c79cb37a8382b085217aad2
[ "MIT" ]
null
null
null
#!/usr/bin/env python import RPi.GPIO as GPIO import time LedPin = 26 # pin26 def Switch_setup(): # GPIO.setmode(GPIO.BCM) # Numbers pins by physical location GPIO.setup(LedPin, GPIO.OUT) # Set pin mode as output GPIO.output(LedPin, GPIO.HIGH) # Set pin to high(+3.3V) to off the led def Swi...
27.846154
106
0.57919
147
1,086
4.190476
0.442177
0.081169
0.103896
0.12987
0.288961
0.25
0.25
0.152597
0.152597
0
0
0.018742
0.312155
1,086
38
107
28.578947
0.80589
0.294659
0
0.25
0
0
0.037921
0
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.071429
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
14885518ee5bdf26119d578bdfe03fa5dfcbf72d
3,371
py
Python
tests/test_encode.py
DenverCoder1/godel-number-to-code
1f4fc3d5eba97ca45411302a67db79c77e44e19d
[ "MIT" ]
null
null
null
tests/test_encode.py
DenverCoder1/godel-number-to-code
1f4fc3d5eba97ca45411302a67db79c77e44e19d
[ "MIT" ]
null
null
null
tests/test_encode.py
DenverCoder1/godel-number-to-code
1f4fc3d5eba97ca45411302a67db79c77e44e19d
[ "MIT" ]
1
2022-01-18T19:51:33.000Z
2022-01-18T19:51:33.000Z
from src.encode_program import ( encode_program_as_number, encode_label, encode_var, convert_instruction, ) from .test_utils.constants import BASIC, GOTO, VARIABLES from .test_utils.test_utils import read_program import pytest def test_encode_program_basic(): """Encode program with NOOP, ADD, MONUS to program ...
28.811966
65
0.738653
467
3,371
5.111349
0.154176
0.163385
0.094261
0.131965
0.574361
0.541265
0.508588
0.406368
0.346879
0.346879
0
0.017635
0.142094
3,371
116
66
29.060345
0.807746
0.26194
0
0.193548
0
0
0.100249
0.009114
0
0
0
0
0.403226
1
0.177419
false
0
0.064516
0
0.241935
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
148aed66cef31c0c2ec9eb004a6e093ae5f5aada
477
py
Python
content/admin.py
mislavcimpersak/sentish
7402fa1cb65d4027f7e3151370283f9eb8743ace
[ "MIT" ]
null
null
null
content/admin.py
mislavcimpersak/sentish
7402fa1cb65d4027f7e3151370283f9eb8743ace
[ "MIT" ]
null
null
null
content/admin.py
mislavcimpersak/sentish
7402fa1cb65d4027f7e3151370283f9eb8743ace
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Publisher, Article @admin.register(Publisher) class PublisherAdmin(admin.ModelAdmin): list_display = ["name", "domain"] search_fields = ["name", "domain"] @admin.register(Article) class ArticleAdmin(admin.ModelAdmin): list_display = ["title", "publish...
26.5
51
0.706499
52
477
6.307692
0.557692
0.079268
0.115854
0.158537
0
0
0
0
0
0
0
0
0.15304
477
17
52
28.058824
0.811881
0
0
0
0
0
0.157233
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.846154
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
14962ad31f37224b6b9ef8b86e934a6eee991573
1,912
py
Python
examples/example_multi_user_locustfile.py
dkiltyhc/appian-locust-hc-fork
70239814fee9ae5a19d3656e7f433160d00e7427
[ "Apache-2.0" ]
1
2021-06-01T02:01:05.000Z
2021-06-01T02:01:05.000Z
examples/example_multi_user_locustfile.py
dkiltyhc/appian-locust-hc-fork
70239814fee9ae5a19d3656e7f433160d00e7427
[ "Apache-2.0" ]
null
null
null
examples/example_multi_user_locustfile.py
dkiltyhc/appian-locust-hc-fork
70239814fee9ae5a19d3656e7f433160d00e7427
[ "Apache-2.0" ]
null
null
null
import json import os from locust import HttpUser, task, between from appian_locust import AppianTaskSet CURRENT_DIR = os.path.dirname(os.path.realpath(__file__)) class GetFrontPageTaskSet(AppianTaskSet): @task def get_front_page(self): self.client.get('/suite/tempo') class GetAdminPageTaskSet(App...
30.83871
123
0.707113
272
1,912
4.860294
0.371324
0.045386
0.030257
0.034796
0.455371
0.455371
0.416036
0.416036
0.355522
0.355522
0
0.014512
0.207113
1,912
61
124
31.344262
0.85752
0.351464
0
0.176471
0
0
0.135865
0.021097
0
0
0
0
0
1
0.088235
false
0
0.117647
0
0.705882
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
149953f0a4dce1da36ef7cfd56898a74213ff856
506
py
Python
odziez/clothes/migrations/0006_auto_20190718_2124.py
szymanskirafal/odziez
029d20da0474a0380e8383f9f89c1072666c5399
[ "MIT" ]
null
null
null
odziez/clothes/migrations/0006_auto_20190718_2124.py
szymanskirafal/odziez
029d20da0474a0380e8383f9f89c1072666c5399
[ "MIT" ]
null
null
null
odziez/clothes/migrations/0006_auto_20190718_2124.py
szymanskirafal/odziez
029d20da0474a0380e8383f9f89c1072666c5399
[ "MIT" ]
null
null
null
# Generated by Django 2.1.8 on 2019-07-18 21:24 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('clothes', '0005_clothe_prepared_to_order'), ] operations = [ migrations.AlterField( model_name=...
25.3
132
0.65415
59
506
5.474576
0.644068
0.074303
0.086687
0.136223
0
0
0
0
0
0
0
0.048593
0.227273
506
19
133
26.631579
0.777494
0.088933
0
0
1
0
0.16122
0.063181
0
0
0
0
0
1
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
14a25f0ac727521f4abfb47f72659815f279b90c
170
py
Python
coin_change.py
LeeGitaek/algorithm-python
1fdc95ad6c1f8fded57aaf3ac80d0637f6c1c3fd
[ "MIT" ]
2
2021-01-31T08:14:09.000Z
2021-02-02T01:19:42.000Z
coin_change.py
LeeGitaek/algorithm-python
1fdc95ad6c1f8fded57aaf3ac80d0637f6c1c3fd
[ "MIT" ]
null
null
null
coin_change.py
LeeGitaek/algorithm-python
1fdc95ad6c1f8fded57aaf3ac80d0637f6c1c3fd
[ "MIT" ]
null
null
null
n = 1260 coin_count = 0 coin_types = [500,100,50,10] for coin in coin_types: if n%coin != 0: coin_count += n/coin n %= coin print(int(coin_count))
14.166667
28
0.594118
30
170
3.2
0.5
0.28125
0
0
0
0
0
0
0
0
0
0.130081
0.276471
170
11
29
15.454545
0.650407
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
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
14a3ca2e8e1328a8d7b6e04803a756da1775bb08
5,283
py
Python
Module 2/Chapter 6/detect insults - kaggle competitor version/stack.py
saicharanabhishek/machinelearning_examples
f89857ae7e1a2baa76951fe1d55541832d0f0d20
[ "MIT" ]
101
2016-11-08T11:17:55.000Z
2021-12-24T10:43:32.000Z
Module 2/Chapter 6/detect insults - kaggle competitor version/stack.py
saicharanabhishek/machinelearning_examples
f89857ae7e1a2baa76951fe1d55541832d0f0d20
[ "MIT" ]
2
2017-11-28T11:22:25.000Z
2019-02-12T17:09:18.000Z
Module 2/Chapter 6/detect insults - kaggle competitor version/stack.py
saicharanabhishek/machinelearning_examples
f89857ae7e1a2baa76951fe1d55541832d0f0d20
[ "MIT" ]
102
2016-10-22T12:14:23.000Z
2022-03-26T19:59:09.000Z
#!/usr/bin/env python import random from operator import itemgetter import math from datetime import datetime import numpy from sklearn import linear_model from sklearn import cross_validation from sklearn import metrics from sklearn import ensemble from model import Basic from mkhtml import * from utils import * ...
21.651639
128
0.634109
573
5,283
5.69459
0.336824
0.026969
0.02084
0.01471
0.063745
0.048422
0.017162
0
0
0
0
0.032021
0.278819
5,283
243
129
21.740741
0.824409
0.021768
0
0.032787
0
0
0.026178
0
0
0
0
0
0
0
null
null
0
0.087432
null
null
0.043716
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
14b72e0da77a993eabb5daf729b46bac8c04e267
4,601
py
Python
v1/data/src/tba/fake_matches.py
avgupta456/statbotics
8847cec161104ec54f4c501653cd4ec558d30379
[ "MIT" ]
14
2020-05-28T21:54:45.000Z
2022-03-17T19:39:23.000Z
v1/data/src/tba/fake_matches.py
avgupta456/statbotics
8847cec161104ec54f4c501653cd4ec558d30379
[ "MIT" ]
59
2020-05-28T21:39:45.000Z
2022-03-25T23:51:39.000Z
data/src/tba/fake_matches.py
statbotics/statbotics
37bb0e3730d5b3aff7b6a5ba6e78ef2eada950bc
[ "MIT" ]
1
2020-07-04T07:30:40.000Z
2020-07-04T07:30:40.000Z
import random from typing import Any, Dict, List def generate_match( event: str, comp_level: str, set_number: int, match_number: int, red_teams: List[int], blue_teams: List[int], ) -> Dict[str, Any]: key = f"{event}_{comp_level}{set_number}m{match_number}" if comp_level == "qm": ...
34.593985
88
0.617474
622
4,601
4.313505
0.12701
0.074543
0.065598
0.040253
0.533731
0.488632
0.446888
0.36899
0.331346
0.246366
0
0.0254
0.238426
4,601
132
89
34.856061
0.740297
0
0
0.218182
1
0
0.082156
0.017605
0
0
0
0
0
1
0.081818
false
0
0.018182
0.018182
0.181818
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
14b9bdc4cbbfd931a4277fad0693f5a34e24b6d8
5,219
py
Python
third_party_package/RDKit_2015_03_1/rdkit/Chem/Pharm3D/UnitTestPharmacophore.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
9
2019-04-23T01:46:12.000Z
2021-08-16T07:07:12.000Z
third_party_package/RDKit_2015_03_1/rdkit/Chem/Pharm3D/UnitTestPharmacophore.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
null
null
null
third_party_package/RDKit_2015_03_1/rdkit/Chem/Pharm3D/UnitTestPharmacophore.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
5
2016-09-21T03:47:48.000Z
2019-07-30T22:17:35.000Z
# $Id$ # # Copyright (C) 2004-2006 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # from rdkit import RDC...
38.094891
85
0.68768
630
5,219
5.680952
0.219048
0.086058
0.067617
0.085499
0.540374
0.460464
0.346465
0.198659
0.108969
0.03297
0
0.05804
0.194482
5,219
136
86
38.375
0.793292
0.053267
0
0.157895
0
0
0.02044
0
0
0
0
0
0.410526
1
0.063158
false
0
0.105263
0.010526
0.189474
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
14bb2152c7cc34c78af05e9bfc3763b3227f2fd5
3,099
py
Python
pynitrokey/nethsm/__init__.py
LennardBoediger/pynitrokey
837855701b4afe99322eadae4c63ad2679cb967a
[ "Apache-2.0", "MIT" ]
null
null
null
pynitrokey/nethsm/__init__.py
LennardBoediger/pynitrokey
837855701b4afe99322eadae4c63ad2679cb967a
[ "Apache-2.0", "MIT" ]
null
null
null
pynitrokey/nethsm/__init__.py
LennardBoediger/pynitrokey
837855701b4afe99322eadae4c63ad2679cb967a
[ "Apache-2.0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2021 Nitrokey Developers # # Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or # http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or # http://opensource.org/licenses/MIT>, at your option. This file may not be # copied, modified, or distribute...
28.694444
114
0.621168
350
3,099
5.411429
0.385714
0.018479
0.028511
0.030095
0.030623
0.030623
0
0
0
0
0
0.013022
0.281381
3,099
107
115
28.962617
0.837449
0.131978
0
0.118421
0
0
0.125047
0
0
0
0
0.009346
0
1
0.105263
false
0.118421
0.092105
0
0.355263
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
14bf519f8d4cbf0109c2da9a95c781cc980a4cbd
315
py
Python
django/quickstart/migrations/0002_remove_diary_tags.py
juyoungpark718/relay06
6f5f92e23814393dec7ddc6b2405204cd6338e34
[ "MIT" ]
4
2020-07-27T02:50:37.000Z
2021-04-06T09:48:30.000Z
django/quickstart/migrations/0002_remove_diary_tags.py
juyoungpark718/relay06
6f5f92e23814393dec7ddc6b2405204cd6338e34
[ "MIT" ]
2
2020-08-07T07:33:37.000Z
2020-08-16T14:50:56.000Z
django/quickstart/migrations/0002_remove_diary_tags.py
juyoungpark718/relay06
6f5f92e23814393dec7ddc6b2405204cd6338e34
[ "MIT" ]
11
2020-07-31T08:20:43.000Z
2020-08-21T04:08:29.000Z
# Generated by Django 3.1 on 2020-08-07 09:32 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('quickstart', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='diary', name='tags', ), ]
17.5
45
0.577778
32
315
5.625
0.84375
0
0
0
0
0
0
0
0
0
0
0.082569
0.307937
315
17
46
18.529412
0.743119
0.136508
0
0
1
0
0.114815
0
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
1ad20629bcd7999e4a52ce8b6e123bba45f7ebb7
752
py
Python
server/my_util.py
gjyaiya/mysqlmonitor
fd07aec8f75c14d8e8c5208758e786ae4c180993
[ "MIT" ]
1
2016-06-28T02:13:12.000Z
2016-06-28T02:13:12.000Z
server/my_util.py
gjyaiya/mysqlmonitor
fd07aec8f75c14d8e8c5208758e786ae4c180993
[ "MIT" ]
null
null
null
server/my_util.py
gjyaiya/mysqlmonitor
fd07aec8f75c14d8e8c5208758e786ae4c180993
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding:utf-8 import json import time import datetime def get_time(f='%m-%d %H:%M:%S'): return time.strftime(f, time.localtime(time.time())) class _JSONEncoder(json.JSONEncoder): def default(self, o): if isinstance(o, datetime.datetime): r = o.isoformat() ...
23.5
56
0.554521
97
752
4.247423
0.484536
0.053398
0.092233
0
0
0
0
0
0
0
0
0.018904
0.296543
752
31
57
24.258065
0.759924
0.043883
0
0
0
0
0.029289
0
0
0
0
0
0
1
0.181818
false
0
0.136364
0.090909
0.590909
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
1ad340225452a636b0710417cdc73209bdacdaf7
40,487
py
Python
python/src/vmaf/mos/subjective_model.py
christosbampis/vmaf
33e8dc675ace44dd1412b318c31eb3378612744c
[ "Apache-2.0" ]
null
null
null
python/src/vmaf/mos/subjective_model.py
christosbampis/vmaf
33e8dc675ace44dd1412b318c31eb3378612744c
[ "Apache-2.0" ]
1
2018-09-05T16:33:08.000Z
2018-09-05T16:33:08.000Z
python/src/vmaf/mos/subjective_model.py
christosbampis/vmaf
33e8dc675ace44dd1412b318c31eb3378612744c
[ "Apache-2.0" ]
2
2018-09-05T03:59:46.000Z
2018-09-18T03:57:52.000Z
from abc import ABCMeta, abstractmethod import sys import numpy as np from scipy import linalg from scipy import stats import pandas as pd from vmaf.core.mixin import TypeVersionEnabled from vmaf.tools.misc import import_python_file, indices from vmaf.mos.dataset_reader import RawDatasetReader __copyright__ = "Copyr...
43.58127
159
0.58073
5,818
40,487
3.770368
0.073221
0.010667
0.019557
0.024891
0.665026
0.634938
0.603939
0.585111
0.552471
0.528355
0
0.023209
0.30721
40,487
928
160
43.628233
0.758851
0.066021
0
0.499215
0
0.00314
0.0911
0.008527
0
0
0
0
0.058085
0
null
null
0.00471
0.015699
null
null
0.00314
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
1ad7f23489c3729dcdae18cbb0a46ecb9685ee61
2,454
py
Python
tracking/tracking.py
lovishchopra/ITRI-Car-Accident
96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d
[ "MIT" ]
null
null
null
tracking/tracking.py
lovishchopra/ITRI-Car-Accident
96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d
[ "MIT" ]
null
null
null
tracking/tracking.py
lovishchopra/ITRI-Car-Accident
96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d
[ "MIT" ]
null
null
null
import StringIO as io import json import time # data = '{"filename":"results/result_00000002.jpg","tag":[{"person":32,"left":373,"right":515,"top":81,"bot":388},{"person":31,"left":439,"right":556,"top":65,"bot":384}]}' # data = '{"filename":"results/result_00000056.jpg","tag":[{"car":28,"left":370,"right":719,"top":3...
20.974359
173
0.608802
374
2,454
3.877005
0.251337
0.038621
0.062759
0.041379
0.111034
0.08
0.052414
0.052414
0.052414
0
0
0.063872
0.183374
2,454
117
174
20.974359
0.659681
0.266911
0
0.125
0
0
0.051066
0
0
0
0
0
0
0
null
null
0
0.046875
null
null
0.0625
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
1adcc088bac0e7b59ef81dc46b24b99aee540c57
3,280
py
Python
basicts/runners/DCRNN_runner.py
zezhishao/BasicTS
584ca6f8215a6fc9976789b600996934ba2d499e
[ "Apache-2.0" ]
3
2022-02-22T12:50:08.000Z
2022-03-13T03:38:46.000Z
basicts/runners/DCRNN_runner.py
zezhishao/BasicTS
584ca6f8215a6fc9976789b600996934ba2d499e
[ "Apache-2.0" ]
null
null
null
basicts/runners/DCRNN_runner.py
zezhishao/BasicTS
584ca6f8215a6fc9976789b600996934ba2d499e
[ "Apache-2.0" ]
null
null
null
import torch from basicts.runners.base_traffic_runner import TrafficRunner class DCRNNRunner(TrafficRunner): def __init__(self, cfg: dict): super().__init__(cfg) def setup_graph(self, data): try: self.train_iters(data, 0, 0) except: pass def data_reshaper(s...
41
145
0.597256
428
3,280
4.436916
0.28271
0.014745
0.020537
0.025276
0.102159
0.024223
0.008425
0.008425
0
0
0
0.002626
0.303354
3,280
79
146
41.518987
0.828446
0.353354
0
0.105263
0
0.026316
0.042312
0
0
0
0
0
0.026316
1
0.131579
false
0.052632
0.052632
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
1ae5359c35bc853bc2b8c175bdb8b704584aea2d
5,712
py
Python
scripts/support/mirnas/compare-rfam-mirbase.py
Rfam/rfam-production
36f3963380da2a08e9cf73c951691c4e95738ac4
[ "Apache-2.0" ]
7
2016-06-17T09:21:11.000Z
2021-10-13T20:25:06.000Z
scripts/support/mirnas/compare-rfam-mirbase.py
Rfam/rfam-production
36f3963380da2a08e9cf73c951691c4e95738ac4
[ "Apache-2.0" ]
82
2016-04-08T10:51:32.000Z
2022-03-11T13:49:18.000Z
scripts/support/mirnas/compare-rfam-mirbase.py
Rfam/rfam-production
36f3963380da2a08e9cf73c951691c4e95738ac4
[ "Apache-2.0" ]
3
2019-09-01T09:46:35.000Z
2021-11-29T08:01:58.000Z
""" Generate the data used in the microRNA dashboard for the following tables: - Rfam miRNAs without matches - Rfam non-miRNA families matching miRBase Requires a mapping between all sequences from miRBase and the current Rfam models. The mapping can be generated as follows: wget https://ftp.ebi.ac.uk/pub/databases/R...
36.851613
172
0.664041
778
5,712
4.663239
0.282776
0.023153
0.030871
0.033076
0.318908
0.313396
0.278115
0.240628
0.232084
0.232084
0
0.03278
0.220238
5,712
154
173
37.090909
0.781769
0.226891
0
0.247423
1
0.041237
0.180249
0.007136
0
0
0
0
0
1
0.082474
false
0
0.082474
0
0.216495
0.051546
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
1af1691e92bb7d127867247d896d5826bd54d447
3,583
py
Python
tarn/config.py
neuro-ml/tarn
07bf61d5ebec69cd5f44ef4766b774769281613f
[ "Apache-2.0" ]
null
null
null
tarn/config.py
neuro-ml/tarn
07bf61d5ebec69cd5f44ef4766b774769281613f
[ "Apache-2.0" ]
null
null
null
tarn/config.py
neuro-ml/tarn
07bf61d5ebec69cd5f44ef4766b774769281613f
[ "Apache-2.0" ]
null
null
null
import hashlib from functools import partial from pathlib import Path from typing import Union, Dict, Any, Tuple, Sequence import humanfriendly from pydantic import BaseModel, Extra, validator, root_validator from yaml import safe_load, safe_dump from .tools import Locker, DummyLocker, SizeTracker, DummySize, UsageTr...
26.738806
116
0.640246
457
3,583
4.87965
0.273523
0.017937
0.021525
0.01435
0.040359
0
0
0
0
0
0
0.001868
0.25314
3,583
133
117
26.93985
0.831465
0
0
0.081633
0
0
0.04326
0
0
0
0
0
0
1
0.153061
false
0
0.091837
0.040816
0.602041
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
1af64cc7d2783559a1fcbf8b02817ebd1b1093f4
572
py
Python
solutions/21.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
2
2022-01-18T08:57:13.000Z
2022-01-18T15:49:06.000Z
solutions/21.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
null
null
null
solutions/21.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
null
null
null
# Merge Two Sorted Lists # Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def mergeTwoLists(self, list1, list2): # base cases for recursion if list1 is None: return list2 ...
26
77
0.611888
71
572
4.873239
0.408451
0.060694
0.069364
0.144509
0
0
0
0
0
0
0
0.037688
0.304196
572
21
78
27.238095
0.831658
0.143357
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1af76e4e7a0a82e41649df04479da4599f2c15bd
1,221
py
Python
nlp/document1.py
innaiivanova/chatbot
03ed98dfc24b36620db96094e8970a48010a9379
[ "MIT" ]
null
null
null
nlp/document1.py
innaiivanova/chatbot
03ed98dfc24b36620db96094e8970a48010a9379
[ "MIT" ]
null
null
null
nlp/document1.py
innaiivanova/chatbot
03ed98dfc24b36620db96094e8970a48010a9379
[ "MIT" ]
null
null
null
# Codecademy's training document works with Markov_chains.py # Inna I. Ivanova training_doc1 = """ "Like A Virgin" Madonna Lyrics I made it through the wilderness Somehow I made it through Didn't know how lost I was until I found you I was beat, incomplete, I'd been had I was sad and blue, but you made me feel Yeah,...
23.037736
60
0.758395
247
1,221
3.740891
0.421053
0.048701
0.107143
0.056277
0.344156
0.323593
0.323593
0.323593
0.27381
0.168831
0
0.00103
0.20475
1,221
52
61
23.480769
0.950566
0.060606
0
0.384615
0
0
0.977273
0
0
0
0
0
0
1
0
false
0
0
0
0
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2106ccd5f086c4f96cc3faf88075f464b717e3da
946
py
Python
solidity/python/constants/PrintLn2ScalingFactors.py
dabdevelop/bancorprotocol-contracts
53894df7f4c31828188b11c9a974da6413579799
[ "Apache-2.0" ]
null
null
null
solidity/python/constants/PrintLn2ScalingFactors.py
dabdevelop/bancorprotocol-contracts
53894df7f4c31828188b11c9a974da6413579799
[ "Apache-2.0" ]
null
null
null
solidity/python/constants/PrintLn2ScalingFactors.py
dabdevelop/bancorprotocol-contracts
53894df7f4c31828188b11c9a974da6413579799
[ "Apache-2.0" ]
null
null
null
from decimal import Decimal from decimal import getcontext from decimal import ROUND_FLOOR from decimal import ROUND_CEILING MIN_PRECISION = 32 MAX_PRECISION = 127 def ln(n): return Decimal(n).ln() def log2(n): return ln(n)/ln(2) def floor(d): return int(d.to_integral_exact(rounding=ROUND_FLOOR)) ...
23.073171
88
0.735729
144
946
4.597222
0.263889
0.084592
0.102719
0.066465
0.178248
0.117825
0.117825
0.117825
0.117825
0
0
0.055351
0.140592
946
40
89
23.65
0.758918
0
0
0
0
0
0.159619
0
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.136364
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
210994d12c7c32a5ccc26983eed7d7e69f44ad3b
523
py
Python
share/smack/svcomp/token_replace.py
Guoanshisb/smack
6fee210b1cb272cb9f596ea53e08935c159ec2f2
[ "MIT" ]
317
2015-01-06T19:12:11.000Z
2022-03-27T06:29:52.000Z
share/smack/svcomp/token_replace.py
Guoanshisb/smack
6fee210b1cb272cb9f596ea53e08935c159ec2f2
[ "MIT" ]
565
2015-01-15T17:16:10.000Z
2022-03-31T23:22:38.000Z
share/smack/svcomp/token_replace.py
Guoanshisb/smack
6fee210b1cb272cb9f596ea53e08935c159ec2f2
[ "MIT" ]
101
2015-02-01T21:01:47.000Z
2022-02-23T10:41:36.000Z
import re def beforeTokenReplace(inputStr): inputStr = inputStr.replace('SSLv3_server_data.ssl_accept = & ssl3_accept;','SSLv3_server_data.ssl_accept = +0;') inputStr = inputStr.replace('void exit(int s)','void exitxxx(int s)') inputStr = inputStr.replace('100000','10') return inputStr def afterTokenReplace(t...
40.230769
118
0.736138
72
523
5.111111
0.416667
0.173913
0.1875
0.097826
0.304348
0.173913
0.173913
0.173913
0.173913
0
0
0.029661
0.097514
523
12
119
43.583333
0.75
0
0
0
0
0
0.460803
0.275335
0
0
0
0
0
1
0.2
false
0
0.1
0
0.5
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
2110fd52c369e5111db44d65f86e48747bfe58c4
2,012
py
Python
misc.py
geoign/xyppy
8445d361417bfa7bcf3dd818e47fff89f78cfe7f
[ "MIT" ]
null
null
null
misc.py
geoign/xyppy
8445d361417bfa7bcf3dd818e47fff89f78cfe7f
[ "MIT" ]
null
null
null
misc.py
geoign/xyppy
8445d361417bfa7bcf3dd818e47fff89f78cfe7f
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding: UTF-8 import os, glob, numpy, gdal from math import * class Escape(Exception): pass def nearest1D(self, X,xn): X = numpy.array(X) idx = (X - xn).argmin() distance = abs(X[idx] - xn) return idx, distance def nearest2D(self, XY, x,y): distances = (XY[:,0] - x)**2 + (X...
35.298246
75
0.59493
331
2,012
3.616314
0.268882
0.017544
0.020886
0.025063
0.625731
0.621554
0.598162
0.598162
0.544695
0.517962
0
0.03879
0.244036
2,012
57
76
35.298246
0.748192
0.173956
0
0.355556
0
0
0.025455
0
0
0
0
0
0
0
null
null
0.022222
0.044444
null
null
0.044444
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