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
91b404c1706a5e70871a667ca174f08e3ed130ad
2,132
py
Python
python/ip2location.py
ourren/ip-api
067391b1346d8e77cf0373fe2e404d38d7ab427d
[ "Apache-2.0" ]
20
2015-04-15T12:52:26.000Z
2019-10-24T01:56:50.000Z
python/ip2location.py
LoveSn0w/ip-api
067391b1346d8e77cf0373fe2e404d38d7ab427d
[ "Apache-2.0" ]
1
2015-04-16T03:36:34.000Z
2015-04-16T05:26:36.000Z
python/ip2location.py
LoveSn0w/ip-api
067391b1346d8e77cf0373fe2e404d38d7ab427d
[ "Apache-2.0" ]
12
2015-09-07T02:49:04.000Z
2019-07-03T06:20:35.000Z
#! /usr/bin/env python # encoding: utf-8 """ Copyright (c) 2014-2015 ourren author: ourren <i@ourren.com> """ import requests import random def getgeo(ip): uas = [] for line in open("user_agents.txt").readlines(): if line.strip(): uas.append(line.strip()[1:-1-1]) random.shuffle(uas) ...
33.3125
120
0.496248
269
2,132
3.895911
0.32342
0.022901
0.019084
0.042939
0.237595
0.170802
0.126908
0.126908
0.126908
0.087786
0
0.038178
0.299719
2,132
64
121
33.3125
0.663764
0.030019
0
0.06
0
0
0.213213
0.092593
0
0
0
0
0
0
null
null
0
0.04
null
null
0.02
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
91bd3e54bb52a07dd71bb74481fd0c050f1b0054
1,442
py
Python
sdataflow/callback/scheduler.py
haoxun/dataflow-lang
98d09e7983f6886f0877e91b8803f3593478964e
[ "MIT" ]
2
2015-04-28T01:43:14.000Z
2015-04-28T01:45:32.000Z
sdataflow/callback/scheduler.py
haoxun/dataflow-lang
98d09e7983f6886f0877e91b8803f3593478964e
[ "MIT" ]
1
2015-04-27T16:03:55.000Z
2015-04-28T07:53:13.000Z
sdataflow/callback/scheduler.py
haoxun/dataflow-lang
98d09e7983f6886f0877e91b8803f3593478964e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import (division, absolute_import, print_function, unicode_literals) from copy import deepcopy from sdataflow.shared import Entity, Outcome # user can define two kinds of callback: # 1. A normal function returns an iterable object, of which the element ...
29.428571
78
0.67337
185
1,442
5.097297
0.448649
0.044539
0.027572
0.040297
0
0
0
0
0
0
0
0.00554
0.24896
1,442
48
79
30.041667
0.865189
0.257282
0
0
0
0
0.035883
0
0
0
0
0
0
1
0.115385
false
0.076923
0.115385
0
0.269231
0.038462
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
91bec21d6d5e2b40a058ccbd136ce413620ef2f6
5,765
py
Python
crichtonweb/frontend/migrations/0001_initial.py
bpluly/crichton
a2fa09c181ba1e44ee1aae7a57769e1778de7f3a
[ "Apache-2.0" ]
null
null
null
crichtonweb/frontend/migrations/0001_initial.py
bpluly/crichton
a2fa09c181ba1e44ee1aae7a57769e1778de7f3a
[ "Apache-2.0" ]
null
null
null
crichtonweb/frontend/migrations/0001_initial.py
bpluly/crichton
a2fa09c181ba1e44ee1aae7a57769e1778de7f3a
[ "Apache-2.0" ]
null
null
null
# Crichton, Admirable Source Configuration Management # Copyright 2012 British Broadcasting Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licens...
60.052083
166
0.587684
605
5,765
5.504132
0.264463
0.086486
0.147147
0.21021
0.556757
0.523724
0.49039
0.49039
0.390991
0.377477
0
0.010949
0.192021
5,765
95
167
60.684211
0.70395
0.122984
0
0.238806
0
0
0.555203
0.29031
0
0
0
0
0
1
0.029851
false
0
0.059701
0
0.134328
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
91bf6302ad6f71320b1134e808209d75b525c18c
2,019
py
Python
platform/polycommon/tests/test_gzip_decorator.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
3,200
2017-05-09T11:35:31.000Z
2022-03-28T05:43:22.000Z
platform/polycommon/tests/test_gzip_decorator.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
1,324
2017-06-29T07:21:27.000Z
2022-03-27T12:41:10.000Z
platform/polycommon/tests/test_gzip_decorator.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
341
2017-01-10T23:06:53.000Z
2022-03-10T08:15:18.000Z
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
34.810345
98
0.687469
262
2,019
5.221374
0.465649
0.04386
0.032895
0.023392
0.239766
0.239766
0.239766
0.131579
0.131579
0.071637
0
0.012658
0.217434
2,019
57
99
35.421053
0.853165
0.35265
0
0.206897
0
0
0.040562
0
0
0
0
0
0.103448
1
0.172414
false
0
0.206897
0
0.551724
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
91c216f6ca6b38a9c401efeacfc483ed63e0da50
2,042
py
Python
hmm_for_baxter_using_only_success_trials/skill_identification.py
HongminWu/HMM
f6df6e99231e4148ad948cb6b68de2269e03ced3
[ "BSD-3-Clause" ]
3
2018-05-08T11:40:16.000Z
2019-05-25T05:35:03.000Z
hmm_for_baxter_using_only_success_trials/skill_identification.py
HongminWu/HMM
f6df6e99231e4148ad948cb6b68de2269e03ced3
[ "BSD-3-Clause" ]
null
null
null
hmm_for_baxter_using_only_success_trials/skill_identification.py
HongminWu/HMM
f6df6e99231e4148ad948cb6b68de2269e03ced3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import numpy as np from sklearn.externals import joblib from matplotlib import pyplot as plt import util import ipdb def run(model_save_path, figure_save_path, trials_group_by_folder_name): trials_group_by_folder_name = util.make_trials_of_each_state_the_sa...
43.446809
136
0.697356
300
2,042
4.303333
0.316667
0.065066
0.059644
0.088304
0.415957
0.309063
0.116189
0.116189
0.046476
0
0
0.006219
0.212537
2,042
46
137
44.391304
0.796642
0.009794
0
0.051282
0
0
0.07719
0.0381
0
0
0
0
0
0
null
null
0
0.179487
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
91cacd6f14b33522df835035bff5e203a618c405
1,953
py
Python
tests/test_dice_metric.py
cwerner/deadtrees
15ddfec58c4a40f22f9c1e2424fb535df4d29b03
[ "Apache-2.0" ]
1
2021-11-15T09:26:24.000Z
2021-11-15T09:26:24.000Z
tests/test_dice_metric.py
cwerner/deadtrees
15ddfec58c4a40f22f9c1e2424fb535df4d29b03
[ "Apache-2.0" ]
43
2021-04-19T14:55:05.000Z
2022-03-29T13:34:16.000Z
tests/test_dice_metric.py
cwerner/deadtrees
15ddfec58c4a40f22f9c1e2424fb535df4d29b03
[ "Apache-2.0" ]
null
null
null
import pytest from monai.losses import DiceCELoss from monai.metrics import DiceMetric import numpy as np import torch n = 5 # w/h size b = 1 # batch size sample = torch.zeros((b, 2, n, n)) # BxCxHxW sample[:, 0, :, :] = 1 sample[:, 0, 2:n, 2:n] = 0 sample[:, 1, 2:n, 2:n] = 1 increments = [(2, 1.0), (3, 0.7401), ...
25.363636
76
0.609319
293
1,953
3.90785
0.201365
0.104803
0.047162
0.052402
0.746725
0.603493
0.603493
0.603493
0.603493
0.603493
0
0.057087
0.219662
1,953
76
77
25.697368
0.694226
0.061444
0
0.54717
0
0
0.014262
0
0
0
0
0
0.056604
1
0.056604
false
0
0.09434
0
0.150943
0
0
0
0
null
0
0
0
0
0
0
0
0
1
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
91cc4fea653a0d7ca1733e725ac48bb82bdb2ee1
8,185
py
Python
tasks/roles/compliance/library/napalm_ping.py
johnsondnz/NetAutSol
180c7993fb6ada2dbf40c72ea8c2ad27ee327974
[ "MIT" ]
4
2017-10-19T14:46:36.000Z
2022-02-08T17:21:04.000Z
tasks/roles/compliance/library/napalm_ping.py
johnsondnz/NetAutSol
180c7993fb6ada2dbf40c72ea8c2ad27ee327974
[ "MIT" ]
9
2021-03-31T18:28:48.000Z
2021-11-14T01:47:52.000Z
tasks/roles/compliance/library/napalm_ping.py
johnsondnz/NetAutSol
180c7993fb6ada2dbf40c72ea8c2ad27ee327974
[ "MIT" ]
null
null
null
from ansible.module_utils.basic import AnsibleModule, return_values """ (c) 2017 Jason Edelman <jason@networktocode.com> This file is part of Ansible Ansible is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, eithe...
33.822314
99
0.639585
1,011
8,185
5.062315
0.263106
0.066041
0.023642
0.040836
0.186596
0.129152
0.055686
0.049043
0.049043
0.033021
0
0.009561
0.258888
8,185
242
100
33.822314
0.834158
0.025535
0
0.233503
0
0.010152
0.482579
0
0
0
0
0
0
1
0.005076
false
0.060914
0.025381
0
0.030457
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
91cd444ff0051180d9452af20a78eac21b28a8b6
875
py
Python
setup.py
sg679/disc-golf-keeper
aeac6810586897adb3b8f06a4b9414b4423cc6f2
[ "MIT" ]
1
2019-08-18T19:25:14.000Z
2019-08-18T19:25:14.000Z
setup.py
sg679/disc-golf-keeper
aeac6810586897adb3b8f06a4b9414b4423cc6f2
[ "MIT" ]
null
null
null
setup.py
sg679/disc-golf-keeper
aeac6810586897adb3b8f06a4b9414b4423cc6f2
[ "MIT" ]
null
null
null
from distutils.core import setup from setuptools import find_packages setup( name="dgk", version="0.08.1", packages=find_packages(), package_data={"dgk": ["config/*.ini", "database/*.db"]}, url="https://github.com/sg679/disc-golf-keeper", license="MIT", author="Marcus T Taylor", descri...
32.407407
80
0.629714
102
875
5.303922
0.735294
0.044362
0.092421
0.096118
0
0
0
0
0
0
0
0.017241
0.204571
875
26
81
33.653846
0.760057
0
0
0
0
0
0.467429
0
0
0
0
0
0
1
0
true
0
0.083333
0
0.083333
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
91ce6db5d44ca20bdf8aeedded3109ff0a8ef776
1,636
py
Python
deep-learning-server/data/labels/make_labels.py
mofanv/veracruz-examples
b21ecf1116b406a43e9d78c8af3de156260a2969
[ "MIT" ]
null
null
null
deep-learning-server/data/labels/make_labels.py
mofanv/veracruz-examples
b21ecf1116b406a43e9d78c8af3de156260a2969
[ "MIT" ]
5
2021-07-26T14:08:22.000Z
2021-11-02T20:37:59.000Z
deep-learning-server/data/labels/make_labels.py
mofanv/veracruz-examples
b21ecf1116b406a43e9d78c8af3de156260a2969
[ "MIT" ]
4
2021-07-21T10:48:09.000Z
2021-10-01T20:07:14.000Z
# This file uses the `convert` system function to convert character (such as # letter, numbers, symbols) to png format images, which will be used to # annotate objects in YOLO detection. # # AUTHORS # # The Veracruz Development Team. # # COPYRIGHT AND LICENSING # # See the `LICENSE_MIT.markdown` file in the Veracruz de...
37.181818
170
0.668704
242
1,636
4.491736
0.479339
0.029439
0.055198
0.069917
0.403864
0.403864
0.323827
0.299908
0.299908
0.299908
0
0.034901
0.194377
1,636
44
171
37.181818
0.789833
0.418093
0
0
0
0.166667
0.429646
0.067669
0
0
0
0
0
1
0.055556
false
0.055556
0.166667
0
0.222222
0.055556
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
91ce92877a1caea495b80d2113d5325d5112be5e
2,381
py
Python
707 Design Linked List/solution.py
SatYu26/DS-Algo
977073d55652d07f6655aa2f0def8aeac89938f3
[ "MIT" ]
1
2021-06-19T07:13:22.000Z
2021-06-19T07:13:22.000Z
707 Design Linked List/solution.py
SatYu26/DS-Algo
977073d55652d07f6655aa2f0def8aeac89938f3
[ "MIT" ]
null
null
null
707 Design Linked List/solution.py
SatYu26/DS-Algo
977073d55652d07f6655aa2f0def8aeac89938f3
[ "MIT" ]
null
null
null
Explaination: https://www.youtube.com/watch?v=uLSbZzLaeQ4 class ListNode: def __init__(self, x): self.val=x self.next=None class MyLinkedList: def __init__(self): """ Initialize your data structure here. """ self.size=0 self.head = ListNode(0) ...
26.752809
243
0.545149
312
2,381
4.112179
0.262821
0.062354
0.060795
0.032736
0.403741
0.341387
0.278254
0.278254
0.247857
0.226033
0
0.007947
0.365813
2,381
89
244
26.752809
0.841722
0.083998
0
0.263158
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
91cfef1190beb545e351ede7f46d48e758e30d86
2,245
py
Python
app/main.py
NathOrmond/nt-redaction-api
798882c17ef60d2ee59a8afd4eb1d4014748e679
[ "MIT" ]
null
null
null
app/main.py
NathOrmond/nt-redaction-api
798882c17ef60d2ee59a8afd4eb1d4014748e679
[ "MIT" ]
null
null
null
app/main.py
NathOrmond/nt-redaction-api
798882c17ef60d2ee59a8afd4eb1d4014748e679
[ "MIT" ]
null
null
null
from flask import Flask from flask import request, jsonify from flask_cors import CORS, cross_origin from .redactioncalc import get_distances_from_filepaths import os, json app= Flask(__name__) cors = CORS(app) app.config['CORS_HEADERS'] = 'Content-Type' @app.route('/', methods=['GET']) def home(): return '''<h1>New...
28.782051
97
0.68686
303
2,245
4.937294
0.382838
0.026738
0.040107
0.048128
0.086898
0
0
0
0
0
0
0.011438
0.182183
2,245
77
98
29.155844
0.803377
0.134521
0
0.171875
0
0.015625
0.15031
0
0
0
0
0.012987
0
1
0.09375
false
0
0.078125
0.03125
0.265625
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
91d1d6de49ffdf5cad7bc84fbd9e022e4d856649
623
py
Python
webapp.py
aichiko0225/sales_system
9ff9d8161f1a2da2d205ea43d950b6ab904f822e
[ "MIT" ]
null
null
null
webapp.py
aichiko0225/sales_system
9ff9d8161f1a2da2d205ea43d950b6ab904f822e
[ "MIT" ]
null
null
null
webapp.py
aichiko0225/sales_system
9ff9d8161f1a2da2d205ea43d950b6ab904f822e
[ "MIT" ]
null
null
null
from flask import Flask, render_template, make_response, request from routes.index import main from routes.hello import hello from routes import allow_cross_domain from flask_cors import CORS app = Flask(__name__) CORS(app, supports_credentials=True) # 设置 secret_key 来使用 flask 自带的 session # 这个字符串随便你设置什么内容都可以 app.secr...
23.074074
64
0.76886
91
623
4.967033
0.505495
0.066372
0.070796
0
0
0
0
0
0
0
0
0.014599
0.120385
623
26
65
23.961538
0.810219
0.117175
0
0
0
0
0.09707
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0.066667
0.466667
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
91d2630efe6ea93faf8b14522302d10230382cf7
1,581
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/pca9685_servo.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/pca9685_servo.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/pca9685_servo.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT # This example moves a servo its full range (180 degrees by default) and then back. from board import SCL, SDA import busio # This example also relies on the Adafruit motor library available here: # https://github.com/adafr...
36.767442
98
0.753953
259
1,581
4.548263
0.397683
0.033956
0.067912
0.080645
0.38455
0.340407
0.192699
0.150255
0.119694
0.119694
0
0.08321
0.14864
1,581
42
99
37.642857
0.791976
0.769133
0
0.153846
0
0
0
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
91d325f87278295e841c1e396fa8edce88d0f2a7
449
py
Python
blog/migrations/0007_auto_20181030_1538.py
burhan/hellowebbooks-website
96ca56f6d32716e5ce694664c760aa6a7bfce419
[ "MIT" ]
2
2018-11-16T18:54:56.000Z
2018-11-26T04:09:49.000Z
blog/migrations/0007_auto_20181030_1538.py
burhan/hellowebbooks-website
96ca56f6d32716e5ce694664c760aa6a7bfce419
[ "MIT" ]
11
2019-12-07T19:14:50.000Z
2021-12-23T20:26:09.000Z
blog/migrations/0007_auto_20181030_1538.py
burhan/hellowebbooks-website
96ca56f6d32716e5ce694664c760aa6a7bfce419
[ "MIT" ]
3
2017-10-26T03:23:42.000Z
2019-08-02T07:44:38.000Z
# Generated by Django 2.1.2 on 2018-10-30 15:38 from django.db import migrations import wagtailmd.utils class Migration(migrations.Migration): dependencies = [ ('blog', '0006_postpage_excerpt'), ] operations = [ migrations.AlterField( model_name='postpage', name=...
21.380952
64
0.612472
46
449
5.891304
0.73913
0.103321
0
0
0
0
0
0
0
0
0
0.058642
0.278396
449
20
65
22.45
0.777778
0.100223
0
0
1
0
0.109453
0.052239
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
91ded75c0ca662f22ccd964a8fe59215df1d3bf2
3,602
py
Python
src/grpttnpy/dllist.py
luk036/grpttnpy
2838f6274719559c5435ed7caa8604cca90cc3e6
[ "MIT" ]
1
2021-01-17T10:48:18.000Z
2021-01-17T10:48:18.000Z
src/grpttnpy/dllist.py
luk036/grpttnpy
2838f6274719559c5435ed7caa8604cca90cc3e6
[ "MIT" ]
null
null
null
src/grpttnpy/dllist.py
luk036/grpttnpy
2838f6274719559c5435ed7caa8604cca90cc3e6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class dllink: """doubly linked node (that may also be a "head" a list) A Doubly-linked List class. This class simply contains a link of node's. By adding a "head" node (sentinel), deleting a node is extremely fast (see "Introduction to Algorithm"). This class does not keep...
23.38961
70
0.518878
416
3,602
4.4375
0.298077
0.065005
0.032503
0.040628
0.179848
0.087757
0.028169
0
0
0
0
0.000898
0.38201
3,602
153
71
23.542484
0.828392
0.537757
0
0.088889
0
0
0.01194
0
0
0
0
0
0.022222
1
0.244444
false
0
0
0
0.377778
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
91eda09806b31256226909dca6a1ea208bc8d1c9
708
py
Python
tkinter/background-image/login/main-canvas.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
140
2017-02-21T22:49:04.000Z
2022-03-22T17:51:58.000Z
tkinter/background-image/login/main-canvas.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
5
2017-12-02T19:55:00.000Z
2021-09-22T23:18:39.000Z
tkinter/background-image/login/main-canvas.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
79
2017-01-25T10:53:33.000Z
2022-03-11T16:13:57.000Z
# # https://stackoverflow.com/a/47983927/1832058 # import tkinter as tk root = tk.Tk() root.geometry('250x250') root.title('Canvas') canvas = tk.Canvas(root, width=250, height=250) canvas.pack() img = tk.PhotoImage(file='hal_9000.gif') canvas.create_image((0, 0), image=img, anchor='nw') canvas.create_text((10,...
24.413793
92
0.699153
106
708
4.575472
0.45283
0.123711
0.065979
0.074227
0.11134
0.11134
0.11134
0
0
0
0
0.092188
0.096045
708
28
93
25.285714
0.665625
0.062147
0
0
0
0
0.103501
0
0
0
0
0
0
1
0
false
0.2
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
0
1
0
0
0
0
0
1
37cd647deb618f1ba1fd41026183f48bb8841cc1
2,022
py
Python
ds/heap/heap.py
farnasirim/zahlen
7e2e024cc55d7eb2ee2d205c912e184f1d32cfdf
[ "MIT" ]
null
null
null
ds/heap/heap.py
farnasirim/zahlen
7e2e024cc55d7eb2ee2d205c912e184f1d32cfdf
[ "MIT" ]
null
null
null
ds/heap/heap.py
farnasirim/zahlen
7e2e024cc55d7eb2ee2d205c912e184f1d32cfdf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ zahlen.ds.heap.heap ~~~~~~~~~~~~~~~~~~~ This module implements the Heap data structure. :copyright: (c) 2014 by Subhajit Ghosh. :license: MIT, see LICENSE for more details. """ import operator class Heap(object): def __init__(self, elements, min_heap=True): ...
27.69863
79
0.554402
256
2,022
4.253906
0.34375
0.15427
0.016529
0.046832
0.190083
0.04775
0
0
0
0
0
0.014717
0.327893
2,022
73
80
27.69863
0.786608
0.253709
0
0.051282
0
0
0
0
0
0
0
0
0
1
0.179487
false
0.051282
0.025641
0.025641
0.25641
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
37ce1029cf9ed31d2f3939a16694bb8f249a79e0
1,904
py
Python
tools/make_server_cert.py
galenzhao/nodemcu-firmware
50c90169a7b712e732a5534fb1c8cb72c4110194
[ "MIT" ]
7,567
2015-01-02T00:02:36.000Z
2022-03-31T08:56:48.000Z
tools/make_server_cert.py
galenzhao/nodemcu-firmware
50c90169a7b712e732a5534fb1c8cb72c4110194
[ "MIT" ]
3,047
2015-01-01T02:52:39.000Z
2022-03-29T11:09:20.000Z
tools/make_server_cert.py
galenzhao/nodemcu-firmware
50c90169a7b712e732a5534fb1c8cb72c4110194
[ "MIT" ]
3,748
2015-01-02T00:53:19.000Z
2022-03-30T12:15:54.000Z
import os import argparse import base64 import re import sys class Cert(object): def __init__(self, name, buff): self.name = name self.len = len(buff) self.buff = buff pass def __str__(self): out_str = ['\0']*32 for i in range(len(self.name)): out_s...
27.2
119
0.584559
270
1,904
3.937037
0.396296
0.045155
0.047977
0.022578
0.071496
0.035748
0
0
0
0
0
0.019788
0.256828
1,904
69
120
27.594203
0.731449
0
0
0
0
0
0.259065
0.055176
0
0
0.005255
0
0
0
null
null
0.018868
0.09434
null
null
0.075472
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
37d4270571a69d8ee11fb571ef54812891f99b01
4,064
py
Python
src/resources/doi_submission_all.py
InsightSoftwareConsortium/InsightJournal
a302fe81234c1f2b797284a473d05c93d94a5475
[ "Apache-2.0" ]
6
2019-05-06T21:23:50.000Z
2022-02-23T08:02:13.000Z
src/resources/doi_submission_all.py
InsightSoftwareConsortium/InsightJournal
a302fe81234c1f2b797284a473d05c93d94a5475
[ "Apache-2.0" ]
67
2021-03-26T18:40:05.000Z
2022-03-03T02:05:39.000Z
src/resources/doi_submission_all.py
InsightSoftwareConsortium/InsightJournal
a302fe81234c1f2b797284a473d05c93d94a5475
[ "Apache-2.0" ]
4
2021-03-26T14:20:17.000Z
2021-12-14T15:54:04.000Z
#!/usr/bin/env python """ Apply doi_submission_generator to all pubs """ import argparse import copy import os import sys from pathlib import Path import subprocess from natsort import natsorted import warnings if __name__ == '__main__': parser = argparse.ArgumentParser(description='Generate valid XML from metad...
44.173913
147
0.638533
479
4,064
5.231733
0.275574
0.035914
0.067837
0.037909
0.130886
0.083001
0.061453
0
0
0
0
0.000642
0.233268
4,064
91
148
44.659341
0.803594
0.055364
0
0
0
0.028986
0.310065
0.022484
0
0
0
0
0
1
0
false
0.057971
0.115942
0
0.115942
0.072464
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
37d63facab3c91dc8112e599bbedaffc7347ace1
26,472
py
Python
gen.py
AlexandreFournier/gl-spec-parser
41a947b14b52f314ff124b64396f6096e8a3383c
[ "Unlicense" ]
null
null
null
gen.py
AlexandreFournier/gl-spec-parser
41a947b14b52f314ff124b64396f6096e8a3383c
[ "Unlicense" ]
null
null
null
gen.py
AlexandreFournier/gl-spec-parser
41a947b14b52f314ff124b64396f6096e8a3383c
[ "Unlicense" ]
2
2018-08-07T12:59:30.000Z
2021-04-13T23:37:49.000Z
#!/usr/bin/python '''The OpenGL bindings generator''' __author__ = 'Alexandre Fournier' __license__ = 'Boost Software License, Version 1.0' __copyright__ = '2011, Alexandre Fournier <af at liquidstate.eu>' __version__ = '0.1' import os import sys import re from lxml import etree, html from datetime import dat...
30.253714
104
0.598821
3,317
26,472
4.725957
0.177269
0.013779
0.016586
0.020413
0.31258
0.256698
0.197946
0.166433
0.137089
0.128923
0
0.008561
0.223406
26,472
874
105
30.28833
0.753964
0.033129
0
0.278226
0
0.012097
0.270459
0.03991
0
0
0
0.001144
0
0
null
null
0
0.010753
null
null
0.013441
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
37d8e93f4d03e8115c58a435d7218a3077b27dec
406
py
Python
backend/users/migrations/0002_catenauser_access_token.py
J1149/catena
370d188c413939bf726a0e76f0a101b48c5b81f4
[ "MIT" ]
null
null
null
backend/users/migrations/0002_catenauser_access_token.py
J1149/catena
370d188c413939bf726a0e76f0a101b48c5b81f4
[ "MIT" ]
null
null
null
backend/users/migrations/0002_catenauser_access_token.py
J1149/catena
370d188c413939bf726a0e76f0a101b48c5b81f4
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-05 12:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AddField( model_name='catenauser', name='access_token', ...
21.368421
75
0.603448
44
406
5.477273
0.795455
0.082988
0.124481
0
0
0
0
0
0
0
0
0.064846
0.278325
406
18
76
22.555556
0.757679
0.110837
0
0
1
0
0.142061
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
37ddf16ba4c6d3b958cade605253e71a4159daa2
401
py
Python
tomef/models/model_util.py
unlikelymaths/tomef
57b629a3ee932486c55afcf62ef9d8224488ae65
[ "MIT" ]
null
null
null
tomef/models/model_util.py
unlikelymaths/tomef
57b629a3ee932486c55afcf62ef9d8224488ae65
[ "MIT" ]
14
2020-01-28T22:36:41.000Z
2022-03-11T23:44:22.000Z
tomef/models/model_util.py
unlikelymaths/tomef
57b629a3ee932486c55afcf62ef9d8224488ae65
[ "MIT" ]
null
null
null
import data from base import nbprint from vectorizer.main import run_vectorizer def check_requirements(info): # Check if documents file exists if not data.input_mat_exists(info): # Run Importer nbprint('Input mat missing.') run_vectorizer(info) # Check if it was successfull ...
26.733333
43
0.680798
53
401
5.018868
0.509434
0.090226
0.082707
0.105263
0.203008
0.203008
0.203008
0
0
0
0
0
0.264339
401
15
44
26.733333
0.901695
0.177057
0
0.2
0
0
0.055046
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.6
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
37e094f60ac721e46bff76d547425c1720517280
10,926
py
Python
web/views.py
leoncio-s/reuse
ccbab44e038ca71a0c35c37dae31846ace3589ba
[ "Apache-2.0" ]
null
null
null
web/views.py
leoncio-s/reuse
ccbab44e038ca71a0c35c37dae31846ace3589ba
[ "Apache-2.0" ]
null
null
null
web/views.py
leoncio-s/reuse
ccbab44e038ca71a0c35c37dae31846ace3589ba
[ "Apache-2.0" ]
null
null
null
from typing import Awaitable from web import app from flask import json, render_template, request, session, url_for, redirect, flash, jsonify from markupsafe import escape from werkzeug.utils import redirect from BD.DataBase import Login, Users, Sensores, WatterQuality from email.utils import parseaddr from web.forms i...
33.515337
137
0.527732
1,120
10,926
5.096429
0.132143
0.034688
0.095305
0.112123
0.610021
0.552558
0.53644
0.498949
0.470217
0.41801
0
0.003297
0.333699
10,926
326
138
33.515337
0.780769
0.00659
0
0.587814
0
0
0.125887
0.00212
0
0
0
0
0
1
0.035842
false
0.053763
0.046595
0
0.240143
0.003584
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
37e7a03429770e38f7e0ab4768d180f2e12dca9d
9,132
py
Python
md5.py
RekhaBhale/face-recognition
e26d6d0889a1e124dd9b59425f20e94fe687f55d
[ "BSL-1.0" ]
null
null
null
md5.py
RekhaBhale/face-recognition
e26d6d0889a1e124dd9b59425f20e94fe687f55d
[ "BSL-1.0" ]
1
2019-04-27T12:00:55.000Z
2019-07-19T08:17:16.000Z
md5.py
RekhaBhale/face-recognition
e26d6d0889a1e124dd9b59425f20e94fe687f55d
[ "BSL-1.0" ]
null
null
null
# Constants for compression function. S11 = 7 S12 = 12 S13 = 17 S14 = 22 S21 = 5 S22 = 9 S23 = 14 S24 = 20 S31 = 4 S32 = 11 S33 = 16 S34 = 23 S41 = 6 S42 = 10 S43 = 15 S44 = 21 PADDING = "\x80" + 63 * "\0" # F, G, H and I: basic MD5 functions. def F(x, y, z): return (((x) & (y)) | ((~x) &...
33.207273
83
0.505804
1,491
9,132
3.066398
0.22334
0.024934
0.026903
0.020997
0.243876
0.226378
0.177384
0.050962
0.050962
0.042213
0
0.142135
0.328187
9,132
275
84
33.207273
0.603097
0.09297
0
0.097143
0
0
0.003012
0
0
0
0.097289
0
0
0
null
null
0
0.005714
null
null
0.005714
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
37e9ee89b6c41c52b10b89bbc73cff4e7c624dd1
239
py
Python
utils.py
efimklimov95/Instagram-Bot
0a5e6732c93ebf40c4c77e5e1c638afcbfc3393d
[ "MIT" ]
1
2021-09-15T17:33:18.000Z
2021-09-15T17:33:18.000Z
utils.py
efimklimov95/Instagram-Bot
0a5e6732c93ebf40c4c77e5e1c638afcbfc3393d
[ "MIT" ]
null
null
null
utils.py
efimklimov95/Instagram-Bot
0a5e6732c93ebf40c4c77e5e1c638afcbfc3393d
[ "MIT" ]
5
2020-12-30T20:16:25.000Z
2021-07-26T02:06:59.000Z
import random from time import sleep def rand_wait_min(a=None, b=None): a = a if not a else a * 60 b = b if not b else b * 60 rand_wait_sec(a, b) def rand_wait_sec(min_v=2, max_v=3): sleep(random.randint(min_v, max_v))
18.384615
39
0.661088
52
239
2.846154
0.423077
0.162162
0.148649
0
0
0
0
0
0
0
0
0.032787
0.23431
239
12
40
19.916667
0.775956
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
37eb5cf64fa6d272e847eae72cb06ca1f450a37e
235
py
Python
pandjango/website/validators.py
Elmartin913/PanDjango
3b1eb52d53c87365f3d2fa5bd7ef72843ed5af32
[ "MIT" ]
null
null
null
pandjango/website/validators.py
Elmartin913/PanDjango
3b1eb52d53c87365f3d2fa5bd7ef72843ed5af32
[ "MIT" ]
3
2020-06-05T18:05:43.000Z
2021-06-10T20:13:18.000Z
pandjango/website/validators.py
Elmartin913/PanDjango
3b1eb52d53c87365f3d2fa5bd7ef72843ed5af32
[ "MIT" ]
null
null
null
import re from django.core.exceptions import ValidationError def phone_validator(value): v = re.match('^[0-9\+]{8,13}$', value) if v is None: raise ValidationError('Tylko cyfry (min.9) np.111222333') return True
21.363636
65
0.67234
34
235
4.617647
0.823529
0
0
0
0
0
0
0
0
0
0
0.079365
0.195745
235
10
66
23.5
0.751323
0
0
0
0
0
0.2
0
0
0
0
0
0
1
0.142857
false
0
0.285714
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
37ec6ebbd0099a4aa7719927bedb2b0ba890c33e
10,250
py
Python
amulet/command_line/command_api.py
Podshot/Amulet-Core
678a722daa5e4487d193a7e947ccceacac325fd2
[ "MIT" ]
null
null
null
amulet/command_line/command_api.py
Podshot/Amulet-Core
678a722daa5e4487d193a7e947ccceacac325fd2
[ "MIT" ]
null
null
null
amulet/command_line/command_api.py
Podshot/Amulet-Core
678a722daa5e4487d193a7e947ccceacac325fd2
[ "MIT" ]
null
null
null
""" Contains the required classes and various utility methods to allow the addition of 3rd party commands into the command-line portion of the editor. """ from __future__ import annotations import os from typing import List, Type, Tuple, Union, Callable, Any, Optional import re from amulet.api.world import World from...
31.832298
173
0.641171
1,309
10,250
4.883117
0.197097
0.009387
0.025344
0.008448
0.256414
0.23107
0.191176
0.139237
0.116708
0.116708
0
0.002023
0.276683
10,250
321
174
31.931464
0.860129
0.394146
0
0.28777
0
0
0.048023
0.00686
0
0
0
0
0
1
0.230216
false
0
0.043165
0.028777
0.453237
0.043165
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
37ef429955632d55103743aba824293721cef760
2,504
py
Python
webrecorder/webrecorder/appcontroller.py
ssteo/webrecorder
8690608171f35c475842df8fabbe666f5058193d
[ "Apache-2.0" ]
1,217
2015-10-16T06:37:32.000Z
2020-06-08T14:02:08.000Z
webrecorder/webrecorder/appcontroller.py
ssteo/webrecorder
8690608171f35c475842df8fabbe666f5058193d
[ "Apache-2.0" ]
476
2015-10-15T22:24:07.000Z
2020-06-11T07:43:29.000Z
webrecorder/webrecorder/appcontroller.py
nla/webrecorder
29be63e71999de6a4bc1144a47d59137fab34239
[ "Apache-2.0" ]
101
2015-10-16T01:24:07.000Z
2020-05-18T00:49:49.000Z
from webrecorder.basecontroller import BaseController from webrecorder.models.importer import ImportStatusChecker # ============================================================================ class AppController(BaseController): def __init__(self, *args, **kwargs): super(AppController, self).__init__(*ar...
33.386667
95
0.583067
276
2,504
5.028986
0.336957
0.079251
0.080692
0.034582
0.04755
0
0
0
0
0
0
0.002755
0.27516
2,504
74
96
33.837838
0.761983
0.08147
0
0.1
0
0
0.116594
0
0
0
0
0
0
1
0.16
false
0
0.22
0.06
0.52
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
37fa967417a7c4b031b9d4a93523abb95cc54258
307
py
Python
spotdl/search/__init__.py
commanderabdu/spotify-downloader
eea68661ebbe5939924e83f228942ce07c2d505c
[ "MIT" ]
1
2020-12-27T00:27:04.000Z
2020-12-27T00:27:04.000Z
spotdl/search/__init__.py
commanderabdu/spotify-downloader
eea68661ebbe5939924e83f228942ce07c2d505c
[ "MIT" ]
1
2021-01-06T10:24:30.000Z
2021-01-06T19:59:22.000Z
spotdl/search/__init__.py
commanderabdu/spotify-downloader
eea68661ebbe5939924e83f228942ce07c2d505c
[ "MIT" ]
2
2020-12-24T19:36:23.000Z
2021-01-02T22:09:26.000Z
__all__ = [ 'provider', 'songObj', 'spotifyClient', 'utils' ] #! You should be able to do all you want with just theese three lines #! from spotdl.search.spotifyClient import initialize #! from spotdl.search.songObj import songObj #! from spotdl.search.utils import *
27.909091
69
0.654723
36
307
5.472222
0.611111
0.152284
0.243655
0
0
0
0
0
0
0
0
0
0.250814
307
11
70
27.909091
0.856522
0.71987
0
0
0
0
0.39759
0
0
0
0
0
0
1
0
false
0
0
0
0
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
37fbca47cd7c1a52714b821db69db4b34e472db6
1,121
py
Python
tofa/registry.py
vadimadr/tofa
f0d6a2ef6fa177e71ada7d31cdbbc9b0b3e95097
[ "BSD-3-Clause" ]
2
2020-07-16T19:54:32.000Z
2021-07-12T05:35:08.000Z
tofa/registry.py
vadimadr/tofa
f0d6a2ef6fa177e71ada7d31cdbbc9b0b3e95097
[ "BSD-3-Clause" ]
null
null
null
tofa/registry.py
vadimadr/tofa
f0d6a2ef6fa177e71ada7d31cdbbc9b0b3e95097
[ "BSD-3-Clause" ]
null
null
null
class Registry: def __init__(self, name): self._name = name self._registry_dict = dict() def register(self, name=None, obj=None): if obj is not None: if name is None: name = obj.__name__ return self._register(obj, name) return self._decora...
28.74359
85
0.5843
142
1,121
4.309859
0.211268
0.104575
0.156863
0.065359
0
0
0
0
0
0
0
0
0.323818
1,121
38
86
29.5
0.807388
0
0
0
0
0
0.049063
0
0
0
0
0
0
1
0.258065
false
0
0
0.032258
0.483871
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
530156bdbf37af54053f8df28119da4572359ed9
1,933
py
Python
exasol_bucketfs_utils_python/github_release_file_bucketfs_uploader.py
exasol/bucketfs-utils-python
6eb2aed97ad9f4aaece47bdac5bc8a44fb42d921
[ "MIT" ]
1
2021-06-25T19:53:03.000Z
2021-06-25T19:53:03.000Z
exasol_bucketfs_utils_python/github_release_file_bucketfs_uploader.py
exasol/bucketfs-utils-python
6eb2aed97ad9f4aaece47bdac5bc8a44fb42d921
[ "MIT" ]
42
2020-11-18T12:58:47.000Z
2022-03-30T13:02:15.000Z
exasol_bucketfs_utils_python/github_release_file_bucketfs_uploader.py
exasol/bucketfs-utils-python
6eb2aed97ad9f4aaece47bdac5bc8a44fb42d921
[ "MIT" ]
null
null
null
import requests from requests.auth import HTTPBasicAuth from exasol_bucketfs_utils_python.release_link_extractor import ReleaseLinkExtractor class GithubReleaseFileBucketFSUploader: def __init__(self, file_to_download_name, github_user, repository_name, release_name, path_inside_bucket): self.file_to_dow...
43.931818
113
0.736679
240
1,933
5.520833
0.2875
0.058113
0.05283
0.067925
0.116226
0.083019
0
0
0
0
0
0.003827
0.188826
1,933
43
114
44.953488
0.841199
0.127781
0
0
0
0
0.051534
0
0
0
0
0
0
1
0.178571
false
0.071429
0.107143
0.035714
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
530181d38f25d3fb2aa3da6b0b6f3b0b65396864
1,049
py
Python
arduino/weather_station/image2c-botbook.py
AlexRogalskiy/Duino
bef05838fe73970dea856779957fd3a3e406f295
[ "MIT" ]
null
null
null
arduino/weather_station/image2c-botbook.py
AlexRogalskiy/Duino
bef05838fe73970dea856779957fd3a3e406f295
[ "MIT" ]
1
2021-04-17T19:30:17.000Z
2021-04-17T19:30:17.000Z
arduino/weather_station/image2c-botbook.py
AlexRogalskiy/Duino
bef05838fe73970dea856779957fd3a3e406f295
[ "MIT" ]
null
null
null
# image2c-botbook - convert a BMP image to C for use in eInk and LCD displays # (c) BotBook.com - Karvinen, Karvinen, Valtokari import Image # <1> import math imageName = "images/foo.bmp" # <2> outputName = "foo.h" # <3> im = Image.open(imageName) # <4> print im.format, im.size, im.mode width, height = im.size pixel...
24.395349
77
0.609152
163
1,049
3.920245
0.527607
0.117371
0.028169
0.065728
0
0
0
0
0
0
0
0.060168
0.207817
1,049
42
78
24.97619
0.708785
0.184938
0
0.064516
0
0
0.138922
0
0
0
0.014371
0
0
0
null
null
0
0.064516
null
null
0.032258
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
530715aedc076355b7f8fc3bcae66d80abe2684d
2,386
py
Python
src/main/python/apache/aurora/client/api/error_handling_thread.py
zmanji/incubator-aurora
9f594f1de6bbf46c74863dd3fc4d2708b7a974f2
[ "Apache-2.0" ]
11
2016-05-25T15:44:34.000Z
2021-07-24T19:37:30.000Z
src/main/python/apache/aurora/client/api/error_handling_thread.py
zmanji/incubator-aurora
9f594f1de6bbf46c74863dd3fc4d2708b7a974f2
[ "Apache-2.0" ]
1
2022-01-21T23:08:28.000Z
2022-01-21T23:08:28.000Z
src/main/python/apache/aurora/client/api/error_handling_thread.py
zmanji/incubator-aurora
9f594f1de6bbf46c74863dd3fc4d2708b7a974f2
[ "Apache-2.0" ]
6
2016-05-30T06:41:24.000Z
2022-02-27T10:57:58.000Z
# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under ...
31.394737
94
0.710813
329
2,386
5.033435
0.489362
0.036232
0.0157
0.019324
0.014493
0.014493
0
0
0
0
0
0.002101
0.202012
2,386
75
95
31.813333
0.867647
0.462699
0
0.135135
0
0
0.057583
0
0
0
0
0
0
1
0.108108
false
0.054054
0.189189
0
0.378378
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
53091c5da5523d2768a630d081bb88916da23258
5,188
py
Python
astropy/modeling/tests/test_utils.py
sagarchotalia/astropy
b49ad06b4de9577648a55d499d914e08baeef2c6
[ "BSD-3-Clause" ]
null
null
null
astropy/modeling/tests/test_utils.py
sagarchotalia/astropy
b49ad06b4de9577648a55d499d914e08baeef2c6
[ "BSD-3-Clause" ]
null
null
null
astropy/modeling/tests/test_utils.py
sagarchotalia/astropy
b49ad06b4de9577648a55d499d914e08baeef2c6
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst # pylint: disable=invalid-name import pytest import numpy as np from inspect import Parameter from astropy.modeling.utils import (poly_map_domain, _validate_domain_window, get_inputs_and_params, _SpecialOperatorsDict) ...
34.131579
87
0.66596
664
5,188
4.966867
0.180723
0.13584
0.058217
0.094603
0.598848
0.554579
0.451183
0.386598
0.361128
0.356883
0
0.024518
0.229568
5,188
151
88
34.357616
0.8006
0.032382
0
0.33945
0
0
0.044711
0
0
0
0
0
0.40367
1
0.100917
false
0.027523
0.036697
0
0.146789
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
530947fcad6c594b4f0f72318dbf455df416584f
12,520
py
Python
tests/schemas/test_pending_messages.py
aleph-im/py-aleph
a18beb8b4eba36887ca85054ed2471c3680bdfde
[ "MIT" ]
null
null
null
tests/schemas/test_pending_messages.py
aleph-im/py-aleph
a18beb8b4eba36887ca85054ed2471c3680bdfde
[ "MIT" ]
null
null
null
tests/schemas/test_pending_messages.py
aleph-im/py-aleph
a18beb8b4eba36887ca85054ed2471c3680bdfde
[ "MIT" ]
null
null
null
import json from typing import Dict import pytest from aleph_message.models import ItemType from aleph.exceptions import InvalidMessageError from aleph.schemas.pending_messages import ( BasePendingMessage, PendingAggregateMessage, PendingForgetMessage, PendingPostMessage, PendingProgramMessage, ...
43.929825
925
0.736741
987
12,520
9.134752
0.208713
0.048802
0.046584
0.034605
0.571872
0.557121
0.534161
0.511313
0.491792
0.462955
0
0.202807
0.152077
12,520
284
926
44.084507
0.646477
0.023722
0
0.568807
0
0.013761
0.492444
0.392083
0
0
0.145861
0
0.169725
1
0.068807
false
0
0.027523
0
0.09633
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
5309e2a4249a47a9fa5c2344c34541c56c43ddd7
2,260
py
Python
crypto_crawler/const.py
stargrep/crypto_cralwer
a567ff6c1eb6e5e6b332fe781558c81558656d12
[ "MIT" ]
5
2019-11-05T03:15:20.000Z
2021-08-09T14:07:52.000Z
crypto_crawler/const.py
stargrep/crypto_cralwer
a567ff6c1eb6e5e6b332fe781558c81558656d12
[ "MIT" ]
null
null
null
crypto_crawler/const.py
stargrep/crypto_cralwer
a567ff6c1eb6e5e6b332fe781558c81558656d12
[ "MIT" ]
3
2019-11-04T13:33:32.000Z
2020-06-21T08:09:55.000Z
from pathlib import Path COIN_MARKET_CAP_URL = "https://coinmarketcap.com/currencies/bitcoin/markets" WEB_API_EXCHANGE_PRICE_URL = "https://web-api.coinmarketcap.com/v1/exchange/market-pairs/latest?id=" COIN_NAME_BITCOIN = "BitCoin" COIN_NAME_ETC = "ETC" TARGET_EXCHANGE_SET = {"Binance", "Gemini", "Bitfinex", "Coin...
26.588235
110
0.676549
303
2,260
4.745875
0.349835
0.048679
0.038248
0.043811
0.260083
0.184979
0.184979
0.184979
0.184979
0.184979
0
0.025309
0.213274
2,260
84
111
26.904762
0.783465
0.016814
0
0.2
0
0.015385
0.611462
0.009928
0
0
0
0
0
1
0
false
0
0.015385
0
0.015385
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
531142f6a99f6da696ff8e4e16eb42fe52744280
10,791
py
Python
nilearn/interfaces/fmriprep/load_confounds_strategy.py
ctw/nilearn
932eee9c69cd8fbf40ee6af5cee77f8f93b25da3
[ "BSD-2-Clause" ]
null
null
null
nilearn/interfaces/fmriprep/load_confounds_strategy.py
ctw/nilearn
932eee9c69cd8fbf40ee6af5cee77f8f93b25da3
[ "BSD-2-Clause" ]
null
null
null
nilearn/interfaces/fmriprep/load_confounds_strategy.py
ctw/nilearn
932eee9c69cd8fbf40ee6af5cee77f8f93b25da3
[ "BSD-2-Clause" ]
null
null
null
"""Predefined denoising strategies. Authors: Hao-Ting Wang, Pierre Bellec """ import warnings from . import load_confounds # defining a preset strategy with python dictionary: # key: # name for the strategy # value: # a dictionary containing the parameters from `load_confounds` # and associated values. # comp...
44.044898
79
0.610787
1,216
10,791
5.337993
0.305099
0.006471
0.006933
0.009244
0.111077
0.083962
0.026498
0.024341
0.007703
0.007703
0
0.006469
0.283755
10,791
244
80
44.22541
0.833355
0.70253
0
0.219178
0
0
0.254431
0.017356
0
0
0
0
0
1
0.027397
false
0.054795
0.027397
0
0.082192
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
5315b01a9cb44fb4253e19f3336970b3095bbd12
388
py
Python
filter.py
ceteri/exsto
d632379ab19b36cc0bb9e17623d161e32963ff63
[ "MIT" ]
62
2015-07-23T18:14:37.000Z
2018-10-28T15:17:36.000Z
filter.py
ceteri/exsto
d632379ab19b36cc0bb9e17623d161e32963ff63
[ "MIT" ]
null
null
null
filter.py
ceteri/exsto
d632379ab19b36cc0bb9e17623d161e32963ff63
[ "MIT" ]
14
2015-07-23T18:14:44.000Z
2018-08-25T12:26:57.000Z
#!/usr/bin/env python # encoding: utf-8 import exsto import json import os import sys def main (): path = sys.argv[1] if os.path.isdir(path): exsto.test_filter(path) else: with open(path, 'r') as f: for line in f.readlines(): meta = json.loads(line) print exsto.pretty_print(exsto...
16.166667
67
0.636598
59
388
4
0.644068
0.084746
0
0
0
0
0
0
0
0
0
0.006623
0.221649
388
23
68
16.869565
0.774834
0.092784
0
0
0
0
0.037143
0
0
0
0
0
0
0
null
null
0
0.266667
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
531b1f6559e78a6b465e64d5a6203547ccde4ce9
3,376
py
Python
passport/views.py
lixianjing/HFMS
3b97ddc6062140fd22232a2e9bdf205e91a4405a
[ "Apache-2.0" ]
1
2019-11-22T03:24:25.000Z
2019-11-22T03:24:25.000Z
passport/views.py
lixianjing/HFMS
3b97ddc6062140fd22232a2e9bdf205e91a4405a
[ "Apache-2.0" ]
null
null
null
passport/views.py
lixianjing/HFMS
3b97ddc6062140fd22232a2e9bdf205e91a4405a
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render # Create your views here. from django.shortcuts import render, redirect from django.urls import reverse from django.views.decorators.csrf import csrf_exempt from main.user_utils import get_id from main.utils import get_md5, generate_token, certify_token from passport.models import ...
35.914894
104
0.602784
402
3,376
4.91791
0.216418
0.05564
0.077896
0.064745
0.510369
0.4087
0.4087
0.37127
0.322711
0.289327
0
0.001604
0.261256
3,376
93
105
36.301075
0.791099
0.006813
0
0.45679
0
0
0.165921
0.037302
0
0
0
0
0
1
0.049383
false
0.17284
0.08642
0
0.222222
0.024691
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
531b6b8ecbb5f8e60c244610af825d6e42a25573
5,080
py
Python
apps/twitter/pcaritwits/twits.py
pcarivbts/vbts-clientfiles
3b5c5a959fcf4a2dbed30c348951ed213f4ae786
[ "BSD-3-Clause" ]
null
null
null
apps/twitter/pcaritwits/twits.py
pcarivbts/vbts-clientfiles
3b5c5a959fcf4a2dbed30c348951ed213f4ae786
[ "BSD-3-Clause" ]
null
null
null
apps/twitter/pcaritwits/twits.py
pcarivbts/vbts-clientfiles
3b5c5a959fcf4a2dbed30c348951ed213f4ae786
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2015-present, Philippine-California Advanced Research Institutes- The Village Base Station Project (PCARI-VBTS). All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. """ import tweepy class Twits(object):...
36.811594
91
0.55
535
5,080
5.069159
0.261682
0.047935
0.056785
0.031342
0.350295
0.241519
0.160767
0.143068
0.143068
0.143068
0
0.005453
0.350197
5,080
137
92
37.080292
0.816116
0.051772
0
0.237624
0
0
0.130723
0.005087
0
0
0
0
0
0
null
null
0
0.009901
null
null
0.009901
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
531c0ee72824869d71a0319c75873647e28c094b
2,066
py
Python
flask_appbuilder/tests/test_fab_cli.py
NeolithEra/Flask-AppBuilder
d9561bf89d925a2f5d74c226318884733b52718f
[ "BSD-3-Clause" ]
4
2020-05-21T01:10:37.000Z
2021-01-19T20:39:35.000Z
flask_appbuilder/tests/test_fab_cli.py
NeolithEra/Flask-AppBuilder
d9561bf89d925a2f5d74c226318884733b52718f
[ "BSD-3-Clause" ]
3
2021-08-30T16:30:50.000Z
2022-03-01T23:15:44.000Z
flask_appbuilder/tests/test_fab_cli.py
NeolithEra/Flask-AppBuilder
d9561bf89d925a2f5d74c226318884733b52718f
[ "BSD-3-Clause" ]
3
2021-05-21T21:26:34.000Z
2021-10-05T16:57:57.000Z
import logging import os from click.testing import CliRunner from flask_appbuilder.cli import ( create_app, create_permissions, create_user, list_users, list_views, reset_password, ) from .base import FABTestCase logging.basicConfig(format="%(asctime)s:%(levelname)s:%(name)s:%(message)s") log...
28.30137
85
0.550339
208
2,066
5.331731
0.394231
0.064923
0.064923
0.030658
0.151488
0.151488
0.151488
0.151488
0.151488
0.151488
0
0.000713
0.321394
2,066
72
86
28.694444
0.7903
0.023717
0
0.185185
0
0
0.180428
0.034659
0
0
0
0
0.092593
1
0.074074
false
0.074074
0.092593
0
0.185185
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
5323348b57bdf5db3a9751060f489e9c27285142
1,011
py
Python
pyecwid/endpoints/customers.py
DanPalmz/pyecwid
03fb3077a5aeda62e6aa4be2a6eae5e161be1e23
[ "MIT" ]
3
2021-07-29T17:00:42.000Z
2021-11-05T13:35:21.000Z
pyecwid/endpoints/customers.py
DanPalmz/pyecwid
03fb3077a5aeda62e6aa4be2a6eae5e161be1e23
[ "MIT" ]
2
2021-04-22T04:27:15.000Z
2021-04-26T02:49:38.000Z
pyecwid/endpoints/customers.py
DanPalmz/pyecwid
03fb3077a5aeda62e6aa4be2a6eae5e161be1e23
[ "MIT" ]
1
2021-07-08T01:41:27.000Z
2021-07-08T01:41:27.000Z
from pyecwid.endpoints import EcwidEndpoint from pyecwid.endpoints.mixins import (EndpointAddItemMixin, EndpointDeleteItemMixin, EndpointGetAllMixin, EndpointGetByIdMixin, EndpointGetByKeywordMixin, EndpointUpdateItemMixin) class Customers(EcwidEndpoint, EndpointAddItemMixin, EndpointDeleteItemMixin, EndpointG...
34.862069
99
0.720079
94
1,011
7.595745
0.37234
0.084034
0.056022
0.229692
0.680672
0.680672
0.316527
0.316527
0.316527
0.316527
0
0
0.199802
1,011
28
100
36.107143
0.882571
0
0
0.4
0
0
0.065282
0
0
0
0
0
0
1
0.15
false
0
0.1
0
0.4
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
532d28652d594e31b58e0e75fbaaa92b9c6b54cc
1,893
py
Python
optuna/visualization/matplotlib/_utils.py
xuzijian629/optuna
cf03adeedc59013661e13fd8ed3763a7ac00ae8d
[ "MIT" ]
1
2020-07-28T10:13:27.000Z
2020-07-28T10:13:27.000Z
optuna/visualization/matplotlib/_utils.py
belldandyxtq/optuna
3bb255136b5606fff1e01a0bd4dda1e85c7c21ed
[ "MIT" ]
1
2020-07-14T01:48:01.000Z
2020-07-14T01:53:39.000Z
optuna/visualization/matplotlib/_utils.py
belldandyxtq/optuna
3bb255136b5606fff1e01a0bd4dda1e85c7c21ed
[ "MIT" ]
null
null
null
from typing import List from optuna._experimental import experimental from optuna.distributions import CategoricalDistribution from optuna.distributions import FloatDistribution from optuna.distributions import LogUniformDistribution from optuna.trial import FrozenTrial from optuna.visualization.matplotlib import _mat...
29.578125
94
0.687269
226
1,893
5.668142
0.345133
0.046838
0.053864
0.067916
0.202966
0.130367
0.104606
0.043716
0.043716
0
0
0.006169
0.229266
1,893
63
95
30.047619
0.87183
0.259905
0
0.176471
0
0
0.012482
0
0
0
0
0
0
1
0.117647
false
0
0.235294
0.058824
0.529412
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
532f8c3310e5507f1c4f06a60f516b86093ffa8f
1,689
py
Python
src/demo.py
hahmadraz/SqueezeDet-MultiHead
db8a9c19c633271eb1c90447558e14f4cd98f670
[ "MIT" ]
17
2020-04-20T06:16:07.000Z
2022-02-28T13:04:04.000Z
src/demo.py
ELanning/SqueezeDet-PyTorch
b0d80daa0147c968d43f3c38bc416394419c4bcc
[ "MIT" ]
8
2020-06-15T08:55:32.000Z
2022-03-12T00:24:35.000Z
src/demo.py
ELanning/SqueezeDet-PyTorch
b0d80daa0147c968d43f3c38bc416394419c4bcc
[ "MIT" ]
9
2020-06-09T07:17:07.000Z
2022-03-04T05:42:02.000Z
import os import glob import tqdm import numpy as np import skimage.io import torch import torch.utils.data from datasets.kitti import KITTI from engine.detector import Detector from model.squeezedet import SqueezeDet from utils.config import Config from utils.model import load_model def demo(cfg): # prepare co...
31.867925
101
0.676732
233
1,689
4.76824
0.377682
0.056706
0.029703
0.034203
0.037804
0
0
0
0
0
0
0.012763
0.211368
1,689
52
102
32.480769
0.821321
0.098283
0
0
0
0
0.076568
0.050165
0
0
0
0
0
1
0.027778
false
0
0.333333
0
0.361111
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
5331bf06ae23bd7721868f1b32c55e074ea9b2b1
6,921
py
Python
MachineLearning/BP/bp_train.py
chenxygx/PythonSimple
bd4c86d8bc8064fa62f7a2ec3040d1e1c90252c3
[ "Apache-2.0" ]
1
2021-07-22T02:31:20.000Z
2021-07-22T02:31:20.000Z
MachineLearning/BP/bp_train.py
chenxygx/PythonSimple
bd4c86d8bc8064fa62f7a2ec3040d1e1c90252c3
[ "Apache-2.0" ]
null
null
null
MachineLearning/BP/bp_train.py
chenxygx/PythonSimple
bd4c86d8bc8064fa62f7a2ec3040d1e1c90252c3
[ "Apache-2.0" ]
1
2021-07-22T02:29:49.000Z
2021-07-22T02:29:49.000Z
# coding:UTF-8 ''' Date:20160831 @author: zhaozhiyong ''' import numpy as np from math import sqrt def load_data(file_name): '''导入数据 input: file_name(string):文件的存储位置 output: feature_data(mat):特征 label_data(mat):标签 n_class(int):类别的个数 ''' # 1、获取特征 f = open(file_name) # 打...
29.079832
105
0.54443
991
6,921
3.657921
0.160444
0.030897
0.01931
0.024276
0.310897
0.253517
0.225931
0.16
0.16
0.16
0
0.042392
0.294466
6,921
237
106
29.202532
0.69998
0.036989
0
0.130081
0
0
0.047737
0
0
0
0
0
0
0
null
null
0
0.01626
null
null
0.04878
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
5332bbe7e6aab7f38eccf7568da179c9b10a9ad9
1,545
py
Python
lib/posemapper.py
danhnguyen48/MGN-Py3
2f65f3d7c9aecf34c7dcd2ebb52e06c71c769a70
[ "Unlicense" ]
5
2020-06-11T07:52:09.000Z
2020-12-30T14:19:57.000Z
lib/posemapper.py
danhnguyen48/MGN-Py3
2f65f3d7c9aecf34c7dcd2ebb52e06c71c769a70
[ "Unlicense" ]
2
2021-05-18T08:35:55.000Z
2021-07-10T13:34:45.000Z
lib/posemapper.py
minar09/MultiGarmentNetworkPython3
9027c5c53911cca4e98541926b5d3e110a2a68e7
[ "Unlicense" ]
5
2020-04-07T15:16:29.000Z
2021-12-24T10:38:03.000Z
# This function is copied from https://github.com/Rubikplayer/flame-fitting ''' Copyright 2015 Matthew Loper, Naureen Mahmood and the Max Planck Gesellschaft. All rights reserved. This software is provided for research purposes only. By using this software you agree to the terms of the SMPL Model license here ht...
31.530612
111
0.640129
236
1,545
4.177966
0.504237
0.018256
0.024341
0.028398
0.125761
0.125761
0.034483
0
0
0
0
0.018472
0.229126
1,545
48
112
32.1875
0.809404
0.446602
0
0
0
0
0.04005
0
0
0
0
0
0
1
0.166667
false
0
0.125
0.041667
0.583333
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
53334a4ab1f715d41aa14de39ab6fb138651b101
1,774
py
Python
blog/views.py
jgasteiz/javiman
03d70794b7cc71333f908211c38939e506776b19
[ "Apache-2.0" ]
null
null
null
blog/views.py
jgasteiz/javiman
03d70794b7cc71333f908211c38939e506776b19
[ "Apache-2.0" ]
null
null
null
blog/views.py
jgasteiz/javiman
03d70794b7cc71333f908211c38939e506776b19
[ "Apache-2.0" ]
null
null
null
import json from django.core.cache import cache from django.core.urlresolvers import reverse from django.shortcuts import redirect from django.utils.decorators import method_decorator from django.views.generic import DetailView, ListView, TemplateView from django.views.decorators.cache import ( cache_page, pat...
24.985915
72
0.714205
225
1,774
5.484444
0.346667
0.048622
0.051864
0.027553
0.12966
0.12966
0.0859
0.0859
0.0859
0.0859
0
0.004161
0.187148
1,774
70
73
25.342857
0.851595
0
0
0.166667
0
0
0.047351
0
0
0
0
0
0
1
0.083333
false
0
0.1875
0.041667
0.6875
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
5337b447b8952c8f9b3cbcbdf2c01ca4be5efbc6
408
py
Python
openwisp_users/migrations/0004_default_groups.py
IAmAMissingColon/openwisp-users
1e31ea5f4b3a92c1e3c4f783f89fd204a90f23a6
[ "BSD-3-Clause" ]
null
null
null
openwisp_users/migrations/0004_default_groups.py
IAmAMissingColon/openwisp-users
1e31ea5f4b3a92c1e3c4f783f89fd204a90f23a6
[ "BSD-3-Clause" ]
null
null
null
openwisp_users/migrations/0004_default_groups.py
IAmAMissingColon/openwisp-users
1e31ea5f4b3a92c1e3c4f783f89fd204a90f23a6
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1.1 on 2018-10-22 14:15 from django.db import migrations from openwisp_users.migrations import create_default_groups class Migration(migrations.Migration): dependencies = [ ('openwisp_users', '0003_default_organization'), ] operations = [ migrations.RunPython( ...
24
73
0.70098
46
408
6.021739
0.652174
0.093863
0.137184
0
0
0
0
0
0
0
0
0.059375
0.215686
408
16
74
25.5
0.80625
0.110294
0
0
1
0
0.108033
0.069252
0
0
0
0
0
1
0
false
0
0.181818
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
533ce30abc410da66909f0c1c80e011eb47cf073
255
py
Python
api/urls.py
Jeyhun023/django_abysshub
c588006a3bca25dcbaac7eeb6cd9a7158e59ecd6
[ "MIT" ]
null
null
null
api/urls.py
Jeyhun023/django_abysshub
c588006a3bca25dcbaac7eeb6cd9a7158e59ecd6
[ "MIT" ]
null
null
null
api/urls.py
Jeyhun023/django_abysshub
c588006a3bca25dcbaac7eeb6cd9a7158e59ecd6
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('plagiarism/check/<int:id>', views.check), path('forum/search', views.forumSearch), path('products/search', views.productSearch), path('vectorize', views.vectorize), ]
25.5
51
0.698039
30
255
5.933333
0.566667
0.123596
0
0
0
0
0
0
0
0
0
0
0.145098
255
9
52
28.333333
0.816514
0
0
0
0
0
0.239216
0.098039
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
533db747ceab534e52977d6fce16a8e1fd38549c
2,381
py
Python
src/python/arac/utilities.py
bayerj/arac
60e3d1688f570efc5177016632450b86c4b36d32
[ "BSD-3-Clause" ]
17
2015-01-01T14:57:27.000Z
2020-06-28T12:25:59.000Z
src/python/arac/utilities.py
schaul/arac
0ae76c4f3923d7f92a54a8685c26d492a1035b75
[ "BSD-3-Clause" ]
14
2015-04-29T12:31:03.000Z
2020-03-10T12:01:56.000Z
src/python/arac/utilities.py
schaul/arac
0ae76c4f3923d7f92a54a8685c26d492a1035b75
[ "BSD-3-Clause" ]
12
2015-01-14T17:16:36.000Z
2022-01-26T07:46:26.000Z
#! /usr/bin/env python2.5 # -*- coding: utf-8 -*- """This module contains several useful utility and convenience functions for everyday work with arac. """ __author__ = 'Justin S Bayer, bayer.justin@googlemail.com' import operator import scipy def block_permutation(shape, blockshape): # TODO: move tests to ...
28.011765
122
0.604788
366
2,381
3.836066
0.371585
0.05698
0.074786
0.047009
0.162393
0.146011
0.082621
0.082621
0.082621
0.031339
0
0.093975
0.240235
2,381
84
123
28.345238
0.682145
0.368753
0
0.04878
0
0
0.035319
0.018698
0
0
0
0.02381
0
1
0.121951
false
0
0.073171
0.04878
0.292683
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
5340b95ec7a8127ea10cfc1dd01cc03d074e6e0e
3,432
py
Python
planning_python/planners/greedy_planner.py
daahuang/planning_python
1b9ae0346df66ed8cf2cb80a54a92fd909a578fe
[ "BSD-3-Clause" ]
12
2017-10-18T21:39:20.000Z
2021-11-28T06:36:37.000Z
planning_python/planners/greedy_planner.py
daahuang/planning_python
1b9ae0346df66ed8cf2cb80a54a92fd909a578fe
[ "BSD-3-Clause" ]
null
null
null
planning_python/planners/greedy_planner.py
daahuang/planning_python
1b9ae0346df66ed8cf2cb80a54a92fd909a578fe
[ "BSD-3-Clause" ]
6
2017-10-29T05:23:16.000Z
2020-11-17T10:53:41.000Z
#!/usr/bin/env python from collections import defaultdict import numpy as np import time from planning_python.data_structures.priority_queue import PriorityQueue from planning_python.planners.search_based_planner import SearchBasedPlanner class GreedyPlanner(SearchBasedPlanner): def __init__(self): """Planner t...
36.126316
151
0.671911
477
3,432
4.628931
0.310273
0.022645
0.040761
0.052989
0.153533
0.060236
0.026268
0
0
0
0
0.008897
0.246795
3,432
95
152
36.126316
0.845261
0.157051
0
0.171875
0
0
0.069896
0
0
0
0
0
0.015625
0
null
null
0
0.078125
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
534278e58b5ce8668531c677261348ee5a18b599
8,277
py
Python
hash_verify_gui.py
jfblanchard/md5-verification
fec32fb97881bd54bdbd22648eede391c5b068e6
[ "MIT" ]
null
null
null
hash_verify_gui.py
jfblanchard/md5-verification
fec32fb97881bd54bdbd22648eede391c5b068e6
[ "MIT" ]
null
null
null
hash_verify_gui.py
jfblanchard/md5-verification
fec32fb97881bd54bdbd22648eede391c5b068e6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'hash_verify_gui.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_hashDialog(object): def setupUi(self, hashDialog): has...
56.306122
108
0.704603
888
8,277
6.54955
0.183559
0.100585
0.057772
0.075825
0.468019
0.468019
0.468019
0.468019
0.468019
0.454264
0
0.040029
0.17603
8,277
146
109
56.691781
0.812757
0.022472
0
0.373134
1
0
0.051095
0
0
0
0
0
0
1
0.014925
false
0
0.007463
0
0.029851
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
534c6197dc6749104ba73bc0ea0de5affefd413a
625
py
Python
socialsent3/representations/representation_factory.py
lanPN85/socialsent3
eab8ac138386d160c7cd691c2e677d2f8fb0360c
[ "Apache-2.0" ]
2
2019-05-08T02:37:39.000Z
2021-05-10T10:37:43.000Z
socialsent3/representations/representation_factory.py
lanPN85/socialsent3
eab8ac138386d160c7cd691c2e677d2f8fb0360c
[ "Apache-2.0" ]
null
null
null
socialsent3/representations/representation_factory.py
lanPN85/socialsent3
eab8ac138386d160c7cd691c2e677d2f8fb0360c
[ "Apache-2.0" ]
null
null
null
from socialsent3.representations.embedding import SVDEmbedding, Embedding, GigaEmbedding, FullEmbedding from socialsent3.representations.explicit import Explicit def create_representation(rep_type, path, *args, **kwargs): if rep_type == 'Explicit': return Explicit.load(path, *args, **kwargs) el...
39.0625
104
0.6752
67
625
6.208955
0.373134
0.115385
0.201923
0.129808
0.180288
0.180288
0
0
0
0
0
0.00404
0.208
625
15
105
41.666667
0.836364
0
0
0
0
0
0.031148
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.615385
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
53582b3a4539df932cca9ee602fac6455a7e9b85
1,443
py
Python
trade.py
chris-greening/coinbase-portfolio
c20226079d1236e71368860e6f24b01df789a3ed
[ "MIT" ]
null
null
null
trade.py
chris-greening/coinbase-portfolio
c20226079d1236e71368860e6f24b01df789a3ed
[ "MIT" ]
null
null
null
trade.py
chris-greening/coinbase-portfolio
c20226079d1236e71368860e6f24b01df789a3ed
[ "MIT" ]
null
null
null
import datetime import pytz from decimal import Decimal class Trade: def __init__(self, coinbase_resp): """Parse response data from Coinbase API""" self.coinbase_resp = coinbase_resp self.parse_response() def parse_response(self): self.amount = Decimal(self.coinbase_...
40.083333
100
0.607069
161
1,443
5.26087
0.273292
0.170012
0.207792
0.135773
0
0
0
0
0
0
0
0.004608
0.248094
1,443
36
101
40.083333
0.776037
0.025641
0
0
0
0.032258
0.176428
0.01757
0
0
0
0
0
1
0.129032
false
0
0.096774
0.064516
0.322581
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
5358a606646bf88d6467ebabe3d1bcf8b7f741a2
30,008
py
Python
gui/v2.0/track_gui.py
vt-gs/tracking
4588b840e69c1042d8e3560da44012101389e271
[ "MIT" ]
null
null
null
gui/v2.0/track_gui.py
vt-gs/tracking
4588b840e69c1042d8e3560da44012101389e271
[ "MIT" ]
null
null
null
gui/v2.0/track_gui.py
vt-gs/tracking
4588b840e69c1042d8e3560da44012101389e271
[ "MIT" ]
null
null
null
#!/usr/bin/env python from PyQt4 import QtGui from PyQt4 import QtCore from PyQt4 import Qt import PyQt4.Qwt5 as Qwt import numpy as np from datetime import datetime as date import sys #from az_dial import * from az_QwtDial import * from el_QwtDial import * import time from gpredict import * from control_button_frame...
41.106849
118
0.651959
3,851
30,008
4.874059
0.085173
0.024294
0.015823
0.016409
0.505807
0.39366
0.344965
0.256793
0.208471
0.190357
0
0.031836
0.233771
30,008
729
119
41.163237
0.7845
0.093408
0
0.176471
0
0.01426
0.082896
0.022967
0
0
0
0
0
0
null
null
0.012478
0.023173
null
null
0.02139
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
535bebaecd4b752fbb2ffd5f48543619b7e42212
1,419
py
Python
robot.py
DrGFreeman/RasPiBot202
a8442140fb4d110b544d1d59066616c813088956
[ "MIT" ]
19
2016-10-22T20:23:54.000Z
2019-11-23T19:45:49.000Z
robot.py
DrGFreeman/RasPiBot202
a8442140fb4d110b544d1d59066616c813088956
[ "MIT" ]
null
null
null
robot.py
DrGFreeman/RasPiBot202
a8442140fb4d110b544d1d59066616c813088956
[ "MIT" ]
12
2017-01-26T22:17:00.000Z
2020-06-13T15:39:37.000Z
from astarRPB202 import AStar from encoders import Encoders from motioncontroller import MotionController from motors import Motors from odometer import Odometer from pantilt import PanTilt class Robot: def __init__(self): self.aStar = AStar() self.encoders = Encoders(self.aStar) self.odom...
26.773585
70
0.635659
165
1,419
5.430303
0.248485
0.050223
0.013393
0.013393
0.006696
0
0
0
0
0
0
0.012381
0.260042
1,419
52
71
27.288462
0.840952
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.15
0
0.425
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
535eaeec5e71d110a4c688edfdf1e57f8f2c685d
476
py
Python
setup.py
kalgynirae/rockuefort
da502f49387d034c5033144d8e50153c1fc2c2fd
[ "MIT" ]
7
2015-02-09T00:46:44.000Z
2019-03-25T22:33:41.000Z
setup.py
kalgynirae/rockuefort
da502f49387d034c5033144d8e50153c1fc2c2fd
[ "MIT" ]
4
2015-02-26T05:22:59.000Z
2018-11-19T18:53:42.000Z
setup.py
kalgynirae/rockuefort
da502f49387d034c5033144d8e50153c1fc2c2fd
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( description='Work with music playlists written in a simple plaintext query format.', entry_points={ 'console_scripts': [ 'rockuefort=rockuefort:main', ], }, install_requires=[ 'docopt >=0.6.1', 'mutagen >=1.2...
23.8
88
0.607143
51
476
5.568627
0.823529
0.084507
0
0
0
0
0
0
0
0
0
0.022472
0.252101
476
19
89
25.052632
0.775281
0
0
0.111111
0
0
0.407563
0.054622
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
535ef3f7259d31dd2d291b8a03b31580566dfd37
2,458
py
Python
avalanche/training/plugins/clock.py
coreylowman/avalanche
9c1e7765f1577c400ec0c57260221bcffd9566a2
[ "MIT" ]
1
2021-09-15T13:57:27.000Z
2021-09-15T13:57:27.000Z
avalanche/training/plugins/clock.py
coreylowman/avalanche
9c1e7765f1577c400ec0c57260221bcffd9566a2
[ "MIT" ]
null
null
null
avalanche/training/plugins/clock.py
coreylowman/avalanche
9c1e7765f1577c400ec0c57260221bcffd9566a2
[ "MIT" ]
null
null
null
################################################################################ # Copyright (c) 2021 ContinualAI. # # Copyrights licensed under the MIT License. # # See the accompanying LICENSE file for terms. ...
38.40625
80
0.512205
231
2,458
5.246753
0.329004
0.096535
0.079208
0.108911
0.374587
0.235974
0.180693
0.067657
0
0
0
0.017424
0.346216
2,458
63
81
39.015873
0.736777
0.314076
0
0.307692
0
0
0
0
0
0
0
0
0
1
0.269231
false
0
0.038462
0
0.346154
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
535f8c09c4b52c4edc046d8eaf127b5466e51384
787
py
Python
rayvision_max/tests/conftest.py
renderbus/rayvision_max
22d37e29b990ec2abb40f356f6f9706f53f519e5
[ "Apache-2.0" ]
null
null
null
rayvision_max/tests/conftest.py
renderbus/rayvision_max
22d37e29b990ec2abb40f356f6f9706f53f519e5
[ "Apache-2.0" ]
null
null
null
rayvision_max/tests/conftest.py
renderbus/rayvision_max
22d37e29b990ec2abb40f356f6f9706f53f519e5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- """The plugin of the pytest. The pytest plugin hooks do not need to be imported into any test code, it will load automatically when running pytest. References: https://docs.pytest.org/en/2.7.3/plugins.html """ import pytest from rayvision_max.analyse_max import An...
21.861111
78
0.64803
106
787
4.688679
0.688679
0.04829
0.064386
0
0
0
0
0
0
0
0
0.014469
0.209657
787
35
79
22.485714
0.784566
0.369759
0
0.117647
0
0
0.159329
0
0
0
0
0
0
1
0.117647
false
0.058824
0.117647
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
536231f45362bfdcc85ff342516fd9cbf6716bab
1,848
py
Python
dem_to_bmp.py
andre-geldenhuis/dem-to-stl
6602e6b06a0b1bc876c3e7770de5986f45d04b00
[ "MIT" ]
16
2015-03-18T17:32:11.000Z
2021-11-23T08:31:49.000Z
dem_to_bmp.py
andre-geldenhuis/dem-to-stl
6602e6b06a0b1bc876c3e7770de5986f45d04b00
[ "MIT" ]
2
2015-01-27T16:24:20.000Z
2015-05-25T13:44:50.000Z
dem_to_bmp.py
andre-geldenhuis/dem-to-stl
6602e6b06a0b1bc876c3e7770de5986f45d04b00
[ "MIT" ]
5
2015-01-26T01:27:10.000Z
2019-03-24T06:12:09.000Z
#!/usr/bin/env python """ This program will generate a greyscale bitmap from a CDED flavoured DEM file. """ from cdedtools import demparser import argparse import Image # Command Line Options parser = argparse.ArgumentParser(description="Generate a BMP from a DEM file.") parser.add_argument("-c", "--colourize", des...
42.976744
160
0.651515
234
1,848
5.115385
0.418803
0.06015
0.056809
0.031746
0.0401
0.0401
0
0
0
0
0
0.018305
0.20184
1,848
42
161
44
0.79322
0.064394
0
0
1
0
0.222093
0
0
0
0
0
0
1
0
false
0
0.096774
0
0.096774
0.064516
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
536565351fdddc99b95a8a430093d59e3306cb53
4,279
py
Python
api/fullapp/userprofile/tests/test_profile.py
kigold/fullApp
0782648590524739df07eeeefdacf7e5ceb66332
[ "MIT" ]
null
null
null
api/fullapp/userprofile/tests/test_profile.py
kigold/fullApp
0782648590524739df07eeeefdacf7e5ceb66332
[ "MIT" ]
13
2020-04-14T00:42:46.000Z
2022-02-27T10:36:32.000Z
api/fullapp/userprofile/tests/test_profile.py
kigold/fullApp
0782648590524739df07eeeefdacf7e5ceb66332
[ "MIT" ]
null
null
null
from django.urls import reverse from rest_framework.test import APITestCase, APIClient from rest_framework.views import status from ..models import Profile, Team from ..serializers import ProfileSerializer class ProfileTest(APITestCase): def setUp(self): Team.objects.create(name="Eyimba", country="Nigeria...
48.078652
78
0.546623
451
4,279
5.053215
0.235033
0.118473
0.100921
0.101799
0.500219
0.475208
0.383502
0.157086
0.128126
0
0
0.01712
0.303809
4,279
88
79
48.625
0.747902
0
0
0.101266
0
0
0.223417
0
0
0
0
0
0.240506
1
0.063291
false
0.050633
0.063291
0
0.139241
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
536bba8b69de1c29be8d26f2456c912e4a5bbf6f
3,455
py
Python
tests/database_test.py
zesk06/scores
b1142d9630fcf6b5a969847ff4ef6856e08652ce
[ "MIT" ]
null
null
null
tests/database_test.py
zesk06/scores
b1142d9630fcf6b5a969847ff4ef6856e08652ce
[ "MIT" ]
null
null
null
tests/database_test.py
zesk06/scores
b1142d9630fcf6b5a969847ff4ef6856e08652ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # pylint tests exceptions: # - R0201: method could be a function # pylint: disable=R0201 """ A test module docstring""" from __future__ import print_function import datetime import os import tempfile from scores.database import Database from scores.play import Play class T...
32.28972
86
0.586397
414
3,455
4.68599
0.26087
0.045361
0.049485
0.059278
0.265464
0.209794
0.195876
0.073196
0.073196
0.073196
0
0.019838
0.285094
3,455
106
87
32.59434
0.765587
0.118669
0
0.152778
0
0
0.132615
0.036015
0
0
0
0
0.125
1
0.083333
false
0.083333
0.083333
0
0.180556
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
72592a42627ec79aa0bce8628bb3bab92b3ae1ca
3,015
py
Python
lambda/lambda_function.py
Signiant/dynamodb-decryption
351bdcef25e0235ebd18d56f56c18903e10ba2d0
[ "MIT" ]
null
null
null
lambda/lambda_function.py
Signiant/dynamodb-decryption
351bdcef25e0235ebd18d56f56c18903e10ba2d0
[ "MIT" ]
null
null
null
lambda/lambda_function.py
Signiant/dynamodb-decryption
351bdcef25e0235ebd18d56f56c18903e10ba2d0
[ "MIT" ]
null
null
null
import boto3 import base64 import binascii from boto3.dynamodb.types import TypeDeserializer # <- Jon you're a genius currentRegion = "{{currentRegion}}" sourceRegion = "{{sourceRegion}}" kmsEncrypt = "{{kmsEncrypt}}" columnsToDecrypt = "{{columnsToDecrypt}}" def lambda_handler(event, context): kms_source = boto3...
44.338235
125
0.621227
329
3,015
5.571429
0.398176
0.042008
0.022913
0.021822
0.079651
0.053464
0
0
0
0
0
0.01121
0.289884
3,015
67
126
45
0.844932
0.15257
0
0.104167
0
0
0.134827
0
0
0
0
0
0
0
null
null
0
0.083333
null
null
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
1
0
0
0
0
0
0
0
0
1
726535319ad1bc002093cf632a94d013e9e36c82
5,624
py
Python
BendingScrolls/settings.py
shawnwanderson/bending-scrolls
269d17f35918a4df7008dead6efe331c587a82cb
[ "Apache-2.0" ]
null
null
null
BendingScrolls/settings.py
shawnwanderson/bending-scrolls
269d17f35918a4df7008dead6efe331c587a82cb
[ "Apache-2.0" ]
null
null
null
BendingScrolls/settings.py
shawnwanderson/bending-scrolls
269d17f35918a4df7008dead6efe331c587a82cb
[ "Apache-2.0" ]
null
null
null
""" Django settings for BendingScrolls project. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os from configurations import Configuration, values clas...
31.244444
95
0.669275
598
5,624
6.155518
0.361204
0.06357
0.021733
0.033958
0.190166
0.152676
0.070905
0.070905
0.033415
0
0
0.006807
0.216394
5,624
179
96
31.418994
0.828455
0.276671
0
0.02
0
0
0.37453
0.29832
0
0
0
0
0
1
0
false
0.06
0.02
0
0.41
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
726545986276e5ba2fd4609217591316989c5eaf
5,826
py
Python
hypergraphtk/visual/visualization.py
dr-jgsmith/HyperGraph-Project
b376af261b5af77dcb1a0c4ce6c5186c336e7d86
[ "MIT" ]
5
2018-02-09T02:16:58.000Z
2022-01-20T00:18:16.000Z
hypergraphtk/visual/visualization.py
dr-jgsmith/HyperGraph-Project
b376af261b5af77dcb1a0c4ce6c5186c336e7d86
[ "MIT" ]
3
2021-03-31T18:40:38.000Z
2021-12-13T19:44:33.000Z
hypergraphtk/visual/visualization.py
dr-jgsmith/HyperGraph-Project
b376af261b5af77dcb1a0c4ce6c5186c336e7d86
[ "MIT" ]
1
2021-07-19T02:10:00.000Z
2021-07-19T02:10:00.000Z
import numpy as np import networkx as nx import matplotlib.pyplot as plt from matplotlib import pyplot import matplotlib import seaborn as sns """ Visualization functions for processing graphs, hypergraphs and simplicial complexes. TODOs add options for saving visuals. """ def visualize_q_percolation(Q): """ ...
25.112069
74
0.647271
837
5,826
4.382318
0.173238
0.022901
0.082879
0.095965
0.692203
0.665485
0.642039
0.634951
0.634951
0.634951
0
0.013457
0.221936
5,826
231
75
25.220779
0.79572
0.066426
0
0.613095
0
0
0.103091
0
0
0
0
0.004329
0
1
0.095238
false
0.005952
0.035714
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
1
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
72710806e49c1b9d9dc1bb54fd9f26b76bff8480
1,684
py
Python
workspace/module/houdini-python-2.7/LxHouBasic/houBscObjects/_houBscObjNode.py
no7hings/Lynxi
43c745198a714c2e5aca86c6d7a014adeeb9abf7
[ "MIT" ]
2
2018-03-06T03:33:55.000Z
2019-03-26T03:25:11.000Z
workspace/module/houdini-python-2.7/LxHouBasic/houBscObjects/_houBscObjNode.py
no7hings/lynxi
43c745198a714c2e5aca86c6d7a014adeeb9abf7
[ "MIT" ]
null
null
null
workspace/module/houdini-python-2.7/LxHouBasic/houBscObjects/_houBscObjNode.py
no7hings/lynxi
43c745198a714c2e5aca86c6d7a014adeeb9abf7
[ "MIT" ]
null
null
null
# coding:utf-8 from LxData.datObjects import _datObjRaw, _datObjPath from LxGraphic import grhCfg from LxGraphic.grhObjects import _grhObjStack from .. import houBscObjAbs from ..houBscObjects import _houBscObjData, _houBscObjQuery, _houBscObjPort class Node(houBscObjAbs.Abs_HouNode): CLS_grh__cache_obj__vari...
34.367347
75
0.797506
174
1,684
7.086207
0.350575
0.043796
0.032441
0.104623
0.034063
0
0
0
0
0
0
0.000693
0.143112
1,684
48
76
35.083333
0.853777
0.007126
0
0
0
0
0
0
0
0
0
0
0
1
0.033333
false
0
0.166667
0
0.633333
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
72768cdbb147fa0613afedcae96c5be9bddb4026
2,643
py
Python
agents/agent_module_simple_q/features/discrete_features.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
1
2021-06-03T20:03:50.000Z
2021-06-03T20:03:50.000Z
agents/agent_module_simple_q/features/discrete_features.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
null
null
null
agents/agent_module_simple_q/features/discrete_features.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
1
2021-03-14T01:22:33.000Z
2021-03-14T01:22:33.000Z
import numpy as np from environement_features.discrete_features import DiscreteHighLevelFeatures class DiscreteFeatures1Teammate(DiscreteHighLevelFeatures): # Features agent_x_pos: float # [-1, 1] agent_y_pos: float # [-1, 1] teammate_x_pos: float # [-1, 1] teammate_x_pos: float # [-1, 1] ...
36.708333
79
0.6084
387
2,643
3.927649
0.193798
0.039474
0.035526
0.039474
0.315789
0.183553
0.110526
0.110526
0.067105
0.031579
0
0.033453
0.264851
2,643
71
80
37.225352
0.748842
0.049187
0
0.075472
0
0
0.029647
0
0
0
0
0
0
1
0.113208
false
0
0.037736
0.056604
0.584906
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
727c2601d8290bf0e3be515cfa792edf6d001493
360
py
Python
loss.py
wukaoliu/deeplabv2_pytorch
370ed1dd37ff87431d79cef4bc1f92a12f52beab
[ "MIT" ]
4
2019-07-24T09:44:54.000Z
2021-04-12T13:15:27.000Z
loss.py
yuhaoliu7456/deeplabv2_pytorch
370ed1dd37ff87431d79cef4bc1f92a12f52beab
[ "MIT" ]
3
2019-09-19T09:09:22.000Z
2020-07-04T08:26:06.000Z
loss.py
wukaoliu/deeplabv2_pytorch
370ed1dd37ff87431d79cef4bc1f92a12f52beab
[ "MIT" ]
null
null
null
import torch.nn.functional as F import torch.nn as nn class Loss(nn.Module): def __init__(self, args): super(Loss, self).__init__() self.args = args def forward(self, logits, label): criterion = nn.CrossEntropyLoss(ignore_index=self.args.ignore_label) loss = crite...
30
77
0.638889
46
360
4.782609
0.478261
0.109091
0.118182
0
0
0
0
0
0
0
0
0
0.263889
360
12
78
30
0.830189
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
727d60f7019d307cc5a88bc4656e612cc14ac647
3,061
py
Python
training_log_app/admin.py
NicoRio42/training-log-back
cae387ee8b38e8d5bcb99dc3f3058a512f498ea6
[ "MIT" ]
null
null
null
training_log_app/admin.py
NicoRio42/training-log-back
cae387ee8b38e8d5bcb99dc3f3058a512f498ea6
[ "MIT" ]
null
null
null
training_log_app/admin.py
NicoRio42/training-log-back
cae387ee8b38e8d5bcb99dc3f3058a512f498ea6
[ "MIT" ]
null
null
null
from django.contrib import admin from django.db import models from django.forms.widgets import Textarea, CheckboxSelectMultiple from .widgets import RangeInput from .models import ( Sport, HealthIssue, Label, Session, Activity, SessionHealthMonitoring, DailyMonitoring, DailyHealthMonit...
26.850877
122
0.695524
269
3,061
7.877323
0.260223
0.067485
0.080227
0.092496
0.3563
0.243039
0.243039
0.243039
0.243039
0.243039
0
0.008709
0.174779
3,061
114
123
26.850877
0.830166
0
0
0.313953
0
0
0.081319
0
0
0
0
0
0
1
0
false
0
0.05814
0
0.534884
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
727f6b0e304870ca145de08444f0de9722b6894b
609
py
Python
sample/bookstore/migration.py
gotnotable/albus
875b8ad68a1386ce2f36f43c64fd19ac7d537361
[ "MIT" ]
null
null
null
sample/bookstore/migration.py
gotnotable/albus
875b8ad68a1386ce2f36f43c64fd19ac7d537361
[ "MIT" ]
null
null
null
sample/bookstore/migration.py
gotnotable/albus
875b8ad68a1386ce2f36f43c64fd19ac7d537361
[ "MIT" ]
null
null
null
from albus import fields def step_0001(m): m.create( 'Author', [ ('name', fields.StringField()), ('initials', fields.StringField(size=fields.TINY)), ('rank', fields.IntegerField()), ('birthdate', fields.DateTimeField()), ] ) m.create( ...
21.75
63
0.487685
53
609
5.566038
0.490566
0.172881
0.142373
0.183051
0
0
0
0
0
0
0
0.019753
0.334975
609
27
64
22.555556
0.708642
0
0
0.173913
0
0
0.116585
0
0
0
0
0
0
1
0.086957
false
0
0.043478
0
0.130435
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
728c883d834d993fca2a50d35f55ecfc03a84549
425
py
Python
home/migrations/0011_order_status.py
Vijetha-nrupathunga/courier-service
6c71370e6e9b0911645e81d8d0c8cf0bcd8cddf5
[ "bzip2-1.0.6" ]
null
null
null
home/migrations/0011_order_status.py
Vijetha-nrupathunga/courier-service
6c71370e6e9b0911645e81d8d0c8cf0bcd8cddf5
[ "bzip2-1.0.6" ]
null
null
null
home/migrations/0011_order_status.py
Vijetha-nrupathunga/courier-service
6c71370e6e9b0911645e81d8d0c8cf0bcd8cddf5
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.2.5 on 2019-10-12 13:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0010_order_name'), ] operations = [ migrations.AddField( model_name='order', name='status', fiel...
22.368421
103
0.607059
49
425
5.163265
0.77551
0.071146
0
0
0
0
0
0
0
0
0
0.067524
0.268235
425
18
104
23.611111
0.745981
0.105882
0
0
1
0
0.113757
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
728ebf00f8e06cc97c6c102a90a930e6291c5aad
9,591
py
Python
sabcom/runner.py
blackrhinoabm/sabcom
ec0d9c37e11a8bd49352539f3f16ef322e1b5cf8
[ "MIT" ]
6
2020-05-21T11:42:27.000Z
2020-10-20T03:00:22.000Z
sabcom/runner.py
blackrhinoabm/sabcom
ec0d9c37e11a8bd49352539f3f16ef322e1b5cf8
[ "MIT" ]
2
2020-04-08T17:45:37.000Z
2020-09-22T16:13:27.000Z
sabcom/runner.py
blackrhinoabm/sabcom
ec0d9c37e11a8bd49352539f3f16ef322e1b5cf8
[ "MIT" ]
4
2020-04-10T14:18:34.000Z
2020-10-31T16:18:30.000Z
import click import os import pickle import json import logging import pandas as pd import scipy.stats as stats from sabcom.updater import updater from sabcom.helpers import generate_district_data, what_informality def runner(**kwargs): """ This function is used to update parameters :param kwargs: :...
52.409836
152
0.679491
1,065
9,591
5.946479
0.194366
0.15585
0.072478
0.037897
0.454761
0.370914
0.314859
0.276962
0.260856
0.246013
0
0.004276
0.219685
9,591
182
153
52.697802
0.841929
0.09707
0
0.255639
1
0
0.269985
0.078779
0
0
0
0.005495
0
1
0.007519
false
0
0.067669
0
0.097744
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
7296db579195038020ff6c0c94a69c70bcdc74bd
515
py
Python
models.py
subhdeep/dashboard-timetable
1240445323f6e04e13a85f9f2aac83e28b000c1e
[ "MIT" ]
null
null
null
models.py
subhdeep/dashboard-timetable
1240445323f6e04e13a85f9f2aac83e28b000c1e
[ "MIT" ]
null
null
null
models.py
subhdeep/dashboard-timetable
1240445323f6e04e13a85f9f2aac83e28b000c1e
[ "MIT" ]
null
null
null
from uuid import uuid4 from config import db class Event(db.Model): __tablename__ = 'event' id = db.Column(db.String(32), primary_key=True) username = db.Column(db.String(20)) description = db.Column(db.String(250)) start = db.Column(db.DateTime) end = db.Column(db.DateTime) def __init__...
25.75
58
0.646602
68
515
4.764706
0.411765
0.123457
0.154321
0.148148
0
0
0
0
0
0
0
0.022901
0.236893
515
19
59
27.105263
0.801527
0
0
0
0
0
0.009709
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.666667
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
72a091f49d634a0aa261689f1cafa3ec6c47b55c
329
py
Python
app/app.py
admariner/social-media-profiler
2001167201fc9602fef3070ee9d31f005978bfe8
[ "MIT" ]
null
null
null
app/app.py
admariner/social-media-profiler
2001167201fc9602fef3070ee9d31f005978bfe8
[ "MIT" ]
1
2021-12-15T02:37:32.000Z
2021-12-15T02:37:32.000Z
app/app.py
admariner/social-media-profiler
2001167201fc9602fef3070ee9d31f005978bfe8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """The main app module of the project.""" import sys from PyQt5.QtWidgets import QApplication from app.design.design import Window def run() -> None: """Run GUI that is already connected to the backend""" app = QApplication(sys.argv) gui = Window() gui.show() sys.exit(app....
21.933333
58
0.659574
47
329
4.595745
0.659574
0
0
0
0
0
0
0
0
0
0
0.007605
0.200608
329
14
59
23.5
0.813688
0.325228
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
72a4a1cf9efe91d55566332ea09aa1ef1fe390fd
2,865
py
Python
tests/unit/test_returns.py
lust4life/uplink
44d7dcce1b40029e325c831c9e5683c41081c524
[ "MIT" ]
918
2017-10-20T10:47:40.000Z
2022-03-27T19:10:21.000Z
tests/unit/test_returns.py
lust4life/uplink
44d7dcce1b40029e325c831c9e5683c41081c524
[ "MIT" ]
248
2017-10-20T03:58:20.000Z
2022-03-13T18:39:16.000Z
tests/unit/test_returns.py
lust4life/uplink
44d7dcce1b40029e325c831c9e5683c41081c524
[ "MIT" ]
66
2017-10-21T02:56:34.000Z
2022-02-15T08:27:50.000Z
# Local imports from uplink import returns def test_returns(request_builder): custom = returns(str) request_builder.get_converter.return_value = str request_builder.return_type = returns.ReturnType.with_decorator( None, custom ) custom.modify_request(request_builder) assert request_bui...
34.939024
87
0.736824
342
2,865
5.900585
0.190058
0.187314
0.138751
0.166501
0.708622
0.621903
0.584737
0.526759
0.5
0.430129
0
0.004219
0.172775
2,865
81
88
35.37037
0.847257
0.076091
0
0.435484
0
0
0.020068
0
0
0
0
0
0.209677
1
0.064516
false
0
0.016129
0
0.080645
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
72a729e015597da4848c0cbd215de9023ed58249
2,227
py
Python
rbac/serializers/user_serializer.py
hyyc554/drf_rbac
258743114a5214684d223aff5859b0e2174a9968
[ "MIT" ]
24
2020-01-27T11:57:17.000Z
2022-01-14T05:36:09.000Z
rbac/serializers/user_serializer.py
hyyc554/drf_rbac
258743114a5214684d223aff5859b0e2174a9968
[ "MIT" ]
11
2020-07-08T05:55:26.000Z
2022-01-13T02:12:55.000Z
rbac/serializers/user_serializer.py
hyyc554/drf_rbac
258743114a5214684d223aff5859b0e2174a9968
[ "MIT" ]
9
2020-07-23T10:08:51.000Z
2021-05-12T03:36:34.000Z
# @Time : 2019/1/14 15:11 # @Author : xufqing from rest_framework import serializers from ..models import UserProfile import re class UserListSerializer(serializers.ModelSerializer): ''' 用户列表的序列化 ''' roles = serializers.SerializerMethodField() def get_roles(self, obj): return obj.role...
29.302632
110
0.620117
221
2,227
6.180995
0.343891
0.076135
0.040996
0.073206
0.474378
0.442899
0.418741
0.418741
0.418741
0.418741
0
0.024882
0.24203
2,227
75
111
29.693333
0.78436
0.035923
0
0.533333
0
0.044444
0.157314
0.033573
0
0
0
0
0
1
0.088889
false
0.022222
0.066667
0.022222
0.511111
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
72a918b788eac6818acbfa491049a156759beb3b
540
py
Python
setup.py
shadowgate15/todoist-automation
fc587423f86d7324e66be942cf725031cbde2b9f
[ "MIT" ]
null
null
null
setup.py
shadowgate15/todoist-automation
fc587423f86d7324e66be942cf725031cbde2b9f
[ "MIT" ]
null
null
null
setup.py
shadowgate15/todoist-automation
fc587423f86d7324e66be942cf725031cbde2b9f
[ "MIT" ]
1
2022-03-04T14:26:22.000Z
2022-03-04T14:26:22.000Z
from setuptools import setup setup( name='NextAction', version='0.5', py_modules=['nextaction'], url='https://github.com/nikdoof/NextAction', license='MIT', author='Andrew Williams', author_email='andy@tensixtyone.com', description='A more GTD-like workflow for Todoist. Uses the REST AP...
25.714286
125
0.633333
62
540
5.419355
0.83871
0
0
0
0
0
0
0
0
0
0
0.004843
0.235185
540
20
126
27
0.808717
0
0
0
0
0.052632
0.47963
0.048148
0
0
0
0
0
1
0
true
0
0.052632
0
0.052632
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
72afc08ed76590bf38bb2ac816e5999cd32fee40
368
py
Python
Palabras/invertirpalabra.py
SebaB29/Python
8fe7b375e200d2a629e3ef83a2356002621267a6
[ "MIT" ]
null
null
null
Palabras/invertirpalabra.py
SebaB29/Python
8fe7b375e200d2a629e3ef83a2356002621267a6
[ "MIT" ]
null
null
null
Palabras/invertirpalabra.py
SebaB29/Python
8fe7b375e200d2a629e3ef83a2356002621267a6
[ "MIT" ]
null
null
null
from palabras import palabras def invertir_palabra(palabra): """ -Recibe: una palabra -Devulve: la palabra escrita al reves """ return palabra[::-1] print([palabra[::-1] for palabra in palabras]) # Usando lista por comprensión print(list(map(invertir_palabra, palabras))) print(lis...
24.533333
78
0.671196
45
368
5.444444
0.555556
0.097959
0.097959
0
0
0
0
0
0
0
0
0.010169
0.19837
368
15
79
24.533333
0.820339
0.23913
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
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
72b4d6875f8179bb974c611ba03a1eaa9d3e42f4
14,778
py
Python
Gan/car/revision_computer.py
eranbTAU/Closing-the-Reality-Gap-for-a-Multi-Agent-System-Using-GAN
3df5f8ba1069ce3f16f1ab743da9cbdd3bddd43c
[ "MIT" ]
null
null
null
Gan/car/revision_computer.py
eranbTAU/Closing-the-Reality-Gap-for-a-Multi-Agent-System-Using-GAN
3df5f8ba1069ce3f16f1ab743da9cbdd3bddd43c
[ "MIT" ]
null
null
null
Gan/car/revision_computer.py
eranbTAU/Closing-the-Reality-Gap-for-a-Multi-Agent-System-Using-GAN
3df5f8ba1069ce3f16f1ab743da9cbdd3bddd43c
[ "MIT" ]
1
2022-02-22T11:06:40.000Z
2022-02-22T11:06:40.000Z
import argparse import gc import logging import os import sys import time from collections import defaultdict import re import pickle from torch.optim.lr_scheduler import ReduceLROnPlateau import torch import torch.nn as nn import torch.optim as optim from carnet.data.loader import data_loader from ca...
40.157609
116
0.615307
1,817
14,778
4.735828
0.165658
0.027193
0.051365
0.018594
0.292737
0.243463
0.20337
0.143289
0.12179
0.12179
0
0.019683
0.25741
14,778
368
117
40.157609
0.764443
0.035187
0
0.114379
0
0
0.108291
0.008796
0.013072
0
0
0
0
0
null
null
0
0.055556
null
null
0.003268
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
72b6b97681ba80a52d4389ff47a63975ae8fe857
1,949
py
Python
profiles/banshee/darwin.py
mhutch/bockbuild
0d989e2d0259d17d41a195f8d28b3844a4652e7b
[ "MIT" ]
null
null
null
profiles/banshee/darwin.py
mhutch/bockbuild
0d989e2d0259d17d41a195f8d28b3844a4652e7b
[ "MIT" ]
null
null
null
profiles/banshee/darwin.py
mhutch/bockbuild
0d989e2d0259d17d41a195f8d28b3844a4652e7b
[ "MIT" ]
null
null
null
#!/usr/bin/python -B import os import sys sys.path.append ('../..') from bockbuild.darwinprofile import DarwinProfile from packages import BansheePackages class BansheeDarwinProfile (DarwinProfile, BansheePackages): def __init__ (self): DarwinProfile.__init__ (self) BansheePackages.__init__ (self) self_dir ...
27.450704
78
0.67214
282
1,949
4.514184
0.308511
0.047133
0.062844
0.065986
0.234093
0.153967
0.122545
0
0
0
0
0.028968
0.14982
1,949
70
79
27.842857
0.739288
0.009749
0
0.035714
0
0
0.306376
0.161742
0
0
0
0
0
0
null
null
0
0.107143
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
72bbbfc7e8ea2c3bb7cd364ea27507ecebe05963
8,117
py
Python
avaandmed/api_resources/entities/__init__.py
mihhail-m/avaandmed-py
c64b07db989b9aff4cfa7f4e18efc0c47ae5e219
[ "MIT" ]
null
null
null
avaandmed/api_resources/entities/__init__.py
mihhail-m/avaandmed-py
c64b07db989b9aff4cfa7f4e18efc0c47ae5e219
[ "MIT" ]
5
2022-03-17T15:00:23.000Z
2022-03-26T08:33:19.000Z
avaandmed/api_resources/entities/__init__.py
mihhail-m/avaandmed-py
c64b07db989b9aff4cfa7f4e18efc0c47ae5e219
[ "MIT" ]
null
null
null
from datetime import datetime from typing import Any, Dict, List, Optional from enum import Enum from pydantic import Field from avaandmed.api_resources import ApiResource from avaandmed.api_resources.users.user import User class KeywordEmsCategory(ApiResource): id: int ems_category_id: int keyword_id: i...
23.803519
76
0.688678
864
8,117
6.341435
0.270833
0.096368
0.022997
0.039423
0.162621
0.09582
0.071363
0.060412
0.060412
0.060412
0
0
0.213503
8,117
340
77
23.873529
0.858239
0.139953
0
0.200913
0
0
0.073203
0.022318
0
0
0
0.002941
0
1
0
false
0
0.027397
0
0.977169
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
72bca7177cac43ec4281b571d98718e4533c23a0
832
py
Python
setup.py
svven/summary
1cd7cb9ab89782c729bfd768df0c6d1483131dc3
[ "MIT" ]
12
2015-10-15T13:27:27.000Z
2020-02-22T05:38:33.000Z
setup.py
svven/summary
1cd7cb9ab89782c729bfd768df0c6d1483131dc3
[ "MIT" ]
10
2015-01-09T13:37:06.000Z
2021-12-13T19:45:35.000Z
setup.py
svven/summary
1cd7cb9ab89782c729bfd768df0c6d1483131dc3
[ "MIT" ]
3
2015-12-19T07:42:21.000Z
2020-04-03T14:44:38.000Z
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='summary-extraction', version='0.2', author='Alexandru Stanciu', author_email='alexandru.stanciu@gmail.com', packages=['summary'], include_package_data=True, license='LICENSE.txt', ...
27.733333
73
0.590144
104
832
4.663462
0.596154
0.020619
0.057732
0.070103
0.119588
0.119588
0
0
0
0
0
0.048819
0.236779
832
29
74
28.689655
0.714961
0.094952
0
0
0
0
0.405333
0.036
0
0
0
0
0
1
0
true
0
0.115385
0
0.115385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
72c1d6ece3b568efbfb8dbcfc43888d029b36b99
2,608
py
Python
bot.py
enzosv/telegramStickerBot
71d9279eeb575f9040747f7f365a1c52df8ed064
[ "MIT" ]
null
null
null
bot.py
enzosv/telegramStickerBot
71d9279eeb575f9040747f7f365a1c52df8ed064
[ "MIT" ]
null
null
null
bot.py
enzosv/telegramStickerBot
71d9279eeb575f9040747f7f365a1c52df8ed064
[ "MIT" ]
null
null
null
import time import telepot import json import sys # TOKEN = sys.argv[1] TOKEN = '118865412:AAG8iNbj0NTQxyfSjhhoITNplHNP3_1x1Sg' RUNNING = {} with open('data.json', 'r') as fp: stickerTriggers = json.load(fp) bot = telepot.Bot(TOKEN) BOTNAME = bot.getMe()['username'] def saveJson(data): with open('data.json', '...
37.257143
121
0.639954
348
2,608
4.678161
0.301724
0.070025
0.099509
0.110565
0.257985
0.15172
0.15172
0.116708
0.116708
0.116708
0
0.009809
0.218175
2,608
70
122
37.257143
0.788622
0.017255
0
0.183333
0
0
0.267864
0.017571
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
72c53b1dc80b42d556765df7f310edcc6009ea25
887
py
Python
tests/legacy_comparison/abstract_comparisons.py
rstojnic/arxiv-browse
8847fb8bcd79cc2b162fd3de16db8fba1a1df020
[ "MIT" ]
61
2019-01-10T21:15:00.000Z
2022-02-21T13:22:22.000Z
tests/legacy_comparison/abstract_comparisons.py
rstojnic/arxiv-browse
8847fb8bcd79cc2b162fd3de16db8fba1a1df020
[ "MIT" ]
91
2019-01-14T21:12:06.000Z
2022-03-09T19:52:59.000Z
tests/legacy_comparison/abstract_comparisons.py
rstojnic/arxiv-browse
8847fb8bcd79cc2b162fd3de16db8fba1a1df020
[ "MIT" ]
38
2019-01-10T22:01:30.000Z
2022-03-10T23:07:00.000Z
"""Includes function to compare abstracts.""" from weighted_levenshtein import lev def lev_similarity(aa: str, bb: str) -> float: """ Get a Levenshtein similarity score. :param aa: first string :param bb: second string :return: The similarity of the two strings (0=bad, 1=match): 1- l...
30.586207
72
0.626832
126
887
4.333333
0.484127
0.065934
0.102564
0.03663
0.07326
0.07326
0.07326
0.07326
0
0
0
0.007553
0.253664
887
28
73
31.678571
0.817221
0.404735
0
0
0
0
0.096115
0
0
0
0
0.035714
0
1
0.181818
false
0
0.090909
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
72c7a1d268ce1221b7e2b1bc9e0f659598f0ab8d
2,269
py
Python
src/CryptoPlus/Cipher/RC5.py
koujiandou-mhfg/python-cryptoplus
a5a1f8aecce4ddf476b2d80b586822d9e91eeb7d
[ "MIT" ]
64
2015-01-15T10:41:41.000Z
2022-01-10T23:51:42.000Z
src/CryptoPlus/Cipher/RC5.py
koujiandou-mhfg/python-cryptoplus
a5a1f8aecce4ddf476b2d80b586822d9e91eeb7d
[ "MIT" ]
5
2016-01-05T17:48:22.000Z
2018-02-22T04:32:17.000Z
src/CryptoPlus/Cipher/RC5.py
koujiandou-mhfg/python-cryptoplus
a5a1f8aecce4ddf476b2d80b586822d9e91eeb7d
[ "MIT" ]
53
2015-04-14T00:17:02.000Z
2022-03-12T05:32:05.000Z
from blockcipher import * try: import Crypto.Cipher.RC5 except ImportError: print "Crypto.Cipher.RC5 isn't available. You're probably using the Debian pycrypto version. Install the original pycrypto for RC5." raise def new(key,mode=MODE_ECB,IV=None,counter=None,segment_size=None,rounds=12,word_size=32): ...
38.457627
136
0.644777
298
2,269
4.785235
0.412752
0.050491
0.031557
0.033661
0.079944
0.079944
0.057504
0.057504
0.057504
0
0
0.055876
0.234905
2,269
58
137
39.12069
0.765553
0
0
0
0
0.052632
0.181034
0
0
0
0
0
0
0
null
null
0
0.210526
null
null
0.052632
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
72dadeeb27d0efe1c7086ae182e4d73564dd15d6
2,848
py
Python
examples/crypt.py
jim-easterbrook/guild
50a4629224c55670ac194458c23b482826fc46df
[ "Apache-2.0" ]
null
null
null
examples/crypt.py
jim-easterbrook/guild
50a4629224c55670ac194458c23b482826fc46df
[ "Apache-2.0" ]
null
null
null
examples/crypt.py
jim-easterbrook/guild
50a4629224c55670ac194458c23b482826fc46df
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import random import sys def is_prime(n): if n == 2 or n == 3: return True if n < 2 or n % 2 == 0: return False if n < 9: return True if n % 3 == 0: return False r = int(n ** 0.5) f = 5 while f <= r: if n % f == 0: retu...
20.198582
70
0.598315
443
2,848
3.672686
0.248307
0.054087
0.018439
0.020283
0.220037
0.127843
0.062692
0.030731
0.030731
0
0
0.031343
0.294242
2,848
140
71
20.342857
0.778109
0.054073
0
0.180723
0
0
0.039253
0
0
0
0
0
0
0
null
null
0
0.024096
null
null
0.180723
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
72db57e35214ce7774ebd25bdf35aa4a17d420f1
1,030
py
Python
resources/PyInstaller-3.0/tests/functional/scripts/pyi_load_dll_using_ctypes.py
dvt32/mypymodoro
7d2db639ea828e4db9caa84cd6f747f542ab22d8
[ "MIT" ]
null
null
null
resources/PyInstaller-3.0/tests/functional/scripts/pyi_load_dll_using_ctypes.py
dvt32/mypymodoro
7d2db639ea828e4db9caa84cd6f747f542ab22d8
[ "MIT" ]
null
null
null
resources/PyInstaller-3.0/tests/functional/scripts/pyi_load_dll_using_ctypes.py
dvt32/mypymodoro
7d2db639ea828e4db9caa84cd6f747f542ab22d8
[ "MIT" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2005-2015, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this s...
30.294118
78
0.61165
123
1,030
5.03252
0.626016
0.088853
0.072698
0
0
0
0
0
0
0
0
0.020157
0.13301
1,030
33
79
31.212121
0.673012
0.617476
0
0
0
0
0.190981
0
0
0
0
0
0.083333
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
72e06466e059ac37b52110e5cb1c916bec2ed4ea
478
py
Python
python_basics/Method_ function/emp_of_month.py
alok8765/basic_python_practicse
9bd61f0b03fc1e703a75df39862a24692bb3fdb7
[ "MIT" ]
null
null
null
python_basics/Method_ function/emp_of_month.py
alok8765/basic_python_practicse
9bd61f0b03fc1e703a75df39862a24692bb3fdb7
[ "MIT" ]
null
null
null
python_basics/Method_ function/emp_of_month.py
alok8765/basic_python_practicse
9bd61f0b03fc1e703a75df39862a24692bb3fdb7
[ "MIT" ]
null
null
null
work_hours = [('Abby',100),('Billy',400),('Cassie',800)] def employee_check(work_hours): current_max = 0 # Set some empty value before the loop employee_of_month = '' for employee,hours in work_hours: if hours > current_max: current_max = hours employee_of_month...
28.117647
56
0.631799
60
478
4.766667
0.55
0.125874
0.157343
0.153846
0
0
0
0
0
0
0
0.028986
0.278243
478
17
57
28.117647
0.8
0.133891
0
0
0
0
0.036408
0
0
0
0
0
0
1
0.083333
false
0.083333
0
0
0.166667
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
1
0
0
0
0
0
1
72f259d8958e2c2420fb591b50a89b42889f005c
6,506
py
Python
antevents/adapters/influxdb.py
mpi-sws-rse/antevents-python
5b9226813583141986014fc83f6f74342a5f271e
[ "Apache-2.0" ]
7
2016-09-27T00:21:46.000Z
2017-03-18T20:04:29.000Z
antevents/adapters/influxdb.py
mpi-sws-rse/antevents-python
5b9226813583141986014fc83f6f74342a5f271e
[ "Apache-2.0" ]
null
null
null
antevents/adapters/influxdb.py
mpi-sws-rse/antevents-python
5b9226813583141986014fc83f6f74342a5f271e
[ "Apache-2.0" ]
2
2017-03-16T21:47:43.000Z
2020-10-20T22:58:03.000Z
import json import datetime from influxdb import InfluxDBClient, SeriesHelper from collections import namedtuple from antevents.base import Publisher, DefaultSubscriber # class BulkUploader(SeriesHelper): # def __new__(self, client, msg_format, bulk_size=10): # self.client = client # self.msg_form...
40.918239
127
0.563634
719
6,506
4.916551
0.22114
0.071287
0.033098
0.032249
0.491938
0.44017
0.44017
0.44017
0.416973
0.416973
0
0.008828
0.355825
6,506
158
128
41.177215
0.834646
0.270673
0
0.362745
0
0
0.059412
0
0
0
0
0
0
1
0.098039
false
0.068627
0.04902
0.029412
0.215686
0.068627
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
72f5ad8c7f7559a54534e489ae4d4e41e25e1fac
5,908
py
Python
src/components/tab1.py
ubco-mds-2021-labs/dashboard1-group-a
46adba645fa37ef1577a90b64df4671511211175
[ "MIT" ]
1
2022-03-11T21:32:16.000Z
2022-03-11T21:32:16.000Z
src/components/tab1.py
ubco-mds-2021-labs/dashboard1-group-a
46adba645fa37ef1577a90b64df4671511211175
[ "MIT" ]
30
2022-03-03T01:52:29.000Z
2022-03-25T19:48:16.000Z
src/components/tab1.py
ubco-mds-2021-labs/dashboard1-group-a
46adba645fa37ef1577a90b64df4671511211175
[ "MIT" ]
null
null
null
from dash import dcc from dash import Input, Output, html import dash_bootstrap_components as dbc from data.data import temperature_df_full import altair as alt from ..app import app from .style import plot_style_tab1,whole_tab_style,label_style_active,label_style_init alt.data_transformers.disable_max_rows() def plo...
33.568182
160
0.590217
698
5,908
4.810888
0.204871
0.065813
0.055688
0.037522
0.720071
0.694163
0.688207
0.688207
0.688207
0.688207
0
0.019962
0.296209
5,908
175
161
33.76
0.787638
0.036899
0
0.541401
0
0
0.210165
0
0
0
0
0
0
1
0.019108
false
0
0.044586
0
0.095541
0
0
0
0
null
0
0
0
0
0
0
0
0
1
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
f4008c07d142e55c5e0c9ec0d58c89d6c2dac5fa
1,253
py
Python
core/comment/viewsets.py
PacktPublishing/Full-stack-Django-and-React
17dedbd72533a34c152a1b76007a422990bd76dc
[ "MIT" ]
5
2022-01-06T01:52:25.000Z
2022-03-29T20:43:59.000Z
core/comment/viewsets.py
PacktPublishing/Full-stack-Django-and-React
17dedbd72533a34c152a1b76007a422990bd76dc
[ "MIT" ]
null
null
null
core/comment/viewsets.py
PacktPublishing/Full-stack-Django-and-React
17dedbd72533a34c152a1b76007a422990bd76dc
[ "MIT" ]
2
2022-02-06T13:50:54.000Z
2022-03-19T19:09:21.000Z
from django.http.response import Http404 from rest_framework.response import Response from rest_framework import status from core.abstract.viewsets import AbstractViewSet from core.comment.models import Comment from core.comment.serializers import CommentSerializer from core.auth.permissions import UserPermission c...
29.833333
72
0.725459
151
1,253
5.834437
0.410596
0.036322
0.038593
0
0
0
0
0
0
0
0
0.008893
0.192338
1,253
41
73
30.560976
0.86166
0
0
0
0
0
0.019984
0
0
0
0
0
0
1
0.107143
false
0
0.25
0
0.678571
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
f4018cf15c935aca3b3304865e7f2c0ea03aa1cc
630
py
Python
random_with_seed.py
patrikfors/multiplikation
d70dd7ac90798e6cdbdf9ec15058c2eef209a24f
[ "MIT" ]
null
null
null
random_with_seed.py
patrikfors/multiplikation
d70dd7ac90798e6cdbdf9ec15058c2eef209a24f
[ "MIT" ]
1
2017-05-11T14:38:43.000Z
2017-05-11T14:47:36.000Z
random_with_seed.py
patrikfors/multiplikation
d70dd7ac90798e6cdbdf9ec15058c2eef209a24f
[ "MIT" ]
null
null
null
"""Provides a Random wrapper that has a seed access method.""" from random import Random class RandomWithSeed(Random): """Stupid class just to be able to get the seed value, which doesnt work anyway""" def __init__(self, x): Random.__init__(self, x) def seed(self, a=None, version=2): self...
27.391304
86
0.657143
89
630
4.404494
0.52809
0.071429
0.045918
0
0
0
0
0
0
0
0
0.020619
0.230159
630
22
87
28.636364
0.787629
0.274603
0
0
0
0
0.056689
0
0
0
0
0
0.076923
1
0.230769
false
0
0.076923
0
0.461538
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f402d274763a8f1b12d3a918baa50ec44da2100c
1,865
py
Python
convert2records.py
Mistariano/self-attention-gan
29cd250029a3e5317927dbe3c1670a0516f55014
[ "Apache-2.0" ]
null
null
null
convert2records.py
Mistariano/self-attention-gan
29cd250029a3e5317927dbe3c1670a0516f55014
[ "Apache-2.0" ]
null
null
null
convert2records.py
Mistariano/self-attention-gan
29cd250029a3e5317927dbe3c1670a0516f55014
[ "Apache-2.0" ]
null
null
null
from scipy.misc import imread from random import shuffle import time import tensorflow as tf from glob import glob from utils import get_image, colorize # this is based on tensorflow tutorial code # https://github.com/tensorflow/tensorflow/blob/r0.8/tensorflow/examples/how_tos/reading_data/convert_to_records.py # TOD...
28.692308
115
0.663807
251
1,865
4.772908
0.505976
0.035058
0.03005
0.033389
0.053422
0.053422
0
0
0
0
0
0.021424
0.224129
1,865
64
116
29.140625
0.806496
0.212869
0
0.04878
0
0
0.077344
0.027379
0
0
0
0.015625
0.04878
1
0.073171
false
0
0.146341
0.04878
0.268293
0.04878
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
f4072b241a00d722779f2529e1e12f01f98ea036
6,535
py
Python
native/tensorflow/tensorflow/lite/testing/toco_convert.py
EfficientAI/efficient_cv
e308f229e4d99da86ad56f87f3a78b2c81f27ca5
[ "MIT" ]
27
2020-02-29T04:13:22.000Z
2022-02-07T21:54:50.000Z
tensorflow/lite/testing/toco_convert.py
top-on/tensorflow
6efce9a74d4ba2ba2182d92ac1e4f144b5d755d2
[ "Apache-2.0" ]
5
2020-06-01T18:50:38.000Z
2021-07-16T07:13:52.000Z
tensorflow/lite/testing/toco_convert.py
top-on/tensorflow
6efce9a74d4ba2ba2182d92ac1e4f144b5d755d2
[ "Apache-2.0" ]
10
2020-12-15T03:55:24.000Z
2021-12-17T23:14:11.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.342857
80
0.677888
864
6,535
4.861111
0.284722
0.060238
0.068571
0.034286
0.166667
0.137143
0.062857
0.041905
0.023333
0.023333
0
0.005867
0.217598
6,535
174
81
37.557471
0.815568
0.267789
0
0.056604
0
0
0.110261
0.048863
0
0
0
0.011494
0
1
0.037736
false
0
0.084906
0
0.169811
0.009434
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
f40d0ccb421cae8cf999ca79e1b93ad6b660ee50
18,169
py
Python
server/models.py
mofengboy/Chain-of-all-beings
b7f9750391a702b83728118f5db533ecb4d38bf0
[ "Apache-2.0" ]
2
2022-03-26T15:20:40.000Z
2022-03-26T15:24:02.000Z
server/models.py
mofengboy/Chain-of-all-beings
b7f9750391a702b83728118f5db533ecb4d38bf0
[ "Apache-2.0" ]
null
null
null
server/models.py
mofengboy/Chain-of-all-beings
b7f9750391a702b83728118f5db533ecb4d38bf0
[ "Apache-2.0" ]
1
2022-03-26T15:20:45.000Z
2022-03-26T15:20:45.000Z
import math import time from server.utils.captcha import Captcha from server.utils.ciphersuites import CipherSuites from server.utils.core_sdk import DBOfTemp, DBOfBlock, VoteOfMainNode from server.database import DB import hashlib Valid_Time = 1800 # 30分钟 # 权限验证 class Auth: def __init__(self, db: DB): ...
39.844298
189
0.66729
1,883
18,169
6.15401
0.152416
0.070072
0.022782
0.00932
0.460822
0.411805
0.330342
0.289265
0.25233
0.232137
0
0.003594
0.249656
18,169
455
190
39.931868
0.846402
0.044912
0
0.347267
0
0
0.025862
0.001215
0
0
0
0
0
1
0.205788
false
0.012862
0.022508
0.045016
0.472669
0.009646
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
f4147fc29f5cd8fa8dbfc76aec6d3549ad8957a0
239
py
Python
listrecentchats.py
mirkonasato/buildchatbot
f39d589cf85cf49946dd22f18d5012c740c5b1e8
[ "BSD-2-Clause-FreeBSD" ]
13
2015-02-22T17:42:03.000Z
2020-03-02T09:10:48.000Z
listrecentchats.py
mirkonasato/buildchatbot
f39d589cf85cf49946dd22f18d5012c740c5b1e8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
listrecentchats.py
mirkonasato/buildchatbot
f39d589cf85cf49946dd22f18d5012c740c5b1e8
[ "BSD-2-Clause-FreeBSD" ]
8
2015-08-30T17:48:59.000Z
2018-10-18T09:35:05.000Z
import platform from Skype4Py import Skype if platform.system() == 'Windows': skype = Skype() else: skype = Skype(Transport='x11') skype.Attach() for chat in skype.RecentChats: print '"%s" -> "%s"' % (chat.FriendlyName, chat.Name)
19.916667
55
0.682008
31
239
5.258065
0.645161
0.122699
0
0
0
0
0
0
0
0
0
0.014851
0.154812
239
11
56
21.727273
0.792079
0
0
0
0
0
0.092437
0
0
0
0
0
0
0
null
null
0
0.222222
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f41cd7a94f43e31ab41384850aab21d36f1fa801
1,525
py
Python
blog/migrations/0027_consult.py
Min-Hyuk98/boiler_web
c126350742f95d54f74ebba3b441157eaa061dc4
[ "MIT" ]
null
null
null
blog/migrations/0027_consult.py
Min-Hyuk98/boiler_web
c126350742f95d54f74ebba3b441157eaa061dc4
[ "MIT" ]
9
2020-06-06T01:24:20.000Z
2022-02-10T14:03:32.000Z
blog/migrations/0027_consult.py
Min-Hyuk98/boiler_web
c126350742f95d54f74ebba3b441157eaa061dc4
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2020-02-23 05:52 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0026_delete_consult'), ] operations = [ migrations.CreateModel( name='Consult', fields=[ ...
46.212121
114
0.598689
171
1,525
5.192982
0.345029
0.161036
0.112613
0.135135
0.548423
0.532658
0.495496
0.367117
0.211712
0
0
0.049351
0.242623
1,525
32
115
47.65625
0.719481
0.029508
0
0
1
0
0.075778
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.192308
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
f41d3d110121cd38481b2a9205b2d18ba9fc263f
348
py
Python
contrib/HDF5Tools/setup.py
xylar/cdat
8a5080cb18febfde365efc96147e25f51494a2bf
[ "BSD-3-Clause" ]
62
2018-03-30T15:46:56.000Z
2021-12-08T23:30:24.000Z
contrib/HDF5Tools/setup.py
xylar/cdat
8a5080cb18febfde365efc96147e25f51494a2bf
[ "BSD-3-Clause" ]
114
2018-03-21T01:12:43.000Z
2021-07-05T12:29:54.000Z
contrib/HDF5Tools/setup.py
CDAT/uvcdat
5133560c0c049b5c93ee321ba0af494253b44f91
[ "BSD-3-Clause" ]
14
2018-06-06T02:42:47.000Z
2021-11-26T03:27:00.000Z
from distutils.core import setup setup (name = "HDF5Tools", author="Charles Doutriaux", version='1.0', description = "Utilities for HDF5 manipulation, requires h5dump to be present on system", url = "http://cdat.sourceforge.net", packages = ['HDF5Tools'], package_dir = {'HDF5T...
29
96
0.614943
37
348
5.756757
0.918919
0
0
0
0
0
0
0
0
0
0
0.027027
0.255747
348
11
97
31.636364
0.795367
0
0
0
0
0
0.428161
0
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
f42189a223a958fd568a62cd4fed4ce4e877b01c
4,883
py
Python
Scripts/pymarc/apply_headers.py
bigscience/bigscience
8421a35a42ed24e577cecb95fbcd98db369385d8
[ "MIT" ]
3
2021-10-03T01:32:05.000Z
2021-11-29T06:08:11.000Z
Scripts/pymarc/apply_headers.py
bigscience/bigscience
8421a35a42ed24e577cecb95fbcd98db369385d8
[ "MIT" ]
null
null
null
Scripts/pymarc/apply_headers.py
bigscience/bigscience
8421a35a42ed24e577cecb95fbcd98db369385d8
[ "MIT" ]
1
2021-11-28T22:23:57.000Z
2021-11-28T22:23:57.000Z
#!/usr/bin/env python """Apply standard license headers and generate contributor list. Rather than trying to maintain file-level lists of contributors and copyright dates, apply a standard license header that points to the LICENSE file for the licensing details. And then generate the LICENSE file with a complete list...
39.699187
89
0.688716
663
4,883
5.021116
0.363499
0.033043
0.025233
0.019225
0.294082
0.243617
0.210273
0.210273
0.187444
0.187444
0
0.006306
0.220561
4,883
122
90
40.02459
0.868366
0.232234
0
0.116883
1
0.012987
0.491115
0
0
0
0
0
0
1
0.051948
false
0
0.038961
0
0.103896
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
f424d1264384ec83982a52da64b987d168fa4ba4
2,819
py
Python
systems/movement.py
saidwho12/JulyGame
064654aaaf516931a074ce4d5021f2ecdbe621e0
[ "MIT" ]
null
null
null
systems/movement.py
saidwho12/JulyGame
064654aaaf516931a074ce4d5021f2ecdbe621e0
[ "MIT" ]
null
null
null
systems/movement.py
saidwho12/JulyGame
064654aaaf516931a074ce4d5021f2ecdbe621e0
[ "MIT" ]
null
null
null
import math from systems.system import System from scripts.callbacks import * from scripts.components import * from scripts import character from joystick import * class Movement(System): def __init__(self, engine): System.__init__(self, engine) self.callbacks = {JOY_STICK: self.on_joystick, ...
31.322222
76
0.384179
311
2,819
3.37299
0.22508
0.038132
0.015253
0.028599
0.142993
0.142993
0.13346
0.112488
0.083889
0.083889
0
0.012782
0.528201
2,819
89
77
31.674157
0.77594
0
0
0.101449
0
0
0.005676
0
0
0
0
0
0
1
0.057971
false
0
0.086957
0
0.15942
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1