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
efe3afbb8fe9b790aa7d85947e82ca2156f2b53a
1,556
py
Python
1_languages/python/src/misc/myPiGeneral.py
praisetompane/3_programming
dd3e2e89a36a613d895fdbdd9c03845cb648fddf
[ "MIT" ]
null
null
null
1_languages/python/src/misc/myPiGeneral.py
praisetompane/3_programming
dd3e2e89a36a613d895fdbdd9c03845cb648fddf
[ "MIT" ]
null
null
null
1_languages/python/src/misc/myPiGeneral.py
praisetompane/3_programming
dd3e2e89a36a613d895fdbdd9c03845cb648fddf
[ "MIT" ]
null
null
null
#general infrastructure form approximation of pi usign a p'plugabble' approximation #an infinite series expansion from inspect import signature import math '''note: I have no idea what the mathematics name for the 'transformer' is, anybody who knows the correct terminology please update ''' def myPi(iterations,...
42.054054
116
0.721722
172
1,556
6.52907
0.44186
0.096171
0.008014
0.007124
0.055209
0
0
0
0
0
0
0.033725
0.180591
1,556
37
117
42.054054
0.847059
0.129177
0
0
0
0
0.039604
0
0
0
0
0
0
1
0.285714
false
0
0.095238
0.095238
0.47619
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
efe3cc6824c1975a25384fd393e377c7eae5c5b0
271
py
Python
SPIN/784/pp.py
NTUwanderer/P3
fc1a04b2bbcb518778e1ec4259ad4b580ef0d79b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
SPIN/784/pp.py
NTUwanderer/P3
fc1a04b2bbcb518778e1ec4259ad4b580ef0d79b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
SPIN/784/pp.py
NTUwanderer/P3
fc1a04b2bbcb518778e1ec4259ad4b580ef0d79b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
s = "cp /home/andy3466/FastEfficientP3/problem_files/IsingSpinGlass_pm_784_" for i in range(101): if i == 0 : continue temp = s temp += str(i) temp += ".txt 784_" temp += str(i) print temp print "python change.py %d" %(i)
16.9375
78
0.564576
38
271
3.894737
0.684211
0.094595
0.108108
0
0
0
0
0
0
0
0
0.079787
0.306273
271
15
79
18.066667
0.707447
0
0
0.2
0
0
0.367041
0.250936
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
efe71e73458b71acf65eb6eab6885726ab67ac5e
904
py
Python
app/aggregator/urls.py
shiimaxx/blog
5c959dce4053257269d1529c8c4aece716e21602
[ "MIT" ]
null
null
null
app/aggregator/urls.py
shiimaxx/blog
5c959dce4053257269d1529c8c4aece716e21602
[ "MIT" ]
1
2018-03-18T07:22:34.000Z
2018-03-18T07:22:34.000Z
app/aggregator/urls.py
shiimaxx/blog
5c959dce4053257269d1529c8c4aece716e21602
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework_nested import routers from rest_framework_swagger.views import get_swagger_view from blog.views import BlogEntryViewSet, UserBlogEntryViewSet from aggregator.views import QiitaEntryViewSet from accounts.views import UserViewSet schema_view = get_swagger_view(...
36.16
93
0.80531
110
904
6.436364
0.363636
0.077684
0.084746
0.084746
0.087571
0
0
0
0
0
0
0.002424
0.087389
904
24
94
37.666667
0.855758
0
0
0
0
0
0.139381
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
5601fd0aa775d737f4e37e1cf7ca3a710589f80c
1,264
py
Python
ffx.py
burret/ffx
63eaf26cc2f1eaf2133174c8e37131052be49764
[ "CC0-1.0" ]
null
null
null
ffx.py
burret/ffx
63eaf26cc2f1eaf2133174c8e37131052be49764
[ "CC0-1.0" ]
null
null
null
ffx.py
burret/ffx
63eaf26cc2f1eaf2133174c8e37131052be49764
[ "CC0-1.0" ]
null
null
null
from argparse import ArgumentParser, RawDescriptionHelpFormatter from textwrap import dedent import pyffx DESCRIPTION = '''\ Format-preserving, Feistel-based cryptography. $ echo 8005551212 | python %(prog)s -e mypassword 0123456789 9441166894 $ echo 9441166894 | python %(prog)s -d mypassw...
38.30303
101
0.721519
153
1,264
5.915033
0.477124
0.044199
0.048619
0.026519
0
0
0
0
0
0
0
0.055556
0.14557
1,264
32
102
39.5
0.773148
0
0
0
0
0.035714
0.439082
0.050633
0
0
0
0
0
1
0
false
0.107143
0.107143
0
0.107143
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
1
0
0
0
0
0
1
560476edc578b690c43d2d4f2a792976e1bdfe5c
630
py
Python
Utilities/python/extract_mates_from_fastq.py
AAFC-MBB/metAMOS
b08e29d97f0fa55e63beb87f57a2cfd54fb2ca02
[ "Apache-2.0", "CC0-1.0" ]
68
2015-01-20T10:50:51.000Z
2021-02-28T10:47:09.000Z
Utilities/python/extract_mates_from_fastq.py
AAFC-MBB/metAMOS
b08e29d97f0fa55e63beb87f57a2cfd54fb2ca02
[ "Apache-2.0", "CC0-1.0" ]
120
2015-01-03T04:38:11.000Z
2021-03-16T17:50:39.000Z
Utilities/python/extract_mates_from_fastq.py
AAFC-MBB/metAMOS
b08e29d97f0fa55e63beb87f57a2cfd54fb2ca02
[ "Apache-2.0", "CC0-1.0" ]
30
2015-01-23T06:33:44.000Z
2021-11-15T06:34:19.000Z
import string, sys #if __name__ == "__main__": def extract_mates_from_fastq(infile): f1 = open(infile,'r') f2 = open("%s.mates"%(infile),'w') while 1: s1 = f1.readline() s2 = f1.readline() s3 = f1.readline() s4 = f1.readline() l1 = f1.readline() l2 = f1.read...
22.5
38
0.455556
79
630
3.493671
0.506329
0.289855
0
0
0
0
0
0
0
0
0
0.087591
0.347619
630
27
39
23.333333
0.583942
0.04127
0
0
0
0
0.033168
0
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.086957
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4bcd858939b3f665788a2e85af357db0467457db
4,804
py
Python
analysis_codes_v2/recurrent_fan_in_fan_out.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
analysis_codes_v2/recurrent_fan_in_fan_out.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
analysis_codes_v2/recurrent_fan_in_fan_out.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib matplotlib.rcParams.update({'font.size': 20}) # NOTE THAT THE FAN-IN INFORMATION IS AVAILABLE DIRECTLY FROM FILES SUCH AS #../build/ll2_connections_statistics.txt sys_dict = {} sys_dict['ll1'] = { 'cells_file': '../build/ll1.cs...
57.190476
176
0.66403
791
4,804
3.771176
0.201011
0.044586
0.046933
0.056319
0.389206
0.322829
0.264499
0.189071
0.027489
0.027489
0
0.021375
0.143006
4,804
83
177
57.879518
0.703182
0.183597
0
0.039216
0
0.019608
0.377112
0.175115
0
0
0
0
0
0
null
null
0
0.078431
null
null
0.039216
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4bd149542db7981ae2c7d937b733f3c596bd8935
3,463
py
Python
hard-gists/6532185/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/6532185/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/6532185/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
#!/usr/bin/env python # September 2013 # by Matthew Bordignon, @bordignon on Twitter # # Simple Python script (v2.7x) that subscribes to a MQTT broker topic and inserts the topic into a mysql database # This is designed for the http://mqttitude.org/ project backend # import MySQLdb import mosquitto import json import ...
29.10084
113
0.664164
492
3,463
4.550813
0.357724
0.026798
0.028138
0.018758
0.100491
0.064314
0.028584
0
0
0
0
0.006662
0.219752
3,463
119
114
29.10084
0.821984
0.242275
0
0.076923
0
0
0.151038
0
0
0
0
0
0
0
null
null
0.025641
0.051282
null
null
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
1
0
0
0
0
0
0
0
0
1
4bd5914ff146233416e724bc459584c4d5afa422
5,727
py
Python
t6/CudaTool.py
PhuNH/hpc-aa
c1d184ec7c04b6ce7078c22d7a03091a95a4a2be
[ "MIT" ]
1
2020-05-11T18:28:17.000Z
2020-05-11T18:28:17.000Z
t6/CudaTool.py
PhuNH/hpc-aa
c1d184ec7c04b6ce7078c22d7a03091a95a4a2be
[ "MIT" ]
null
null
null
t6/CudaTool.py
PhuNH/hpc-aa
c1d184ec7c04b6ce7078c22d7a03091a95a4a2be
[ "MIT" ]
null
null
null
# @file # This file is part of SWE. # # @author Kostas Michalopoulos, Andrew Helwer, Alexander Breuer (breuera AT in.tum.de, http://www5.in.tum.de/wiki/index.php/Dipl.-Math._Alexander_Breuer) # # @section LICENSE # # SWE is free software: you can redistribute it and/or modify # it under the terms of the GNU General Pub...
40.048951
153
0.583377
587
5,727
5.65247
0.367973
0.066305
0.040989
0.034961
0.214286
0.135021
0.118143
0.097649
0.097649
0.079265
0
0.003569
0.314999
5,727
142
154
40.330986
0.842213
0.241313
0
0.054795
0
0
0.250504
0.037046
0
0
0
0
0
0
null
null
0
0.068493
null
null
0.013699
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4bdc7ac841d6236bc92fcb37364aba18f39ac13c
2,193
py
Python
docs/JSImage.cpp.py
wiltonlazary/Nidium
2ed34f350115290e4fe67cbade6c7e2b7c9de430
[ "Apache-2.0", "BSD-2-Clause" ]
1,223
2016-06-28T17:54:08.000Z
2022-03-16T10:27:03.000Z
docs/JSImage.cpp.py
wiltonlazary/Nidium
2ed34f350115290e4fe67cbade6c7e2b7c9de430
[ "Apache-2.0", "BSD-2-Clause" ]
84
2016-07-26T13:22:05.000Z
2018-09-13T12:04:23.000Z
docs/JSImage.cpp.py
wiltonlazary/Nidium
2ed34f350115290e4fe67cbade6c7e2b7c9de430
[ "Apache-2.0", "BSD-2-Clause" ]
77
2016-07-26T13:13:13.000Z
2022-01-24T02:24:53.000Z
# Copyright 2016 Nidium Inc. All rights reserved. # Use of this source code is governed by a MIT license # that can be found in the LICENSE file. from dokumentor import * ClassDoc( "Image", "Image handling.", [SeeDoc( "Canvas.drawImage" ) ], [ExampleDoc( """var img = new Image(); var c = new Canvas(200, 200);...
26.421687
97
0.651163
280
2,193
4.996429
0.371429
0.028592
0.03431
0.040743
0.450322
0.38599
0.38599
0.38599
0.290207
0.220157
0
0.007254
0.182855
2,193
82
98
26.743902
0.773438
0.063383
0
0.439394
0
0
0.564178
0.127379
0
0
0
0
0
1
0
true
0
0.015152
0
0.015152
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
4be7610da2b021009facebb8df6097cef5744263
3,538
py
Python
src/other/euclidean.py
mine1217/acgan_anomaly_detection
03f49312b592d1eddfdad9e43f30902ded9e355b
[ "Apache-2.0" ]
null
null
null
src/other/euclidean.py
mine1217/acgan_anomaly_detection
03f49312b592d1eddfdad9e43f30902ded9e355b
[ "Apache-2.0" ]
null
null
null
src/other/euclidean.py
mine1217/acgan_anomaly_detection
03f49312b592d1eddfdad9e43f30902ded9e355b
[ "Apache-2.0" ]
null
null
null
""" データ間のユークリッド距離を求める. Example: 5032AB example :: python3 src/other/euclidean.py -iA data/experiments/test/5032AB.csv -iB output/experiments/generated/5032AB_normal_acgan_1.csv -c data/experiments/combination/5032AB.json -s output/experiments/euclidean...
27.007634
76
0.623516
475
3,538
4.532632
0.307368
0.019508
0.016721
0.025081
0.248955
0.147236
0.147236
0.082211
0.039944
0.039944
0
0.018182
0.23827
3,538
131
77
27.007634
0.780705
0.150085
0
0.119048
1
0
0.118108
0.058884
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.22619
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4bf6aa4d58ac9896873c0de01e63b27dbb35d545
2,591
py
Python
grid_search.py
foolchan2556/Di_competition
2d536a8c66e5e293c7535e86fe855a63aa479e7a
[ "MIT" ]
null
null
null
grid_search.py
foolchan2556/Di_competition
2d536a8c66e5e293c7535e86fe855a63aa479e7a
[ "MIT" ]
null
null
null
grid_search.py
foolchan2556/Di_competition
2d536a8c66e5e293c7535e86fe855a63aa479e7a
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import xgboost as xgb import data_prepare_nodst_nodeal as dp from sklearn.cross_validation import KFold, train_test_split from sklearn.metrics import confusion_matrix, mean_squared_error from sklearn.grid_search import GridSearchCV from sklearn.datasets import load_iris, load_digi...
30.127907
100
0.629487
383
2,591
4.060052
0.355091
0.022508
0.015434
0.01672
0.234084
0.222508
0.222508
0.183923
0.114469
0.114469
0
0.040786
0.233501
2,591
85
101
30.482353
0.742195
0.086067
0
0.264706
0
0
0.142676
0.025402
0
0
0
0
0
0
null
null
0
0.117647
null
null
0.044118
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4bf6f9b5815743f48ee3f1236f34e232307b2f46
355
py
Python
selection_sort.py
EDAII/lista-2-guilherme-icaro
79519c5e35a284619ce93b4a337fbcf05df321d3
[ "MIT" ]
null
null
null
selection_sort.py
EDAII/lista-2-guilherme-icaro
79519c5e35a284619ce93b4a337fbcf05df321d3
[ "MIT" ]
null
null
null
selection_sort.py
EDAII/lista-2-guilherme-icaro
79519c5e35a284619ce93b4a337fbcf05df321d3
[ "MIT" ]
null
null
null
def selection_sort(array): length = len(array) for i in range(0, length, 1): higher = i for j in range(i+1, length, 1): if array[higher] > array[j]: higher = j if higher != i: tmp = array[higher] array[higher] = array[i] ...
18.684211
40
0.473239
46
355
3.630435
0.369565
0.197605
0.287425
0
0
0
0
0
0
0
0
0.019324
0.416901
355
18
41
19.722222
0.78744
0
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.166667
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ef1c55dbea16dc383df435f913b9335469e400a2
384
py
Python
common.py
kenelite/pypractise
ef79ca760533096e6da89846e2974fa47a060440
[ "MIT" ]
null
null
null
common.py
kenelite/pypractise
ef79ca760533096e6da89846e2974fa47a060440
[ "MIT" ]
null
null
null
common.py
kenelite/pypractise
ef79ca760533096e6da89846e2974fa47a060440
[ "MIT" ]
null
null
null
#/usr/bin/env python # -*- coding: utf-8 -*- import subprocess import time IP_LIST = [ 'www.baidu.com', 'www.qq.com', 'www.taobao.com', 'www.xiaomi.com', 'www.jd.com', 'www.iqiyi.com'] cmd_stub = 'ping -c 5 %s' def do_ping(addr): print time.asctime(), "DOING PING FOR", addr cmd = cmd_stub % (addr,) ret...
17.454545
68
0.648438
61
384
4.016393
0.639344
0.122449
0
0
0
0
0
0
0
0
0
0.006211
0.161458
384
21
69
18.285714
0.754658
0.106771
0
0
0
0
0.295858
0
0
0
0
0
0
0
null
null
0
0.153846
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ef1ff4d5debb2ff0bff61040236e9b97b56fc5d0
279
py
Python
leetcode/counting-elements.py
ardakkk/Algorithms-and-Data-Structures
c428bb0bd7eeb6c34448630f88f13e1329b54636
[ "MIT" ]
null
null
null
leetcode/counting-elements.py
ardakkk/Algorithms-and-Data-Structures
c428bb0bd7eeb6c34448630f88f13e1329b54636
[ "MIT" ]
null
null
null
leetcode/counting-elements.py
ardakkk/Algorithms-and-Data-Structures
c428bb0bd7eeb6c34448630f88f13e1329b54636
[ "MIT" ]
null
null
null
# Time: O(n) # SpaceL: O(n) class Solution: def countElements(self, arr: List[int]) -> int dict = {} result = 0 for i in arr: dict[i] = 1 for x in arr: if x+1 in dict: result += 1 return result
19.928571
50
0.444444
38
279
3.263158
0.578947
0.032258
0
0
0
0
0
0
0
0
0
0.025974
0.448029
279
14
51
19.928571
0.779221
0.082437
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ef226cd7e4f47c39e867cdf30d3a9d494454eae6
17,692
py
Python
src/util_ngramas_facil.py
luizanisio/Doc2VecFacil
c46a8e2669045cc7341a952634082451de535d92
[ "MIT" ]
null
null
null
src/util_ngramas_facil.py
luizanisio/Doc2VecFacil
c46a8e2669045cc7341a952634082451de535d92
[ "MIT" ]
null
null
null
src/util_ngramas_facil.py
luizanisio/Doc2VecFacil
c46a8e2669045cc7341a952634082451de535d92
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ####################################################################### # Código complementar ao Doc2VecFacil para criar nGramas para o documento VOCAB_TRADUTOR.txt # Esse código, dicas de uso e outras informações: # -> https://github.com/luizanisio/Doc2VecFacil/ # Luiz Anísio # 09/10...
53.939024
1,440
0.62158
2,126
17,692
5.011289
0.264817
0.014079
0.027126
0.018303
0.263375
0.207715
0.151586
0.140135
0.080721
0.072649
0
0.006693
0.214617
17,692
327
1,441
54.103976
0.760058
0.157811
0
0.166667
0
0
0.23499
0.034906
0
0
0
0
0
1
0.05
false
0
0.0375
0.004167
0.145833
0.15
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ef296634fde68352e21167b0c52505579f8df12b
761
py
Python
sbin/gen_example_usage.py
ymtszw/elm-octicons
60a7e2fc7ff08d22327e62536c4b88c247a36502
[ "BSD-3-Clause" ]
11
2017-02-15T17:11:54.000Z
2019-08-29T19:57:37.000Z
sbin/gen_example_usage.py
ymtszw/elm-octicons
60a7e2fc7ff08d22327e62536c4b88c247a36502
[ "BSD-3-Clause" ]
4
2017-05-08T13:49:39.000Z
2020-06-26T18:29:56.000Z
sbin/gen_example_usage.py
ymtszw/elm-octicons
60a7e2fc7ff08d22327e62536c4b88c247a36502
[ "BSD-3-Clause" ]
2
2017-05-07T01:55:00.000Z
2018-12-06T23:02:18.000Z
import sys import re # Parses the Octicon helper functions and generates the elm code used for # integration tests that display every icon. # # USAGE: # python sbin/gen_example_usage.py < src/Octicons.elm #pattern = re.compile("{\s[\w]+\s\|\sname\s=\s(\"\w+\").*}") pattern = re.compile("(path|polygon).*\"0\s0\s([\d]+...
36.238095
170
0.618922
109
761
4.302752
0.59633
0.063966
0.06823
0.059701
0
0
0
0
0
0
0
0.011218
0.180026
761
20
171
38.05
0.740385
0.360053
0
0
1
0.1
0.242678
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ef29c6069e92d9686e9738a6a7fb1649a689c8bf
890
py
Python
geosolver/grounding/states.py
mhrmm/geosolver
13ae2972c58d5ba4c4878576f9fba8569cc99629
[ "Apache-2.0" ]
83
2015-09-14T13:50:42.000Z
2022-03-12T10:24:38.000Z
geosolver/grounding/states.py
nehamjadhav/geosolver
13ae2972c58d5ba4c4878576f9fba8569cc99629
[ "Apache-2.0" ]
8
2021-07-21T09:55:42.000Z
2022-02-15T02:31:47.000Z
geosolver/grounding/states.py
nehamjadhav/geosolver
13ae2972c58d5ba4c4878576f9fba8569cc99629
[ "Apache-2.0" ]
33
2015-06-16T18:52:43.000Z
2021-12-16T08:58:27.000Z
""" Matching is aligning labels and objects in diagram given entity formulas. This package also provides mapping from text formula to diagram formula. at the end, we just want string mapping to formula (one can maps to multiple, so use graph) """ from geosolver.diagram.states import GraphParse __author__ = 'minjoon...
26.969697
77
0.738202
115
890
5.443478
0.530435
0.063898
0.057508
0.054313
0
0
0
0
0
0
0
0
0.198876
890
32
78
27.8125
0.87798
0.269663
0
0
0
0
0.010938
0
0
0
0
0
0.0625
1
0.125
false
0.0625
0.0625
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ef2f1df166fabe22537049014671a71b9a17b1f1
753
py
Python
tests/programs/lists/sequential_list.py
astraldawn/pylps
e9964a24bb38657b180d441223b4cdb9e1dadc8a
[ "MIT" ]
1
2018-05-19T18:28:12.000Z
2018-05-19T18:28:12.000Z
tests/programs/lists/sequential_list.py
astraldawn/pylps
e9964a24bb38657b180d441223b4cdb9e1dadc8a
[ "MIT" ]
12
2018-04-26T00:58:11.000Z
2018-05-13T22:03:39.000Z
tests/programs/lists/sequential_list.py
astraldawn/pylps
e9964a24bb38657b180d441223b4cdb9e1dadc8a
[ "MIT" ]
null
null
null
from pylps.core import * initialise(max_time=5) create_actions('show(_)') create_events('handle_list(_)') create_variables('X', 'XS') reactive_rule(True).then( handle_list(['a', 'b', 'c', 'd']).frm(T1, T2) ) goal(handle_list([X]).frm(T1, T2)).requires( show([X]).frm(T1, T2) ) goal(handle_list([X | XS]).frm...
17.511628
68
0.632138
139
753
3.280576
0.309353
0.197368
0.092105
0.087719
0.475877
0.427632
0.296053
0.214912
0.118421
0
0
0.05205
0.158035
753
42
69
17.928571
0.667192
0
0
0
0
0
0.0625
0
0
0
0
0
0
1
0
true
0
0.058824
0
0.058824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
ef3738cf86e46a1eaf50389bc8335cc536087aca
1,209
py
Python
invenio_rdm_records/services/pids/providers/oai.py
inveniosoftware/invenio-datacite
d25e3670b74f132390fc42e5647765ae5c605ef3
[ "MIT" ]
10
2020-01-17T10:13:09.000Z
2022-03-17T10:14:41.000Z
invenio_rdm_records/services/pids/providers/oai.py
inveniosoftware/invenio-datacite
d25e3670b74f132390fc42e5647765ae5c605ef3
[ "MIT" ]
570
2019-08-15T16:35:25.000Z
2022-03-31T13:46:17.000Z
invenio_rdm_records/services/pids/providers/oai.py
inveniosoftware/invenio-datacite
d25e3670b74f132390fc42e5647765ae5c605ef3
[ "MIT" ]
57
2019-09-04T09:25:29.000Z
2022-03-30T19:32:55.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CERN. # Copyright (C) 2021 Graz University of Technology. # # Invenio-RDM-Records is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """OAI ID PID Provider.""" from flask import current_app ...
26.866667
77
0.635236
147
1,209
5.088435
0.605442
0.026738
0.037433
0.042781
0
0
0
0
0
0
0
0.012075
0.246485
1,209
44
78
27.477273
0.809001
0.371381
0
0
0
0
0.084507
0.049296
0
0
0
0
0
1
0.157895
false
0
0.210526
0
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ef3cce6c2a996e0aa532d5a3684371c83b8d7eec
2,274
py
Python
implementation/graphicUtils/visualizer/mayaviVisualizer.py
saurabbhsp/mesh-3d-reconstruction
c52312bce7e3121643189f6b67192ffe28b08565
[ "Apache-2.0" ]
null
null
null
implementation/graphicUtils/visualizer/mayaviVisualizer.py
saurabbhsp/mesh-3d-reconstruction
c52312bce7e3121643189f6b67192ffe28b08565
[ "Apache-2.0" ]
null
null
null
implementation/graphicUtils/visualizer/mayaviVisualizer.py
saurabbhsp/mesh-3d-reconstruction
c52312bce7e3121643189f6b67192ffe28b08565
[ "Apache-2.0" ]
null
null
null
import numpy as np from mayavi import mlab """Generate the permutations for the coordinates subject to the order""" def permute_xyz(x, y, z, order='xyz'): _dim = {'x': 0, 'y': 1, 'z': 2} data = (x, y, z) return tuple(data[_dim[k]] for k in order) @mlab.animate def visualize_point_cloud(points, axis_or...
30.32
75
0.623571
309
2,274
4.482201
0.255663
0.084477
0.015162
0.072202
0.409386
0.289531
0.256318
0.206498
0.161733
0.161733
0
0.025567
0.243184
2,274
74
76
30.72973
0.779198
0
0
0.362069
1
0
0.034514
0
0
0
0
0
0
1
0.086207
false
0
0.034483
0
0.155172
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ef3dc1e0427f26457f2c552578337e794fc42a0a
200
py
Python
config.py
CodeSelfStudy/flask_mongoengine_example
352c59a8f6ea12cef30b84c5778bc8991c53af4b
[ "MIT" ]
2
2016-10-12T11:48:47.000Z
2017-11-18T20:19:56.000Z
config.py
codeselfstudy/flask_mongoengine_example
352c59a8f6ea12cef30b84c5778bc8991c53af4b
[ "MIT" ]
null
null
null
config.py
codeselfstudy/flask_mongoengine_example
352c59a8f6ea12cef30b84c5778bc8991c53af4b
[ "MIT" ]
3
2016-09-12T06:42:18.000Z
2018-11-27T20:45:01.000Z
"""You would probably keep your configuration out of the git repo, but this works for a simple script. See the docs for information on Flask configuration. """ DATABASE_NAME = 'flask_mongo_example'
25
70
0.78
31
200
4.935484
0.870968
0
0
0
0
0
0
0
0
0
0
0
0.16
200
7
71
28.571429
0.910714
0.765
0
0
0
0
0.475
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ef434cb9165edaf272dfe45bc9980724bacabb17
4,179
py
Python
wallet/txlist.py
Agente3z/ScarletCoin
1e588038fa04839cb15de8e0a0390f746bc6f74f
[ "MIT" ]
3
2022-02-15T19:39:30.000Z
2022-02-17T16:43:34.000Z
wallet/txlist.py
alessio-ds/ScarletCoin
a8a7b7db9de84f73b67811677f4276d2e726e871
[ "MIT" ]
null
null
null
wallet/txlist.py
alessio-ds/ScarletCoin
a8a7b7db9de84f73b67811677f4276d2e726e871
[ "MIT" ]
3
2022-02-15T19:38:38.000Z
2022-02-22T09:17:01.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'untitled2.ui' # # Created by: PyQt5 UI code generator 5.15.6 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, Qt...
38.694444
129
0.658291
446
4,179
6.112108
0.392377
0.093544
0.027513
0.036317
0.104182
0.104182
0.066764
0.055759
0.055759
0.055759
0
0.027983
0.221823
4,179
107
130
39.056075
0.810271
0.095717
0
0.055556
1
0
0.088694
0
0
0
0
0
0
1
0.055556
false
0
0.041667
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ef4913dc45f33b7772016da70178d2d7042475d1
372
py
Python
LPP/lmsff/lms_app/migrations/0002_auto_20180912_0920.py
teamdiniz/Projeto-devops-lms
e6b95b621a0d998d761ec9fa1654d443940391dd
[ "Apache-2.0" ]
null
null
null
LPP/lmsff/lms_app/migrations/0002_auto_20180912_0920.py
teamdiniz/Projeto-devops-lms
e6b95b621a0d998d761ec9fa1654d443940391dd
[ "Apache-2.0" ]
null
null
null
LPP/lmsff/lms_app/migrations/0002_auto_20180912_0920.py
teamdiniz/Projeto-devops-lms
e6b95b621a0d998d761ec9fa1654d443940391dd
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.6 on 2018-09-12 12:20 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('lms_app', '0001_initial'), ] operations = [ migrations.RenameField( model_name='disciplina', old_name='nomedd'...
19.578947
48
0.545699
38
372
5.210526
0.815789
0
0
0
0
0
0
0
0
0
0
0.077869
0.344086
372
18
49
20.666667
0.733607
0.120968
0
0
1
0
0.127036
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ef4fa3161417148d9881c8117f4e0ce1697071e4
3,271
py
Python
erepapi/country_regions.py
nikolak/erepAPI
6fcbc472b82a0c4254cf234b7541cf26f49c4d11
[ "MIT" ]
1
2020-01-08T15:15:18.000Z
2020-01-08T15:15:18.000Z
erepapi/country_regions.py
nikolak/erepAPI
6fcbc472b82a0c4254cf234b7541cf26f49c4d11
[ "MIT" ]
null
null
null
erepapi/country_regions.py
nikolak/erepAPI
6fcbc472b82a0c4254cf234b7541cf26f49c4d11
[ "MIT" ]
null
null
null
# Copyright (c) 2013 Nikola Kovacevic <nikolak@outlook.com>, # 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, mo...
39.890244
90
0.651483
417
3,271
4.8753
0.366906
0.027546
0.027054
0.025086
0.133792
0.086572
0.062961
0
0
0
0
0.001629
0.249465
3,271
82
91
39.890244
0.826477
0.409966
0
0.044444
0
0
0.081224
0.025844
0
0
0
0.012195
0
1
0.155556
false
0
0.022222
0.044444
0.355556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ef50ec5870df11b82863908f4fa08de9149e69d1
24,134
py
Python
cea/optimization/master/evaluation.py
pajotca/CityEnergyAnalyst
f3d0a08f7b5f5967961bf831625544a95c7702f0
[ "MIT" ]
null
null
null
cea/optimization/master/evaluation.py
pajotca/CityEnergyAnalyst
f3d0a08f7b5f5967961bf831625544a95c7702f0
[ "MIT" ]
null
null
null
cea/optimization/master/evaluation.py
pajotca/CityEnergyAnalyst
f3d0a08f7b5f5967961bf831625544a95c7702f0
[ "MIT" ]
null
null
null
""" Evaluation function of an individual """ from __future__ import division import os import pandas as pd import numpy as np from cea.optimization.master import generation from cea.optimization.master import summarize_network from cea.optimization.constants import * from cea.optimization.master import cost_model fro...
44.445672
235
0.698351
3,288
24,134
4.775547
0.113443
0.041269
0.067062
0.084448
0.585594
0.533435
0.492294
0.447968
0.414278
0.374602
0
0.015155
0.223502
24,134
543
236
44.445672
0.822732
0.08544
0
0.297806
0
0
0.028217
0.020484
0
0
0
0
0
0
null
null
0
0.059561
null
null
0.015674
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ef51680a0a1249376700a05923d637e1414de287
11,756
py
Python
tests/api_client_test.py
prapun77/blocktrail-sdk-python
93b0afce79ae94d46257c85190aed1e876c87b4f
[ "MIT" ]
21
2015-01-20T17:48:41.000Z
2021-02-07T19:08:40.000Z
tests/api_client_test.py
prapun77/blocktrail-sdk-python
93b0afce79ae94d46257c85190aed1e876c87b4f
[ "MIT" ]
7
2015-02-04T02:30:20.000Z
2018-07-11T21:22:29.000Z
tests/api_client_test.py
prapun77/blocktrail-sdk-python
93b0afce79ae94d46257c85190aed1e876c87b4f
[ "MIT" ]
27
2015-01-18T11:53:49.000Z
2021-02-06T20:07:18.000Z
import unittest import os import binascii import blocktrail class ApiClientTestCase(unittest.TestCase): def setUp(self): self.cleanup_data = {} def tearDown(self): #cleanup any records that were created after each test client = self.setup_api_client(debug=False) #webhooks ...
42.749091
168
0.674464
1,151
11,756
6.757602
0.16073
0.052456
0.019799
0.023142
0.398303
0.357033
0.321677
0.247622
0.238365
0.221651
0
0.09357
0.232732
11,756
274
169
42.905109
0.768736
0.090592
0
0.300546
0
0
0.287926
0.183882
0
0
0
0.00365
0.442623
1
0.060109
false
0.005464
0.021858
0
0.092896
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
ef60274f85c3b4b58f2267112ac117d7974a673c
2,264
py
Python
scripts/todo.py
ConficturaStudios/seed-engine
6b0663222491372173b66afac73272897e91e556
[ "MIT" ]
3
2018-06-29T14:29:37.000Z
2019-04-27T04:42:47.000Z
scripts/todo.py
ConficturaStudios/seed-engine
6b0663222491372173b66afac73272897e91e556
[ "MIT" ]
null
null
null
scripts/todo.py
ConficturaStudios/seed-engine
6b0663222491372173b66afac73272897e91e556
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import re print("Checking project for TODO statements...") # The file to write the to do lists to todo_file = open("ToDoLists.txt", "w") # The pattern to check for in .cpp, .hpp, .c, and .h files cpp_todo_pattern = "^.*//(?:\\s*)?TODO:\\s*(.*)$" # Directories to skip exclude_dirs = ...
39.034483
119
0.537544
283
2,264
4.229682
0.416961
0.033417
0.011696
0.030075
0
0
0
0
0
0
0
0.005513
0.359099
2,264
58
120
39.034483
0.819435
0.310071
0
0.137931
0
0
0.104545
0.018182
0
0
0
0.017241
0
1
0
false
0
0.068966
0
0.068966
0.103448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
3228dcc0f0f4d20e8d76ad55359c62021482a7d1
1,771
py
Python
config.py
wmwilcox/mix-mind
02da016f314bb5f30f267f1f46c67c6d4a4c370c
[ "Apache-2.0" ]
1
2021-05-02T19:50:44.000Z
2021-05-02T19:50:44.000Z
config.py
wmwilcox/mix-mind
02da016f314bb5f30f267f1f46c67c6d4a4c370c
[ "Apache-2.0" ]
34
2018-08-07T13:09:29.000Z
2021-05-13T17:25:18.000Z
config.py
wmwilcox/mix-mind
02da016f314bb5f30f267f1f46c67c6d4a4c370c
[ "Apache-2.0" ]
4
2019-02-14T04:17:24.000Z
2021-05-14T15:33:39.000Z
""" Configuration of app.config dict """ import os.path import logging log = logging.getLogger() # flask-sqlalchemy SQLALCHEMY_TRACK_MODIFICATIONS = False # explicitly remove deprecated feature SQLALCHEMY_POOL_RECYCLE = 280 # https://help.pythonanywhere.com/pages/UsingSQLAlchemywithMySQL/ # flask-mail (used by flask-...
34.72549
111
0.785432
238
1,771
5.596639
0.52521
0.045045
0.06006
0.042042
0
0
0
0
0
0
0
0.009446
0.103331
1,771
50
112
35.42
0.829345
0.329193
0
0
0
0
0.287918
0.043702
0
0
0
0
0
1
0
false
0.071429
0.071429
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
322c6a1dc0c8bddf42e7c022c3587c85a91c5bfa
2,343
py
Python
sdk/python/pulumi_gcp/compute/global_forwarding_rule.py
vrutkovs/pulumi-gcp
ced632feea265d95a38c7ae02826deaae77fb358
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/compute/global_forwarding_rule.py
vrutkovs/pulumi-gcp
ced632feea265d95a38c7ae02826deaae77fb358
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/compute/global_forwarding_rule.py
vrutkovs/pulumi-gcp
ced632feea265d95a38c7ae02826deaae77fb358
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi import pulumi.runtime from .. import utilities, tables class GlobalForwardingRule(pulumi.CustomResource): """ Ma...
37.190476
190
0.686726
275
2,343
5.385455
0.450909
0.037812
0.021607
0.025658
0.108035
0.070223
0
0
0
0
0
0.000546
0.218096
2,343
62
191
37.790323
0.80786
0.251387
0
0
1
0
0.192084
0.03085
0
0
0
0
0
1
0.088235
false
0
0.088235
0.058824
0.264706
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3236e59a34850c19fc8bfd4db32cec9415137eb2
4,688
py
Python
vcf_filter_v0.1.py
DCGenomics/vcf_parsing_hackathon_v002
0f0469b297a25cd59a38752ce845ab03a373ce4e
[ "CC0-1.0" ]
2
2015-12-03T17:58:02.000Z
2019-09-06T02:00:41.000Z
vcf_filter_v0.1.py
DCGenomics/vcf_parsing_hackathon_v002
0f0469b297a25cd59a38752ce845ab03a373ce4e
[ "CC0-1.0" ]
4
2020-02-11T22:52:05.000Z
2021-06-10T17:50:26.000Z
vcf_filter_v0.1.py
DCGenomics/vcf_parsing_hackathon_v002
0f0469b297a25cd59a38752ce845ab03a373ce4e
[ "CC0-1.0" ]
1
2015-10-14T20:47:56.000Z
2015-10-14T20:47:56.000Z
######## Purpose of this script is to filter the vcf file using SNPEff according to user input ######### ### Helpful documentation ### ## http://snpeff.sourceforge.net/SnpSift.html #import modules import os, sys import subprocess #Collect input as variables i=0 file_prefix=sys.argv[1] filter_arguments=[] for arg in...
35.78626
166
0.709898
651
4,688
4.798771
0.245776
0.079385
0.06274
0.06338
0.447503
0.425736
0.369718
0.338028
0.338028
0.306978
0
0.009369
0.157637
4,688
130
167
36.061538
0.781717
0.451152
0
0.186441
0
0
0.157661
0.066935
0
0
0
0
0
0
null
null
0
0.033898
null
null
0.016949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3237aa59f0a2fe8851bb9a293d52c20ecf212823
681
py
Python
truck-tour.py
saketsuman07/hacker-rank-solutions
9055acf2e710b1a9caefe542b2b5e39b050e59fb
[ "MIT" ]
null
null
null
truck-tour.py
saketsuman07/hacker-rank-solutions
9055acf2e710b1a9caefe542b2b5e39b050e59fb
[ "MIT" ]
null
null
null
truck-tour.py
saketsuman07/hacker-rank-solutions
9055acf2e710b1a9caefe542b2b5e39b050e59fb
[ "MIT" ]
null
null
null
from collections import deque class Pump(object): def __init__(self, index, petrol, distance): self.index = index self.i = index self.petrol = petrol self.p = petrol self.distance = distance self.d = distance def __repr__(self): return "%d: p=%d d=%d" % (self.i, self.p, self.d) def complete_cycle(q, n...
19.457143
57
0.650514
115
681
3.747826
0.373913
0.097448
0.064965
0.069606
0.055684
0
0
0
0
0
0
0.007313
0.196769
681
34
58
20.029412
0.780622
0
0
0.066667
0
0
0.01909
0
0
0
0
0
0
0
null
null
0
0.033333
null
null
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
323d083ec5e3f250a6b4bfea2c8425e4dfe910bd
261
py
Python
server/src/routes/film.py
alexfire008/centrale
f08c66f6064005fa371cbe56401a0e2c692ce905
[ "MIT" ]
1
2019-06-17T08:24:52.000Z
2019-06-17T08:24:52.000Z
server/src/routes/film.py
alexfire008/centrale
f08c66f6064005fa371cbe56401a0e2c692ce905
[ "MIT" ]
null
null
null
server/src/routes/film.py
alexfire008/centrale
f08c66f6064005fa371cbe56401a0e2c692ce905
[ "MIT" ]
null
null
null
""" Defines the blueprint for the films """ from flask import Blueprint from flask_restful import Api from resources import FilmResource FILM_BLUEPRINT = Blueprint("film", __name__) Api(FILM_BLUEPRINT).add_resource( FilmResource, "/film/<string:title>" )
20.076923
44
0.773946
33
261
5.878788
0.545455
0.092784
0
0
0
0
0
0
0
0
0
0
0.130268
261
12
45
21.75
0.854626
0.1341
0
0
0
0
0.110092
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
324dcebbaa3762e1badd797835fbcbe6f88732fd
1,324
py
Python
bigchaindb/web/views/votes.py
ldmberman/bigchaindb
d2685052a676bf7bb274135a559b501c4cb17db7
[ "Apache-2.0" ]
1
2019-05-31T14:06:02.000Z
2019-05-31T14:06:02.000Z
bigchaindb/web/views/votes.py
ldmberman/bigchaindb
d2685052a676bf7bb274135a559b501c4cb17db7
[ "Apache-2.0" ]
null
null
null
bigchaindb/web/views/votes.py
ldmberman/bigchaindb
d2685052a676bf7bb274135a559b501c4cb17db7
[ "Apache-2.0" ]
1
2019-08-28T23:38:52.000Z
2019-08-28T23:38:52.000Z
"""This module provides the blueprint for the votes API endpoints. For more information please refer to the documentation: http://bigchaindb.com/http-api We might bring back a votes API endpoint in the future, see: https://github.com/bigchaindb/bigchaindb/issues/2037 """ from flask import jsonify from flask_restful ...
30.790698
102
0.681269
175
1,324
5.074286
0.52
0.040541
0.037162
0.04955
0.067568
0
0
0
0
0
0
0.012859
0.236405
1,324
42
103
31.52381
0.86548
0.662387
0
0
0
0
0.182957
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
325f0098047c01786898be55fcb1c7f1aabc627a
319
py
Python
hlpl_english_words_synonym_antonym/english_words_synonym_antonym.py
hlpl-ahmida/english-words-synonym-antonym
35648c019fedd3276a92554ecf2ee2186845dc02
[ "MIT" ]
1
2022-01-06T09:06:48.000Z
2022-01-06T09:06:48.000Z
hlpl_english_words_synonym_antonym/english_words_synonym_antonym.py
hlpl-transcriber/english-words-synonym-antonym
35648c019fedd3276a92554ecf2ee2186845dc02
[ "MIT" ]
null
null
null
hlpl_english_words_synonym_antonym/english_words_synonym_antonym.py
hlpl-transcriber/english-words-synonym-antonym
35648c019fedd3276a92554ecf2ee2186845dc02
[ "MIT" ]
9
2022-01-06T09:04:24.000Z
2022-01-18T13:09:22.000Z
 import os current_directory = os.path.dirname(os.path.abspath(__file__)) db = os.path.join(current_directory, 'hlpl_english_words_synonym_antonym.db') import sqlite3 def get(): conn = sqlite3.connect(db) cur = conn.cursor() lst=cur.execute("SELECT * FROM word_sa").fetchall() return lst,conn
21.266667
77
0.711599
46
319
4.717391
0.673913
0.082949
0
0
0
0
0
0
0
0
0
0.007463
0.159875
319
14
78
22.785714
0.798507
0
0
0
0
0
0.184127
0.11746
0
0
0
0
0
0
null
null
0
0.222222
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
325f7d785b84be478350c8d5a2b3cbe80329366d
258
py
Python
08.Pandas/03.Table/main.py
sarincr/MySQL-Database-with-Python
b9cc99f6f5ec2de1bf505458a7d446fb91c2136d
[ "MIT" ]
null
null
null
08.Pandas/03.Table/main.py
sarincr/MySQL-Database-with-Python
b9cc99f6f5ec2de1bf505458a7d446fb91c2136d
[ "MIT" ]
null
null
null
08.Pandas/03.Table/main.py
sarincr/MySQL-Database-with-Python
b9cc99f6f5ec2de1bf505458a7d446fb91c2136d
[ "MIT" ]
null
null
null
import mysql.connector import pandas as pd X = mysql.connector.connect( host="localhost", user="newuser", password= "PassWord@123", database="ABC" ) df = pd.read_sql("SELECT * FROM tblEmployee", con=X) print(df.head()) df.to_csv("Data.csv")
13.578947
52
0.678295
37
258
4.675676
0.756757
0.16185
0
0
0
0
0
0
0
0
0
0.013825
0.158915
258
18
53
14.333333
0.78341
0
0
0
0
0
0.248062
0
0
0
0
0
0
1
0
false
0.090909
0.181818
0
0.181818
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3267396c5f4054c01b1cad66da95dff64ef6df0b
193
py
Python
Curso em video/015.py
wandersoncamp/python
b9a48dbf133c42d6a3efdd1d72a18cb53025d28e
[ "CNRI-Python" ]
null
null
null
Curso em video/015.py
wandersoncamp/python
b9a48dbf133c42d6a3efdd1d72a18cb53025d28e
[ "CNRI-Python" ]
null
null
null
Curso em video/015.py
wandersoncamp/python
b9a48dbf133c42d6a3efdd1d72a18cb53025d28e
[ "CNRI-Python" ]
null
null
null
diaria=int(input('Quantos dias você ficou com o carro? ')) km=float(input('Quantos KM você rodou com o carro? ')) pago = (diaria * 60) + (km * 0.15) print('total a pagar é de R$: ',pago)
32.166667
59
0.637306
34
193
3.617647
0.705882
0.195122
0.146341
0
0
0
0
0
0
0
0
0.032258
0.196891
193
5
60
38.6
0.76129
0
0
0
0
0
0.505319
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
326f0a5c781efd91b50a8daaeec5f0747b7be049
1,120
py
Python
boot.py
wangshujun-tj/jniot.xyz-mqtt-micropython
6ca6a36c6448b021425b2b130b65a7f5eccd9f9d
[ "MIT" ]
null
null
null
boot.py
wangshujun-tj/jniot.xyz-mqtt-micropython
6ca6a36c6448b021425b2b130b65a7f5eccd9f9d
[ "MIT" ]
null
null
null
boot.py
wangshujun-tj/jniot.xyz-mqtt-micropython
6ca6a36c6448b021425b2b130b65a7f5eccd9f9d
[ "MIT" ]
null
null
null
import sys import os,network import machine import socket import time from machine import I2C,Pin ctl_pow=Pin(19,Pin.OUT) ctl_pow.on() #ctl_pow.pull(Pin.PULL_HOLD) led_pow=Pin(22,Pin.OUT) led_wifi=Pin(23,Pin.OUT) led_pow.on() led_wifi.off() sys.path[1] = '/flash/lib' SSID="15-3-201" PASSWORD="1234567890a...
24.347826
92
0.590179
156
1,120
4.153846
0.423077
0.064815
0.013889
0.012346
0
0
0
0
0
0
0
0.042787
0.269643
1,120
45
93
24.888889
0.749389
0.121429
0
0.2
0
0
0.086022
0
0
0
0
0
0
1
0.025
false
0.1
0.15
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3271887ca25945edb27c16352d506f864fb397ab
3,268
py
Python
runtime.py
alt-core/xmbot
dc595404aca6c59cc5fb9a187bb0fec7a0663b6b
[ "MIT" ]
null
null
null
runtime.py
alt-core/xmbot
dc595404aca6c59cc5fb9a187bb0fec7a0663b6b
[ "MIT" ]
1
2021-09-18T15:25:38.000Z
2021-09-18T15:25:38.000Z
runtime.py
alt-core/xmbot
dc595404aca6c59cc5fb9a187bb0fec7a0663b6b
[ "MIT" ]
null
null
null
# coding: utf-8 import logging import datetime from google.appengine.api import taskqueue, memcache from models import GlobalBotVariables from scenario import Scenario, Director, ScenarioBuilder, ScenarioSyntaxError import commands def now_str(): now = datetime.datetime.now() jst = now + datetime.timedelta(...
38.904762
133
0.660343
371
3,268
5.61186
0.307278
0.086455
0.069164
0.044188
0.293468
0.182517
0.182517
0.182517
0.148895
0.148895
0
0.001225
0.250612
3,268
83
134
39.373494
0.848918
0.03366
0
0.215385
0
0
0.046954
0.00698
0
0
0
0.012048
0
1
0.107692
false
0
0.092308
0.030769
0.353846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
32806f03322d3b10082bf2b0fc2a562a10e64578
488
py
Python
python/oopsConcepts.py
madhu231/DSA_Prep
d473cbd34d035dd2598f4a0223536013bbe0e5ce
[ "Unlicense" ]
null
null
null
python/oopsConcepts.py
madhu231/DSA_Prep
d473cbd34d035dd2598f4a0223536013bbe0e5ce
[ "Unlicense" ]
null
null
null
python/oopsConcepts.py
madhu231/DSA_Prep
d473cbd34d035dd2598f4a0223536013bbe0e5ce
[ "Unlicense" ]
null
null
null
class Parent: def __init__(self, name): print("Parent Object Created") self.testFunc(name) def testFunc(self, name): print("Parent testFunc called {}", name) class Child(Parent): def __init__(self, name): print("Child Object Created") self.testFunc(name) # def testFunc(self, name): # print("Child testF...
24.4
43
0.711066
62
488
5.403226
0.306452
0.095522
0.155224
0.101493
0.471642
0.471642
0.316418
0.316418
0.316418
0.316418
0
0
0.153689
488
20
44
24.4
0.811138
0.135246
0
0.266667
0
0
0.259524
0
0
0
0
0
0
1
0.266667
false
0
0
0
0.466667
0.266667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
328595f6e8a0ff0aa7597dbd02fe217f18db7028
4,076
py
Python
site-root/.py/db_access/db_troop.py
TED-996/krait-twostones
51b27793b9cd536d680fb9a6785c57473d35cac1
[ "MIT" ]
null
null
null
site-root/.py/db_access/db_troop.py
TED-996/krait-twostones
51b27793b9cd536d680fb9a6785c57473d35cac1
[ "MIT" ]
null
null
null
site-root/.py/db_access/db_troop.py
TED-996/krait-twostones
51b27793b9cd536d680fb9a6785c57473d35cac1
[ "MIT" ]
null
null
null
import logging from db_access import db_ops from db_access import db_troop_class from db_access import db_skin from db_access import db_troop_modifier from db_access import db_loadout from db_access import db_modifier from misc import timing from model import troop troop_cache = {} @timing.timing def get_by_id(tro...
27.540541
88
0.643523
572
4,076
4.281469
0.118881
0.124132
0.044916
0.0441
0.542262
0.402205
0.297264
0.297264
0.269906
0.21764
0
0.000333
0.26423
4,076
147
89
27.727891
0.816272
0.034347
0
0.278846
0
0
0.084478
0
0
0
0
0
0
0
null
null
0
0.086538
null
null
0.009615
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3297d0084825519cd68e1b23066c109dc22e7806
779
py
Python
src/big_muddy/servo_cycle_request.py
orwonthe/big_muddy_pi
981e3fa5d096d93be8451beb03220be7e63751da
[ "MIT" ]
null
null
null
src/big_muddy/servo_cycle_request.py
orwonthe/big_muddy_pi
981e3fa5d096d93be8451beb03220be7e63751da
[ "MIT" ]
null
null
null
src/big_muddy/servo_cycle_request.py
orwonthe/big_muddy_pi
981e3fa5d096d93be8451beb03220be7e63751da
[ "MIT" ]
null
null
null
from big_muddy_io import BigMuddyIO from flask import render_template from flask import request def servo_cycle_request(servo_cycler): if request.method == 'POST': if request.form.get('action') == "Once": servo_cycler.cycle(1) elif request.form.get('action') == "Twice": ser...
38.95
91
0.631579
97
779
4.917526
0.371134
0.184486
0.176101
0.251572
0.251572
0
0
0
0
0
0
0.01675
0.233633
779
20
91
38.95
0.782245
0
0
0
0
0
0.123077
0
0
0
0
0
0
1
0.055556
false
0
0.166667
0
0.277778
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
32984431038ae9e7d9e5a164fabe0846f64c466a
5,238
py
Python
scripts/get_system_firmware_info.py
mmurayama/fujitsu-redfish-samples
211d4b4d017c3402b845fde81e997c4065fd0853
[ "MIT" ]
7
2020-08-16T19:02:31.000Z
2022-03-22T08:37:34.000Z
scripts/get_system_firmware_info.py
amitabhmca/fujitsu-redfish-samples
211d4b4d017c3402b845fde81e997c4065fd0853
[ "MIT" ]
1
2020-08-07T09:22:36.000Z
2020-08-13T21:45:43.000Z
scripts/get_system_firmware_info.py
amitabhmca/fujitsu-redfish-samples
211d4b4d017c3402b845fde81e997c4065fd0853
[ "MIT" ]
3
2021-09-06T11:27:08.000Z
2021-11-03T12:12:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Sample script to get System Firmware information via iRMC Redfish API in Fujitsu PRIMERGY [Usage] $ python ./get_system_firmware_info.py -i 192.168.10.10 -u admin -p admin """ import sys import argparse import json import requests import urllib3 urllib3.disabl...
32.333333
153
0.594311
607
5,238
5
0.248764
0.069193
0.034267
0.027677
0.422076
0.392422
0.315321
0.243822
0.216145
0.189127
0
0.019683
0.25315
5,238
161
154
32.534161
0.756135
0.052501
0
0.333333
0
0
0.246409
0.004248
0
0
0
0
0
1
0.041667
false
0.058333
0.041667
0
0.133333
0.108333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
32a15def04f57b5c960051ed5a1e72cfffeb80a0
694
py
Python
Arays/AlgoExpert/medium/5_longest_peak.py
sounak95/100_days_of_code
50fbf088ce6ab2137aa216a30e3b3f828b278a22
[ "Apache-2.0" ]
null
null
null
Arays/AlgoExpert/medium/5_longest_peak.py
sounak95/100_days_of_code
50fbf088ce6ab2137aa216a30e3b3f828b278a22
[ "Apache-2.0" ]
null
null
null
Arays/AlgoExpert/medium/5_longest_peak.py
sounak95/100_days_of_code
50fbf088ce6ab2137aa216a30e3b3f828b278a22
[ "Apache-2.0" ]
null
null
null
def longestPeak(array): # Write your code here. maxPeakLength=0 i=1 while(i<len(array)-1): # print(i) isPeak= array[i]>array[i-1] and array[i]>array[i+1] if not isPeak: i+=1 continue leftIdx=i-2 while(leftIdx>=0 and array[leftIdx]<array[...
22.387097
73
0.569164
93
694
4.247312
0.322581
0.020253
0.055696
0.060759
0.065823
0
0
0
0
0
0
0.059426
0.29683
694
30
74
23.133333
0.75
0.043228
0
0
0
0
0
0
0
0
0
0.033333
0
1
0.052632
false
0
0
0
0.105263
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
32a21eac9e2cace2e8394f36319922a7b623159b
346
py
Python
exerc010.py
RafaelGomesXavier/ExerciciosPython
f9f077678e4172a4766fee8dbbbd4132f11c9798
[ "MIT" ]
null
null
null
exerc010.py
RafaelGomesXavier/ExerciciosPython
f9f077678e4172a4766fee8dbbbd4132f11c9798
[ "MIT" ]
null
null
null
exerc010.py
RafaelGomesXavier/ExerciciosPython
f9f077678e4172a4766fee8dbbbd4132f11c9798
[ "MIT" ]
null
null
null
# Crie um programa que leia quanto dinheiro uma pessoa tem na carteira e mostre quantos dólares ela pode comprar. #considerando dólar a 3,27 dinheiro = float(input('Digite o valor em Reais para conversão em Dólares: ')) dolar = 3.27 soma = dinheiro/dolar print('Com o valor de R$ {:.2f}, você pode comprar ${:.2f}...
49.428571
114
0.725434
56
346
4.482143
0.75
0.087649
0
0
0
0
0
0
0
0
0
0.027875
0.17052
346
7
115
49.428571
0.84669
0.393064
0
0
0
0
0.509901
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
32a5480f76a2237856aa3046ad2042a975bbda83
3,448
py
Python
paramtools/schema_factory.py
PSLmodels/ParamTools
0107eceb4a732e3c0eea32dd83b56ae253d009cb
[ "MIT" ]
18
2019-01-23T15:56:04.000Z
2022-03-17T17:23:03.000Z
paramtools/schema_factory.py
PSLmodels/ParamTools
0107eceb4a732e3c0eea32dd83b56ae253d009cb
[ "MIT" ]
46
2019-01-17T20:50:49.000Z
2022-02-07T15:36:20.000Z
paramtools/schema_factory.py
hdoupe/ParamTools
0107eceb4a732e3c0eea32dd83b56ae253d009cb
[ "MIT" ]
15
2019-01-27T22:52:59.000Z
2020-09-02T12:27:39.000Z
from marshmallow import fields from paramtools.schema import ( OrderedSchema, BaseValidatorSchema, ValueObject, get_type, get_param_schema, ParamToolsSchema, ) from paramtools import utils class SchemaFactory: """ Uses data from: - a schema definition file - a baseline specifi...
34.828283
79
0.62442
357
3,448
5.941176
0.338936
0.069307
0.058934
0.013201
0.097124
0
0
0
0
0
0
0.000411
0.294084
3,448
98
80
35.183673
0.870994
0.389791
0
0.039216
0
0
0.046997
0.010966
0
0
0
0.010204
0
1
0.039216
false
0
0.058824
0
0.137255
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
32a6fee13e312433b9f6225f6d6c8aeee34852fa
843
py
Python
util/debug_stamps_to_csv.py
larics/timesync_ros
a2d88fb6c2999446a6d9d050fe261b6d3cfae727
[ "Apache-2.0" ]
10
2017-11-14T02:21:25.000Z
2021-08-06T23:03:57.000Z
util/debug_stamps_to_csv.py
larics/timesync_ros
a2d88fb6c2999446a6d9d050fe261b6d3cfae727
[ "Apache-2.0" ]
8
2016-11-23T18:09:29.000Z
2017-03-13T01:49:15.000Z
util/debug_stamps_to_csv.py
larics/timesync_ros
a2d88fb6c2999446a6d9d050fe261b6d3cfae727
[ "Apache-2.0" ]
8
2017-11-20T09:12:56.000Z
2020-08-21T03:26:46.000Z
#!/usr/bin/env python import rosbag import rospy import sys import os if len(sys.argv) < 3: print "Usage: {} <bag_name> <debug_info topic>".format(os.path.basename(sys.argv[0])) print "Output: bag_name.csv" exit() input_bag_name = sys.argv[1] try: input_bag = rosbag.Bag(input_bag_name) bag_loaded = True ex...
25.545455
122
0.705813
139
843
4.064748
0.453237
0.099115
0.084956
0.053097
0.074336
0
0
0
0
0
0
0.013755
0.137604
843
32
123
26.34375
0.763411
0.023725
0
0
0
0
0.160584
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
32aa8840f824560446cab96ee35e40f04b16c39b
394
py
Python
app/kobo/migrations/0010_kobodata_last_checked_time.py
dianedetoeuf/django_kobo
d437a289e1952bb55fb7004fddbff6b978aa15d6
[ "MIT" ]
1
2018-12-20T07:59:55.000Z
2018-12-20T07:59:55.000Z
app/kobo/migrations/0010_kobodata_last_checked_time.py
dianedetoeuf/django_kobo
d437a289e1952bb55fb7004fddbff6b978aa15d6
[ "MIT" ]
9
2018-11-06T01:51:28.000Z
2018-12-21T22:19:42.000Z
app/kobo/migrations/0010_kobodata_last_checked_time.py
dianedetoeuf/django_kobo
d437a289e1952bb55fb7004fddbff6b978aa15d6
[ "MIT" ]
2
2018-11-21T15:13:32.000Z
2020-02-19T08:39:37.000Z
# Generated by Django 2.0.5 on 2018-05-31 11:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('kobo', '0009_auto_20180521_2222'), ] operations = [ migrations.AddField( model_name='kobodata', name='last_checked_t...
20.736842
50
0.606599
43
394
5.418605
0.860465
0
0
0
0
0
0
0
0
0
0
0.109541
0.281726
394
18
51
21.888889
0.713781
0.114213
0
0
1
0
0.149856
0.066282
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
32ae196e1b16ba30b606e7be3378d73923a85992
381
py
Python
sudoku_2021_02_15/display.py
jan-g/hacking-the-cryptic
7939fb713c8bf8d29e21a59cdf79db0058ccc280
[ "Apache-2.0" ]
null
null
null
sudoku_2021_02_15/display.py
jan-g/hacking-the-cryptic
7939fb713c8bf8d29e21a59cdf79db0058ccc280
[ "Apache-2.0" ]
null
null
null
sudoku_2021_02_15/display.py
jan-g/hacking-the-cryptic
7939fb713c8bf8d29e21a59cdf79db0058ccc280
[ "Apache-2.0" ]
null
null
null
def display(g): for y in range(g.height): for x in range(g.width): digit, snake = g(x, y) if snake: print("[{}]".format(digit), end="") else: print(" {} ".format(digit), end="") if x % 3 == 2: print(" ", end="") ...
23.8125
51
0.356955
43
381
3.162791
0.44186
0.102941
0.117647
0.279412
0
0
0
0
0
0
0
0.019802
0.469816
381
15
52
25.4
0.653465
0
0
0.153846
0
0
0.023747
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.076923
0.384615
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
32af4821b5fc0b658a4375fa7a9854ccf42a4767
4,414
py
Python
Python/4 - kyu/4 kyu - Coloured Lattice Points Forming Coloured Triangles.py
danielbom/codewars
d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27
[ "MIT" ]
null
null
null
Python/4 - kyu/4 kyu - Coloured Lattice Points Forming Coloured Triangles.py
danielbom/codewars
d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27
[ "MIT" ]
null
null
null
Python/4 - kyu/4 kyu - Coloured Lattice Points Forming Coloured Triangles.py
danielbom/codewars
d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27
[ "MIT" ]
null
null
null
# https://www.codewars.com/kata/coloured-lattice-points-forming-coloured-triangles/train/python # My solution from collections import deque import itertools, operator import numpy as np def valid_triangle(a, b, c): return round(np.linalg.det([[*a,1],[*b,1],[*c,1]]), 3) != 0 def count_col_triang(points): ...
42.038095
149
0.596058
666
4,414
3.854354
0.18018
0.050643
0.014024
0.033113
0.100506
0
0
0
0
0
0
0.030765
0.241504
4,414
105
150
42.038095
0.735962
0.027413
0
0.05
0
0
0
0
0
0
0
0
0
0
null
null
0
0.1125
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
32afcb85e8de584b6a3c4505404bd0f0411f02fb
1,517
py
Python
scripts/filter/utils.py
xtompok/osmawalk
fc63a36deaffaaebfd5022235bd3c4cb134d3cb2
[ "MIT" ]
1
2017-02-22T10:10:01.000Z
2017-02-22T10:10:01.000Z
scripts/filter/utils.py
xtompok/osmawalk
fc63a36deaffaaebfd5022235bd3c4cb134d3cb2
[ "MIT" ]
null
null
null
scripts/filter/utils.py
xtompok/osmawalk
fc63a36deaffaaebfd5022235bd3c4cb134d3cb2
[ "MIT" ]
null
null
null
import math scale = 10 def angle(ux,uy,vx,vy): """ Calculate angle of two vectors """ try: cos = 1.0*(ux*vx + uy*vy)/(math.sqrt(ux*ux+uy*uy)*math.sqrt(vx*vx+vy*vy)) except ZeroDivisionError: print "ZDE" return 0 try: angle = math.acos(cos) except ValueError: if cos>0.99: angle=0 if cos<0.01: an...
23.338462
113
0.679631
249
1,517
4.140562
0.353414
0.052376
0.011639
0.031038
0.072745
0
0
0
0
0
0
0.027756
0.168754
1,517
64
114
23.703125
0.789849
0
0
0.06
0
0
0.013855
0
0
0
0
0
0
0
null
null
0
0.02
null
null
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
32c0baf85a5a4cbb7e67cee8a424fc72615c01a8
918
py
Python
tutorials/modularising_and_packaging_code/utilspack/setup.py
abatten/code-review
33cb1f13d5b430ddd4890eb8280e8692d5019dcc
[ "MIT" ]
19
2018-12-07T00:46:16.000Z
2022-03-08T01:13:45.000Z
tutorials/modularising_and_packaging_code/utilspack/setup.py
abatten/code-review
33cb1f13d5b430ddd4890eb8280e8692d5019dcc
[ "MIT" ]
34
2018-08-18T00:29:56.000Z
2021-10-11T22:56:20.000Z
tutorials/modularising_and_packaging_code/utilspack/setup.py
abatten/code-review
33cb1f13d5b430ddd4890eb8280e8692d5019dcc
[ "MIT" ]
25
2018-08-29T03:57:31.000Z
2021-09-13T05:55:44.000Z
from setuptools import setup, find_packages from codecs import open import os import re with open("README.md", "r") as f: long_description = f.read() with open("requirements.txt", "r") as f: requirements = f.read().splitlines() setup( name='utilspack', version="0.0.1", author='Adam Batten', ...
27.818182
49
0.637255
105
918
5.47619
0.580952
0.132174
0.173913
0.18087
0
0
0
0
0
0
0
0.014045
0.224401
918
33
50
27.818182
0.793539
0
0
0
0
0
0.367791
0.022851
0
0
0
0
0
1
0
false
0
0.137931
0
0.137931
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
32c7489dc4baa8ca6a47abb128b7d7480cc7e1ce
418
py
Python
Macros/Select/Select all Pan-Tilt channels.py
rec/dmxis
540baa59df6f4ae39990e5888f90b95caa362279
[ "Artistic-2.0" ]
2
2019-05-26T15:11:18.000Z
2021-12-27T21:05:32.000Z
Macros/Select/Select all Pan-Tilt channels.py
rec/DMXIS
540baa59df6f4ae39990e5888f90b95caa362279
[ "Artistic-2.0" ]
null
null
null
Macros/Select/Select all Pan-Tilt channels.py
rec/DMXIS
540baa59df6f4ae39990e5888f90b95caa362279
[ "Artistic-2.0" ]
null
null
null
#=============================================================== # DMXIS Macro (c) 2010 db audioware limited #=============================================================== found = False for ch in GetAllSelCh(True): nm = GetChName(ch) if nm=="Pan" or nm=="Tilt": SelectCh(ch, 1) found ...
29.857143
65
0.399522
41
418
4.073171
0.682927
0.11976
0
0
0
0
0
0
0
0
0
0.018237
0.212919
418
14
66
29.857143
0.489362
0.401914
0
0
0
0
0.144681
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
085e3d668e8af04b4040007fde5d6f08322a9df7
5,083
py
Python
beyondtheadmin/invoices/views/dashboard.py
gfavre/invoice-manager
2a1db22edd51b461c090282c6fc1f290f3265379
[ "MIT" ]
1
2021-11-27T06:40:34.000Z
2021-11-27T06:40:34.000Z
beyondtheadmin/invoices/views/dashboard.py
gfavre/invoice-manager
2a1db22edd51b461c090282c6fc1f290f3265379
[ "MIT" ]
2
2021-05-13T04:50:50.000Z
2022-02-28T21:06:24.000Z
beyondtheadmin/invoices/views/dashboard.py
gfavre/invoice-manager
2a1db22edd51b461c090282c6fc1f290f3265379
[ "MIT" ]
null
null
null
from datetime import timedelta from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.core.mail import EmailMessage from django.http import HttpResponseRedirect from django.shortcuts import get_object_or_404 from django.template.loader import render_to_string from dja...
32.170886
117
0.683061
553
5,083
6.113924
0.274864
0.02307
0.041408
0.035492
0.264419
0.198758
0.198758
0.181012
0.121562
0.108252
0
0.001522
0.22467
5,083
157
118
32.375796
0.856382
0.044265
0
0.258621
0
0
0.083834
0.027117
0
0
0
0
0
1
0.12069
false
0
0.12931
0.068966
0.62931
0.008621
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
085fb8ffa97c5240c7f53335084cc8ceaba47369
807
py
Python
bot.py
Blitzhund173/Human-Benchmark-Bot
9390206e3323cadedd534f17b117c9120d72feb4
[ "MIT" ]
null
null
null
bot.py
Blitzhund173/Human-Benchmark-Bot
9390206e3323cadedd534f17b117c9120d72feb4
[ "MIT" ]
null
null
null
bot.py
Blitzhund173/Human-Benchmark-Bot
9390206e3323cadedd534f17b117c9120d72feb4
[ "MIT" ]
null
null
null
from pyautogui import * import pyautogui import time import keyboard import random import win32api, win32con #Defines the click function def click(x,y): win32api.SetCursorPos((x,y)) win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,0,0) time.sleep(0.01) #This pauses the script for 0.01 second...
38.428571
265
0.73482
128
807
4.59375
0.554688
0.035714
0.034014
0.088435
0.12585
0
0
0
0
0
0
0.075758
0.182156
807
20
266
40.35
0.815152
0.459727
0
0
0
0
0.002433
0
0
0
0
0
0
1
0.071429
false
0
0.428571
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0861e7545dfd07904187a744ce6f9782b53b40ba
349
py
Python
EPSR_testcode/code/main.py
subeeshvasu/2018_subeesh_epsr_eccvw
74241e6234371fb3701d7a3deafb72a870050e10
[ "MIT" ]
75
2018-09-14T20:00:35.000Z
2021-10-02T11:22:12.000Z
EPSR_testcode/code/main.py
TangliziGit/2018_subeesh_epsr_eccvw
118b38de5282215ca075baa88446561a4d7fd4cc
[ "MIT" ]
6
2018-12-18T13:33:06.000Z
2020-07-10T15:48:08.000Z
EPSR_testcode/code/main.py
TangliziGit/2018_subeesh_epsr_eccvw
118b38de5282215ca075baa88446561a4d7fd4cc
[ "MIT" ]
18
2018-12-12T08:31:47.000Z
2021-07-22T02:28:33.000Z
import torch import utility import data import model from option import args from trainer import Trainer torch.manual_seed(args.seed) checkpoint = utility.checkpoint(args) if checkpoint.ok: loader = data.Data(args) model = model.Model(args, checkpoint) loss = None t = Trainer(args, loader, model, los...
18.368421
54
0.730659
48
349
5.291667
0.395833
0.07874
0
0
0
0
0
0
0
0
0
0
0.183381
349
18
55
19.388889
0.891228
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.428571
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
1
0
0
0
0
1
086562f0a6344f7dd343915bd0774098f1fa6254
707
py
Python
tests/batch/plugins/DummyPlugin/__init__.py
j-h-m/Media-Journaling-Tool
4ab6961e2768dc002c9bbad182f83188631f01bd
[ "BSD-3-Clause" ]
null
null
null
tests/batch/plugins/DummyPlugin/__init__.py
j-h-m/Media-Journaling-Tool
4ab6961e2768dc002c9bbad182f83188631f01bd
[ "BSD-3-Clause" ]
null
null
null
tests/batch/plugins/DummyPlugin/__init__.py
j-h-m/Media-Journaling-Tool
4ab6961e2768dc002c9bbad182f83188631f01bd
[ "BSD-3-Clause" ]
null
null
null
# ============================================================================= # Authors: PAR Government # Organization: DARPA # # Copyright (c) 2016 PAR Government # All rights reserved. #============================================================================== import maskgen def transform(img,source,target,**...
25.25
79
0.465347
58
707
5.603448
0.689655
0.08
0
0
0
0
0
0
0
0
0
0.007233
0.217822
707
28
80
25.25
0.58047
0.441301
0
0
0
0
0.233161
0
0
0
0
0
0
1
0.2
false
0
0.066667
0.2
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0866299be7d9175903ab5eaca2fb2eb84c20be61
2,524
py
Python
all_functions/new ddos similar/citeulike-parser-master/python/metaheaders.py
Heroku-elasa/-heroku-buildpack-python-ieee-new
06ec2fda04d9e478ed2506400e460489b0ca91ab
[ "MIT" ]
null
null
null
all_functions/new ddos similar/citeulike-parser-master/python/metaheaders.py
Heroku-elasa/-heroku-buildpack-python-ieee-new
06ec2fda04d9e478ed2506400e460489b0ca91ab
[ "MIT" ]
15
2021-03-18T20:25:13.000Z
2022-03-02T14:54:33.000Z
all_functions/new ddos similar/citeulike-parser-master/python/metaheaders.py
Heroku-elasa/heroku-buildpack-python-ieee-new
06ec2fda04d9e478ed2506400e460489b0ca91ab
[ "MIT" ]
1
2017-03-04T16:48:55.000Z
2017-03-04T16:48:55.000Z
#!/usr/bin/env python2.6 import lxml.html, re class InvalidArguments(Exception): pass class MetaHeaders: def __init__(self, url=None, page=None,name='name',content='content'): if page: self.root = lxml.html.document_fromstring(page) elif url: self.root = lxml.html.parse(url).getroot() else: raise In...
21.210084
75
0.582805
411
2,524
3.513382
0.318735
0.016621
0.018698
0.016621
0.204294
0.204294
0.204294
0.204294
0.204294
0.196676
0
0.024316
0.217908
2,524
118
76
21.389831
0.707194
0.009113
0
0.304348
0
0
0.1616
0.0328
0
0
0
0
0
0
null
null
0.021739
0.021739
null
null
0.119565
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0866e36e54b0ced0fbc18dced21070175ed40c54
1,327
py
Python
Programming-101-v3/week4/1-Music-Library/song_test.py
pepincho/Python101-and-Algo1-Courses
7cf38d26d5be5ffc1a37477ae6375a99906df9e2
[ "MIT" ]
2
2016-10-11T14:09:05.000Z
2017-01-20T19:30:34.000Z
Programming-101-v3/week4/1-Music-Library/song_test.py
pepincho/HackBulgaria
7cf38d26d5be5ffc1a37477ae6375a99906df9e2
[ "MIT" ]
null
null
null
Programming-101-v3/week4/1-Music-Library/song_test.py
pepincho/HackBulgaria
7cf38d26d5be5ffc1a37477ae6375a99906df9e2
[ "MIT" ]
null
null
null
from song import Song import unittest class TestSong(unittest .TestCase): def setUp(self): self.song = Song( title="Odin", artist="Manowar", album="The Sons of Odin", length="3:44") def test_create_new_song(self): self.assertTrue(isinstance(self.song, Song)) self.assertEq...
32.365854
85
0.629992
174
1,327
4.701149
0.258621
0.127139
0.162592
0.196822
0.40709
0.295844
0.178484
0.178484
0.178484
0.178484
0
0.024319
0.22532
1,327
40
86
33.175
0.771401
0
0
0.066667
0
0
0.146948
0
0
0
0
0
0.4
1
0.2
false
0
0.066667
0
0.3
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
088359ec9f299520d2c64b18cfd27f62fe7438e5
638
py
Python
py/tests/custom_metric_class.py
evergage/sparkling-water
dda405176cb3a84bb0af1864393201a6084e7eba
[ "Apache-2.0" ]
1
2019-05-03T13:38:31.000Z
2019-05-03T13:38:31.000Z
py/tests/custom_metric_class.py
evergage/sparkling-water
dda405176cb3a84bb0af1864393201a6084e7eba
[ "Apache-2.0" ]
null
null
null
py/tests/custom_metric_class.py
evergage/sparkling-water
dda405176cb3a84bb0af1864393201a6084e7eba
[ "Apache-2.0" ]
null
null
null
class WeightedFalseNegativeLossMetric: def map(self, predicted, actual, weight, offset, model): cost_tp = 5000 # set prior to use cost_tn = 0 # do not change cost_fp = cost_tp # do not change cost_fn = weight # do not change y = actual[0] p = predicted[2] # [clas...
31.9
63
0.53605
88
638
3.784091
0.443182
0.045045
0.099099
0.09009
0
0
0
0
0
0
0
0.040767
0.346395
638
19
64
33.578947
0.757794
0.115987
0
0
0
0
0
0
0
0
0
0
0
1
0.176471
false
0
0
0.117647
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0884f86518d99dca4620a192272a1a32815e6349
2,390
py
Python
3 membership_func.py
satyarth42/Soft-computing-lab
0142332e8c17d358c3518cd2bdfef1f74b1a340d
[ "MIT" ]
null
null
null
3 membership_func.py
satyarth42/Soft-computing-lab
0142332e8c17d358c3518cd2bdfef1f74b1a340d
[ "MIT" ]
null
null
null
3 membership_func.py
satyarth42/Soft-computing-lab
0142332e8c17d358c3518cd2bdfef1f74b1a340d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jul 26 10:47:56 2018 @author: VP LAB """ import matplotlib.pyplot as plt import numpy as np def gamma(): a = int(input()) b = int(input()) x=np.linspace(-10.0,10.0,1024); y = np.zeros(x.shape) for i in range(len(x)): if x[i]<a: ...
20.42735
41
0.40251
414
2,390
2.323672
0.149758
0.047817
0.031185
0.094595
0.715177
0.701663
0.633056
0.490644
0.490644
0.398129
0
0.062876
0.374477
2,390
116
42
20.603448
0.580602
0.031381
0
0.64
0
0
0
0
0
0
0
0
0
1
0.07
false
0
0.02
0
0.09
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
088d1f4278e1b6e41c7cc570b57c32a28b0d6784
285
py
Python
basic-v2.py
PacktPublishing/Network-Hacking-Continued---Intermediate-to-Advanced
cd91f5a6d4076ce9603cbff768a740784977f9cc
[ "MIT" ]
6
2020-06-24T11:17:58.000Z
2021-11-08T13:10:19.000Z
basic-v2.py
PacktPublishing/Network-Hacking-Continued---Intermediate-to-Advanced
cd91f5a6d4076ce9603cbff768a740784977f9cc
[ "MIT" ]
null
null
null
basic-v2.py
PacktPublishing/Network-Hacking-Continued---Intermediate-to-Advanced
cd91f5a6d4076ce9603cbff768a740784977f9cc
[ "MIT" ]
7
2020-01-14T11:53:24.000Z
2022-03-19T15:13:14.000Z
from mitmproxy import http def request(flow): if flow.request.host != "10.20.215.8" and flow.request.pretty_url.endswith(".exe"): print("[+] Got an interesting flow.") flow.response = http.HTTPResponse.make(301, "", {"Location": "http://10.20.215.8/file.exe"})
31.666667
101
0.645614
41
285
4.463415
0.682927
0.120219
0.076503
0.087432
0
0
0
0
0
0
0
0.079832
0.164912
285
8
102
35.625
0.689076
0
0
0
0
0
0.273684
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0896230b334ebddfa08976d95c95b33e00871793
2,654
py
Python
scanpy/external/pp/_harmony_integrate.py
mkmkryu/scanpy2
f3db32a142dc31c1b628380db1c969a6d0b9dc3a
[ "BSD-3-Clause" ]
1,171
2017-01-17T14:01:02.000Z
2022-03-31T23:02:57.000Z
scanpy/external/pp/_harmony_integrate.py
mkmkryu/scanpy2
f3db32a142dc31c1b628380db1c969a6d0b9dc3a
[ "BSD-3-Clause" ]
1,946
2017-01-22T10:19:04.000Z
2022-03-31T17:13:03.000Z
scanpy/external/pp/_harmony_integrate.py
mkmkryu/scanpy2
f3db32a142dc31c1b628380db1c969a6d0b9dc3a
[ "BSD-3-Clause" ]
499
2017-01-21T11:39:29.000Z
2022-03-23T13:57:35.000Z
""" Use harmony to integrate cells from different experiments. """ from typing import Optional from anndata import AnnData def harmony_integrate( adata: AnnData, key: str, basis: str = "X_pca", adjusted_basis: str = "X_pca_harmony", **kwargs, ): """\ Use harmonypy [Korunsky19]_ to integr...
31.223529
84
0.671439
350
2,654
5.025714
0.417143
0.035816
0.025014
0.020466
0.046617
0.046617
0.046617
0.046617
0.046617
0.046617
0
0.007386
0.23474
2,654
84
85
31.595238
0.85869
0.733233
0
0
0
0
0.146341
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
08a514715989447db620956afe0942609128f714
3,172
py
Python
ooobuild/lo/lang/service_manager.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/lang/service_manager.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/lang/service_manager.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
51.16129
704
0.784994
447
3,172
5.449664
0.480984
0.019704
0.032841
0.022989
0.034483
0.015599
0
0
0
0
0
0.027351
0.158575
3,172
61
705
52
0.88535
0.655422
0
0
0
0
0.09697
0.058586
0
0
0
0
0
1
0.0625
false
0
0.5
0
0.8125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
08b31cf0284a4abf5e5df82ebfdde0583189cefc
2,092
py
Python
school/migrations/0001_initial.py
Ededu1984/Django_API_School
c3f45fa8036bcf72ccc06c4337010e0eecc4d0fe
[ "MIT" ]
null
null
null
school/migrations/0001_initial.py
Ededu1984/Django_API_School
c3f45fa8036bcf72ccc06c4337010e0eecc4d0fe
[ "MIT" ]
null
null
null
school/migrations/0001_initial.py
Ededu1984/Django_API_School
c3f45fa8036bcf72ccc06c4337010e0eecc4d0fe
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-19 23:38 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Course', fields=[ ...
44.510638
150
0.570746
213
2,092
5.492958
0.399061
0.076923
0.092308
0.123077
0.31453
0.31453
0.31453
0.31453
0.31453
0.31453
0
0.021373
0.26195
2,092
46
151
45.478261
0.736399
0.021511
0
0.384615
1
0
0.122249
0
0
0
0
0
0
1
0
false
0
0.051282
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
08bc44ae89110373fedf67a883d1fa591f92ec90
845
py
Python
utils/config_parse.py
tudor-berariu/lifelong-learning
35041e0e466dd165bd112d65a571e38518a49783
[ "MIT" ]
4
2018-07-22T14:14:07.000Z
2019-02-05T09:36:47.000Z
utils/config_parse.py
tudor-berariu/lifelong-learning
35041e0e466dd165bd112d65a571e38518a49783
[ "MIT" ]
null
null
null
utils/config_parse.py
tudor-berariu/lifelong-learning
35041e0e466dd165bd112d65a571e38518a49783
[ "MIT" ]
null
null
null
from argparse import ArgumentParser import torch import os.path import re import numpy as np """ Match pattern: ${<PATTERN>, <parameters_comma_seperated>....} E.g. seed: ${list, 1,2,3} seed: ${eval, np.random.rand(10)} """ def list_of_param(args_string): a = args_string.strip().split(",") return...
18.777778
52
0.60355
107
845
4.626168
0.46729
0.084848
0.044444
0
0
0
0
0
0
0
0
0.012195
0.223669
845
44
53
19.204545
0.742378
0
0
0
0
0
0.064011
0
0
0
0
0
0
1
0.12
false
0
0.2
0
0.52
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
08c15dd584e24f6bf3b9ae0601f2ecec9df6e453
554
py
Python
cterasdk/core/files/mv.py
CTERA-Networks/ctera-python-sdk
35d9cb6949590e664fd237d29f54ce054fe80a9e
[ "Apache-2.0" ]
5
2020-02-25T22:34:48.000Z
2020-02-29T22:56:39.000Z
cterasdk/core/files/mv.py
ctera/ctera-python-sdk
a86cb575d538620a12f326fe5e92f5abb5cc1f6b
[ "Apache-2.0" ]
16
2020-03-25T19:12:03.000Z
2021-06-02T14:45:34.000Z
cterasdk/core/files/mv.py
ctera/ctera-python-sdk
a86cb575d538620a12f326fe5e92f5abb5cc1f6b
[ "Apache-2.0" ]
3
2020-10-22T18:22:06.000Z
2021-10-03T18:38:41.000Z
import logging from .common import SrcDstParam, ActionResourcesParam def move(ctera_host, src, dest): return move_multi(ctera_host, [src], dest) def move_multi(ctera_host, src, dest): move_param = ActionResourcesParam.instance() for path in src: logging.getLogger().info('Moving item. %s', {'pa...
30.777778
115
0.716606
70
554
5.542857
0.471429
0.092784
0.092784
0.123711
0.128866
0.128866
0
0
0
0
0
0
0.140794
554
17
116
32.588235
0.815126
0
0
0
0
0
0.061372
0
0
0
0
0
0
1
0.2
false
0
0.2
0.1
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
08c424c38db956bc369570b72cce367a47ba7f91
1,663
py
Python
tf_adapter/python/npu_bridge/estimator/npu/npu_strategy.py
fujingguo/tf_adapter_npu
96e796fca0359b984a8504f920844ae572b5d30e
[ "Apache-2.0" ]
null
null
null
tf_adapter/python/npu_bridge/estimator/npu/npu_strategy.py
fujingguo/tf_adapter_npu
96e796fca0359b984a8504f920844ae572b5d30e
[ "Apache-2.0" ]
null
null
null
tf_adapter/python/npu_bridge/estimator/npu/npu_strategy.py
fujingguo/tf_adapter_npu
96e796fca0359b984a8504f920844ae572b5d30e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) Huawei Technologies Co., Ltd. 2019-2021. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www...
36.152174
80
0.711365
217
1,663
5.258065
0.548387
0.052585
0.022787
0.028046
0.115688
0.052585
0.052585
0
0
0
0
0.01204
0.150932
1,663
45
81
36.955556
0.796034
0.483464
0
0
0
0
0.019324
0
0
0
0
0
0
1
0.235294
false
0
0.294118
0.058824
0.764706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
08c4f87adb9d5568baaa73cc1932022583d84572
666
py
Python
assethub/flatmenu/migrations/0002_auto_20170107_0614.py
portnov/assethub
0f2f9d5e190b2a633a794514b54d8b408c9ed2a6
[ "BSD-3-Clause" ]
3
2017-01-07T16:56:53.000Z
2019-10-21T00:39:47.000Z
assethub/flatmenu/migrations/0002_auto_20170107_0614.py
portnov/assethub
0f2f9d5e190b2a633a794514b54d8b408c9ed2a6
[ "BSD-3-Clause" ]
11
2017-01-08T06:10:34.000Z
2017-01-26T13:09:32.000Z
assethub/flatmenu/migrations/0002_auto_20170107_0614.py
portnov/assethub
0f2f9d5e190b2a633a794514b54d8b408c9ed2a6
[ "BSD-3-Clause" ]
1
2019-05-16T03:58:40.000Z
2019-05-16T03:58:40.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-07 06:14 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('flatmenu', '0001_initial'), ] operations = [ migrations.AddField( ...
25.615385
84
0.603604
73
666
5.315068
0.616438
0.092784
0.118557
0.139175
0.515464
0.515464
0.515464
0.28866
0.28866
0.28866
0
0.05567
0.271772
666
25
85
26.64
0.74433
0.102102
0
0.444444
1
0
0.104202
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
08c5ee5c2dcdcaa03f3b3946f13ba74300caefa6
3,195
py
Python
collect/github/utils.py
susanalima/javaScript4Me
bec804a7c7799caa58a81777ad9b05b8609b0a07
[ "Apache-2.0" ]
null
null
null
collect/github/utils.py
susanalima/javaScript4Me
bec804a7c7799caa58a81777ad9b05b8609b0a07
[ "Apache-2.0" ]
null
null
null
collect/github/utils.py
susanalima/javaScript4Me
bec804a7c7799caa58a81777ad9b05b8609b0a07
[ "Apache-2.0" ]
null
null
null
import json import re from datetime import datetime """" Directory to globals file """ GLOBALS_FILE = "./globals/globals.json" def load_globals(): """ Read content from globals file Returns: dict: dictionary containing the content of the globals file """ with open(GLOBALS_FILE) as f: ...
28.526786
315
0.660407
419
3,195
4.813842
0.221957
0.089241
0.075359
0.027764
0.539911
0.519584
0.519584
0.488845
0.432325
0.411502
0
0
0.228169
3,195
112
316
28.526786
0.817924
0.338028
0
0.121212
0
0
0.194737
0.025789
0
0
0
0
0
1
0.212121
false
0
0.090909
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
08c84205aeda4fd0132b797e010b5d28db4e0a9f
325
py
Python
gb_genome_domestication/settings.py
bioinfcomav/goldebraid
7a50c9c4e65308fb51abf4f236457d12e9d028d6
[ "Apache-2.0" ]
null
null
null
gb_genome_domestication/settings.py
bioinfcomav/goldebraid
7a50c9c4e65308fb51abf4f236457d12e9d028d6
[ "Apache-2.0" ]
null
null
null
gb_genome_domestication/settings.py
bioinfcomav/goldebraid
7a50c9c4e65308fb51abf4f236457d12e9d028d6
[ "Apache-2.0" ]
null
null
null
''' Created on 2014 uzt 1 @author: peio ''' from django.conf import settings APP_NAME = 'gb_genome_domestication' ENZYMES_USED_IN_GOLDENBRAID = ('BsmBI', 'BsaI', 'BtgZI') DB = getattr(settings, 'GB_GENOME_DOMESTICATION_DBNAME') DB_URLPREFIX = '/genome_domestication/feature/' RESTCMD_CLIENT_APP_NAME = 'restcmd_cli...
19.117647
56
0.769231
42
325
5.595238
0.738095
0.242553
0.178723
0
0
0
0
0
0
0
0
0.017361
0.113846
325
16
57
20.3125
0.798611
0.110769
0
0
0
0
0.395018
0.295374
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
08c8c91d115d7065c784397e3ec953f6872f1851
2,835
py
Python
catalog/bindings/gmd/meta_data_property_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/meta_data_property_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/meta_data_property_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional, Union from bindings.gmd.abstract_meta_data import AbstractMetaData from bindings.gmd.actuate_value import ActuateValue from bindings.gmd.generic_meta_data import GenericMetaData from bindings.gmd.nil_reason_enumeration_value import NilReasonEnumerati...
27.794118
79
0.536861
255
2,835
5.894118
0.243137
0.095143
0.117099
0.175649
0.54491
0.477711
0.415835
0.415835
0.330672
0.330672
0
0.018672
0.319929
2,835
101
80
28.069307
0.760892
0
0
0.459184
0
0
0.223986
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.204082
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
08ce9b10da960b409d8cc8c710da08b544b35a5c
3,236
py
Python
send_alert/sample_alert.py
xOpsTech/event_processor
450a3ea3ba0aadb3e297c0443fafbc8ba208fe04
[ "Apache-2.0" ]
null
null
null
send_alert/sample_alert.py
xOpsTech/event_processor
450a3ea3ba0aadb3e297c0443fafbc8ba208fe04
[ "Apache-2.0" ]
null
null
null
send_alert/sample_alert.py
xOpsTech/event_processor
450a3ea3ba0aadb3e297c0443fafbc8ba208fe04
[ "Apache-2.0" ]
null
null
null
import hashlib from datetime import datetime, timedelta import pytz from es_writer import EsWriter from redis_client import RedisClient utc = pytz.utc fmt = '%Y-%m-%dT%H:%M:%S%z' omp_time = datetime.strftime(utc.localize(datetime.utcnow() - timedelta(hours=8)), fmt) # message_writer = EsWriter(host='35.184.66.182') m...
30.819048
170
0.596415
344
3,236
5.468023
0.488372
0.038278
0.004785
0.023923
0.198299
0.198299
0.198299
0.181287
0.155237
0.155237
0
0.030266
0.244438
3,236
104
171
31.115385
0.739059
0.014524
0
0.022727
0
0.022727
0.377157
0.006903
0
0
0
0
0
0
null
null
0
0.056818
null
null
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
1
0
0
0
0
0
0
0
0
1
08d04c4008b5484d1df1cd0b1c0c0c4ee1173b45
4,448
py
Python
setup.py
edsuom/yampex
624bc178fe0b04cf427895f6ad0a911e7e41b5a3
[ "Apache-2.0" ]
16
2018-07-09T13:05:30.000Z
2021-09-20T06:04:43.000Z
setup.py
edsuom/yampex
624bc178fe0b04cf427895f6ad0a911e7e41b5a3
[ "Apache-2.0" ]
null
null
null
setup.py
edsuom/yampex
624bc178fe0b04cf427895f6ad0a911e7e41b5a3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # yampex: # Yet Another Matplotlib Extension # # Copyright (C) 2017-2021 by Edwin A. Suominen, # http://edsuom.com/yampex # # See edsuom.com for API documentation as well as information about # Ed's background and other projects, software and otherwise. # # Licensed unde...
33.443609
77
0.668615
568
4,448
5.216549
0.463028
0.030375
0.026325
0.02565
0.0351
0.018225
0
0
0
0
0
0.03312
0.192221
4,448
132
78
33.69697
0.791539
0.258318
0
0
0
0
0.751151
0.025161
0
0
0
0
0
1
0
false
0
0.013514
0
0.013514
0.067568
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
08e0fabf8a744efc7fa87aa911c0861ba9d6339e
15,114
py
Python
common/xrd-ui-tests-python/tests/xroad_changing_database_rows_with_ss_gui_2101/changing_database_rows_with_ss_gui.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
3
2018-03-15T14:22:50.000Z
2021-11-08T10:30:35.000Z
common/xrd-ui-tests-python/tests/xroad_changing_database_rows_with_ss_gui_2101/changing_database_rows_with_ss_gui.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
11
2017-04-06T09:25:41.000Z
2018-06-04T09:08:48.000Z
common/xrd-ui-tests-python/tests/xroad_changing_database_rows_with_ss_gui_2101/changing_database_rows_with_ss_gui.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
20
2017-03-14T07:21:58.000Z
2019-05-21T09:26:30.000Z
import traceback import time import datetime from selenium.webdriver.common.by import By from selenium.webdriver.support.select import Select from helpers import ssh_client, ssh_user_actions, ssh_server_actions, xroad from view_models import popups as popups, clients_table_vm as clients_table_vm, messages USERNAME =...
42.336134
137
0.640598
1,974
15,114
4.688956
0.12462
0.026469
0.012965
0.023336
0.668863
0.646392
0.611279
0.562878
0.524092
0.4543
0
0.02005
0.264126
15,114
356
138
42.455056
0.812174
0.207887
0
0.272251
0
0.005236
0.19417
0.003612
0
0
0
0
0.005236
1
0.057592
false
0.115183
0.036649
0
0.120419
0.010471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
08e9019a3c24e6f878aa282f2caf4cda641c7197
1,147
py
Python
BlockChainStore/model.py
rivinduchamath/BlockChain-
f697a97d21274a700eee9ef2dab0b4655a626e7f
[ "MIT" ]
3
2019-05-29T19:40:15.000Z
2020-07-17T10:57:25.000Z
BlockChainStore/model.py
rivinduchamath/BlockChain-
f697a97d21274a700eee9ef2dab0b4655a626e7f
[ "MIT" ]
null
null
null
BlockChainStore/model.py
rivinduchamath/BlockChain-
f697a97d21274a700eee9ef2dab0b4655a626e7f
[ "MIT" ]
null
null
null
# Created on Sun May 26 03:22:09 2019 # @author: Rivindu Wijayarathna import os import sys from sqlalchemy import Column, ForeignKey, Integer, String ,DateTime from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship from datetime import datetime import random,string Base = d...
24.934783
68
0.694856
140
1,147
5.428571
0.335714
0.047368
0.098684
0.059211
0.264474
0.168421
0.168421
0.105263
0.105263
0.105263
0
0.030033
0.216216
1,147
46
69
24.934783
0.81535
0.05667
0
0.241379
0
0
0.031481
0
0
0
0
0
0
1
0.103448
false
0
0.241379
0
0.758621
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
08edbeeff514afe7cdec0eaae91e7fd7125f1f87
3,300
py
Python
src/audio/aubio/python/tests/test_onset.py
vrushank-agrawal/video_editor_BX23
3a458114f499e0ba3d1c61afde2b9d30bc76459b
[ "Apache-2.0" ]
null
null
null
src/audio/aubio/python/tests/test_onset.py
vrushank-agrawal/video_editor_BX23
3a458114f499e0ba3d1c61afde2b9d30bc76459b
[ "Apache-2.0" ]
null
null
null
src/audio/aubio/python/tests/test_onset.py
vrushank-agrawal/video_editor_BX23
3a458114f499e0ba3d1c61afde2b9d30bc76459b
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python from numpy.testing import TestCase, assert_equal, assert_almost_equal from aubio import onset, fvec class aubio_onset_default(TestCase): def test_members(self): o = onset() assert_equal ([o.buf_size, o.hop_size, o.method, o.samplerate], [1024,512,'default',44100...
27.5
78
0.638485
469
3,300
4.185501
0.196162
0.050942
0.057056
0.089149
0.386653
0.251656
0.194091
0.071319
0
0
0
0.039216
0.242727
3,300
119
79
27.731092
0.746299
0.024242
0
0
0
0
0.031386
0
0
0
0
0
0.258824
1
0.211765
false
0
0.035294
0
0.364706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
08f1105bb3cf3a734d18bf90aa7df85b3640b555
4,934
py
Python
app.py
VonStruddle/treehouse_social_network
78d9eb927c0e80cad248fbde2ad5e8f6bb627c16
[ "MIT" ]
null
null
null
app.py
VonStruddle/treehouse_social_network
78d9eb927c0e80cad248fbde2ad5e8f6bb627c16
[ "MIT" ]
null
null
null
app.py
VonStruddle/treehouse_social_network
78d9eb927c0e80cad248fbde2ad5e8f6bb627c16
[ "MIT" ]
null
null
null
from flask import (Flask, g, render_template, flash, redirect, url_for) from flask.ext.bcrypt import check_password_hash from flask.ext.login import (LoginManager, login_user, logout_user, login_required, current_user) import forms import models DEBUG = True PORT = 8000 HOST =...
29.195266
82
0.608431
568
4,934
5.128521
0.232394
0.041195
0.033642
0.041195
0.370752
0.300378
0.241675
0.212839
0.181943
0.15448
0
0.005263
0.268342
4,934
168
83
29.369048
0.801662
0.019051
0
0.34058
0
0
0.123793
0.005149
0
0
0
0
0
1
0.07971
false
0.07971
0.036232
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
08f60a9ef512f806502726cd66802fa9498c4163
751
py
Python
save_media.py
nricklin/arlobackup
277f484b4626ae4039c1996cb3ac047a2e7ffa00
[ "MIT" ]
null
null
null
save_media.py
nricklin/arlobackup
277f484b4626ae4039c1996cb3ac047a2e7ffa00
[ "MIT" ]
null
null
null
save_media.py
nricklin/arlobackup
277f484b4626ae4039c1996cb3ac047a2e7ffa00
[ "MIT" ]
null
null
null
import json, boto3 import requests s3 = boto3.client('s3') def handler(event, context): print event print context message = json.loads( event['Records'][0]['body'] ) bucket = message['metadata']['s3bucket'] contentURL = message['media']['presignedContentUrl'] content_key = message['metadata']...
26.821429
56
0.679095
91
751
5.494505
0.406593
0.032
0.072
0.056
0.224
0.224
0.224
0.224
0.224
0.224
0
0.013072
0.185087
751
28
57
26.821429
0.803922
0.039947
0
0.111111
0
0
0.165508
0.029207
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3e954db7e4cb4cf9763d92b7e67bbfa47fdbf61a
657
py
Python
tests/test_RotateString.py
csy-uestc-eng/algorithm_python_implementation
f703b351fcf64669faaa71d0dbe9764f81aadfdc
[ "Apache-2.0" ]
1
2019-11-30T10:17:40.000Z
2019-11-30T10:17:40.000Z
tests/test_RotateString.py
csy-uestc-eng/algorithm_python_implementation
f703b351fcf64669faaa71d0dbe9764f81aadfdc
[ "Apache-2.0" ]
null
null
null
tests/test_RotateString.py
csy-uestc-eng/algorithm_python_implementation
f703b351fcf64669faaa71d0dbe9764f81aadfdc
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from leetcode_solution.RotateString import Solution as so class TestRotateString(TestCase): def setUp(self): self.ins = so() def test_rotate(self): result = self.ins.rotateString01("bqqutquvbtgouklsayfvzewpnrbwfcdmwctusunasdbpbmhnvy" , "wpnrbwfcdmwctusunasdbpbmhnvy...
41.0625
149
0.70624
62
657
7.451613
0.419355
0.075758
0.112554
0.233766
0.229437
0.229437
0.229437
0.229437
0
0
0
0.015038
0.190259
657
15
150
43.8
0.853383
0
0
0.214286
0
0
0.155251
0.152207
0
0
0
0
0.285714
1
0.142857
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3ea94e1ec9ef998776ceebe379d182d1bef5e794
493
py
Python
problems/valid_parentheses.py
stachenov/PyLeetCode
cb13700d428854eff46a762542a63d691578d5b6
[ "Unlicense" ]
null
null
null
problems/valid_parentheses.py
stachenov/PyLeetCode
cb13700d428854eff46a762542a63d691578d5b6
[ "Unlicense" ]
null
null
null
problems/valid_parentheses.py
stachenov/PyLeetCode
cb13700d428854eff46a762542a63d691578d5b6
[ "Unlicense" ]
null
null
null
class Solution(object): def isValid(self, s): """ :type s: str :rtype: bool """ stack = [] for c in s: if c in ('(', '[', '{'): stack.append(c) else: if not stack: return False ...
27.388889
97
0.330629
50
493
3.26
0.5
0.07362
0.092025
0.08589
0.116564
0.116564
0.116564
0
0
0
0
0
0.513185
493
17
98
29
0.679167
0.05071
0
0.153846
0
0
0.020642
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3eaa3bd4e4bb7b60edcb2b1ed4dc4c60356d071b
11,256
py
Python
z_server.py
warriorpaw/z-ssl-proxy
b1b4ffbb3e01b0bd762986f2e20c0f397ea0e878
[ "Apache-2.0" ]
61
2015-08-24T05:20:29.000Z
2021-03-13T11:10:41.000Z
z_server.py
warriorpaw/z-ssl-proxy
b1b4ffbb3e01b0bd762986f2e20c0f397ea0e878
[ "Apache-2.0" ]
2
2016-02-29T00:52:42.000Z
2018-08-30T13:31:48.000Z
z_server.py
warriorpaw/z-ssl-proxy
b1b4ffbb3e01b0bd762986f2e20c0f397ea0e878
[ "Apache-2.0" ]
17
2015-08-24T04:22:04.000Z
2020-07-09T09:09:10.000Z
import myssl, select, handleHTTP, socket import sys, struct, os, random, hashlib, time, threading import json import logging #MAXSYN = 2 ** 15 MAXSYNBUFFER = 64 MAXSYN = 1024 #REMOTE_lines = 4 def filepath(f): return os.path.join(os.path.split(os.path.realpath(__file__))[0], f) def random_data(len): d = '' ...
31.35376
107
0.498667
1,226
11,256
4.491843
0.190049
0.012711
0.018885
0.016343
0.293808
0.244961
0.222444
0.197567
0.153986
0.139822
0
0.022212
0.392058
11,256
358
108
31.441341
0.782552
0.015014
0
0.390476
0
0
0.049192
0.002437
0
0
0
0
0
0
null
null
0.003175
0.012698
null
null
0.031746
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3eb340646986d9b3b87080ee7659c01044feb57a
1,525
py
Python
effective_manager/effective_manager/urls.py
Gordi91/effective-manager
6d57a6de0c333f89b56fca08d5e049ba68d49bc4
[ "MIT" ]
null
null
null
effective_manager/effective_manager/urls.py
Gordi91/effective-manager
6d57a6de0c333f89b56fca08d5e049ba68d49bc4
[ "MIT" ]
null
null
null
effective_manager/effective_manager/urls.py
Gordi91/effective-manager
6d57a6de0c333f89b56fca08d5e049ba68d49bc4
[ "MIT" ]
null
null
null
"""effective_manager URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') C...
42.361111
113
0.70623
226
1,525
4.69469
0.371681
0.05655
0.014138
0.02262
0.123468
0.110273
0.070688
0
0
0
0
0.016705
0.136393
1,525
35
114
43.571429
0.788914
0.415082
0
0
0
0.058824
0.256497
0.123164
0
0
0
0
0
1
0
false
0
0.411765
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
3eb909074cc965780630ab5f222ed0c96dd5d455
865
py
Python
longest_palindromic.py
teslafields/code-challenges
56d019c095987a40e3f4cb4997fb40898fc6091b
[ "MIT" ]
null
null
null
longest_palindromic.py
teslafields/code-challenges
56d019c095987a40e3f4cb4997fb40898fc6091b
[ "MIT" ]
null
null
null
longest_palindromic.py
teslafields/code-challenges
56d019c095987a40e3f4cb4997fb40898fc6091b
[ "MIT" ]
null
null
null
class Solution: def longestPalindrome(self, s): slen = len(s) longest = '' longest_len = 0 for i in range(1, slen-1): loops+=1 l, r = i-1, i+1 subs = s[i] while l >= 0 and r < slen: if s[l] != s[r]: ...
27.03125
43
0.359538
95
865
3.2
0.326316
0.092105
0.046053
0
0
0
0
0
0
0
0
0.030227
0.54104
865
31
44
27.903226
0.735516
0.023121
0
0.071429
0
0
0.010689
0
0
0
0
0
0
1
0.035714
false
0
0
0
0.107143
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3ec4bc404453b124c21b77500bd8dd8b070d179d
915
py
Python
workbench/planning/migrations/0016_auto_20210802_1938.py
yoshson/workbench
701558cac3357cd82e4dc99f0fefed12ee81ddc5
[ "MIT" ]
15
2020-09-02T22:17:34.000Z
2022-02-01T20:09:10.000Z
workbench/planning/migrations/0016_auto_20210802_1938.py
yoshson/workbench
701558cac3357cd82e4dc99f0fefed12ee81ddc5
[ "MIT" ]
18
2020-01-08T15:28:26.000Z
2022-02-28T02:46:41.000Z
workbench/planning/migrations/0016_auto_20210802_1938.py
yoshson/workbench
701558cac3357cd82e4dc99f0fefed12ee81ddc5
[ "MIT" ]
8
2020-09-29T08:00:24.000Z
2022-01-16T11:58:19.000Z
# Generated by Django 3.2.4 on 2021-08-02 17:38 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("contacts", "0013_organization_is_archived"), ("planning", "0015_auto_20210729_1141"), ] operations = [ ...
27.727273
69
0.570492
89
915
5.685393
0.606742
0.047431
0.055336
0.086957
0
0
0
0
0
0
0
0.056543
0.323497
915
32
70
28.59375
0.760905
0.04918
0
0.153846
1
0
0.201613
0.084101
0
0
0
0
0
1
0
false
0
0.076923
0
0.192308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3ec9ed508b2a92eb1e76d26aa7fce64aa2a56818
419
py
Python
periodicals/migrations/0011_issue_edition.py
kingsdigitallab/ncse-django
9dd953ab46a1cdc16eacff417804373ab54ae2bf
[ "MIT" ]
null
null
null
periodicals/migrations/0011_issue_edition.py
kingsdigitallab/ncse-django
9dd953ab46a1cdc16eacff417804373ab54ae2bf
[ "MIT" ]
null
null
null
periodicals/migrations/0011_issue_edition.py
kingsdigitallab/ncse-django
9dd953ab46a1cdc16eacff417804373ab54ae2bf
[ "MIT" ]
null
null
null
# Generated by Django 2.0.3 on 2018-04-03 12:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('periodicals', '0010_delete_model_issueedition'), ] operations = [ migrations.AddField( model_name='issue', name='edi...
22.052632
74
0.615752
46
419
5.5
0.826087
0
0
0
0
0
0
0
0
0
0
0.071895
0.26969
419
18
75
23.277778
0.754902
0.107399
0
0
1
0
0.142473
0.080645
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3ece9482ff147f3beffda9e0e62f8659d8f298e8
913
py
Python
tests/selenium/add_device_dialog_test/add_device_test_suite.py
sivaanil/laravel
14900b071a514379f0161c5fd7bea05300dee083
[ "MIT" ]
1
2021-11-16T08:07:07.000Z
2021-11-16T08:07:07.000Z
tests/selenium/add_device_dialog_test/add_device_test_suite.py
sivaanil/laravel
14900b071a514379f0161c5fd7bea05300dee083
[ "MIT" ]
null
null
null
tests/selenium/add_device_dialog_test/add_device_test_suite.py
sivaanil/laravel
14900b071a514379f0161c5fd7bea05300dee083
[ "MIT" ]
null
null
null
import sys sys.path.append('../') import login_test.login_success as login_success import add_device_dialog_general import add_device_dialog_device_info import add_device_dialog_device_info_build import unittest import c2_test_suite class add_device_test(c2_test_suite.C2TestSuite): def test_all(self): ...
26.085714
89
0.752464
120
913
5.258333
0.333333
0.114105
0.142631
0.133122
0.269414
0.269414
0.114105
0.114105
0
0
0
0.007979
0.176342
913
35
90
26.085714
0.831117
0.035049
0
0
0
0
0.020501
0
0
0
0
0
0
1
0.045455
false
0
0.318182
0
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
3ed16239bc9f841897dac224da937fb756fecbc0
867
py
Python
Python/695.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
1
2020-12-10T05:36:15.000Z
2020-12-10T05:36:15.000Z
Python/695.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
null
null
null
Python/695.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
3
2020-04-06T05:55:08.000Z
2021-08-29T14:26:54.000Z
class Solution: def maxAreaOfIsland(self, grid: List[List[int]]) -> int: if not grid or not grid[0]: return 0 result = 0 def dfs(x, y): dx = [0, 0, 1, -1] dy = [1, -1, 0, 0] count = 1 for k in range(4): nx, ny = dx[k...
29.896552
69
0.343714
111
867
2.684685
0.342342
0.053691
0.053691
0
0
0
0
0
0
0
0
0.049261
0.531719
867
29
70
29.896552
0.684729
0
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3ee07b6b4ffb1d425b5fb2c53a47ad3e001fcffa
22,536
py
Python
train_and_test_cae.py
gangchill/nip-convnet
423008883a2fcb68297658f2e6cc63848fa4081b
[ "Apache-2.0" ]
4
2017-07-10T08:48:10.000Z
2021-05-21T14:47:42.000Z
train_and_test_cae.py
gangchill/nip-convnet
423008883a2fcb68297658f2e6cc63848fa4081b
[ "Apache-2.0" ]
22
2017-05-26T09:41:48.000Z
2019-09-11T22:47:27.000Z
train_and_test_cae.py
gangchill/nip-convnet
423008883a2fcb68297658f2e6cc63848fa4081b
[ "Apache-2.0" ]
3
2017-10-18T00:59:34.000Z
2019-04-14T17:54:33.000Z
# -------------------------------------------------------------------------------------- # train and test a convolutional autoencoder with one hidden layer for the MNIST dataset # -------------------------------------------------------------------------------------- import tensorflow as tf from tensorflow.python.fram...
33.635821
411
0.711439
3,039
22,536
4.997368
0.14643
0.02568
0.011852
0.014815
0.339698
0.287614
0.249819
0.225851
0.207283
0.192401
0
0.012698
0.143859
22,536
669
412
33.686099
0.774438
0.139066
0
0.246575
0
0
0.169429
0.029459
0.005479
0
0
0.001495
0
0
null
null
0
0.052055
null
null
0.134247
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3ee4c267b3f83b7b339025f8796dc6aeeb04fb29
1,026
py
Python
source-code-from-author-book/Listings-for-Second-Edition/listing_6_37.py
robrac/algorithms-exercises-with-python
5780171517eacc1c7133fdc32cf079623cd14cf9
[ "MIT" ]
null
null
null
source-code-from-author-book/Listings-for-Second-Edition/listing_6_37.py
robrac/algorithms-exercises-with-python
5780171517eacc1c7133fdc32cf079623cd14cf9
[ "MIT" ]
null
null
null
source-code-from-author-book/Listings-for-Second-Edition/listing_6_37.py
robrac/algorithms-exercises-with-python
5780171517eacc1c7133fdc32cf079623cd14cf9
[ "MIT" ]
null
null
null
def _put(self,key,val,currentNode): if key < currentNode.key: if currentNode.hasLeftChild(): self._put(key,val,currentNode.leftChild) else: currentNode.leftChild = TreeNode(key,val, parent=currentNode) self.updateBalance(current...
41.04
105
0.582846
96
1,026
6.197917
0.270833
0.05042
0.085714
0.043697
0.278992
0.198319
0.198319
0.198319
0
0
0
0.007205
0.323587
1,026
24
106
42.75
0.850144
0
0
0.173913
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3ee8e8c9ca3851914155b75334e45fc975bf40e4
396
py
Python
pigments_from_rrs/spectra.py
alisonpchase/pigments-from-rrs
33323e1e6ebe486ae15a8724d5539883284bcff5
[ "MIT" ]
null
null
null
pigments_from_rrs/spectra.py
alisonpchase/pigments-from-rrs
33323e1e6ebe486ae15a8724d5539883284bcff5
[ "MIT" ]
8
2021-07-22T18:19:08.000Z
2022-02-10T01:17:02.000Z
pigments_from_rrs/spectra.py
alisonpchase/pigments-from-rrs
33323e1e6ebe486ae15a8724d5539883284bcff5
[ "MIT" ]
1
2021-07-22T17:57:33.000Z
2021-07-22T17:57:33.000Z
from .to_pandas import seabass_to_pandas import pandas as pd G1 = 0.0949 # g1 and g2 are values from Gordon et al., 1988 G2 = 0.0794 LNOT = 400 # reference lambda wavelength (nm) def load_data(path): """Load data from file Parameters ---------- path: a valid file path to the dataset Returns ...
18
60
0.628788
59
396
4.135593
0.677966
0.065574
0.114754
0
0
0
0
0
0
0
0
0.072414
0.267677
396
21
61
18.857143
0.768966
0.494949
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3eeee8f2031c34d6ec729e484835a445c6f4667f
1,032
py
Python
bag_transfer/test/test_clients.py
RockefellerArchiveCenter/aurora
a52eca717dc585a1c5034c8fd83a6fdc97fe4515
[ "MIT" ]
19
2018-05-09T21:00:24.000Z
2021-03-11T23:09:03.000Z
bag_transfer/test/test_clients.py
RockefellerArchiveCenter/aurora
a52eca717dc585a1c5034c8fd83a6fdc97fe4515
[ "MIT" ]
339
2017-10-12T16:05:22.000Z
2022-02-23T20:48:41.000Z
bag_transfer/test/test_clients.py
RockefellerArchiveCenter/aurora
a52eca717dc585a1c5034c8fd83a6fdc97fe4515
[ "MIT" ]
3
2019-11-05T16:30:07.000Z
2021-08-16T15:50:34.000Z
from unittest.mock import patch from bag_transfer.lib.clients import (ArchivesSpaceClient, ArchivesSpaceClientError) from django.test import TestCase class ClientTestCase(TestCase): @patch("requests.Session.get") @patch("requests.Session.post") def test_get_resource...
41.28
82
0.684109
116
1,032
5.844828
0.422414
0.178466
0.076696
0.106195
0.225664
0.225664
0.097345
0
0
0
0
0.019608
0.209302
1,032
24
83
43
0.811275
0.040698
0
0
0
0
0.111789
0.021341
0
0
0
0
0.105263
1
0.052632
false
0.052632
0.157895
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3ef3ad4c68ebe126e020b07cff462aaed8548472
941
py
Python
bluebottle/offices/migrations/0003_auto_20210414_1507.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/offices/migrations/0003_auto_20210414_1507.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/offices/migrations/0003_auto_20210414_1507.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
# Generated by Django 3.0.14 on 2021-04-14 13:07 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('offices', '0002_auto_20210203_1714'), ] operations = [ migrations.AlterModelOptions( name='off...
33.607143
161
0.632306
94
941
6.202128
0.521277
0.09434
0.087479
0.075472
0.123499
0.123499
0
0
0
0
0
0.044383
0.233794
941
27
162
34.851852
0.764216
0.048884
0
0.238095
1
0
0.278835
0.025756
0
0
0
0
0
1
0
false
0
0.095238
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3ef8d1f967fd03b2472131930853cdc4417db3d7
2,005
py
Python
utils/conversion_utilities.py
spoofer-ix/spoofer-ix
31471c827d9ce400ac03020cfa14f967804f083c
[ "MIT" ]
2
2020-12-19T08:25:39.000Z
2021-03-10T05:29:17.000Z
utils/conversion_utilities.py
spoofer-ix/spoofer-ix
31471c827d9ce400ac03020cfa14f967804f083c
[ "MIT" ]
null
null
null
utils/conversion_utilities.py
spoofer-ix/spoofer-ix
31471c827d9ce400ac03020cfa14f967804f083c
[ "MIT" ]
1
2020-02-25T17:26:47.000Z
2020-02-25T17:26:47.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from netaddr import IPAddress, EUI, mac_unix_expanded def intVLen_to_abytes(num, lenght): l_bytes = [] for idx in range(lenght): l_bytes += [0] l_bytes[idx] = 0xFF & num num >>= 8 a_bytes = bytearray(l_bytes) return a_bytes def abyte...
21.793478
81
0.694264
305
2,005
4.236066
0.177049
0.076625
0.065015
0.055728
0.627709
0.512384
0.512384
0.396285
0.26161
0.131579
0
0.042687
0.205486
2,005
91
82
22.032967
0.768362
0.179551
0
0.204545
0
0
0
0
0
0
0.002538
0
0
1
0.318182
false
0
0.022727
0.068182
0.659091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3efc187505951a46ec93e89c01e54af291792df4
433
py
Python
offerTracking/machine/admin.py
SefaAkdeniz/Offer-Tracking-Project-with-Django
caa8f3d4ef271643320b6d650243d96648160c5e
[ "Apache-2.0" ]
null
null
null
offerTracking/machine/admin.py
SefaAkdeniz/Offer-Tracking-Project-with-Django
caa8f3d4ef271643320b6d650243d96648160c5e
[ "Apache-2.0" ]
null
null
null
offerTracking/machine/admin.py
SefaAkdeniz/Offer-Tracking-Project-with-Django
caa8f3d4ef271643320b6d650243d96648160c5e
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import Machine # Register your models here. class MachineAdmin(admin.ModelAdmin): list_display = ('machine_name', 'machine_type','machine_company') list_display_links = ('machine_name', 'machine_type','machine_company') list_filter = ('machine_type','machine_c...
30.928571
75
0.755196
53
433
5.867925
0.490566
0.106109
0.173633
0.241158
0.257235
0.257235
0.257235
0
0
0
0
0.005305
0.12933
433
14
76
30.928571
0.819629
0.060046
0
0
0
0
0.288177
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.888889
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3efebadc8a4231482ef184d1321777329c04e572
1,719
py
Python
claim_frags.py
mattharris/adfs-tools
81ca65bb5dab0a59e8148349b4be32336d4bb6f3
[ "Apache-2.0" ]
null
null
null
claim_frags.py
mattharris/adfs-tools
81ca65bb5dab0a59e8148349b4be32336d4bb6f3
[ "Apache-2.0" ]
null
null
null
claim_frags.py
mattharris/adfs-tools
81ca65bb5dab0a59e8148349b4be32336d4bb6f3
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python import sys from objects import Map from utils import find_map fd = open("Loader", "r") fd.seek(0,2) loader_len = fd.tell() fd.close() print "Loader is {0} bytes long.".format(loader_len) if len(sys.argv) != 2: print("Usage: claim_frags <device>") exit(1) fd = open(sys.argv[1], "r+b") map...
24.211268
101
0.691681
296
1,719
3.719595
0.22973
0.070845
0.063579
0.081744
0.316985
0.187103
0.061762
0.061762
0.061762
0
0
0.015032
0.187318
1,719
70
102
24.557143
0.773085
0.198953
0
0.051282
0
0
0.084795
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4100cec191d68a3cf336e65aa8a88988652a5625
4,128
py
Python
opt/genetic.py
piotrsobecki/opt
ac60997eb36388bdc903b9741f59cdcacbeff452
[ "MIT" ]
null
null
null
opt/genetic.py
piotrsobecki/opt
ac60997eb36388bdc903b9741f59cdcacbeff452
[ "MIT" ]
null
null
null
opt/genetic.py
piotrsobecki/opt
ac60997eb36388bdc903b9741f59cdcacbeff452
[ "MIT" ]
null
null
null
import csv import json import logging import pandas as pd from deap import base, tools, algorithms from opt.base import Configuration, Optimizer, Results class LogHelper(): def __init__(self): super().__init__() self.logger = logging.getLogger('optimizer') def log(self, context, generation...
28.666667
114
0.625969
462
4,128
5.458874
0.244589
0.047581
0.035686
0.051546
0.14433
0.072958
0.072958
0
0
0
0
0.006225
0.260659
4,128
143
115
28.867133
0.820118
0.01187
0
0.101852
0
0
0.042433
0
0
0
0
0
0
1
0.25
false
0.037037
0.055556
0.064815
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
41043e37f064304d6d2f34593336d0672fee0ad1
5,025
py
Python
api/drinks/migrations/0012_auto_20190319_1717.py
gthole/drink-stash
873393fddeaa8f58a8b70d082fbff60175901f97
[ "MIT" ]
7
2019-03-11T22:43:38.000Z
2022-02-21T13:18:39.000Z
api/drinks/migrations/0012_auto_20190319_1717.py
gthole/drink-stash
873393fddeaa8f58a8b70d082fbff60175901f97
[ "MIT" ]
62
2018-10-13T17:39:07.000Z
2022-02-26T06:21:41.000Z
api/drinks/migrations/0012_auto_20190319_1717.py
gthole/drink-stash
873393fddeaa8f58a8b70d082fbff60175901f97
[ "MIT" ]
1
2020-10-31T16:10:59.000Z
2020-10-31T16:10:59.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-03-19 17:17 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone def favorites_to_lists(apps, schema_editor): """ We're going ...
35.892857
133
0.581891
482
5,025
5.93361
0.263485
0.034615
0.046504
0.058741
0.452448
0.436364
0.341958
0.303147
0.28951
0.254545
0
0.008121
0.289353
5,025
139
134
36.151079
0.792775
0.027264
0
0.508065
1
0
0.116609
0.016629
0
0
0
0
0
1
0.008065
false
0
0.040323
0
0.072581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
410a013606d72b19f90e88703bebd90102ec13a7
1,704
py
Python
events/models.py
MikaelSantilio/aprepi-django
5e2b5ecffb287eab929c0759ea35ab073cc19d96
[ "MIT" ]
null
null
null
events/models.py
MikaelSantilio/aprepi-django
5e2b5ecffb287eab929c0759ea35ab073cc19d96
[ "MIT" ]
9
2021-01-13T22:06:29.000Z
2021-06-16T10:33:48.000Z
events/models.py
MikaelSantilio/aprepi-django
5e2b5ecffb287eab929c0759ea35ab073cc19d96
[ "MIT" ]
1
2021-02-05T18:12:15.000Z
2021-02-05T18:12:15.000Z
from django.db import models from users.models import Base, Voluntary from donations.models import Donation from django.core.validators import ValidationError class Event(Base): event_name = models.CharField('Nome do Evento', max_length=150) start_date = models.DateField() end_date = models.DateField(null...
36.255319
115
0.721244
231
1,704
5.138528
0.320346
0.040438
0.043808
0.057287
0.410278
0.395956
0.342039
0.342039
0.342039
0.342039
0
0.011847
0.157864
1,704
46
116
37.043478
0.815331
0
0
0.1875
0
0
0.160798
0.05223
0
0
0
0
0
1
0.15625
false
0
0.125
0.125
0.9375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
410eb8146fc9d1b1e68e36f71dd9960ecf9aca37
781
py
Python
solutions/106_construct_binary_tree_from_inorder_and_postorder_traversal.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
solutions/106_construct_binary_tree_from_inorder_and_postorder_traversal.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
solutions/106_construct_binary_tree_from_inorder_and_postorder_traversal.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
class Solution: def __init__(self): self.inorder_p = {} self.postorder_idx = None def buildTree(self, inorder: List[int], postorder: List[int]) -> TreeNode: self.postorder_idx = len(postorder) - 1 for i, v in enumerate(inorder): self.inorder_p[v] = i ...
35.5
78
0.609475
96
781
4.791667
0.3125
0.156522
0.173913
0.163043
0
0
0
0
0
0
0
0.007105
0.279129
781
21
79
37.190476
0.809947
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.388889
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4110f7676e346f91534b5fc9cbcd5e51ef706409
1,323
py
Python
python/sparsemap/layers_pt/tests/test_tree_layer.py
mikejqzhang/sparsemap
96c1bec8ea7349d385bcda0f41eea88a8e41879f
[ "MIT" ]
101
2018-06-01T17:53:36.000Z
2022-02-15T05:59:56.000Z
python/sparsemap/layers_pt/tests/test_tree_layer.py
mikejqzhang/sparsemap
96c1bec8ea7349d385bcda0f41eea88a8e41879f
[ "MIT" ]
2
2019-05-05T15:50:13.000Z
2021-02-22T10:32:33.000Z
python/sparsemap/layers_pt/tests/test_tree_layer.py
mikejqzhang/sparsemap
96c1bec8ea7349d385bcda0f41eea88a8e41879f
[ "MIT" ]
11
2018-06-19T23:52:02.000Z
2019-01-16T01:07:21.000Z
from ..tree_layer import TreeSparseMarginalsFast import torch from torch.autograd import gradcheck, Variable def test_fasttree_sparse_decode(): torch.manual_seed(42) n_nodes = 5 tsm = TreeSparseMarginalsFast(n_nodes, max_iter=1000) for _ in range(20): W = torch.randn(n_nodes, n_nodes + 1).vi...
24.962264
57
0.595616
200
1,323
3.745
0.33
0.136182
0.056075
0.170895
0.299065
0.273698
0.273698
0.213618
0.213618
0.213618
0
0.044211
0.281935
1,323
52
58
25.442308
0.744211
0.027967
0
0.205128
0
0
0.007788
0
0
0
0
0
0.076923
1
0.076923
false
0
0.076923
0
0.153846
0.025641
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1