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
2f1989e325bb85e0738bbeae4175fa2a163031d0
1,750
py
Python
Problem 001-150 Python/pb035.py
Adamssss/projectEuler
25881b1bd82876e81197756f62ab5b0d73e3e6c8
[ "MIT" ]
2
2015-02-11T05:47:42.000Z
2015-02-11T05:47:51.000Z
Problem 001-150 Python/pb035.py
Adamssss/projectEuler
25881b1bd82876e81197756f62ab5b0d73e3e6c8
[ "MIT" ]
1
2015-04-13T06:36:21.000Z
2015-04-13T06:36:21.000Z
Problem 001-150 Python/pb035.py
Adamssss/projectEuler
25881b1bd82876e81197756f62ab5b0d73e3e6c8
[ "MIT" ]
null
null
null
import math import time t1 = time.time() N = 1000000 n = (N+1)//2 p = [True]*(n) i = 1 prime = [2] while i < n: if p[i]: t = 2*i+1 prime.append(t) j = i while j < n: p[j] = False j += t i += 1 def isPrime(item): root = math.floor(math.sqrt...
18.617021
58
0.430857
213
1,750
3.539906
0.248826
0.015915
0.018568
0
0
0
0
0
0
0
0
0.051255
0.453714
1,750
93
59
18.817204
0.737448
0.028
0
0.178082
0
0
0.002946
0
0
0
0
0
0
1
0.027397
false
0
0.027397
0
0.109589
0.027397
0
0
0
null
0
0
0
0
0
0
0
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
2f1a5c2760e9a1b86d6eb2f562c21e3dbc87be05
2,190
py
Python
BAP/adapters.py
EleutherAGI/summarisation
d432873e1ba171f47371b8b0df7235478b52ca99
[ "CC-BY-4.0" ]
11
2021-05-12T14:11:58.000Z
2022-01-25T04:23:38.000Z
BAP/adapters.py
EleutherAGI/summarisation
d432873e1ba171f47371b8b0df7235478b52ca99
[ "CC-BY-4.0" ]
3
2021-05-13T11:37:35.000Z
2021-05-13T11:50:15.000Z
BAP/adapters.py
EleutherAGI/summarisation
d432873e1ba171f47371b8b0df7235478b52ca99
[ "CC-BY-4.0" ]
null
null
null
import torch import torch.nn as nn from collections import OrderedDict class AdapterLayer(nn.Module): def __init__(self, input_size, reduction_factor): super(AdapterLayer, self).__init__() self.skip_adapter = False self.adapter = nn.Sequential(nn.Linear(input_size, input_size//reduc...
39.818182
111
0.594977
281
2,190
4.459075
0.241993
0.083799
0.075818
0.057462
0.48763
0.422985
0.408619
0.379888
0.322426
0.322426
0
0.003856
0.289498
2,190
55
112
39.818182
0.801414
0.028767
0
0.111111
0
0
0.006031
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f222448d0c305c6158a8a8cb410ef32dcbf5429
7,090
py
Python
util.py
gmshashank/pytorch_yolo
9736006639acba9743b4e3ff56285668357097f9
[ "MIT" ]
null
null
null
util.py
gmshashank/pytorch_yolo
9736006639acba9743b4e3ff56285668357097f9
[ "MIT" ]
null
null
null
util.py
gmshashank/pytorch_yolo
9736006639acba9743b4e3ff56285668357097f9
[ "MIT" ]
null
null
null
from __future__ import division from torch.autograd import Variable import cv2 import numpy as np import torch def bbox_iou(box1, box2): # returns IoU of two bounding boxes b1_x1, b1_y1, b1_x2, b1_y2 = box1[:, 0], box1[:, 1], box1[:, 2], box1[:, 3] b2_x1, b2_y1, b2_x2, b2_y2 = box2[:, 0], box2...
34.754902
87
0.572779
923
7,090
4.141928
0.187432
0.045776
0.047083
0.017787
0.210829
0.120848
0.11457
0.06644
0.064347
0.064347
0
0.039702
0.300141
7,090
203
88
34.926108
0.730754
0.065303
0
0.108108
0
0
0.000468
0
0
0
0
0
0
1
0.040541
false
0
0.033784
0
0.114865
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
2f2228d6057ad9c4100fbf0aed98528ab280f726
743
py
Python
922.py
BLUECARVIN/LeetCode
0d085ed2dbee47c57d22ac368872161076369ff9
[ "MIT" ]
null
null
null
922.py
BLUECARVIN/LeetCode
0d085ed2dbee47c57d22ac368872161076369ff9
[ "MIT" ]
null
null
null
922.py
BLUECARVIN/LeetCode
0d085ed2dbee47c57d22ac368872161076369ff9
[ "MIT" ]
null
null
null
class Solution: def sortArrayByParityII(self, A: List[int]) -> List[int]: A.sort(key=lambda x: (x % 2 != 0)) b = [] for i in range(int(len(A) / 2)): b.append(A[i]) b.append(A[-(1+i)]) return b # ---------- 320ms, 15.9MB ---------- # class Solution: def so...
28.576923
61
0.414536
95
743
3.242105
0.347368
0.090909
0.058442
0.107143
0.441558
0.350649
0.350649
0.350649
0.350649
0.350649
0
0.038793
0.375505
743
26
62
28.576923
0.625
0.096904
0
0.173913
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f224c8f917dc2d903a60f297bdfff121e03b7dc
1,190
py
Python
mainConsumer.py
cmoshe390/pythonProj
7123255abbb53e4330c9548be16dd9e237f8a51d
[ "Unlicense", "MIT" ]
null
null
null
mainConsumer.py
cmoshe390/pythonProj
7123255abbb53e4330c9548be16dd9e237f8a51d
[ "Unlicense", "MIT" ]
null
null
null
mainConsumer.py
cmoshe390/pythonProj
7123255abbb53e4330c9548be16dd9e237f8a51d
[ "Unlicense", "MIT" ]
null
null
null
from rabbitConsumer import * from socketConsumer import SocketConsumer from dlx import * import threading import sys if __name__ == '__main__': work_with = sys.argv[1] r_k = ['*.jpg', '*.jpeg', '#'] threads = [] dlx = ReconnectingDlx() threads.append(threading.Thread(target=dlx.run)) for j...
34
118
0.561345
127
1,190
4.96063
0.425197
0.038095
0.052381
0.088889
0.384127
0.27619
0.27619
0.27619
0.27619
0.27619
0
0.008728
0.32605
1,190
34
119
35
0.776808
0.172269
0
0
0
0
0.107034
0
0
0
0
0
0
1
0
false
0
0.217391
0
0.217391
0.043478
0
0
0
null
0
0
0
0
0
0
0
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
2f239d716de5c5b3e73637e42e5427fd0197839a
1,991
py
Python
analyses/quantifications/scripts/2019_11_12_CC414022_quantifications.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
analyses/quantifications/scripts/2019_11_12_CC414022_quantifications.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
analyses/quantifications/scripts/2019_11_12_CC414022_quantifications.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
""" A set of CC412022, CC416168 were run back to back without blanks on 2019-11-12. Rough quantification is done by the below. """ __package__ = 'Z' from datetime import datetime from settings import CORE_DIR, DB_NAME from IO.db import connect_to_db, GcRun, Integration, Standard, SampleQuant from processing import b...
40.632653
109
0.70668
260
1,991
5.215385
0.330769
0.026549
0.058997
0.066372
0.427729
0.412979
0.259587
0.259587
0.20649
0.20649
0
0.058752
0.179307
1,991
48
110
41.479167
0.771114
0.113009
0
0.193548
0
0
0.044963
0.012521
0
0
0
0
0
1
0
false
0
0.16129
0
0.16129
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
2f2590662675a6fa11503eafa56e671b78fe7a23
10,473
py
Python
srcds/events/csgo.py
w4rum/pysrcds
a9dbc198c6f087757e40d9af14ca8de9a39cef74
[ "MIT" ]
17
2015-06-26T08:49:07.000Z
2021-09-11T09:02:40.000Z
srcds/events/csgo.py
w4rum/pysrcds
a9dbc198c6f087757e40d9af14ca8de9a39cef74
[ "MIT" ]
5
2015-04-27T13:44:58.000Z
2022-02-07T19:00:42.000Z
srcds/events/csgo.py
w4rum/pysrcds
a9dbc198c6f087757e40d9af14ca8de9a39cef74
[ "MIT" ]
12
2015-02-13T15:34:47.000Z
2021-09-11T09:02:30.000Z
# Copyright (C) 2013 Peter Rowlands """csgo events module Contains event classes for CS:S and CS:GO events """ from __future__ import absolute_import, unicode_literals from future.utils import python_2_unicode_compatible from .generic import (BaseEvent, PlayerEvent, PlayerTargetEvent, KillEvent, ...
36.491289
83
0.531175
1,070
10,473
4.945794
0.109346
0.084656
0.043084
0.031746
0.664588
0.63511
0.623394
0.623205
0.599017
0.580499
0
0.00736
0.338394
10,473
286
84
36.618881
0.756386
0.038575
0
0.554054
0
0.004505
0.123902
0.01897
0
0
0
0
0
1
0.067568
false
0
0.013514
0
0.202703
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
2f27bd70a0bac448a69a312f5b0f06826fe66bdd
670
py
Python
Listing_19-1.py
PrinceChou/Play-Python-with-Alisa
808ab2744a99c548de4633b5707af27112bcdccf
[ "Apache-2.0" ]
null
null
null
Listing_19-1.py
PrinceChou/Play-Python-with-Alisa
808ab2744a99c548de4633b5707af27112bcdccf
[ "Apache-2.0" ]
null
null
null
Listing_19-1.py
PrinceChou/Play-Python-with-Alisa
808ab2744a99c548de4633b5707af27112bcdccf
[ "Apache-2.0" ]
null
null
null
# Listing_19-1.py # Copyright Warren & Carter Sande, 2013 # Released under MIT license http://www.opensource.org/licenses/mit-license.php # Version $version ---------------------------- # Trying out sounds in Pygame import pygame pygame.init() pygame.mixer.init() screen = pygame.display.set_mode([640,480]) pygame....
29.130435
81
0.649254
89
670
4.865169
0.674157
0.046189
0
0
0
0
0
0
0
0
0
0.032015
0.207463
670
22
82
30.454545
0.783428
0.444776
0
0
0
0
0.024793
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f2f6a510aa43446af03b23b36744744444b6c67
1,532
py
Python
docker_emperor/commands/context/set.py
workon-io/docker-emperor
d827bb2806494dcba97920dd83c5934d0a300089
[ "Apache-2.0" ]
null
null
null
docker_emperor/commands/context/set.py
workon-io/docker-emperor
d827bb2806494dcba97920dd83c5934d0a300089
[ "Apache-2.0" ]
null
null
null
docker_emperor/commands/context/set.py
workon-io/docker-emperor
d827bb2806494dcba97920dd83c5934d0a300089
[ "Apache-2.0" ]
null
null
null
import six import docker_emperor.logger as logger from docker_emperor.nodes.context import Context def run(root, *args, **kwargs): name = args[0].strip() if args else None if name: if name in root.project['contexts']: root.project.config['context'] = name logger.success(u'Cont...
39.282051
103
0.539817
189
1,532
4.333333
0.343915
0.094017
0.021978
0.087912
0.274725
0.114774
0.114774
0.114774
0.114774
0.114774
0
0.00484
0.325718
1,532
39
104
39.282051
0.787996
0
0
0.151515
0
0
0.171559
0
0
0
0
0
0
1
0.060606
false
0
0.090909
0
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
2f2f9ccd72b1ada4944e0fb6d3cba3a6b6b3d3fc
759
py
Python
bnc/scripts/instance_lock_test.py
dotzhou/geodesy-ausgeoid
7d4fbcc1d88738de6ab84ccdba362407cbaeb117
[ "Apache-2.0" ]
null
null
null
bnc/scripts/instance_lock_test.py
dotzhou/geodesy-ausgeoid
7d4fbcc1d88738de6ab84ccdba362407cbaeb117
[ "Apache-2.0" ]
null
null
null
bnc/scripts/instance_lock_test.py
dotzhou/geodesy-ausgeoid
7d4fbcc1d88738de6ab84ccdba362407cbaeb117
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys import time from instance_lock import InstanceLock ################################################################################ def main(): print(sys.argv[0]) ...
19.973684
88
0.524374
79
759
4.632911
0.56962
0.131148
0.131148
0
0
0
0
0
0
0
0
0.012719
0.171278
759
37
89
20.513514
0.569157
0.02635
0
0
0
0
0.137153
0.0625
0
0
0
0
0
1
0.05
false
0
0.3
0
0.35
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f30a5cc06c93cc21cd8f006b81cb7e3a4339ab4
1,194
py
Python
examples/Sans_Sphere/guiFitSphere.py
DomiDre/modelexp
1ec25f71e739dac27716f9a8637fa6ab067499b9
[ "MIT" ]
null
null
null
examples/Sans_Sphere/guiFitSphere.py
DomiDre/modelexp
1ec25f71e739dac27716f9a8637fa6ab067499b9
[ "MIT" ]
null
null
null
examples/Sans_Sphere/guiFitSphere.py
DomiDre/modelexp
1ec25f71e739dac27716f9a8637fa6ab067499b9
[ "MIT" ]
null
null
null
import modelexp from modelexp.experiments.sas import Sans from modelexp.models.sas import Sphere from modelexp.data import XyeData from modelexp.fit import LevenbergMarquardt from modelexp.models.sas import InstrumentalResolution app = modelexp.App() app.setExperiment(Sans) dataRef = app.setData(XyeData) dataRef.lo...
39.8
99
0.742881
160
1,194
5.51875
0.3625
0.14496
0.11778
0.079275
0.15402
0.056625
0.056625
0
0
0
0
0.107414
0.118928
1,194
30
100
39.8
0.731939
0
0
0
0
0
0.080335
0.038494
0
0
0
0
0
1
0
false
0
0.26087
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f373ae8b308ab8313e26c9ce9ba782726162914
2,273
py
Python
almanac/pages/abstract_page.py
welchbj/almanac
91db5921a27f7d089b4ad8463ffb6e1453c5126a
[ "MIT" ]
4
2020-08-04T10:59:10.000Z
2021-08-23T13:42:03.000Z
almanac/pages/abstract_page.py
welchbj/almanac
91db5921a27f7d089b4ad8463ffb6e1453c5126a
[ "MIT" ]
null
null
null
almanac/pages/abstract_page.py
welchbj/almanac
91db5921a27f7d089b4ad8463ffb6e1453c5126a
[ "MIT" ]
2
2021-07-20T04:49:22.000Z
2021-08-23T13:42:23.000Z
from __future__ import annotations from abc import ABC, abstractmethod, abstractproperty from typing import Any, Optional, Set from .page_path import PagePath, PagePathLike class AbstractPage(ABC): """The base abstract page interface.""" def __init__( self, path: PagePathLike, ) -> None...
21.647619
83
0.57985
252
2,273
5.035714
0.345238
0.044129
0.023641
0.022065
0.113475
0.048857
0.048857
0.048857
0.048857
0
0
0
0.33216
2,273
104
84
21.855769
0.835968
0.259569
0
0.40625
0
0
0.028828
0.019218
0
0
0
0
0
1
0.1875
false
0
0.0625
0.046875
0.390625
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
2f3740dbe908121e76457672fb1354e03d0a203a
3,022
py
Python
examples/VTK/PerfTests/scene-export-time.py
ajpmaclean/trame
48ab4e80c6050a2bea8b04ef32fd7d8b2cc7f787
[ "BSD-3-Clause" ]
null
null
null
examples/VTK/PerfTests/scene-export-time.py
ajpmaclean/trame
48ab4e80c6050a2bea8b04ef32fd7d8b2cc7f787
[ "BSD-3-Clause" ]
null
null
null
examples/VTK/PerfTests/scene-export-time.py
ajpmaclean/trame
48ab4e80c6050a2bea8b04ef32fd7d8b2cc7f787
[ "BSD-3-Clause" ]
null
null
null
from trame import state from trame.html import vuetify, vtk from trame.layouts import SinglePage from vtkmodules.vtkImagingCore import vtkRTAnalyticSource from vtkmodules.vtkFiltersGeometry import vtkGeometryFilter from vtkmodules.vtkRenderingCore import ( vtkRenderer, vtkRenderWindow, vtkRenderWindowInter...
29.627451
81
0.617141
242
3,022
7.57438
0.475207
0.03928
0.065466
0.065466
0.032733
0
0
0
0
0
0
0.006381
0.118465
3,022
101
82
29.920792
0.681682
0.228657
0
0
0
0
0.05054
0
0
0
0
0
0
1
0.014706
false
0
0.117647
0
0.132353
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
2f382211712726ce3bebece3524ea17b01c0cd4f
2,540
py
Python
saleor/dashboard/store/special_page/views.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
saleor/dashboard/store/special_page/views.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
saleor/dashboard/store/special_page/views.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import messages from django.contrib.auth.decorators import permission_required from django.shortcuts import get_object_or_404, redirect from django.template.response import TemplateResponse from django.utils.translation import pgettext_lazy from ....store.models import SpecialPage from ...views imp...
40.31746
77
0.715748
306
2,540
5.663399
0.215686
0.14599
0.10502
0.055395
0.693595
0.665897
0.64974
0.618003
0.618003
0.589152
0
0.004358
0.187008
2,540
62
78
40.967742
0.834867
0
0
0.527273
0
0
0.188189
0.078346
0
0
0
0
0
1
0.054545
false
0
0.145455
0
0.309091
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
2f3aae6740fa544f6fcbafd5b09e5b47c616d5d2
2,449
py
Python
satstac/landsat/cli.py
developmentseed/sat-stac-landsat
f2263485043a827b4153aecc12f45a3d1363e9e2
[ "MIT" ]
null
null
null
satstac/landsat/cli.py
developmentseed/sat-stac-landsat
f2263485043a827b4153aecc12f45a3d1363e9e2
[ "MIT" ]
null
null
null
satstac/landsat/cli.py
developmentseed/sat-stac-landsat
f2263485043a827b4153aecc12f45a3d1363e9e2
[ "MIT" ]
null
null
null
import argparse import logging import sys from datetime import datetime import satstac from satstac import Catalog import satstac.landsat as landsat from .version import __version__ # quiet loggers logging.getLogger('urllib3').propagate = False logging.getLogger('requests').propagate = False logger = logging.getLog...
37.106061
120
0.694978
309
2,449
5.339806
0.385113
0.06
0.072121
0.030303
0.141818
0.141818
0.100606
0.100606
0
0
0
0.00978
0.164965
2,449
66
121
37.106061
0.797066
0.080441
0
0
0
0.02381
0.22049
0
0
0
0
0
0
1
0.047619
false
0
0.190476
0
0.261905
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
2f3ae02cd059cdf4b269302e970b02d87301e8cf
3,005
py
Python
database.py
pratik-choudhari/squ.ez-url-shortener
ebd13da15501806d0ef30353fe77a9d3d6d1081a
[ "MIT" ]
5
2020-12-20T14:50:31.000Z
2021-09-20T06:39:18.000Z
database.py
pratik-choudhari/squ.ez-url-shortener
ebd13da15501806d0ef30353fe77a9d3d6d1081a
[ "MIT" ]
null
null
null
database.py
pratik-choudhari/squ.ez-url-shortener
ebd13da15501806d0ef30353fe77a9d3d6d1081a
[ "MIT" ]
3
2020-12-20T18:18:09.000Z
2021-11-14T09:42:07.000Z
import sqlite3 import random import string import re import sys # domain name args = sys.argv if len(args)==2: if args[1] == 'localhost': domain = "localhost:5000/" else: domain = "https://squez-url-shortener.herokuapp.com/" else: domain = "https://squez-url-shortener.herokuapp.com/" # URL...
28.084112
200
0.547088
403
3,005
4.019851
0.290323
0.018519
0.007407
0.007407
0.31358
0.135802
0.107407
0.054321
0
0
0
0.012071
0.283195
3,005
106
201
28.349057
0.73909
0.231281
0
0.344828
0
0.034483
0.28301
0.095106
0
0
0
0
0
1
0.068966
false
0
0.086207
0
0.293103
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
2f3e4585789dca549a8fbdd15c298b8c2bf0a041
1,954
py
Python
ball.py
b3mery/Python-Pong-Game
d0051942412c331a752cbade11815002be8d4d1e
[ "MIT" ]
null
null
null
ball.py
b3mery/Python-Pong-Game
d0051942412c331a752cbade11815002be8d4d1e
[ "MIT" ]
null
null
null
ball.py
b3mery/Python-Pong-Game
d0051942412c331a752cbade11815002be8d4d1e
[ "MIT" ]
null
null
null
from turtle import Turtle from scoreboard import Scoreboard WIDTH = 800 HEIGHT = 600 START_SPEED = 0.1 class Ball(Turtle): """Class for creating and moving the ball. Extends Turtle""" def __init__(self) -> None: super().__init__() self.y_trajectory = 10 self.x_trajectory = 10 ...
34.892857
84
0.590583
263
1,954
4.231939
0.323194
0.069182
0.067385
0.050314
0.277628
0.186882
0.186882
0.145553
0.097035
0.097035
0
0.033528
0.297851
1,954
56
85
34.892857
0.777697
0.18782
0
0.2
0
0
0.040103
0
0
0
0
0
0
1
0.125
false
0
0.05
0
0.2
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f43d99fa4ec9d66bba52027500997441d643a8e
1,216
py
Python
baseq/bed/__init__.py
basedata10/baseq
0f1786c3392a51a6ec7cb0f32355cd28eaa5df29
[ "MIT" ]
1
2018-08-30T20:29:17.000Z
2018-08-30T20:29:17.000Z
baseq/bed/__init__.py
basedata10/baseq
0f1786c3392a51a6ec7cb0f32355cd28eaa5df29
[ "MIT" ]
null
null
null
baseq/bed/__init__.py
basedata10/baseq
0f1786c3392a51a6ec7cb0f32355cd28eaa5df29
[ "MIT" ]
null
null
null
import subprocess, re, os from baseq.utils.runcommand import run_it, run_generator import pandas as pd import random """ baseq dev bed ./bed """ import click, os, sys CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) @click.group(context_settings=CONTEXT_SETTINGS) def cli(): pass class BEDFILE: def ...
31.179487
124
0.612664
161
1,216
4.521739
0.521739
0.038462
0.03022
0.038462
0
0
0
0
0
0
0
0.009667
0.234375
1,216
39
125
31.179487
0.772288
0
0
0
0
0
0.063866
0
0
0
0
0
0
1
0.16129
false
0.032258
0.16129
0
0.419355
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f4660a8cf58761bb602bec1315943879f761718
4,264
py
Python
swtstore/application.py
janastu/swtstore
7326138bf2fbf2a4ed8c7300c68092f91709dfc2
[ "BSD-2-Clause" ]
2
2015-04-28T00:35:21.000Z
2016-02-11T19:31:15.000Z
swtstore/application.py
janastu/swtstore
7326138bf2fbf2a4ed8c7300c68092f91709dfc2
[ "BSD-2-Clause" ]
9
2015-02-02T11:24:23.000Z
2017-12-29T07:49:07.000Z
swtstore/application.py
janastu/swtstore
7326138bf2fbf2a4ed8c7300c68092f91709dfc2
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ __init__.py """ import os import logging from logging.handlers import RotatingFileHandler from flask import Flask, request, jsonify, render_template, make_response from classes.database import db from config import DefaultConfig from classes import views #from classes import models f...
24.090395
78
0.633912
515
4,264
5.07767
0.281553
0.034417
0.032505
0.047801
0.281836
0.23327
0.23327
0.151052
0.151052
0.151052
0
0.020128
0.265947
4,264
176
79
24.227273
0.815335
0.107645
0
0.240741
0
0
0.066138
0.006349
0
0
0
0.005682
0
1
0.111111
false
0
0.074074
0.009259
0.259259
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
2f46d633a48c16504cc0737a6f08d56b6c8d1caf
2,313
py
Python
2018/12a.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
4
2018-12-04T23:33:46.000Z
2021-12-07T17:33:27.000Z
2018/12a.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
17
2018-12-12T23:32:09.000Z
2020-01-04T15:50:31.000Z
2018/12a.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pytest import fileinput import sys DAY=12 class Plants(): def __init__(self, in_lines): self.generation = 0 lines = iter(in_lines) initial_state = next(lines).replace('initial state: ', '') self.pots = {i:s for i, s in enumerate(initial_state) if s == '#' } ...
31.684932
92
0.587981
357
2,313
3.686275
0.221289
0.097264
0.06383
0.06383
0.342705
0.307751
0.254559
0.254559
0.238602
0.238602
0
0.025178
0.210117
2,313
72
93
32.125
0.695129
0.036749
0
0.193548
0
0
0.083596
0
0
0
0
0
0.032258
1
0.112903
false
0
0.048387
0.032258
0.241935
0.096774
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f47e0e4afa3b0ef06fd5508f958beec6b26eb72
826
py
Python
03-Spark DFs/24-Solution (Group By).py
PacktPublishing/PySpark-and-AWS-Master-Big-Data-with-PySpark-and-AWS
28726ada2a8f03557180b472eecf3efc72cab5a2
[ "MIT" ]
3
2021-09-29T04:11:44.000Z
2021-12-21T06:28:48.000Z
Part 3/Code/03-Spark DFs/24-Solution (Group By).py
PacktPublishing/50-Hours-of-Big-Data-PySpark-AWS-Scala-and-Scraping
8993a8ee10534a29aeee18fa91bdc48e3093bec5
[ "MIT" ]
null
null
null
Part 3/Code/03-Spark DFs/24-Solution (Group By).py
PacktPublishing/50-Hours-of-Big-Data-PySpark-AWS-Scala-and-Scraping
8993a8ee10534a29aeee18fa91bdc48e3093bec5
[ "MIT" ]
5
2021-11-17T15:47:36.000Z
2022-03-09T05:13:09.000Z
# Databricks notebook source from pyspark.sql import SparkSession from pyspark.sql.functions import col, lit from pyspark.sql.functions import sum,avg,max,min,mean,count spark = SparkSession.builder.appName("Spark DataFrames").getOrCreate() # COMMAND ---------- df = spark.read.options(header='True', inferSchema='True...
25.8125
99
0.659806
104
826
5.211538
0.451923
0.083026
0.138376
0.084871
0.333948
0.143911
0.143911
0
0
0
0
0.005284
0.083535
826
31
100
26.645161
0.7107
0.156174
0
0
0
0
0.24344
0.048105
0
0
0
0
0
1
0
false
0
0.272727
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
2f4adf626e0639100f39276c7a36ef5fa92541f9
1,185
py
Python
parse_xlsx.py
UoA-eResearch/OPIMD
63d2279eea8de7db53b01c50e8e35b483ab572c4
[ "MIT" ]
null
null
null
parse_xlsx.py
UoA-eResearch/OPIMD
63d2279eea8de7db53b01c50e8e35b483ab572c4
[ "MIT" ]
2
2021-03-03T06:11:30.000Z
2021-03-05T02:57:02.000Z
parse_xlsx.py
UoA-eResearch/OPIMD
63d2279eea8de7db53b01c50e8e35b483ab572c4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pandas as pd import json df = pd.read_excel("OPIMD Calc_checked_03Feb21AL.xlsx", sheet_name=None) obj = {} dz = df["OPIMD15ACCESSDATAZONERANK"] dz = dz.dropna(subset=["datazone"]) dz.datazone = dz.datazone.astype(int) dz.index = dz.datazone obj["dz"] = dz.OPIMDAccPopRank_AL.to_dict() ...
25.212766
72
0.709705
170
1,185
4.876471
0.429412
0.050663
0.043426
0
0
0
0
0
0
0
0
0.011353
0.108017
1,185
47
73
25.212766
0.772942
0.017722
0
0
0
0
0.18299
0.044674
0
0
0
0
0
1
0
false
0
0.057143
0
0.057143
0.028571
0
0
0
null
0
0
0
0
0
0
0
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
2f4cad023005927c7b37c2c98bbb63ef5319fadc
1,336
py
Python
python/src/main/python/pyalink/alink/common/sql/sql_query_utils.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/common/sql/sql_query_utils.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/common/sql/sql_query_utils.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
import re __all__ = ['register_table_name', 'sql_query'] batch_table_name_map = dict() stream_table_name_map = dict() def register_table_name(op, name: str, op_type: str): if op_type == "batch": batch_table_name_map[name] = op elif op_type == "stream": stream_table_name_map[name] = op el...
28.425532
65
0.654192
188
1,336
4.303191
0.281915
0.144623
0.163164
0.111248
0.217553
0.173053
0.173053
0.173053
0.111248
0.111248
0
0.002962
0.241766
1,336
46
66
29.043478
0.795656
0
0
0.216216
0
0
0.098802
0
0
0
0
0
0
1
0.081081
false
0
0.081081
0
0.189189
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
2f4d2891267d928eb5b2260208cbd4b134295605
3,790
py
Python
salt/utils/win_chcp.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
9,425
2015-01-01T05:59:24.000Z
2022-03-31T20:44:05.000Z
salt/utils/win_chcp.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
33,507
2015-01-01T00:19:56.000Z
2022-03-31T23:48:20.000Z
salt/utils/win_chcp.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
5,810
2015-01-01T19:11:45.000Z
2022-03-31T02:37:20.000Z
""" Functions for working with the codepage on Windows systems """ import logging from contextlib import contextmanager from salt.exceptions import CodePageError log = logging.getLogger(__name__) try: import pywintypes import win32console HAS_WIN32 = True except ImportError: HAS_WIN32 = False # A...
25.608108
88
0.61715
470
3,790
4.806383
0.231915
0.061089
0.053121
0.048694
0.656043
0.604692
0.588756
0.533865
0.533865
0.533865
0
0.007675
0.312401
3,790
147
89
25.782313
0.859171
0.341953
0
0.565217
0
0
0.087803
0
0
0
0
0
0
1
0.057971
false
0
0.086957
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f4d57d728b00fc588f9af5da19650e009e95339
827
py
Python
application/server.py
comov/fucked-up_schedule
3e6a2972f46686829b655798cd641cd82559db24
[ "MIT" ]
null
null
null
application/server.py
comov/fucked-up_schedule
3e6a2972f46686829b655798cd641cd82559db24
[ "MIT" ]
null
null
null
application/server.py
comov/fucked-up_schedule
3e6a2972f46686829b655798cd641cd82559db24
[ "MIT" ]
null
null
null
from flask import Flask, render_template from application.settings import STATIC from application.storage import storage app = Flask(__name__, static_url_path=STATIC) @app.route('/') def hello_world(): storage_dataset = storage.load_data() labels = [] datasets = {} for label, dataset in storage_dat...
25.84375
50
0.562273
92
827
4.923913
0.456522
0.033113
0.02649
0
0
0
0
0
0
0
0
0
0.308343
827
31
51
26.677419
0.791958
0
0
0
0
0
0.076179
0
0
0
0
0
0
1
0.04
false
0
0.12
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f4e64d9de5293438f0fe185689a4d11efc8c4c9
1,857
py
Python
cli_fun/commands/fun.py
e4r7hbug/cli-fun
43f9a1bf788745783a24f315d80ceb969ff853e4
[ "MIT" ]
null
null
null
cli_fun/commands/fun.py
e4r7hbug/cli-fun
43f9a1bf788745783a24f315d80ceb969ff853e4
[ "MIT" ]
null
null
null
cli_fun/commands/fun.py
e4r7hbug/cli-fun
43f9a1bf788745783a24f315d80ceb969ff853e4
[ "MIT" ]
null
null
null
"""Fun section of CLI command.""" import json import logging import time from pprint import pformat, pprint import click from fabric.colors import red @click.group() def cli(): """My fun program!""" pass @cli.command() def progress(): """Sample progress bar.""" i = range(0, 200) logging.debug('...
22.925926
70
0.611739
253
1,857
4.43083
0.438735
0.071365
0.046387
0.06066
0.066905
0.066905
0.066905
0.066905
0.066905
0.066905
0
0.01151
0.204631
1,857
80
71
23.2125
0.747461
0.107701
0
0.076923
0
0
0.151459
0
0
0
0
0
0
1
0.153846
false
0.019231
0.115385
0
0.269231
0.134615
0
0
0
null
0
0
0
0
0
0
0
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
2f4ee2585931ea1270d6eb83cfe79d8eaf1f4d33
1,851
py
Python
tests/algorithms/descriptor_generator/test_colordescriptor.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
82
2015-01-07T15:33:29.000Z
2021-08-11T18:34:05.000Z
tests/algorithms/descriptor_generator/test_colordescriptor.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
230
2015-04-08T14:36:51.000Z
2022-03-14T17:55:30.000Z
tests/algorithms/descriptor_generator/test_colordescriptor.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
65
2015-01-04T15:00:16.000Z
2021-11-19T18:09:11.000Z
import unittest import unittest.mock as mock import pytest from smqtk.algorithms.descriptor_generator import DescriptorGenerator from smqtk.algorithms.descriptor_generator.colordescriptor.colordescriptor \ import ColorDescriptor_Image_csift # arbitrary leaf class from smqtk.utils.configuration import configurati...
42.068182
79
0.690438
211
1,851
5.729858
0.379147
0.090984
0.082713
0.084367
0.263027
0.105873
0
0
0
0
0
0.02276
0.240411
1,851
43
80
43.046512
0.837127
0.010805
0
0
0
0
0.106069
0.046473
0
0
0
0
0.324324
1
0.054054
false
0
0.162162
0
0.243243
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
2f59a50ee0f4047fe095b3e0f94aa7691fc20820
2,139
py
Python
tests/server/datasets/test_dao.py
davidkartchner/rubrix
33faa006d7498a806a9fd594036d4a42c7d70da2
[ "Apache-2.0" ]
1
2022-01-06T09:05:06.000Z
2022-01-06T09:05:06.000Z
tests/server/datasets/test_dao.py
davidkartchner/rubrix
33faa006d7498a806a9fd594036d4a42c7d70da2
[ "Apache-2.0" ]
null
null
null
tests/server/datasets/test_dao.py
davidkartchner/rubrix
33faa006d7498a806a9fd594036d4a42c7d70da2
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021-present, the Recognai S.L. team. # # 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 ...
36.254237
81
0.777466
295
2,139
5.461017
0.39322
0.043451
0.069522
0.039106
0.303538
0.226567
0.226567
0.226567
0.155183
0.103042
0
0.004894
0.140252
2,139
58
82
36.87931
0.871126
0.276765
0
0.176471
0
0
0.050294
0.030699
0
0
0
0
0.088235
1
0.058824
false
0
0.235294
0
0.294118
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
2f5cb793e2e748f1c572ea256bcf2c1a860ee543
2,344
py
Python
blinpy/tests/test_models.py
solbes/blinpy
89b4f26066c383fc07ca6b1cbfdc8a61397f3f08
[ "MIT" ]
3
2021-02-11T14:00:08.000Z
2021-10-13T20:41:21.000Z
blinpy/tests/test_models.py
solbes/blinpy
89b4f26066c383fc07ca6b1cbfdc8a61397f3f08
[ "MIT" ]
null
null
null
blinpy/tests/test_models.py
solbes/blinpy
89b4f26066c383fc07ca6b1cbfdc8a61397f3f08
[ "MIT" ]
null
null
null
import pytest import pandas as pd import numpy as np from blinpy import models data = pd.DataFrame( {'x': np.array( [0.0, 1.0, 1.0, 2.0, 1.8, 3.0, 4.0, 5.2, 6.5, 8.0, 10.0]), 'y': np.array([5.0, 5.0, 5.1, 5.3, 5.5, 5.7, 6.0, 6.3, 6.7, 7.1, 7.5])} ) def test_linear_model(): # 1) ...
22.980392
80
0.50128
326
2,344
3.490798
0.245399
0.05536
0.035149
0.101054
0.625659
0.596661
0.568541
0.541301
0.495606
0.434095
0
0.139169
0.322526
2,344
101
81
23.207921
0.577456
0.046502
0
0.5
0
0
0.036355
0
0
0
0
0
0.0625
1
0.025
false
0
0.05
0
0.075
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
2f5e89412b184aa3f2abac3805b9bf927e055845
204
py
Python
valid.py
whitereaper25/test_2
47212fc977bcd36e8879ada22f319691073accb1
[ "Apache-2.0" ]
null
null
null
valid.py
whitereaper25/test_2
47212fc977bcd36e8879ada22f319691073accb1
[ "Apache-2.0" ]
null
null
null
valid.py
whitereaper25/test_2
47212fc977bcd36e8879ada22f319691073accb1
[ "Apache-2.0" ]
null
null
null
import re def verify(phn_no): design = "[789]\d{9}$" if re.match(design,phn_no): return "yes" else: return "No" n = int(input()) for i in range(n): print(verify(input()))
18.545455
31
0.553922
32
204
3.46875
0.71875
0.09009
0
0
0
0
0
0
0
0
0
0.026846
0.269608
204
11
32
18.545455
0.718121
0
0
0
0
0
0.078049
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.4
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
0
0
0
0
1
0
2f6096fad4d8b4fcb9ab49eab731fdc3465207c6
1,632
py
Python
MAPLEAF/Rocket/sampleStatefulRocketComponent.py
henrystoldt/MAPLEAF
af970d3e8200832f5e70d537b15ad38dd74fa551
[ "MIT" ]
15
2020-09-11T19:25:07.000Z
2022-03-12T16:34:53.000Z
MAPLEAF/Rocket/sampleStatefulRocketComponent.py
henrystoldt/MAPLEAF
af970d3e8200832f5e70d537b15ad38dd74fa551
[ "MIT" ]
null
null
null
MAPLEAF/Rocket/sampleStatefulRocketComponent.py
henrystoldt/MAPLEAF
af970d3e8200832f5e70d537b15ad38dd74fa551
[ "MIT" ]
3
2021-12-24T19:39:53.000Z
2022-03-29T01:06:28.000Z
from MAPLEAF.Motion import ForceMomentSystem, Inertia, Vector from MAPLEAF.Rocket import RocketComponent __all__ = [ "SampleStatefulComponent" ] class SampleStatefulComponent(RocketComponent): def __init__(self, componentDictReader, rocket, stage): self.rocket = rocket self.stage = stage s...
42.947368
128
0.694853
176
1,632
6.397727
0.539773
0.039964
0.033748
0
0
0
0
0
0
0
0
0.017433
0.226716
1,632
38
129
42.947368
0.874802
0.210784
0
0
0
0
0.032006
0.017955
0
0
0
0
0
1
0.192308
false
0
0.076923
0.038462
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f610ddfbb4015ca897145b09e2fa1a4b5263289
866
py
Python
Array/Final450/Sort_Array_Of_0s_1s_2s.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Array/Final450/Sort_Array_Of_0s_1s_2s.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Array/Final450/Sort_Array_Of_0s_1s_2s.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
from Utils.Array import input_array ZERO, ONE, TWO = 0, 1, 2 # Time -> O(n) # Space -> O(1) inplace def sort_by_counting(A): cnt_0 = cnt_1 = cnt_2 = 0 # Count the number of 0s, 1s and 2s in the array for num in A: if num == ZERO: cnt_0 += 1 elif num == ONE: cnt_...
16.339623
52
0.469977
159
866
2.396226
0.289308
0.036745
0.031496
0.031496
0.03937
0.023622
0
0
0
0
0
0.132797
0.426097
866
52
53
16.653846
0.633803
0.19515
0
0.107143
0
0
0.012739
0
0
0
0
0
0
1
0.035714
false
0
0.035714
0
0.071429
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f61d9c0592b835198eb2ed4703fc9cefded5f37
1,911
py
Python
miradar_node/scripts/ppi_visualizer.py
QibiTechInc/miradar_ros1_pkgs
65b339147c2a1a990696d77e75b58f5fba84dc22
[ "Apache-2.0" ]
null
null
null
miradar_node/scripts/ppi_visualizer.py
QibiTechInc/miradar_ros1_pkgs
65b339147c2a1a990696d77e75b58f5fba84dc22
[ "Apache-2.0" ]
null
null
null
miradar_node/scripts/ppi_visualizer.py
QibiTechInc/miradar_ros1_pkgs
65b339147c2a1a990696d77e75b58f5fba84dc22
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import rospy from miradar_node.msg import PPI, PPIData from visualization_msgs.msg import MarkerArray, Marker from geometry_msgs.msg import Point import dynamic_reconfigure.client class PPIVisualizer: def __init__(self): self.pub = rospy.Publisher("/miradar/markers", MarkerArray, qu...
32.948276
83
0.591837
222
1,911
4.977477
0.382883
0.049774
0.021719
0.043439
0.139367
0.139367
0.079638
0.079638
0
0
0
0.015521
0.291994
1,911
57
84
33.526316
0.801183
0.010989
0
0.088889
0
0
0.057173
0
0
0
0
0
0
1
0.044444
false
0
0.111111
0
0.177778
0.022222
0
0
0
null
0
0
0
0
0
0
0
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
2f62350af98cfe5e5bc543e35cb2ce81345228a2
3,561
py
Python
app/dashboard.py
nidheesh6/earlyearthquake
d0ab976629f126206afcd3dc15a76c66992f8a9e
[ "Apache-2.0" ]
null
null
null
app/dashboard.py
nidheesh6/earlyearthquake
d0ab976629f126206afcd3dc15a76c66992f8a9e
[ "Apache-2.0" ]
null
null
null
app/dashboard.py
nidheesh6/earlyearthquake
d0ab976629f126206afcd3dc15a76c66992f8a9e
[ "Apache-2.0" ]
null
null
null
import dash from dash.dependencies import Input, Output import dash_core_components as dcc import dash_html_components as html import psycopg2 import json import pandas as pd import time app = dash.Dash(__name__) #app.css.config.serve_locally=False #app.css.append_css( # {'external_url': 'https://codepen.io/amyosh...
30.965217
193
0.48975
380
3,561
4.455263
0.521053
0.024808
0.023036
0.016539
0.050797
0
0
0
0
0
0
0.031436
0.33895
3,561
114
194
31.236842
0.687766
0.045493
0
0.032609
0
0.01087
0.244964
0.021919
0
0
0
0
0
1
0.021739
false
0.01087
0.086957
0
0.141304
0.021739
0
0
0
null
0
0
0
0
0
0
0
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
2f6638f61b3058472b08244c7bbaf61f509b9975
4,525
py
Python
scripts/main_experiment.py
wsavran/relm_pycsep_reproducibility
29294dc37627e74b4fcc4d05add1efc5950ded82
[ "BSD-3-Clause" ]
null
null
null
scripts/main_experiment.py
wsavran/relm_pycsep_reproducibility
29294dc37627e74b4fcc4d05add1efc5950ded82
[ "BSD-3-Clause" ]
null
null
null
scripts/main_experiment.py
wsavran/relm_pycsep_reproducibility
29294dc37627e74b4fcc4d05add1efc5950ded82
[ "BSD-3-Clause" ]
null
null
null
# imports from collections import defaultdict import numpy as np import matplotlib.pyplot as pyplot # pycsep imports import csep from csep.utils import stats, plots # experiment imports from experiment_utilities import ( load_zechar_catalog, plot_consistency_test_comparison, read_zechar_csv_t...
31.206897
113
0.651271
556
4,525
5.016187
0.25
0.057368
0.01972
0.03227
0.328075
0.242739
0.223378
0.223378
0.20545
0.20545
0
0.006605
0.230497
4,525
144
114
31.423611
0.794371
0.076022
0
0.242718
0
0.009709
0.183085
0.107641
0
0
0
0
0
1
0
false
0
0.067961
0
0.067961
0.116505
0
0
0
null
0
0
0
0
0
0
0
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
2f677c0ab09b208476f962949003f247df030535
10,284
py
Python
kakuro.py
PanPapag/Kakuro
c2de75fff059fdb479c6c435205cf864bd057510
[ "MIT" ]
5
2020-01-01T19:12:34.000Z
2020-05-16T08:57:08.000Z
kakuro.py
PanPapag/Kakuro
c2de75fff059fdb479c6c435205cf864bd057510
[ "MIT" ]
1
2020-04-26T09:51:55.000Z
2020-04-26T10:41:25.000Z
kakuro.py
PanPapag/Kakuro
c2de75fff059fdb479c6c435205cf864bd057510
[ "MIT" ]
null
null
null
import os import re import sys import time import puzzles from csp import * from search import * from utils import * class Kakuro(CSP): def __init__(self, puzzle): self.puzzle = puzzle self.rows_size = len(puzzle) self.cols_size = len(puzzle[0]) self.variables = self.get_variables(...
40.809524
115
0.50564
1,165
10,284
4.345064
0.13133
0.011853
0.041486
0.01778
0.593244
0.531411
0.469972
0.424338
0.365863
0.337021
0
0.010034
0.379813
10,284
251
116
40.972112
0.783631
0.082653
0
0.397059
0
0
0.041454
0.006378
0.009804
0
0
0
0
1
0.063725
false
0
0.039216
0
0.20098
0.073529
0
0
0
null
0
0
0
0
0
0
0
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
2f6b87929186c7b4d57d3ad6750b0986257cf867
662
py
Python
list_prime.py
zm6/Python-Practice
c2080e1104cd7cee4af8ebc3e3f4941fc7466586
[ "MIT" ]
null
null
null
list_prime.py
zm6/Python-Practice
c2080e1104cd7cee4af8ebc3e3f4941fc7466586
[ "MIT" ]
null
null
null
list_prime.py
zm6/Python-Practice
c2080e1104cd7cee4af8ebc3e3f4941fc7466586
[ "MIT" ]
null
null
null
#!/user/bin/env python # -*- coding:utf-8 -*- # 作者:zm6 # 创建:2021-03-19 # 更新:2021-03-19 # 用意:打印N以内的质数 import time # 比较代码运行时间 def list_prime(n): num = 0 for i in range(2, n + 1): is_prime = 1 #预设质数为是 for j in range(2, i - 1): if i % j == 0: is_prime = 0 #设置质数为否 ...
16.55
54
0.493958
97
662
3.237113
0.556701
0.066879
0.050955
0
0
0
0
0
0
0
0
0.066351
0.362538
662
39
55
16.974359
0.677725
0.188822
0
0
0
0
0.076336
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.15
0.15
0
0
0
null
0
0
0
0
0
0
0
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
2f6cee267527184d028d64eb983074f84ea9f058
2,246
py
Python
foyer/tests/test_forcefield.py
rmatsum836/foyer
c150d6f4c34e9ca7c5e4012e4406fb4ebab588cb
[ "MIT" ]
1
2020-11-08T23:51:29.000Z
2020-11-08T23:51:29.000Z
foyer/tests/test_forcefield.py
rmatsum836/foyer
c150d6f4c34e9ca7c5e4012e4406fb4ebab588cb
[ "MIT" ]
null
null
null
foyer/tests/test_forcefield.py
rmatsum836/foyer
c150d6f4c34e9ca7c5e4012e4406fb4ebab588cb
[ "MIT" ]
null
null
null
import glob import os from pkg_resources import resource_filename import mbuild as mb import parmed as pmd import pytest from foyer import Forcefield from foyer.tests.utils import get_fn FF_DIR = resource_filename('foyer', 'forcefields') FORCEFIELDS = glob.glob(os.path.join(FF_DIR, '*.xml')) def test_load_files()...
31.194444
72
0.684328
344
2,246
4.34593
0.232558
0.053512
0.060201
0.056187
0.638796
0.632776
0.632776
0.632776
0.632776
0.527759
0
0.031798
0.18789
2,246
71
73
31.633803
0.787829
0
0
0.509434
0
0
0.06545
0
0
0
0
0
0.377358
1
0.09434
false
0
0.150943
0
0.245283
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
2f705c1639774ae7481bbdfb1680d2106c872e2a
1,418
py
Python
app/pipelines/load_data/load_marketing_data/__init__.py
mediaimprove/mara-example-project-1
d1cab4cf079e78a4c0f73edac73200fac4112f34
[ "MIT" ]
22
2020-10-07T21:32:07.000Z
2022-03-21T19:21:36.000Z
app/pipelines/load_data/load_marketing_data/__init__.py
mediaimprove/mara-example-project-1
d1cab4cf079e78a4c0f73edac73200fac4112f34
[ "MIT" ]
4
2020-07-16T15:22:46.000Z
2020-10-28T15:18:32.000Z
app/pipelines/load_data/load_marketing_data/__init__.py
mediaimprove/mara-example-project-1
d1cab4cf079e78a4c0f73edac73200fac4112f34
[ "MIT" ]
4
2020-10-08T10:30:04.000Z
2022-03-19T09:21:51.000Z
import pathlib from mara_pipelines.commands.sql import ExecuteSQL, Copy from mara_pipelines.pipelines import Pipeline, Task from mara_pipelines import config pipeline = Pipeline( id="load_marketing_data", description="Jobs related with loading marketing leads data from the backend database", max_number_of...
32.227273
108
0.61213
154
1,418
5.337662
0.441558
0.06326
0.062044
0.053528
0.143552
0
0
0
0
0
0
0.000987
0.285614
1,418
43
109
32.976744
0.810464
0
0
0.055556
0
0
0.311707
0.089563
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f710ce3e46ffdc56061d382495ca8df6e25a15b
320
py
Python
apps/urls.py
cijianciqing/myWX_l_ningmo
df4c80554b0f3c58060352fc0d5fc6c649f805c8
[ "Apache-2.0" ]
null
null
null
apps/urls.py
cijianciqing/myWX_l_ningmo
df4c80554b0f3c58060352fc0d5fc6c649f805c8
[ "Apache-2.0" ]
null
null
null
apps/urls.py
cijianciqing/myWX_l_ningmo
df4c80554b0f3c58060352fc0d5fc6c649f805c8
[ "Apache-2.0" ]
null
null
null
from django.urls import path,include from .views import menu, image, weixinFile urlpatterns = [ path('menu/list', menu.get_menu), path('menu/user', menu.UserMenu.as_view()), path('image', image.ImageView.as_view()), path('saveWX', weixinFile.saveWX), path('getRecentWX', weixinFile.getRecentWX), ]
26.666667
48
0.696875
40
320
5.5
0.5
0.072727
0.090909
0
0
0
0
0
0
0
0
0
0.14375
320
12
49
26.666667
0.80292
0
0
0
0
0
0.125392
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f7149167478c04bd0604548dfe0f8ebb31e11a2
1,178
py
Python
mayan/apps/django_gpg/links.py
garrans/mayan-edms
e95e90cc47447a1ae72629271652824aa9868572
[ "Apache-2.0" ]
null
null
null
mayan/apps/django_gpg/links.py
garrans/mayan-edms
e95e90cc47447a1ae72629271652824aa9868572
[ "Apache-2.0" ]
null
null
null
mayan/apps/django_gpg/links.py
garrans/mayan-edms
e95e90cc47447a1ae72629271652824aa9868572
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.utils.translation import ugettext_lazy as _ from navigation import Link from .permissions import ( permission_key_delete, permission_key_receive, permission_key_view, permission_keyserver_query ) link_private_keys = Link( icon='fa fa-key', permissions=...
31.837838
77
0.749576
155
1,178
5.296774
0.264516
0.126675
0.095006
0.116931
0.274056
0.244823
0.181486
0.181486
0.181486
0.181486
0
0
0.119694
1,178
36
78
32.722222
0.791707
0
0
0.096774
0
0
0.241935
0.103565
0
0
0
0
0
1
0
false
0
0.16129
0
0.16129
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f73b6858df8269c4f5f2480de3342f864156c6c
1,489
py
Python
rosalind/splc/splc.py
TecKnow/learning
71d1ddf9d580027ecc62a067581da378a9e85f6d
[ "BSD-3-Clause" ]
null
null
null
rosalind/splc/splc.py
TecKnow/learning
71d1ddf9d580027ecc62a067581da378a9e85f6d
[ "BSD-3-Clause" ]
null
null
null
rosalind/splc/splc.py
TecKnow/learning
71d1ddf9d580027ecc62a067581da378a9e85f6d
[ "BSD-3-Clause" ]
null
null
null
""" Problem : RNA Splicing URL : http://rosalind.info/problems/splc/ Author : David P. Perkins """ import fasta def getCodingRegion(DNAString, introns): #print("DNA String", DNAString, "introns", introns) codingString = list() workingString = DNAString while workingString: for curI...
29.78
85
0.601746
161
1,489
5.490683
0.52795
0.036199
0.058824
0
0
0
0
0
0
0
0
0.007353
0.269308
1,489
49
86
30.387755
0.805147
0.200134
0
0
0
0
0.036441
0.024576
0
0
0
0
0
1
0.0625
false
0
0.09375
0
0.21875
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
0
0
0
0
0
1
0
2f75db3882d66a7931843a46ed92b1bea9dfaf2f
6,448
py
Python
tests/integration/test_interrupt_fields.py
jvanstraten/vhdmmio
f166b07074a9159311a01af88497df91c19e09d1
[ "Apache-2.0" ]
4
2019-07-01T14:41:38.000Z
2021-11-28T12:54:49.000Z
tests/integration/test_interrupt_fields.py
jvanstraten/vhdmmio
f166b07074a9159311a01af88497df91c19e09d1
[ "Apache-2.0" ]
4
2019-08-23T15:05:24.000Z
2020-12-16T10:02:20.000Z
tests/integration/test_interrupt_fields.py
jvanstraten/vhdmmio
f166b07074a9159311a01af88497df91c19e09d1
[ "Apache-2.0" ]
1
2021-07-16T13:41:21.000Z
2021-07-16T13:41:21.000Z
"""Interrupt field tests.""" from copy import deepcopy from unittest import TestCase from ..testbench import RegisterFileTestbench class TestInterruptFields(TestCase): """Interrupt field tests""" def test_fields(self): """test interrupt fields""" fields = [] types = { typ:...
38.380952
89
0.498759
628
6,448
5.078025
0.173567
0.076827
0.075886
0.110379
0.618062
0.566008
0.525557
0.358733
0.358733
0.314205
0
0.032567
0.352357
6,448
167
90
38.610778
0.731082
0.015664
0
0.455782
0
0
0.165033
0.003636
0
0
0.024344
0
0.217687
1
0.013605
false
0
0.020408
0
0.040816
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
2f762c138bc0fd2f04d2c1539f4eca93c9446723
1,745
py
Python
app.py
corsmith/openshift-webhook-webex-teams-translator
fc20d4cdf2ca0959d2875048e6c5e5a1477ccec5
[ "BSD-3-Clause" ]
null
null
null
app.py
corsmith/openshift-webhook-webex-teams-translator
fc20d4cdf2ca0959d2875048e6c5e5a1477ccec5
[ "BSD-3-Clause" ]
null
null
null
app.py
corsmith/openshift-webhook-webex-teams-translator
fc20d4cdf2ca0959d2875048e6c5e5a1477ccec5
[ "BSD-3-Clause" ]
null
null
null
import tornado.ioloop import tornado.web import tornado.options from tornado.log import gen_log ''' Alert Manager Documentation: https://prometheus.io/docs/alerting/configuration/ Sample alertmanager message: { "version": "4", "groupKey": <string>, // key identifying the group of alerts (e.g. to deduplicate)...
27.698413
177
0.638395
190
1,745
5.778947
0.6
0.03643
0.03643
0.04918
0
0
0
0
0
0
0
0.009986
0.196562
1,745
62
178
28.145161
0.773181
0
0
0
0
0.034483
0.232692
0.027885
0
0
0
0
0
1
0.103448
false
0
0.137931
0.034483
0.344828
0.068966
0
0
0
null
0
0
0
0
0
0
0
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
2f7707e7a77d86241b0db0b4c74b1a925d1c197b
695
py
Python
projects/demos/location2.py
readysetstem/readysetstem-api
01e1360f4a28a6783ee1e0fa1bc239dd999de6be
[ "Apache-2.0" ]
1
2018-02-23T20:20:45.000Z
2018-02-23T20:20:45.000Z
projects/demos/location2.py
readysetstem/readysetstem-api
01e1360f4a28a6783ee1e0fa1bc239dd999de6be
[ "Apache-2.0" ]
1
2016-10-25T18:00:15.000Z
2016-10-25T18:00:15.000Z
projects/demos/location2.py
readysetstem/readysetstem-api
01e1360f4a28a6783ee1e0fa1bc239dd999de6be
[ "Apache-2.0" ]
null
null
null
from rstem.led_matrix import FrameBuffer from rstem.mcpi import minecraft, control import time control.show() mc = minecraft.Minecraft.create() SCALE = 25 fb = FrameBuffer() count = 0 FLASH_COUNT = 3 flash_lit = True while True: pos = mc.player.getTilePos() x = round(pos.x/SCALE + (fb.width-1)/2) x_out_of_bound...
19.305556
61
0.683453
130
695
3.507692
0.353846
0.070175
0.096491
0.052632
0.065789
0
0
0
0
0
0
0.033333
0.179856
695
35
62
19.857143
0.766667
0
0
0.074074
0
0
0
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f793c352ccb3c8ed1a615cf95be1f974da7e115
10,833
py
Python
distributed_train.py
ShivamShrirao/contrastive-unpaired-translation
e81611a5bd8b7aee6aedab10aadf9e22a0804a63
[ "BSD-3-Clause" ]
null
null
null
distributed_train.py
ShivamShrirao/contrastive-unpaired-translation
e81611a5bd8b7aee6aedab10aadf9e22a0804a63
[ "BSD-3-Clause" ]
null
null
null
distributed_train.py
ShivamShrirao/contrastive-unpaired-translation
e81611a5bd8b7aee6aedab10aadf9e22a0804a63
[ "BSD-3-Clause" ]
null
null
null
import os from os.path import join as osp import numpy as np from tqdm import tqdm import wandb import torch import torch.nn as nn import torch.optim as optim from torch.cuda import amp import torch.distributed as dist from torch.nn.parallel import DistributedDataParallel as DDP from torch import autograd from torch...
48.361607
141
0.63925
1,510
10,833
4.362914
0.16755
0.020644
0.031573
0.044627
0.386157
0.346995
0.234214
0.20932
0.194596
0.184274
0
0.00775
0.2377
10,833
223
142
48.578475
0.790022
0.137173
0
0.07362
0
0
0.042065
0.002361
0
0
0
0
0
1
0.055215
false
0
0.110429
0
0.196319
0.02454
0
0
0
null
0
0
0
0
0
0
0
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
2f7b986c2b053cb63e12ef06cb1f0c6623d1ab5a
4,043
py
Python
Generator.py
pawelmakarov/ORM
1a17599b31ce6d73b08c8fa424e0a4201abfb3d3
[ "MIT" ]
null
null
null
Generator.py
pawelmakarov/ORM
1a17599b31ce6d73b08c8fa424e0a4201abfb3d3
[ "MIT" ]
null
null
null
Generator.py
pawelmakarov/ORM
1a17599b31ce6d73b08c8fa424e0a4201abfb3d3
[ "MIT" ]
null
null
null
class Generator(object): def __init__(self): self.tables = [] self.alters = [] self.triggers = [] def write_to_file(self, output_file): with open(output_file, 'w') as sql_file: sql_file.write('{0}{1}'.format('\n'.join(table for table in self.tables), '\n')) ...
43.010638
108
0.594855
514
4,043
4.445525
0.200389
0.06302
0.066958
0.017068
0.23151
0.18512
0.099344
0.099344
0.088403
0
0
0.012321
0.257235
4,043
93
109
43.473118
0.748585
0
0
0.053333
0
0.013333
0.183527
0.020777
0
0
0
0
0
1
0.173333
false
0
0.013333
0
0.293333
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
2f80a6cd8804248e492bd75be4cdf855bd46b3e3
1,606
py
Python
location/models.py
swallville/driverBackEnd
3599e5a2e58304e08502b10a3856b77a05c7fd16
[ "MIT" ]
null
null
null
location/models.py
swallville/driverBackEnd
3599e5a2e58304e08502b10a3856b77a05c7fd16
[ "MIT" ]
3
2021-03-30T12:53:49.000Z
2021-09-22T18:44:52.000Z
location/models.py
swallville/driverBackEnd
3599e5a2e58304e08502b10a3856b77a05c7fd16
[ "MIT" ]
null
null
null
from django.contrib.gis.db import models from django.db.models import Q from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy as _ # Create your models here. class Location (models.Model): name = models.CharField( max_length=100, verbose_name='Name of...
30.301887
105
0.619552
178
1,606
5.438202
0.404494
0.102273
0.07438
0.099174
0.117769
0.117769
0.117769
0
0
0
0
0.013571
0.265878
1,606
52
106
30.884615
0.807464
0.014944
0
0.071429
0
0
0.161392
0
0
0
0
0
0
1
0.071429
false
0
0.095238
0.02381
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f8142cd627ecd115f6acdab00511ac3d94dfb10
14,213
py
Python
matroska_cache/dep/scopes.py
kolypto/py-matroska-cache
b40030f97d463aac8e3a6f4b0e0e9f081dfc92b1
[ "MIT" ]
null
null
null
matroska_cache/dep/scopes.py
kolypto/py-matroska-cache
b40030f97d463aac8e3a6f4b0e0e9f081dfc92b1
[ "MIT" ]
null
null
null
matroska_cache/dep/scopes.py
kolypto/py-matroska-cache
b40030f97d463aac8e3a6f4b0e0e9f081dfc92b1
[ "MIT" ]
null
null
null
from __future__ import annotations import warnings from typing import Any, List, Callable, Tuple, Union, Collection, FrozenSet, Optional, Iterable, Set from .base import DependencyBase, dataclass from .tag import Tag ExtractorFunc = Callable[[Any], Optional[dict]] class Scopes: """ Generate dependencies that ...
42.810241
139
0.642651
1,711
14,213
5.251315
0.229106
0.017807
0.014023
0.010017
0.186867
0.162159
0.123317
0.123317
0.123317
0.116416
0
0.00069
0.286569
14,213
331
140
42.939577
0.885404
0.602617
0
0.166667
0
0.010417
0.140249
0.038382
0
0
0
0
0
1
0.09375
false
0
0.052083
0.010417
0.364583
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
2f853129c44d31a1158c0bd481a49cd736cdcaa4
7,326
py
Python
sm4.py
cclauss/Pythonista-sm
ef5c6527f36334a2b4dc3f0a92f957161aa3bdd3
[ "Apache-2.0" ]
3
2021-08-23T02:49:09.000Z
2021-08-24T01:48:14.000Z
sm4.py
cclauss/Pythonista-sm
ef5c6527f36334a2b4dc3f0a92f957161aa3bdd3
[ "Apache-2.0" ]
null
null
null
sm4.py
cclauss/Pythonista-sm
ef5c6527f36334a2b4dc3f0a92f957161aa3bdd3
[ "Apache-2.0" ]
1
2021-08-23T03:02:39.000Z
2021-08-23T03:02:39.000Z
# -*-coding:utf-8-*- import base64 import copy from .func import xor, rotl, get_uint32_be, put_uint32_be, bytes_to_list, list_to_bytes, padding, un_padding BOXES_TABLE = [ 0xd6, 0x90, 0xe9, 0xfe, 0xcc, 0xe1, 0x3d, 0xb7, 0x16, 0xb6, 0x14, 0xc2, 0x28, 0xfb, 0x2c, 0x05, 0x2b, 0x67, 0x9a, 0x76, 0x2a,...
15.822894
108
0.632678
1,181
7,326
3.77138
0.367485
0.028738
0.028289
0.035025
0.316345
0.236641
0.201841
0.134037
0.121688
0.118096
0
0.189908
0.210074
7,326
462
109
15.857143
0.579748
0.104559
0
0.08794
0
0.002513
0.027401
0.009852
0
0
0.213054
0
0
1
0.030151
false
0
0.007538
0
0.067839
0.005025
0
0
0
null
0
0
0
0
0
0
0
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
2f86b378e72ad44c8909918ac3d29f4b3f63ef71
617
py
Python
question_bank/unique-paths/unique-paths.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
9
2020-08-12T10:01:00.000Z
2022-01-05T04:37:48.000Z
question_bank/unique-paths/unique-paths.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
1
2021-02-16T10:19:31.000Z
2021-02-16T10:19:31.000Z
question_bank/unique-paths/unique-paths.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
4
2020-08-12T10:13:31.000Z
2021-11-05T01:26:58.000Z
# -*- coding: utf-8 -*- # @Author : LG """ 执行用时:40 ms, 在所有 Python3 提交中击败了74.47% 的用户 内存消耗:13.8 MB, 在所有 Python3 提交中击败了7.95% 的用户 解题思路: 只能向右或向下前进。 则当前格的路径数等于左侧格的路径数+上侧格的路径数 dp[i][j] = dp[i-1][j] + dp[i][j-1] 例子: 1 1 1 1 1 1 1 2 3 4 5 6 1 3 6 10 15 21 ...
22.851852
54
0.458671
109
617
2.577982
0.458716
0.049822
0.053381
0.05694
0.124555
0.124555
0.099644
0.099644
0.099644
0.099644
0
0.145119
0.385737
617
26
55
23.730769
0.596306
0.552674
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f8851b9c216915fb1f4051cf734644949f0036e
1,207
py
Python
crusoe_observe/ansible/roles/mlData/files/build-ml.py
CSIRT-MU/CRUSOE
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
[ "MIT" ]
3
2021-11-09T09:55:17.000Z
2022-02-19T02:58:27.000Z
crusoe_observe/ansible/roles/mlData/files/build-ml.py
CSIRT-MU/CRUSOE
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
[ "MIT" ]
null
null
null
crusoe_observe/ansible/roles/mlData/files/build-ml.py
CSIRT-MU/CRUSOE
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
[ "MIT" ]
null
null
null
import sys import structlog from osrest import Tcpml import services_component def build_os(dataset_path, model_path, logger): logger.info(f"Loading OS dataset from \"{dataset_path}\".") dataset = Tcpml.load_dataset(dataset_path) logger.info(f"Building OS model.") model = Tcpml.build_model(dataset) ...
30.948718
85
0.697597
176
1,207
4.505682
0.238636
0.090794
0.06053
0.050441
0.204288
0.138714
0
0
0
0
0
0.007944
0.1657
1,207
38
86
31.763158
0.779543
0
0
0
0
0
0.295775
0.13256
0
0
0
0
0
1
0.1
false
0
0.133333
0
0.233333
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
2f8911a3ffc8a10cc46f6545eeb625b8d7a7c1f6
4,049
py
Python
converter.py
TheSpiritXIII/Qt-Creator-TmTheme
3eba37c3712da9964e775a750732b6fda7cb6536
[ "Apache-2.0" ]
1
2022-01-02T19:55:18.000Z
2022-01-02T19:55:18.000Z
converter.py
TheSpiritXIII/Qt-Creator-TmTheme
3eba37c3712da9964e775a750732b6fda7cb6536
[ "Apache-2.0" ]
null
null
null
converter.py
TheSpiritXIII/Qt-Creator-TmTheme
3eba37c3712da9964e775a750732b6fda7cb6536
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys import xml.etree.ElementTree as ET def parse_value(element): if element.tag == "string": return element.text elif element.tag == "dict": return parse_dict(element) elif element.tag == "array": return parse_array(element) else: exception = "Unknown tag `" + element.tag + "`...
29.992593
97
0.667078
500
4,049
5.3
0.27
0.076981
0.037358
0.036226
0.17434
0.123019
0.097358
0.097358
0.097358
0.067925
0
0.003545
0.163991
4,049
134
98
30.216418
0.779321
0.065942
0
0.152381
0
0
0.240795
0
0
0
0
0
0
1
0.066667
false
0
0.019048
0
0.152381
0.009524
0
0
0
null
0
0
0
0
0
0
0
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
2f8eec6be049e9fe4a729f243ebe752e635be903
1,756
py
Python
rfim2d/tests/test_param_dict.py
lxh3/rfim2d
5283d0df492ad20ecef30b17803437ca9155f8b3
[ "MIT" ]
null
null
null
rfim2d/tests/test_param_dict.py
lxh3/rfim2d
5283d0df492ad20ecef30b17803437ca9155f8b3
[ "MIT" ]
null
null
null
rfim2d/tests/test_param_dict.py
lxh3/rfim2d
5283d0df492ad20ecef30b17803437ca9155f8b3
[ "MIT" ]
null
null
null
from rfim2d import param_dict key_dict = { 'A': ['Sigma', 'a', 'b'], 'dMdh': ['hMax', 'eta', 'a', 'b', 'c'], 'joint': ['rScale', 'rc', 'sScale', 'etaScale', 'df', 'lambdaH', 'B', 'C', 'F'], 'Sigma': ['rScale', 'rc', 'sScale', 'df', 'B', 'C'], 'eta': ['rScale', 'rc', 'etaScale', 'lambd...
30.807018
83
0.600228
249
1,756
4.004016
0.261044
0.126379
0.060181
0.080241
0.211635
0.081244
0
0
0
0
0
0.01763
0.192483
1,756
56
84
31.357143
0.685473
0
0
0
0
0
0.151481
0
0
0
0
0
0.136364
1
0.113636
false
0
0.022727
0
0.159091
0.022727
0
0
0
null
0
0
0
0
0
0
0
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
2f90a5c7e193988dc43d8564c22a87b2b8ba9258
753
py
Python
populator/exercise_splitter.py
Calvibert/workout-generator
0c905a2132be4e0f440d8ecbfaba71592c0fe9e2
[ "MIT" ]
null
null
null
populator/exercise_splitter.py
Calvibert/workout-generator
0c905a2132be4e0f440d8ecbfaba71592c0fe9e2
[ "MIT" ]
null
null
null
populator/exercise_splitter.py
Calvibert/workout-generator
0c905a2132be4e0f440d8ecbfaba71592c0fe9e2
[ "MIT" ]
null
null
null
# Upper-lower splitter for the exercise list import sys import exercise_populator_config as conf print('Enter the file name: ') filename = sys.stdin.readline() filename = filename[0:len(filename)-1] f = open(filename, 'r') upper = conf.CONST_MUSCLES['upper'] lower = conf.CONST_MUSCLES['lower'] uex = [] lex = [] fo...
16.733333
44
0.648074
119
753
4.016807
0.378151
0.075314
0.062762
0.075314
0.104603
0.104603
0.104603
0.104603
0
0
0
0.004983
0.200531
753
44
45
17.113636
0.789037
0.055777
0
0.193548
0
0
0.077574
0
0
0
0
0
0
1
0
false
0
0.064516
0
0.064516
0.096774
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f9197c39f4c2b4b9b35a18f55ab839142699e80
4,893
py
Python
fbpmp/pcf/mpc/emp.py
benliugithub/fbpcs
7af984264428058645847135026d474d7e28144e
[ "MIT" ]
null
null
null
fbpmp/pcf/mpc/emp.py
benliugithub/fbpcs
7af984264428058645847135026d474d7e28144e
[ "MIT" ]
null
null
null
fbpmp/pcf/mpc/emp.py
benliugithub/fbpcs
7af984264428058645847135026d474d7e28144e
[ "MIT" ]
null
null
null
#!/usr/bin/env/python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import asyncio import logging import os import pathlib import shutil from typing import Dict, List from fbpmp.pcf impo...
35.977941
95
0.625179
598
4,893
4.961538
0.35786
0.032356
0.020222
0.019211
0.097068
0.06269
0.04786
0.04786
0.04786
0.04786
0
0.006014
0.286327
4,893
135
96
36.244444
0.843643
0.168404
0
0.086957
0
0
0.141203
0.070979
0
0
0
0.007407
0
1
0.032609
false
0
0.119565
0.01087
0.206522
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
2f939a72fbb64e7dc423500b36e371b897a8fc9b
2,168
py
Python
01_Plots/plot_time_differences.py
awareseven/Reproducibility-and-Replicability-of-Web-Measurement-Studies
38953c70a9ab03e1d29e4f9c6da13ffcaaeac84b
[ "Apache-2.0" ]
3
2022-01-27T07:36:24.000Z
2022-02-22T09:32:53.000Z
01_Plots/plot_time_differences.py
awareseven/Reproducibility-and-Replicability-of-Web-Measurement-Studies
38953c70a9ab03e1d29e4f9c6da13ffcaaeac84b
[ "Apache-2.0" ]
null
null
null
01_Plots/plot_time_differences.py
awareseven/Reproducibility-and-Replicability-of-Web-Measurement-Studies
38953c70a9ab03e1d29e4f9c6da13ffcaaeac84b
[ "Apache-2.0" ]
1
2022-02-02T08:21:39.000Z
2022-02-02T08:21:39.000Z
import matplotlib.font_manager as font_manager import matplotlib.pyplot as plt import pandas as pd import os # Read the data path = os.path.join(os.getcwd(), "results") df = pd.read_csv(os.path.join(path, "tracker_AND_cookies.csv")) x = df["day"] y1 = df["total_tracker"] y2 = df["tracker_distinct"] y3 = df["is_sessio...
37.37931
100
0.683579
324
2,168
4.475309
0.388889
0.055172
0.074483
0.091034
0.317931
0.235172
0.202069
0.151034
0.095172
0.095172
0
0.031539
0.151753
2,168
57
101
38.035088
0.756933
0.096402
0
0
0
0
0.261026
0.028718
0
0
0
0
0
1
0
false
0
0.097561
0
0.097561
0.073171
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f9feffcaa4a8285a2abe800ba2837e256eb6e2b
2,636
py
Python
nebula_utils/nebula_utils/persist_compute/utils.py
threathunterX/python_lib
e2d4052de04c82cb7bccd08042f28db824cab442
[ "Apache-2.0" ]
2
2019-03-17T04:03:08.000Z
2019-05-01T09:42:23.000Z
nebula_utils/nebula_utils/persist_compute/utils.py
threathunterX/python_lib
e2d4052de04c82cb7bccd08042f28db824cab442
[ "Apache-2.0" ]
null
null
null
nebula_utils/nebula_utils/persist_compute/utils.py
threathunterX/python_lib
e2d4052de04c82cb7bccd08042f28db824cab442
[ "Apache-2.0" ]
4
2019-06-24T05:47:24.000Z
2020-09-29T05:00:31.000Z
# -*- coding: utf-8 -*- Group_Key_To_Dimension = dict( c_ip = 'ip', uid = 'user', page = 'page', did = 'did', # c_ipc = 'ipc', ) Avail_Dimensions = tuple(Group_Key_To_Dimension.values()) # dimension : variable_name(获取点击量的变量名) Click_Variable_Names = dict( ip='ip__visit__dynamic_count__1h__slot'...
28.967033
167
0.60091
389
2,636
3.645244
0.213368
0.074048
0.062059
0.080395
0.248942
0.171368
0.126939
0.126939
0.126939
0.126939
0
0.017822
0.233687
2,636
90
168
29.288889
0.684158
0.194234
0
0.04
0
0.04
0.297767
0.20794
0
0
0
0
0.04
1
0.04
false
0
0
0
0.06
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
85cb5db8536dff080788a2b44e8c7498ab0bd3f3
2,649
py
Python
course_grader/dao/message.py
uw-it-aca/gradepage
7059d715cc112ad0ecb0e5012f716e525ee7b3bc
[ "Apache-2.0" ]
1
2017-01-29T09:52:06.000Z
2017-01-29T09:52:06.000Z
course_grader/dao/message.py
uw-it-aca/gradepage
7059d715cc112ad0ecb0e5012f716e525ee7b3bc
[ "Apache-2.0" ]
287
2017-03-09T00:17:20.000Z
2022-01-08T00:36:34.000Z
course_grader/dao/message.py
uw-it-aca/gradepage
7059d715cc112ad0ecb0e5012f716e525ee7b3bc
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from course_grader.dao import current_datetime, display_datetime from course_grader.dao.term import ( next_gradable_term, previous_gradable_term, submission_deadline_warning, is_grading_period_open) from persistent_message.m...
35.797297
76
0.710834
327
2,649
5.348624
0.256881
0.133791
0.144654
0.074328
0.281875
0.173242
0.13665
0.098342
0.058319
0
0
0.014045
0.193658
2,649
73
77
36.287671
0.804775
0.030955
0
0.157895
0
0
0.117395
0.047582
0
0
0
0
0
1
0.070175
false
0
0.052632
0
0.210526
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
85cb84708ec1159fcbafba9f83ab692e7fdf9668
4,541
py
Python
swn/file.py
wkitlasten/surface-water-network
fd36ad5ee3fbd7a1107f0c4c376c4af1295b5b1b
[ "BSD-3-Clause" ]
18
2019-12-04T14:59:47.000Z
2021-12-21T12:34:28.000Z
swn/file.py
jonathanqv/surface-water-network
362217c897345042464564440be08b34f6f0915d
[ "BSD-3-Clause" ]
17
2020-04-15T04:49:49.000Z
2022-03-04T05:22:17.000Z
swn/file.py
jonathanqv/surface-water-network
362217c897345042464564440be08b34f6f0915d
[ "BSD-3-Clause" ]
6
2020-05-07T23:56:12.000Z
2022-01-08T16:56:32.000Z
"""File reading/writing helpers.""" __all__ = ["topnet2ts", "gdf_to_shapefile"] import geopandas import pandas as pd from swn.logger import get_logger, logging def topnet2ts(nc_path, varname, mult=None, log_level=logging.INFO): """Read TopNet data from a netCDF file into a pandas.DataFrame timeseries. Use...
32.435714
78
0.602731
579
4,541
4.594128
0.381693
0.015789
0.015038
0.008271
0.013534
0
0
0
0
0
0
0.012741
0.291346
4,541
139
79
32.669065
0.81386
0.245761
0
0.046512
0
0
0.179933
0
0
0
0
0
0.011628
1
0.023256
false
0
0.104651
0
0.139535
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
85cc4f7ba3e6215d40e3cc9668b7b4fc514ab919
5,752
py
Python
assignment4/src/clean_documents.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
assignment4/src/clean_documents.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
assignment4/src/clean_documents.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ data clean for books (clean_documents.py) note - this is the same as in assignment 1 for the most part """ import re from ast import literal_eval from os.path import basename, splitext, exists from typing import Optional, List from utils import get_glob, file_path_relative from variables im...
39.129252
107
0.619784
734
5,752
4.592643
0.211172
0.033225
0.019282
0.010679
0.143578
0.077722
0.04509
0.029071
0.029071
0.029071
0
0.005176
0.29468
5,752
146
108
39.39726
0.825733
0.052156
0
0.017857
0
0
0.074478
0.017372
0
0
0
0
0
1
0.017857
false
0
0.098214
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
85ccd6d8d9bc17b243d312e04343cd6c75bdd27f
6,041
py
Python
miniproject/api/organization/views.py
dandy7373/HR_web
65dd80159c7e3113961d55ef126b7df75c7bda13
[ "MIT" ]
null
null
null
miniproject/api/organization/views.py
dandy7373/HR_web
65dd80159c7e3113961d55ef126b7df75c7bda13
[ "MIT" ]
null
null
null
miniproject/api/organization/views.py
dandy7373/HR_web
65dd80159c7e3113961d55ef126b7df75c7bda13
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework.generics import RetrieveAPIView,CreateAPIView from rest_framework.permissions import AllowAny from rest_framework.response import Response from rest_framework.status import HTTP_200_OK, HTTP_400_BAD_REQUEST,HTTP_201_CREATED from rest_framework.views import APIView...
37.290123
140
0.608343
675
6,041
5.30963
0.17037
0.07673
0.027902
0.047433
0.40904
0.301618
0.275391
0.260882
0.196429
0.153181
0
0.014393
0.275451
6,041
162
141
37.290123
0.804432
0
0
0.355705
0
0
0.066203
0
0
0
0
0
0
1
0.053691
false
0.013423
0.067114
0
0.315436
0.134228
0
0
0
null
0
0
0
0
0
0
0
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
85ccf00c2aab76068a1c4fc3ab1b4c929b9cff1a
9,378
py
Python
nutils/cli.py
JochenHinz/nutils
ac18dd6825b107e2e4c186ebb1598dbf0fff0f77
[ "MIT" ]
null
null
null
nutils/cli.py
JochenHinz/nutils
ac18dd6825b107e2e4c186ebb1598dbf0fff0f77
[ "MIT" ]
null
null
null
nutils/cli.py
JochenHinz/nutils
ac18dd6825b107e2e4c186ebb1598dbf0fff0f77
[ "MIT" ]
null
null
null
# Copyright (c) 2014 Evalf # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, s...
44.028169
187
0.683301
1,204
9,378
5.273256
0.375415
0.00945
0.018743
0.006143
0.055442
0.044101
0.044101
0.041266
0.01197
0.01197
0
0.026173
0.17701
9,378
212
188
44.235849
0.795672
0.161122
0
0.121019
0
0.025478
0.276237
0.115557
0
0
0
0
0.006369
1
0.044586
false
0
0.012739
0
0.101911
0.070064
0
0
0
null
0
0
0
0
0
0
0
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
85ceb804c95eaa5e6ed011f7728feba8c174befd
6,336
py
Python
experiments/alpha_analysis.py
oeg-upm/tada-entity
6e538129229bed49bf1aa960fcd97a8468eca765
[ "Apache-2.0" ]
3
2019-06-11T10:19:25.000Z
2022-02-28T22:58:29.000Z
experiments/alpha_analysis.py
oeg-upm/tada-entity
6e538129229bed49bf1aa960fcd97a8468eca765
[ "Apache-2.0" ]
7
2019-02-04T08:57:54.000Z
2021-11-01T12:42:03.000Z
experiments/alpha_analysis.py
oeg-upm/tada-entity
6e538129229bed49bf1aa960fcd97a8468eca765
[ "Apache-2.0" ]
null
null
null
""" This script analyses optimal alphas for each class and draws them in a box and whisker plot """ import pandas as pd import argparse import seaborn as sns import matplotlib.pyplot as plt import itertools def shorten_uri(class_uri, base="http://dbpedia.org/ontology/", pref="dbo:"): return class_uri.replace(base...
34.622951
114
0.574337
812
6,336
4.316502
0.280788
0.012839
0.029101
0.01826
0.297575
0.24194
0.210556
0.137518
0.077033
0.077033
0
0.011847
0.280619
6,336
182
115
34.813187
0.75713
0.283617
0
0.121212
0
0
0.145305
0
0
0
0
0
0
1
0.070707
false
0
0.050505
0.010101
0.151515
0.070707
0
0
0
null
0
0
0
0
0
0
0
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
85cf779b9a1cc2e9b35950583be014be08b8ba73
1,009
py
Python
p039m/combination_sum.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
1
2020-02-20T12:04:46.000Z
2020-02-20T12:04:46.000Z
p039m/combination_sum.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
p039m/combination_sum.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
from typing import List class Solution: def combinationSum(self, candidates: List[int], target: int) -> List[List[int]]: candidates.sort() ans = [] def helper(path: List[int], target: int, start: int) -> None: if target < 0: return if target == 0: ...
27.27027
84
0.489594
123
1,009
4.01626
0.357724
0.020243
0.018219
0.064777
0
0
0
0
0
0
0
0.05052
0.333003
1,009
36
85
28.027778
0.683507
0.004955
0
0.068966
0
0
0.022954
0
0
0
0
0
0.034483
1
0.068966
false
0
0.034483
0
0.241379
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85d1bb79ecc810612d2ce67b9924416144e6d28f
7,706
py
Python
singleimagemodel.py
severinaklingler/kaggle-ocular-disease
a6641f6005d1a7f2399b4de9e804ab3ac7f20dd2
[ "Apache-2.0" ]
null
null
null
singleimagemodel.py
severinaklingler/kaggle-ocular-disease
a6641f6005d1a7f2399b4de9e804ab3ac7f20dd2
[ "Apache-2.0" ]
null
null
null
singleimagemodel.py
severinaklingler/kaggle-ocular-disease
a6641f6005d1a7f2399b4de9e804ab3ac7f20dd2
[ "Apache-2.0" ]
null
null
null
from logging import getLevelName import numpy as np import os import tensorflow as tf import pathlib import pandas as pd import re import matplotlib.pyplot as plt from tensorflow.keras.models import Model from tensorflow.keras.layers import Input from tensorflow.keras.layers import Dense from tensorflow.keras.layers im...
32.514768
139
0.706982
1,077
7,706
4.82637
0.278552
0.020777
0.029242
0.028857
0.166603
0.075798
0.029627
0.029627
0.01693
0
0
0.012197
0.170127
7,706
237
140
32.514768
0.800625
0.007527
0
0.010929
0
0
0.080565
0.015041
0
0
0
0.004219
0
1
0.098361
false
0
0.10929
0.016393
0.284153
0.032787
0
0
0
null
0
0
0
0
0
0
0
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
85d2ee56a1605c4085ef6834b7da596c8770a900
17,167
py
Python
features/steps/prs_steps.py
spidezad/python-pptx
eab3f55b84b54906876d5486172d5d0c457d55f8
[ "BSD-2-Clause" ]
1
2021-05-17T06:33:32.000Z
2021-05-17T06:33:32.000Z
features/steps/prs_steps.py
spidezad/python-pptx
eab3f55b84b54906876d5486172d5d0c457d55f8
[ "BSD-2-Clause" ]
null
null
null
features/steps/prs_steps.py
spidezad/python-pptx
eab3f55b84b54906876d5486172d5d0c457d55f8
[ "BSD-2-Clause" ]
null
null
null
import os from datetime import datetime, timedelta from behave import given, when, then from hamcrest import ( assert_that, equal_to, has_item, is_, is_not, greater_than, less_than ) from StringIO import StringIO from pptx import packaging from pptx import Presentation from pptx.constants import MSO_AUTO_SHAPE_T...
33.926877
74
0.732044
2,609
17,167
4.551552
0.110387
0.037137
0.037221
0.042105
0.531368
0.449853
0.382316
0.312337
0.269137
0.233684
0
0.01776
0.147201
17,167
505
75
33.994059
0.793374
0.021029
0
0.220994
0
0
0.178284
0.0025
0
0
0
0
0.107735
1
0.176796
false
0.002762
0.024862
0.002762
0.20442
0.002762
0
0
0
null
0
0
0
0
0
0
0
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
85d71db4dff31a27689c64809381f6863f31ac08
3,177
py
Python
PomodoroTimer/Python/main2.py
zcribe/SmallProjectsCollection
fbd6bc9884468eba7519728e295b36b24043af27
[ "MIT" ]
null
null
null
PomodoroTimer/Python/main2.py
zcribe/SmallProjectsCollection
fbd6bc9884468eba7519728e295b36b24043af27
[ "MIT" ]
null
null
null
PomodoroTimer/Python/main2.py
zcribe/SmallProjectsCollection
fbd6bc9884468eba7519728e295b36b24043af27
[ "MIT" ]
null
null
null
from time import time, sleep from math import floor import argparse import csv import datetime # Constants TIME_WORK = 25 TIME_REST = 5 TIME_REST_LONG = 30 ONE_MINUTE = 60 SESSIONS_WORK_MAX = 4 LOOP_LIMIT = 9999 # Console parser = argparse.ArgumentParser(description='===== Pomodoro timer CLI =====') parser.add_argume...
33.09375
115
0.664463
407
3,177
4.948403
0.297297
0.083913
0.059086
0.029791
0.146971
0.069017
0.027805
0.027805
0.027805
0
0
0.008052
0.21813
3,177
95
116
33.442105
0.802738
0.006925
0
0.027397
0
0
0.166931
0
0
0
0
0
0
1
0.082192
false
0
0.068493
0.013699
0.191781
0.027397
0
0
0
null
0
0
0
0
0
0
0
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
85db5b6d5b5a64186bb3b9c04d0a279e4a5f0c0a
998
py
Python
hw1/1.6/encrpyt_equals_decrypt.py
rocke97/crypto
89c4e595adf74558e12ceb1762025fd2f0275fec
[ "MIT" ]
null
null
null
hw1/1.6/encrpyt_equals_decrypt.py
rocke97/crypto
89c4e595adf74558e12ceb1762025fd2f0275fec
[ "MIT" ]
null
null
null
hw1/1.6/encrpyt_equals_decrypt.py
rocke97/crypto
89c4e595adf74558e12ceb1762025fd2f0275fec
[ "MIT" ]
null
null
null
from itertools import count from string import ascii_lowercase plain_text = 'july' results_file = open('results.txt', 'w') letters_to_numbers = dict(zip(ascii_lowercase, count(0))) numbers_to_letters = dict(zip(count(0), ascii_lowercase)) plain_text_numbers = [letters_to_numbers[letter] for letter in plain_text] for i...
52.526316
111
0.728457
149
998
4.66443
0.355705
0.168345
0.103597
0.066187
0.141007
0.077698
0.077698
0.077698
0
0
0
0.010896
0.172345
998
19
112
52.526316
0.830508
0.196393
0
0
0
0
0.0875
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85db89656ff34bccb3df57eb36eff9c756872dce
2,663
py
Python
generator.py
mann1/DD_SIM_Template
84c7787b6b3c52f08e7031114894c98416c02fcf
[ "MIT" ]
null
null
null
generator.py
mann1/DD_SIM_Template
84c7787b6b3c52f08e7031114894c98416c02fcf
[ "MIT" ]
null
null
null
generator.py
mann1/DD_SIM_Template
84c7787b6b3c52f08e7031114894c98416c02fcf
[ "MIT" ]
null
null
null
import os, pickle import numpy as np import tensorflow as tf def read_pickle(file_name): with (open(file_name, "rb")) as openfile: while True: try: objects = pickle.load(openfile) except EOFError: break return objects class Generator(tf.keras.uti...
32.876543
108
0.613969
341
2,663
4.542522
0.258065
0.051646
0.042608
0.036152
0.179471
0.151065
0.151065
0.107166
0.107166
0.058102
0
0.002626
0.285017
2,663
81
109
32.876543
0.810924
0.124296
0
0
0
0
0.057855
0
0
0
0
0
0.020408
1
0.122449
false
0
0.061224
0
0.265306
0.081633
0
0
0
null
0
0
0
0
0
0
0
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
85db99fa2aa9b948ffca4017b69512e862fe9571
5,096
py
Python
src/mlb/schedule/schedule_view.py
benbrandt22/MagTagMLB
1ec347743bc7df9339fb8e3de0f86ea037b7694f
[ "MIT" ]
null
null
null
src/mlb/schedule/schedule_view.py
benbrandt22/MagTagMLB
1ec347743bc7df9339fb8e3de0f86ea037b7694f
[ "MIT" ]
null
null
null
src/mlb/schedule/schedule_view.py
benbrandt22/MagTagMLB
1ec347743bc7df9339fb8e3de0f86ea037b7694f
[ "MIT" ]
null
null
null
from mlb.models.game_detail import GameDetail import time import board import displayio from adafruit_display_text import label from adafruit_display_shapes.roundrect import RoundRect import fonts.fonts as FONTS from mlb.schedule.schedule_view_model import ScheduleViewModel from time_utils import day_of_week, month_nam...
38.315789
114
0.649333
661
5,096
4.748865
0.229955
0.048742
0.047786
0.065945
0.191144
0.178401
0.136668
0.050972
0.050972
0.02676
0
0.054526
0.258634
5,096
133
115
38.315789
0.776337
0.038462
0
0.021053
0
0
0.062551
0.047629
0
0
0.019624
0
0
1
0.031579
false
0
0.094737
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85dddc830d151d3b583e5d23116cb924afd1cfe8
2,106
py
Python
src/platform_controller/scripts/controlTiltMotors.py
ahmohamed1/activeStereoVisionPlatform
6c928ca242e4de68c7b15a8748bff1d9f7fa1382
[ "MIT" ]
null
null
null
src/platform_controller/scripts/controlTiltMotors.py
ahmohamed1/activeStereoVisionPlatform
6c928ca242e4de68c7b15a8748bff1d9f7fa1382
[ "MIT" ]
null
null
null
src/platform_controller/scripts/controlTiltMotors.py
ahmohamed1/activeStereoVisionPlatform
6c928ca242e4de68c7b15a8748bff1d9f7fa1382
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import actionlib from control_msgs.msg import * from std_msgs.msg import Float64 from sensor_msgs.msg import JointState PI = 3.14159265359 class TiltMotorController: def __init__(self): self.leftMotor_publisher = rospy.Publisher('/left_motor_tilt/command', Float64, queue_size =...
23.931818
104
0.746439
266
2,106
5.733083
0.304511
0.036721
0.060328
0.04459
0.157377
0.154754
0.120656
0.120656
0.072131
0.072131
0
0.032009
0.139601
2,106
87
105
24.206897
0.809603
0.062678
0
0.08
0
0
0.078623
0.02518
0
0
0
0
0
1
0.18
false
0
0.1
0.04
0.34
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85dde154e71416994a5fa1e8b1afe91eea13927c
14,888
py
Python
py/Parser.py
Sqazine/ComputeDuck
d307d88a24601d433aa7507ea90000207a34e1f0
[ "Apache-2.0" ]
2
2021-12-05T12:38:26.000Z
2022-03-09T02:24:44.000Z
py/Parser.py
Sqazine/ComputeDuck
d307d88a24601d433aa7507ea90000207a34e1f0
[ "Apache-2.0" ]
null
null
null
py/Parser.py
Sqazine/ComputeDuck
d307d88a24601d433aa7507ea90000207a34e1f0
[ "Apache-2.0" ]
null
null
null
from ast import Lambda from enum import IntEnum from typing import Any from Ast import Stmt from Ast import Expr from Token import Token, TokenType from Utils import Assert from Ast import AstType, ArrayExpr, BoolExpr, ExprStmt, FunctionCallExpr, FunctionStmt, GroupExpr, IdentifierExpr, IfStmt, IndexExpr, InfixExpr, ...
39.076115
273
0.637493
1,401
14,888
6.698787
0.146324
0.044539
0.08098
0.029728
0.324347
0.233138
0.16292
0.130954
0.088652
0.031966
0
0.002244
0.251612
14,888
380
274
39.178947
0.840065
0.002955
0
0.163522
0
0
0.06108
0
0
0
0
0
0.009434
1
0.122642
false
0
0.025157
0.015723
0.374214
0.003145
0
0
0
null
0
0
0
0
0
0
0
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
85e03a75a96c393560650c8bb391a58fe00c64f1
302
py
Python
code/color.py
Archkitten/sleep
dd81d8fe379d8e37c58b101d78fe258588d6c1bc
[ "MIT" ]
null
null
null
code/color.py
Archkitten/sleep
dd81d8fe379d8e37c58b101d78fe258588d6c1bc
[ "MIT" ]
null
null
null
code/color.py
Archkitten/sleep
dd81d8fe379d8e37c58b101d78fe258588d6c1bc
[ "MIT" ]
null
null
null
# COLORS black = "\033[30m" red = "\033[31m" green = "\033[32m" yellow = "\033[33m" blue = "\033[34m" magenta = "\033[35m" cyan = "\033[36m" white = "\033[37m" nc = "\n" # COLOR TESTING def test(): print(red + "test") print(blue + "test2") print(green + "test3" + "\n" + cyan + "test4" + white)
17.764706
56
0.566225
44
302
3.886364
0.636364
0.105263
0
0
0
0
0
0
0
0
0
0.17623
0.192053
302
16
57
18.875
0.52459
0.066225
0
0
0
0
0.311828
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.076923
0.230769
0
0
0
null
0
0
0
0
0
0
0
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
85e1dc6359b959fbe3bde169c1c1df0d7df72888
253
py
Python
database/urls.py
shrishtickling/train_coding
ba2918ce13379940f359e2ae253987691a00f3a9
[ "Apache-2.0" ]
null
null
null
database/urls.py
shrishtickling/train_coding
ba2918ce13379940f359e2ae253987691a00f3a9
[ "Apache-2.0" ]
null
null
null
database/urls.py
shrishtickling/train_coding
ba2918ce13379940f359e2ae253987691a00f3a9
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views app_name = 'database' urlpatterns = [ path('update/', views.update), path('update2/', views.update2), path('update3/', views.update3), path('upload-user/', views.create_user_dataset) ]
19.461538
51
0.675889
31
253
5.419355
0.548387
0
0
0
0
0
0
0
0
0
0
0.018957
0.166008
253
12
52
21.083333
0.777251
0
0
0
0
0
0.170635
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85e31f8319151021136e63792aab66a8fe4825ad
421
py
Python
scripts/read_radar.py
jdiasn/raincoat
b0249c88f1a5ca22a720285e87be4b06b67705b5
[ "MIT" ]
1
2020-04-22T05:41:08.000Z
2020-04-22T05:41:08.000Z
scripts/read_radar.py
jdiasn/raincoat
b0249c88f1a5ca22a720285e87be4b06b67705b5
[ "MIT" ]
null
null
null
scripts/read_radar.py
jdiasn/raincoat
b0249c88f1a5ca22a720285e87be4b06b67705b5
[ "MIT" ]
4
2019-01-01T11:33:14.000Z
2021-01-04T20:34:43.000Z
from raincoat.radarFunctions import getVarTimeRange, getRadarVar import pandas as pd data = getRadarVar('../samplefiles/radar/181202_000000_P09_ZEN_compact.nc', '2001.01.01. 00:00:00', 'Ze') start = pd.to_datetime('2018-12-02 00:00:00', format='%Y-%m-%d %H:%M:%S') stop = pd.to_datetime...
35.083333
75
0.655582
68
421
3.970588
0.544118
0.074074
0.044444
0.118519
0.266667
0.266667
0.118519
0.118519
0.118519
0
0
0.171831
0.15677
421
11
76
38.272727
0.588732
0
0
0
0
0
0.35
0.12619
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85e79f4d2b450460c3e188d3ec311565e5eee0d2
30,714
py
Python
SoundServer.py
yoyoberenguer/SoundServer
3a824a8f519f205d5f4c277d314cb92732a157b1
[ "MIT" ]
null
null
null
SoundServer.py
yoyoberenguer/SoundServer
3a824a8f519f205d5f4c277d314cb92732a157b1
[ "MIT" ]
null
null
null
SoundServer.py
yoyoberenguer/SoundServer
3a824a8f519f205d5f4c277d314cb92732a157b1
[ "MIT" ]
null
null
null
# encoding: utf-8 __version__ = "1.0.1" try: import pygame from pygame import mixer except ImportError: raise ImportError("\n<pygame> library is missing on your system." "\nTry: \n C:\\pip install pygame on a window command prompt.") from time import time class SoundObje...
39.226054
119
0.513088
3,516
30,714
4.34215
0.092435
0.013362
0.013755
0.007926
0.449008
0.407873
0.399555
0.383245
0.373354
0.363726
0
0.008125
0.418929
30,714
782
120
39.276215
0.847313
0.297454
0
0.581948
0
0.002375
0.091607
0
0
0
0
0.001279
0.021378
1
0.071259
false
0
0.011876
0
0.135392
0.011876
0
0
0
null
0
0
0
0
0
0
0
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
85e90c8a65010ce9ecba5749d22457498fa4d999
2,931
py
Python
tests/extmethods/run.py
dariobig/pyangbind
db0808f719bb963dac85606fddd65a1930a84aef
[ "Apache-2.0" ]
1
2020-04-01T05:45:41.000Z
2020-04-01T05:45:41.000Z
tests/extmethods/run.py
dariobig/pyangbind
db0808f719bb963dac85606fddd65a1930a84aef
[ "Apache-2.0" ]
null
null
null
tests/extmethods/run.py
dariobig/pyangbind
db0808f719bb963dac85606fddd65a1930a84aef
[ "Apache-2.0" ]
3
2016-11-01T23:51:35.000Z
2018-05-23T10:09:08.000Z
#!/usr/bin/env python import os import sys import getopt TESTNAME = "extmethods" class extmethodcls(object): def commit(self, *args, **kwargs): return "COMMIT_CALLED" def presave(self, *args, **kwargs): return "PRESAVE_CALLED" def postsave(self, *args, **kwargs): return "POSTSAVE_CALLED" def ...
29.019802
76
0.604572
375
2,931
4.610667
0.314667
0.040486
0.041643
0.057837
0.122036
0.064777
0.039329
0.039329
0
0
0
0.004986
0.247356
2,931
100
77
29.31
0.778785
0.018083
0
0.026316
0
0
0.258345
0.018081
0
0
0
0
0.078947
1
0.078947
false
0.013158
0.052632
0.065789
0.210526
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
85eb93c822a019fc750d57de9e82b6de5c0352f3
790
py
Python
scripts/solved/031_TRAN.py
akikuno/rosalind
7015dc63e493d870e5789e99f2ee523a9b1f5ab9
[ "MIT" ]
null
null
null
scripts/solved/031_TRAN.py
akikuno/rosalind
7015dc63e493d870e5789e99f2ee523a9b1f5ab9
[ "MIT" ]
null
null
null
scripts/solved/031_TRAN.py
akikuno/rosalind
7015dc63e493d870e5789e99f2ee523a9b1f5ab9
[ "MIT" ]
null
null
null
# https://rosalind.info/problems/tran/ file = "data/tran.txt" def read_fasta(file: str): """ Args file: path of fasta file """ with open(file) as f: fa = f.read().splitlines() prev = True header = [] seq = [] for f in fa: if ">" in f: header.append(f[1:...
16.458333
43
0.501266
104
790
3.778846
0.509615
0.068702
0.066158
0
0
0
0
0
0
0
0
0.031683
0.360759
790
47
44
16.808511
0.746535
0.08481
0
0.129032
0
0
0.047009
0
0
0
0
0
0
1
0.032258
false
0
0.032258
0
0.096774
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85ef49b97d17705c81cdeeb0ece8add9c7768f1d
6,718
py
Python
extract_data_1.1.py
stanlee321/bolivia_power
4c86be2be8b81fead5ba9f1d50f32233cd54c1fc
[ "MIT" ]
null
null
null
extract_data_1.1.py
stanlee321/bolivia_power
4c86be2be8b81fead5ba9f1d50f32233cd54c1fc
[ "MIT" ]
null
null
null
extract_data_1.1.py
stanlee321/bolivia_power
4c86be2be8b81fead5ba9f1d50f32233cd54c1fc
[ "MIT" ]
null
null
null
# Code for extract the information from the web # with the <id> information into the bolivia_power_1.csv file # input: bolivia_power_1.id.csv # output 6x.npy array file: # <nodes_ids.lat,lon> <node.tags> # <way.ids> <way.ref> <way.tags> # ... # v. 1.1 #import pandas as pd import numpy as np...
28.108787
124
0.539744
854
6,718
4.094848
0.181499
0.033457
0.036031
0.034315
0.556763
0.49471
0.457535
0.406634
0.368316
0.356305
0
0.010872
0.246949
6,718
239
125
28.108787
0.680372
0.084102
0
0.153846
0
0
0.190332
0.04139
0
0
0
0
0
1
0.025641
false
0.025641
0.064103
0
0.089744
0.25641
0
0
0
null
0
0
0
0
0
0
0
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
85f402a990563be3704e3ce90f8e5fbc80ebcb6e
526
py
Python
Practice/Problem Solving/MaximizingXOR.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
1
2018-07-08T15:44:15.000Z
2018-07-08T15:44:15.000Z
Practice/Problem Solving/MaximizingXOR.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
null
null
null
Practice/Problem Solving/MaximizingXOR.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
2
2018-08-10T06:49:34.000Z
2020-10-01T04:50:59.000Z
#!/bin/python3 import math import os import random import re import sys # Complete the maximizingXor function below. def maximizingXor(l, r): result = [] for num1 in range(l,r+1): for num2 in range(l,r+1): xor = num1^num2 result.append(xor) return max(result) i...
17.533333
47
0.58365
72
526
4.138889
0.583333
0.026846
0.100671
0.060403
0.067114
0
0
0
0
0
0
0.01847
0.279468
526
29
48
18.137931
0.76781
0.106464
0
0
0
0
0.047009
0
0
0
0
0
0
1
0.052632
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
85f686d400d73419843a0643d08f81afb4fe05ef
4,417
py
Python
interface_report_interactive.py
hpreston/network_info_scripts
b25076eb6f55a7f7335f6cae1a4c3c00ce9aa191
[ "MIT" ]
20
2019-05-11T03:08:52.000Z
2022-01-13T13:44:22.000Z
interface_report_interactive.py
hpreston/network_info_scripts
b25076eb6f55a7f7335f6cae1a4c3c00ce9aa191
[ "MIT" ]
4
2020-02-26T23:25:59.000Z
2021-12-13T19:59:01.000Z
interface_report_interactive.py
hpreston/network_info_scripts
b25076eb6f55a7f7335f6cae1a4c3c00ce9aa191
[ "MIT" ]
8
2019-05-20T02:27:40.000Z
2021-07-07T18:49:45.000Z
#! /usr/bin/env python """Exploring Genie's ability to gather details and write to CSV This script is meant to be run line by line interactively in a Python interpretor (such as iPython) to learn how the Genie and csv libraries work. This script assumes you have a virl simulation running and a testbed file created. ...
33.462121
88
0.713607
664
4,417
4.725904
0.406627
0.031867
0.008923
0.020076
0.110261
0.110261
0.053537
0.037604
0.037604
0
0
0.005153
0.209192
4,417
131
89
33.717557
0.893215
0.66561
0
0.292683
0
0
0.162369
0
0
0
0
0
0
1
0
false
0
0.073171
0
0.073171
0.121951
0
0
0
null
0
0
0
0
0
0
0
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
85f74ccca3d8f227ec09283215d9c1ace1b61121
1,159
py
Python
app/priu.py
robhaswell/powerstrip-restrict-image-user
d6a5dbb19330f1ee5b384095c1010636af12120d
[ "Apache-2.0" ]
null
null
null
app/priu.py
robhaswell/powerstrip-restrict-image-user
d6a5dbb19330f1ee5b384095c1010636af12120d
[ "Apache-2.0" ]
null
null
null
app/priu.py
robhaswell/powerstrip-restrict-image-user
d6a5dbb19330f1ee5b384095c1010636af12120d
[ "Apache-2.0" ]
null
null
null
import os, sys import json as _json from flask import Flask, Response, request app = Flask(__name__) app.debug = True import lib @app.route("/", methods=["HEAD", "GET", "POST", "DELETE", "PUT"]) def adapter(): json = request.get_data() decoded = _json.loads(json) docker_json = _json.loads(decoded['Clien...
26.340909
88
0.637619
143
1,159
5
0.552448
0.111888
0.067133
0.055944
0
0
0
0
0
0
0
0.007675
0.213115
1,159
43
89
26.953488
0.776316
0
0
0
0
0
0.311475
0
0
0
0
0
0
1
0.029412
false
0
0.117647
0
0.205882
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
85f7c87317fb94af50f148e6f619929fe75f47af
1,316
py
Python
app/gather/api/serializers.py
eHealthAfrica/gather
88d96009c5f9832b564d13fa66d63841a7fbcd90
[ "Apache-2.0" ]
2
2019-09-25T18:37:30.000Z
2019-09-25T18:37:39.000Z
app/gather/api/serializers.py
eHealthAfrica/gather
88d96009c5f9832b564d13fa66d63841a7fbcd90
[ "Apache-2.0" ]
41
2015-07-29T14:10:05.000Z
2021-09-13T07:07:41.000Z
app/gather/api/serializers.py
eHealthAfrica/gather
88d96009c5f9832b564d13fa66d63841a7fbcd90
[ "Apache-2.0" ]
2
2019-11-12T23:09:35.000Z
2020-03-11T16:39:35.000Z
# Copyright (C) 2019 by eHealth Africa : http://www.eHealthAfrica.org # # See the NOTICE file distributed with this work for additional information # regarding copyright ownership. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with # the License. Y...
28
75
0.729483
159
1,316
5.981132
0.616352
0.063091
0.02734
0.033649
0
0
0
0
0
0
0
0.007547
0.194529
1,316
46
76
28.608696
0.889623
0.527356
0
0.210526
0
0
0.033113
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.421053
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
85fd9ccfe64a572bc3232cd253f5cd2894061049
1,514
py
Python
src/utils/jupyter_setup.py
paxtonedgar/MisInfo
81b32fa3e7d0d204feb83e10169093f45727a2ea
[ "MIT" ]
null
null
null
src/utils/jupyter_setup.py
paxtonedgar/MisInfo
81b32fa3e7d0d204feb83e10169093f45727a2ea
[ "MIT" ]
null
null
null
src/utils/jupyter_setup.py
paxtonedgar/MisInfo
81b32fa3e7d0d204feb83e10169093f45727a2ea
[ "MIT" ]
null
null
null
# built-in import os import logging # installed import pandas as pd import seaborn as sns from matplotlib import pylab # custom import src.settings from src.utils.log_utils import setup_logging, LogLevel from src.utils.config_loader import ConfigLoader, Config def setup_jupyter( root_dir: str, config_path: s...
26.103448
75
0.664465
191
1,514
5.13089
0.439791
0.061224
0.02449
0
0
0
0
0
0
0
0
0.019426
0.217966
1,514
57
76
26.561404
0.808277
0.225892
0
0
0
0
0.157003
0
0
0
0
0
0
1
0.027778
false
0
0.222222
0
0.277778
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85fdbccdde41392a6f2e6723a8450dd58d4c3c85
3,169
py
Python
EclipseOJ/contests/models.py
cs251-eclipse/eclipseOJ
ad93bf65014e87051278026f87b6b92afdaed349
[ "MIT" ]
null
null
null
EclipseOJ/contests/models.py
cs251-eclipse/eclipseOJ
ad93bf65014e87051278026f87b6b92afdaed349
[ "MIT" ]
null
null
null
EclipseOJ/contests/models.py
cs251-eclipse/eclipseOJ
ad93bf65014e87051278026f87b6b92afdaed349
[ "MIT" ]
1
2020-06-06T21:05:09.000Z
2020-06-06T21:05:09.000Z
from django.db import models from django.contrib.auth.models import User from core.models import Profile from array import * from datetime import datetime from django.utils import timezone class Contest(models.Model): """ Contests models are used to store save contests as object. Contests contain problems, use...
39.123457
270
0.688545
431
3,169
5
0.303944
0.055684
0.044548
0.051972
0.444548
0.373086
0.302552
0.302552
0.302552
0.143852
0
0.002082
0.242032
3,169
80
271
39.6125
0.895087
0.081098
0
0.15493
0
0.056338
0.426588
0
0
0
0
0
0
1
0.028169
false
0
0.084507
0.028169
0.380282
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
85ff76b7f34f9abc8f910e03a1576bfe726a0de5
7,602
py
Python
mistletoe/renderers/base.py
executablebooks/mistletoe-ebp
229812436726fd9b1af85c6e66ff8c81b415758d
[ "MIT" ]
2
2020-05-19T02:06:47.000Z
2020-06-27T10:01:59.000Z
mistletoe/renderers/base.py
executablebooks/mistletoe-ebp
229812436726fd9b1af85c6e66ff8c81b415758d
[ "MIT" ]
5
2020-03-10T22:43:16.000Z
2020-03-21T22:09:09.000Z
mistletoe/renderers/base.py
ExecutableBookProject/mistletoe-ebp
229812436726fd9b1af85c6e66ff8c81b415758d
[ "MIT" ]
null
null
null
""" Base class for renderers. """ from itertools import chain import re import sys from typing import Optional from mistletoe import block_tokens, block_tokens_ext, span_tokens, span_tokens_ext from mistletoe.parse_context import ParseContext, set_parse_context class BaseRenderer: """ Base class for rendere...
34.089686
83
0.64654
874
7,602
5.366133
0.296339
0.076759
0.022175
0.009595
0.056077
0.056077
0.018337
0.018337
0
0
0
0.00018
0.270981
7,602
222
84
34.243243
0.846084
0.349776
0
0.018868
0
0
0.079561
0.006499
0
0
0
0
0
1
0.132075
false
0.009434
0.056604
0
0.320755
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85ff94648db8e42f7e087780f32ca9e870cb3118
2,123
py
Python
deep-scratch/steps/step50.py
jayChung0302/myml
6575706aec707186037607e49342f77cde34ff52
[ "MIT" ]
null
null
null
deep-scratch/steps/step50.py
jayChung0302/myml
6575706aec707186037607e49342f77cde34ff52
[ "MIT" ]
null
null
null
deep-scratch/steps/step50.py
jayChung0302/myml
6575706aec707186037607e49342f77cde34ff52
[ "MIT" ]
null
null
null
if '__file__' in globals(): import os, sys sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import math import numpy as np import matplotlib.pyplot as plt import dezero from dezero import optimizers import dezero.functions as F import dezero.datasets as datasets from dezero.models import MLP from ...
25.890244
93
0.621291
338
2,123
3.724852
0.272189
0.03336
0.025417
0.030977
0.305004
0.249404
0.166799
0.166799
0.166799
0.166799
0
0.027278
0.240226
2,123
81
94
26.209877
0.753255
0
0
0.238806
0
0.029851
0.084354
0.06032
0
0
0
0
0
1
0.044776
false
0
0.149254
0.014925
0.238806
0.119403
0
0
0
null
0
0
0
0
0
0
0
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
c804be87c5478ddfa9fadf38397429243edc770e
4,363
py
Python
play.py
cp1r8/metadungeon
e68a35c815d60bccb883436fde782868bff7f81f
[ "CC0-1.0" ]
null
null
null
play.py
cp1r8/metadungeon
e68a35c815d60bccb883436fde782868bff7f81f
[ "CC0-1.0" ]
null
null
null
play.py
cp1r8/metadungeon
e68a35c815d60bccb883436fde782868bff7f81f
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 from game import World from game.creatures import Humanoid, Unit from game.creatures.adventurers import Adventurer, Party from game.objects.containers import Container from game.places.underground import Dungeon from game.dice import d4 from pathlib import Path import pickle import sys import u...
28.89404
98
0.544579
501
4,363
4.662675
0.283433
0.050942
0.061644
0.035959
0.259418
0.146404
0.146404
0.064212
0.064212
0.064212
0
0.010712
0.336695
4,363
150
99
29.086667
0.796475
0.037589
0
0.280374
0
0
0.099451
0.03959
0
0
0
0.006667
0
1
0
false
0
0.093458
0
0.093458
0.242991
0
0
0
null
0
0
0
0
0
0
0
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
c80624c4bad650eb5277c12ff9ddd20884d61424
590
py
Python
freeze.py
eudemonia-research/hec
e65df8e4584746dcb2785327cfcffac10a66c689
[ "MIT" ]
2
2015-11-05T16:24:31.000Z
2022-02-05T19:01:58.000Z
freeze.py
eudemonia-research/hec
e65df8e4584746dcb2785327cfcffac10a66c689
[ "MIT" ]
null
null
null
freeze.py
eudemonia-research/hec
e65df8e4584746dcb2785327cfcffac10a66c689
[ "MIT" ]
null
null
null
from cx_Freeze import setup, Executable import requests.certs # Dependencies are automatically detected, but it might need # fine tuning. buildOptions = dict(packages = [], excludes = [], include_msvcr=True, include_files=[(requests.certs.where(),'cacert.pem')]) import sys base = 'Win32GUI' if sys....
29.5
74
0.676271
68
590
5.808824
0.735294
0.065823
0
0
0
0
0
0
0
0
0
0.012579
0.191525
590
19
75
31.052632
0.815514
0.120339
0
0
0
0
0.112403
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
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
c806d8b85faac4749d3297eee869e84a9a44277c
2,742
py
Python
Elasticsearch/elasticsearchconnector.py
krajai/testt
3aaf5fd7fe85e712c8c1615852b50f9ccb6737e5
[ "BSD-3-Clause" ]
1,114
2020-09-28T07:32:23.000Z
2022-03-31T22:35:50.000Z
Elasticsearch/elasticsearchconnector.py
krajai/testt
3aaf5fd7fe85e712c8c1615852b50f9ccb6737e5
[ "BSD-3-Clause" ]
298
2020-10-29T09:39:17.000Z
2022-03-31T15:24:44.000Z
Elasticsearch/elasticsearchconnector.py
krajai/testt
3aaf5fd7fe85e712c8c1615852b50f9ccb6737e5
[ "BSD-3-Clause" ]
153
2020-09-29T06:07:39.000Z
2022-03-31T17:41:16.000Z
# Import elasticsearch module from elasticsearch import Elasticsearch,ImproperlyConfigured,TransportError import json class ElasticsearchConnector: def __init__(self,credobject=None): """ Description: Accepts elasticsearch connection parameters and connects to elasticsearch cloud """ #Parameter chec...
35.153846
119
0.73523
345
2,742
5.791304
0.284058
0.052553
0.024024
0.028028
0.256757
0.183183
0.183183
0.183183
0.183183
0.15015
0
0.000434
0.160102
2,742
78
120
35.153846
0.86713
0.076951
0
0.278689
0
0
0.287293
0
0
0
0
0
0.032787
1
0.065574
false
0.032787
0.032787
0
0.196721
0.213115
0
0
0
null
0
0
0
0
0
0
0
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
c8093b0fe4419003974199d64ec5c9a63aa70c9e
4,434
py
Python
pyvino_utils/models/recognition/gaze_estimation.py
venky4121994/openvinoface
a620138b94f865fb19e6165abde2237c85ca8764
[ "MIT" ]
4
2020-08-31T17:19:57.000Z
2020-10-03T13:59:10.000Z
pyvino_utils/models/recognition/gaze_estimation.py
B0N0AI/pyvino_utils
0d42741eb446b038eae2917b621d9c1ffbc42452
[ "MIT" ]
2
2020-09-13T08:04:36.000Z
2020-09-13T08:04:58.000Z
pyvino_utils/models/recognition/gaze_estimation.py
mmphego/pyvino_utils
0d42741eb446b038eae2917b621d9c1ffbc42452
[ "MIT" ]
null
null
null
import time import cv2 import numpy as np from ..openvino_base.base_model import Base class GazeEstimation(Base): """Class for the Gaze Estimation Recognition Model.""" def __init__( self, model_name, source_width=None, source_height=None, device="CPU", thres...
32.844444
86
0.554804
519
4,434
4.447013
0.267823
0.039428
0.036395
0.02253
0.221837
0.174177
0.136915
0.098787
0.07539
0.034662
0
0.025718
0.324763
4,434
134
87
33.089552
0.745157
0.105774
0
0.196262
0
0
0.058257
0
0.009346
0
0
0.007463
0
1
0.056075
false
0
0.037383
0
0.130841
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
c8095fa9e80674ff147ce29f4d9409ee896f3519
1,982
py
Python
src/testing/task_plot_share_of_educ_participants_with_rapid_test.py
covid-19-impact-lab/sid-germany
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
[ "MIT" ]
4
2021-04-24T14:43:47.000Z
2021-07-03T14:05:21.000Z
src/testing/task_plot_share_of_educ_participants_with_rapid_test.py
covid-19-impact-lab/sid-germany
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
[ "MIT" ]
4
2021-04-27T10:34:45.000Z
2021-08-31T16:40:28.000Z
src/testing/task_plot_share_of_educ_participants_with_rapid_test.py
covid-19-impact-lab/sid-germany
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
[ "MIT" ]
null
null
null
import warnings import matplotlib.pyplot as plt import pandas as pd import pytask import seaborn as sns from src.config import BLD from src.config import PLOT_END_DATE from src.config import PLOT_SIZE from src.config import PLOT_START_DATE from src.config import SRC from src.plotting.plotting import style_plot from s...
30.492308
85
0.712916
260
1,982
5.146154
0.342308
0.036622
0.04858
0.071001
0.210762
0.139013
0.09417
0
0
0
0
0
0.19223
1,982
64
86
30.96875
0.835728
0
0
0.071429
0
0
0.189707
0.023209
0
0
0
0
0
1
0.017857
false
0
0.214286
0
0.232143
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
c80966397626d332b933ed9036f4e46b5c441750
734
py
Python
app/models/brand.py
ertyurk/bugme
5a3ef3e089e0089055074c1c896c3fdc76600e93
[ "MIT" ]
null
null
null
app/models/brand.py
ertyurk/bugme
5a3ef3e089e0089055074c1c896c3fdc76600e93
[ "MIT" ]
null
null
null
app/models/brand.py
ertyurk/bugme
5a3ef3e089e0089055074c1c896c3fdc76600e93
[ "MIT" ]
null
null
null
from typing import Optional from pydantic import BaseModel, Field class BrandModel(BaseModel): brand: str = Field(...) auth_key: Optional[str] user_id: str = Field(...) class Config: allow_population_by_field_name = True schema_extra = { "example": { "brand...
22.9375
54
0.553134
67
734
5.880597
0.432836
0.111675
0.076142
0.091371
0.467005
0.467005
0.345178
0.345178
0.345178
0.345178
0
0.070539
0.343324
734
31
55
23.677419
0.746888
0
0
0.48
0
0
0.163488
0.065395
0
0
0
0
0
1
0
false
0
0.08
0
0.48
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
c80c247892056d339d30163cadca271c880389d5
443
py
Python
flaskapp/app.py
Chetan-Gahane/Detection-Of-Phishing-Websites
327c6bbd4fe77d465e290466f26a387760103ad7
[ "MIT" ]
null
null
null
flaskapp/app.py
Chetan-Gahane/Detection-Of-Phishing-Websites
327c6bbd4fe77d465e290466f26a387760103ad7
[ "MIT" ]
null
null
null
flaskapp/app.py
Chetan-Gahane/Detection-Of-Phishing-Websites
327c6bbd4fe77d465e290466f26a387760103ad7
[ "MIT" ]
null
null
null
from flask import Flask from flask import Flask, flash, redirect, render_template, request, session, abort import os import newtrain app = Flask(__name__) @app.route('/') def home(x): return x @app.route('/login', methods=['POST']) def do_admin_login(): url_new=request.form['username'] x=newtrai...
20.136364
82
0.683973
64
443
4.453125
0.578125
0.063158
0.105263
0.140351
0
0
0
0
0
0
0
0.005495
0.17833
443
22
83
20.136364
0.777473
0
0
0
0
0
0.060948
0
0
0
0
0
0
1
0.125
false
0
0.25
0.0625
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8100632cb345df1cb4918dfaf696ed8e91b2f92
8,607
py
Python
training/anticausal_classifier_train.py
SANCHES-Pedro/Diff-SCM
a7e7e6ed3a2cd1c21e3bf7a3ed8ed8b29a22cb69
[ "Apache-2.0" ]
6
2022-02-22T05:07:05.000Z
2022-03-29T09:48:03.000Z
training/anticausal_classifier_train.py
SANCHES-Pedro/Diff-SCM
a7e7e6ed3a2cd1c21e3bf7a3ed8ed8b29a22cb69
[ "Apache-2.0" ]
null
null
null
training/anticausal_classifier_train.py
SANCHES-Pedro/Diff-SCM
a7e7e6ed3a2cd1c21e3bf7a3ed8ed8b29a22cb69
[ "Apache-2.0" ]
2
2022-02-20T08:45:54.000Z
2022-03-09T09:51:13.000Z
""" Train a noised image classifier on ImageNet. """ import os import blobfile as bf import torch as th import torch.distributed as dist import torch.nn.functional as F from torch.nn.parallel.distributed import DistributedDataParallel as DDP from torch.optim import AdamW import torch from pathlib import Path import s...
38.084071
121
0.668526
1,111
8,607
4.937894
0.227723
0.084579
0.104995
0.032811
0.233139
0.155669
0.100073
0.072913
0.060518
0.048487
0
0.006595
0.224817
8,607
225
122
38.253333
0.815647
0.036947
0
0.093168
0
0
0.071656
0.013028
0
0
0
0
0.006211
1
0.049689
false
0
0.10559
0
0.180124
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
c81323b7eda0896694f1dbe20031469d75f77fed
3,015
py
Python
pythonclient/karmen/karmen.py
jrcichra/karmen
4d25d635509ebffa295b085ae7fa3932e3a36344
[ "MIT" ]
3
2020-03-02T13:09:07.000Z
2021-12-27T16:27:23.000Z
pythonclient/karmen/karmen.py
jrcichra/karmen
4d25d635509ebffa295b085ae7fa3932e3a36344
[ "MIT" ]
5
2020-03-02T04:53:54.000Z
2021-12-17T23:57:12.000Z
pythonclient/karmen/karmen.py
jrcichra/karmen
4d25d635509ebffa295b085ae7fa3932e3a36344
[ "MIT" ]
null
null
null
#!/usr/bin/python3 -u import threading import time import queue import socket import grpc import karmen.karmen_pb2 as pb import karmen.karmen_pb2_grpc as pb_grpc class Karmen: def __init__(self, name=socket.gethostname(), hostname="localhost", port=8080): super().__init__() self.name = name ...
30.15
83
0.60995
355
3,015
5.095775
0.309859
0.039801
0.023217
0.041459
0.126036
0
0
0
0
0
0
0.00592
0.271642
3,015
99
84
30.454545
0.817851
0.071973
0
0
0
0
0.088594
0.032999
0
0
0
0
0
1
0.161765
false
0.014706
0.102941
0.014706
0.352941
0.088235
0
0
0
null
0
0
0
0
0
0
0
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
c817b460ee65b13241ef6e94463df88bf762261b
765
py
Python
legacy/legacy/recommenders/visual_gmf.py
csmithchicago/openrec
5a9cf03abe0db0636107985f9f19d6351e4afe68
[ "MIT" ]
null
null
null
legacy/legacy/recommenders/visual_gmf.py
csmithchicago/openrec
5a9cf03abe0db0636107985f9f19d6351e4afe68
[ "MIT" ]
6
2020-01-28T22:51:16.000Z
2022-02-10T00:11:19.000Z
legacy/legacy/recommenders/visual_gmf.py
csmithchicago/openrec
5a9cf03abe0db0636107985f9f19d6351e4afe68
[ "MIT" ]
null
null
null
from openrec.legacy.recommenders import VisualPMF from openrec.legacy.modules.interactions import PointwiseGeCE class VisualGMF(VisualPMF): def _build_default_interactions(self, train=True): self._add_module( "interaction", PointwiseGeCE( user=self._get_module("use...
34.772727
86
0.589542
81
765
5.283951
0.419753
0.140187
0.091122
0.140187
0.179907
0.130841
0.130841
0
0
0
0
0.009346
0.300654
765
21
87
36.428571
0.790654
0
0
0.111111
0
0
0.071895
0
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c818c2c94bfac62e873d6b6ae455389a5b8e8196
732
py
Python
tests/test_tag.py
danielwe/explore-courses-api
e08d219b154e7fdb16690e4cd02aa239366f6747
[ "MIT" ]
7
2019-06-17T07:45:54.000Z
2022-01-31T01:09:22.000Z
tests/test_tag.py
illiteratecoder/Explore-Courses-API
b2dc41092882e4b2b7945609e4e85b8ac1702bc7
[ "MIT" ]
null
null
null
tests/test_tag.py
illiteratecoder/Explore-Courses-API
b2dc41092882e4b2b7945609e4e85b8ac1702bc7
[ "MIT" ]
1
2021-11-14T22:23:59.000Z
2021-11-14T22:23:59.000Z
from xml.etree import ElementTree as ET from explorecourses import * class TestTag(object): @classmethod def setup_class(cls): text_tag = ( '<tag>' '<organization>EARTHSYS</organization>' '<name>energy_foundation</name>' '</tag>' ) cls....
20.914286
56
0.592896
84
732
4.97619
0.369048
0.057416
0.07177
0.100478
0.200957
0.200957
0.200957
0.138756
0
0
0
0
0.296448
732
34
57
21.529412
0.81165
0
0
0.136364
0
0
0.177596
0.128415
0
0
0
0
0.181818
1
0.181818
false
0
0.090909
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c81a08103667814c6eb2d1d517a2b39db440ed7f
458
py
Python
SScriptCompiler/examples/thresholdcounter/states/init_s.py
alklasil/SScript
de4481bf96e79b9ee157e266ea9fe8b1bfb3701e
[ "MIT" ]
null
null
null
SScriptCompiler/examples/thresholdcounter/states/init_s.py
alklasil/SScript
de4481bf96e79b9ee157e266ea9fe8b1bfb3701e
[ "MIT" ]
8
2018-03-10T19:20:43.000Z
2018-04-30T18:11:17.000Z
SScriptCompiler/examples/thresholdcounter/states/init_s.py
alklasil/SScript
de4481bf96e79b9ee157e266ea9fe8b1bfb3701e
[ "MIT" ]
null
null
null
def init_s(data): return ("init", [ [ # set configuration time "$getTime", "configuration_millis", # set state initially below lower threshold "$=(const)=", "state", "@<t", "$printInt_ln", data['sensorIdentifier'], # set requestString...
26.941176
55
0.5
30
458
7.5
0.8
0
0
0
0
0
0
0
0
0
0
0
0.373362
458
16
56
28.625
0.783972
0.19869
0
0.181818
0
0
0.374656
0.15978
0
0
0
0
0
1
0.090909
false
0
0
0.090909
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