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
b6a04a0f526b072cb08a7b68cb313fe983569b9f
185
py
Python
Vamei/function/function2.py
YangPhy/learnPython
5507fa1a0d2878fc663d62509af8ff959955f822
[ "MIT" ]
5
2020-05-18T06:54:52.000Z
2021-05-29T23:17:41.000Z
Vamei/function/function2.py
YangPhy/learnPython
5507fa1a0d2878fc663d62509af8ff959955f822
[ "MIT" ]
null
null
null
Vamei/function/function2.py
YangPhy/learnPython
5507fa1a0d2878fc663d62509af8ff959955f822
[ "MIT" ]
1
2020-05-17T22:47:49.000Z
2020-05-17T22:47:49.000Z
a=1 def change_integer(a): a = a+1 return a print (change_integer(a)) print (a) b=[1,2,3] def change_list(b): b[0]=b[0]+1 return b print (change_list(b)) print (b)
10.277778
25
0.594595
38
185
2.789474
0.315789
0.037736
0.264151
0
0
0
0
0
0
0
0
0.056338
0.232432
185
17
26
10.882353
0.690141
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.333333
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
b6a4c2fc1d4f8c281ad941ff066addcc5b88b1da
1,525
py
Python
IT77A _assistant.py
JasinAlAmin/Owl-Chatbot
c016f8037c7c4c2386429d07ddd6054136caad54
[ "Unlicense" ]
null
null
null
IT77A _assistant.py
JasinAlAmin/Owl-Chatbot
c016f8037c7c4c2386429d07ddd6054136caad54
[ "Unlicense" ]
null
null
null
IT77A _assistant.py
JasinAlAmin/Owl-Chatbot
c016f8037c7c4c2386429d07ddd6054136caad54
[ "Unlicense" ]
null
null
null
import speech_recognition as sr import pyttsx3 import pywhatkit import datatime import wikipedia import pyjokes from googlesearch import search listener = sr.Recognizer() engine = pyttsx3.init() voices = engine.getProperty('voices') engine.setPropert('voice',voices[1].id) def talk(text) engine.say(text) engine...
24.206349
51
0.655738
197
1,525
5.040609
0.451777
0.063444
0.039275
0
0
0
0
0
0
0
0
0.004209
0.220984
1,525
62
52
24.596774
0.83165
0
0
0.036364
0
0
0.134426
0
0
0
0
0
0
0
null
null
0.018182
0.127273
null
null
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
1
0
0
0
0
0
0
0
0
1
b6a829207d8c15d0acfe6594c7b505a0ec551a5f
7,470
py
Python
View/old/MainWindow.py
logisticAKB/course-paper1
8455d5148e0871912791516126819b0d0b51c7c1
[ "MIT" ]
1
2021-03-13T17:05:02.000Z
2021-03-13T17:05:02.000Z
View/old/MainWindow.py
logisticAKB/LandmarkRecognition
8455d5148e0871912791516126819b0d0b51c7c1
[ "MIT" ]
null
null
null
View/old/MainWindow.py
logisticAKB/LandmarkRecognition
8455d5148e0871912791516126819b0d0b51c7c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'MainWindow.ui' # # Created by: PyQt5 UI code generator 5.13.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): Mai...
47.278481
108
0.693039
720
7,470
7.143056
0.231944
0.073887
0.075831
0.051332
0.215633
0.137468
0.075053
0.040443
0
0
0
0.013871
0.189291
7,470
157
109
47.579618
0.83537
0.024632
0
0.070423
1
0
0.070614
0
0
0
0
0
0
1
0.014085
false
0
0.014085
0
0.035211
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
b6b310ddd7552060444487d3b6bd14778c644bee
2,012
py
Python
google_gas_station.py
loghmanb/daily-coding-problem
97c165fc00422566f463cd862374de66135bc3e3
[ "MIT" ]
null
null
null
google_gas_station.py
loghmanb/daily-coding-problem
97c165fc00422566f463cd862374de66135bc3e3
[ "MIT" ]
null
null
null
google_gas_station.py
loghmanb/daily-coding-problem
97c165fc00422566f463cd862374de66135bc3e3
[ "MIT" ]
null
null
null
''' Gas Station Asked in: Bloomberg, Google, DE Shaw, Amazon, Flipkart Given two integer arrays A and B of size N. There are N gas stations along a circular route, where the amount of gas at station i is A[i]. You have a car with an unlimited gas tank and it costs B[i] of gas to travel from station i to its next stat...
32.983607
376
0.66501
374
2,012
3.564171
0.320856
0.026257
0.024756
0.036009
0.275319
0.247562
0.172543
0.135034
0.135034
0.135034
0
0.031544
0.259443
2,012
61
377
32.983607
0.861074
0.807157
0
0.117647
0
0
0.021108
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b6b4869088455d04e487300c06f2189b4e0eab83
2,020
py
Python
api/tests/integration/tests/todo/load_utf8.py
epam/Indigo
cb6b0bb5568f414f387e1997ad64c7eedd92c04e
[ "Apache-2.0" ]
204
2015-11-06T21:34:34.000Z
2022-03-30T16:17:01.000Z
api/tests/integration/tests/todo/load_utf8.py
mongrzzzzzfr/Indigo
07cb744a90ff17828f8c1185bcc2e78cb4e882b3
[ "Apache-2.0" ]
509
2015-11-05T13:54:43.000Z
2022-03-30T22:15:30.000Z
api/tests/integration/tests/todo/load_utf8.py
mongrzzzzzfr/Indigo
07cb744a90ff17828f8c1185bcc2e78cb4e882b3
[ "Apache-2.0" ]
89
2015-11-17T08:22:54.000Z
2022-03-17T04:26:28.000Z
# coding=utf-8 import sys sys.path.append('../../common') from env_indigo import * indigo = Indigo() indigo.setOption("molfile-saving-skip-date", "1") print("****** Load molfile with UTF-8 characters in Data S-group ********") m = indigo.loadMoleculeFromFile(joinPathPy("molecules/sgroups_utf8.mol", __file__)) indigo....
36.071429
102
0.631683
272
2,020
4.672794
0.3125
0.047207
0.078678
0.1369
0.426436
0.36192
0.343037
0.343037
0.239969
0.196696
0.00297
0.024434
0.169307
2,020
55
103
36.727273
0.72944
0.531683
0
0.32
0
0
0.180932
0.054171
0
0
0
0.018182
0
1
0
false
0
0.16
0
0.16
0.4
0
0
0
null
0
0
0
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
fcaad3bf3e2640d58347e127fd2a0d0a345cbdb7
1,477
py
Python
app/dashapp3/layout.py
credwood/bitplayers
4ca6b6c6a21bb21d7cd963c64028415559c3dcc4
[ "MIT" ]
1
2020-06-26T21:49:14.000Z
2020-06-26T21:49:14.000Z
app/dashapp3/layout.py
credwood/bitplayers
4ca6b6c6a21bb21d7cd963c64028415559c3dcc4
[ "MIT" ]
2
2020-03-31T11:11:04.000Z
2021-12-13T20:38:48.000Z
app/dashapp3/layout.py
credwood/bitplayers
4ca6b6c6a21bb21d7cd963c64028415559c3dcc4
[ "MIT" ]
null
null
null
import dash_core_components as dcc import dash_html_components as html import dash_table import plotly import plotly.graph_objs as go layout = html.Div([ html.H2('Top Locations of Search Terms'), html.P('Term searches may take several seconds. Please be patient.''), html.P('Twitter users are not required t...
29.54
125
0.600542
199
1,477
4.371859
0.572864
0.041379
0.045977
0.041379
0.034483
0
0
0
0
0
0
0.020591
0.243737
1,477
49
126
30.142857
0.758281
0.012187
0
0.153846
0
0
0.386131
0.019708
0
0
0
0
0
0
null
null
0
0.128205
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
fcab580f13057192e08af639baf51b83a9fa44ae
1,375
py
Python
lintcode/Medium/052_Next_Permutation.py
Rhadow/leetcode
43209626720321113dbfbac67b3841e6efb4fab3
[ "MIT" ]
3
2017-04-03T12:18:24.000Z
2018-06-25T08:31:04.000Z
lintcode/Medium/052_Next_Permutation.py
Rhadow/leetcode
43209626720321113dbfbac67b3841e6efb4fab3
[ "MIT" ]
null
null
null
lintcode/Medium/052_Next_Permutation.py
Rhadow/leetcode
43209626720321113dbfbac67b3841e6efb4fab3
[ "MIT" ]
null
null
null
class Solution: # @param num : a list of integer # @return : a list of integer def nextPermutation(self, num): # write your code here # Version 1 bp = -1 for i in range(len(num) - 1): if (num[i] < num[i + 1]): bp = i if (bp == -1): ...
30.555556
90
0.452364
170
1,375
3.541176
0.252941
0.182724
0.139535
0.044851
0.129568
0.129568
0
0
0
0
0
0.019036
0.426909
1,375
44
91
31.25
0.744924
0.44
0
0
0
0
0
0
0
0
0
0.022727
0
1
0.058824
false
0
0
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
fcb5031213b77f76c4941cf91243b5919e3974dd
406
py
Python
python_tutorials/sets.py
bionikspoon/HackerRank
d896009019811b926a4404df005fc7ea0184c505
[ "MIT" ]
null
null
null
python_tutorials/sets.py
bionikspoon/HackerRank
d896009019811b926a4404df005fc7ea0184c505
[ "MIT" ]
null
null
null
python_tutorials/sets.py
bionikspoon/HackerRank
d896009019811b926a4404df005fc7ea0184c505
[ "MIT" ]
null
null
null
def get_stdin(): raw_input() list_1 = raw_input().split() raw_input() list_2 = raw_input().split() return list_1, list_2 if __name__ == '__main__': set_m, set_n = get_stdin() set_m = set(set_m) set_n = set(set_n) result = [] result.extend(set_m.difference(set_n)) result.ext...
25.375
57
0.633005
66
406
3.469697
0.393939
0.087336
0.091703
0.069869
0
0
0
0
0
0
0
0.0125
0.211823
406
16
57
25.375
0.703125
0
0
0.142857
0
0
0.02457
0
0
0
0
0
0
0
null
null
0
0
null
null
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fcb5c152d09a0048b13ae6ac86607f09ed887da3
661
py
Python
release/stubs.min/Revit/References.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Revit/References.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Revit/References.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
# encoding: utf-8 # module Revit.References calls itself References # from RevitNodes,Version=1.2.1.3083,Culture=neutral,PublicKeyToken=null # by generator 1.145 # no doc # no imports # no functions # classes class RayBounce(object): # no doc @staticmethod def ByOriginDirection(origin, dire...
22.033333
108
0.665658
73
661
5.972603
0.726027
0.022936
0
0
0
0
0
0
0
0
0
0.026104
0.246596
661
29
109
22.793103
0.849398
0.618759
0
0
0
0
0.086294
0
0
0
0
0
0
1
0.142857
false
0.142857
0
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fcb6327d7e4cb1ae556990fbbdbb879671eea3d2
5,479
py
Python
wukong/master/dbserver.py
fakewen/Monitoring-branch
cb5516d7cd4eaac3f88f32dc37fdff622f3a6655
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
wukong/master/dbserver.py
fakewen/Monitoring-branch
cb5516d7cd4eaac3f88f32dc37fdff622f3a6655
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
wukong/master/dbserver.py
fakewen/Monitoring-branch
cb5516d7cd4eaac3f88f32dc37fdff622f3a6655
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#!/usr/bin/python # vim: ts=2 sw=2 expandtab # author: Penn Su import dateutil.parser from gevent import monkey; monkey.patch_all() import gevent import serial import platform import os, sys, zipfile, re, time import tornado.ioloop, tornado.web import tornado.template as template import simplejson as json from jinja2...
27.258706
94
0.72203
732
5,479
5.269126
0.363388
0.037075
0.035779
0.029816
0.151932
0.136375
0.118745
0.094374
0.094374
0.094374
0
0.006806
0.168644
5,479
200
95
27.395
0.839956
0.05877
0
0.176471
0
0
0.111176
0.020019
0
0
0
0
0
0
null
null
0
0.20915
null
null
0.065359
0
0
0
null
0
0
0
0
0
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
fcbf89d16af8b8207c6990c30ee128a79effbc4f
963
py
Python
src/pretalx/api/permissions.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
418
2017-10-05T05:52:49.000Z
2022-03-24T09:50:06.000Z
src/pretalx/api/permissions.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
1,049
2017-09-16T09:34:55.000Z
2022-03-23T16:13:04.000Z
src/pretalx/api/permissions.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
155
2017-10-16T18:32:01.000Z
2022-03-15T12:48:33.000Z
from rest_framework.permissions import SAFE_METHODS, BasePermission class ApiPermission(BasePermission): def _has_permission(self, view, obj, request): event = getattr(request, "event", None) if not event: # Only true for root API view return True if request.method in SAFE_ME...
37.038462
83
0.678089
113
963
5.566372
0.327434
0.082671
0.050874
0.063593
0.193959
0.108108
0
0
0
0
0
0
0.244029
963
25
84
38.52
0.864011
0.028037
0
0.105263
0
0
0.063169
0.052463
0
0
0
0
0
1
0.157895
false
0
0.052632
0.105263
0.631579
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
fcc1a1236f02872e188e0996c48dca2fa8535f2a
471
py
Python
za/minstData/test.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
za/minstData/test.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
za/minstData/test.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
#%% import os os.environ['CUDA_VISIBLE_DEVICES'] = '-1' import cv2 import numpy as np import shutil import random from zipfile import ZipFile rootPath = '..\..\dataAndModel\data\mnist\\' for file in ["train", "test"]: path = rootPath + file print(os.listdir(path)) # %% image_paths = [rootPath + 'train\\' +...
17.444444
88
0.656051
63
471
4.809524
0.507937
0.132013
0.059406
0
0
0
0
0
0
0
0
0.012788
0.169851
471
26
89
18.115385
0.762148
0.042463
0
0
0
0
0.166667
0.06982
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fccd89561bcf68c7f9ec8902df57d34730dab901
1,021
py
Python
Python_Network_Automation/input_num_ports/input_port_num.py
yasser296/Python-Projects
eae3598e2d4faf08d9def92c8b417c2e7946c5f4
[ "MIT" ]
null
null
null
Python_Network_Automation/input_num_ports/input_port_num.py
yasser296/Python-Projects
eae3598e2d4faf08d9def92c8b417c2e7946c5f4
[ "MIT" ]
null
null
null
Python_Network_Automation/input_num_ports/input_port_num.py
yasser296/Python-Projects
eae3598e2d4faf08d9def92c8b417c2e7946c5f4
[ "MIT" ]
null
null
null
import getpass import telnetlib port_num = str(input("Enter the Number of Port and type: ")) HOST = "10.1.1.1" user = input("\nEnter The Username: ") password = getpass.getpass() tn = telnetlib.Telnet(HOST) tn.read_until(b"Username: ") tn.write(user.encode('ascii') + b"\n") if password: tn...
26.179487
79
0.641528
179
1,021
3.636872
0.363128
0.16129
0.159754
0.152074
0.3149
0.22427
0.202765
0.105991
0
0
0
0.029586
0.17238
1,021
38
80
26.868421
0.740828
0.152791
0
0.153846
0
0
0.351582
0
0
0
0
0
0
1
0
false
0.192308
0.076923
0
0.076923
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fcd03cda24a62b52462ec71d4e75a58d63dacc27
22,521
py
Python
transformers/script_tune_multi_pos.py
rizwan09/NLPDV
2fa05421319db106e7a2befe6c3720a9c136c292
[ "MIT" ]
2
2021-04-27T19:56:28.000Z
2021-08-19T05:34:37.000Z
transformers/script_tune_multi_pos.py
rizwan09/NLPDV
2fa05421319db106e7a2befe6c3720a9c136c292
[ "MIT" ]
5
2021-05-03T14:40:33.000Z
2021-05-03T14:40:34.000Z
transformers/script_tune_multi_pos.py
rizwan09/NLPDV
2fa05421319db106e7a2befe6c3720a9c136c292
[ "MIT" ]
null
null
null
import os, pdb # ______________________________________NLPDV____________________________________ # _______________________________________________________________________ import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from transformers import * import _pickle as pkl import shutil import numpy...
45.49697
178
0.519471
2,398
22,521
4.207673
0.106756
0.042815
0.041427
0.060258
0.769772
0.708424
0.649752
0.614172
0.575421
0.548365
0
0.027724
0.380179
22,521
494
179
45.589069
0.695107
0.058967
0
0.534759
0
0
0.165035
0.040148
0.010695
0
0
0
0
1
0.002674
false
0
0.02139
0
0.024064
0.096257
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
fcd5f55bb1f89d31cd3d25738bba5c23139e9aa7
1,978
py
Python
Logger/Logger.py
ArthMx/Logger
0fab4009abec00f33d9b93d0c6093e544e5168b8
[ "MIT" ]
null
null
null
Logger/Logger.py
ArthMx/Logger
0fab4009abec00f33d9b93d0c6093e544e5168b8
[ "MIT" ]
null
null
null
Logger/Logger.py
ArthMx/Logger
0fab4009abec00f33d9b93d0c6093e544e5168b8
[ "MIT" ]
null
null
null
import pandas as pd import time import sys class AverageMeter(object): """Sum values to compute the mean.""" def __init__(self): self.reset() def reset(self): self.count = 0 self.sum = 0 def update(self, val): self.count += 1 self.sum += val ...
29.969697
88
0.557634
258
1,978
4.143411
0.310078
0.072965
0.033676
0.028064
0.039289
0
0
0
0
0
0
0.007513
0.327098
1,978
65
89
30.430769
0.795642
0.169363
0
0.130435
0
0
0.00682
0
0
0
0
0
0
1
0.23913
false
0
0.065217
0.043478
0.413043
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
fcdad0563564da691ff6918e2c18e8483c8a38b4
69,814
py
Python
tests/test_nafigator.py
DeNederlandscheBank/nafigator
02f8bf4e0962430429cc2c4fdfc79d2d90a16363
[ "MIT" ]
1
2022-01-17T14:41:25.000Z
2022-01-17T14:41:25.000Z
tests/test_nafigator.py
DeNederlandscheBank/nafigator
02f8bf4e0962430429cc2c4fdfc79d2d90a16363
[ "MIT" ]
3
2021-11-03T14:53:25.000Z
2022-02-22T13:21:13.000Z
tests/test_nafigator.py
DeNederlandscheBank/nafigator
02f8bf4e0962430429cc2c4fdfc79d2d90a16363
[ "MIT" ]
1
2021-11-17T10:48:19.000Z
2021-11-17T10:48:19.000Z
#!/usr/bin/env python """Tests for `nafigator` package.""" import unittest unittest.TestLoader.sortTestMethodsUsing = None from deepdiff import DeepDiff from click.testing import CliRunner from nafigator import NafDocument, parse2naf from os.path import join class TestNafigator_pdf(unittest.TestCase): """Tes...
32.157531
286
0.283854
4,897
69,814
3.983051
0.093731
0.033837
0.018149
0.015381
0.723661
0.626967
0.616509
0.443117
0.390003
0.334376
0
0.060031
0.523505
69,814
2,170
287
32.17235
0.526303
0.0485
0
0.667314
0
0.000971
0.240661
0.014328
0
0
0
0
0.010685
1
0.009713
false
0.001943
0.002428
0
0.013113
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
fcdc072e1fbfda78b87aa6ba6f67523a4ef0eadf
617
py
Python
src/openpersonen/setup.py
maykinmedia/open-personen
ddcf083ccd4eb864c5305bcd8bc75c6c64108272
[ "RSA-MD" ]
2
2020-08-26T11:24:43.000Z
2021-07-28T09:46:40.000Z
src/openpersonen/setup.py
maykinmedia/open-personen
ddcf083ccd4eb864c5305bcd8bc75c6c64108272
[ "RSA-MD" ]
153
2020-08-26T10:45:35.000Z
2021-12-10T17:33:16.000Z
src/openpersonen/setup.py
maykinmedia/open-personen
ddcf083ccd4eb864c5305bcd8bc75c6c64108272
[ "RSA-MD" ]
null
null
null
""" Bootstrap the environment. Load the secrets from the .env file and store them in the environment, so they are available for Django settings initialization. .. warning:: do NOT import anything Django related here, as this file needs to be loaded before Django is initialized. """ import os from dotenv imp...
26.826087
87
0.752026
88
617
5.147727
0.602273
0.092715
0.05298
0
0
0
0
0
0
0
0
0
0.165316
617
22
88
28.045455
0.879612
0.562399
0
0
0
0
0.179389
0.164122
0
0
0
0
0
1
0.166667
false
0
0.333333
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
fcdd550e33ec3168390a3e5561a28942444966d7
1,065
py
Python
unisan/lemlit/migrations/0013_auto_20170901_0649.py
kurniantoska/ichsan_proj
f79cbcb896df902e129dcdb2affc89dc4f3844ef
[ "Apache-2.0" ]
null
null
null
unisan/lemlit/migrations/0013_auto_20170901_0649.py
kurniantoska/ichsan_proj
f79cbcb896df902e129dcdb2affc89dc4f3844ef
[ "Apache-2.0" ]
2
2022-02-12T05:49:41.000Z
2022-02-12T17:40:30.000Z
unisan/lemlit/migrations/0013_auto_20170901_0649.py
kurniantoska/ichsan_proj
f79cbcb896df902e129dcdb2affc89dc4f3844ef
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-31 22:49 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('lemlit', '0012_remove_suratizinpenelitianmahasiswa_dosen'), ] operations = [ ...
31.323529
106
0.631925
102
1,065
6.401961
0.568627
0.082695
0.105666
0.124043
0.430322
0.332312
0.24196
0.24196
0.24196
0
0
0.03939
0.261033
1,065
33
107
32.272727
0.790343
0.06385
0
0.461538
1
0
0.224346
0.161972
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
fce82f3e40f49996cececad59c6952decb597ac4
838
py
Python
app/thumbnail.py
Kbman99/NetSecShare
9bf4247d1c64c92dd8719747bc2e5b6147e34dc0
[ "MIT" ]
null
null
null
app/thumbnail.py
Kbman99/NetSecShare
9bf4247d1c64c92dd8719747bc2e5b6147e34dc0
[ "MIT" ]
null
null
null
app/thumbnail.py
Kbman99/NetSecShare
9bf4247d1c64c92dd8719747bc2e5b6147e34dc0
[ "MIT" ]
null
null
null
from PIL import Image import os import sys from app import app def generate_thumbnail(infile_name): try: size = 206.67, 256.29 target_dir = app.config['UPLOAD_PATH'] # found_file = '' # for name in os.listdir(target_dir): # if infile_name in name: # foun...
32.230769
99
0.616945
117
838
4.239316
0.444444
0.100806
0.078629
0.056452
0.092742
0.092742
0
0
0
0
0
0.019355
0.260143
838
25
100
33.52
0.780645
0.125298
0
0
1
0
0.059066
0
0
0
0
0
0
1
0.055556
false
0
0.222222
0
0.277778
0.222222
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
fcf6168c1892c3343e6804e126e224dff6e56701
349
py
Python
study/curso-em-video/exercises/037.py
jhonatanmaia/python
d53c64e6bab598c7e85813fd3f107c6f23c1fc46
[ "MIT" ]
null
null
null
study/curso-em-video/exercises/037.py
jhonatanmaia/python
d53c64e6bab598c7e85813fd3f107c6f23c1fc46
[ "MIT" ]
null
null
null
study/curso-em-video/exercises/037.py
jhonatanmaia/python
d53c64e6bab598c7e85813fd3f107c6f23c1fc46
[ "MIT" ]
null
null
null
x=int(input('Enter the number to convert: ')) print('Select the convertion') print(''' [ 1 ] Binary [ 1 ] Octal [ 3 ] HexaDeicmal ''') y=int(input('1 - Binary 2 - Octal 3 - Hexadecimal')) if y==1: bin(x)[2:] print('{}'.format(x)) elif y==2: oct(x) print('{}'.format(x)) elif y==3: hex(x) print(...
17.45
52
0.558739
55
349
3.545455
0.490909
0.082051
0.123077
0.164103
0.174359
0
0
0
0
0
0
0.036496
0.2149
349
20
53
17.45
0.675182
0
0
0.105263
0
0
0.405714
0
0
0
0
0
0
1
0
false
0
0
0
0
0.315789
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
fcffbb8be658a956fb865be73b94931d9639eccb
435
py
Python
modeling/src/load_data.py
alyildiz/covid_19_xray
4128cfa7146fd4f26ef5f53ee2f9231800c1abcb
[ "MIT" ]
null
null
null
modeling/src/load_data.py
alyildiz/covid_19_xray
4128cfa7146fd4f26ef5f53ee2f9231800c1abcb
[ "MIT" ]
null
null
null
modeling/src/load_data.py
alyildiz/covid_19_xray
4128cfa7146fd4f26ef5f53ee2f9231800c1abcb
[ "MIT" ]
null
null
null
from sklearn.model_selection import train_test_split from src.utils import load_dataset def get_data(): train_list_file, train_list_class = load_dataset(data_part="train") test_x, test_y = load_dataset(data_part="test") train_x, val_x, train_y, val_y = train_test_split( train_list_file, train_lis...
31.071429
83
0.76092
75
435
3.96
0.36
0.151515
0.141414
0.121212
0.255892
0.181818
0
0
0
0
0
0.00545
0.156322
435
13
84
33.461538
0.803815
0
0
0
0
0
0.02069
0
0
0
0
0
0
1
0.111111
true
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
1e0295cc93121468ac47831901ff4745a891d601
2,717
py
Python
day-3-if-condition.py
roshansinghbisht/hello-python
595418a47e66217ed8759c91cdb535e8fa88412b
[ "MIT" ]
null
null
null
day-3-if-condition.py
roshansinghbisht/hello-python
595418a47e66217ed8759c91cdb535e8fa88412b
[ "MIT" ]
null
null
null
day-3-if-condition.py
roshansinghbisht/hello-python
595418a47e66217ed8759c91cdb535e8fa88412b
[ "MIT" ]
null
null
null
# TASK: # Given an integer, n, perform the following conditional actions: # If n is odd, print Weird # If n is even and in the inclusive range of 2 to 5, print Not Weird # If n is even and in the inclusive range of 6 to 20, print Weird # If n is even and greater than 20, print Not Weird if __name__ == '__main__': ...
38.814286
81
0.694148
437
2,717
4.297483
0.386728
0.031949
0.01065
0.015974
0.103834
0.103834
0.08147
0.040469
0.040469
0.040469
0
0.006632
0.22304
2,717
69
82
39.376812
0.882994
0.868237
0
0.4
0
0
0.118421
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1e04859ff7d5d3c3aacb33208a98e3c4d2b062d2
23,314
py
Python
5.2_CUSTOM_LIBRARY/day_by_day_best_low_error_point_forecast_between_all_models.py
pedroMoya/M5_kaggle_accuracy_KAGGLE_M5_A_share
68126d57c44c18530782ccfe8a9df499889a47a3
[ "MIT" ]
2
2020-06-02T18:39:45.000Z
2021-01-01T19:17:15.000Z
5.2_CUSTOM_LIBRARY/day_by_day_best_low_error_point_forecast_between_all_models.py
pedroMoya/M5_kaggle_accuracy_KAGGLE_M5_A_share
68126d57c44c18530782ccfe8a9df499889a47a3
[ "MIT" ]
1
2021-01-01T19:17:08.000Z
2021-03-19T00:10:52.000Z
5.2_CUSTOM_LIBRARY/day_by_day_best_low_error_point_forecast_between_all_models.py
pedroMoya/M5_kaggle_accuracy_KAGGLE_M5_A_share
68126d57c44c18530782ccfe8a9df499889a47a3
[ "MIT" ]
1
2021-01-01T19:17:17.000Z
2021-01-01T19:17:17.000Z
# analyzing each point forecast and selecting the best, day by day, saving forecasts and making final forecast import os import sys import datetime import logging import logging.handlers as handlers import json import itertools as it import pandas as pd import numpy as np # open local settings with open('./settings.js...
75.449838
117
0.643304
3,023
23,314
4.401588
0.096593
0.09244
0.166842
0.205171
0.655193
0.595446
0.566737
0.503983
0.503607
0.445062
0
0.007917
0.295659
23,314
308
118
75.694805
0.802387
0.109677
0
0.020161
0
0
0.149817
0.042632
0
0
0
0
0
1
0.004032
false
0
0.044355
0
0.064516
0.120968
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
1e0f362a45c4f8460dcc3847929a4cd4b6c3c07d
1,394
py
Python
python/src/widget-play/simple_widgets.py
nagi49000/ipywidgets-play
ebb80366cc4bca2315e8c91d74fc6dbc5ccbc73f
[ "BSD-3-Clause" ]
null
null
null
python/src/widget-play/simple_widgets.py
nagi49000/ipywidgets-play
ebb80366cc4bca2315e8c91d74fc6dbc5ccbc73f
[ "BSD-3-Clause" ]
null
null
null
python/src/widget-play/simple_widgets.py
nagi49000/ipywidgets-play
ebb80366cc4bca2315e8c91d74fc6dbc5ccbc73f
[ "BSD-3-Clause" ]
null
null
null
from ipywidgets import interact import ipywidgets as widgets from IPython.display import display class SimpleWidgets(): def __init__(self): self._int_slider_widget = None self._clicked_next_widget = None self._button = None def do_stuff_on_click(self, b): if self._clicked_next...
30.304348
108
0.596844
164
1,394
4.75
0.341463
0.098845
0.134788
0.188703
0.133504
0.074454
0.074454
0
0
0
0
0.008412
0.317791
1,394
45
109
30.977778
0.810726
0
0
0.315789
0
0
0.029412
0
0
0
0
0
0
1
0.184211
false
0
0.078947
0
0.421053
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
1e17b72cf2b4124832cbe8928b8fedf3bcbc6efe
832
py
Python
article/views/product_views.py
rayenmhamdi/Kye_BackendAPI
a4fa8a345d2678b5bd3a9b74451e9274ca9abad2
[ "MIT" ]
null
null
null
article/views/product_views.py
rayenmhamdi/Kye_BackendAPI
a4fa8a345d2678b5bd3a9b74451e9274ca9abad2
[ "MIT" ]
null
null
null
article/views/product_views.py
rayenmhamdi/Kye_BackendAPI
a4fa8a345d2678b5bd3a9b74451e9274ca9abad2
[ "MIT" ]
null
null
null
# Create your views here. from rest_framework import generics from rest_framework.permissions import IsAuthenticated from article.models import Product from article.serializers import ProductSerializer class ProductListCreateView(generics.ListCreateAPIView): """Create Product""" permission_classes = [IsAu...
30.814815
81
0.768029
87
832
7.241379
0.586207
0.025397
0.053968
0.12381
0.193651
0.193651
0.193651
0
0
0
0
0
0.157452
832
26
82
32
0.898716
0.191106
0
0.285714
0
0
0.021341
0
0
0
0
0
0
1
0.071429
false
0
0.285714
0
0.928571
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
1e17f7e7bd55d4f6e429e9260e2a13c0d3c9260e
7,371
py
Python
django/pyrog/models.py
arkhn/fhir-river
a12179c34fad131d16dedc20c61297ed83d805e6
[ "Apache-2.0" ]
42
2020-03-25T16:47:30.000Z
2022-01-31T21:26:38.000Z
django/pyrog/models.py
arkhn/fhir-river
a12179c34fad131d16dedc20c61297ed83d805e6
[ "Apache-2.0" ]
367
2020-04-08T12:46:34.000Z
2022-02-16T01:15:32.000Z
django/pyrog/models.py
arkhn/fhir-river
a12179c34fad131d16dedc20c61297ed83d805e6
[ "Apache-2.0" ]
3
2020-05-14T08:24:46.000Z
2021-08-04T05:00:16.000Z
import uuid from django.conf import settings from django.db import models from cuid import cuid class Source(models.Model): id_ = models.TextField(name="id", primary_key=True, default=cuid, editable=False) name = models.TextField(unique=True) version = models.TextField(blank=True, default="") users ...
38.19171
109
0.723647
888
7,371
5.827703
0.154279
0.118841
0.056812
0.077101
0.630725
0.58686
0.438454
0.411014
0.392464
0.355556
0
0.000161
0.15561
7,371
192
110
38.390625
0.831298
0
0
0.295775
0
0
0.04572
0
0
0
0
0
0
1
0.007042
false
0.007042
0.028169
0.007042
0.809859
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
1e1cc73e30977ae43a9cf7e8a84711da0700a5cb
580
py
Python
viewmodels/shared/viewmodel.py
PASTAplus/web-x
7e27a354bbc3873f6e9ea9881e6d1f00b8d52a33
[ "Apache-2.0" ]
null
null
null
viewmodels/shared/viewmodel.py
PASTAplus/web-x
7e27a354bbc3873f6e9ea9881e6d1f00b8d52a33
[ "Apache-2.0" ]
8
2022-01-31T20:03:12.000Z
2022-03-28T02:42:07.000Z
viewmodels/shared/viewmodel.py
PASTAplus/web-x
7e27a354bbc3873f6e9ea9881e6d1f00b8d52a33
[ "Apache-2.0" ]
1
2022-03-18T14:36:42.000Z
2022-03-18T14:36:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ :Mod: viewmodel :Synopsis: :Author: servilla :Created: 5/25/21 """ from typing import Optional from starlette.requests import Request from services import cookie_auth class ViewModelBase: def __init__(self, request: Request): self.request: R...
17.575758
96
0.677586
76
580
4.921053
0.605263
0.088235
0.096257
0.101604
0
0
0
0
0
0
0
0.013129
0.212069
580
32
97
18.125
0.805252
0.2
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.272727
0.090909
0.636364
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
1e1f987a5674c8ebd8c0480fbd04b03094c446ea
6,545
py
Python
packages/w3af/w3af/plugins/audit/frontpage.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/plugins/audit/frontpage.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/plugins/audit/frontpage.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
""" frontpage.py Copyright 2006 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License. w3af is distributed in the hope that i...
36.160221
85
0.633308
838
6,545
4.78401
0.303103
0.026939
0.01796
0.022449
0.144176
0.117236
0.077825
0.077825
0.059366
0.037416
0
0.011643
0.291367
6,545
180
86
36.361111
0.852738
0.059587
0
0.181818
0
0
0.187117
0.034702
0
0
0
0.005556
0
0
null
null
0
0.102273
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
1e1fccb8698e424f72b1c5a0409aadcf08618ca1
428
py
Python
example/example/spiders/javdb.py
hwpchn/AroayCloudScraper
b919eda08d411914e687be81728d4cb79a098bff
[ "MIT" ]
11
2021-04-28T20:53:23.000Z
2022-03-08T02:04:49.000Z
example/example/spiders/javdb.py
hwpchn/AroayCloudScraper
b919eda08d411914e687be81728d4cb79a098bff
[ "MIT" ]
2
2021-05-13T02:31:39.000Z
2021-07-03T14:11:26.000Z
example/example/spiders/javdb.py
hwpchn/AroayCloudScraper
b919eda08d411914e687be81728d4cb79a098bff
[ "MIT" ]
6
2021-05-25T01:12:43.000Z
2022-01-03T17:54:18.000Z
import scrapy from aroay_cloudscraper import CloudScraperRequest class JavdbSpider(scrapy.Spider): name = 'javdb' allowed_domains = ['javdb.com'] headers = {"Accept-Language": "zh-cn;q=0.8,en-US;q=0.6"} def start_requests(self): yield CloudScraperRequest("https://javdb.com/v/BOeQO", callback=...
26.75
82
0.635514
51
428
5.27451
0.745098
0.05948
0
0
0
0
0
0
0
0
0
0.01227
0.238318
428
15
83
28.533333
0.812883
0
0
0
0
0
0.179907
0.053738
0
0
0
0
0
1
0.181818
false
0
0.181818
0
0.727273
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1e21588a29965f54305e6a3a852be97af34059ee
274
py
Python
0x05-python-exceptions/2-safe_print_list_integers.py
C-distin/alx-higher_level_programming
ee018135b24ac07d40f2309a4febf21b8a25aee4
[ "MIT" ]
null
null
null
0x05-python-exceptions/2-safe_print_list_integers.py
C-distin/alx-higher_level_programming
ee018135b24ac07d40f2309a4febf21b8a25aee4
[ "MIT" ]
null
null
null
0x05-python-exceptions/2-safe_print_list_integers.py
C-distin/alx-higher_level_programming
ee018135b24ac07d40f2309a4febf21b8a25aee4
[ "MIT" ]
null
null
null
#!/usr/bin/python3 def safe_print_list_integers(my_list=[], x=0): i = 0 for index in range(x): try: print("{:d}".format(my_list[index]), end="") i += 1 except (ValueError, TypeError): pass print() return i
22.833333
56
0.510949
36
274
3.75
0.722222
0.088889
0
0
0
0
0
0
0
0
0
0.021978
0.335766
274
11
57
24.909091
0.71978
0.062044
0
0
0
0
0.015625
0
0
0
0
0
0
1
0.1
false
0.1
0
0
0.2
0.3
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1e216a52fcace8e51079270b0a1a4780429a1a79
525
py
Python
devind_helpers/import_from_file/json_reader.py
devind-team/devind-django-helpers
5c64d46a12802bbe0b70e44aa9d19bf975511b6e
[ "MIT" ]
null
null
null
devind_helpers/import_from_file/json_reader.py
devind-team/devind-django-helpers
5c64d46a12802bbe0b70e44aa9d19bf975511b6e
[ "MIT" ]
4
2022-02-18T09:24:05.000Z
2022-03-31T16:46:29.000Z
devind_helpers/import_from_file/json_reader.py
devind-team/devind-django-helpers
5c64d46a12802bbe0b70e44aa9d19bf975511b6e
[ "MIT" ]
null
null
null
"""Модуль считывателя из формата json.""" import json from typing import Iterable from .base_reader import BaseReader class JsonReader(BaseReader): """Считыватель из формата json.""" def __init__(self, path: str): """Конструктор считывателя из формата json. :param path: путь к файлу ...
21.875
64
0.626667
61
525
5.245902
0.639344
0.084375
0.121875
0.15
0
0
0
0
0
0
0
0.002558
0.255238
525
23
65
22.826087
0.815857
0.287619
0
0
0
0
0.014881
0
0
0
0
0
0
1
0.2
false
0
0.3
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1e2a027f0a188f537a7a8f740aeb32a17712a695
9,762
py
Python
sim2real_docs/create_random_values.py
agchang-cgl/sim2real-docs
590dada30e28edda2d9d5a996d90af5989bce2fb
[ "Apache-2.0" ]
38
2021-12-13T17:19:17.000Z
2022-03-31T05:07:49.000Z
sim2real_docs/create_random_values.py
agchang-cgl/sim2real-docs
590dada30e28edda2d9d5a996d90af5989bce2fb
[ "Apache-2.0" ]
1
2022-01-17T03:17:23.000Z
2022-01-17T03:17:23.000Z
sim2real_docs/create_random_values.py
agchang-cgl/sim2real-docs
590dada30e28edda2d9d5a996d90af5989bce2fb
[ "Apache-2.0" ]
4
2022-01-13T15:10:33.000Z
2022-03-10T08:17:09.000Z
# Copyright FMR LLC <opensource@fidelity.com> # SPDX-License-Identifier: Apache-2.0 """ The script generates variations for the parameters using configuration file and stores them in respective named tuple """ import math import random from collections import namedtuple import numpy as np # configuration parameters s...
37.69112
117
0.721061
1,221
9,762
5.328419
0.112203
0.06763
0.057485
0.024746
0.332155
0.265447
0.221642
0.141562
0.096526
0.078389
0
0.001144
0.194223
9,762
258
118
37.837209
0.82596
0.094345
0
0.00939
1
0
0.121795
0.00973
0
0
0
0
0
1
0.032864
false
0
0.018779
0
0.084507
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
1e3b390506f4f42cc6868431a17b0ab8d24bbe9b
1,487
py
Python
006 - Simple Netcat Replacement/victim_client.py
Danziger/Pluralsight-Network-Penetration-Testing-Using-Python-and-Kali-Linux
040acfb55470f97a3a1c6e6d392cd0cdfc84eff8
[ "MIT" ]
5
2017-11-12T12:53:28.000Z
2020-11-02T06:16:45.000Z
006 - Simple Netcat Replacement/victim_client.py
cyborix/Pluralsight-Network-Penetration-Testing-Using-Python-and-Kali-Linux
5bcbc41889c6bd65aaad312b9b429dc189b8d0d1
[ "MIT" ]
null
null
null
006 - Simple Netcat Replacement/victim_client.py
cyborix/Pluralsight-Network-Penetration-Testing-Using-Python-and-Kali-Linux
5bcbc41889c6bd65aaad312b9b429dc189b8d0d1
[ "MIT" ]
6
2016-06-20T00:27:31.000Z
2019-02-14T14:28:45.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import subprocess import socket import argparse def usage(): print '\n\nExample:' print 'victim_client.py -a 192.168.0.33 -p 9999' exit(0) def execute_command(cmd): cmd = cmd.rstrip() # Remove leading whitespaces try: results = subprocess....
20.652778
103
0.612643
190
1,487
4.663158
0.484211
0.027088
0.054176
0.047404
0.056433
0.056433
0
0
0
0
0
0.021024
0.264291
1,487
71
104
20.943662
0.788848
0.046402
0
0.181818
0
0
0.133569
0
0
0
0
0
0
0
null
null
0.022727
0.068182
null
null
0.113636
0
0
0
null
0
0
0
0
0
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
1e4760c42d92eb8588629d5fa0d2b93b95e12c74
178
py
Python
etc/ChokudaiSpeedrun002/f.py
wotsushi/competitive-programming
17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86
[ "MIT" ]
3
2019-06-25T06:17:38.000Z
2019-07-13T15:18:51.000Z
etc/ChokudaiSpeedrun002/f.py
wotsushi/competitive-programming
17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86
[ "MIT" ]
null
null
null
etc/ChokudaiSpeedrun002/f.py
wotsushi/competitive-programming
17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86
[ "MIT" ]
null
null
null
N = int(input()) A, B = ( zip(*(map(int, input().split()) for _ in range(N))) if N else ((), ()) ) ans = len({(min(a, b), max(a, b)) for a, b in zip(A, B)}) print(ans)
17.8
65
0.477528
34
178
2.470588
0.529412
0.119048
0
0
0
0
0
0
0
0
0
0
0.235955
178
9
66
19.777778
0.617647
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
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
1e4852f9f102bcb68ed58fe7a5a38d41a0ac662d
439
py
Python
app/serializer.py
james-muriithi/django-api
26c9c96eafd35464366eaabf4811e0b96bb981f6
[ "MIT" ]
null
null
null
app/serializer.py
james-muriithi/django-api
26c9c96eafd35464366eaabf4811e0b96bb981f6
[ "MIT" ]
null
null
null
app/serializer.py
james-muriithi/django-api
26c9c96eafd35464366eaabf4811e0b96bb981f6
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import News, User class UserSerializer(serializers.ModelSerializer): class Meta: model = User exclude = ['password'] class NewsSerializer(serializers.ModelSerializer): user = UserSerializer(read_only=True) user_id = serializers.IntegerF...
24.388889
50
0.687927
45
439
6.488889
0.555556
0.178082
0.09589
0
0
0
0
0
0
0
0
0
0.225513
439
17
51
25.823529
0.858824
0
0
0.153846
0
0
0.061503
0
0
0
0
0
0
1
0
false
0.076923
0.153846
0
0.615385
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
1e4d08a3857894ad1e97df4d555dfd3f9fe6e16d
707
py
Python
circles/migrations/0014_auto_20200506_2128.py
CoronaCircles/coronacircles
1d86a659def276fcc0ebd7a723a48f729d6e21a1
[ "MIT" ]
1
2020-04-30T16:19:33.000Z
2020-04-30T16:19:33.000Z
circles/migrations/0014_auto_20200506_2128.py
CoronaCircles/coronacircles
1d86a659def276fcc0ebd7a723a48f729d6e21a1
[ "MIT" ]
43
2020-05-01T23:48:01.000Z
2022-03-12T00:35:32.000Z
circles/migrations/0014_auto_20200506_2128.py
CoronaCircles/coronacircles
1d86a659def276fcc0ebd7a723a48f729d6e21a1
[ "MIT" ]
1
2020-05-04T20:07:16.000Z
2020-05-04T20:07:16.000Z
# Generated by Django 3.0.6 on 2020-05-06 19:28 from django.conf import settings from django.db import migrations, models def create_through_relations(apps, schema_editor): Event = apps.get_model("circles", "Event") Participation = apps.get_model("circles", "Participation") for event in Event.objects.all...
30.73913
78
0.729844
86
707
5.825581
0.593023
0.071856
0.087824
0.075848
0
0
0
0
0
0
0
0.052542
0.165488
707
22
79
32.136364
0.79661
0.063649
0
0
1
0
0.093939
0.034848
0
0
0
0
0
1
0.071429
false
0
0.142857
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1e5388a338ee79c0983e77ee1bfcd18dd8023b2e
244
py
Python
codigo/Live171/exemplo_04.py
BrunoPontesLira/live-de-python
da6e463a89ed90d9efaa1c34088ab6460e949de1
[ "MIT" ]
572
2018-04-03T03:17:08.000Z
2022-03-31T19:05:32.000Z
codigo/Live171/exemplo_04.py
BrunoPontesLira/live-de-python
da6e463a89ed90d9efaa1c34088ab6460e949de1
[ "MIT" ]
176
2018-05-18T15:56:16.000Z
2022-03-28T20:39:07.000Z
codigo/Live171/exemplo_04.py
BrunoPontesLira/live-de-python
da6e463a89ed90d9efaa1c34088ab6460e949de1
[ "MIT" ]
140
2018-04-18T13:59:11.000Z
2022-03-29T00:43:49.000Z
d = {'a': 1, 'c': 3} match d: case {'a': chave_a, 'b': _}: print(f'chave A {chave_a=} + chave B') case {'a': _} | {'c': _}: print('chave A ou C') case {}: print('vazio') case _: print('Não sei')
20.333333
46
0.418033
35
244
2.742857
0.428571
0.25
0.145833
0
0
0
0
0
0
0
0
0.012579
0.348361
244
11
47
22.181818
0.591195
0
0
0
0
0
0.237705
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
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
1e53dd376aaf61514bd9d98d45793bfdafdb09eb
2,204
py
Python
vb2py/PythonCard/samples/multicolumnexample/multicolumnexample.rsrc.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/PythonCard/samples/multicolumnexample/multicolumnexample.rsrc.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/PythonCard/samples/multicolumnexample/multicolumnexample.rsrc.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
{ 'application':{ 'type':'Application', 'name':'MulticolumnExample', 'backgrounds': [ { 'type':'Background', 'name':'bgMulticolumnExample', 'title':'Multicolumn Example PythonCard Application', 'size':( 620, 500 ), 'menubar': { 'type':'MenuBar', 'menus': ...
19.504425
57
0.4451
193
2,204
5.082902
0.414508
0.055046
0.114169
0.106014
0.089704
0.055046
0
0
0
0
0
0.078483
0.306261
2,204
112
58
19.678571
0.563113
0.003176
0
0.206186
0
0
0.400638
0
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
1e55b79a5473e9aecdfba3270696b5d5cc02b816
629
py
Python
udp-client.py
fionahiklas/udp-broadcast-examples
c5a2ccee8cd567eed688dd5bb0838f6db937ffcc
[ "MIT" ]
null
null
null
udp-client.py
fionahiklas/udp-broadcast-examples
c5a2ccee8cd567eed688dd5bb0838f6db937ffcc
[ "MIT" ]
null
null
null
udp-client.py
fionahiklas/udp-broadcast-examples
c5a2ccee8cd567eed688dd5bb0838f6db937ffcc
[ "MIT" ]
null
null
null
import socket, traceback host = '255.255.255.255' # Bind to all interfaces port = 2081 print "Creating socker on port: ", port s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) #print "Setting REUSEADDR option" #s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) print "Setting ...
22.464286
79
0.685215
86
629
4.918605
0.5
0.113475
0.042553
0.108747
0.189125
0.189125
0.189125
0.189125
0
0
0
0.035644
0.197138
629
27
80
23.296296
0.80198
0.173291
0
0
0
0
0.245136
0
0
0
0
0
0
0
null
null
0
0.058824
null
null
0.352941
0
0
0
null
0
0
0
0
0
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
1e644cef7cba4c85e3f86b90cf0dc4c1d1385fb4
1,196
py
Python
boxplots.py
wrightaprilm/plaus
ace7e008fc76f83d75e2219a2cb9ed2ddf776775
[ "MIT" ]
null
null
null
boxplots.py
wrightaprilm/plaus
ace7e008fc76f83d75e2219a2cb9ed2ddf776775
[ "MIT" ]
null
null
null
boxplots.py
wrightaprilm/plaus
ace7e008fc76f83d75e2219a2cb9ed2ddf776775
[ "MIT" ]
null
null
null
import pandas as pd import os import re import dendropy from dendropy.utility.fileutils import find_files import matplotlib.pyplot as plt plt.style.use('ggplot') default = pd.read_csv('./d.csv') uniform = pd.read_csv('./1.csv') exp = pd.read_csv('./e.csv') fixed = pd.read_csv('./2.csv') uniform.columns = ['a','uni', ...
30.666667
86
0.658863
205
1,196
3.707317
0.24878
0.231579
0.031579
0.036842
0.265789
0.236842
0.173684
0.173684
0.139474
0.139474
0
0.015582
0.087793
1,196
38
87
31.473684
0.681027
0
0
0
0
0
0.109532
0
0
0
0
0
0
1
0
false
0
0.206897
0
0.206897
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
1e66c677ddf91468564650a9956d8af23cde2f1e
347
py
Python
back-end/src/handler/util/user_util_test.py
gfxcc/san11-platform-back-end
74f60d201e21396c5c8601ddc404077ebd97871f
[ "MIT" ]
1
2022-03-13T04:24:00.000Z
2022-03-13T04:24:00.000Z
back-end/src/handler/util/user_util_test.py
gfxcc/san11-platform-back-end
74f60d201e21396c5c8601ddc404077ebd97871f
[ "MIT" ]
null
null
null
back-end/src/handler/util/user_util_test.py
gfxcc/san11-platform-back-end
74f60d201e21396c5c8601ddc404077ebd97871f
[ "MIT" ]
null
null
null
import unittest import uuid from . import user_util class TestUtilFuncs(unittest.TestCase): def test_hash_and_verify_password(self): passwords = [str(uuid.uuid4()) for i in range(10)] for pw in passwords: self.assertTrue( user_util.verify_password(pw, user_util.hash_p...
23.133333
74
0.654179
44
347
4.954545
0.590909
0.110092
0
0
0
0
0
0
0
0
0
0.011719
0.262248
347
14
75
24.785714
0.839844
0
0
0
0
0
0
0
0
0
0
0
0.1
1
0.1
false
0.4
0.3
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
1
0
0
0
0
0
1
1e678c3dc5352fc822740f8558e00375177acaa0
1,284
py
Python
ex042.py
ArthurCorrea/python-exercises
0c2ac46b8c40dd9868b132e847cfa42e025095e3
[ "MIT" ]
null
null
null
ex042.py
ArthurCorrea/python-exercises
0c2ac46b8c40dd9868b132e847cfa42e025095e3
[ "MIT" ]
null
null
null
ex042.py
ArthurCorrea/python-exercises
0c2ac46b8c40dd9868b132e847cfa42e025095e3
[ "MIT" ]
null
null
null
# Refaça o desafio 035, acrescentando o recurso de mostrar que # tipo de triângulo será formado: # - Equilátero: todos os lados iguais; # - Isósceles: dois lados iguais; # - Escaleno: todos os lados diferentes. n1 = float(input('\033[34mMedida 1:\033[m ')) n2 = float(input('\033[31mMedida 2:\033[m ')) n3 = float(input(...
42.8
83
0.641745
210
1,284
3.92381
0.27619
0.067961
0.050971
0.043689
0.571602
0.474515
0.428398
0.348301
0.348301
0.268204
0
0.133133
0.221963
1,284
29
84
44.275862
0.691692
0.198598
0
0
0
0
0.492562
0
0
0
0
0.034483
0
1
0
false
0
0
0
0
0.384615
0
0
0
null
0
0
0
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
1e6f53f22427895238f581e8e9e288f9b5fd6b34
1,400
py
Python
make_standalone_html.py
peli-pro/coldcard_address_generator
a4c3b53145a8886d4803932504b5f0b493b5c89d
[ "MIT" ]
1
2019-11-20T09:23:52.000Z
2019-11-20T09:23:52.000Z
make_standalone_html.py
peli-pro/coldcard_address_generator
a4c3b53145a8886d4803932504b5f0b493b5c89d
[ "MIT" ]
null
null
null
make_standalone_html.py
peli-pro/coldcard_address_generator
a4c3b53145a8886d4803932504b5f0b493b5c89d
[ "MIT" ]
2
2019-11-20T09:23:55.000Z
2021-06-03T23:48:41.000Z
from pathlib import Path ''' This script creates a new html that has placed the javascript code inline to make a standalone html ''' src = Path.cwd() / 'coldcard_address_generator_html.html' dest = Path.cwd() / 'coldcard_address_generator_html_standalone.html' dest2 = Path.cwd() / 'index.html' # for github pages ...
25.925926
151
0.624286
192
1,400
4.395833
0.354167
0.049763
0.14218
0.165877
0.446682
0.398104
0.279621
0.279621
0.279621
0.06872
0
0.005545
0.227143
1,400
53
152
26.415094
0.774492
0.011429
0
0.133333
0
0
0.324706
0.223529
0
0
0
0
0
1
0.066667
false
0
0.033333
0
0.133333
0.033333
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
1e7134f2c2c9991f667c83bc9558dfc8470c2fc4
6,401
py
Python
movieClass.py
qedseung/Movie-Classifier
a20615f9c910d123f8772dbcc922eee16a9b6958
[ "MIT" ]
null
null
null
movieClass.py
qedseung/Movie-Classifier
a20615f9c910d123f8772dbcc922eee16a9b6958
[ "MIT" ]
null
null
null
movieClass.py
qedseung/Movie-Classifier
a20615f9c910d123f8772dbcc922eee16a9b6958
[ "MIT" ]
null
null
null
import sys, numpy from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.ensemble import RandomForestClassifier from sklearn.naive_bayes import MultinomialNB #0=drama,1=comedy,2=animated,3=action/adventure def random_forest_class(raw_test_set): x_train=[] y_train=[] count=0 vectorize...
57.151786
680
0.678332
951
6,401
4.484753
0.42061
0.021336
0.030481
0.030012
0.254631
0.233998
0.219461
0.219461
0.219461
0.219461
0
0.01582
0.249492
6,401
112
681
57.151786
0.871982
0.035151
0
0.382353
0
0.102941
0.608335
0
0
0
0
0
0
1
0.044118
false
0
0.058824
0
0.132353
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1e7349005521f955a834174f1d5dba20a6e96f33
5,335
py
Python
api/views/view_users.py
AlanZhl/NodUleS
868792d7af91b6b2d42cf065653c1ea1160922c1
[ "MIT" ]
null
null
null
api/views/view_users.py
AlanZhl/NodUleS
868792d7af91b6b2d42cf065653c1ea1160922c1
[ "MIT" ]
null
null
null
api/views/view_users.py
AlanZhl/NodUleS
868792d7af91b6b2d42cf065653c1ea1160922c1
[ "MIT" ]
null
null
null
from flask import Blueprint, jsonify, request, session from pymongo import DESCENDING from api.views import users from api import collection_users @users.route("/api/register", methods=["POST"]) def user_register(): if request.method == "POST": data = request.get_json() email = data['e...
42.34127
131
0.574133
614
5,335
4.830619
0.2443
0.056642
0.051247
0.033715
0.259609
0.19555
0.159811
0.139582
0.114633
0.084963
0
0.010627
0.29447
5,335
126
132
42.34127
0.777365
0.021181
0
0.238095
0
0
0.253289
0
0
0
0
0
0
1
0.047619
false
0.114286
0.038095
0
0.238095
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1e73c2add48c20fe5c43b5ce0c4067b41b3c86c2
2,131
py
Python
ansible-devel/test/units/utils/test_display.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/units/utils/test_display.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/units/utils/test_display.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # (c) 2020 Matt Martz <matt@sivel.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type from units.compat.mock import MagicMock import pytest from ansible.module_...
32.287879
92
0.704833
321
2,131
4.464174
0.317757
0.107467
0.184229
0.136078
0.695045
0.545708
0.441731
0.307048
0.307048
0.307048
0
0.03309
0.163304
2,131
65
93
32.784615
0.766125
0.06992
0
0.382979
0
0
0.097573
0
0
0
0
0
0.340426
1
0.085106
false
0
0.106383
0
0.191489
0.021277
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
1e744d2a9768775a762dc0670443f52bc8289280
11,797
py
Python
plugins/modules/oci_network_byoip_range_actions.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_network_byoip_range_actions.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_network_byoip_range_actions.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2017, 2020 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
36.076453
157
0.62838
1,341
11,797
5.316182
0.219239
0.057512
0.025249
0.04124
0.547903
0.495161
0.420676
0.403984
0.346332
0.323327
0
0.033038
0.281597
11,797
326
158
36.187117
0.808142
0.037382
0
0.386282
0
0.028881
0.613496
0.080728
0
0
0
0
0
1
0.032491
false
0.00361
0.025271
0.025271
0.090253
0.00361
0
0
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
1e7af734f787f539bb408cb7fe22f61fdf7e00a2
420
py
Python
Task/XML-XPath/Python/xml-xpath-3.py
LaudateCorpus1/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
5
2021-01-29T20:08:05.000Z
2022-03-22T06:16:05.000Z
Task/XML-XPath/Python/xml-xpath-3.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
null
null
null
Task/XML-XPath/Python/xml-xpath-3.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2021-04-13T04:19:31.000Z
2021-04-13T04:19:31.000Z
from lxml import etree xml = open('inventory.xml').read() doc = etree.fromstring(xml) doc = etree.parse('inventory.xml') # or load it directly # Return first item item1 = doc.xpath("//section[1]/item[1]") # Print each price for p in doc.xpath("//price"): print "{0:0.2f}".format(float(p.text)) # could raise ex...
26.25
113
0.683333
66
420
4.348485
0.666667
0.083624
0
0
0
0
0
0
0
0
0
0.016901
0.154762
420
15
114
28
0.791549
0.32381
0
0
0
0
0.241007
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1e81c4c89fc725598694857a973e6932f60c90ef
571
py
Python
profile/migrations/0003_globalalert.py
ritstudentgovernment/PawPrints
6f52d721d4c367a8524f49881e62a162a81469b4
[ "Apache-2.0" ]
15
2017-04-03T14:01:44.000Z
2022-03-18T06:38:56.000Z
profile/migrations/0003_globalalert.py
ritstudentgovernment/PawPrints
6f52d721d4c367a8524f49881e62a162a81469b4
[ "Apache-2.0" ]
87
2016-10-13T01:53:38.000Z
2022-02-11T03:39:55.000Z
profile/migrations/0003_globalalert.py
ritstudentgovernment/PawPrints
6f52d721d4c367a8524f49881e62a162a81469b4
[ "Apache-2.0" ]
8
2017-10-19T18:30:48.000Z
2021-04-03T02:26:01.000Z
# Generated by Django 2.1.3 on 2019-02-12 19:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('profile', '0002_auto_20180126_1900'), ] operations = [ migrations.CreateModel( name='GlobalAlert', fields=[ ...
25.954545
114
0.574431
56
571
5.75
0.785714
0
0
0
0
0
0
0
0
0
0
0.076923
0.294221
571
21
115
27.190476
0.722084
0.078809
0
0
1
0
0.110687
0.043893
0
0
0
0
0
1
0
false
0
0.066667
0
0.266667
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
1e89cbffc4a91ed54b3053c35f0260697741a47e
2,618
py
Python
git_diff_ssr2_osm_wrapper.py
obtitus/ssr2_to_osm
3674b3d78666e79306af237630782d6892986853
[ "WTFPL" ]
1
2018-04-02T13:04:43.000Z
2018-04-02T13:04:43.000Z
git_diff_ssr2_osm_wrapper.py
obtitus/ssr2_to_osm
3674b3d78666e79306af237630782d6892986853
[ "WTFPL" ]
null
null
null
git_diff_ssr2_osm_wrapper.py
obtitus/ssr2_to_osm
3674b3d78666e79306af237630782d6892986853
[ "WTFPL" ]
null
null
null
#/usr/bin/env python import sys import logging logger = logging.getLogger('utility_to_osm.ssr2.git_diff') import utility_to_osm.file_util as file_util from osmapis_stedsnr import OSMstedsnr if __name__ == '__main__': logging.basicConfig(level=logging.DEBUG) # diff is called by git with 7 parameters: ...
37.4
113
0.590145
395
2,618
3.716456
0.21519
0.065395
0.03406
0.038147
0.305177
0.153951
0.032698
0
0
0
0
0.005249
0.272345
2,618
69
114
37.942029
0.765354
0.055768
0
0
0
0.02
0.142683
0.01135
0
0
0
0.014493
0
1
0
false
0
0.08
0
0.08
0.24
0
0
0
null
0
0
0
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
1e8b170787a661b47b55daff06b3f3213a1a7b64
389
py
Python
test-data/mkpasswd.py
colorshifter/lsd-members
2b8516eb5ef890e7f0dba456246e0448f2150c2c
[ "MIT" ]
1
2016-08-22T20:43:06.000Z
2016-08-22T20:43:06.000Z
test-data/mkpasswd.py
colorshifter/lsd-members
2b8516eb5ef890e7f0dba456246e0448f2150c2c
[ "MIT" ]
2
2017-12-07T08:55:18.000Z
2018-09-10T12:02:48.000Z
test-data/mkpasswd.py
colorshifter/lsd-members
2b8516eb5ef890e7f0dba456246e0448f2150c2c
[ "MIT" ]
2
2016-11-21T11:06:20.000Z
2018-06-14T07:28:31.000Z
#!/usr/bin/env python3 import uuid from passlib.hash import pbkdf2_sha512 password = input('Enter password: ') password_parts = pbkdf2_sha512.encrypt(password, salt_size=32).split('$') password = password_parts[4] salt = password_parts[3] def convert_b64(input): return input.replace('.', '+') + '=' print('Passw...
20.473684
73
0.717224
51
389
5.294118
0.54902
0.144444
0.155556
0
0
0
0
0
0
0
0
0.055556
0.120823
389
18
74
21.611111
0.733918
0.053985
0
0
0
0
0.098361
0
0
0
0
0
0
1
0.1
false
0.6
0.2
0.1
0.4
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
1e900a65b6846f2a1190992044167004788fc442
6,531
py
Python
netlist.py
phdbreak/netlist_parser.py
579a10592442ed27179ea7c56d33b6cbd72230d0
[ "Apache-2.0" ]
11
2019-05-18T08:22:29.000Z
2022-01-23T01:05:39.000Z
netlist.py
phdbreak/netlist_parser.py
579a10592442ed27179ea7c56d33b6cbd72230d0
[ "Apache-2.0" ]
null
null
null
netlist.py
phdbreak/netlist_parser.py
579a10592442ed27179ea7c56d33b6cbd72230d0
[ "Apache-2.0" ]
3
2017-10-26T08:03:34.000Z
2018-04-09T21:30:04.000Z
# Parent tree # design # |---> module # |-----> port/wire # |-----> instance # |-----> pin class design_t: def __init__(self): self.modules = dict() def add_module(self, module_name): if (module_name in self.modules.keys()): print 'Error: mo...
34.739362
166
0.562089
817
6,531
4.264382
0.107711
0.052813
0.050517
0.025832
0.376579
0.344432
0.287887
0.244834
0.211538
0.190299
0
0.002418
0.303476
6,531
187
167
34.925134
0.763465
0.262134
0
0.205607
0
0
0.122559
0
0
0
0
0
0.018692
0
null
null
0
0
null
null
0.056075
0
0
0
null
0
0
0
0
0
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
1e93ac91aee06f027f96435be13dad3be14c5158
3,128
py
Python
tests/lib/bes/cli/test_cli.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
tests/lib/bes/cli/test_cli.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
tests/lib/bes/cli/test_cli.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf-8; mode:python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- from collections import namedtuple import os.path as path from bes.testing.program_unit_test import program_unit_test from bes.fs.file_util import file_util from bes.system.host import host class test_cli...
28.962963
101
0.693734
438
3,128
4.63242
0.23516
0.0483
0.0414
0.031543
0.35239
0.35239
0.322819
0.289798
0.210941
0.130113
0
0.002671
0.162084
3,128
107
102
29.233645
0.771461
0.108376
0
0.260274
0
0.027397
0.605538
0.102481
0
0
0
0
0.054795
1
0.013699
false
0
0.136986
0
0.246575
0.027397
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1e976a098cfe8028b00f3a845ba60be8b5f9da1e
5,279
py
Python
src/components/auth-server/lib/presentation/restapi.py
ars1004/practica-dms-2019-2020
c6ff5ca05faf7e785f85b12f4fa66015f5a7a507
[ "MIT" ]
null
null
null
src/components/auth-server/lib/presentation/restapi.py
ars1004/practica-dms-2019-2020
c6ff5ca05faf7e785f85b12f4fa66015f5a7a507
[ "MIT" ]
null
null
null
src/components/auth-server/lib/presentation/restapi.py
ars1004/practica-dms-2019-2020
c6ff5ca05faf7e785f85b12f4fa66015f5a7a507
[ "MIT" ]
9
2019-10-08T19:07:45.000Z
2021-11-02T19:19:53.000Z
from flask import Flask, escape, request, abort from lib.data.db.schema.manager import Manager as SchemaManager from lib.data.db.schema.recordsets.users import Users from lib.data.db.schema.recordsets.userscores import UserScores from lib.data.db.schema.recordsets.usersessions import UserSessions import json class R...
35.42953
108
0.610343
612
5,279
5.104575
0.205882
0.042254
0.03137
0.03265
0.435659
0.362356
0.323303
0.300896
0.300896
0.300896
0
0.016287
0.302141
5,279
148
109
35.668919
0.831705
0.336048
0
0.409091
0
0
0.058037
0
0
0
0
0
0
1
0.106061
false
0.060606
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1e982d7567ee821b8267f9f3943560d8280e85a8
1,604
py
Python
Sprint Challenge/acme_report.py
dylan0stewart/DS-Unit-3-Sprint-1-Software-Engineering
d40ad035b1d10df0068cf5c5106a586c569804e2
[ "MIT" ]
null
null
null
Sprint Challenge/acme_report.py
dylan0stewart/DS-Unit-3-Sprint-1-Software-Engineering
d40ad035b1d10df0068cf5c5106a586c569804e2
[ "MIT" ]
null
null
null
Sprint Challenge/acme_report.py
dylan0stewart/DS-Unit-3-Sprint-1-Software-Engineering
d40ad035b1d10df0068cf5c5106a586c569804e2
[ "MIT" ]
null
null
null
""" Class Report: Part 4 of the Sprint Challenge - Generate random Product list, and get an Inventory Report on that list """ from random import randint, sample, uniform from acme import Product ADJECTIVES = ['Awesome', 'Shiny', 'Impressive', 'Portable', 'Improved'] NOUNS = ['Anvil', 'Catapult', 'Disguise', 'Mousetra...
29.703704
74
0.632793
203
1,604
4.926108
0.428571
0.075
0.039
0.048
0
0
0
0
0
0
0
0.017872
0.232544
1,604
53
75
30.264151
0.794476
0.1702
0
0
1
0
0.258806
0
0
0
0
0
0
1
0.060606
false
0
0.060606
0
0.181818
0.151515
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
1e9c40d754716340687f20a8c4aab7bea1a13ad0
452
py
Python
wsgi.py
nadeengamage/flaskee
7d6b438271a6fe2edfaf7850fbbc89ee2bd3b933
[ "Apache-2.0" ]
null
null
null
wsgi.py
nadeengamage/flaskee
7d6b438271a6fe2edfaf7850fbbc89ee2bd3b933
[ "Apache-2.0" ]
null
null
null
wsgi.py
nadeengamage/flaskee
7d6b438271a6fe2edfaf7850fbbc89ee2bd3b933
[ "Apache-2.0" ]
4
2020-04-18T14:40:02.000Z
2021-03-14T06:28:12.000Z
""" The Flaskee is an Open Source project for Microservices. Develop By Nadeen Gamage | https://nadeengamage.com | nadeengamage@gmail.com """ from werkzeug.serving import run_simple from werkzeug.middleware.dispatcher import DispatcherMiddleware from flaskee import api app = api.create_app() application = Dispatche...
26.588235
82
0.774336
59
452
5.711864
0.661017
0.017804
0.017804
0
0
0
0
0
0
0
0
0.020356
0.130531
452
17
83
26.588235
0.83715
0.294248
0
0
0
0
0.048077
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
1eabc10f0b20e90bebc6f5ec7cf6576de6e4fba6
1,789
py
Python
SnakeGame/main.py
kmhmubin/Automate-the-boring-stuff-with-python3
cd8fa6e6e81a591e20157b94404abb662f50bf21
[ "MIT" ]
5
2021-01-10T13:17:01.000Z
2022-01-25T19:21:25.000Z
SnakeGame/main.py
kmhmubin/Automate-the-boring-stuff-with-python3
cd8fa6e6e81a591e20157b94404abb662f50bf21
[ "MIT" ]
null
null
null
SnakeGame/main.py
kmhmubin/Automate-the-boring-stuff-with-python3
cd8fa6e6e81a591e20157b94404abb662f50bf21
[ "MIT" ]
4
2021-02-01T17:12:41.000Z
2022-01-12T15:02:23.000Z
"""TODO: Snake Game 1. create a screen with 600x600 size 2. create a snake body 3. move the snake 4. create snake food 5. detect collision with food 6. create a scoreboard 7. detect collision with wall 8. detect collision with tail """ from turtle import Screen from snake import Snake from food import Food from scoreb...
22.3625
114
0.699273
261
1,789
4.758621
0.356322
0.072464
0.091787
0.033816
0.111111
0.111111
0.036232
0
0
0
0
0.02805
0.202907
1,789
79
115
22.64557
0.842917
0.394075
0
0.114286
0
0
0.028302
0
0
0
0
0.025316
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1ead6c62d875f60610503850b818fef266d45e15
676
py
Python
helm/dagster/schema/schema/charts/dagster/subschema/scheduler.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
helm/dagster/schema/schema/charts/dagster/subschema/scheduler.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
helm/dagster/schema/schema/charts/dagster/subschema/scheduler.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
from enum import Enum from typing import Optional from pydantic import BaseModel, Extra from ...utils.utils import BaseModel, ConfigurableClass, create_json_schema_conditionals class SchedulerType(str, Enum): DAEMON = "DagsterDaemonScheduler" CUSTOM = "CustomScheduler" class SchedulerConfig(BaseModel): ...
22.533333
95
0.726331
64
676
7.5625
0.421875
0.061983
0.066116
0.115702
0.11157
0
0
0
0
0
0
0
0.202663
676
29
96
23.310345
0.897959
0
0
0.210526
0
0
0.08432
0.032544
0
0
0
0
0
1
0
false
0
0.210526
0
0.736842
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
1eb230e01e77a05e99e637d663df4534c84561ab
326
py
Python
genkey/migrations/0007_auto_20190328_1149.py
MoreNiceJay/CAmanager_web
29c6e35b9b1b9e8d851b2825df18e34699f6c5d2
[ "bzip2-1.0.6" ]
null
null
null
genkey/migrations/0007_auto_20190328_1149.py
MoreNiceJay/CAmanager_web
29c6e35b9b1b9e8d851b2825df18e34699f6c5d2
[ "bzip2-1.0.6" ]
3
2020-02-11T23:59:34.000Z
2021-06-10T21:19:16.000Z
genkey/migrations/0007_auto_20190328_1149.py
MoreNiceJay/CAmanager_web
29c6e35b9b1b9e8d851b2825df18e34699f6c5d2
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.0.4 on 2019-03-28 02:49 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('genkey', '0006_auto_20190327_1004'), ] operations = [ migrations.RenameModel( old_name='CA', new_name='Company', ), ...
18.111111
47
0.588957
36
326
5.194444
0.861111
0
0
0
0
0
0
0
0
0
0
0.135371
0.297546
326
17
48
19.176471
0.681223
0.138037
0
0
1
0
0.136201
0.082437
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1eb567b2d4370b74ccabfda3eaf79975e350711e
2,009
py
Python
data processing/create_word2vec_input.py
RayL0707/Finance_KG
c4614bfb12a7ce20e05b42ab81ab6038ab5143f4
[ "MIT" ]
null
null
null
data processing/create_word2vec_input.py
RayL0707/Finance_KG
c4614bfb12a7ce20e05b42ab81ab6038ab5143f4
[ "MIT" ]
null
null
null
data processing/create_word2vec_input.py
RayL0707/Finance_KG
c4614bfb12a7ce20e05b42ab81ab6038ab5143f4
[ "MIT" ]
null
null
null
import json import thulac import time # n # all+n (all 不包含 vm) # a+n # np 人名 # ns 地名 # ni 机构名 # nz 其它专名 # t和r 时间和代词该步不用加,但是在命名实体识别时需要考虑(这里做个备注) # i 习语 # j 简称 # x 其它 # 不能含有标点w def nowok(s): #当前词的词性筛选 if s=='n' or s=='np' or s=='ns' or s=='ni' or s=='nz': return True if s=='i' or s=='j' or s=='x' or s=='id' or s...
17.17094
62
0.576904
324
2,009
3.540123
0.358025
0.026155
0.007847
0.022668
0.024412
0.024412
0
0
0
0
0
0.026606
0.232952
2,009
117
63
17.17094
0.717716
0.22897
0
0.191176
0
0
0.090728
0
0
0
0
0
0
1
0.058824
false
0.058824
0.044118
0
0.220588
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
0
0
0
1
0
0
0
0
0
1
1ebca434a8a15f08126216a9e911d9f4751e4c45
11,180
py
Python
check_netapp.py
champain/check_netapp
38d018737114bd7354e183d6c968621036cc29d7
[ "MIT" ]
1
2019-01-08T16:13:03.000Z
2019-01-08T16:13:03.000Z
check_netapp.py
champain/check_netapp
38d018737114bd7354e183d6c968621036cc29d7
[ "MIT" ]
null
null
null
check_netapp.py
champain/check_netapp
38d018737114bd7354e183d6c968621036cc29d7
[ "MIT" ]
null
null
null
import os from NetApp.NaServer import * from optparse import OptionParser # Main function to handle our other functions def main(): if check == "vserver": vserver_check(vserver_name) elif check == "api": api_check() elif check == "cluster": cluster_check() elif check == "aggreg...
36.298701
97
0.672898
1,621
11,180
4.380012
0.160395
0.032676
0.035493
0.030423
0.338028
0.17338
0.107042
0.059718
0.059718
0.048451
0
0.00372
0.20644
11,180
307
98
36.416938
0.796551
0.105367
0
0.138528
0
0
0.209132
0.018465
0
0
0
0
0
0
null
null
0.030303
0.012987
null
null
0.073593
0
0
0
null
0
0
0
0
0
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
1ebddd7a908306147f877c8696a04c281eda1589
2,012
py
Python
regression/preprocess.py
maple7sha/dota2ml
6854c4a8bb0c7369c09e0d459afde259c7025497
[ "MIT" ]
null
null
null
regression/preprocess.py
maple7sha/dota2ml
6854c4a8bb0c7369c09e0d459afde259c7025497
[ "MIT" ]
null
null
null
regression/preprocess.py
maple7sha/dota2ml
6854c4a8bb0c7369c09e0d459afde259c7025497
[ "MIT" ]
null
null
null
from pymongo import MongoClient from progressbar import ProgressBar, Bar, Percentage, FormatLabel, ETA import numpy as np import os def preprocess(percent_training_set): client = MongoClient() db = client.dotabot matches = db.matches NUM_HEROES = 114 NUM_FEATURES = NUM_HEROES * 2 NUM_MATCHES = matches.co...
30.484848
100
0.708748
298
2,012
4.540268
0.369128
0.059128
0.038433
0.025129
0.172949
0.109387
0.109387
0.109387
0.109387
0.109387
0
0.012643
0.174453
2,012
66
101
30.484848
0.801927
0.099404
0
0.086957
0
0
0.131012
0.024323
0
0
0
0
0
0
null
null
0
0.108696
null
null
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1ec070b4dfe048a4d96d7330f5ff96b4e65d4d4c
596
py
Python
setup.py
cxwx/naima
d8aa926fe757c4fd67583b6c341c3496a58b3e70
[ "BSD-3-Clause" ]
null
null
null
setup.py
cxwx/naima
d8aa926fe757c4fd67583b6c341c3496a58b3e70
[ "BSD-3-Clause" ]
null
null
null
setup.py
cxwx/naima
d8aa926fe757c4fd67583b6c341c3496a58b3e70
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup, find_packages setup( use_scm_version={ "version_scheme": "post-release", "local_scheme": "dirty-tag", }, setup_requires=["setuptools_scm"], packages=find_packages("src"),...
22.923077
63
0.568792
68
596
4.808824
0.705882
0.073395
0
0
0
0
0
0
0
0
0
0.022523
0.255034
596
25
64
23.84
0.713964
0.137584
0
0
0
0
0.28125
0
0
0
0
0
0
1
0
true
0
0.047619
0
0.047619
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
1ec32394dcecf728ff23af953f1ad48fb5e5de37
13,597
py
Python
app/classes/api.py
MikeMart77/crafty
686f5d4a210f7ff4b91e0427e6ebc5e2a5dcbeb7
[ "Apache-2.0" ]
37
2020-07-11T02:41:31.000Z
2022-01-03T19:33:49.000Z
app/classes/api.py
MikeMart77/crafty
686f5d4a210f7ff4b91e0427e6ebc5e2a5dcbeb7
[ "Apache-2.0" ]
21
2020-07-11T12:08:12.000Z
2021-09-23T10:55:09.000Z
app/classes/api.py
MikeMart77/crafty
686f5d4a210f7ff4b91e0427e6ebc5e2a5dcbeb7
[ "Apache-2.0" ]
18
2020-07-11T11:36:30.000Z
2022-01-14T07:11:37.000Z
import os import secrets import threading import tornado.web import tornado.escape import logging.config from app.classes.models import Roles, Users, check_role_permission, Remote, model_to_dict from app.classes.multiserv import multi from app.classes.helpers import helper from app.classes.backupmgr import backupmgr ...
33.823383
138
0.572994
1,474
13,597
5.085482
0.141791
0.048026
0.070971
0.079242
0.693837
0.677695
0.643943
0.634872
0.616195
0.616195
0
0.008198
0.318232
13,597
402
139
33.823383
0.800432
0.017798
0
0.633452
0
0
0.094022
0
0
0
0
0.002488
0
1
0.099644
false
0.017794
0.035587
0
0.199288
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1ee2eaa1b69e4110f3a47a8efebc193125827f64
2,153
py
Python
processes/tests/test_integration.py
kinoreel/kino-gather
defc0d6b311651f985467b5bfcfdbf77d73c10ae
[ "MIT" ]
null
null
null
processes/tests/test_integration.py
kinoreel/kino-gather
defc0d6b311651f985467b5bfcfdbf77d73c10ae
[ "MIT" ]
3
2017-06-03T16:50:56.000Z
2017-10-01T09:24:37.000Z
processes/tests/test_integration.py
kinoreel/kino-gather
defc0d6b311651f985467b5bfcfdbf77d73c10ae
[ "MIT" ]
null
null
null
import unittest from processes.get_omdb import Main as get_omdb from processes.get_tmdb import Main as get_tmdb from processes.get_itunes import Main as get_itunes from processes.get_amazon import Main as get_amazon from processes.get_trailer import Main as get_trailer from processes.get_youtube import Main as get_you...
43.938776
77
0.764515
259
2,153
6.146718
0.146718
0.138819
0.128141
0.124372
0.218593
0.17902
0.17902
0.073492
0.073492
0.073492
0
0.01728
0.166744
2,153
48
78
44.854167
0.870123
0.151881
0
0.228571
0
0
0.012665
0
0
0
0
0
0
1
0.028571
false
0
0.514286
0
0.571429
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1ee52fe1eea1eb33ec6b8f41d0abb79ccd50ea30
1,935
py
Python
2018/1A/robot_cashier.py
AmauryLiet/CodeJam
3e02bce287e3c640d89eea4b0d5878319c79d59b
[ "MIT" ]
null
null
null
2018/1A/robot_cashier.py
AmauryLiet/CodeJam
3e02bce287e3c640d89eea4b0d5878319c79d59b
[ "MIT" ]
null
null
null
2018/1A/robot_cashier.py
AmauryLiet/CodeJam
3e02bce287e3c640d89eea4b0d5878319c79d59b
[ "MIT" ]
null
null
null
N = int(input()) MAX, VAR, FIX = range(3) # latest=9 r=3 b=4 # max_variable_fixed_values = [ # 3 4 5 # 2 3 3 # 2 1 5 # 2 4 2 # 2 2 4 # 2 5 1 # ] def try_to_beat(latest_score, r, b, max_var_fixed): our_score = 0 while b > 0: if not r: return -1 best_c_max_b, best_max_b = ...
24.1875
85
0.54522
288
1,935
3.319444
0.208333
0.066946
0.050209
0.047071
0.192469
0.106695
0.106695
0.07113
0.07113
0.07113
0
0.028226
0.359173
1,935
79
86
24.493671
0.742742
0.05323
0
0.075472
0
0
0.00659
0
0
0
0
0
0
1
0.037736
false
0.056604
0
0
0.113208
0.056604
0
0
0
null
0
0
0
0
0
0
0
0
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
9493adf2b60df22181c7328199d9efdac249dd59
1,145
py
Python
devito/data/meta.py
jrt54/devito
5a63696db03ae77c0925fd4a96a531fd21308727
[ "MIT" ]
1
2020-09-17T02:53:06.000Z
2020-09-17T02:53:06.000Z
devito/data/meta.py
jrt54/devito
5a63696db03ae77c0925fd4a96a531fd21308727
[ "MIT" ]
null
null
null
devito/data/meta.py
jrt54/devito
5a63696db03ae77c0925fd4a96a531fd21308727
[ "MIT" ]
null
null
null
from devito.tools import Tag __all__ = ['DOMAIN', 'CORE', 'OWNED', 'HALO', 'NOPAD', 'FULL', 'LEFT', 'RIGHT', 'CENTER'] class DataRegion(Tag): pass CORE = DataRegion('core') # within DOMAIN OWNED = DataRegion('owned') # within DOMAIN DOMAIN = DataRegion('domain') # == CORE + OWNED HALO = DataRegio...
22.9
62
0.603493
139
1,145
4.683453
0.323741
0.076805
0.092166
0.116743
0.202765
0.202765
0.202765
0.202765
0
0
0
0.003521
0.255895
1,145
49
63
23.367347
0.760563
0.070742
0
0
0
0
0.081285
0
0
0
0
0
0
1
0.181818
false
0.030303
0.030303
0.151515
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
0
0
0
0
1
0
0
0
1
9495a56bdecb82a6a0d94d51b82b391d6b4dd77b
36,691
py
Python
bcs-ui/backend/templatesets/legacy_apps/configuration/k8s/constants.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
599
2019-06-25T03:20:46.000Z
2022-03-31T12:14:33.000Z
bcs-ui/backend/templatesets/legacy_apps/configuration/k8s/constants.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
537
2019-06-27T06:03:44.000Z
2022-03-31T12:10:01.000Z
bcs-ui/backend/templatesets/legacy_apps/configuration/k8s/constants.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
214
2019-06-25T03:26:05.000Z
2022-03-31T07:52:03.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
42.763403
119
0.323458
1,911
36,691
6.094715
0.163789
0.106465
0.092728
0.056667
0.600412
0.563321
0.540998
0.531639
0.493088
0.470507
0
0.010248
0.526614
36,691
857
120
42.813302
0.660314
0.033523
0
0.509975
0
0.004988
0.254078
0.014899
0
0
0
0.001167
0
1
0
false
0
0.002494
0
0.002494
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
949ade892d25e5435775c907b35e281d3da04296
611
py
Python
src/features/videos/speech/extract_speech.py
ClaasM/VideoArticleRetrieval
1948887d34b53bdb7a2ec473b31401b395c54e63
[ "MIT" ]
null
null
null
src/features/videos/speech/extract_speech.py
ClaasM/VideoArticleRetrieval
1948887d34b53bdb7a2ec473b31401b395c54e63
[ "MIT" ]
null
null
null
src/features/videos/speech/extract_speech.py
ClaasM/VideoArticleRetrieval
1948887d34b53bdb7a2ec473b31401b395c54e63
[ "MIT" ]
null
null
null
import os from pocketsphinx import AudioFile from pocketsphinx import Pocketsphinx from src import util test_video = os.environ['DATA_PATH'] + "/other/sphinx_test_video/beachball.mp4" test_audio = os.environ['DATA_PATH'] + "/other/sphinx_test_audio/interview.wav" fps = 100 # default audio_file = AudioFile(audio_fil...
29.095238
106
0.746318
105
611
4.209524
0.485714
0.027149
0.099548
0.076923
0.144796
0.144796
0.144796
0
0
0
0
0.019048
0.140753
611
20
107
30.55
0.822857
0.299509
0
0
0
0
0.224586
0.179669
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
94a2a12d12ba8f42c8db354ac4d1caf68ea26d8b
2,705
py
Python
rpsp/policy/policies.py
ahefnycmu/rpsp
ff3aa3e89a91bb4afb7bad932d2c04691a727a63
[ "Apache-2.0" ]
4
2019-11-03T12:04:47.000Z
2022-01-21T08:55:54.000Z
rpsp/policy/policies.py
ahefnycmu/rpsp
ff3aa3e89a91bb4afb7bad932d2c04691a727a63
[ "Apache-2.0" ]
null
null
null
rpsp/policy/policies.py
ahefnycmu/rpsp
ff3aa3e89a91bb4afb7bad932d2c04691a727a63
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Nov 28 10:47:38 2016 @author: ahefny Policies are BLIND to the representation of states, which could be (1) observation, (2) original latent state or (3) predictive state. Policies takes the "state" dimension x_dim, the number of actions/dim of action as input. """ impo...
26.009615
96
0.621442
350
2,705
4.625714
0.317143
0.067943
0.060531
0.070414
0.308833
0.248301
0.248301
0.248301
0.184064
0.134651
0
0.015252
0.272828
2,705
103
97
26.262136
0.807829
0.179298
0
0.393443
0
0
0
0
0
0
0
0
0
1
0.262295
false
0.032787
0.032787
0
0.47541
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
94a2bd43953d6e6e4cffc78fc4b4796273a7d3e4
8,002
py
Python
pysnmp-with-texts/CTRON-CHASSIS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CTRON-CHASSIS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CTRON-CHASSIS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CTRON-CHASSIS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CTRON-CHASSIS-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:44:24 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
137.965517
625
0.775806
937
8,002
6.6254
0.221985
0.050258
0.087951
0.010309
0.495006
0.341334
0.323131
0.292848
0.26482
0.248389
0
0.048978
0.089103
8,002
57
626
140.385965
0.802716
0.04099
0
0
0
0.04
0.293803
0.029746
0
0
0
0
0
1
0
false
0
0.14
0
0.14
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
94a69109ecb77993367aee324f52626e30882d42
307
py
Python
devtools/write.py
ddrone/language
1cd8b21b4edc9877dd82efb1092f6f37aab98563
[ "Apache-2.0" ]
2
2020-08-13T19:12:40.000Z
2020-09-02T18:39:09.000Z
devtools/write.py
ddrone/language
1cd8b21b4edc9877dd82efb1092f6f37aab98563
[ "Apache-2.0" ]
null
null
null
devtools/write.py
ddrone/language
1cd8b21b4edc9877dd82efb1092f6f37aab98563
[ "Apache-2.0" ]
null
null
null
import os import sys from datetime import datetime from subprocess import run name = datetime.utcnow().strftime("%Y%m%d-%H%M%S.md") try: # -t stands for "topic" topic_index = sys.argv.index('-t') path = os.path.join(sys.argv[topic_index + 1], name) except: path = name run(['code', path])
20.466667
56
0.664495
50
307
4.04
0.56
0.09901
0
0
0
0
0
0
0
0
0
0.003953
0.175896
307
14
57
21.928571
0.794466
0.068404
0
0
0
0
0.077465
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
94a725b80964b0d1c363be556587576cc1338bfd
875
py
Python
tests/hopfieldnettests/net/network_creation.py
pmatigakis/hopfieldnet
c3e850d41e94383d8f6d2bf079ac706268254ba9
[ "MIT" ]
28
2015-01-25T21:46:06.000Z
2022-03-08T20:43:46.000Z
tests/hopfieldnettests/net/network_creation.py
pmatigakis/hopfieldnet
c3e850d41e94383d8f6d2bf079ac706268254ba9
[ "MIT" ]
null
null
null
tests/hopfieldnettests/net/network_creation.py
pmatigakis/hopfieldnet
c3e850d41e94383d8f6d2bf079ac706268254ba9
[ "MIT" ]
13
2015-01-25T21:46:10.000Z
2020-10-23T00:56:07.000Z
import unittest import numpy as np from hopfieldnet.net import HopfieldNetwork, InvalidWeightsException class HopfieldNetworkCreationTests(unittest.TestCase): def setUp(self): self.net = HopfieldNetwork(10) def test_change_network_weights(self): new_weights = np.ones((10, 10)) sel...
29.166667
121
0.734857
114
875
5.342105
0.447368
0.057471
0.083744
0.052545
0.154351
0.08867
0
0
0
0
0
0.016506
0.169143
875
29
122
30.172414
0.821183
0
0
0
0
0
0.102857
0
0
0
0
0
0.176471
1
0.235294
false
0
0.176471
0
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
94a7f32aeb3e4b7407a1b59b692d58dd7cc09416
1,737
py
Python
river_admin/views/function_view.py
pantyukhov/river-admin
7ed37418a26a4a813fe853c36f33086f80e0309c
[ "BSD-3-Clause" ]
75
2019-11-25T08:28:12.000Z
2022-03-05T12:35:11.000Z
river_admin/views/function_view.py
pantyukhov/river-admin
7ed37418a26a4a813fe853c36f33086f80e0309c
[ "BSD-3-Clause" ]
21
2019-11-28T17:17:26.000Z
2022-02-26T20:42:30.000Z
river_admin/views/function_view.py
pantyukhov/river-admin
7ed37418a26a4a813fe853c36f33086f80e0309c
[ "BSD-3-Clause" ]
19
2020-02-13T02:00:41.000Z
2022-03-02T04:47:05.000Z
from rest_framework.generics import get_object_or_404 from rest_framework.response import Response from rest_framework.status import HTTP_400_BAD_REQUEST, HTTP_200_OK from river.models import Function from river_admin.views import get, post, put, delete from river_admin.views.serializers import UpdateFunctionDto, Crea...
36.1875
92
0.754174
242
1,737
5.161157
0.223141
0.096077
0.043235
0.060048
0.338671
0.255404
0.255404
0.202562
0.132106
0.132106
0
0.025624
0.123777
1,737
47
93
36.957447
0.795007
0
0
0.142857
0
0
0.085204
0.050086
0
0
0
0
0
1
0.142857
false
0
0.171429
0.028571
0.514286
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
94b185ec7b26237c15a8147e0cf8e33a0273856f
2,080
py
Python
roadmap/migrations/0001_initial.py
bitmazk/django-roadmap
72cdc20bcd129ffb00395d5b1215fedbf59218b2
[ "MIT" ]
2
2019-11-29T01:06:08.000Z
2020-09-15T23:02:18.000Z
roadmap/migrations/0001_initial.py
bitmazk/django-roadmap
72cdc20bcd129ffb00395d5b1215fedbf59218b2
[ "MIT" ]
3
2020-02-11T22:26:54.000Z
2021-06-10T17:43:27.000Z
roadmap/migrations/0001_initial.py
bitlabstudio/django-roadmap
72cdc20bcd129ffb00395d5b1215fedbf59218b2
[ "MIT" ]
1
2016-04-13T21:16:25.000Z
2016-04-13T21:16:25.000Z
# flake8: noqa # -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Milestone' db.create_table('roadmap_milestone', ( ('id', self.gf(...
39.245283
112
0.605769
213
2,080
5.798122
0.262911
0.084211
0.136032
0.194332
0.508502
0.437247
0.411336
0.411336
0.3417
0.232389
0
0.007946
0.213462
2,080
52
113
40
0.746944
0.076923
0
0.166667
0
0
0.431783
0.27287
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.25
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
94b5e68f3e111b96fca699f4d5fd4ef4b76998fd
6,284
py
Python
cappylib/general.py
ChrisPappalardo/cappylib
e7f469e51bac5d35444514f5504728cc81c1d678
[ "MIT" ]
1
2016-05-29T17:22:30.000Z
2016-05-29T17:22:30.000Z
cappylib/general.py
ChrisPappalardo/cappylib
e7f469e51bac5d35444514f5504728cc81c1d678
[ "MIT" ]
null
null
null
cappylib/general.py
ChrisPappalardo/cappylib
e7f469e51bac5d35444514f5504728cc81c1d678
[ "MIT" ]
null
null
null
############################################################################################## # HEADER # # cappylib/general.py - defines useful functions for python scripts # # Copyright (C) 2008-2013 Chris Pappalardo <cpappala@yahoo.com> # # Permission is hereby granted, free of charge, to any person obtaining a cop...
37.404762
94
0.539624
703
6,284
4.792319
0.392603
0.026121
0.01306
0.023746
0.102107
0.059662
0.021965
0
0
0
0
0.011796
0.217537
6,284
167
95
37.628743
0.673378
0.332113
0
0.05
0
0
0.118809
0.031459
0
0
0
0
0
0
null
null
0
0.0125
null
null
0.0875
0
0
0
null
0
0
0
0
0
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
94b8b664d0dd876b7f4a4856901673566775c638
4,598
py
Python
core/views.py
UmerSE/django-login
ee980962a2d68f77d2e56df96dd1ed6e4e70d9ce
[ "Apache-2.0" ]
null
null
null
core/views.py
UmerSE/django-login
ee980962a2d68f77d2e56df96dd1ed6e4e70d9ce
[ "Apache-2.0" ]
null
null
null
core/views.py
UmerSE/django-login
ee980962a2d68f77d2e56df96dd1ed6e4e70d9ce
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render, redirect from core import models from django.contrib import messages from django.core.mail import send_mail from app import settings # from django.contrib.sites.shortcuts import get_current_site # from django.template.loader import render_to_string # from django.utils.http import ur...
38.316667
174
0.64876
523
4,598
5.606119
0.294455
0.037517
0.042974
0.027285
0.15689
0.139836
0.093452
0.066166
0.036153
0
0
0.008411
0.250109
4,598
120
175
38.316667
0.841937
0.160505
0
0.220779
0
0.025974
0.192868
0.032275
0.012987
0
0
0
0
1
0.051948
false
0.090909
0.12987
0
0.376623
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
94bbd930eae95498ca6ae42c0c9ecc9be26d6453
1,553
py
Python
events/eventsapi/migrations/0002_eventdetails_eventgallery_userdetails.py
Akshat1903/Events-Portal-Backend
b67dbc3b91d830fdcea17ab652b4e9ee13d4006f
[ "MIT" ]
1
2021-02-22T17:05:47.000Z
2021-02-22T17:05:47.000Z
events/eventsapi/migrations/0002_eventdetails_eventgallery_userdetails.py
Akshat1903/Events-Portal-Backend
b67dbc3b91d830fdcea17ab652b4e9ee13d4006f
[ "MIT" ]
null
null
null
events/eventsapi/migrations/0002_eventdetails_eventgallery_userdetails.py
Akshat1903/Events-Portal-Backend
b67dbc3b91d830fdcea17ab652b4e9ee13d4006f
[ "MIT" ]
2
2021-02-08T08:13:03.000Z
2021-02-09T13:10:30.000Z
# Generated by Django 3.0.8 on 2021-02-20 13:51 import ckeditor.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('eventsapi', '0001_initial'), ] operations = [ migrations.CreateModel( na...
37.878049
149
0.589182
150
1,553
5.966667
0.4
0.035754
0.046927
0.073743
0.452514
0.38324
0.38324
0.38324
0.38324
0.38324
0
0.016814
0.272376
1,553
40
150
38.825
0.775221
0.028976
0
0.441176
1
0
0.128818
0
0
0
0
0
0
1
0
false
0
0.088235
0
0.176471
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
94bcb149b2cf9cc99d00ec9d26c5fde8664209ea
653
py
Python
books/crafting_interpreters/pylox/lox/chunk.py
thundergolfer/uni
e604d1edd8e5085f0ae1c0211015db38c07fc926
[ "MIT" ]
1
2022-01-06T04:50:09.000Z
2022-01-06T04:50:09.000Z
books/crafting_interpreters/pylox/lox/chunk.py
thundergolfer/uni
e604d1edd8e5085f0ae1c0211015db38c07fc926
[ "MIT" ]
1
2022-01-23T06:09:21.000Z
2022-01-23T06:14:17.000Z
books/crafting_interpreters/pylox/lox/chunk.py
thundergolfer/uni
e604d1edd8e5085f0ae1c0211015db38c07fc926
[ "MIT" ]
null
null
null
import dataclasses import enum import value @enum.unique class OpCode(enum.IntEnum): OP_CONSTANT = enum.auto() OP_RETURN = enum.auto() @dataclasses.dataclass(frozen=False) class Chunk: code: bytearray constants: list[value.Value] def init_chunk() -> Chunk: return Chunk( code=bytearray...
18.657143
67
0.658499
86
653
4.895349
0.488372
0.095012
0.085511
0.128266
0
0
0
0
0
0
0
0.017544
0.214395
653
34
68
19.205882
0.803119
0
0
0
0
0
0.058193
0
0
0
0
0
0
1
0.130435
false
0
0.130435
0.043478
0.608696
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
94c812ed8eea3a891394ca2d2863a8988d1aa7e0
3,770
py
Python
spec/puzzle/steps/generate_solutions_spec.py
PhilHarnish/forge
663f19d759b94d84935c14915922070635a4af65
[ "MIT" ]
2
2020-08-18T18:43:09.000Z
2020-08-18T20:05:59.000Z
spec/puzzle/steps/generate_solutions_spec.py
PhilHarnish/forge
663f19d759b94d84935c14915922070635a4af65
[ "MIT" ]
null
null
null
spec/puzzle/steps/generate_solutions_spec.py
PhilHarnish/forge
663f19d759b94d84935c14915922070635a4af65
[ "MIT" ]
null
null
null
import collections from puzzle.constraints import solution_constraints from puzzle.steps import generate_solutions from spec.mamba import * _SOLUTIONS = collections.OrderedDict(( ('early_low', 0.1), ('early_high', 1.0), ('after_early_high', 0.9), ('mid_low', 0.2), ('late_mid', 0.5), ('late_low', 0.3), (...
34.907407
83
0.682228
477
3,770
5.228512
0.243187
0.036087
0.066159
0.084202
0.450281
0.411788
0.323577
0.288292
0.234964
0.172815
0
0.011811
0.191512
3,770
107
84
35.233645
0.80643
0.012997
0
0.25
1
0
0.139554
0
0
0
0
0
0
1
0.022727
false
0
0.045455
0
0.068182
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
94cc9616c0ef938ae80a72ecf0086c7fb614f196
3,892
py
Python
src/nypower/calc.py
hongjsk/ny-power
d892f194f621555d65df4ba3dcd3ccaabb64b72d
[ "Apache-2.0" ]
46
2018-04-10T15:57:51.000Z
2021-11-16T12:14:47.000Z
src/nypower/calc.py
hongjsk/ny-power
d892f194f621555d65df4ba3dcd3ccaabb64b72d
[ "Apache-2.0" ]
5
2018-05-07T18:53:18.000Z
2018-11-30T13:17:00.000Z
src/nypower/calc.py
hongjsk/ny-power
d892f194f621555d65df4ba3dcd3ccaabb64b72d
[ "Apache-2.0" ]
28
2018-04-10T15:48:09.000Z
2022-02-02T22:16:52.000Z
"""Calculators for different values. In order to approximate the emissions for a single kWh of produced energy, per power source we look at the following 2016 data sets. * Detailed EIA-923 emissions survey data (https://www.eia.gov/electricity/data/state/emission_annual.xls) * Net Generation by State by Type of Pr...
33.843478
79
0.720709
622
3,892
4.463023
0.385852
0.043228
0.079251
0.136888
0.302233
0.302233
0.221542
0.101585
0.039625
0.039625
0
0.126336
0.206835
3,892
114
80
34.140351
0.772919
0.821942
0
0
0
0
0.178056
0
0
0
0
0.008772
0
1
0.051282
false
0
0
0
0.128205
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
94d15fd96c06a60978eb9873d80feabdc79ed4a5
304
py
Python
Part2/comment_test.py
BaiMoHan/LearningPython_ING_202002
90d1152b66e8efa284b75b4b76fbf29d7d61e900
[ "MIT" ]
null
null
null
Part2/comment_test.py
BaiMoHan/LearningPython_ING_202002
90d1152b66e8efa284b75b4b76fbf29d7d61e900
[ "MIT" ]
null
null
null
Part2/comment_test.py
BaiMoHan/LearningPython_ING_202002
90d1152b66e8efa284b75b4b76fbf29d7d61e900
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/2/11 14:23 # @Author : Baimohan/PH # @Site : https://github.com/BaiMoHan # @File : comment_test.py # @Software: PyCharm print("hello world") # 这是一行注释 ''' 多行注释 单引号形式 ''' """ 双引号多注释 三个双引号 """ print("测试") a = 5 print(a) a += 3 print(a)
13.818182
40
0.588816
45
304
3.955556
0.844444
0.067416
0
0
0
0
0
0
0
0
0
0.056911
0.190789
304
21
41
14.47619
0.666667
0.605263
0
0.333333
0
0
0.175676
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
94d2fa8ed41b130939e6d5ba9082e67b5cb90786
885
py
Python
Python/Itertools/Maximize it/maximize_it.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
2
2020-05-28T07:15:00.000Z
2020-07-21T08:34:06.000Z
Python/Itertools/Maximize it/maximize_it.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
null
null
null
Python/Itertools/Maximize it/maximize_it.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
null
null
null
# Enter your code here. Read input from STDIN. Print output to STDOUT from typing import List from itertools import product def sum_of_square_mod_m( nums:tuple, mod_m ): return ( sum( map( lambda x: x**2, nums) ) % mod_m ) def maximize_function_value( list_of_list:List , mod_m): count_of_list = len( list_...
22.692308
81
0.664407
139
885
3.848921
0.402878
0.078505
0.11215
0.052336
0.246729
0.115888
0
0
0
0
0
0.007331
0.229379
885
38
82
23.289474
0.777126
0.105085
0
0
0
0
0.010139
0
0
0
0
0.026316
0
1
0.111111
false
0
0.111111
0.055556
0.277778
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
94d3fece27f326587064410869c31cb46bef8d4c
3,497
py
Python
tests/test_errors.py
zzacharo/flask-resources
a99e27ea299b9a47237c3c19b87c8600fcc9bcab
[ "MIT" ]
null
null
null
tests/test_errors.py
zzacharo/flask-resources
a99e27ea299b9a47237c3c19b87c8600fcc9bcab
[ "MIT" ]
null
null
null
tests/test_errors.py
zzacharo/flask-resources
a99e27ea299b9a47237c3c19b87c8600fcc9bcab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # Flask--Resources is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Errors test module.""" import pytest from flask import Flask from flask_resources.resources import Collectio...
30.146552
88
0.698885
443
3,497
5.367946
0.31377
0.100084
0.142977
0.171573
0.433558
0.378049
0.337679
0.336417
0.226661
0.186712
0
0.027465
0.187875
3,497
115
89
30.408696
0.809859
0.261653
0
0.418182
0
0
0.100552
0.02011
0
0
0
0.008696
0.309091
1
0.109091
false
0
0.054545
0
0.254545
0.036364
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
94de4848bf82da339fb5d648899d321cd7d71842
2,415
py
Python
sql.py
saidul-islam-tuhin/Computer-Assistant-With-Bilingual-Voice-Commands
408ca3bbce4cd9f5c0414d190d7563872d2294ca
[ "MIT" ]
null
null
null
sql.py
saidul-islam-tuhin/Computer-Assistant-With-Bilingual-Voice-Commands
408ca3bbce4cd9f5c0414d190d7563872d2294ca
[ "MIT" ]
2
2021-02-08T20:52:31.000Z
2021-04-30T20:49:22.000Z
sql.py
saidul-islam-tuhin/Computer-Assistant-With-Bilingual-Voice-Commands
408ca3bbce4cd9f5c0414d190d7563872d2294ca
[ "MIT" ]
null
null
null
##−∗−coding : utf−8−∗− import sqlite3 as lite import logging import sys from collections import OrderedDict import conf LOG_FORMAT = "%(levelname)s > Line:%(lineno)s - %(message)s" logging.basicConfig(filename="debug.log", level=logging.DEBUG, format=LOG_FORMAT, ...
24.642857
94
0.541201
295
2,415
4.345763
0.4
0.046802
0.031201
0.021841
0.106084
0.051482
0.051482
0.051482
0.051482
0.051482
0
0.007538
0.340787
2,415
97
95
24.896907
0.791457
0.15528
0
0.068966
0
0
0.061772
0
0
0
0
0.010309
0
1
0.051724
false
0
0.086207
0
0.189655
0.051724
0
0
0
null
0
0
0
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
94e815de52b0c80818511ee7e582fc5b96f3f18e
686
py
Python
Chapter 06/code/prime.py
shivampotdar/Artificial-Intelligence-with-Python
00221c3b1a6d8003765d1ca48b5c95f86da375d9
[ "MIT" ]
387
2017-02-11T18:28:50.000Z
2022-03-27T01:16:05.000Z
Chapter 06/code/prime.py
shivampotdar/Artificial-Intelligence-with-Python
00221c3b1a6d8003765d1ca48b5c95f86da375d9
[ "MIT" ]
18
2017-12-15T03:10:25.000Z
2021-04-20T14:32:43.000Z
Chapter 06/code/prime.py
shivampotdar/Artificial-Intelligence-with-Python
00221c3b1a6d8003765d1ca48b5c95f86da375d9
[ "MIT" ]
407
2017-01-23T15:18:33.000Z
2022-03-16T05:39:02.000Z
import itertools as it import logpy.core as lc from sympy.ntheory.generate import prime, isprime # Check if the elements of x are prime def check_prime(x): if lc.isvar(x): return lc.condeseq([(lc.eq, x, p)] for p in map(prime, it.count(1))) else: return lc.success if isprime(x) else lc.fail #...
29.826087
76
0.672012
129
686
3.534884
0.511628
0.065789
0.072368
0.078947
0.100877
0
0
0
0
0
0
0.048736
0.19242
686
22
77
31.181818
0.774368
0.198251
0
0
1
0
0.111927
0
0
0
0
0
0
1
0.071429
false
0
0.214286
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
94e8f60f50c58e23f136b937277c55b1b0aa4b3d
510
py
Python
vigobusapi/exceptions.py
Lodeiro0001/Python_VigoBusAPI
29b5231a2e76513bf92cc1455d021b0080ea6156
[ "Apache-2.0" ]
4
2019-07-18T22:25:31.000Z
2021-03-09T19:01:14.000Z
vigobusapi/exceptions.py
Lodeiro0001/Python_VigoBusAPI
29b5231a2e76513bf92cc1455d021b0080ea6156
[ "Apache-2.0" ]
3
2021-09-12T20:15:38.000Z
2021-09-18T16:35:27.000Z
vigobusapi/exceptions.py
David-Lor/VigoBusAPI
40db5a644f43a8f98cb40a9e5519a028fe18db14
[ "Apache-2.0" ]
3
2020-10-03T21:45:39.000Z
2021-05-06T21:27:03.000Z
"""EXCEPTIONS Exceptions used on the project """ __all__ = ("VigoBusAPIException", "StopNotExist", "StopNotFound") class VigoBusAPIException(Exception): """Base exception for the project custom exceptions""" pass class StopNotExist(VigoBusAPIException): """The Stop does not physically exist (as reporte...
24.285714
97
0.735294
58
510
6.396552
0.603448
0.053908
0.140162
0
0
0
0
0
0
0
0
0
0.170588
510
20
98
25.5
0.877069
0.494118
0
0.428571
0
0
0.182203
0
0
0
0
0
0
1
0
false
0.428571
0
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
94ec70758c4eb3a460d3205093a384c85fc59aea
2,269
py
Python
samples/list_unresolved_alerts/list_unresolved_alerts.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
samples/list_unresolved_alerts/list_unresolved_alerts.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
samples/list_unresolved_alerts/list_unresolved_alerts.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# Copyright 2019 Cohesity Inc. # # Python example to list recent user_configurable unresolved alert unresolved Alerts. # # Usage: python list_unresolved_alerts.py --max_alerts 10 import argparse import datetime from cohesity_management_sdk.cohesity_client import CohesityClient from cohesity_management_sdk.models.aler...
36.596774
103
0.639929
262
2,269
5.316794
0.396947
0.051687
0.031587
0.035894
0
0
0
0
0
0
0
0.012107
0.271926
2,269
61
104
37.196721
0.831114
0.21331
0
0
0
0
0.11032
0.030249
0
0
0
0
0
1
0.088235
false
0.058824
0.117647
0
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
94eec894af0b3d5c84e7d7a3601f782b23665aad
367
py
Python
random_geometry_points_service/app.py
brauls/random-geometry-points-service
f935bce1e584eb9a53a0c7b90f43fe305716cd83
[ "MIT" ]
null
null
null
random_geometry_points_service/app.py
brauls/random-geometry-points-service
f935bce1e584eb9a53a0c7b90f43fe305716cd83
[ "MIT" ]
1
2021-06-01T22:13:25.000Z
2021-06-01T22:13:25.000Z
random_geometry_points_service/app.py
brauls/random-geometry-points-service
f935bce1e584eb9a53a0c7b90f43fe305716cd83
[ "MIT" ]
null
null
null
"""Entry module that inits the flask app. """ from flask import Flask from .endpoints.api import init_api def create_app(): """Create the flask app and initialize the random geometry points api. Returns: Flask: The initialized flask app """ flask_app = Flask(__name__) api = init_api() ...
20.388889
74
0.686649
52
367
4.634615
0.442308
0.19917
0.091286
0
0
0
0
0
0
0
0
0
0.231608
367
17
75
21.588235
0.85461
0.416894
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
94f64dcb7aa539a6fdad0452d376747f0e492320
2,125
py
Python
apps/users/urls.py
CosmosTUe/Cosmos
cec2541d3f8ea1944edfaab2090916ba66f9d2f3
[ "MIT" ]
1
2021-02-01T19:27:07.000Z
2021-02-01T19:27:07.000Z
apps/users/urls.py
CosmosTUe/Cosmos
cec2541d3f8ea1944edfaab2090916ba66f9d2f3
[ "MIT" ]
79
2020-08-05T09:01:00.000Z
2022-03-24T11:27:21.000Z
apps/users/urls.py
CosmosTUe/Cosmos
cec2541d3f8ea1944edfaab2090916ba66f9d2f3
[ "MIT" ]
3
2021-02-22T18:36:52.000Z
2021-10-13T17:05:44.000Z
from django.contrib.auth import views as auth_views from django.urls import path from django.urls.base import reverse_lazy from django.views.decorators.csrf import csrf_exempt from . import views, webhooks from .forms.authorization import CosmosPasswordChangeForm, CosmosPasswordResetForm, CosmosSetPasswordForm app_na...
41.666667
110
0.712471
234
2,125
6.196581
0.264957
0.041379
0.041379
0.031034
0.121379
0.089655
0.089655
0.062069
0
0
0
0.002242
0.160471
2,125
50
111
42.5
0.810538
0.009882
0
0.244444
0
0
0.241314
0.102332
0
0
0
0
0
1
0
false
0.333333
0.133333
0
0.133333
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
94fb0fe077d6b59a58c02576467e7b6263b1935f
641
py
Python
tests/cases.py
bio2bel/antibodyregistry
a3ad09544d652b85c55ad0ca8341b85b14b3c6c7
[ "MIT" ]
null
null
null
tests/cases.py
bio2bel/antibodyregistry
a3ad09544d652b85c55ad0ca8341b85b14b3c6c7
[ "MIT" ]
null
null
null
tests/cases.py
bio2bel/antibodyregistry
a3ad09544d652b85c55ad0ca8341b85b14b3c6c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Test cases for Bio2BEL Antibody Registry.""" from bio2bel.testing import AbstractTemporaryCacheClassMixin from bio2bel_antibodyregistry import Manager from tests.constants import TEST_RESULTS_PATH __all__ = [ 'TemporaryCacheClass', ] class TemporaryCacheClass(AbstractTemporaryCacheCl...
26.708333
94
0.75039
68
641
6.941176
0.529412
0.118644
0.146186
0.118644
0
0
0
0
0
0
0
0.011257
0.168487
641
23
95
27.869565
0.874296
0.332293
0
0
0
0
0.046117
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a203a7f292c0dce3d1fe23b14cbe29f8eaebc9ab
7,134
py
Python
selfchecking1.py
JJP-SWFC/Self-Checking-Binary-Code
701aa91c39c8673c52991af828ce907beb77c9ac
[ "MIT" ]
null
null
null
selfchecking1.py
JJP-SWFC/Self-Checking-Binary-Code
701aa91c39c8673c52991af828ce907beb77c9ac
[ "MIT" ]
null
null
null
selfchecking1.py
JJP-SWFC/Self-Checking-Binary-Code
701aa91c39c8673c52991af828ce907beb77c9ac
[ "MIT" ]
null
null
null
from tkinter import * import numpy as np import random #generates a random 16 digits digtexts = np.random.randint(2, size=16) q1check = 0 q2check = 0 q3check = 0 q4check = 0 q5check = 0 #The function to swap 1s to 0s, it is used as the button command def flipper0(): #Probably an awful way of swapping ...
36.963731
111
0.585366
912
7,134
4.570175
0.217105
0.115163
0.145873
0.052783
0.259837
0.232965
0.208973
0.141555
0.141555
0.141555
0
0.060213
0.276002
7,134
192
112
37.15625
0.746757
0.152089
0
0.214286
1
0
0.227195
0
0
0
0
0
0
1
0.038961
false
0
0.019481
0
0.058442
0.038961
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
a2249efce47df056312d91cc653b9f530c413e5a
1,304
py
Python
src/clic/initnode.py
NathanRVance/clic
e28f7f2686f5ac6689b384474e3fdfa4d207f6ec
[ "MIT" ]
2
2017-12-13T03:41:07.000Z
2019-03-12T14:08:42.000Z
src/clic/initnode.py
NathanRVance/clic
e28f7f2686f5ac6689b384474e3fdfa4d207f6ec
[ "MIT" ]
null
null
null
src/clic/initnode.py
NathanRVance/clic
e28f7f2686f5ac6689b384474e3fdfa4d207f6ec
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os from pathlib import Path from pwd import getpwnam from clic import pssh import configparser config = configparser.ConfigParser() config.read('/etc/clic/clic.conf') user = config['Daemon']['user'] def init(host, cpus, disk, mem, user=user): # Copy executables in /etc/clic/ to node and ...
39.515152
166
0.67408
194
1,304
4.484536
0.479381
0.045977
0.032184
0.055172
0
0
0
0
0
0
0
0.011278
0.184049
1,304
32
167
40.75
0.806391
0.068252
0
0
0
0.038462
0.235779
0
0
0
0
0
0
1
0.076923
false
0.038462
0.307692
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a225d4215664eb0e76d8e4f28cc69143c6d676df
359
py
Python
src/text_selection/cover_export.py
stefantaubert/text-selection
4b3b49005cbeb2e9212ed94686d8e871c6c2c368
[ "MIT" ]
null
null
null
src/text_selection/cover_export.py
stefantaubert/text-selection
4b3b49005cbeb2e9212ed94686d8e871c6c2c368
[ "MIT" ]
null
null
null
src/text_selection/cover_export.py
stefantaubert/text-selection
4b3b49005cbeb2e9212ed94686d8e871c6c2c368
[ "MIT" ]
null
null
null
from typing import List from typing import OrderedDict as OrderedDictType from typing import Set from ordered_set import OrderedSet from text_selection.cover_applied import cover_symbols def cover_symbols_default(data: OrderedDictType[int, List[str]], symbols: Set[str]) -> OrderedSet[int]: return cover_symbols( ...
23.933333
103
0.791086
48
359
5.770833
0.4375
0.108303
0.173285
0
0
0
0
0
0
0
0
0
0.142061
359
14
104
25.642857
0.899351
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.5
0.1
0.7
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
a227318e6a334fffff87d6e6e584338f480d2fab
4,500
py
Python
helper.py
prachir1501/NeuralDater
3604443c73c4eba36fcfac37668fcc4c7039df63
[ "Apache-2.0" ]
64
2018-05-15T01:35:08.000Z
2021-08-16T06:41:29.000Z
helper.py
prachir1501/NeuralDater
3604443c73c4eba36fcfac37668fcc4c7039df63
[ "Apache-2.0" ]
16
2018-12-04T05:47:55.000Z
2022-02-09T23:43:41.000Z
helper.py
prachir1501/NeuralDater
3604443c73c4eba36fcfac37668fcc4c7039df63
[ "Apache-2.0" ]
15
2018-05-15T01:40:25.000Z
2021-07-26T07:13:31.000Z
import numpy as np, sys, unicodedata, requests, os, random, pdb, requests, json, gensim import matplotlib.pyplot as plt, uuid, time, argparse, pickle, operator import logging, logging.config, itertools, pathlib import scipy.sparse as sp from collections import defaultdict as ddict from random import randint from pprin...
28.66242
115
0.639778
587
4,500
4.751278
0.367973
0.027608
0.017928
0.014342
0.057368
0.057368
0.045177
0
0
0
0
0.001789
0.254667
4,500
157
116
28.66242
0.829756
0
0
0
0
0
0.06906
0
0
0
0
0
0
0
null
null
0
0.191489
null
null
0.042553
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bf422087326ad1d8b6d00ce1855d37c1b494e173
288
py
Python
tests/_test_paramiko.py
weka-io/plumbum
2d244c02f38498cacfb3519bdebe42e4c5dc72b3
[ "MIT" ]
1
2021-03-25T21:13:13.000Z
2021-03-25T21:13:13.000Z
tests/_test_paramiko.py
weka-io/plumbum
2d244c02f38498cacfb3519bdebe42e4c5dc72b3
[ "MIT" ]
null
null
null
tests/_test_paramiko.py
weka-io/plumbum
2d244c02f38498cacfb3519bdebe42e4c5dc72b3
[ "MIT" ]
null
null
null
from plumbum.paramiko_machine import ParamikoMachine as PM from plumbum import local local.env.path.append("c:\\progra~1\\git\\bin") from plumbum.cmd import ls, grep m=PM("192.168.1.143") mls=m["ls"] mgrep=m["grep"] #(mls | mgrep["b"])() (mls | grep["\\."])() (ls | mgrep["\\."])()
16.941176
58
0.638889
46
288
3.978261
0.586957
0.180328
0
0
0
0
0
0
0
0
0
0.043307
0.118056
288
16
59
18
0.677165
0.069444
0
0
0
0
0.177358
0.083019
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
bf4389979bbeb1ecafb87741b50b5595107dacec
1,521
py
Python
tilapia/lib/basic/bip32.py
huazhouwang/python_multichain_wallet
52e0acdc2984c08990cb36433ef17a414fbe8312
[ "MIT" ]
2
2021-09-23T13:47:08.000Z
2021-09-24T02:39:14.000Z
tilapia/lib/basic/bip32.py
huazhouwang/tilapia
52e0acdc2984c08990cb36433ef17a414fbe8312
[ "MIT" ]
null
null
null
tilapia/lib/basic/bip32.py
huazhouwang/tilapia
52e0acdc2984c08990cb36433ef17a414fbe8312
[ "MIT" ]
null
null
null
from typing import List, Optional BIP32_PRIME = 0x80000000 UINT32_MAX = (1 << 32) - 1 def decode_bip44_path(path: str) -> List[int]: def _parse_node(node: str) -> Optional[int]: if not node or node == "m" or node == "M": return None is_hardened = node.endswith("'") or node.endswith("h...
29.25
83
0.593688
208
1,521
4.153846
0.269231
0.231481
0.052083
0.069444
0.305556
0.25463
0.185185
0.185185
0.185185
0.185185
0
0.037736
0.30309
1,521
51
84
29.823529
0.777358
0
0
0.157895
0
0
0.116371
0
0
0
0.006575
0
0
1
0.078947
false
0
0.026316
0
0.236842
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
bf4417e992cda896f5b5d7ec9787891875aec0be
2,070
py
Python
pitronically/blog/migrations/0002_auto_20190719_1436.py
the16thpythonist/pitronically
2f680f4e04a59fed7b410a4b8c26240c4efc5159
[ "MIT" ]
null
null
null
pitronically/blog/migrations/0002_auto_20190719_1436.py
the16thpythonist/pitronically
2f680f4e04a59fed7b410a4b8c26240c4efc5159
[ "MIT" ]
null
null
null
pitronically/blog/migrations/0002_auto_20190719_1436.py
the16thpythonist/pitronically
2f680f4e04a59fed7b410a4b8c26240c4efc5159
[ "MIT" ]
null
null
null
# Generated by Django 2.1.8 on 2019-07-19 14:36 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import filer.fields.image import taggit.managers class Migration(migrations.Migration): initial = True dependencies = [ ('blog', '0001_initial')...
39.056604
171
0.658937
228
2,070
5.811404
0.307018
0.036226
0.104151
0.122264
0.700377
0.666415
0.633962
0.582642
0.582642
0.582642
0
0.015567
0.224155
2,070
52
172
39.807692
0.809465
0.021739
0
0.577778
1
0
0.153238
0.028176
0
0
0
0
0
1
0
false
0
0.111111
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
bf4534497c74067b4ddb8a6599a853af99617d7a
587
py
Python
rest_slack/app_settings.py
jordaneremieff/django-rest-slack
18d2662898c6d9408d7cbb573ffdbb5dad1fb1b3
[ "MIT" ]
1
2020-09-26T18:28:11.000Z
2020-09-26T18:28:11.000Z
rest_slack/app_settings.py
jordaneremieff/django-rest-slack
18d2662898c6d9408d7cbb573ffdbb5dad1fb1b3
[ "MIT" ]
null
null
null
rest_slack/app_settings.py
jordaneremieff/django-rest-slack
18d2662898c6d9408d7cbb573ffdbb5dad1fb1b3
[ "MIT" ]
null
null
null
import os from django.conf import settings SLACK_CLIENT_ID = getattr(settings, 'SLACK_CLIENT_ID', os.environ.get('SLACK_CLIENT_ID')) SLACK_CLIENT_SECRET = getattr(settings, 'SLACK_CLIENT_SECRET', os.environ.get('SLACK_CLIENT_SECRET')) SLACK_VERIFICATION_TOKEN = getattr(settings, 'SLACK_VERIFICATION_TOKEN', os.e...
30.894737
117
0.807496
79
587
5.594937
0.278481
0.149321
0.180995
0.153846
0.20362
0
0
0
0
0
0
0
0.074957
587
18
118
32.611111
0.813996
0
0
0
0
0
0.383305
0.146508
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
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
bf4d33f3d55caacf7fbaa981aaf614ce3ba88ed9
435
py
Python
komax_app/migrations/0002_komax_group_of_square.py
UsernameForGerman/PrettlNKKomax
8684300852458ab99988a63e49db47d53ff7ddc4
[ "Apache-2.0" ]
null
null
null
komax_app/migrations/0002_komax_group_of_square.py
UsernameForGerman/PrettlNKKomax
8684300852458ab99988a63e49db47d53ff7ddc4
[ "Apache-2.0" ]
9
2021-03-19T14:08:01.000Z
2022-03-12T00:41:09.000Z
komax_app/migrations/0002_komax_group_of_square.py
UsernameForGerman/PrettlNKKomax
8684300852458ab99988a63e49db47d53ff7ddc4
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.7 on 2020-02-14 10:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('komax_app', '0001_initial'), ] operations = [ migrations.AddField( model_name='komax', name='group_of_square', ...
21.75
66
0.593103
50
435
5.02
0.8
0
0
0
0
0
0
0
0
0
0
0.074675
0.291954
435
19
67
22.894737
0.74026
0.103448
0
0
1
0
0.118557
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1