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
2ec2995f108d272af9ac037584f7345c85dce882
1,516
py
Python
vpn_server/accounts_server/accounts/views.py
kekeho/vpn4friends
c469a632b15b2f8ec93fd6bb3839b7686841b83a
[ "MIT" ]
10
2019-04-14T12:31:42.000Z
2019-04-15T06:33:05.000Z
vpn_server/accounts_server/accounts/views.py
kekeho/vpn4friends
c469a632b15b2f8ec93fd6bb3839b7686841b83a
[ "MIT" ]
9
2019-12-04T22:39:41.000Z
2022-02-10T09:55:02.000Z
vpn_server/accounts_server/accounts/views.py
kekeho/vpn4friends
c469a632b15b2f8ec93fd6bb3839b7686841b83a
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.shortcuts import HttpResponse from django.core.mail import EmailMessage import subprocess import os PROFILES_DIR = '/code/profiles' def index(request): return render(request, 'index.html') def profile_create(request): if request.method != 'POST': ...
31.583333
114
0.672164
188
1,516
5.31383
0.457447
0.044044
0.036036
0.051051
0.089089
0.068068
0.068068
0.068068
0
0
0
0.003273
0.193931
1,516
47
115
32.255319
0.814239
0.026385
0
0
0
0
0.197011
0.055027
0
0
0
0
0
1
0.09375
false
0.0625
0.15625
0.0625
0.375
0.03125
0
0
0
null
0
0
0
0
0
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
2ec2c19a187f653438f9e1dd5d0899ca5f849f6b
2,922
py
Python
pretraining/preprocessing.py
Artia-Inspirenet/module-2
7cf1d74f13d23a11ce202436d88b283d7ef1e109
[ "Apache-2.0" ]
null
null
null
pretraining/preprocessing.py
Artia-Inspirenet/module-2
7cf1d74f13d23a11ce202436d88b283d7ef1e109
[ "Apache-2.0" ]
null
null
null
pretraining/preprocessing.py
Artia-Inspirenet/module-2
7cf1d74f13d23a11ce202436d88b283d7ef1e109
[ "Apache-2.0" ]
null
null
null
import sys import os import cv2 import numpy as np from matplotlib import pyplot as plt import hed curdir = os.path.abspath(os.path.curdir) sys.path.append(os.path.join(os.path.dirname(curdir), 'tf_pose')) from pycocotools.coco import COCO dataset_path = '/home/artia/prj/datasets/coco' coco = COCO(os.path.join(dataset...
36.525
110
0.718686
452
2,922
4.511062
0.365044
0.032369
0.024522
0.031388
0.148112
0.105934
0.105934
0.076508
0.049044
0
0
0.035455
0.150582
2,922
79
111
36.987342
0.78606
0.21629
0
0
0
0
0.142418
0.089231
0
0
0
0
0
1
0
false
0
0.127273
0
0.127273
0.036364
0
0
0
null
0
0
0
0
0
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
1
0
2ec499bb950023d24ccdaccc92a4dd5817fc95b5
174
py
Python
standard_lib/merge_arbitrary_number_of_dicts.py
DahlitzFlorian/python-snippets
212f63f820b6f5842f74913ed08da18d41dfe7a4
[ "MIT" ]
29
2019-03-25T09:35:12.000Z
2022-01-08T22:09:03.000Z
standard_lib/merge_arbitrary_number_of_dicts.py
DahlitzFlorian/python-snippets
212f63f820b6f5842f74913ed08da18d41dfe7a4
[ "MIT" ]
null
null
null
standard_lib/merge_arbitrary_number_of_dicts.py
DahlitzFlorian/python-snippets
212f63f820b6f5842f74913ed08da18d41dfe7a4
[ "MIT" ]
4
2020-05-19T21:18:12.000Z
2021-05-18T12:49:21.000Z
dict1 = {"a": 1, "b": 2} dict2 = {"b": 3, "c": 4, 3: 9} dict3 = {"a": 2} dict4 = {"d": 8, "e": 1} print("Result of merging dict 1-4:", {**dict1, **dict2, **dict3, **dict4})
24.857143
74
0.471264
31
174
2.645161
0.645161
0
0
0
0
0
0
0
0
0
0
0.135714
0.195402
174
6
75
29
0.45
0
0
0
0
0
0.195402
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
2ec532c0146facd913a1b49703627fa105784fd7
1,742
py
Python
Badger/private/output/MergeFile.py
zhangxt-ihep/IHEPDIRAC
fb53500a998adc43ff0c65c02caf492da2965de5
[ "MIT" ]
null
null
null
Badger/private/output/MergeFile.py
zhangxt-ihep/IHEPDIRAC
fb53500a998adc43ff0c65c02caf492da2965de5
[ "MIT" ]
1
2021-03-04T08:48:38.000Z
2021-03-04T08:48:38.000Z
Badger/private/output/MergeFile.py
zhangxt-ihep/IHEPDIRAC
fb53500a998adc43ff0c65c02caf492da2965de5
[ "MIT" ]
2
2020-08-26T06:36:51.000Z
2021-03-04T08:08:34.000Z
import os import time import subprocess from DIRAC import gLogger class MergeFile(object): def __init__(self): self._directlyRead = False self._localValidation = True def merge(self, fileList, outputDir, mergeName, mergeExt, mergeMaxSize, mergeCallback): allFileSize = self.__getAllFileSize(fileList)...
27.650794
115
0.644087
201
1,742
5.507463
0.40796
0.03252
0.030714
0
0
0
0
0
0
0
0
0.007692
0.253731
1,742
62
116
28.096774
0.843846
0
0
0.142857
0
0
0.075201
0
0
0
0
0
0
0
null
null
0
0.081633
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
2ec5bb2ae4b37f160ab9e0941f0b6024ab25a311
5,727
py
Python
dojo/finding_group/views.py
alles-klar/django-DefectDojo
83630437f7259fdbe633ac21cf5715685ffa7eab
[ "BSD-3-Clause" ]
null
null
null
dojo/finding_group/views.py
alles-klar/django-DefectDojo
83630437f7259fdbe633ac21cf5715685ffa7eab
[ "BSD-3-Clause" ]
48
2021-04-14T13:02:43.000Z
2021-07-06T03:08:36.000Z
dojo/finding_group/views.py
Hijerboa/django-DefectDojo
3aea3bc3406f860c0842b0bf8800efe2c86bf81b
[ "BSD-3-Clause" ]
null
null
null
# # findings from dojo.utils import Product_Tab from dojo.forms import DeleteFindingGroupForm from dojo.notifications.helper import create_notification from django.contrib import messages from django.contrib.admin.utils import NestedObjects from django.db.utils import DEFAULT_DB_ALIAS from django.http.response import ...
41.201439
165
0.640475
680
5,727
5.214706
0.263235
0.111675
0.035533
0.049351
0.390863
0.35674
0.258601
0.237451
0.187253
0.135928
0
0.005004
0.267156
5,727
138
166
41.5
0.839886
0.057796
0
0.421053
0
0
0.184113
0.015961
0
0
0
0
0
1
0.04386
false
0
0.122807
0
0.245614
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
0
0
1
0
2ec603a6f9e4717583739386a5137cf37166725f
899
py
Python
yt/data_objects/tests/test_time_series.py
cevans216/yt
c19c3c615b996c8a6e418362ffea9041a616d673
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/data_objects/tests/test_time_series.py
cevans216/yt
c19c3c615b996c8a6e418362ffea9041a616d673
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/data_objects/tests/test_time_series.py
cevans216/yt
c19c3c615b996c8a6e418362ffea9041a616d673
[ "BSD-3-Clause-Clear" ]
null
null
null
import os import tempfile from pathlib import Path from yt.data_objects.time_series import get_filenames_from_glob_pattern from yt.testing import assert_raises def test_pattern_expansion(): file_list = ["fake_data_file_{}".format(str(i).zfill(4)) for i in range(10)] with tempfile.TemporaryDirectory() as tmp...
32.107143
80
0.719689
124
899
4.919355
0.354839
0.078689
0.104918
0.131148
0.495082
0.22623
0.114754
0.114754
0
0
0
0.00684
0.186874
899
27
81
33.296296
0.827633
0
0
0.210526
0
0
0.054505
0
0
0
0
0
0.210526
1
0.105263
false
0
0.263158
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ec66dedba0a3ea331f1648a84344fc949e5d2d8
1,561
py
Python
convolut/model/infer_manager.py
convolut/convolut
e7168ace62f70f9df084a652a2b8fa70a6902e55
[ "Apache-2.0" ]
9
2020-01-07T06:05:58.000Z
2020-07-03T12:24:31.000Z
convolut/model/infer_manager.py
convolut/convolut
e7168ace62f70f9df084a652a2b8fa70a6902e55
[ "Apache-2.0" ]
null
null
null
convolut/model/infer_manager.py
convolut/convolut
e7168ace62f70f9df084a652a2b8fa70a6902e55
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Any, Callable, Optional import torch from decouple import Module from torch import nn from .events import ( ModelForwardStartEvent, ModelForwardEndEvent, ModelInitEvent) from ..loader import LoaderProcessBatchStartEvent from ..runner import RunnerStartEvent class InferManager(Module): ...
30.607843
83
0.659193
165
1,561
5.981818
0.30303
0.072948
0.026342
0.046606
0
0
0
0
0
0
0
0
0.25048
1,561
50
84
31.22
0.84359
0
0
0
0
0
0.003203
0
0
0
0
0
0
1
0.105263
false
0
0.184211
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ec6e351dbc729dce4e6093ba50a29cd08481843
1,757
py
Python
src/mainLogging.py
madsmcmillan/banner
3af13f9f98f82a76a35fa0710b2d91e8f5700f68
[ "MIT" ]
1
2018-02-16T00:07:53.000Z
2018-02-16T00:07:53.000Z
src/mainLogging.py
npeirson/banner
111fab25186218616154427aa89cb760da27856f
[ "MIT" ]
null
null
null
src/mainLogging.py
npeirson/banner
111fab25186218616154427aa89cb760da27856f
[ "MIT" ]
1
2018-09-13T03:07:29.000Z
2018-09-13T03:07:29.000Z
############################################################################## ## Project Banner: Sensor Data Logging ## Created: 07-11-2016 by Madeline McMillan and Nate Peirson ## Texas A&M University, Department of Aerospace Engineering ## High Altitude Balloon Club ## Sensor data points are taken by this script ...
45.051282
269
0.659078
225
1,757
5.102222
0.533333
0.031359
0.038328
0.027875
0
0
0
0
0
0
0
0.011765
0.129198
1,757
38
270
46.236842
0.738562
0.326693
0
0
0
0.05
0.247269
0.050645
0
0
0
0
0
1
0
false
0
0.45
0
0.45
0.1
0
0
0
null
0
0
0
0
0
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
2ec8dec92401e9edf634f58ca9898bb731b42c37
1,064
py
Python
send-sms.py
ssb22/wm6-utils
f50a7ab9d8af0ec66d8c0ef0a1940a0f0aa47110
[ "Unlicense" ]
null
null
null
send-sms.py
ssb22/wm6-utils
f50a7ab9d8af0ec66d8c0ef0a1940a0f0aa47110
[ "Unlicense" ]
null
null
null
send-sms.py
ssb22/wm6-utils
f50a7ab9d8af0ec66d8c0ef0a1940a0f0aa47110
[ "Unlicense" ]
null
null
null
# Send SMS message on WM6 phone from Python 2 # Silas S. Brown - public domain import ctypes import ctypes.wintypes as wintypes def send_SMS_message(number, unicode_text, confirm_delivery=True): print "Sending to "+number+"..." handle = wintypes.DWORD() ret = ctypes.cdll.sms.SmsOpen(u"Microsoft Text SMS Protocol...
39.407407
66
0.706767
160
1,064
4.6125
0.425
0.02168
0.02439
0.02168
0.044715
0.009485
0
0
0
0
0
0.029736
0.146617
1,064
26
67
40.923077
0.78304
0.091165
0
0
0
0.043478
0.148494
0.022845
0
0
0
0
0
0
null
null
0
0.086957
null
null
0.130435
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2ec8fa8c17f427ed5b596ab0b26621b33bf8f593
3,861
py
Python
temp_model.py
MashaIO/dlmladv
5b29980fe747c9930d00809e744f7ce7d14361bf
[ "MIT" ]
null
null
null
temp_model.py
MashaIO/dlmladv
5b29980fe747c9930d00809e744f7ce7d14361bf
[ "MIT" ]
null
null
null
temp_model.py
MashaIO/dlmladv
5b29980fe747c9930d00809e744f7ce7d14361bf
[ "MIT" ]
null
null
null
#coding=utf-8 from __future__ import print_function try: import numpy as np except: pass try: from hyperopt import Trials, STATUS_OK, tpe except: pass try: from keras.datasets import mnist except: pass try: from keras.layers.core import Dense, Dropout, Activation except: pass try: ...
23.833333
83
0.668998
526
3,861
4.785171
0.325095
0.063568
0.072308
0.094557
0.363131
0.328168
0.304331
0.304331
0.304331
0.304331
0
0.023502
0.21756
3,861
161
84
23.981366
0.809666
0.160321
0
0.607143
0
0
0.111801
0.007846
0
0
0
0
0
1
0.017857
false
0.142857
0.169643
0.008929
0.205357
0.026786
0
0
0
null
0
0
0
0
0
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
2ecac107d81b614bc0d2dcd0fc9f423d25ba08b6
4,313
py
Python
hard/tools/bom_html_with_advanced_grouping.py
agustinBassi/juegoSimon
8ada5b5fcc456dcffcc0cbb1a93fbc4754572007
[ "BSD-2-Clause" ]
null
null
null
hard/tools/bom_html_with_advanced_grouping.py
agustinBassi/juegoSimon
8ada5b5fcc456dcffcc0cbb1a93fbc4754572007
[ "BSD-2-Clause" ]
null
null
null
hard/tools/bom_html_with_advanced_grouping.py
agustinBassi/juegoSimon
8ada5b5fcc456dcffcc0cbb1a93fbc4754572007
[ "BSD-2-Clause" ]
null
null
null
# # Example python script to generate a BOM from a KiCad generic netlist # # Example: Sorted and Grouped HTML BOM with advanced grouping # """ @package Generate a HTML BOM list. Components are sorted and grouped by value Fields are (if exist) Ref, Quantity, Value, Part, Footprint, Description, Vend...
33.176923
79
0.646882
585
4,313
4.733333
0.386325
0.023835
0.032503
0.034308
0.055255
0.026002
0.026002
0
0
0
0
0.006379
0.200325
4,313
129
80
33.434109
0.796463
0.371203
0
0.112676
1
0.028169
0.359452
0.037277
0.042254
0
0
0
0
1
0.014085
false
0
0.042254
0
0.070423
0.084507
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
2ecb0816be05abed47d0b45283c0a0ba32a21fef
7,908
py
Python
line_extract/model_v3.py
hoslo/ocr
4f78ae7013beb2cab8fb9391ba25ba5e6e78967c
[ "Apache-2.0" ]
4
2019-05-27T10:23:55.000Z
2020-01-19T10:03:14.000Z
line_extract/model_v3.py
dun933/ocr
4f78ae7013beb2cab8fb9391ba25ba5e6e78967c
[ "Apache-2.0" ]
null
null
null
line_extract/model_v3.py
dun933/ocr
4f78ae7013beb2cab8fb9391ba25ba5e6e78967c
[ "Apache-2.0" ]
3
2019-08-16T18:24:02.000Z
2020-05-15T06:35:45.000Z
import os from keras.models import * from keras.layers import * from keras.optimizers import Adam import tensorflow as tf import keras import itertools import numpy as np from keras.callbacks import Callback from sklearn.metrics import confusion_matrix, f1_score, precision_score, recall_score import tensorflow as tf fr...
45.976744
113
0.68083
1,068
7,908
4.882959
0.171348
0.06443
0.092617
0.110259
0.582742
0.461745
0.452157
0.439885
0.420901
0.378523
0
0.054757
0.173242
7,908
172
114
45.976744
0.742888
0.215984
0
0.108108
0
0
0.065378
0
0
0
0
0
0
1
0.081081
false
0
0.108108
0.009009
0.27027
0.009009
0
0
0
null
0
0
0
0
0
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
1
0
2ecbc23da4493780a4b43db3b26245823e15d32e
5,925
py
Python
bsm/paradag/__init__.py
bsmsoft/bsm
e45ec5442de39e5f948023cd5b4c6181073cf9a2
[ "MIT" ]
3
2019-06-12T17:19:12.000Z
2022-01-07T02:10:06.000Z
bsm/paradag/__init__.py
bsmsoft/bsm
e45ec5442de39e5f948023cd5b4c6181073cf9a2
[ "MIT" ]
null
null
null
bsm/paradag/__init__.py
bsmsoft/bsm
e45ec5442de39e5f948023cd5b4c6181073cf9a2
[ "MIT" ]
null
null
null
''' This package comes from https://github.com/xianghuzhao/paradag It can also be installed by "pip install paradag" ''' import random class DagVertexNotFoundError(Exception): pass class DagEdgeNotFoundError(Exception): pass class DagCycleError(Exception): pass class DagData(object): def __init__...
27.430556
102
0.649451
743
5,925
4.889637
0.158816
0.018993
0.019818
0.02202
0.316818
0.224883
0.138178
0.069915
0.069915
0.033031
0
0.002266
0.25519
5,925
215
103
27.55814
0.820983
0.042363
0
0.217687
0
0
0.018711
0
0
0
0
0.004651
0
1
0.244898
false
0.054422
0.006803
0.102041
0.489796
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
1
0
1
0
0
0
3
2eccbc156b4505de0db85d95b51443c5f217b8c1
33,547
py
Python
pensa/comparison/statespecific.py
NeilJ-Thomson/pensa
f2cc586ad8c4b60177051fc9a5d2da087ac1b6fb
[ "MIT" ]
55
2020-11-18T07:03:46.000Z
2022-03-29T02:47:10.000Z
pensa/comparison/statespecific.py
NeilJ-Thomson/pensa
f2cc586ad8c4b60177051fc9a5d2da087ac1b6fb
[ "MIT" ]
11
2020-11-18T16:43:43.000Z
2022-02-22T20:02:22.000Z
pensa/comparison/statespecific.py
NeilJ-Thomson/pensa
f2cc586ad8c4b60177051fc9a5d2da087ac1b6fb
[ "MIT" ]
11
2020-11-19T04:34:36.000Z
2022-03-01T23:48:57.000Z
import numpy as np from tqdm import tqdm from pensa.features import * from pensa.statesinfo import * # -- Functions to calculate SSI statistics across paired ensembles -- def ssi_ensemble_analysis(features_a, features_b, all_data_a, all_data_b, torsions=None, pocket_occupancy=None, pbc=True, ...
44.551129
150
0.590455
4,391
33,547
4.17422
0.057846
0.025097
0.023078
0.014731
0.904741
0.885755
0.876862
0.854493
0.831251
0.821267
0
0.012654
0.335678
33,547
752
151
44.610372
0.809791
0.276686
0
0.796392
0
0
0.045996
0
0
0
0
0
0.023196
1
0.012887
false
0
0.010309
0
0.036082
0.048969
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
2ecdb4a48fe7a624c03288fdd20c3df4771fcc1e
16,582
py
Python
test/python/rest/test_toolkits.py
ddebrunner/streamsx.topology
5006453e915ae3a7945585f63f2082610a824023
[ "Apache-2.0" ]
null
null
null
test/python/rest/test_toolkits.py
ddebrunner/streamsx.topology
5006453e915ae3a7945585f63f2082610a824023
[ "Apache-2.0" ]
null
null
null
test/python/rest/test_toolkits.py
ddebrunner/streamsx.topology
5006453e915ae3a7945585f63f2082610a824023
[ "Apache-2.0" ]
null
null
null
import os import logging import time import unittest import urllib.parse import xml.etree.ElementTree as ElementTree from streamsx.topology.tester import Tester from streamsx.topology.context import ConfigParams, JobConfig from streamsx.build import BuildService from streamsx.rest_primitives import * logger = loggin...
40.842365
126
0.641298
2,048
16,582
5.030273
0.162109
0.05232
0.039119
0.02582
0.435255
0.379732
0.331198
0.305475
0.292273
0.2682
0
0.00982
0.28151
16,582
405
127
40.94321
0.854877
0.239175
0
0.308017
0
0
0.05301
0.006956
0
0
0
0
0.295359
1
0.080169
false
0.008439
0.042194
0.004219
0.189873
0.004219
0
0
0
null
0
0
0
0
0
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
1
0
2ecf85b27afc09640a82b97f465143a5ec26f976
1,730
py
Python
core/rewrite.py
DCZYewen/NullDCZHFS
974ffd8c688eb45f5a0ee76636bbfd6a86ecd3be
[ "MIT" ]
1
2020-05-13T15:54:36.000Z
2020-05-13T15:54:36.000Z
core/rewrite.py
DCZYewen/NullcatServer
974ffd8c688eb45f5a0ee76636bbfd6a86ecd3be
[ "MIT" ]
null
null
null
core/rewrite.py
DCZYewen/NullcatServer
974ffd8c688eb45f5a0ee76636bbfd6a86ecd3be
[ "MIT" ]
null
null
null
import asyncio from .config import conf from .logger import main_logger from .web import HTTPRequest, http301, WebHandler log = main_logger.get_logger() target_port = conf.get("https", "port") class Redirect_Handler(WebHandler): async def get(self): if self.request.head.get("X-Local"): return ...
34.6
109
0.631792
217
1,730
4.97235
0.400922
0.061168
0.041705
0.050046
0.044486
0.044486
0
0
0
0
0
0.01435
0.234682
1,730
49
110
35.306122
0.800604
0.011561
0
0.142857
0
0
0.151639
0.012881
0
0
0
0
0
1
0
false
0.047619
0.095238
0
0.238095
0.02381
0
0
0
null
0
0
0
0
0
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
1
0
2ecfa0d95f020f2b485feb32481f32e2baf2f0f3
3,619
py
Python
writing/scripts/QD-other-metrics.py
johanere/qflow
5453cd5c3230ad7f082adf9ec1aea63ab0a4312a
[ "MIT" ]
5
2019-07-24T21:46:24.000Z
2021-06-11T18:18:24.000Z
writing/scripts/QD-other-metrics.py
johanere/qflow
5453cd5c3230ad7f082adf9ec1aea63ab0a4312a
[ "MIT" ]
22
2019-02-19T10:49:26.000Z
2019-07-18T09:42:13.000Z
writing/scripts/QD-other-metrics.py
bsamseth/FYS4411
72b879e7978364498c48fc855b5df676c205f211
[ "MIT" ]
2
2020-11-04T15:17:24.000Z
2021-11-03T16:37:38.000Z
import time from datetime import timedelta import numpy as np from qflow.wavefunctions import ( JastrowPade, SimpleGaussian, WavefunctionProduct, Dnn, InputSorter, ) from qflow.wavefunctions.nn.layers import DenseLayer from qflow.wavefunctions.nn.activations import tanh, exponential from qflow.hami...
28.273438
84
0.727273
479
3,619
5.246347
0.26096
0.028651
0.031834
0.041385
0.355352
0.316753
0.257461
0.166733
0.166733
0.166733
0
0.035082
0.157226
3,619
127
85
28.496063
0.788852
0.015198
0
0.194444
0
0
0.078112
0.016016
0
0
0
0
0
1
0
false
0
0.12037
0
0.12037
0.046296
0
0
0
null
0
0
0
0
0
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
1
0
2ed116d59c2b0c901b520091f0adae6d5dd2c1e7
2,721
py
Python
docs/testcases/test_CON_TC28_ManyArticle.py
iiistvan/conduit
4ee93a61371747ad5f70f51a52a80ecd57a86979
[ "MIT" ]
null
null
null
docs/testcases/test_CON_TC28_ManyArticle.py
iiistvan/conduit
4ee93a61371747ad5f70f51a52a80ecd57a86979
[ "MIT" ]
null
null
null
docs/testcases/test_CON_TC28_ManyArticle.py
iiistvan/conduit
4ee93a61371747ad5f70f51a52a80ecd57a86979
[ "MIT" ]
null
null
null
# CON_TC28_ManyArticle: Ismételt és sorozatos adatbevitel adatforrásból # a szükséges csomagok, modulok betöltése from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager import time import csv def test_CON_TC28_ManyArticle(): # webdriver konfiguráció, tesztelt oldal megnyitása ...
35.337662
83
0.642411
327
2,721
5.122324
0.455657
0.065672
0.06209
0.079403
0.275224
0.275224
0.196418
0.179104
0.094328
0.041791
0
0.011527
0.23484
2,721
76
84
35.802632
0.792988
0.172731
0
0.290909
0
0
0.116123
0.019652
0
0
0
0
0.018182
1
0.054545
false
0
0.072727
0
0.163636
0.018182
0
0
0
null
0
0
0
0
0
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
1
0
2ed2120ed3b51f8f3b66f633df4e04159fd5c611
2,943
py
Python
flask_discord_interactions/tests/test_subcommand.py
ccall48/flask-discord-interactions
37bc73fdfea038051eb934590ef3b53660ce0517
[ "MIT" ]
null
null
null
flask_discord_interactions/tests/test_subcommand.py
ccall48/flask-discord-interactions
37bc73fdfea038051eb934590ef3b53660ce0517
[ "MIT" ]
null
null
null
flask_discord_interactions/tests/test_subcommand.py
ccall48/flask-discord-interactions
37bc73fdfea038051eb934590ef3b53660ce0517
[ "MIT" ]
null
null
null
from flask_discord_interactions import CommandOptionType, Context, Member def test_subcommand(discord, client): group = discord.command_group("group") @group.command() def sub_one(ctx): return "sub one" @group.command() def sub_two(ctx): return "sub two" assert client.run("g...
29.138614
77
0.53245
294
2,943
5.187075
0.166667
0.043279
0.078689
0.078689
0.447869
0.39541
0.302951
0.27541
0.27541
0.229508
0
0
0.331295
2,943
100
78
29.43
0.774898
0.006796
0
0.3
0
0
0.200815
0
0
0
0
0
0.1
1
0.1375
false
0
0.0125
0.075
0.25
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
0
0
1
0
2ed237d4467097a51db0627eb2ded835cad1f51c
783
py
Python
Chatbot_Model/Time_Convert/setup.py
guci314/Chatbot_CN
02044eed4a141aa8c61d6064c166f95dbdae894c
[ "Apache-2.0" ]
8
2019-08-12T12:38:35.000Z
2022-02-21T03:25:04.000Z
Chatbot_Model/Time_Convert/setup.py
JianboTang/Chatbot_CN
a0f7194252a189f8bc2b62fd16eb2abe432c0bf9
[ "Apache-2.0" ]
null
null
null
Chatbot_Model/Time_Convert/setup.py
JianboTang/Chatbot_CN
a0f7194252a189f8bc2b62fd16eb2abe432c0bf9
[ "Apache-2.0" ]
5
2020-01-08T15:30:38.000Z
2022-02-15T02:39:46.000Z
#-*- coding:utf-8 _*- """ @author:charlesXu @file: setup.py @desc: 设置 @time: 2019/05/23 """ from setuptools import setup setup( name="TimeConverter", version="1.1.0", keywords=("time", "nlp"), description="...", long_description="...", license="MIT Licence", url="http://test.com", auth...
23.727273
52
0.556833
84
783
5.095238
0.738095
0.133178
0.175234
0.121495
0
0
0
0
0
0
0
0.042159
0.242656
783
33
53
23.727273
0.679595
0.104725
0
0
0
0
0.342939
0
0
0
0
0
0
1
0
true
0
0.041667
0
0.041667
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
2ed2d64e061c92079cee2868a26ed1b0890a057c
6,963
py
Python
Main.py
AayushK47/sudoku-solver
27960449927806e62621d6cd136c82abcfdc0f6f
[ "MIT" ]
1
2020-01-24T16:15:31.000Z
2020-01-24T16:15:31.000Z
Main.py
AayushK47/sudoku-solver
27960449927806e62621d6cd136c82abcfdc0f6f
[ "MIT" ]
null
null
null
Main.py
AayushK47/sudoku-solver
27960449927806e62621d6cd136c82abcfdc0f6f
[ "MIT" ]
null
null
null
class SudokuSolver: def __init__(self, query_string, rows = 'ABCDEFGHI', columns = '123456789'): """ Initializing the various variables required here """ self.query_string = query_string self.rows = rows # The Rows are labeled from A to Z self.colu...
42.981481
144
0.564268
939
6,963
4.13312
0.209798
0.026282
0.032981
0.03968
0.253285
0.191703
0.147127
0.118784
0.118784
0.118784
0
0.020238
0.34712
6,963
162
145
42.981481
0.83282
0.251903
0
0.178218
0
0
0.034338
0
0
0
0
0
0.009901
1
0.09901
false
0
0
0
0.247525
0.019802
0
0
0
null
0
0
0
0
0
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
1
0
2ed3ab82046ebfee2aac3079195285f7716ed549
4,599
py
Python
tests/unit_tests/test_verifiers/test_common/test_reductions/test_iopolytope/test_HyperRectangle.py
samysweb/dnnv
58fb95b7300914d9da28eed86c39eca473b1aaef
[ "MIT" ]
5
2022-01-28T20:30:34.000Z
2022-03-17T09:26:52.000Z
tests/unit_tests/test_verifiers/test_common/test_reductions/test_iopolytope/test_HyperRectangle.py
samysweb/dnnv
58fb95b7300914d9da28eed86c39eca473b1aaef
[ "MIT" ]
9
2022-01-27T03:50:28.000Z
2022-02-08T18:42:17.000Z
tests/unit_tests/test_verifiers/test_common/test_reductions/test_iopolytope/test_HyperRectangle.py
samysweb/dnnv
58fb95b7300914d9da28eed86c39eca473b1aaef
[ "MIT" ]
2
2022-02-03T17:32:43.000Z
2022-03-24T16:38:49.000Z
import numpy as np import pytest from dnnv.verifiers.common.reductions.iopolytope import * from dnnv.verifiers.common.reductions.iopolytope import Variable def setup_function(): Variable._count = 0 def test_update_constraint_single_index(): v = Variable((1, 3, 2, 2)) hspoly = HyperRectangle(v) var...
27.538922
87
0.607088
682
4,599
3.979472
0.09824
0.10059
0.046426
0.066323
0.866249
0.838983
0.791083
0.754974
0.754974
0.727708
0
0.045442
0.229615
4,599
166
88
27.704819
0.720576
0
0
0.681481
0
0
0.046314
0
0
0
0
0
0.133333
1
0.059259
false
0
0.02963
0
0.088889
0
0
0
0
null
0
0
0
1
1
1
1
1
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
6
2ed7a7df06cc4cee499aace6ba6f51568d3566d0
615
py
Python
pawnshop_management/pawnshop_management/doctype/pawn_ticket_jewelry/pawn_ticket_jewelry.py
EricMendoza412/pawnshop_management
62d22f6435c3b8737c51923f1d28a0201fa0b9c8
[ "MIT" ]
null
null
null
pawnshop_management/pawnshop_management/doctype/pawn_ticket_jewelry/pawn_ticket_jewelry.py
EricMendoza412/pawnshop_management
62d22f6435c3b8737c51923f1d28a0201fa0b9c8
[ "MIT" ]
null
null
null
pawnshop_management/pawnshop_management/doctype/pawn_ticket_jewelry/pawn_ticket_jewelry.py
EricMendoza412/pawnshop_management
62d22f6435c3b8737c51923f1d28a0201fa0b9c8
[ "MIT" ]
1
2022-03-18T06:50:55.000Z
2022-03-18T06:50:55.000Z
# Copyright (c) 2022, Rabie Moses Santillan and contributors # For license information, please see license.txt import frappe from frappe.model.document import Document class PawnTicketJewelry(Document): def before_save(self): if frappe.db.exists('Pawn Ticket Jewelry', self.name) == None: settings = frappe.get_d...
32.368421
64
0.756098
83
615
5.433735
0.60241
0.053215
0.062084
0.084257
0
0
0
0
0
0
0
0.015267
0.147967
615
18
65
34.166667
0.84542
0.172358
0
0
0
0
0.09703
0
0
0
0
0
0
1
0.076923
false
0
0.153846
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
0
0
0
0
1
0
2ed7cd4779677abe2c51e5cf328f96abc94a57d9
346
py
Python
assignments/activity_plots.py
olzama/Ling471-Spring2021-UW
ed05fa17874ce1f267c6e76ddbf9bfac7aadfb5e
[ "MIT" ]
null
null
null
assignments/activity_plots.py
olzama/Ling471-Spring2021-UW
ed05fa17874ce1f267c6e76ddbf9bfac7aadfb5e
[ "MIT" ]
null
null
null
assignments/activity_plots.py
olzama/Ling471-Spring2021-UW
ed05fa17874ce1f267c6e76ddbf9bfac7aadfb5e
[ "MIT" ]
1
2022-03-28T17:26:46.000Z
2022-03-28T17:26:46.000Z
import matplotlib.pyplot as plt # Example plot X = range(-5, 5) # Note the missing +5! Y = [pow(x, 2) for x in X] plt.plot(X, Y) plt.show() plt.xlabel('X', color='fuchsia', fontweight='bold') plt.ylabel('f(x)') plt.plot(X, Y, 'o-', label='squared') # other styles: '--', ':' plt.legend(loc="upper left") plt.savefig...
21.625
63
0.632948
59
346
3.711864
0.661017
0.068493
0.073059
0.082192
0.091324
0
0
0
0
0
0
0.013468
0.141619
346
15
64
23.066667
0.723906
0.16474
0
0
0
0
0.193662
0
0
0
0
0
0
0
null
null
0
0.111111
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
2ed935028fe8c43b6cd7752c0576990680836a21
1,866
py
Python
project/bots/analyser/elastic_analyser.py
VendettaTeam/botov-net
40da19c03793e15653b0cc2b5cde3987b64b202f
[ "MIT" ]
null
null
null
project/bots/analyser/elastic_analyser.py
VendettaTeam/botov-net
40da19c03793e15653b0cc2b5cde3987b64b202f
[ "MIT" ]
5
2021-03-19T02:24:29.000Z
2022-02-10T13:19:13.000Z
project/bots/analyser/elastic_analyser.py
VendettaTeam/botov-net
40da19c03793e15653b0cc2b5cde3987b64b202f
[ "MIT" ]
null
null
null
from .analyser import Analyser from project.bots.response.response_answer import ResponseAnswer from project.bots.response.response import BotResponse from project.bots.response.unknown_response import UnknownResponse from project.bots.documents import MessagesDocument from project.bots.models import Messages class E...
35.884615
87
0.65702
211
1,866
5.630332
0.35545
0.035354
0.063131
0.058081
0.186869
0.099327
0.099327
0.099327
0.099327
0.099327
0
0
0.271704
1,866
51
88
36.588235
0.874172
0.079314
0
0.216216
0
0
0.015762
0
0
0
0
0.019608
0
1
0.054054
false
0
0.162162
0
0.378378
0.081081
0
0
0
null
0
0
0
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
2ed98896d9e5eef596d50440a0d845385714e30d
1,258
py
Python
tasks/supporters/settings.py
breefkase/tasks-cli
fcc785d4ab8710606aac37d52256d250d06af204
[ "MIT" ]
null
null
null
tasks/supporters/settings.py
breefkase/tasks-cli
fcc785d4ab8710606aac37d52256d250d06af204
[ "MIT" ]
null
null
null
tasks/supporters/settings.py
breefkase/tasks-cli
fcc785d4ab8710606aac37d52256d250d06af204
[ "MIT" ]
null
null
null
from pathlib import Path import json class Settings: def __init__(self): self.config = {} self.path_settings_file = Path.home().joinpath('.breefkase') self.breefkase_dir = None self.load() def load(self): f = self.path_settings_file try: with open(f...
34.944444
87
0.569952
139
1,258
5.064748
0.417266
0.085227
0.068182
0.085227
0.071023
0.071023
0
0
0
0
0
0
0.334658
1,258
35
88
35.942857
0.841099
0.058029
0
0.066667
0
0
0.174134
0
0
0
0
0.028571
0
1
0.1
false
0
0.066667
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
2eda6e2c94adaa4ac4b0c55924f01d3dee45cd41
244
py
Python
class01.py
kt-believe/test
84050113a507c33753066a8f4b95162a74704ea5
[ "Apache-2.0" ]
null
null
null
class01.py
kt-believe/test
84050113a507c33753066a8f4b95162a74704ea5
[ "Apache-2.0" ]
null
null
null
class01.py
kt-believe/test
84050113a507c33753066a8f4b95162a74704ea5
[ "Apache-2.0" ]
null
null
null
# _*_ coding:utf-8 _*_ # 作者:hungryboy # @Time: 2021/1/28 # @File: class01.py print("欢迎来到hungryboy的python世界!") def test(): print("这是一个函数,在Demo类外面") class Demo: print("this is a demo") def demo(self): print("这是Demo类中的方法!")
16.266667
32
0.631148
31
244
4.83871
0.806452
0
0
0
0
0
0
0
0
0
0
0.05102
0.196721
244
15
33
16.266667
0.714286
0.278689
0
0
0
0
0.372093
0.133721
0
0
0
0
0
1
0.285714
false
0
0
0
0.428571
0.571429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
1
0
2
2edb23164b8db38139af3fd55a1813a6f7890fb5
4,751
py
Python
bcs-ui/backend/iam/permissions/resources/cluster.py
ZhongmingFan/bk-bcs
e4b36b05e837e6a8468994869b0f55c972381a20
[ "Apache-2.0" ]
null
null
null
bcs-ui/backend/iam/permissions/resources/cluster.py
ZhongmingFan/bk-bcs
e4b36b05e837e6a8468994869b0f55c972381a20
[ "Apache-2.0" ]
null
null
null
bcs-ui/backend/iam/permissions/resources/cluster.py
ZhongmingFan/bk-bcs
e4b36b05e837e6a8468994869b0f55c972381a20
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
38.942623
115
0.733109
596
4,751
5.619128
0.295302
0.032248
0.026874
0.028665
0.348462
0.301881
0.264258
0.244849
0.222753
0.169901
0
0.002771
0.164597
4,751
121
116
39.264463
0.841018
0.155967
0
0.220779
0
0
0.076904
0.006012
0
0
0
0
0
1
0.12987
false
0
0.103896
0.064935
0.688312
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
0
0
1
0
2edbbcc4cbccb7869b9b3a5ffedc9be2301ea298
371
py
Python
test/test_dc_coastal_change.py
M3nin0/data_cube_utilities
badd774c35babc5becc17e1a2b38a0d1782d3540
[ "Apache-2.0" ]
14
2017-03-20T02:37:18.000Z
2022-01-23T05:36:39.000Z
test/test_dc_coastal_change.py
M3nin0/data_cube_utilities
badd774c35babc5becc17e1a2b38a0d1782d3540
[ "Apache-2.0" ]
7
2021-03-31T20:12:05.000Z
2022-03-12T00:55:06.000Z
test/test_dc_coastal_change.py
M3nin0/data_cube_utilities
badd774c35babc5becc17e1a2b38a0d1782d3540
[ "Apache-2.0" ]
21
2017-03-06T08:55:24.000Z
2021-12-17T04:32:39.000Z
import unittest from data_cube_utilities import dc_coastal_change class TestCoastalChange(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_compute_coastal_change(self): pass def test_mask_mosaic_with_coastlines(self): pass def test_m...
16.863636
51
0.703504
46
371
5.326087
0.5
0.163265
0.179592
0.183673
0.236735
0.236735
0.236735
0
0
0
0
0
0.245283
371
21
52
17.666667
0.875
0
0
0.384615
0
0
0
0
0
0
0
0
0
1
0.384615
false
0.384615
0.153846
0
0.615385
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
1
0
1
0
0
1
0
0
4
2edbc9f51c11e70b2a76fe52fbaa4aafdb7938e5
502
py
Python
scripts/ssc/deprecated/run_topoae_ext_parallel.py
MrBellamonte/MT-VAEs-TDA
8881b5db607c673fb558f7b74ece27f244b16b77
[ "MIT" ]
null
null
null
scripts/ssc/deprecated/run_topoae_ext_parallel.py
MrBellamonte/MT-VAEs-TDA
8881b5db607c673fb558f7b74ece27f244b16b77
[ "MIT" ]
1
2020-09-22T13:04:58.000Z
2020-09-22T13:05:23.000Z
scripts/ssc/deprecated/run_topoae_ext_parallel.py
MrBellamonte/AEs-VAEs-TDA
8881b5db607c673fb558f7b74ece27f244b16b77
[ "MIT" ]
null
null
null
import argparse from joblib import Parallel, delayed from scripts.ssc.TopoAE_ext.config_libraries.swissroll import swissroll_run1 from src.models.WitnessComplexAE.train_engine import simulator_TopoAE_ext def parse_input(): parser = argparse.ArgumentParser() parser.add_argument("--threads", default=30, help=...
29.529412
90
0.788845
67
502
5.597015
0.671642
0.072
0.08
0
0
0
0
0
0
0
0
0.011287
0.11753
502
17
90
29.529412
0.835214
0
0
0
0
0
0.067594
0
0
0
0
0
0
1
0.1
false
0
0.4
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
1
0
1
0
0
2
2edc331bf07f9da06321e3e15ed10feb5f3f2966
27
py
Python
src/euler_python_package/euler_python/medium/p363.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
src/euler_python_package/euler_python/medium/p363.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
src/euler_python_package/euler_python/medium/p363.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
def problem363(): pass
9
17
0.62963
3
27
5.666667
1
0
0
0
0
0
0
0
0
0
0
0.15
0.259259
27
2
18
13.5
0.7
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
true
0.5
0
0
0.5
0
1
1
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
1
1
1
0
0
0
0
0
6
2edc3f792e182de7dfa82061e009b428d2e09ffd
41,666
py
Python
nlplingo/oregon/event_models/uoregon/models/pipeline/_01/modules/argument_model.py
BBN-E/nlplingo
32ff17b1320937faa3d3ebe727032f4b3e7a353d
[ "Apache-2.0" ]
3
2020-10-22T13:28:00.000Z
2022-03-24T19:57:22.000Z
nlplingo/oregon/event_models/uoregon/models/pipeline/_01/modules/argument_model.py
BBN-E/nlplingo
32ff17b1320937faa3d3ebe727032f4b3e7a353d
[ "Apache-2.0" ]
null
null
null
nlplingo/oregon/event_models/uoregon/models/pipeline/_01/modules/argument_model.py
BBN-E/nlplingo
32ff17b1320937faa3d3ebe727032f4b3e7a353d
[ "Apache-2.0" ]
1
2020-10-22T13:29:51.000Z
2020-10-22T13:29:51.000Z
# -*- coding: utf-8 -*- from nlplingo.common.utils import DEPREL_TO_ID # ==> from nlplingo.oregon.event_models.uoregon.models.pipeline._01.local_constants import * from fairseq.models.roberta import XLMRModel from nlplingo.oregon.event_models.uoregon.tools.utils import * from nlplingo.oregon.event_models.uoregon.layer...
52.875635
167
0.47672
6,187
41,666
3.057217
0.075804
0.073064
0.104679
0.133862
0.665451
0.611208
0.543167
0.480465
0.438699
0.409833
0
0.158257
0.334541
41,666
787
168
52.942821
0.52393
0.084049
0
0.311258
0
0
0.125872
0.025113
0
0
0
0.002541
0
1
0.029801
false
0
0.019868
0
0.076159
0.245033
0
0
0
null
0
0
0
0
0
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
1
0
2edc62a2e3c3d4664ec1267a615b4c63d54b1f65
3,203
py
Python
models/lstm.py
k-jun/sotuken
7e7c1202653bda8b95ebe6627e5cf12000d5704f
[ "MIT" ]
null
null
null
models/lstm.py
k-jun/sotuken
7e7c1202653bda8b95ebe6627e5cf12000d5704f
[ "MIT" ]
null
null
null
models/lstm.py
k-jun/sotuken
7e7c1202653bda8b95ebe6627e5cf12000d5704f
[ "MIT" ]
null
null
null
# ref: https://www.tensorflow.org/guide/keras/rnn # ref: https://www.tensorflow.org/tutorials/structured_data/time_series from __future__ import absolute_import, division, print_function, unicode_literals import collections import matplotlib.pyplot as plt import numpy as np import pandas as pd import tensorflow as tf ...
31.097087
107
0.674056
482
3,203
4.253112
0.381743
0.026829
0.011707
0.019512
0.173659
0.139512
0.139512
0.139512
0.139512
0.139512
0
0.031466
0.186388
3,203
102
108
31.401961
0.75518
0.142054
0
0
0
0
0.085798
0.020811
0
0
0
0
0
1
0.028169
false
0
0.15493
0.014085
0.211268
0.042254
0
0
0
null
0
0
0
0
0
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
1
0
2ede893a1fd4b8b59efb44450c5f33e55ff0017c
436
py
Python
tests/system/test_hello.py
bnwest/FastApiMicroService
1768f28974fea6dda1cc4312b3beca78401f9dfb
[ "CC0-1.0" ]
1
2021-06-18T16:29:49.000Z
2021-06-18T16:29:49.000Z
tests/system/test_hello.py
bnwest/FastApiMicroService
1768f28974fea6dda1cc4312b3beca78401f9dfb
[ "CC0-1.0" ]
null
null
null
tests/system/test_hello.py
bnwest/FastApiMicroService
1768f28974fea6dda1cc4312b3beca78401f9dfb
[ "CC0-1.0" ]
null
null
null
import os import requests # export FASTAPI_ROOT="http://fastapi-micro-service:8000" FASTAPI_ROOT = os.environ.get("FASTAPI_ROOT") def test_hello_world(): endpoint_url = f"{FASTAPI_ROOT}/" response = requests.get(endpoint_url) assert response.status_code == 200 response_json = response.json() asse...
27.25
57
0.731651
57
436
5.368421
0.491228
0.196078
0.117647
0
0
0
0
0
0
0
0
0.01897
0.15367
436
15
58
29.066667
0.810298
0.126147
0
0
0
0
0.110818
0
0
0
0
0
0.363636
1
0.090909
false
0
0.181818
0
0.272727
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
0
0
1
0
2ee26b71fd2072fa05c57d9cb340d3820903a6ac
221
py
Python
examples/example_image_clear.py
cloudmesh-community/cm-burn
536e2762d3c28ff539161dd3eb10c1cd2dedf9b1
[ "Apache-2.0" ]
null
null
null
examples/example_image_clear.py
cloudmesh-community/cm-burn
536e2762d3c28ff539161dd3eb10c1cd2dedf9b1
[ "Apache-2.0" ]
1
2018-11-20T16:17:03.000Z
2018-11-20T16:17:03.000Z
examples/example_image_clear.py
cloudmesh-community/cm-burn
536e2762d3c28ff539161dd3eb10c1cd2dedf9b1
[ "Apache-2.0" ]
3
2018-09-18T00:00:02.000Z
2018-12-05T17:16:30.000Z
from cloudmesh.burn.image import Image import os i = Image() os.system("touch ~/.cloudmesh/cmburn/images/junk.img") os.system("touch ~/.cloudmesh/cmburn/images/junk.zip") r = i.ls() print (r) r = i.clear() print (r)
14.733333
54
0.687783
36
221
4.222222
0.5
0.144737
0.171053
0.289474
0.5
0.5
0.5
0
0
0
0
0
0.126697
221
14
55
15.785714
0.787565
0
0
0.222222
0
0
0.371041
0.316742
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.222222
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
2ee2e6731a1c9e2346795ca28318bd107b7a7619
2,963
py
Python
RafalG/sequence_slice_e.py
Khayn/2021-12-elearning-pythonana
a54e407adc8fb8c3a5fd2522735ae09cdef6540a
[ "MIT" ]
null
null
null
RafalG/sequence_slice_e.py
Khayn/2021-12-elearning-pythonana
a54e407adc8fb8c3a5fd2522735ae09cdef6540a
[ "MIT" ]
null
null
null
RafalG/sequence_slice_e.py
Khayn/2021-12-elearning-pythonana
a54e407adc8fb8c3a5fd2522735ae09cdef6540a
[ "MIT" ]
null
null
null
""" * Assignment: Sequence Slice Train/Test * Required: yes * Complexity: easy * Lines of code: 4 lines * Time: 8 min English: 1. Divide `data` into two lists: a. `train`: 60% - training data b. `test`: 40% - testing data 2. Calculate split point: a. `data` length multiplied by percent ...
31.860215
78
0.577118
490
2,963
3.485714
0.25102
0.01171
0.028103
0.046838
0.423302
0.376464
0.376464
0.299766
0.299766
0.26815
0
0.084753
0.247384
2,963
92
79
32.206522
0.681166
0.791428
0
0
0
0
0.232203
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ee382ef7e4e52fef0695c81d210f8710fbaae22
26,869
py
Python
kiosk/models.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
null
null
null
kiosk/models.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
14
2018-09-12T06:59:55.000Z
2020-02-26T07:17:48.000Z
kiosk/models.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from dateutil import tz import pytz from datetime import date from django.core.validators import MinValueValidator from django.db import transaction from profil.models import KioskUser from django.db import connection from django.conf import settings from ...
37.526536
354
0.737318
3,076
26,869
6.356307
0.201235
0.014321
0.012889
0.019333
0.359605
0.307079
0.263809
0.233531
0.193024
0.175941
0
0.007543
0.141427
26,869
716
355
37.526536
0.840002
0.130448
0
0.309381
0
0.007984
0.107756
0.007893
0.001996
0
0
0
0
1
0.065868
false
0.001996
0.027944
0.015968
0.299401
0.00998
0
0
0
null
0
0
0
0
0
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
1
0
2ee40da39bd2d751bdd4296c97d932bca4108462
910
py
Python
ex_15/ex_15_02.py
rovelee/py4e
32125f5d62b6c7b6a56c8e1a250c1d81c6d54006
[ "MIT" ]
null
null
null
ex_15/ex_15_02.py
rovelee/py4e
32125f5d62b6c7b6a56c8e1a250c1d81c6d54006
[ "MIT" ]
null
null
null
ex_15/ex_15_02.py
rovelee/py4e
32125f5d62b6c7b6a56c8e1a250c1d81c6d54006
[ "MIT" ]
null
null
null
import sqlite3 import re from sys import prefix conn = sqlite3.connect('orgdb.sqlite') cur = conn.cursor() cur.execute('DROP TABLE IF EXISTS Counts') cur.execute(''' CREATE TABLE Counts (org TEXT, count INTEGER)''') prefix='../file/' fname = input('Enter file name: ') if (len(fname) < 1): fname = 'mbox-short.tx...
21.162791
69
0.627473
142
910
4.021127
0.471831
0.087566
0.024518
0
0
0
0
0
0
0
0
0.016064
0.179121
910
42
70
21.666667
0.748327
0
0
0
0
0
0.338462
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ee7c94defef9b021d96821b4fb3f10b7d2d409d
694
py
Python
src/groups/models.py
OmarYehia/django-social_network
83fc6fd288fe23684409c43bf51c7fca01297481
[ "MIT" ]
null
null
null
src/groups/models.py
OmarYehia/django-social_network
83fc6fd288fe23684409c43bf51c7fca01297481
[ "MIT" ]
null
null
null
src/groups/models.py
OmarYehia/django-social_network
83fc6fd288fe23684409c43bf51c7fca01297481
[ "MIT" ]
1
2021-05-13T15:08:12.000Z
2021-05-13T15:08:12.000Z
from django.db import models from profiles.models import Profile # Create your models here. class Group(models.Model): users = models.ManyToManyField(Profile, blank=True, related_name='groups') owner = models.ForeignKey( Profile, on_delete=models.CASCADE, related_name='+') name = models.CharField...
34.7
85
0.724784
92
694
5.304348
0.619565
0.036885
0.086066
0.102459
0.114754
0
0
0
0
0
0
0.008726
0.174352
694
19
86
36.526316
0.842932
0.149856
0
0
0
0
0.0477
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0.076923
0.846154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2ee7fb23d90df230952beef9e9b26c2d9645d6d2
7,111
py
Python
scripts/test_pretrained_model.py
NamJiii/PECNet
b99f54dacc14ff079222b3a339428c10e622cb16
[ "MIT" ]
null
null
null
scripts/test_pretrained_model.py
NamJiii/PECNet
b99f54dacc14ff079222b3a339428c10e622cb16
[ "MIT" ]
null
null
null
scripts/test_pretrained_model.py
NamJiii/PECNet
b99f54dacc14ff079222b3a339428c10e622cb16
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import sys from torch.utils.data import DataLoader import argparse import copy sys.path.append("../utils/") import matplotlib.pyplot as plt import numpy as np from models import * from social_utils import * import yaml parse...
39.071429
487
0.696527
1,099
7,111
4.276615
0.228389
0.067872
0.028723
0.02234
0.317447
0.260426
0.224468
0.191915
0.191915
0.191915
0
0.04089
0.140205
7,111
181
488
39.287293
0.727838
0.141049
0
0.190476
0
0
0.113108
0.003462
0
0
0
0
0.015873
1
0.02381
false
0
0.103175
0
0.142857
0.079365
0
0
0
null
0
0
0
0
0
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
1
0
2ee7fd84d8fa002e0d13f33ba310cdac5cb3d3f4
3,386
py
Python
Count/src/index.py
ApperPh/aws-cloudformation-macros
74c6b969d9780fd930b76325af5baaf1d15be572
[ "Apache-2.0" ]
null
null
null
Count/src/index.py
ApperPh/aws-cloudformation-macros
74c6b969d9780fd930b76325af5baaf1d15be572
[ "Apache-2.0" ]
null
null
null
Count/src/index.py
ApperPh/aws-cloudformation-macros
74c6b969d9780fd930b76325af5baaf1d15be572
[ "Apache-2.0" ]
null
null
null
import copy import json def process_template(template, params): new_template = copy.deepcopy(template) status = 'success' for name, resource in template['Resources'].items(): if 'Count' in resource: #Get the number of times to multiply the resource count = new_template['Res...
46.383562
138
0.674247
376
3,386
6.023936
0.332447
0.029139
0.03532
0.021192
0.062693
0.024724
0
0
0
0
0
0.001933
0.236267
3,386
72
139
47.027778
0.873937
0.20762
0
0.057692
0
0
0.20015
0.017583
0
0
0
0
0
1
0.076923
false
0
0.038462
0
0.230769
0.173077
0
0
0
null
0
0
0
0
0
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
1
0
2ee9442cf0b747887f56ef399cd05098b20a5c95
176,065
py
Python
intensio/test/python/advanced/output/basicRAT-example/core/TrNyQrwBvIPHpfSTViMBqueBppNSmHsjaYRzCIUnZGssHFZOnGvbeYBzohXKYFkpdJWLMHzjkYZVOwJOJLhASWYmJogCqrdkDFciQiRvNRYsljZPbmBTSKePnbUSviji.py
Chudry/Intensio-Obfuscator
62f6c8871704693ca79342efb03dcd2530d7614e
[ "MIT" ]
1
2019-09-06T11:55:29.000Z
2019-09-06T11:55:29.000Z
intensio/test/python/advanced/output/basicRAT-example/core/TrNyQrwBvIPHpfSTViMBqueBppNSmHsjaYRzCIUnZGssHFZOnGvbeYBzohXKYFkpdJWLMHzjkYZVOwJOJLhASWYmJogCqrdkDFciQiRvNRYsljZPbmBTSKePnbUSviji.py
Chudry/Intensio-Obfuscator
62f6c8871704693ca79342efb03dcd2530d7614e
[ "MIT" ]
null
null
null
intensio/test/python/advanced/output/basicRAT-example/core/TrNyQrwBvIPHpfSTViMBqueBppNSmHsjaYRzCIUnZGssHFZOnGvbeYBzohXKYFkpdJWLMHzjkYZVOwJOJLhASWYmJogCqrdkDFciQiRvNRYsljZPbmBTSKePnbUSviji.py
Chudry/Intensio-Obfuscator
62f6c8871704693ca79342efb03dcd2530d7614e
[ "MIT" ]
null
null
null
MWZWSmMhtUsRrINuSTzFrxaxjBTBJqSWKuKnGWRXkqWQJqFZtHcGtyMgFWrExRGweSHLOCtzbXotCELvYZdsUDmsxKLYPEnCGzbpsNkLrKPigaoVayVePBGtbjfjhKyb=""" \x23\x20\x2d\x2a\x2d\x20\x63\x6f\x64\x69\x6e\x67\x3a\x20\x75\x74\x66\x2d\x38\x20\x2d\x2a\x2d\x0a \x69\x6d\x70\x6f\x72\x74\x20\x64\x61\x74\x65\x74\x69\x6d\x65\x0a \x53\x4b\x4f\x47\x5a\x7a\...
912.253886
1,172
0.749513
43,904
176,065
3.005717
0.001686
0.075794
0.103256
0.123762
0.808136
0.802725
0.801611
0.80002
0.798678
0.797019
0
0.43499
0.001091
176,065
192
1,173
917.005208
0.315341
0
0
0.041667
0
0.963542
0.998461
0.997382
0
1
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
1
0
0
0
1
1
1
0
0
0
0
1
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
14
2ee971f0a382fe6fbd625d25b5631b8db3539cec
8,745
py
Python
dali/test/python/test_operator_readers_webdataset_corner.py
barci2/DALI
21a51891eae9ad6f7fc8b17d7dccc65465783d2d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
dali/test/python/test_operator_readers_webdataset_corner.py
barci2/DALI
21a51891eae9ad6f7fc8b17d7dccc65465783d2d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
dali/test/python/test_operator_readers_webdataset_corner.py
barci2/DALI
21a51891eae9ad6f7fc8b17d7dccc65465783d2d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. 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 requi...
31.010638
100
0.641624
1,098
8,745
4.779599
0.186703
0.063453
0.059451
0.029726
0.665015
0.649962
0.616425
0.602706
0.59375
0.574505
0
0.014884
0.262436
8,745
281
101
31.120996
0.79876
0.068039
0
0.64557
0
0
0.126721
0.0397
0
0
0
0
0.067511
1
0.046414
false
0
0.004219
0
0.050633
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
0
0
1
0
2ee978484eedfa6f0ee35b6d2e588d59022d7378
461
py
Python
lessons/lesson3/t210.py
kcfkwok2003/Simp_py
f75e66da01b45dc8688dda602f8b33d4258f0c31
[ "MIT" ]
null
null
null
lessons/lesson3/t210.py
kcfkwok2003/Simp_py
f75e66da01b45dc8688dda602f8b33d4258f0c31
[ "MIT" ]
null
null
null
lessons/lesson3/t210.py
kcfkwok2003/Simp_py
f75e66da01b45dc8688dda602f8b33d4258f0c31
[ "MIT" ]
null
null
null
# t210.py from machine import Pin from simp_py import tft count=0 def counting(v): global count, show, p5 if p5.value()==0: count+=1 else: count-=1 btnA= Pin(39,Pin.IN) a = Pin(5, Pin.IN,Pin.PULL_UP) b = Pin(2, Pin.IN,Pin.PULL_UP) a.irq(counting,trigger=Pin.IRQ_RISING| Pin.IRQ_FALLING) pcount=-1 while 1: ...
20.043478
55
0.646421
87
461
3.367816
0.45977
0.051195
0.075085
0.081911
0.095563
0
0
0
0
0
0
0.06117
0.184382
461
22
56
20.954545
0.718085
0.015184
0
0.095238
0
0
0.026549
0
0
0
0
0
0
1
0.047619
false
0
0.095238
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ee9b23e78afb82a590a362f8bb474641574a4b8
2,876
py
Python
server/apps/utils/timezone_utils.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/utils/timezone_utils.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/utils/timezone_utils.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
import datetime import logging import pytz from django.utils import timezone from django.utils.dateparse import parse_date, parse_datetime logger = logging.getLogger(__name__) Y2K = datetime.datetime(2000, 1, 1) def formated_timedelta(total_seconds): """ Format time delta as H:M:S\ :param total_secon...
27.132075
92
0.638039
416
2,876
4.213942
0.257212
0.037079
0.034227
0.023959
0.187108
0.154022
0.124358
0.100399
0.065031
0.065031
0
0.016068
0.264256
2,876
105
93
27.390476
0.812382
0.221836
0
0.222222
0
0
0.075472
0.012425
0
0
0
0
0
1
0.126984
false
0
0.079365
0.031746
0.412698
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
0
0
1
0
2eeba743b811e114065608b85445aefb3e686e15
297
py
Python
pyplumio/structures/__init__.py
denpamusic/PyPlumIO
16e8049977cbfbb1bd6c830beb751e65ee270295
[ "MIT" ]
1
2022-03-24T21:44:59.000Z
2022-03-24T21:44:59.000Z
pyplumio/structures/__init__.py
denpamusic/PyPlumIO
16e8049977cbfbb1bd6c830beb751e65ee270295
[ "MIT" ]
null
null
null
pyplumio/structures/__init__.py
denpamusic/PyPlumIO
16e8049977cbfbb1bd6c830beb751e65ee270295
[ "MIT" ]
null
null
null
"""Contains structure parsers.""" __all__ = [ "alarms", "device_parameters", "frame_versions", "lambda_", "mixer_parameters", "mixers", "modules", "output_flags", "outputs", "statuses", "temperatures", "thermostats", "uid", "var_string", ]
15.631579
33
0.56229
23
297
6.826087
0.956522
0
0
0
0
0
0
0
0
0
0
0
0.262626
297
18
34
16.5
0.716895
0.090909
0
0
0
0
0.515152
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
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
2eecd8b51024630d653e89416e0c7dd612ac554f
2,805
py
Python
examples/client/python/cancel_tasks.py
kirillsc/aws-htc-grid
d1dd8068c3aebc3c04904b3daefc142a4b96872b
[ "Apache-2.0" ]
24
2021-04-14T11:57:42.000Z
2022-03-23T17:09:12.000Z
examples/client/python/cancel_tasks.py
kirillsc/aws-htc-grid
d1dd8068c3aebc3c04904b3daefc142a4b96872b
[ "Apache-2.0" ]
9
2021-04-23T08:44:13.000Z
2021-09-15T13:37:42.000Z
examples/client/python/cancel_tasks.py
kirillsc/aws-htc-grid
d1dd8068c3aebc3c04904b3daefc142a4b96872b
[ "Apache-2.0" ]
15
2021-04-14T11:53:58.000Z
2022-02-28T16:45:47.000Z
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 # Licensed under the Apache License, Version 2.0 https://aws.amazon.com/apache-2-0/ from api.connector import AWSConnector import os import json import time import argparse try: client_config_file = os...
28.622449
99
0.671301
330
2,805
5.49697
0.433333
0.054024
0.044101
0.023153
0.265711
0.170893
0.088203
0.088203
0.088203
0.088203
0
0.016287
0.233868
2,805
97
100
28.917526
0.827827
0.123351
0
0.232143
0
0
0.159701
0.040475
0
0
0
0
0
1
0.017857
false
0.053571
0.089286
0
0.125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2eee783f48eb0a497623c6955f7e5e7628fdc3db
1,745
py
Python
SATguess.py
gradyap/random_quiz
68d150731e2d3465e5789b3f5463ef4fc0da5167
[ "MIT" ]
null
null
null
SATguess.py
gradyap/random_quiz
68d150731e2d3465e5789b3f5463ef4fc0da5167
[ "MIT" ]
null
null
null
SATguess.py
gradyap/random_quiz
68d150731e2d3465e5789b3f5463ef4fc0da5167
[ "MIT" ]
null
null
null
import random #setting variables ranwins = 0 conwins = 0 ties = 0 takes = 1000 for quiz in range (0, takes): rancorrect=0 ranincorrect=0 concorrect=0 conincorrect=0 revisions=1000 possible = 4 # the consistent variable remains constant through the entire sequence # and is compared to the same s...
35.612245
118
0.65788
227
1,745
5.057269
0.312775
0.027875
0.031359
0.052265
0.181185
0.148084
0.108014
0.06446
0.06446
0
0
0.030657
0.2149
1,745
48
119
36.354167
0.807299
0.309456
0
0
0
0
0.175585
0
0
0
0
0
0
1
0
false
0
0.029412
0
0.029412
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2eee9d309fd7f5c6301b77cefb4ea94494b674f4
901
py
Python
scheduler.py
kenseitrg/room-monitor
38f6d7fbee1256bc89b1325a923dbb8a8b929488
[ "Unlicense" ]
null
null
null
scheduler.py
kenseitrg/room-monitor
38f6d7fbee1256bc89b1325a923dbb8a8b929488
[ "Unlicense" ]
1
2021-06-01T23:52:57.000Z
2021-06-01T23:52:57.000Z
scheduler.py
kenseitrg/room-monitor
38f6d7fbee1256bc89b1325a923dbb8a8b929488
[ "Unlicense" ]
null
null
null
import threading import time from typing import Callable, List, Dict class Scheduler(): def __init__(self, interval:int, function:Callable, *args, **kwargs) -> None: self._timer = None self.interval = interval self.function = function self.args = args self.kwargs = kwargs ...
29.064516
81
0.584906
107
901
4.757009
0.299065
0.058939
0.127701
0.10609
0.172888
0.094303
0
0
0
0
0
0
0.306326
901
31
82
29.064516
0.8144
0
0
0.185185
0
0
0
0
0
0
0
0
0
1
0.148148
false
0
0.111111
0
0.296296
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
0
0
1
0
2ef0ae28dcfa3b8a86e8b20eea0bb85319cef17d
356
py
Python
polyglotdb/query/discourse/query.py
michaelhaaf/PolyglotDB
7640212c7062cf44ae911081241ce83a26ced2eb
[ "MIT" ]
25
2016-01-28T20:47:07.000Z
2021-11-29T16:13:07.000Z
polyglotdb/query/discourse/query.py
michaelhaaf/PolyglotDB
7640212c7062cf44ae911081241ce83a26ced2eb
[ "MIT" ]
120
2016-04-07T17:55:09.000Z
2022-03-24T18:30:10.000Z
polyglotdb/query/discourse/query.py
PhonologicalCorpusTools/PolyglotDB
7640212c7062cf44ae911081241ce83a26ced2eb
[ "MIT" ]
10
2015-12-03T20:06:58.000Z
2021-02-11T03:02:48.000Z
from ..base import BaseQuery from .attributes import DiscourseNode class DiscourseQuery(BaseQuery): """ Class for generating a Cypher query over discourses """ def __init__(self, corpus): to_find = DiscourseNode(corpus=corpus.corpus_name, hierarchy=corpus.hierarchy) super(DiscourseQue...
27.384615
86
0.730337
40
356
6.225
0.6
0.064257
0.096386
0
0
0
0
0
0
0
0
0
0.182584
356
12
87
29.666667
0.85567
0.143258
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
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
1
0
1
0
0
2
2ef23bdc25e698b08ae27de75aab909449244e12
5,166
py
Python
main.py
dcabezas98/DDSI
011574ce8c084363090271cbc17510e4b443905c
[ "MIT" ]
null
null
null
main.py
dcabezas98/DDSI
011574ce8c084363090271cbc17510e4b443905c
[ "MIT" ]
null
null
null
main.py
dcabezas98/DDSI
011574ce8c084363090271cbc17510e4b443905c
[ "MIT" ]
1
2021-01-09T18:27:23.000Z
2021-01-09T18:27:23.000Z
import pymysql as mdb import sys class App(object): def __init__(self, ip, user, passwd, db): # Menú de la interfaz de texto self.mainMenu='''\n Videoclub: ------------------ 0: Salir. 1: Dar de alta un socio. 2: Dar de baja un socio. 3: Cerrar un alquiler. 4: Consultar DVDs para una película. 5: Con...
30.210526
139
0.578784
632
5,166
4.705696
0.246835
0.04573
0.042367
0.03228
0.370545
0.317081
0.226631
0.184264
0.173167
0.146268
0
0.01626
0.285714
5,166
170
140
30.388235
0.789702
0.026326
0
0.221239
0
0
0.333731
0.011343
0
0
0
0
0
1
0.070796
false
0.044248
0.017699
0
0.106195
0.061947
0
0
0
null
0
0
0
0
0
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
1
0
2ef25b45df51b2f3ee20981837c4f8427530bc4f
2,533
py
Python
pymc3/plots/energyplot.py
rsumner31/pymc3-2
e824294ddfb45610536cad07394b8c290904c38d
[ "Apache-2.0" ]
1
2019-03-01T06:05:48.000Z
2019-03-01T06:05:48.000Z
pymc3/plots/energyplot.py
shunanzhang/pymc3
fde52a4a69be1b0887a2f7861801fb48c941bbe6
[ "Apache-2.0" ]
null
null
null
pymc3/plots/energyplot.py
shunanzhang/pymc3
fde52a4a69be1b0887a2f7861801fb48c941bbe6
[ "Apache-2.0" ]
null
null
null
import warnings import numpy as np try: import matplotlib.pyplot as plt except ImportError: # mpl is optional pass from .kdeplot import kdeplot def energyplot(trace, kind='kde', figsize=None, ax=None, legend=True, shade=0.35, bw=4.5, frame=True, kwargs_shade=None, **kwargs): """Plot energ...
28.460674
99
0.620213
338
2,533
4.612426
0.426036
0.042335
0.006414
0.024375
0.074407
0.047466
0.047466
0.047466
0.047466
0
0
0.009439
0.288985
2,533
88
100
28.784091
0.856191
0.397947
0
0.243902
0
0
0.108511
0
0
0
0
0
0
1
0.02439
false
0.04878
0.121951
0
0.195122
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
0
0
1
0
2ef3c2563763d28a137338103321c672c4fc64a8
6,852
py
Python
portfolio/forms.py
DriptaSenapati/myPortfolio
094bf3054dcbff17cd6a8bb6527addcdda780f7d
[ "MIT" ]
null
null
null
portfolio/forms.py
DriptaSenapati/myPortfolio
094bf3054dcbff17cd6a8bb6527addcdda780f7d
[ "MIT" ]
null
null
null
portfolio/forms.py
DriptaSenapati/myPortfolio
094bf3054dcbff17cd6a8bb6527addcdda780f7d
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileAllowed, FileRequired from wtforms import StringField, PasswordField, SubmitField, BooleanField, FieldList, TextAreaField, IntegerField from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError from wtforms.fields.html5...
42.559006
113
0.627116
764
6,852
5.503927
0.174084
0.038526
0.046373
0.035672
0.486326
0.455886
0.4283
0.426397
0.397146
0.397146
0
0.001961
0.255838
6,852
161
114
42.559006
0.82271
0.018535
0
0.485294
0
0
0.118697
0
0
0
0
0
0
1
0.102941
false
0.014706
0.051471
0
0.404412
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
0
0
1
0
2ef74fe559909b6050f7a7dd49867a660fe27a5c
14,986
py
Python
src/HumanPose.py
burgessadrien/human-pose
a63f75f83f35f195b5195ce5518c1101f074196b
[ "MIT" ]
null
null
null
src/HumanPose.py
burgessadrien/human-pose
a63f75f83f35f195b5195ce5518c1101f074196b
[ "MIT" ]
null
null
null
src/HumanPose.py
burgessadrien/human-pose
a63f75f83f35f195b5195ce5518c1101f074196b
[ "MIT" ]
null
null
null
from imutils.object_detection import non_max_suppression from imutils import paths, resize import numpy as np import argparse import imutils import cv2 from math import cos, sin, atan import time def find_body_part(mask, ratio_y, ratio_x): bodyPartAverage = 0 bodyPart = np.zeros( (int(mask.shape[0] / ...
37.465
133
0.61117
2,348
14,986
3.716354
0.151618
0.013408
0.014898
0.009168
0.252464
0.206853
0.176828
0.155512
0.127206
0.12308
0
0.072638
0.243027
14,986
399
134
37.558897
0.69658
0.13239
0
0.127341
0
0
0.013673
0.004326
0
0
0
0
0
1
0.052434
false
0
0.029963
0.003745
0.131086
0.007491
0
0
0
null
0
0
0
0
0
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
1
0
2ef86256c31b8117ad52ae4437715bf8e3b2b1af
2,027
py
Python
zekeconv/zekeconv.py
StanislavKlenin/zekeconv
a690bd9ece0151c0780dbb1780fdd4b7bcd7546c
[ "Apache-2.0" ]
null
null
null
zekeconv/zekeconv.py
StanislavKlenin/zekeconv
a690bd9ece0151c0780dbb1780fdd4b7bcd7546c
[ "Apache-2.0" ]
null
null
null
zekeconv/zekeconv.py
StanislavKlenin/zekeconv
a690bd9ece0151c0780dbb1780fdd4b7bcd7546c
[ "Apache-2.0" ]
null
null
null
#!/bin/env python from __future__ import print_function import argparse import traceback import sys from . import io from . import utl def main(): parser = argparse.ArgumentParser(description="convert between zeke dump files and directory structures") parser.add_argument("-f", "--file", metavar="DUMP", he...
38.245283
112
0.587074
238
2,027
4.87395
0.390756
0.041379
0.044828
0.046552
0.067241
0
0
0
0
0
0
0.004848
0.287617
2,027
52
113
38.980769
0.798476
0.043907
0
0.105263
0
0
0.219638
0
0
0
0
0
0
1
0.026316
false
0
0.157895
0
0.210526
0.131579
0
0
0
null
0
0
0
0
0
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
1
0
2ef8ca77af067b0f173acd5d082a652fd6a6e7d5
5,470
py
Python
clin/run.py
herojan/clin
442d909cfd4e996987801e7aa47746af6d1df049
[ "MIT" ]
null
null
null
clin/run.py
herojan/clin
442d909cfd4e996987801e7aa47746af6d1df049
[ "MIT" ]
null
null
null
clin/run.py
herojan/clin
442d909cfd4e996987801e7aa47746af6d1df049
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import logging import os from pathlib import Path from typing import Optional import click from clin.clinfile import calculate_scope from clin.config import ConfigurationError, load_config from clin.nakadi import Nakadi, NakadiError from clin.processor import Processor, ProcessingError from cli...
28.195876
88
0.635466
678
5,470
5.028024
0.205015
0.059842
0.026401
0.044881
0.524787
0.50132
0.50132
0.464359
0.464359
0.432092
0
0.002359
0.225046
5,470
193
89
28.341969
0.80184
0.050457
0
0.546584
0
0
0.145345
0
0
0
0
0
0
1
0.024845
false
0.006211
0.068323
0
0.093168
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
0
0
1
0
2ef9edaf1fc48d11773cf0a061364a9a10b3eee7
13,668
py
Python
movo_common/movo_ros/src/movo/movo_control_marker.py
zkytony/kinova-movo
37d7454b2dc589d44133f3913f567b9cc321a66d
[ "BSD-3-Clause" ]
1
2021-06-24T19:20:01.000Z
2021-06-24T19:20:01.000Z
movo_common/movo_ros/src/movo/movo_control_marker.py
ALAN-NUS/kinova_movo
05a0451f5c563359ae0ffe3280e1df85caec9e55
[ "BSD-3-Clause" ]
null
null
null
movo_common/movo_ros/src/movo/movo_control_marker.py
ALAN-NUS/kinova_movo
05a0451f5c563359ae0ffe3280e1df85caec9e55
[ "BSD-3-Clause" ]
1
2020-01-21T11:05:24.000Z
2020-01-21T11:05:24.000Z
"""-------------------------------------------------------------------- Copyright (c) 2017, Kinova Robotics inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code mus...
44.090323
117
0.631694
1,654
13,668
4.990931
0.217654
0.038643
0.050878
0.018655
0.486856
0.418171
0.397698
0.342459
0.299091
0.299091
0
0.011165
0.272608
13,668
309
118
44.23301
0.819151
0.159204
0
0.275701
0
0
0.044236
0.008672
0
0
0
0
0
1
0.037383
false
0.004673
0.065421
0
0.116822
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
0
0
1
0
2efbe656bc169d6f0a48e304d2e05f7b7b7fd9bb
412
py
Python
setup.py
shaunwbell/EcoFOCIpy
266e8e49b6ee1326aae9d8cf583a98f31d9f271d
[ "MIT" ]
null
null
null
setup.py
shaunwbell/EcoFOCIpy
266e8e49b6ee1326aae9d8cf583a98f31d9f271d
[ "MIT" ]
62
2021-03-23T18:40:32.000Z
2022-01-18T22:34:47.000Z
setup.py
shaunwbell/EcoFOCIpy
266e8e49b6ee1326aae9d8cf583a98f31d9f271d
[ "MIT" ]
null
null
null
# Copyright (c) 2021 EcoFOCIpy """Setup script for installing EcoFOCIpy.""" import sys from setuptools import setup if sys.version_info[0] < 3: error = """ EcoFOCIpy requires the Python 3.8 or above, but will install on all versions of python3. Python {py} detected. """.format(py='.'.join([str(v...
20.6
67
0.65534
61
412
4.393443
0.721311
0.074627
0.104478
0
0
0
0
0
0
0
0
0.043077
0.211165
412
19
68
21.684211
0.781538
0.191748
0
0
0
0
0.398773
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2efdf97fa86eb1016906f47bfcb322cf41ba7f62
288
py
Python
opinion_mining/utils/remove_stop_words.py
ricardomilhazes/WellBeingAnalysis
f563ad2f059f9ff55e1f67a94e75ff1b5ec5f6ea
[ "MIT" ]
2
2021-05-06T11:11:33.000Z
2021-06-15T19:15:38.000Z
opinion_mining/utils/remove_stop_words.py
ricardomilhazes/WellBeingAnalysis
f563ad2f059f9ff55e1f67a94e75ff1b5ec5f6ea
[ "MIT" ]
9
2021-04-07T13:47:23.000Z
2021-06-28T16:08:52.000Z
opinion_mining/utils/remove_stop_words.py
ricardomilhazes/WellBeingAnalysis
f563ad2f059f9ff55e1f67a94e75ff1b5ec5f6ea
[ "MIT" ]
2
2021-11-05T20:35:09.000Z
2021-12-04T14:38:17.000Z
from nltk.corpus import stopwords # Remove stop words stop_words = set(stopwords.words("english")) def remove_stop_words(sentence): filtered_sentence = [] for w in sentence: if w not in stop_words: filtered_sentence.append(w) return filtered_sentence
19.2
44
0.701389
38
288
5.131579
0.526316
0.184615
0.153846
0
0
0
0
0
0
0
0
0
0.225694
288
14
45
20.571429
0.874439
0.059028
0
0
0
0
0.026022
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2efdff39a69d773c8b9c3618b0312529b55b1b03
3,781
py
Python
utils/helper.py
Shiien/verify_rl_torch
45866609ac55fcf99aaaa89df94573acf35580d2
[ "MIT" ]
1
2022-03-22T14:59:01.000Z
2022-03-22T14:59:01.000Z
utils/helper.py
Shiien/verify_rl_torch
45866609ac55fcf99aaaa89df94573acf35580d2
[ "MIT" ]
null
null
null
utils/helper.py
Shiien/verify_rl_torch
45866609ac55fcf99aaaa89df94573acf35580d2
[ "MIT" ]
null
null
null
import os import torch import random import numpy as np import math import torch.distributions as pyd import psutil import datetime class TanhTransform(pyd.transforms.Transform): domain = pyd.constraints.real codomain = pyd.constraints.interval(-1.0, 1.0) bijective = True sign = +1 def __init__(s...
25.375839
137
0.633166
497
3,781
4.623742
0.380282
0.034813
0.036554
0.031332
0.187119
0.187119
0.187119
0.187119
0.187119
0.187119
0
0.022671
0.253372
3,781
148
138
25.547297
0.791357
0.130918
0
0.215054
0
0
0.015284
0
0
0
0
0
0
1
0.236559
false
0
0.086022
0.064516
0.537634
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
1
0
0
2
2c004e45ea18286ed9625f6273b5024c69f28852
7,374
py
Python
ajastin.py
taloprojekti/SP2017
c5d314169c051e924429f4c3362f3b1be244edb0
[ "MIT" ]
null
null
null
ajastin.py
taloprojekti/SP2017
c5d314169c051e924429f4c3362f3b1be244edb0
[ "MIT" ]
null
null
null
ajastin.py
taloprojekti/SP2017
c5d314169c051e924429f4c3362f3b1be244edb0
[ "MIT" ]
2
2017-02-06T15:30:38.000Z
2019-03-05T15:01:40.000Z
def downloader(year, month, day, week): #downloads the data from Nordpool from download import download from jsonhandler import importJSON, writeJSON time = str("{:4d}-{:02d}-{:02d}".format(year, month,day)) data = importJSON("tasklists/tasklist.json") if time != data["downloader_time"]: ...
34.138889
157
0.527122
874
7,374
4.375286
0.289474
0.023536
0.005492
0.013598
0.158996
0.107741
0.088389
0.080544
0.080544
0.064854
0
0.0242
0.355574
7,374
215
158
34.297674
0.780513
0.134255
0
0.267081
0
0
0.099968
0.017029
0
0
0
0
0
1
0.049689
false
0.012422
0.099379
0
0.198758
0.10559
0
0
0
null
0
0
0
0
0
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
1
0
2c0089beb61c511d6d88942a670bc8195c3371e1
4,213
py
Python
executor/tests/transpiler/test_bai_kubernetes_object_builder.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
6
2020-09-29T09:03:04.000Z
2022-03-14T06:52:25.000Z
executor/tests/transpiler/test_bai_kubernetes_object_builder.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
null
null
null
executor/tests/transpiler/test_bai_kubernetes_object_builder.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
4
2020-10-01T07:49:22.000Z
2021-06-16T19:44:12.000Z
import base64 import json import random from unittest.mock import create_autospec import pytest from pytest import fixture from bai_kafka_utils.executors.descriptor import BenchmarkDescriptor, DescriptorError from transpiler.bai_knowledge import ( BaiKubernetesObjectBuilder, SingleRunBenchmarkKubernetesObject...
31.676692
115
0.751484
470
4,213
6.395745
0.210638
0.07984
0.083832
0.028277
0.642715
0.619428
0.619428
0.607119
0.527944
0.527944
0
0.01078
0.163304
4,213
132
116
31.916667
0.841986
0
0
0.363636
0
0
0.056017
0.015666
0
0
0
0
0.131313
1
0.10101
false
0.030303
0.090909
0.010101
0.212121
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
0
0
1
0
2c01ab269b47c91f4b509f0f33edc7280032fd38
393
py
Python
tests/constants/time.py
nox237/CTFd
ff6e093fa6bf23b526ecddf9271195b429240ff4
[ "Apache-2.0" ]
3,592
2017-03-12T19:44:07.000Z
2022-03-30T16:03:33.000Z
tests/constants/time.py
nox237/CTFd
ff6e093fa6bf23b526ecddf9271195b429240ff4
[ "Apache-2.0" ]
1,648
2017-03-12T23:44:34.000Z
2022-03-31T15:28:38.000Z
tests/constants/time.py
nox237/CTFd
ff6e093fa6bf23b526ecddf9271195b429240ff4
[ "Apache-2.0" ]
1,736
2017-03-13T14:01:28.000Z
2022-03-31T08:14:24.000Z
from CTFd.constants import RawEnum class FreezeTimes(str, RawEnum): NOT_STARTED = "2017-10-3" # Tuesday, October 3, 2017 STARTED = "2017-10-5" # Thursday, October 5, 2017 ENDED = "2017-10-7" # Saturday, October 7, 2017 START = "1507089600" # Wednesday, October 4, 2017 12:00:00 AM GMT-04:00 DST ...
39.3
80
0.666667
62
393
4.209677
0.548387
0.068966
0.099617
0.076628
0.168582
0.168582
0.168582
0.168582
0.168582
0
0
0.276527
0.208651
393
9
81
43.666667
0.562701
0.455471
0
0
0
0
0.225962
0
0
0
0
0
0
1
0
false
0
0.142857
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
2
2c02adf446921c10d0ddaf0fd8239df8c3089858
1,050
py
Python
bootstrapvz/plugins/chef/tasks.py
wrigri/bootstrap-vz
52b5846cb5acd5551fd818b9e84f42683455a3e5
[ "Apache-2.0" ]
null
null
null
bootstrapvz/plugins/chef/tasks.py
wrigri/bootstrap-vz
52b5846cb5acd5551fd818b9e84f42683455a3e5
[ "Apache-2.0" ]
null
null
null
bootstrapvz/plugins/chef/tasks.py
wrigri/bootstrap-vz
52b5846cb5acd5551fd818b9e84f42683455a3e5
[ "Apache-2.0" ]
null
null
null
from bootstrapvz.base import Task from bootstrapvz.common import phases import os class CheckAssetsPath(Task): description = 'Checking whether the assets path exist' phase = phases.preparation @classmethod def run(cls, info): from bootstrapvz.common.exceptions import TaskError assets = info.manifest.plugins[...
26.923077
89
0.746667
141
1,050
5.539007
0.390071
0.076825
0.080666
0.076825
0.366197
0.291933
0.202305
0.202305
0
0
0
0
0.140952
1,050
38
90
27.631579
0.865854
0
0
0.344828
0
0
0.195238
0
0
0
0
0
0
1
0.103448
false
0
0.172414
0
0.586207
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
2c068286183dd2c4b572929f61ede382d5ddfb4a
295
py
Python
evennia/comms/migrations/0012_merge_20170617_2017.py
fermuch/evennia
8961baa0a5b9b5419f864a144f080acc68a7ad0f
[ "BSD-3-Clause" ]
null
null
null
evennia/comms/migrations/0012_merge_20170617_2017.py
fermuch/evennia
8961baa0a5b9b5419f864a144f080acc68a7ad0f
[ "BSD-3-Clause" ]
null
null
null
evennia/comms/migrations/0012_merge_20170617_2017.py
fermuch/evennia
8961baa0a5b9b5419f864a144f080acc68a7ad0f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-17 20:17 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('comms', '0011_auto_20170606_1731'), ('comms', '0011_auto_20170217_2039'), ] operations = [ ]
17.352941
48
0.623729
36
295
4.944444
0.805556
0.101124
0.146067
0
0
0
0
0
0
0
0
0.216814
0.233898
295
16
49
18.4375
0.570796
0.230508
0
0
1
0
0.25
0.205357
0
0
0
0
0
1
0
false
0
0.125
0
0.5
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
2c06caf4f37892f4a59ced3cc2b2789dc5ebd2dd
370
py
Python
SUL1/sample/Face_recognition/recog.py
ddddwee1/SULT
0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784
[ "WTFPL" ]
18
2017-12-19T07:55:17.000Z
2020-03-12T11:07:45.000Z
SUL1/sample/Face_recognition/recog.py
ddddwee1/SULT
0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784
[ "WTFPL" ]
1
2019-04-18T10:31:41.000Z
2019-05-23T06:47:24.000Z
SUL1/sample/Face_recognition/recog.py
ddddwee1/SULT
0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784
[ "WTFPL" ]
5
2018-06-06T00:51:48.000Z
2020-03-12T11:07:46.000Z
import resnet3 as net import numpy as np import cv2 img = cv2.imread('9_1.jpg') res1 = net.eval(img.reshape([-1,128,128,3])) img = cv2.imread('10_1.jpg') res2 = net.eval(img.reshape([-1,128,128,3])) res1 = res1/np.linalg.norm(res1) res2 = res2/np.linalg.norm(res2) cosres = res1*res2 cosres = cosres.sum() print(...
20.555556
44
0.681081
66
370
3.787879
0.409091
0.048
0.096
0.136
0.2
0.2
0.2
0.2
0
0
0
0.113846
0.121622
370
18
45
20.555556
0.655385
0
0
0
0
0
0.072776
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0.153846
0
0
0
null
0
0
0
0
0
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
1
0
2c07a21caf70e36b4396fdb8399d6c1facb5f0c6
2,988
py
Python
google-cloud-sdk/lib/surface/config/configurations/delete.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/config/configurations/delete.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/config/configurations/delete.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
3
2017-07-27T18:44:13.000Z
2020-07-25T17:48:53.000Z
# Copyright 2015 Google Inc. 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 applicable law or ag...
36.888889
79
0.710843
352
2,988
5.960227
0.460227
0.028599
0.041945
0.015253
0.026692
0
0
0
0
0
0
0.004691
0.215194
2,988
80
80
37.35
0.889979
0.248996
0
0.042553
0
0
0.452123
0
0
0
0
0
0
1
0.042553
false
0
0.12766
0
0.212766
0.042553
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c07c0573397722d3a10b277c708abff836c1571
1,161
py
Python
snekomatic/db.py
wgwz/snekomatic
316f5c096aad7011953433324829e4614c283cd9
[ "Apache-2.0", "MIT" ]
1
2021-07-07T14:36:06.000Z
2021-07-07T14:36:06.000Z
snekomatic/db.py
wgwz/snekomatic
316f5c096aad7011953433324829e4614c283cd9
[ "Apache-2.0", "MIT" ]
1
2021-06-02T02:37:16.000Z
2021-06-02T02:37:16.000Z
snekomatic/db.py
webknjaz/snekomatic
3dbd84155aee5b485c7626ff2e471b949e971616
[ "Apache-2.0", "MIT" ]
null
null
null
import os import psycopg2 class PersistentStringSet: def __init__(self, name): self._table_name = f"persistent_set_{name}" def _conn(self): conn = psycopg2.connect(os.environ["DATABASE_URL"]) cursor = conn.cursor() cursor.execute( f""" CREATE TABLE IF N...
25.8
71
0.459087
107
1,161
4.775701
0.411215
0.097847
0.101761
0.129159
0.2818
0.2818
0.223092
0.223092
0.223092
0.223092
0
0.004566
0.434109
1,161
44
72
26.386364
0.773212
0
0
0.435897
0
0
0.314384
0.018088
0
0
0
0
0
1
0.102564
false
0
0.051282
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c08732fa0a75fdc2e73479ce826dbcb4dc29a51
71
py
Python
src/meerkat/exceptions.py
Pawamoy/django-meerkat
5d754120a32695caa7b24c801b858c8f1e904283
[ "0BSD" ]
10
2016-06-09T08:23:10.000Z
2017-07-31T01:26:06.000Z
src/meerkat/exceptions.py
Pawamoy/django-meerkat
5d754120a32695caa7b24c801b858c8f1e904283
[ "0BSD" ]
11
2016-06-14T14:07:44.000Z
2017-05-24T12:49:34.000Z
src/meerkat/exceptions.py
Pawamoy/django-meerkat
5d754120a32695caa7b24c801b858c8f1e904283
[ "0BSD" ]
2
2018-03-14T02:14:03.000Z
2019-06-06T06:54:13.000Z
# -*- coding: utf-8 -*- class RateExceededError(Exception): pass
11.833333
35
0.633803
7
71
6.428571
1
0
0
0
0
0
0
0
0
0
0
0.017544
0.197183
71
5
36
14.2
0.77193
0.295775
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
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
1
1
0
0
0
0
0
4
2c0874ebe77cdf2687aca06582ce38fe6c2c0b1e
2,193
py
Python
Silver.py
aWonderWorld/bilibili-live-tools
deaf697e5fe675a4815aa05ec1997c30d6f7c737
[ "MIT" ]
192
2018-04-18T16:11:41.000Z
2022-03-29T07:22:20.000Z
Silver.py
aWonderWorld/bilibili-live-tools
deaf697e5fe675a4815aa05ec1997c30d6f7c737
[ "MIT" ]
88
2018-03-24T17:30:27.000Z
2019-06-01T00:20:39.000Z
Silver.py
aWonderWorld/bilibili-live-tools
deaf697e5fe675a4815aa05ec1997c30d6f7c737
[ "MIT" ]
43
2018-04-21T07:38:37.000Z
2020-06-14T11:01:08.000Z
from online_net import OnlineNet import utils import printer import asyncio # 领取银瓜子 async def GetAward(): temp = await OnlineNet().req('get_time_about_silver') # print (temp['code']) #宝箱领完返回的code为-10017 if temp['code'] == -10017: printer.info(["# 今日宝箱领取完毕"]) else: time_start = temp[...
34.265625
85
0.564523
240
2,193
4.9875
0.333333
0.040936
0.056809
0.066834
0.442774
0.399332
0.399332
0.349206
0.349206
0.349206
0
0.03503
0.310078
2,193
63
86
34.809524
0.756114
0.063383
0
0.431373
0
0
0.106549
0.020528
0
0
0
0
0
1
0
false
0
0.078431
0
0.117647
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c0aca15167ff5ae1f5d402750c284f46ad21e27
1,585
py
Python
models/metrics_and_losses.py
marioviti/nn_segmentation
b754b38cd1898c0746e383ecd32d9d4c33c60b33
[ "MIT" ]
null
null
null
models/metrics_and_losses.py
marioviti/nn_segmentation
b754b38cd1898c0746e383ecd32d9d4c33c60b33
[ "MIT" ]
null
null
null
models/metrics_and_losses.py
marioviti/nn_segmentation
b754b38cd1898c0746e383ecd32d9d4c33c60b33
[ "MIT" ]
null
null
null
from keras import backend as K from skimage.transform import resize import tensorflow as tf K.set_image_data_format('channels_last') def true_pos(y_true, y_pred): return K.sum(y_true * K.round(y_pred)) def false_pos(y_true, y_pred): return K.sum(y_true * (1. - K.round(y_pred))) def false_neg(y_true, y_pred...
32.346939
86
0.68265
269
1,585
3.776952
0.301115
0.103346
0.070866
0.11811
0.307087
0.25
0.135827
0.097441
0.097441
0.097441
0
0.003975
0.206309
1,585
49
87
32.346939
0.803657
0.264353
0
0
0
0
0.011722
0
0
0
0
0
0
1
0.307692
false
0
0.115385
0.192308
0.730769
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
1
1
0
0
3
2c0c97ce7d6fee1a7e7c8b3b3c48cdc6e87f84af
1,968
py
Python
rockiot/app/migrations/0010_auto_20210806_2357.py
isocserbia/rockiot
fc0c52cca4ca862ba570d6b2c64b8d30f8989f05
[ "Apache-2.0" ]
2
2022-01-23T11:03:37.000Z
2022-02-26T10:54:10.000Z
rockiot/app/migrations/0010_auto_20210806_2357.py
isocserbia/rockiot
fc0c52cca4ca862ba570d6b2c64b8d30f8989f05
[ "Apache-2.0" ]
null
null
null
rockiot/app/migrations/0010_auto_20210806_2357.py
isocserbia/rockiot
fc0c52cca4ca862ba570d6b2c64b8d30f8989f05
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-06 23:57 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('app', '0009_auto_20210806_2012'), ] operations = [ migrations.RemoveField( model_name='device',...
32.8
110
0.569106
186
1,968
5.849462
0.333333
0.074449
0.082721
0.104779
0.599265
0.567096
0.426471
0.352941
0.352941
0.261029
0
0.03132
0.318598
1,968
59
111
33.355932
0.780015
0.022866
0
0.641509
1
0
0.150963
0.0557
0
0
0
0
0
1
0
false
0.018868
0.037736
0
0.09434
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
2c0ca091ba8017a6ea07dedf32869a44838d16fc
537
py
Python
basics01/esacpechar.py
DevAnuragGarg/Python-Learning-Basics
2c58c82ba79bf2c7c3317628222554133dd50713
[ "Apache-2.0" ]
1
2020-06-09T09:49:02.000Z
2020-06-09T09:49:02.000Z
basics01/esacpechar.py
DevAnuragGarg/Python-Learning-Basics
2c58c82ba79bf2c7c3317628222554133dd50713
[ "Apache-2.0" ]
null
null
null
basics01/esacpechar.py
DevAnuragGarg/Python-Learning-Basics
2c58c82ba79bf2c7c3317628222554133dd50713
[ "Apache-2.0" ]
null
null
null
split_string = "This string has been \nsplit over\nseveral\nlines" print(split_string) tabbed_string = "1\t2\t3\t" print(tabbed_string) print('Hello what\'s the situation like. He\'s is not responding') print("Hello what's the situation like. He's is not responding") print("""Hello what's the situation like. He's is ...
23.347826
68
0.713222
93
537
4.075269
0.387097
0.131926
0.110818
0.118734
0.712401
0.617414
0.617414
0.617414
0.617414
0.617414
0
0.006424
0.130354
537
22
69
24.409091
0.805139
0
0
0.117647
0
0
0.640596
0.09311
0
0
0
0
0
1
0
false
0
0
0
0
0.529412
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
2c0ca4433555acb470f71744f8f25a30302d9742
299
py
Python
tests/app/libs/test_utils.py
pricem14pc/eq-questionnaire-runner
54cc2947ba181a2673ea1fb7cf6b4acdd609e06b
[ "MIT" ]
null
null
null
tests/app/libs/test_utils.py
pricem14pc/eq-questionnaire-runner
54cc2947ba181a2673ea1fb7cf6b4acdd609e06b
[ "MIT" ]
null
null
null
tests/app/libs/test_utils.py
pricem14pc/eq-questionnaire-runner
54cc2947ba181a2673ea1fb7cf6b4acdd609e06b
[ "MIT" ]
null
null
null
from app.helpers.uuid_helper import is_valid_uuid from app.libs.utils import convert_tx_id def test_convert_tx_id(): tx_id_to_convert = "bc26d5ef-8475-4710-ac82-753a0a150708" assert is_valid_uuid(tx_id_to_convert) assert convert_tx_id(tx_id_to_convert) == "BC26 - D5EF - 8475 - 4710"
29.9
73
0.782609
51
299
4.176471
0.470588
0.112676
0.15493
0.183099
0.225352
0.225352
0.225352
0
0
0
0
0.131274
0.133779
299
9
74
33.222222
0.69112
0
0
0
0
0
0.204013
0.120401
0
0
0
0
0.333333
1
0.166667
false
0
0.333333
0
0.5
0
0
0
0
null
0
0
1
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
1
0
0
0
0
3
2c0d77717e0ceda03134bdd343f10e5c508f5d65
2,381
py
Python
csiadmin/urls.py
samarthanand12/Erp-Based-Event-Management-System
bb494c951db859fc9e89903a37ddd457b248b638
[ "MIT" ]
null
null
null
csiadmin/urls.py
samarthanand12/Erp-Based-Event-Management-System
bb494c951db859fc9e89903a37ddd457b248b638
[ "MIT" ]
null
null
null
csiadmin/urls.py
samarthanand12/Erp-Based-Event-Management-System
bb494c951db859fc9e89903a37ddd457b248b638
[ "MIT" ]
null
null
null
"""csi URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
49.604167
99
0.726585
329
2,381
5.06079
0.246201
0.057658
0.009009
0.014414
0.07027
0.07027
0.045045
0
0
0
0
0.006679
0.119698
2,381
47
100
50.659574
0.787691
0.259975
0
0
0
0
0.329345
0.026211
0
0
0
0
0
1
0
false
0.096774
0.096774
0
0.096774
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
2c0dcca26a8379d174630dc910c5bb9b01b371c9
1,179
py
Python
cryptonite/challenge/migrations/0009_cryptographer_user.py
pshrmn/cryptonite
3f83f34ae6c1733568578c6296e6396872fa5513
[ "MIT" ]
1
2018-01-15T14:44:36.000Z
2018-01-15T14:44:36.000Z
cryptonite/challenge/migrations/0009_cryptographer_user.py
pshrmn/cryptonite
3f83f34ae6c1733568578c6296e6396872fa5513
[ "MIT" ]
null
null
null
cryptonite/challenge/migrations/0009_cryptographer_user.py
pshrmn/cryptonite
3f83f34ae6c1733568578c6296e6396872fa5513
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-21 06:09 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cryptographer', '0001_cryptographer_user'), ('challen...
31.026316
115
0.614928
110
1,179
6.436364
0.5
0.045198
0.059322
0.09322
0.30791
0.30791
0.169492
0.169492
0.169492
0.169492
0
0.027714
0.265479
1,179
37
116
31.864865
0.789838
0.05598
0
0.266667
1
0
0.185586
0.063964
0
0
0
0
0
1
0
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2c0e286930dd876ebcf8ffacab4cb8d169bb79d5
1,219
py
Python
docker/features/migration_utils.py
krdpk17/twitter-neo4j
bb7e62743651082726db373d118dcc90cce48532
[ "Apache-2.0" ]
1
2020-04-30T07:09:43.000Z
2020-04-30T07:09:43.000Z
docker/features/migration_utils.py
krdpk17/twitter-neo4j
bb7e62743651082726db373d118dcc90cce48532
[ "Apache-2.0" ]
null
null
null
docker/features/migration_utils.py
krdpk17/twitter-neo4j
bb7e62743651082726db373d118dcc90cce48532
[ "Apache-2.0" ]
1
2020-05-14T22:33:31.000Z
2020-05-14T22:33:31.000Z
import pdb import argparse from config.load_config import load_config load_config() class CommandOptions: dmcheckuserscreenname = None class Migration: def __init__(self): #tested self.cmd_options = CommandOptions() def read_command(self): #tested parser = argparse.Argumen...
32.945946
100
0.725185
126
1,219
6.666667
0.420635
0.033333
0.066667
0.125
0
0
0
0
0
0
0
0
0.201805
1,219
37
101
32.945946
0.863309
0.014766
0
0
0
0
0.10759
0.019183
0
0
0
0
0
1
0.185185
false
0
0.148148
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c0f7bcba9525064478def51911f22f43bace868
2,055
py
Python
django_js_reverse/tests/unit_tests.py
hyperair/django-js-reverse
d3e6648778b9eda69acf25616c0bfb9274f5e7b4
[ "BSD-3-Clause" ]
null
null
null
django_js_reverse/tests/unit_tests.py
hyperair/django-js-reverse
d3e6648778b9eda69acf25616c0bfb9274f5e7b4
[ "BSD-3-Clause" ]
null
null
null
django_js_reverse/tests/unit_tests.py
hyperair/django-js-reverse
d3e6648778b9eda69acf25616c0bfb9274f5e7b4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- from __future__ import unicode_literals import os import sys os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.test.client import Client from django.utils import unittest from django.test import TestCase from django.test.utils import override_settings class J...
35.431034
121
0.686618
264
2,055
5.022727
0.291667
0.060332
0.073906
0.121418
0.426848
0.405732
0.371041
0.319759
0.319759
0.273756
0
0.008159
0.164964
2,055
57
122
36.052632
0.764569
0.019951
0
0.146341
0
0.02439
0.22664
0.091451
0
0
0
0
0.170732
1
0.195122
false
0
0.195122
0
0.463415
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
0
0
1
0
2c0ffd20ed5cf644e56c8cdc6baf64027cec15dd
4,034
py
Python
scripts/test_and_fuse.py
ubiquity6/MVSNet
7dc026acb019d270e79de7be4a5cfcb33863127f
[ "MIT" ]
7
2019-07-15T08:49:38.000Z
2019-11-30T01:09:12.000Z
scripts/test_and_fuse.py
ubiquity6/MVSNet
7dc026acb019d270e79de7be4a5cfcb33863127f
[ "MIT" ]
10
2019-07-17T00:00:29.000Z
2022-03-11T23:50:36.000Z
scripts/test_and_fuse.py
ubiquity6/MVSNet
7dc026acb019d270e79de7be4a5cfcb33863127f
[ "MIT" ]
3
2019-08-02T09:06:32.000Z
2021-07-06T11:49:55.000Z
import os import subprocess import argparse import utils as ut import time """ A simple script for running prediction on a multiple sessions, fusing the resulting point clouds, and then uploading the results to sketchfab, as well as copying them to a more convenient location on the file system. """ def write_results...
47.458824
141
0.658899
558
4,034
4.562724
0.306452
0.038885
0.073449
0.02828
0.24077
0.15868
0.141791
0.119796
0.092302
0.042419
0
0.001933
0.23054
4,034
84
142
48.02381
0.818299
0.041646
0
0.086957
0
0
0.259137
0.034075
0
0
0
0
0
1
0.043478
false
0.014493
0.072464
0
0.130435
0.057971
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c10c32184214d224d14e5d351cf14cf93695fa6
349
py
Python
Mundo 2/ex051.py
torvigoes/Exercicios-Python3
1c1ef59087405cd2272808802fd00fe0bb49a5fd
[ "MIT" ]
1
2021-01-06T22:12:30.000Z
2021-01-06T22:12:30.000Z
Mundo 2/ex051.py
torvigoes/Exercicios-Python3
1c1ef59087405cd2272808802fd00fe0bb49a5fd
[ "MIT" ]
null
null
null
Mundo 2/ex051.py
torvigoes/Exercicios-Python3
1c1ef59087405cd2272808802fd00fe0bb49a5fd
[ "MIT" ]
null
null
null
print(f'{"CÁLCULO DE PROGRESSÃO ARITMÉTICA":=^60}') print() a1 = int(input('Digite o primeiro termo da PA: ')) r = int(input('Digite a razão da PA: ')) an = a1 + 10 * r # Cálculo termo geral da PA, para saber qual o último termo da PA, "10" são a quantidade de termos # da PA for c in range(a1, an, r): print(f"{c...
29.083333
116
0.630372
63
349
3.492063
0.555556
0.090909
0.127273
0
0
0
0
0
0
0
0
0.032258
0.200573
349
11
117
31.727273
0.756272
0.292264
0
0
0
0
0.42623
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
2c11e850d2be5882a095619304bc91ffdaa33b4e
7,176
py
Python
pyportall/api/models/geopandas.py
INSPIDE/pyportall
4dfd0e8908714c15e25e46eff29d6c8eb42a486e
[ "MIT" ]
null
null
null
pyportall/api/models/geopandas.py
INSPIDE/pyportall
4dfd0e8908714c15e25e46eff29d6c8eb42a486e
[ "MIT" ]
6
2021-02-08T12:34:15.000Z
2021-07-29T15:24:02.000Z
pyportall/api/models/geopandas.py
INSPIDE/pyportall
4dfd0e8908714c15e25e46eff29d6c8eb42a486e
[ "MIT" ]
null
null
null
"""Portall's GeoDataFrame wrappers.""" from __future__ import annotations import geopandas as gpd from typing import Optional from pydantic.types import UUID4 from pydantic import BaseModel, Field from pyportall.api.engine.core import APIClient, ENDPOINT_DATAFRAMES from pyportall.api.models.geojson import FeatureColl...
49.489655
340
0.659978
799
7,176
5.866083
0.216521
0.024963
0.019202
0.026883
0.654363
0.612119
0.600597
0.524643
0.506507
0.506507
0
0.136036
0.226589
7,176
144
341
49.833333
0.708468
0.271739
0
0.25
0
0
0.093109
0.028712
0
0
0
0
0
1
0.088235
false
0
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
0
0
0
0
0
1
0
2c12cfc4f635d942cbbcdbe4cf123e812f07caf7
6,778
py
Python
bsym/configuration.py
pzarabadip/bsym
605be534cad3d9b5dc89e28fa00eb82a9b7404ee
[ "MIT" ]
13
2017-08-21T13:52:30.000Z
2021-11-25T14:38:28.000Z
bsym/configuration.py
pzarabadip/bsym
605be534cad3d9b5dc89e28fa00eb82a9b7404ee
[ "MIT" ]
4
2017-08-17T11:41:06.000Z
2021-03-26T09:10:58.000Z
bsym/configuration.py
pzarabadip/bsym
605be534cad3d9b5dc89e28fa00eb82a9b7404ee
[ "MIT" ]
7
2015-11-25T14:52:12.000Z
2021-11-25T14:38:29.000Z
import numpy as np class Configuration: """ A :any:`Configuration` describes a specific arrangement of objects in the vector space of possible positions. Objects are represented by integers, with indistinguishable objects denoted by identical integers. This class subclasses `numpy.matrix <https://docs....
34.232323
165
0.614045
761
6,778
5.357424
0.22339
0.07064
0.020603
0.027471
0.309787
0.218052
0.16777
0.145695
0.117243
0.098111
0
0.003825
0.305695
6,778
197
166
34.406091
0.862516
0.528917
0
0
0
0
0.008167
0
0
0
0
0
0
1
0.288462
false
0
0.019231
0
0.557692
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
1
0
0
0
0
1
0
0
2
2c145760ea5951c02b26879a5fcb13eca0255cc1
29
py
Python
tests/__init__.py
PleXone2019/socialreaper
87fcc3b74bbed6c4f8e7f49a5f0eb8a616cf38da
[ "MIT" ]
427
2017-02-22T11:59:59.000Z
2022-03-18T11:46:55.000Z
tests/__init__.py
PleXone2019/socialreaper
87fcc3b74bbed6c4f8e7f49a5f0eb8a616cf38da
[ "MIT" ]
1
2018-06-13T02:15:10.000Z
2019-09-26T23:50:30.000Z
tests/__init__.py
PleXone2019/socialreaper
87fcc3b74bbed6c4f8e7f49a5f0eb8a616cf38da
[ "MIT" ]
94
2017-03-29T02:59:20.000Z
2022-03-23T01:09:45.000Z
from . import test_generators
29
29
0.862069
4
29
6
1
0
0
0
0
0
0
0
0
0
0
0
0.103448
29
1
29
29
0.923077
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
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
1
0
1
0
1
0
0
6
2c14b2e0a56bed2d4d83e59bf655df2bd19c3e4d
853
py
Python
classifier/classify.py
alexander7161/FaceGen
c1697a8bfc3c551a3dc2bc45078e8e4e5ae41368
[ "MIT" ]
1
2019-12-11T14:21:59.000Z
2019-12-11T14:21:59.000Z
classifier/classify.py
alexander7161/FaceGen
c1697a8bfc3c551a3dc2bc45078e8e4e5ae41368
[ "MIT" ]
31
2019-12-11T12:29:46.000Z
2022-03-12T00:20:52.000Z
classifier/classify.py
alexander7161/FaceGen
c1697a8bfc3c551a3dc2bc45078e8e4e5ae41368
[ "MIT" ]
null
null
null
from multiclass_model import MulticlassMultiLabelModel """ Classify a single image file from the filesystem. """ parser = ArgumentParser() parser.add_argument('--runname', '-n', dest='run_name', type=str, help='Name for this run, will otherwise not try to load model.') parser.a...
34.12
132
0.645955
101
853
5.306931
0.574257
0.050373
0.095149
0
0
0
0
0
0
0
0
0.016616
0.223916
853
24
133
35.541667
0.793051
0
0
0
0
0
0.287688
0.114322
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
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
0
0
0
0
0
0
0
0
1
0
2c1614ff444bb3635f1507d1bf14312b36ddae29
621
py
Python
PycharmProjects/OpenCV/Dhairya_OpenCV/10_TemplateMatching.py
dhairyashah1/Eklavya20-CatchPracticeBot
60434bf5e280d7495eab75b21566bd1eb3bbd14e
[ "Unlicense" ]
6
2021-03-29T10:25:39.000Z
2021-06-03T18:13:57.000Z
PycharmProjects/OpenCV/Dhairya_OpenCV/10_TemplateMatching.py
meshtag/Eklavya20-CatchPracticeBot
f0e625768aa49cd43df9fec379c8d7919be784b9
[ "Unlicense" ]
null
null
null
PycharmProjects/OpenCV/Dhairya_OpenCV/10_TemplateMatching.py
meshtag/Eklavya20-CatchPracticeBot
f0e625768aa49cd43df9fec379c8d7919be784b9
[ "Unlicense" ]
1
2021-01-27T13:03:06.000Z
2021-01-27T13:03:06.000Z
import numpy as np import cv2 img = cv2.imread("opencv-template-matching-python-tutorial[1].jpg") template = cv2.imread("opencv-template-for-matching[1].jpg",0) img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) w,h = template.shape[::-1] #w=width h=height res = cv2.matchTemplate(img_gray,template,cv2.TM_CCOEFF_NORMED) ...
34.5
67
0.731079
107
621
4.196262
0.504673
0.040089
0.066815
0.10245
0
0
0
0
0
0
0
0.053571
0.098229
621
18
68
34.5
0.748214
0.190016
0
0
0
0
0.169661
0.163673
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c161b21a5968da51d04494428932de95cf1e1b0
1,958
py
Python
Classes/Classes.py
micro164/AdvGame
cf27f86b5773b97de195596c512879f9e8be1a04
[ "MIT" ]
3
2017-12-31T02:41:34.000Z
2018-02-18T23:56:44.000Z
Classes/Classes.py
micro164/AdvGame
cf27f86b5773b97de195596c512879f9e8be1a04
[ "MIT" ]
null
null
null
Classes/Classes.py
micro164/AdvGame
cf27f86b5773b97de195596c512879f9e8be1a04
[ "MIT" ]
null
null
null
from enum import IntEnum from enum import Enum class Player: """Player Class""" name = "" MaxHP = 0 hp = 0 Strength = 0 Defense = 0 gold = 0 MaxExp = 100 exp = 0 lvl = 1 Pclass = "" uniqueId = 0 Inventory = dict() Equipment = dict() def __init__(self, playe...
18.826923
102
0.542901
235
1,958
4.438298
0.259574
0.014382
0.025887
0.030681
0.057526
0.057526
0.057526
0.057526
0.057526
0.057526
0
0.03271
0.344229
1,958
103
103
19.009709
0.779595
0.04954
0
0.125
0
0
0.002192
0
0
0
0
0
0
1
0.025
false
0
0.025
0
0.7125
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
2c16360d424581c214b60779daa9baad492484f7
2,311
py
Python
tests/unit/bokeh/models/test_filters.py
teresafds/bokeh
95b2a74ff463cfabdf9e3390951fa380166e6691
[ "BSD-3-Clause" ]
null
null
null
tests/unit/bokeh/models/test_filters.py
teresafds/bokeh
95b2a74ff463cfabdf9e3390951fa380166e6691
[ "BSD-3-Clause" ]
null
null
null
tests/unit/bokeh/models/test_filters.py
teresafds/bokeh
95b2a74ff463cfabdf9e3390951fa380166e6691
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
37.885246
78
0.320208
129
2,311
5.682171
0.51938
0.109141
0.103683
0.163711
0.251023
0.251023
0
0
0
0
0
0.012375
0.09087
2,311
60
79
38.516667
0.336506
0.64907
0
0
0
0
0
0
0
0
0
0
0.5
1
0.055556
false
0
0.166667
0
0.222222
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
3
2c169222381a9f7e35114a43d60f96fa4293bf26
1,481
py
Python
src/alexapi/device_platforms/desktop.py
mnoble19/AlexaPi
59c37c9f9970b12c2775358b6c59e046cdb0f475
[ "MIT" ]
null
null
null
src/alexapi/device_platforms/desktop.py
mnoble19/AlexaPi
59c37c9f9970b12c2775358b6c59e046cdb0f475
[ "MIT" ]
null
null
null
src/alexapi/device_platforms/desktop.py
mnoble19/AlexaPi
59c37c9f9970b12c2775358b6c59e046cdb0f475
[ "MIT" ]
null
null
null
import sys import time import threading from baseplatform import BasePlatform class DesktopPlatform(BasePlatform): def __init__(self, config): super(DesktopPlatform, self).__init__(config) self.__config = config self.__pconfig = config['platforms']['common'] self.__pconfig.update(config['platforms']['desk...
21.779412
77
0.741391
187
1,481
5.57754
0.320856
0.052733
0.081496
0.060403
0.049856
0
0
0
0
0
0
0.000785
0.13977
1,481
67
78
22.104478
0.817896
0
0
0
0
0
0.114112
0.043214
0
0
0
0
0
1
0.266667
false
0.022222
0.088889
0.022222
0.422222
0.088889
0
0
0
null
0
0
0
0
0
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
2c16ce8056608e7cc7b6acf8f32232a293b97088
425
py
Python
examples/do_report.py
adamczarnecki/tradedoubler_api_client
d209428c18276ea4c488b0106926ae9de7abb235
[ "MIT" ]
null
null
null
examples/do_report.py
adamczarnecki/tradedoubler_api_client
d209428c18276ea4c488b0106926ae9de7abb235
[ "MIT" ]
null
null
null
examples/do_report.py
adamczarnecki/tradedoubler_api_client
d209428c18276ea4c488b0106926ae9de7abb235
[ "MIT" ]
null
null
null
from tradedoubler_api_client import Tradedoubler import pprint if __name__ == '__main__': pp = pprint.PrettyPrinter(indent=4, compact=True, sort_dicts=False) td = Tradedoubler('credentials.json') report = td.reporting().get_transactions(fromDate='20210601', toDate='20210610') report.filter_sales() ...
28.333333
84
0.729412
50
425
5.94
0.78
0.053872
0
0
0
0
0
0
0
0
0
0.047222
0.152941
425
14
85
30.357143
0.777778
0
0
0
0
0
0.110588
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.3
0
0
0
null
0
0
0
0
0
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
1
0
2c16d47b41feddc992dbdd6379a059841d159bb5
4,107
py
Python
welib/vortilib/elements/examples/InviscidVortexPatch.py
moonieann/welib
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
[ "MIT" ]
24
2019-07-24T23:37:10.000Z
2022-03-30T20:40:40.000Z
welib/vortilib/elements/examples/InviscidVortexPatch.py
moonieann/welib
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
[ "MIT" ]
null
null
null
welib/vortilib/elements/examples/InviscidVortexPatch.py
moonieann/welib
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
[ "MIT" ]
11
2019-03-14T13:47:04.000Z
2022-03-31T15:47:27.000Z
""" Vorticity and tangential velocity for a 2D inviscid vortex patch See: [1] Chapter 33, p.402, Branlard - Wind turbine aerodynamics and vorticity based methods, Springer 2017 """ import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl from vortilib.tools.colors import fColrs from vortilib.tool...
32.338583
106
0.685415
760
4,107
3.657895
0.253947
0.026978
0.007554
0.010072
0.408993
0.401079
0.373381
0.357194
0.345683
0.345683
0
0.062517
0.1159
4,107
126
107
32.595238
0.703112
0.131239
0
0.291667
0
0
0.080723
0
0
0
0
0.007937
0
1
0.010417
false
0
0.072917
0
0.09375
0.072917
0
0
0
null
0
0
0
0
0
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
1
0
2c17cc77f2646b8be82a171526ec121e5aa52c9c
7,771
py
Python
compss/programming_model/bindings/python/src/pycompss/api/multinode.py
eflows4hpc/compss
c497f6d34722103c6c8f83ebc314b495573ce054
[ "Apache-2.0" ]
null
null
null
compss/programming_model/bindings/python/src/pycompss/api/multinode.py
eflows4hpc/compss
c497f6d34722103c6c8f83ebc314b495573ce054
[ "Apache-2.0" ]
null
null
null
compss/programming_model/bindings/python/src/pycompss/api/multinode.py
eflows4hpc/compss
c497f6d34722103c6c8f83ebc314b495573ce054
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2002-2021 Barcelona Supercomputing Center (www.bsc.es) # # 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 ...
33.49569
81
0.641745
901
7,771
5.281909
0.295228
0.04854
0.025426
0.03236
0.159067
0.122925
0.034461
0.015129
0.015129
0.015129
0
0.002218
0.245657
7,771
231
82
33.640693
0.809621
0.293012
0
0.076923
0
0
0.073935
0.004535
0
0
0
0.004329
0
1
0.059829
false
0
0.128205
0
0.239316
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
0
0
1
0
2c17df50a8d83000fd4e766f46fb4bd0e6305963
755
py
Python
tests/test_mhk_models_no_db.py
time-link/timelink-py
60d51bfedb64688aa7603f074d7bbc7432b5e841
[ "MIT" ]
null
null
null
tests/test_mhk_models_no_db.py
time-link/timelink-py
60d51bfedb64688aa7603f074d7bbc7432b5e841
[ "MIT" ]
3
2021-08-02T13:25:46.000Z
2022-03-27T11:17:59.000Z
tests/test_mhk_models_no_db.py
time-link/timelink-py
60d51bfedb64688aa7603f074d7bbc7432b5e841
[ "MIT" ]
null
null
null
""" Test models with requiring a db connection """ import pytest from timelink.mhk.models import base # noqa from timelink.mhk.models.entity import Entity # noqa from timelink.mhk.models.pom_som_mapper import PomSomMapper from timelink.mhk.models.base_class import Base from timelink.mhk.models.db import TimelinkDB...
25.166667
65
0.711258
102
755
5.186275
0.401961
0.113422
0.141777
0.198488
0.094518
0
0
0
0
0
0
0.021417
0.196026
755
29
66
26.034483
0.850082
0.070199
0
0.105263
0
0
0.099855
0
0
0
0
0
0.105263
1
0.052632
false
0.105263
0.315789
0
0.473684
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
1
1
0
0
0
0
3
2c1890bcbe415de6b707f1f914bd82dec46e3744
218
py
Python
twitter_problems/problem_5.py
loftwah/Daily-Coding-Problem
0327f0b4f69ef419436846c831110795c7a3c1fe
[ "MIT" ]
129
2018-10-14T17:52:29.000Z
2022-01-29T15:45:57.000Z
twitter_problems/problem_5.py
loftwah/Daily-Coding-Problem
0327f0b4f69ef419436846c831110795c7a3c1fe
[ "MIT" ]
2
2019-11-30T23:28:23.000Z
2020-01-03T16:30:32.000Z
twitter_problems/problem_5.py
loftwah/Daily-Coding-Problem
0327f0b4f69ef419436846c831110795c7a3c1fe
[ "MIT" ]
60
2019-02-21T09:18:31.000Z
2022-03-25T21:01:04.000Z
"""This problem was asked by Twitter. Given a list of numbers, create an algorithm that arranges them in order to form the largest possible integer. For example, given [10, 7, 76, 415], you should return 77641510."""
54.5
111
0.752294
36
218
4.555556
0.972222
0
0
0
0
0
0
0
0
0
0
0.088398
0.169725
218
4
112
54.5
0.81768
0.972477
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
2c1930976901fb8aedd4548bfb8d6c15eb67bbc4
533
py
Python
catkin_ws/build/catkin_generated/order_packages.py
engboustani/3d-printer-arm
49173f30a19dcc5adb0e27d85b8b37fc5282e571
[ "Apache-2.0" ]
null
null
null
catkin_ws/build/catkin_generated/order_packages.py
engboustani/3d-printer-arm
49173f30a19dcc5adb0e27d85b8b37fc5282e571
[ "Apache-2.0" ]
null
null
null
catkin_ws/build/catkin_generated/order_packages.py
engboustani/3d-printer-arm
49173f30a19dcc5adb0e27d85b8b37fc5282e571
[ "Apache-2.0" ]
null
null
null
# generated from catkin/cmake/template/order_packages.context.py.in source_root_dir = "/home/engboustani/Documents/3d-printer-arm/catkin_ws/src" whitelisted_packages = "".split(';') if "" != "" else [] blacklisted_packages = "".split(';') if "" != "" else [] underlay_workspaces = "/home/engboustani/Documents/3d-printer...
88.833333
273
0.742964
71
533
5.422535
0.464789
0.194805
0.187013
0.202597
0.581818
0.581818
0.581818
0.581818
0.467532
0.467532
0
0.006012
0.06379
533
5
274
106.6
0.765531
0.121951
0
0
1
0.5
0.594421
0.587983
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
1
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
1
0
8
2c1997660877b65834f3fc00d39a51db4387c509
11,188
py
Python
tools/interface/LAMMPS.py
wichoi77/alamode
f0b3f4cc9903a807006b8f2d183de77dd461f61c
[ "MIT" ]
1
2021-01-27T19:05:03.000Z
2021-01-27T19:05:03.000Z
tools/interface/LAMMPS.py
wichoi77/alamode
f0b3f4cc9903a807006b8f2d183de77dd461f61c
[ "MIT" ]
null
null
null
tools/interface/LAMMPS.py
wichoi77/alamode
f0b3f4cc9903a807006b8f2d183de77dd461f61c
[ "MIT" ]
1
2021-04-26T14:01:15.000Z
2021-04-26T14:01:15.000Z
# # LAMMPS.py # # Interface to LAMMPS (http://lammps.sandia.gov) # # Copyright (c) 2017 Terumasa Tadano # # This file is distributed under the terms of the MIT license. # Please see the file 'LICENCE.txt' in the root directory # or http://opensource.org/licenses/mit-license.php for information. # import numpy as np ...
30.568306
87
0.517876
1,376
11,188
4
0.139535
0.02907
0.014717
0.014535
0.626635
0.572311
0.535792
0.496366
0.454397
0.427507
0
0.025833
0.391044
11,188
365
88
30.652055
0.782034
0.06498
0
0.541833
0
0.003984
0.060728
0
0
0
0
0
0
1
0.039841
false
0
0.003984
0
0.063745
0.083665
0
0
0
null
0
0
0
0
0
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
1
0
2c19bea1407933bda4ea01581f3e0b456aadbfa3
4,550
py
Python
Week_12/wave2D.py
MECH3750/2021-Tutorials
e813f2a97d9b71ad0e304a35e8c66d21ed63ee0c
[ "MIT" ]
5
2021-08-03T01:40:40.000Z
2021-09-14T12:07:28.000Z
Week_12/wave2D.py
MECH3750/2021-Tutorials
e813f2a97d9b71ad0e304a35e8c66d21ed63ee0c
[ "MIT" ]
null
null
null
Week_12/wave2D.py
MECH3750/2021-Tutorials
e813f2a97d9b71ad0e304a35e8c66d21ed63ee0c
[ "MIT" ]
11
2021-08-03T02:48:49.000Z
2021-11-08T06:47:11.000Z
# -*- coding: utf-8 -*- """ Created on Mon Sep 16 11:53:02 2019 @author: uqcleon4 """ import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm class WaveEquationFD: def __init__(self, N, D, Mx, My): self.N = N self.D = D self.M...
29.354839
95
0.466593
692
4,550
3.008671
0.221098
0.060038
0.0317
0.026897
0.269933
0.227185
0.180115
0.180115
0.150817
0.104707
0
0.054666
0.368791
4,550
154
96
29.545455
0.670265
0.105495
0
0.080808
0
0
0.007915
0
0
0
0
0
0.010101
1
0.050505
false
0
0.040404
0
0.10101
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
0
0
1
0
2c1b8264dccf5b44e3002c9c34d2872c3ff19377
234
py
Python
spirit/comment/apps.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
3
2019-08-18T19:08:48.000Z
2019-12-04T18:14:29.000Z
spirit/comment/apps.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
16
2015-08-10T18:28:18.000Z
2022-03-11T23:12:48.000Z
spirit/comment/apps.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
6
2018-06-25T02:17:53.000Z
2020-12-08T01:09:32.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class SpiritCommentConfig(AppConfig): name = 'spirit.comment' verbose_name = "Spirit Comment" label = 'spirit_comment'
18
39
0.722222
26
234
6.230769
0.692308
0.240741
0.209877
0
0
0
0
0
0
0
0
0.005208
0.179487
234
12
40
19.5
0.838542
0.089744
0
0
0
0
0.199052
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
1
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
1
0
0
0
0
4
2c1bea01e54768ccbaecf68a5c46e239fa4bb01f
11,443
py
Python
pillow_heif/reader.py
aptalca/pillow_heif
75b50b923244d35480ae9942da113287f531e460
[ "Apache-2.0" ]
null
null
null
pillow_heif/reader.py
aptalca/pillow_heif
75b50b923244d35480ae9942da113287f531e460
[ "Apache-2.0" ]
null
null
null
pillow_heif/reader.py
aptalca/pillow_heif
75b50b923244d35480ae9942da113287f531e460
[ "Apache-2.0" ]
null
null
null
""" Functions and classes for heif images to read. """ import builtins import pathlib from functools import partial from warnings import warn from _pillow_heif_cffi import ffi, lib from .constants import ( HeifFiletype, HeifColorProfileType, HeifChroma, HeifChannel, HeifColorspace, HeifBrand,...
37.765677
117
0.682339
1,540
11,443
4.744156
0.175325
0.030797
0.036135
0.04818
0.281276
0.238434
0.174377
0.144676
0.127293
0.108404
0
0.005976
0.210347
11,443
302
118
37.890728
0.802568
0.133357
0
0.127273
0
0.009091
0.071713
0.010303
0
0
0
0
0
1
0.109091
false
0
0.036364
0.013636
0.272727
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
0
0
1
0
2c1c62eb125d9e8057ff9e4f7249cfb02c4192e5
58,113
py
Python
flow/controllers/imitation_learning/trainer.py
eugenevinitsky/bayesian_reasoning_traffic
de3c14f03fed9cab913bb692877851320a3b6843
[ "MIT" ]
2
2020-12-03T21:13:39.000Z
2022-03-13T09:12:43.000Z
flow/controllers/imitation_learning/trainer.py
eugenevinitsky/bayesian_reasoning_traffic
de3c14f03fed9cab913bb692877851320a3b6843
[ "MIT" ]
null
null
null
flow/controllers/imitation_learning/trainer.py
eugenevinitsky/bayesian_reasoning_traffic
de3c14f03fed9cab913bb692877851320a3b6843
[ "MIT" ]
1
2021-02-05T16:51:34.000Z
2021-02-05T16:51:34.000Z
import time from collections import OrderedDict import pickle import numpy as np import gym import os import tensorflow as tf from flow.controllers.imitation_learning.utils import * from flow.utils.registry import make_create_env from flow.controllers.imitation_learning.imitating_controller import ImitatingController f...
48.630126
231
0.650698
6,796
58,113
5.297234
0.054002
0.037778
0.033778
0.017111
0.995722
0.995722
0.994333
0.994333
0.994333
0.994333
0
0.003774
0.256758
58,113
1,194
232
48.670854
0.829714
0.758815
0
0.077844
0
0
0.098334
0.008328
0
0
0
0.000838
0
1
0.053892
false
0
0.095808
0
0.173653
0.083832
0
0
0
null
0
0
0
1
1
1
1
1
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
6
2c208d59b07ff9834de306f19efb98e51d775ac7
660
py
Python
excercises/6-0001/problem_sets/ps1/ps1b.py
obsessedyouth/simulacra
530155664daf1aff06cb575c4c4073acbacdb32d
[ "MIT" ]
null
null
null
excercises/6-0001/problem_sets/ps1/ps1b.py
obsessedyouth/simulacra
530155664daf1aff06cb575c4c4073acbacdb32d
[ "MIT" ]
null
null
null
excercises/6-0001/problem_sets/ps1/ps1b.py
obsessedyouth/simulacra
530155664daf1aff06cb575c4c4073acbacdb32d
[ "MIT" ]
null
null
null
annual_salary = float(input("Enter your annual salary")) portion_saved = float(input("Enter the percent of your salary to save, as a decimal")) total_cost = float(input("Enter the cost of your dream home")) semi_annual_raise = float(input("Enter the semi­annual raise, as a decimal")) portion_down_payment = 0.25 * tota...
34.736842
86
0.716667
101
660
4.49505
0.39604
0.132159
0.132159
0.118943
0
0
0
0
0
0
0
0.029466
0.177273
660
19
87
34.736842
0.804788
0
0
0
0
0
0.257186
0
0
0
0
0
0
1
0
false
0
0
0
0
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0