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
42629d99092a4d568c978d01f8d8dafafec338c9
28,061
py
Python
cbf_ros/scripts/cbf_controller_sy.py
k1majd/CBF_TB_RRT
2632357d42155de6dec5802c337a5abfdc824aac
[ "MIT" ]
2
2021-10-07T17:06:57.000Z
2021-11-23T15:58:14.000Z
cbf_ros/scripts/cbf_controller_sy.py
k1majd/CBF_TB_RRT
2632357d42155de6dec5802c337a5abfdc824aac
[ "MIT" ]
1
2021-10-13T17:18:32.000Z
2021-10-13T17:37:26.000Z
cbf_ros/scripts/cbf_controller_sy.py
k1majd/CBF_TB_RRT
2632357d42155de6dec5802c337a5abfdc824aac
[ "MIT" ]
1
2021-11-30T11:09:43.000Z
2021-11-30T11:09:43.000Z
#! /usr/bin/env python # call roscore # $ roscore # # If start in manual # $ rosrun cbf_ros cbf_controller.py import rospy import sys import argparse import re import numpy as np from scipy.integrate import odeint from sympy import symbols, Matrix, sin, cos, lambdify, exp, sqrt, log import matplotlib.pyplot as plt im...
51.393773
222
0.490218
3,750
28,061
3.547467
0.1232
0.010825
0.017665
0.021574
0.47681
0.442006
0.420206
0.378261
0.361648
0.3188
0
0.036707
0.368946
28,061
545
223
51.488073
0.714536
0.118527
0
0.250627
0
0
0.025001
0.006575
0
0
0
0
0
0
null
null
0.007519
0.042607
null
null
0.002506
0
0
0
null
0
0
0
0
0
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
4262af6285d912525c9c840db4e454a16f646f01
5,250
py
Python
src/gui/ui_paste_dialog.py
tonypdmtr/sxtool
225468d70c5fe1bf7414f19ce13dcdd43e872433
[ "BSD-2-Clause" ]
3
2018-10-11T15:34:24.000Z
2022-02-20T23:24:01.000Z
src/gui/ui_paste_dialog.py
tonypdmtr/sxtool
225468d70c5fe1bf7414f19ce13dcdd43e872433
[ "BSD-2-Clause" ]
1
2018-10-16T06:58:22.000Z
2018-10-22T20:19:55.000Z
src/gui/ui_paste_dialog.py
tonypdmtr/sxtool
225468d70c5fe1bf7414f19ce13dcdd43e872433
[ "BSD-2-Clause" ]
1
2022-02-20T23:26:50.000Z
2022-02-20T23:26:50.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'src/gui/ui_paste_dialog.ui' # # Created by: PyQt5 UI code generator 5.11.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_PasteDialog(object): def setupUi(self, PasteDialog)...
58.333333
110
0.739619
484
5,250
7.987603
0.25
0.072426
0.062856
0.03492
0.148733
0.040352
0.024832
0.024832
0
0
0
0.019643
0.156381
5,250
89
111
58.988764
0.85324
0.037524
0
0
1
0
0.127651
0.00892
0
0
0
0
0
1
0.025974
false
0
0.012987
0
0.051948
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
42646da758d7d00689423c6bb8d4edd633b50938
232
py
Python
src/2/2338.py
youngdaLee/Baekjoon
7d858d557dbbde6603fe4e8af2891c2b0e1940c0
[ "MIT" ]
11
2020-09-20T15:17:11.000Z
2022-03-17T12:43:33.000Z
src/2/2338.py
youngdaLee/Baekjoon
7d858d557dbbde6603fe4e8af2891c2b0e1940c0
[ "MIT" ]
3
2021-10-30T07:51:36.000Z
2022-03-09T05:19:23.000Z
src/2/2338.py
youngdaLee/Baekjoon
7d858d557dbbde6603fe4e8af2891c2b0e1940c0
[ "MIT" ]
13
2021-01-21T03:19:08.000Z
2022-03-28T10:44:58.000Z
""" 2338. 긴자리 계산 작성자: xCrypt0r 언어: Python 3 사용 메모리: 29,380 KB 소요 시간: 72 ms 해결 날짜: 2020년 9월 13일 """ def main(): A, B = int(input()), int(input()) print(A + B, A - B, A * B, sep='\n') if __name__ == '__main__': main()
12.888889
40
0.538793
43
232
2.72093
0.767442
0.068376
0.051282
0.068376
0
0
0
0
0
0
0
0.116959
0.262931
232
17
41
13.647059
0.567251
0.392241
0
0
0
0
0.075188
0
0
0
0
0
0
1
0.2
true
0
0
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
4264be58cf46729f9ccb094d1db453583943d301
2,952
py
Python
tests/ut/python/nn/test_activation.py
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
tests/ut/python/nn/test_activation.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
tests/ut/python/nn/test_activation.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
27.333333
80
0.661247
429
2,952
4.335664
0.282051
0.043011
0.012903
0.034946
0.398387
0.368817
0.274194
0.183871
0.183871
0.183871
0
0.031733
0.188686
2,952
107
81
27.588785
0.744885
0.222561
0
0.34375
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.078125
0.078125
0.484375
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
426a3bed4febe19951912ab6a1ea3a6374609094
356
py
Python
eg/deparse/example.py
KennethBlaney/rivescript-python
87db472847ab526060afd9a5b8548e9689501a85
[ "MIT" ]
null
null
null
eg/deparse/example.py
KennethBlaney/rivescript-python
87db472847ab526060afd9a5b8548e9689501a85
[ "MIT" ]
null
null
null
eg/deparse/example.py
KennethBlaney/rivescript-python
87db472847ab526060afd9a5b8548e9689501a85
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Manipulate sys.path to be able to import converscript from this local git # repository. import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..")) from converscript import RiveScript import json bot = RiveScript() bot.load_file("example.rive") dep = bot.deparse...
20.941176
75
0.735955
54
356
4.759259
0.62963
0.054475
0
0
0
0
0
0
0
0
0
0.003195
0.120787
356
16
76
22.25
0.817891
0.297753
0
0
0
0
0.064777
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
426e4afa33488c3f61e9819e1e0e8ab285e730fe
902
py
Python
config.py
rajatomar788/pyblog
d450dc1ceb3a6b3aeb747648a0fb1b4334e4b3ae
[ "MIT" ]
null
null
null
config.py
rajatomar788/pyblog
d450dc1ceb3a6b3aeb747648a0fb1b4334e4b3ae
[ "MIT" ]
null
null
null
config.py
rajatomar788/pyblog
d450dc1ceb3a6b3aeb747648a0fb1b4334e4b3ae
[ "MIT" ]
null
null
null
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): SECRET_KEY = os.environ.get('SECRET_KEY') or 'rajatomar788' if os.environ.get('DATABASE_URL') is None: SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db') elif os.environ.get('EXTRA_DATABASE') ...
29.096774
80
0.674058
114
902
5.078947
0.605263
0.07772
0.062176
0.086356
0.103627
0
0
0
0
0
0
0.034722
0.201774
902
30
81
30.066667
0.769444
0.042129
0
0
0
0
0.175174
0.025522
0
0
0
0
0
1
0
false
0.047619
0.047619
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
426f6bd9b353f10dd5dac6c8afa818c7319f5d74
8,612
py
Python
keycodes/key/codes/win.py
jonchun/ptoys-mapper
a2dde413d37e897ec41b69ac979e538afb7435f0
[ "MIT" ]
null
null
null
keycodes/key/codes/win.py
jonchun/ptoys-mapper
a2dde413d37e897ec41b69ac979e538afb7435f0
[ "MIT" ]
null
null
null
keycodes/key/codes/win.py
jonchun/ptoys-mapper
a2dde413d37e897ec41b69ac979e538afb7435f0
[ "MIT" ]
null
null
null
# Source: # https://github.com/tpn/winsdk-10/blob/46c66795f49679eb4783377968ce25f6c778285a/Include/10.0.10240.0/um/WinUser.h # # convert all C-style comments to python multi-line string comment # find: (^/\*[\s\S\r]+?\*/) # replace: """\n$1\n""" # # convert all keycode #defines to be python constants # find: #define\s...
20.407583
114
0.576637
1,166
8,612
3.932247
0.480274
0.037077
0.021374
0.013086
0.052999
0
0
0
0
0
0
0.137496
0.319322
8,612
421
115
20.456057
0.644661
0.185323
0
0
0
0
0
0
0
0
0.166123
0
0
1
0
false
0
0.004329
0
1
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
42793637f0ad1d6b8bdb63c8ad74420df516a382
1,327
py
Python
conjureup/ui/views/credentials.py
iMichka/conjure-up
8e4599e6f58b52163384150d8d71e7802462d126
[ "MIT" ]
1
2019-06-26T23:39:13.000Z
2019-06-26T23:39:13.000Z
conjureup/ui/views/credentials.py
iMichka/conjure-up
8e4599e6f58b52163384150d8d71e7802462d126
[ "MIT" ]
null
null
null
conjureup/ui/views/credentials.py
iMichka/conjure-up
8e4599e6f58b52163384150d8d71e7802462d126
[ "MIT" ]
1
2020-10-05T14:42:31.000Z
2020-10-05T14:42:31.000Z
from ubuntui.utils import Padding from ubuntui.widgets.hr import HR from conjureup.app_config import app from conjureup.ui.views.base import BaseView, SchemaFormView from conjureup.ui.widgets.selectors import MenuSelectButtonList class NewCredentialView(SchemaFormView): title = "New Credential Creation" def...
33.175
73
0.694047
156
1,327
5.711538
0.442308
0.035915
0.03367
0
0
0
0
0
0
0
0
0
0.211756
1,327
39
74
34.025641
0.851816
0
0
0
0
0
0.158252
0
0
0
0
0
0
1
0.133333
false
0
0.166667
0
0.533333
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
427dedadfbbcbe3c95d00fdafba41ac3a4018d6f
2,121
py
Python
property_proteome/length/run.py
rrazban/proteomevis_scripts
2b6309a78287ffab4ee745383c21b9f474b93b60
[ "MIT" ]
1
2020-11-11T06:14:10.000Z
2020-11-11T06:14:10.000Z
property_proteome/length/run.py
rrazban/proteomevis_scripts
2b6309a78287ffab4ee745383c21b9f474b93b60
[ "MIT" ]
null
null
null
property_proteome/length/run.py
rrazban/proteomevis_scripts
2b6309a78287ffab4ee745383c21b9f474b93b60
[ "MIT" ]
1
2019-05-28T19:13:24.000Z
2019-05-28T19:13:24.000Z
#!/usr/bin/python help_msg = 'get uniprot length of entire proteome' import os, sys CWD = os.getcwd() UTLTS_DIR = CWD[:CWD.index('proteomevis_scripts')]+'/proteomevis_scripts/utlts' sys.path.append(UTLTS_DIR) from parse_user_input import help_message from read_in_file import read_in from parse_data import organism ...
29.054795
87
0.705799
317
2,121
4.51735
0.321767
0.02514
0.024441
0.035615
0.104749
0.082402
0.039106
0.039106
0.039106
0.039106
0
0.005076
0.164074
2,121
72
88
29.458333
0.802594
0.045262
0
0.137931
0
0
0.13904
0.012865
0
0
0
0
0
0
null
null
0
0.103448
null
null
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
0
0
1
0
0
0
0
0
0
0
0
1
427fcbdb91cef4c0c0751c48d3eb5d865ef45367
8,023
py
Python
ui/Ui_main.py
realm520/aimless
772e87f5b5a00eeac88be948e424310128fcec1a
[ "MIT" ]
null
null
null
ui/Ui_main.py
realm520/aimless
772e87f5b5a00eeac88be948e424310128fcec1a
[ "MIT" ]
null
null
null
ui/Ui_main.py
realm520/aimless
772e87f5b5a00eeac88be948e424310128fcec1a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'F:\work\code\pyqt5\ui\main.ui' # # Created by: PyQt5 UI code generator 5.9 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): ...
52.782895
108
0.720429
776
8,023
7.358247
0.189433
0.050438
0.02732
0.056042
0.257793
0.06725
0.017513
0.017513
0
0
0
0.016011
0.16702
8,023
151
109
53.13245
0.838396
0.024554
0
0
1
0
0.081095
0
0
0
0
0
0
1
0.014599
false
0
0.014599
0
0.036496
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
42835a66857dcf283ba037650081bbeeec2eb903
587
py
Python
leetcode/345.reverse-vowels-of-a-string.py
geemaple/algorithm
68bc5032e1ee52c22ef2f2e608053484c487af54
[ "MIT" ]
177
2017-08-21T08:57:43.000Z
2020-06-22T03:44:22.000Z
leetcode/345.reverse-vowels-of-a-string.py
geemaple/algorithm
68bc5032e1ee52c22ef2f2e608053484c487af54
[ "MIT" ]
2
2018-09-06T13:39:12.000Z
2019-06-03T02:54:45.000Z
leetcode/345.reverse-vowels-of-a-string.py
geemaple/algorithm
68bc5032e1ee52c22ef2f2e608053484c487af54
[ "MIT" ]
23
2017-08-23T06:01:28.000Z
2020-04-20T03:17:36.000Z
class Solution(object): def reverseVowels(self, s): """ :type s: str :rtype: str """ vowels = set("aeiouAEIOU") s = list(s) i = 0 j = len(s) - 1 while i < j: while i < j and s[i] not in vowels: i +=...
22.576923
47
0.294719
67
587
2.58209
0.38806
0.046243
0.121387
0.092486
0.127168
0
0
0
0
0
0
0.025105
0.592845
587
26
48
22.576923
0.698745
0.040886
0
0.25
0
0
0.018797
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.1875
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
428a08abf8ca4b32d91aa59e5ac79f8b3eb02d8f
901
py
Python
src/apps/core/migrations/0005_auto_20180417_1219.py
zhiyuli/HydroLearn
b2c2b44e49d37391149d0896ce5124e882f22ee3
[ "BSD-3-Clause" ]
null
null
null
src/apps/core/migrations/0005_auto_20180417_1219.py
zhiyuli/HydroLearn
b2c2b44e49d37391149d0896ce5124e882f22ee3
[ "BSD-3-Clause" ]
null
null
null
src/apps/core/migrations/0005_auto_20180417_1219.py
zhiyuli/HydroLearn
b2c2b44e49d37391149d0896ce5124e882f22ee3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-04-17 17:19 from __future__ import unicode_literals from django.db import migrations import django_extensions.db.fields class Migration(migrations.Migration): dependencies = [ ('core', '0004_auto_20180417_1218'), ] operations = [ ...
33.37037
266
0.657048
108
901
5.305556
0.583333
0.08377
0.094241
0.125654
0.101222
0
0
0
0
0
0
0.051355
0.221976
901
26
267
34.653846
0.766049
0.075472
0
0.210526
1
0
0.160241
0.027711
0
0
0
0
0
1
0
false
0
0.157895
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
428caa0f2af4107e3b019feaf07304cc2bf7796d
17,226
py
Python
src/mist/api/rules/models/main.py
SpiralUp/mist.api
a3b5233ab4aa3f6a0a2dea6333ff1e5a260af934
[ "Apache-2.0" ]
6
2017-08-24T00:34:30.000Z
2022-01-16T21:29:22.000Z
src/mist/api/rules/models/main.py
SpiralUp/mist.api
a3b5233ab4aa3f6a0a2dea6333ff1e5a260af934
[ "Apache-2.0" ]
9
2021-03-31T18:50:47.000Z
2022-01-09T23:20:02.000Z
src/mist/api/rules/models/main.py
SpiralUp/mist.api
a3b5233ab4aa3f6a0a2dea6333ff1e5a260af934
[ "Apache-2.0" ]
13
2017-09-21T18:17:02.000Z
2022-02-21T04:29:25.000Z
import uuid import mongoengine as me from mist.api import config from mist.api.exceptions import BadRequestError from mist.api.users.models import Organization from mist.api.selectors.models import SelectorClassMixin from mist.api.rules.base import NoDataRuleController from mist.api.rules.base import ResourceRuleCo...
35.155102
79
0.673981
2,141
17,226
5.326483
0.214853
0.015959
0.02315
0.02806
0.217117
0.174237
0.1161
0.099088
0.043844
0.043844
0
0.001869
0.254441
17,226
489
80
35.226994
0.886086
0.356844
0
0.296578
0
0
0.107857
0.006255
0
0
0
0.00409
0.015209
1
0.129278
false
0
0.095057
0.038023
0.505703
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
428f6c9308ecfc2aebd2c05427a3eb4c4bcb191b
522
py
Python
exaslct_src/lib/data/dependency_collector/dependency_image_info_collector.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
null
null
null
exaslct_src/lib/data/dependency_collector/dependency_image_info_collector.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
1
2019-05-06T07:36:11.000Z
2019-05-06T07:36:11.000Z
exaslct_src/lib/data/dependency_collector/dependency_image_info_collector.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
1
2019-05-03T08:49:29.000Z
2019-05-03T08:49:29.000Z
from typing import Dict from exaslct_src.lib.data.image_info import ImageInfo from exaslct_src.lib.data.dependency_collector.dependency_collector import DependencyInfoCollector class DependencyImageInfoCollector(DependencyInfoCollector[ImageInfo]): def is_info(self, input): return isinstance(input, Dict...
29
98
0.764368
66
522
5.863636
0.484848
0.116279
0.072351
0.087855
0.108527
0
0
0
0
0
0
0
0.155172
522
17
99
30.705882
0.877551
0
0
0
0
0
0.021073
0
0
0
0
0
0
1
0.2
false
0
0.3
0.1
0.8
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
4293fa719a880b9bfe3a700da09a0f285fc6495b
867
py
Python
test/hummingbot/core/utils/test_fixed_rate_source.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
3,027
2019-04-04T18:52:17.000Z
2022-03-30T09:38:34.000Z
test/hummingbot/core/utils/test_fixed_rate_source.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
4,080
2019-04-04T19:51:11.000Z
2022-03-31T23:45:21.000Z
test/hummingbot/core/utils/test_fixed_rate_source.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
1,342
2019-04-04T20:50:53.000Z
2022-03-31T15:22:36.000Z
from decimal import Decimal from unittest import TestCase from hummingbot.core.utils.fixed_rate_source import FixedRateSource class FixedRateSourceTests(TestCase): def test_look_for_unconfigured_pair_rate(self): rate_source = FixedRateSource() self.assertIsNone(rate_source.rate("BTC-USDT")) ...
32.111111
83
0.731257
106
867
5.716981
0.349057
0.148515
0.072607
0.143564
0.437294
0.310231
0.310231
0.310231
0.310231
0.310231
0
0.028966
0.163783
867
26
84
33.346154
0.806897
0
0
0.294118
0
0
0.058824
0
0
0
0
0
0.235294
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
429cb5fb216dbdf5ec9ff71a33c2d298dd2c8210
4,071
py
Python
python/jwt.py
angelbarranco/passes-rest-samples
93f54e3e7b651bcfd1b269e2bcd5d9bf9d50ad8c
[ "Apache-2.0" ]
95
2019-06-05T12:45:15.000Z
2022-03-30T14:02:27.000Z
python/jwt.py
angelbarranco/passes-rest-samples
93f54e3e7b651bcfd1b269e2bcd5d9bf9d50ad8c
[ "Apache-2.0" ]
21
2019-06-18T15:41:41.000Z
2022-03-04T15:29:57.000Z
python/jwt.py
angelbarranco/passes-rest-samples
93f54e3e7b651bcfd1b269e2bcd5d9bf9d50ad8c
[ "Apache-2.0" ]
45
2019-06-13T20:57:11.000Z
2022-03-21T13:43:31.000Z
""" Copyright 2019 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
35.4
121
0.747237
456
4,071
6.642544
0.377193
0.094421
0.091119
0.118851
0.180258
0.021789
0
0
0
0
0
0.004793
0.128715
4,071
114
122
35.710526
0.849168
0.287644
0
0
0
0
0.131252
0
0
0
0
0
0
1
0.241935
false
0.016129
0.064516
0
0.354839
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
42a0a34d1333c63396ab8f94b968a15d8d78c49d
2,046
py
Python
deepdiy/plugins/system/debugger/debugger.py
IEWbgfnYDwHRoRRSKtkdyMDUzgdwuBYgDKtDJWd/diy
080ddece4f982f22f3d5cff8d9d82e12fcd946a1
[ "MIT" ]
57
2019-05-01T05:27:19.000Z
2022-03-06T12:11:55.000Z
deepdiy/plugins/system/debugger/debugger.py
markusj1201/deepdiy
080ddece4f982f22f3d5cff8d9d82e12fcd946a1
[ "MIT" ]
6
2020-01-28T22:42:22.000Z
2022-02-10T00:13:11.000Z
deepdiy/plugins/system/debugger/debugger.py
markusj1201/deepdiy
080ddece4f982f22f3d5cff8d9d82e12fcd946a1
[ "MIT" ]
13
2019-05-08T03:19:58.000Z
2021-08-02T04:24:15.000Z
import os,rootpath rootpath.append(pattern='main.py') # add the directory of main.py to PATH import glob from kivy.app import App from kivy.lang import Builder from kivy.properties import ObjectProperty,DictProperty,ListProperty from kivy.uix.boxlayout import BoxLayout import logging,importlib,pkgutil class Debugger(B...
31
106
0.711632
286
2,046
4.891608
0.318182
0.065046
0.036455
0.032166
0.237312
0.180129
0.145818
0.145818
0.145818
0.084346
0
0.002831
0.136852
2,046
65
107
31.476923
0.789354
0.342131
0
0.102564
0
0
0.078669
0.018154
0
0
0
0
0
1
0.128205
false
0
0.230769
0
0.564103
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
42a141b9ed0d23fd4819a5a6563c8f54190ea8c2
1,885
py
Python
supervised_learning/classification/perceptron/perceptron.py
Ambitious-idiot/python-machine-learning
6c057dd64fb47de3e822b825135d24896ce13a4a
[ "MIT" ]
3
2021-04-15T06:20:31.000Z
2021-05-28T05:26:06.000Z
supervised_learning/classification/perceptron/perceptron.py
Ambitious-idiot/python-machine-learning
6c057dd64fb47de3e822b825135d24896ce13a4a
[ "MIT" ]
null
null
null
supervised_learning/classification/perceptron/perceptron.py
Ambitious-idiot/python-machine-learning
6c057dd64fb47de3e822b825135d24896ce13a4a
[ "MIT" ]
null
null
null
import numpy as np class Perceptron: def __init__(self, weight, bias=0): self.weight = weight self.bias = bias def __repr__(self): return 'Perceptron(weight=%r, bias=%r)' % (self.weight, self.bias) def __get_predictions(self, data): return np.dot(data, self.weight) + self...
40.106383
116
0.682228
213
1,885
5.685446
0.258216
0.085879
0.056152
0.029728
0.282411
0.247729
0.109001
0.109001
0.109001
0
0
0.013094
0.230239
1,885
46
117
40.978261
0.821502
0
0
0
0
0
0.015915
0.011141
0
0
0
0
0
1
0.216216
false
0
0.027027
0.054054
0.432432
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
42a9a106ced30891f6bde30e0be69f4978578110
1,121
py
Python
imagescraper/imagescraper/spiders/image_crawl_spider.py
karthikn2789/Scrapy-Projects
84db4ed1a2f38d6fa03d1bfa6a6ebf9fb527f523
[ "MIT" ]
2
2021-04-08T12:48:10.000Z
2021-06-16T09:42:39.000Z
imagescraper/imagescraper/spiders/image_crawl_spider.py
karthikn2789/Scrapy-Projects
84db4ed1a2f38d6fa03d1bfa6a6ebf9fb527f523
[ "MIT" ]
null
null
null
imagescraper/imagescraper/spiders/image_crawl_spider.py
karthikn2789/Scrapy-Projects
84db4ed1a2f38d6fa03d1bfa6a6ebf9fb527f523
[ "MIT" ]
6
2020-08-05T09:45:39.000Z
2021-11-16T14:05:20.000Z
import scrapy import re from scrapy.linkextractors import LinkExtractor from scrapy.spiders import CrawlSpider, Rule from ..items import ImagescraperItem class ImageCrawlSpiderSpider(CrawlSpider): name = "image_crawl_spider" allowed_domains = ["books.toscrape.com"] def start_requests(self): url =...
36.16129
92
0.611954
131
1,121
5.152672
0.519084
0.057778
0.071111
0.059259
0.168889
0.100741
0.100741
0
0
0
0
0.001181
0.244425
1,121
30
93
37.366667
0.79575
0.024086
0
0.095238
0
0
0.21308
0
0
0
0
0
0
1
0.095238
false
0
0.238095
0
0.52381
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
42aa82728f6722cbbdd0c68a0e10c8dd5f0958ee
582
py
Python
tests/rules/test_git_stash_pop.py
RogueScholar/thefuck-termux
cc33d5fa0077b2b2323b8a62f3478ff8efef3fba
[ "MIT" ]
null
null
null
tests/rules/test_git_stash_pop.py
RogueScholar/thefuck-termux
cc33d5fa0077b2b2323b8a62f3478ff8efef3fba
[ "MIT" ]
null
null
null
tests/rules/test_git_stash_pop.py
RogueScholar/thefuck-termux
cc33d5fa0077b2b2323b8a62f3478ff8efef3fba
[ "MIT" ]
null
null
null
import pytest from thefuck.rules.git_stash_pop import get_new_command from thefuck.rules.git_stash_pop import match from thefuck.types import Command @pytest.fixture def output(): return """error: Your local changes to the following files would be overwritten by merge:""" def test_match(output): assert mat...
26.454545
96
0.707904
83
582
4.819277
0.433735
0.12
0.1375
0.095
0.285
0.165
0.165
0
0
0
0
0
0.189003
582
21
97
27.714286
0.847458
0
0
0
0
0
0.278351
0
0
0
0
0
0.214286
1
0.214286
false
0
0.285714
0.071429
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
1
0
0
0
0
0
0
0
1
42ab556174e9603454893f6f485c837afcd3bad8
3,642
py
Python
src/arima_model.py
SaharCarmel/ARIMA
c54e8554f1c4a95c25687bdf35b4296ed6bd78d6
[ "MIT" ]
null
null
null
src/arima_model.py
SaharCarmel/ARIMA
c54e8554f1c4a95c25687bdf35b4296ed6bd78d6
[ "MIT" ]
null
null
null
src/arima_model.py
SaharCarmel/ARIMA
c54e8554f1c4a95c25687bdf35b4296ed6bd78d6
[ "MIT" ]
null
null
null
""" The ARIMA model. """ import torch import numpy as np class ARIMA(torch.nn.Module): """ARIMA [summary] """ def __init__(self, p: int = 0, d: int = 0, q: int = 0) -> None: """__init__ General ARIMA model constructor. Args: ...
34.358491
77
0.549149
439
3,642
4.514806
0.289294
0.066599
0.035318
0.021191
0.039354
0.039354
0.039354
0.039354
0.039354
0.039354
0
0.014724
0.347337
3,642
105
78
34.685714
0.8191
0.307798
0
0.068966
0
0
0.010946
0
0
0
0
0
0
1
0.068966
false
0.068966
0.034483
0
0.155172
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
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
35eca7541efb5afc537b44ba4b6a0fc5cf5a30dd
310
py
Python
pythons/pythons/pythons_app/urls.py
BoyanPeychinov/python_web_framework
bb3a78c36790821d8b3a2b847494a1138d063193
[ "MIT" ]
null
null
null
pythons/pythons/pythons_app/urls.py
BoyanPeychinov/python_web_framework
bb3a78c36790821d8b3a2b847494a1138d063193
[ "MIT" ]
null
null
null
pythons/pythons/pythons_app/urls.py
BoyanPeychinov/python_web_framework
bb3a78c36790821d8b3a2b847494a1138d063193
[ "MIT" ]
null
null
null
from django.urls import path from . import views from .views import IndexView urlpatterns = [ # path('', views.index, name="index"), path('', IndexView.as_view(), name="index"), # path('create/', views.create, name="create"), path('create/', views.PythonCreateView.as_view(), name="create"), ]
31
69
0.66129
38
310
5.342105
0.368421
0.08867
0.128079
0
0
0
0
0
0
0
0
0
0.148387
310
10
70
31
0.768939
0.264516
0
0
0
0
0.079646
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
35ed1f868aeb38f0c96a30ed7f9536e255837e20
356
py
Python
tests/python/text_utility.py
Noxsense/mCRL2
dd2fcdd6eb8b15af2729633041c2dbbd2216ad24
[ "BSL-1.0" ]
61
2018-05-24T13:14:05.000Z
2022-03-29T11:35:03.000Z
tests/python/text_utility.py
Noxsense/mCRL2
dd2fcdd6eb8b15af2729633041c2dbbd2216ad24
[ "BSL-1.0" ]
229
2018-05-28T08:31:09.000Z
2022-03-21T11:02:41.000Z
tests/python/text_utility.py
Noxsense/mCRL2
dd2fcdd6eb8b15af2729633041c2dbbd2216ad24
[ "BSL-1.0" ]
28
2018-04-11T14:09:39.000Z
2022-02-25T15:57:39.000Z
#~ Copyright 2014 Wieger Wesselink. #~ Distributed under the Boost Software License, Version 1.0. #~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) def read_text(filename): with open(filename, 'r') as f: return f.read() def write_text(filename, text): with open(filenam...
29.666667
82
0.691011
56
356
4.285714
0.589286
0.025
0.075
0.1
0
0
0
0
0
0
0
0.034364
0.182584
356
11
83
32.363636
0.790378
0.491573
0
0
0
0
0.011236
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
35ee497682f551e6df5ef747e053a1c6578b24fe
1,401
py
Python
listools/llogic/is_descending.py
jgarte/listools
17ef56fc7dde701890213f248971d8dc7a6e6b7c
[ "MIT" ]
2
2019-01-22T03:50:43.000Z
2021-04-22T16:12:17.000Z
listools/llogic/is_descending.py
jgarte/listools
17ef56fc7dde701890213f248971d8dc7a6e6b7c
[ "MIT" ]
2
2019-01-22T03:57:49.000Z
2021-04-22T22:03:47.000Z
listools/llogic/is_descending.py
jgarte/listools
17ef56fc7dde701890213f248971d8dc7a6e6b7c
[ "MIT" ]
1
2021-04-22T21:13:00.000Z
2021-04-22T21:13:00.000Z
def is_descending(input_list: list, step: int = -1) -> bool: r"""llogic.is_descending(input_list[, step]) This function returns True if the input list is descending with a fixed step, otherwise it returns False. Usage: >>> alist = [3, 2, 1, 0] >>> llogic.is_descending(alist) True The fina...
27.470588
75
0.608851
206
1,401
4.058252
0.373786
0.129187
0.150718
0.165072
0.223684
0.07177
0
0
0
0
0
0.031761
0.258387
1,401
50
76
28.02
0.772859
0.613847
0
0
0
0
0.082938
0
0
0
0
0
0
1
0.1
false
0
0
0
0.2
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
35f130f559ed7cd7af033555dccc66ba4d2035c4
304
py
Python
resumebuilder/resumebuilder.py
kinshuk4/ResumeBuilder
2c997f73b522c0668f3a66afb372bd91c6408b3c
[ "MIT" ]
1
2020-01-04T05:54:19.000Z
2020-01-04T05:54:19.000Z
resumebuilder/resumebuilder.py
kinshuk4/ResumeBuilder
2c997f73b522c0668f3a66afb372bd91c6408b3c
[ "MIT" ]
null
null
null
resumebuilder/resumebuilder.py
kinshuk4/ResumeBuilder
2c997f73b522c0668f3a66afb372bd91c6408b3c
[ "MIT" ]
null
null
null
import yaml def yaml2dict(filename): with open(filename, "r") as stream: resume_dict = yaml.load(stream) return resume_dict def main(): resumeFile = "../demo/sample-resume.yaml" resume_dict = yaml2dict(resumeFile) print(resume_dict) if __name__ == '__main__': main()
17.882353
45
0.664474
37
304
5.135135
0.567568
0.210526
0
0
0
0
0
0
0
0
0
0.008368
0.213816
304
16
46
19
0.786611
0
0
0
0
0
0.115512
0.085809
0
0
0
0
0
1
0.181818
false
0
0.090909
0
0.363636
0.090909
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
35f16309c334902b0ed8ed87b8f07d61caa46a9a
6,025
py
Python
backend/tests/unittests/metric_source/test_report/junit_test_report_tests.py
ICTU/quality-report
f6234e112228ee7cfe6476c2d709fe244579bcfe
[ "Apache-2.0" ]
25
2016-11-25T10:41:24.000Z
2021-07-03T14:02:49.000Z
backend/tests/unittests/metric_source/test_report/junit_test_report_tests.py
ICTU/quality-report
f6234e112228ee7cfe6476c2d709fe244579bcfe
[ "Apache-2.0" ]
783
2016-09-19T12:10:21.000Z
2021-01-04T20:39:15.000Z
backend/tests/unittests/metric_source/test_report/junit_test_report_tests.py
ICTU/quality-report
f6234e112228ee7cfe6476c2d709fe244579bcfe
[ "Apache-2.0" ]
15
2015-03-25T13:52:49.000Z
2021-03-08T17:17:56.000Z
""" Copyright 2012-2019 Ministerie van Sociale Zaken en Werkgelegenheid Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable...
47.81746
113
0.64249
727
6,025
5.116919
0.240715
0.077419
0.032258
0.043011
0.604839
0.576613
0.544086
0.360753
0.321774
0.29086
0
0.014693
0.231867
6,025
125
114
48.2
0.78911
0.238008
0
0.368421
0
0.039474
0.193376
0.05868
0
0
0
0
0.289474
1
0.184211
false
0.052632
0.078947
0
0.276316
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
35f470bfac10a58409ff19aa1d364eb85ab7359d
1,656
py
Python
src/mumblecode/convert.py
Mumbleskates/mumblecode
0221c33a09df154bf80ece73ff907c51d2a971f0
[ "MIT" ]
1
2016-05-17T23:07:38.000Z
2016-05-17T23:07:38.000Z
src/mumblecode/convert.py
Mumbleskates/mumblecode
0221c33a09df154bf80ece73ff907c51d2a971f0
[ "MIT" ]
null
null
null
src/mumblecode/convert.py
Mumbleskates/mumblecode
0221c33a09df154bf80ece73ff907c51d2a971f0
[ "MIT" ]
null
null
null
# coding=utf-8 from math import log2, ceil # valid chars for a url path component: a-z A-Z 0-9 .-_~!$&'()*+,;=:@ # For the default set here (base 72) we have excluded $'();:@ radix_alphabet = ''.join(sorted( "0123456789" "abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ".-_~!&*+,=" )) radix =...
24.352941
114
0.634662
255
1,656
4.011765
0.443137
0.076246
0.025415
0
0
0
0
0
0
0
0
0.032077
0.246981
1,656
67
115
24.716418
0.788292
0.307971
0
0.05
0
0
0.074402
0.046058
0
0
0
0.014925
0
1
0.15
false
0
0.025
0.025
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
35f926086eaca9043bf3f10e9c0ac0804430ebb4
1,856
py
Python
tests/test_get_value.py
mdpiper/bmi-example-python
e6b1e9105daef44fe1f0adba5b857cde1bbd032a
[ "MIT" ]
3
2020-10-20T08:59:19.000Z
2021-10-18T17:57:06.000Z
tests/test_get_value.py
mdpiper/bmi-example-python
e6b1e9105daef44fe1f0adba5b857cde1bbd032a
[ "MIT" ]
4
2019-04-19T20:07:15.000Z
2021-01-28T23:34:35.000Z
tests/test_get_value.py
mdpiper/bmi-example-python
e6b1e9105daef44fe1f0adba5b857cde1bbd032a
[ "MIT" ]
7
2020-08-05T17:25:34.000Z
2021-09-08T21:38:33.000Z
#!/usr/bin/env python from numpy.testing import assert_array_almost_equal, assert_array_less import numpy as np from heat import BmiHeat def test_get_initial_value(): model = BmiHeat() model.initialize() z0 = model.get_value_ptr("plate_surface__temperature") assert_array_less(z0, 1.0) assert_arr...
24.746667
82
0.715517
268
1,856
4.593284
0.220149
0.097482
0.205524
0.1316
0.570268
0.543461
0.524777
0.493095
0.454915
0.427295
0
0.027977
0.171875
1,856
74
83
25.081081
0.772934
0.010776
0
0.5
0
0
0.155858
0.155858
0
0
0
0
0.23913
1
0.130435
false
0
0.065217
0
0.195652
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
35fe055b65de9e34581ebd9b036ec7f195d41986
645
py
Python
mandrel/config/helpers.py
gf-atebbe/python-mandrel
64b90e3265a522ff72019960752bcc716533347f
[ "MIT" ]
null
null
null
mandrel/config/helpers.py
gf-atebbe/python-mandrel
64b90e3265a522ff72019960752bcc716533347f
[ "MIT" ]
null
null
null
mandrel/config/helpers.py
gf-atebbe/python-mandrel
64b90e3265a522ff72019960752bcc716533347f
[ "MIT" ]
null
null
null
from .. import util def configurable_class(setting_name, default_class_name=None): def getter(self): value = None try: value = self.configuration_get(setting_name) except KeyError: pass if not value: if not default_class_name: ret...
25.8
81
0.626357
78
645
4.948718
0.371795
0.11399
0.124352
0.11399
0.19171
0.19171
0
0
0
0
0
0
0.308527
645
24
82
26.875
0.865471
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0.055556
0.055556
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
35ff001cebfbaa2f16c6208ca4d5a99ce422a736
1,606
py
Python
Components/MoveComponent.py
RuoxiQin/Unmanned-Aerial-Vehicle-Tracking
49a0a32abcce42fc6bf9e71f5b098ec708373153
[ "Apache-2.0" ]
13
2018-06-16T12:52:18.000Z
2021-08-14T02:43:24.000Z
Components/MoveComponent.py
RuoxiQin/Unmanned-Aerial-Vehicle-Tracking
49a0a32abcce42fc6bf9e71f5b098ec708373153
[ "Apache-2.0" ]
null
null
null
Components/MoveComponent.py
RuoxiQin/Unmanned-Aerial-Vehicle-Tracking
49a0a32abcce42fc6bf9e71f5b098ec708373153
[ "Apache-2.0" ]
6
2019-06-20T21:06:01.000Z
2021-08-14T02:43:28.000Z
#!/usr/bin/python #-*-coding:utf-8-*- from Component import Component class MoveComponent(Component): '''This is the moveable component.''' _name = 'MoveComponent' def move(self,cmd): '''Input L,R,U,D or S to move the component or stop. Rise exception if moving out of region.''' cmd = cm...
34.170213
104
0.52802
197
1,606
4.253807
0.248731
0.286396
0.133652
0.071599
0.52864
0.373508
0.373508
0.369928
0.369928
0.369928
0
0.03268
0.333126
1,606
46
105
34.913043
0.749767
0.097758
0
0.210526
0
0
0.016006
0
0
0
0
0
0
1
0.052632
false
0.026316
0.026316
0
0.157895
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
c402fd47d18c33d2119498b3bf7f8c6a643683c4
545
py
Python
featureflow/feature_registration.py
featureflow/featureflow-python-sdk
a84cf54812fdc65d9aa52d10b17325504e67057f
[ "Apache-2.0" ]
null
null
null
featureflow/feature_registration.py
featureflow/featureflow-python-sdk
a84cf54812fdc65d9aa52d10b17325504e67057f
[ "Apache-2.0" ]
null
null
null
featureflow/feature_registration.py
featureflow/featureflow-python-sdk
a84cf54812fdc65d9aa52d10b17325504e67057f
[ "Apache-2.0" ]
2
2020-06-01T05:37:16.000Z
2020-07-15T08:17:18.000Z
class FeatureRegistration: def __init__(self, key, failoverVariant, variants=[]): """docstring for __init__""" self.key = key self.failoverVariant = failoverVariant self.variants = [v.toJSON() for v in variants] def toJSON(self): """docstring for toJSON""" self._...
24.772727
58
0.594495
57
545
5.263158
0.280702
0.106667
0.146667
0.093333
0.46
0.46
0.46
0.26
0
0
0
0
0.289908
545
21
59
25.952381
0.775194
0.159633
0
0.461538
0
0
0
0
0
0
0
0
0
1
0.307692
false
0
0
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c4083724a00de9c5692943d43c6a11f16b96a31e
1,365
py
Python
problem solving/mini-max-sum.py
avnoor-488/hackerrank-solutions
b62315549c254d88104b70755e4dfcd43eba59bf
[ "MIT" ]
1
2020-10-01T16:54:52.000Z
2020-10-01T16:54:52.000Z
problem solving/mini-max-sum.py
avnoor-488/hackerrank-solutions
b62315549c254d88104b70755e4dfcd43eba59bf
[ "MIT" ]
2
2020-10-07T02:22:13.000Z
2020-10-22T06:15:50.000Z
problem solving/mini-max-sum.py
avnoor-488/hackerrank-solutions
b62315549c254d88104b70755e4dfcd43eba59bf
[ "MIT" ]
9
2020-10-01T12:30:56.000Z
2020-10-22T06:10:14.000Z
''' problem-- Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the five integers. Then print the respective minimum and maximum values as a single line of two space-separated long integers. For example, arr=[1,3,5,7,9]. Our minimum sum is 1+3+5+7=16 a...
24.375
242
0.710623
231
1,365
4.164502
0.454545
0.058212
0.053015
0.071726
0.275468
0.215177
0.164241
0.164241
0.164241
0.164241
0
0.040665
0.207326
1,365
55
243
24.818182
0.848429
0.753846
0
0
0
0
0.02454
0
0
0
0
0
0
1
0.0625
false
0
0.3125
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
c41bd740e3e0dc24d155a81087255bfae49c7719
903
py
Python
leave/models.py
shoaibsaikat/Django-Office-Management
952aa44c2d3c2f99e91c2ed1aada17ee15fc9eb0
[ "Apache-2.0" ]
null
null
null
leave/models.py
shoaibsaikat/Django-Office-Management
952aa44c2d3c2f99e91c2ed1aada17ee15fc9eb0
[ "Apache-2.0" ]
null
null
null
leave/models.py
shoaibsaikat/Django-Office-Management
952aa44c2d3c2f99e91c2ed1aada17ee15fc9eb0
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.db.models.deletion import CASCADE from accounts.models import User class Leave(models.Model): title = models.CharField(max_length=255, default='', blank=False) user = models.ForeignKey(User, on_delete=CASCADE, blank=False, related_name='leaves') creationDate = mode...
45.15
102
0.75526
111
903
6
0.459459
0.105105
0.117117
0.135135
0.340841
0.288288
0.168168
0.168168
0.168168
0.168168
0
0.005096
0.130676
903
19
103
47.526316
0.843312
0
0
0
0
0
0.023256
0
0
0
0
0
0
1
0.0625
false
0
0.1875
0.0625
1
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
c41c16df2e1d607a9a0d2aad44ec758217ef96ce
22,021
py
Python
svtk/vtk_animation_timer_callback.py
SimLeek/pglsl-neural
8daaffded197cf7be4432754bc5941f1bca3239c
[ "MIT" ]
5
2018-03-25T23:43:32.000Z
2019-05-18T10:35:21.000Z
svtk/vtk_animation_timer_callback.py
PyGPAI/PyGPNeural
8daaffded197cf7be4432754bc5941f1bca3239c
[ "MIT" ]
11
2017-12-24T20:03:16.000Z
2017-12-26T00:18:34.000Z
svtk/vtk_animation_timer_callback.py
SimLeek/PyGPNeural
8daaffded197cf7be4432754bc5941f1bca3239c
[ "MIT" ]
null
null
null
import time import numpy as np import vtk from vtk.util import numpy_support from svtk.lib.toolbox.integer import minmax from svtk.lib.toolbox.idarray import IdArray from svtk.lib.toolbox.numpy_helpers import normalize import math as m class VTKAnimationTimerCallback(object): """This class is called every few m...
40.629151
121
0.608374
2,959
22,021
4.260223
0.119635
0.035697
0.038077
0.034269
0.587181
0.529986
0.461606
0.451134
0.424798
0.373949
0
0.011578
0.293992
22,021
541
122
40.704251
0.799254
0.213614
0
0.322917
0
0
0.028312
0.00482
0
0
0
0.012939
0.013889
1
0.072917
false
0.006944
0.027778
0
0.121528
0.006944
0
0
0
null
0
0
0
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
c4246529ebfd4899aa1216798277f3b74d90b3f5
547
py
Python
pyscf/nao/m_rf_den.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
3
2021-02-28T00:52:53.000Z
2021-03-01T06:23:33.000Z
pyscf/nao/m_rf_den.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
36
2018-08-22T19:44:03.000Z
2020-05-09T10:02:36.000Z
pyscf/nao/m_rf_den.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
4
2018-02-14T16:28:28.000Z
2019-08-12T16:40:30.000Z
from __future__ import print_function, division import numpy as np from numpy import identity, dot, zeros, zeros_like def rf_den_via_rf0(self, rf0, v): """ Whole matrix of the interacting response via non-interacting response and interaction""" rf = zeros_like(rf0) I = identity(rf0.shape[1]) for ir,r in enume...
28.789474
94
0.718464
93
547
4.064516
0.505376
0.074074
0.079365
0.058201
0.095238
0.095238
0
0
0
0
0
0.021978
0.16819
547
18
95
30.388889
0.808791
0.248629
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.25
0
0.583333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c425a78347ab246234b9b4acc34bdb1ab5a3665b
349
py
Python
dgpolygon/gmappolygons/urls.py
mariohmol/django-google-polygon
9d9448e540a4d100d925d7170425143f126e2174
[ "MIT" ]
1
2018-04-28T17:06:23.000Z
2018-04-28T17:06:23.000Z
dgpolygon/gmappolygons/urls.py
mariohmol/django-google-polygon
9d9448e540a4d100d925d7170425143f126e2174
[ "MIT" ]
null
null
null
dgpolygon/gmappolygons/urls.py
mariohmol/django-google-polygon
9d9448e540a4d100d925d7170425143f126e2174
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin from gmappolygons import views urlpatterns = patterns('', url(r'^$', views.index, name='index'), url(r'^search', views.search, name='search'), url(r'^submit/$', views.submit, name='submit'), url(r'^show/(?P<area_id>\d+)/',...
31.727273
60
0.673352
50
349
4.68
0.46
0.068376
0
0
0
0
0
0
0
0
0
0
0.123209
349
10
61
34.9
0.764706
0
0
0
0
0
0.17765
0.065903
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
c42c74470081e712e5a554684e5bb789162adcd2
377
py
Python
lib/response.py
dpla/akara
432f14782152dd19931bdbd8f9fad19b5932426d
[ "Apache-2.0" ]
5
2015-01-30T03:50:37.000Z
2015-09-23T00:46:11.000Z
lib/response.py
dpla/akara
432f14782152dd19931bdbd8f9fad19b5932426d
[ "Apache-2.0" ]
null
null
null
lib/response.py
dpla/akara
432f14782152dd19931bdbd8f9fad19b5932426d
[ "Apache-2.0" ]
3
2015-03-09T19:16:56.000Z
2019-09-19T02:41:29.000Z
"""Information for the outgoing response code - the HTTP response code (default is "200 Ok") headers - a list of key/value pairs used for the WSGI start_response """ code = None headers = [] def add_header(key, value): """Helper function to append (key, value) to the list of response headers""" headers....
23.5625
80
0.700265
55
377
4.763636
0.581818
0.122137
0.10687
0
0
0
0
0
0
0
0
0.009934
0.198939
377
15
81
25.133333
0.857616
0.69496
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c42d5c2686fc626989593bdff74f807903b98683
1,594
py
Python
parte 3/desafio93.py
BrunoSoares-DEV/Exercicios-python
fcfd0a7b3e2c6af2b7dd8e5a15ca6585c97f7c67
[ "MIT" ]
2
2021-02-24T20:05:24.000Z
2021-02-24T20:05:41.000Z
parte 3/desafio93.py
BrunoSoares-DEV/Exercicios-python
fcfd0a7b3e2c6af2b7dd8e5a15ca6585c97f7c67
[ "MIT" ]
null
null
null
parte 3/desafio93.py
BrunoSoares-DEV/Exercicios-python
fcfd0a7b3e2c6af2b7dd8e5a15ca6585c97f7c67
[ "MIT" ]
null
null
null
jog = {} #pegando dados jog['Nome do jogador'] = str(input('Digite o nome do jogador: ')).strip().title() jog['Total partidas'] = int(input('Quantas partidas jogou: ')) #lista de gol gols = [] #Quantos gols em cada partida for i in range(0, jog['Total partidas']): gols.append(int(input(f'Quantos gols na partida ...
37.952381
161
0.717064
261
1,594
4.383142
0.402299
0.034965
0.034091
0.027972
0.041958
0
0
0
0
0
0
0.002326
0.190715
1,594
41
162
38.878049
0.883721
0.082183
0
0
0
0
0.496815
0
0
0
0
0.02439
0
1
0
false
0
0
0
0
0.1875
0
0
0
null
0
0
0
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
c4355d1898179dbc210d3d0618bca78d79edd5b7
348
py
Python
quizapp/jsonify_quiz_output.py
malgulam/100ProjectsOfCode
95026b15d858a6e97dfd847c5ec576bbc260ff61
[ "MIT" ]
8
2020-12-13T16:15:34.000Z
2021-11-13T22:45:28.000Z
quizapp/jsonify_quiz_output.py
malgulam/100ProjectsOfCode
95026b15d858a6e97dfd847c5ec576bbc260ff61
[ "MIT" ]
1
2021-06-02T03:42:39.000Z
2021-06-02T03:42:39.000Z
quizapp/jsonify_quiz_output.py
malgulam/100ProjectsOfCode
95026b15d858a6e97dfd847c5ec576bbc260ff61
[ "MIT" ]
1
2020-12-14T20:01:14.000Z
2020-12-14T20:01:14.000Z
import json #start print('start') with open('quizoutput.txt') as f: lines = f.readlines() print('loaded quiz data') print('changing to json') json_output = json.loads(lines[0]) print(json_output) with open('quizoutput.txt', 'w') as f: f.write(json_output) # for item in json_output: # print(item['ques...
19.333333
38
0.666667
52
348
4.384615
0.519231
0.175439
0.157895
0.184211
0
0
0
0
0
0
0
0.00346
0.16954
348
17
39
20.470588
0.785467
0.218391
0
0
0
0
0.246269
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.4
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
c4372286ca07457197e0279205b6dabde1342c8d
1,412
py
Python
data/migrations/0039_2_data_update_questionnaires_vmsettings.py
Duke-GCB/bespin-api
cea5c20fb2ff592adabe6ebb7ca934939aa11a34
[ "MIT" ]
null
null
null
data/migrations/0039_2_data_update_questionnaires_vmsettings.py
Duke-GCB/bespin-api
cea5c20fb2ff592adabe6ebb7ca934939aa11a34
[ "MIT" ]
137
2016-12-09T18:59:45.000Z
2021-06-10T18:55:47.000Z
data/migrations/0039_2_data_update_questionnaires_vmsettings.py
Duke-GCB/bespin-api
cea5c20fb2ff592adabe6ebb7ca934939aa11a34
[ "MIT" ]
3
2017-11-14T16:05:58.000Z
2018-12-28T18:07:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2017-12-08 18:42 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion def update_questionnaires(apps, schema_editor): """ Forward migration function to normalize settings into VMSettings and C...
36.205128
112
0.71813
174
1,412
5.632184
0.454023
0.045918
0.04898
0.065306
0.073469
0.073469
0.073469
0.073469
0.073469
0
0
0.019214
0.189093
1,412
38
113
37.157895
0.836681
0.3017
0
0
1
0
0.107966
0.042977
0
0
0
0
0
1
0.05
false
0
0.15
0
0.35
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
c438178586df87a3168fc1363cc17cdd53b3728e
4,872
py
Python
app/models.py
maxnovais/Flapy_Blog
e543faa4c8f99ef3a2cdb1470de507d9cfb330bf
[ "Apache-2.0" ]
null
null
null
app/models.py
maxnovais/Flapy_Blog
e543faa4c8f99ef3a2cdb1470de507d9cfb330bf
[ "Apache-2.0" ]
null
null
null
app/models.py
maxnovais/Flapy_Blog
e543faa4c8f99ef3a2cdb1470de507d9cfb330bf
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from . import db from config import COMMENTS_INITIAL_ENABLED from flask.ext.security import UserMixin, RoleMixin from markdown import markdown import bleach # Define models roles_users = db.Table( 'roles_users', db.Column('user_id', db.Integer(), db.ForeignKey('user.id')), db....
36.909091
77
0.632389
656
4,872
4.557927
0.184451
0.120401
0.137124
0.085619
0.592642
0.529097
0.43311
0.376254
0.365217
0.365217
0
0.013684
0.205049
4,872
131
78
37.19084
0.758327
0.002668
0
0.368932
0
0
0.078855
0
0
0
0
0
0
1
0.087379
false
0.009709
0.058252
0.048544
0.679612
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
c43aafbe58eb02eba9cd936508eecb607d118824
751
py
Python
8.1-triple-step.py
rithvikp1998/ctci
52068e94449e61aef6bac9646a7863260acc7a05
[ "MIT" ]
null
null
null
8.1-triple-step.py
rithvikp1998/ctci
52068e94449e61aef6bac9646a7863260acc7a05
[ "MIT" ]
null
null
null
8.1-triple-step.py
rithvikp1998/ctci
52068e94449e61aef6bac9646a7863260acc7a05
[ "MIT" ]
null
null
null
''' If the child is currently on the nth step, then there are three possibilites as to how it reached there: 1. Reached (n-3)th step and hopped 3 steps in one time 2. Reached (n-2)th step and hopped 2 steps in one time 3. Reached (n-1)th step and hopped 2 steps in one time The total number of possibilities is the sum...
25.896552
79
0.701731
145
751
3.6
0.337931
0.068966
0.181992
0.086207
0.114943
0.114943
0.114943
0.114943
0.114943
0
0
0.043974
0.182423
751
28
80
26.821429
0.806189
0.500666
0
0
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.133333
0.066667
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
c444346fedeae3b1a36842a83b1d34e2d12fa382
28,857
py
Python
collections/nemo_nlp/nemo_nlp/data/data_layers.py
Giuseppe5/NeMo
f946aca100c9a1bf22e6bd25fba9f80299722112
[ "Apache-2.0" ]
2
2020-05-12T05:16:10.000Z
2021-12-01T02:30:45.000Z
collections/nemo_nlp/nemo_nlp/data/data_layers.py
Giuseppe5/NeMo
f946aca100c9a1bf22e6bd25fba9f80299722112
[ "Apache-2.0" ]
3
2020-11-13T17:45:41.000Z
2022-03-12T00:28:59.000Z
collections/nemo_nlp/nemo_nlp/data/data_layers.py
Giuseppe5/NeMo
f946aca100c9a1bf22e6bd25fba9f80299722112
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 NVIDIA Corporation # If you want to add your own data layer, you should put its name in # __all__ so that it can be imported with 'from text_data_layers import *' __all__ = ['TextDataLayer', 'BertSentenceClassificationDataLayer', 'BertJointIntentSlotDataLayer', '...
34.851449
79
0.537547
2,766
28,857
5.379971
0.115691
0.041395
0.071501
0.097977
0.691083
0.659163
0.647134
0.634702
0.597944
0.597003
0
0.009141
0.382091
28,857
827
80
34.893591
0.825416
0.216828
0
0.718644
0
0
0.075167
0.013725
0
0
0
0
0
1
0.055932
false
0
0.018644
0.011864
0.128814
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c44725a87dd7a0e5d3208fe6f2ccd197531d2ad1
2,687
py
Python
Pistol.py
KRHS-GameProgramming-2014/survival-island
375b2710a2bc29551170b18638e2c00c6b2dc7c5
[ "BSD-3-Clause" ]
1
2015-04-01T12:46:26.000Z
2015-04-01T12:46:26.000Z
Pistol.py
KRHS-GameProgramming-2014/survival-island
375b2710a2bc29551170b18638e2c00c6b2dc7c5
[ "BSD-3-Clause" ]
null
null
null
Pistol.py
KRHS-GameProgramming-2014/survival-island
375b2710a2bc29551170b18638e2c00c6b2dc7c5
[ "BSD-3-Clause" ]
null
null
null
import math,sys,pygame class Pistol(pygame.sprite.Sprite): def __init__(self,player): self.facing = player.facing if self.facing == "up": self.image = pygame.image.load("rsc/Projectiles/gustu.png") self.speed = [0, -5] elif self.facing == "down": s...
33.17284
79
0.519166
320
2,687
4.34375
0.246875
0.080576
0.060432
0.057554
0.260432
0.14964
0.14964
0.040288
0
0
0
0.019676
0.356904
2,687
80
80
33.5875
0.784722
0.020841
0
0.184615
0
0
0.049448
0.038037
0
0
0
0
0
0
null
null
0
0.015385
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
c447c656ac034795409e4bb710eaaca13a84688c
3,388
py
Python
appdaemon/apps/common/common.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
3
2019-10-27T06:10:26.000Z
2020-07-21T01:27:11.000Z
appdaemon/apps/common/common.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
null
null
null
appdaemon/apps/common/common.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
null
null
null
import hassapi as hass import csv from collections import namedtuple Profile = namedtuple( "Profile", ["profile", "x_color", "y_color", "brightness"]) with open("/config/light_profiles.csv") as profiles_file: profiles_reader = csv.reader(profiles_file) next(profiles_reader) LIGHT_PROFILES = [Profile(r...
41.317073
80
0.602715
387
3,388
4.979328
0.209302
0.049818
0.047224
0.072652
0.477426
0.380903
0.329009
0.329009
0.329009
0.3041
0
0.001682
0.298111
3,388
81
81
41.82716
0.808663
0.002952
0
0.261538
0
0
0.11878
0.04532
0
0
0
0.012346
0
1
0
false
0
0.046154
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
c44d0eafae3c92e64f9041228d582ce1a1b6ed30
1,869
py
Python
mirari/SV/migrations/0052_auto_20190428_1522.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
null
null
null
mirari/SV/migrations/0052_auto_20190428_1522.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
18
2019-12-27T19:58:20.000Z
2022-02-27T08:17:49.000Z
mirari/SV/migrations/0052_auto_20190428_1522.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2019-04-28 20:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('SV', '0051_ticketproducts_offerprice'), ] operations = [ migrations.AddField( model_name='produ...
37.38
147
0.604066
196
1,869
5.627551
0.413265
0.057117
0.125113
0.146872
0.425204
0.425204
0.287398
0.085222
0
0
0
0.016801
0.267523
1,869
49
148
38.142857
0.788897
0.024077
0
0.44186
1
0
0.215148
0.016465
0
0
0
0
0
1
0
false
0
0.046512
0
0.116279
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
c458cb4e772b1e30729560fd59117cb1dab40b05
241
py
Python
src/__main__.py
Grox2006/Kayambot
a49cf7fd16fdc049500ae645784cc671b04edf87
[ "MIT" ]
null
null
null
src/__main__.py
Grox2006/Kayambot
a49cf7fd16fdc049500ae645784cc671b04edf87
[ "MIT" ]
null
null
null
src/__main__.py
Grox2006/Kayambot
a49cf7fd16fdc049500ae645784cc671b04edf87
[ "MIT" ]
null
null
null
import sys from __init__ import Bot MESSAGE_USAGE = "Usage is python %s [name] [token]" if __name__ == "__main__": if len(sys.argv) == 3: Bot(sys.argv[1], sys.argv[2]) else: print(MESSAGE_USAGE.format(sys.argv[0]))
21.909091
51
0.630705
37
241
3.72973
0.621622
0.202899
0
0
0
0
0
0
0
0
0
0.021164
0.215768
241
10
52
24.1
0.708995
0
0
0
0
0
0.170124
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.125
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
c45a35a45e18477dcb0c3a971fc4e41ecd533922
985
py
Python
app/__init__.py
logicalicy/flask-react-boilerplate
2a999c969a7fc7d244830ebba02a00f0feca79dd
[ "MIT" ]
2
2017-02-27T16:48:08.000Z
2019-05-10T11:22:07.000Z
app/__init__.py
logicalicy/flask-react-boilerplate
2a999c969a7fc7d244830ebba02a00f0feca79dd
[ "MIT" ]
null
null
null
app/__init__.py
logicalicy/flask-react-boilerplate
2a999c969a7fc7d244830ebba02a00f0feca79dd
[ "MIT" ]
null
null
null
# Created with tutorials: # https://www.digitalocean.com/community/tutorials/how-to-structure-large-flask-applications # http://flask.pocoo.org/docs/0.12/tutorial from flask import Flask, g, render_template from flask_sqlalchemy import SQLAlchemy import sqlite3 # Define WSGI application object. app = Flask(__name__...
25.921053
92
0.792893
138
985
5.514493
0.536232
0.089356
0.078844
0.057819
0
0
0
0
0
0
0
0.014806
0.108629
985
37
93
26.621622
0.851936
0.441624
0
0
0
0
0.037244
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0.066667
0.466667
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
c45d9da847d632f929a40311d340ee5e03a9dfff
287
py
Python
addons/iap_crm/models/crm_lead.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/iap_crm/models/crm_lead.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/iap_crm/models/crm_lead.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, models class Lead(models.Model): _inherit = 'crm.lead' reveal_id = fields.Char(string='Reveal ID', help="Technical ID of reveal request done by IAP.")
26.090909
99
0.703833
43
287
4.651163
0.790698
0.08
0
0
0
0
0
0
0
0
0
0.004255
0.181185
287
10
100
28.7
0.846809
0.327526
0
0
0
0
0.315789
0
0
0
0
0
0
1
0
false
0
0.25
0
1
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
c45fabb5527e1d2513cfd056db4a65258232ae26
1,058
py
Python
two_children.py
daniel2019-max/HackerRank-preparation-month
400f8c0cfaa9fc8e13a683c15ecb5d2341d9c209
[ "MIT" ]
null
null
null
two_children.py
daniel2019-max/HackerRank-preparation-month
400f8c0cfaa9fc8e13a683c15ecb5d2341d9c209
[ "MIT" ]
null
null
null
two_children.py
daniel2019-max/HackerRank-preparation-month
400f8c0cfaa9fc8e13a683c15ecb5d2341d9c209
[ "MIT" ]
null
null
null
# Two children, Lily and Ron, want to share a chocolate bar. Each of the squares has an integer on it. # Lily decides to share a contiguous segment of the bar selected such that: # The length of the segment matches Ron's birth month, and, # The sum of the integers on the squares is equal to his birth day. # Determine...
31.117647
102
0.670132
177
1,058
4.00565
0.457627
0.035261
0.038082
0.045134
0
0
0
0
0
0
0
0.037221
0.238185
1,058
33
103
32.060606
0.842432
0.466919
0
0
0
0
0.074141
0
0
0
0
0.030303
0
1
0.0625
false
0
0
0
0.125
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
1
0
0
0
0
0
0
0
0
0
0
1
c46046acfa73778c21a31da519b8cdbcc2cefaef
3,517
py
Python
sdk/python/pulumi_sonarqube/get_users.py
jshield/pulumi-sonarqube
53664a97903af3ecdf4f613117d83d0acae8e53e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_sonarqube/get_users.py
jshield/pulumi-sonarqube
53664a97903af3ecdf4f613117d83d0acae8e53e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_sonarqube/get_users.py
jshield/pulumi-sonarqube
53664a97903af3ecdf4f613117d83d0acae8e53e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
31.972727
119
0.644868
431
3,517
5
0.269142
0.062645
0.037123
0.069606
0.266357
0.210673
0.164269
0.077958
0.054756
0.054756
0
0.000378
0.247654
3,517
109
120
32.266055
0.814059
0.130793
0
0.102564
1
0
0.123283
0.01876
0
0
0
0
0
1
0.115385
false
0
0.064103
0.051282
0.294872
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
c46cb76d02d71b063cedf52c09eb7f327cd308da
10,606
py
Python
now/collection/prov_execution/argument_captors.py
CrystalMei/Prov_Build
695576c36b7d5615f1cc568954658f8a7ce9eeba
[ "MIT" ]
2
2017-11-10T16:17:11.000Z
2021-12-19T18:43:22.000Z
now/collection/prov_execution/argument_captors.py
CrystalMei/Prov_Build
695576c36b7d5615f1cc568954658f8a7ce9eeba
[ "MIT" ]
null
null
null
now/collection/prov_execution/argument_captors.py
CrystalMei/Prov_Build
695576c36b7d5615f1cc568954658f8a7ce9eeba
[ "MIT" ]
null
null
null
# Copyright (c) 2016 Universidade Federal Fluminense (UFF) # Copyright (c) 2016 Polytechnic Institute of New York University. # Copyright (c) 2018, 2019, 2020 President and Fellows of Harvard College. # This file is part of ProvBuild. """Capture arguments from calls""" from __future__ import (absolute_import, print_f...
36.826389
127
0.581463
1,104
10,606
5.461051
0.210145
0.019904
0.025543
0.022889
0.307845
0.246807
0.196716
0.143473
0.12755
0.12755
0
0.005977
0.337451
10,606
287
128
36.954704
0.851999
0.212898
0
0.289017
0
0
0.009828
0
0
0
0
0.010453
0.011561
1
0.057803
false
0.028902
0.040462
0
0.16763
0.00578
0
0
0
null
0
0
0
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
c472af02ddcb4584d404fd75d6b5093bc3a9b31d
554
py
Python
rbc/opening/opening.py
rebuildingcode/hardware
df38d4b955047fdea69dda6b662c56ac301799a2
[ "BSD-3-Clause" ]
null
null
null
rbc/opening/opening.py
rebuildingcode/hardware
df38d4b955047fdea69dda6b662c56ac301799a2
[ "BSD-3-Clause" ]
27
2019-09-04T06:29:34.000Z
2020-04-19T19:41:44.000Z
rbc/opening/opening.py
rebuildingcode/hardware
df38d4b955047fdea69dda6b662c56ac301799a2
[ "BSD-3-Clause" ]
2
2020-02-28T02:56:31.000Z
2020-02-28T03:12:07.000Z
from shapely.geometry import Polygon from ..point import Point class Opening(Polygon): """ Openings are rectangular only. """ def __init__(self, width, height): self.width = width self.height = height points = [ Point(0, 0), Point(0, height), Point(width, height...
20.518519
80
0.539711
64
554
4.546875
0.53125
0.061856
0.109966
0
0
0
0
0
0
0
0
0.01084
0.333935
554
27
81
20.518519
0.777778
0.17148
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0.083333
0.166667
0
0.416667
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
c474f216680e6a9b4d600c4b0a1221fea638bba3
9,353
py
Python
goblet/tests/test_scheduler.py
Aaron-Gill/goblet
30c0dd73b2f39e443adb2ccda6f9009e980c53ee
[ "Apache-2.0" ]
null
null
null
goblet/tests/test_scheduler.py
Aaron-Gill/goblet
30c0dd73b2f39e443adb2ccda6f9009e980c53ee
[ "Apache-2.0" ]
null
null
null
goblet/tests/test_scheduler.py
Aaron-Gill/goblet
30c0dd73b2f39e443adb2ccda6f9009e980c53ee
[ "Apache-2.0" ]
null
null
null
from unittest.mock import Mock from goblet import Goblet from goblet.resources.scheduler import Scheduler from goblet.test_utils import ( get_responses, get_response, mock_dummy_function, dummy_function, ) class TestScheduler: def test_add_schedule(self, monkeypatch): app = Goblet(function...
36.678431
101
0.5626
866
9,353
5.887991
0.1097
0.086684
0.072171
0.047068
0.742106
0.722102
0.675034
0.665621
0.596391
0.543244
0
0.009559
0.284187
9,353
254
102
36.822835
0.752054
0
0
0.475113
0
0
0.29969
0.055169
0
0
0
0
0.126697
1
0.036199
false
0
0.0181
0
0.058824
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c47c8df17ea394b09ef2defebfcd36f91bad20ef
8,861
py
Python
grafeas/models/deployable_deployment_details.py
nyc/client-python
e73eab8953abf239305080673f7c96a54b776f72
[ "Apache-2.0" ]
null
null
null
grafeas/models/deployable_deployment_details.py
nyc/client-python
e73eab8953abf239305080673f7c96a54b776f72
[ "Apache-2.0" ]
null
null
null
grafeas/models/deployable_deployment_details.py
nyc/client-python
e73eab8953abf239305080673f7c96a54b776f72
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Grafeas API An API to insert and retrieve annotations on cloud artifacts. # noqa: E501 OpenAPI spec version: v1alpha1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from grafeas.models.deployment_deta...
31.091228
153
0.623632
979
8,861
5.498468
0.152196
0.056474
0.171652
0.144343
0.53446
0.452536
0.402192
0.339773
0.208248
0.13264
0
0.020673
0.295791
8,861
284
154
31.200704
0.841987
0.433247
0
0.076271
1
0
0.067727
0.006026
0
0
0
0
0
1
0.169492
false
0
0.033898
0
0.338983
0.016949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c47f26765a0cb339776a2ad95fc385826831ad79
982
py
Python
6.all_species/species_data/merge_species_data.py
oaxiom/episcan
b6616536d621ff02b92a7678f80b5bfbd38c6dc8
[ "MIT" ]
null
null
null
6.all_species/species_data/merge_species_data.py
oaxiom/episcan
b6616536d621ff02b92a7678f80b5bfbd38c6dc8
[ "MIT" ]
null
null
null
6.all_species/species_data/merge_species_data.py
oaxiom/episcan
b6616536d621ff02b92a7678f80b5bfbd38c6dc8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys, os, glob from glbase3 import * all_species = glload('species_annotations/species.glb') newl = [] for file in glob.glob('pep_counts/*.txt'): oh = open(file, 'rt') count = int(oh.readline().split()[0]) oh.close() species_name = os.path.split(file)[1].split('.')[0].l...
25.179487
97
0.701629
141
982
4.695035
0.446809
0.21148
0.128399
0.120846
0.141994
0.060423
0
0
0
0
0
0.011765
0.13442
982
38
98
25.842105
0.767059
0.08554
0
0
0
0
0.184358
0.034637
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.045455
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
c487c6e672ed0de9246b310bca5ef690e836e2e6
10,241
py
Python
margarita/main.py
w0de/margarita
50c7c07b8ee3d5d6c801833be7c147533c33fd70
[ "Unlicense" ]
3
2018-07-27T22:19:02.000Z
2019-09-06T18:08:58.000Z
margarita/main.py
w0de/margarita
50c7c07b8ee3d5d6c801833be7c147533c33fd70
[ "Unlicense" ]
null
null
null
margarita/main.py
w0de/margarita
50c7c07b8ee3d5d6c801833be7c147533c33fd70
[ "Unlicense" ]
1
2019-05-21T18:07:46.000Z
2019-05-21T18:07:46.000Z
#!/usr/bin/env python from flask import Flask from flask import jsonify, render_template, redirect from flask import request, Response from saml_auth import BaseAuth, SamlAuth import os, sys try: import json except ImportError: # couldn't find json, try simplejson library import simplejson as json import getopt fro...
31.804348
128
0.721023
1,259
10,241
5.741064
0.227164
0.074709
0.064195
0.024903
0.37078
0.336054
0.316408
0.200609
0.162701
0.146375
0
0.017415
0.147739
10,241
321
129
31.903427
0.810724
0.070208
0
0.209821
0
0.022321
0.190316
0.092709
0
0
0
0
0
0
null
null
0
0.053571
null
null
0.058036
0
0
0
null
0
0
0
0
0
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
67046e56ceee4d6e7815e597ff49d092a5c53d48
1,907
py
Python
neploid.py
GravityI/neploid
4b68e682fcda97a95d155bea288aa90740842b66
[ "MIT" ]
null
null
null
neploid.py
GravityI/neploid
4b68e682fcda97a95d155bea288aa90740842b66
[ "MIT" ]
null
null
null
neploid.py
GravityI/neploid
4b68e682fcda97a95d155bea288aa90740842b66
[ "MIT" ]
null
null
null
import discord import random import asyncio import logging import urllib.request from discord.ext import commands bot = commands.Bot(command_prefix='nep ', description= "Nep Nep") counter = 0 countTask = None @bot.event async def on_ready(): print('Logged in as') print(bot.user.name) # print(bot.user.id) ...
28.893939
153
0.681699
266
1,907
4.830827
0.424812
0.049805
0.046693
0.06537
0.203891
0.203891
0.112062
0
0
0
0
0.019293
0.184583
1,907
66
154
28.893939
0.807074
0.009439
0
0.074074
0
0.018519
0.172944
0
0
0
0
0
0
1
0
false
0.074074
0.111111
0
0.111111
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6707b1d92879723bb590b117c8481d4a309bdf74
5,591
py
Python
src/providers/snmp.py
tcuthbert/napi
12ea1a4fb1075749b40b2d93c3d4ab7fb75db8b5
[ "MIT" ]
null
null
null
src/providers/snmp.py
tcuthbert/napi
12ea1a4fb1075749b40b2d93c3d4ab7fb75db8b5
[ "MIT" ]
null
null
null
src/providers/snmp.py
tcuthbert/napi
12ea1a4fb1075749b40b2d93c3d4ab7fb75db8b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # author : Thomas Cuthbert import os, sys from providers.provider import Provider from config.config import Config sys.path.append('../') def _reverse_dict(d): ret = {} for key, val in d.items(): if ret.has_key(val): ret[val].append(key) ...
31.587571
137
0.603291
667
5,591
4.808096
0.277361
0.017462
0.018709
0.014967
0.328656
0.23324
0.23324
0.218896
0.218896
0.195198
0
0.007254
0.284922
5,591
176
138
31.767045
0.794897
0.031479
0
0.26087
0
0
0.07401
0
0
0
0
0.005682
0
0
null
null
0
0.043478
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
6707dda4f20fd2cb10f818588c5b114047a6d11c
2,743
py
Python
src/oscar/apps/dashboard/app.py
frmdstryr/django-oscar
32bf8618ebb688df6ba306dc7703de8e61b4e78c
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/dashboard/app.py
frmdstryr/django-oscar
32bf8618ebb688df6ba306dc7703de8e61b4e78c
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/dashboard/app.py
frmdstryr/django-oscar
32bf8618ebb688df6ba306dc7703de8e61b4e78c
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from django.contrib.auth import views as auth_views from django.contrib.auth.forms import AuthenticationForm from oscar.core.application import ( DashboardApplication as BaseDashboardApplication) from oscar.core.loading import get_class class DashboardApplication(BaseDashboardApp...
44.967213
91
0.654028
320
2,743
5.415625
0.203125
0.039238
0.147144
0.16157
0
0
0
0
0
0
0
0
0.199781
2,743
60
92
45.716667
0.789522
0
0
0
0
0
0.258476
0.075465
0
0
0
0
0
1
0.019608
false
0
0.098039
0
0.490196
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
67081cebddc67151d15ce739da186891614e2d4d
4,783
py
Python
wedding/migrations/0004_auto_20170407_2017.py
chadgates/thetravelling2
3646d64acb0fbf5106066700f482c9013f5fb7d0
[ "MIT" ]
null
null
null
wedding/migrations/0004_auto_20170407_2017.py
chadgates/thetravelling2
3646d64acb0fbf5106066700f482c9013f5fb7d0
[ "MIT" ]
null
null
null
wedding/migrations/0004_auto_20170407_2017.py
chadgates/thetravelling2
3646d64acb0fbf5106066700f482c9013f5fb7d0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-04-07 20:17 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ migrations.swapp...
46.892157
135
0.582061
460
4,783
5.895652
0.267391
0.064897
0.084808
0.09587
0.612094
0.612094
0.531342
0.503319
0.455752
0.455752
0
0.013651
0.280159
4,783
101
136
47.356436
0.774034
0.014217
0
0.510638
1
0
0.139431
0.004881
0
0
0
0
0
1
0
false
0
0.053191
0
0.085106
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
670bfcaeeccc178a263df62b6b3d972d4904cdc0
5,122
py
Python
machine-learning-ex2/ex2/ex2.py
DuffAb/coursera-ml-py
efcfb0847ac7d1e181cb6b93954b0176ce6162d4
[ "MIT" ]
null
null
null
machine-learning-ex2/ex2/ex2.py
DuffAb/coursera-ml-py
efcfb0847ac7d1e181cb6b93954b0176ce6162d4
[ "MIT" ]
null
null
null
machine-learning-ex2/ex2/ex2.py
DuffAb/coursera-ml-py
efcfb0847ac7d1e181cb6b93954b0176ce6162d4
[ "MIT" ]
null
null
null
# Machine Learning Online Class - Exercise 2: Logistic Regression # # Instructions # ------------ # # This file contains code that helps you get started on the logistic # regression exercise. You will need to complete the following functions # in this exericse: # # sigmoid.py # costFunction.py # predic...
34.608108
128
0.689184
830
5,122
4.203614
0.285542
0.027228
0.057323
0.064488
0.299513
0.239897
0.239897
0.125537
0.1135
0.097449
0
0.044302
0.145061
5,122
147
129
34.843537
0.752455
0.396134
0
0.109375
0
0.03125
0.427867
0.089057
0
0
0
0
0
1
0.03125
false
0
0.125
0.03125
0.1875
0.421875
0
0
0
null
0
0
0
0
0
0
0
0
0
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
6712802d8a80e0d4a1dc7de07b3fd9bb724b208d
4,398
py
Python
srcWatteco/TICs/_poubelle/TIC_ICEp.py
OStephan29/Codec-Python
76d651bb23daf1d9307c8b84533d9f24a59cea28
[ "BSD-3-Clause" ]
1
2022-01-12T15:46:58.000Z
2022-01-12T15:46:58.000Z
srcWatteco/TICs/_poubelle/TIC_ICEp.py
OStephan29/Codec-Python
76d651bb23daf1d9307c8b84533d9f24a59cea28
[ "BSD-3-Clause" ]
null
null
null
srcWatteco/TICs/_poubelle/TIC_ICEp.py
OStephan29/Codec-Python
76d651bb23daf1d9307c8b84533d9f24a59cea28
[ "BSD-3-Clause" ]
1
2021-10-05T08:40:15.000Z
2021-10-05T08:40:15.000Z
# -*- coding: utf-8 -*- # Pour passer de TICDataXXXFromBitfields @ TICDataBatchXXXFromFieldIndex # Expressions régulière notepad++ # Find : TICDataSelectorIfBit\( ([0-9]*), Struct\("([^\"]*)"\/([^\)]*).* # Replace: \1 : \3, # \2 from ._TIC_Tools import * from ._TIC_Types import * TICDataICEpFromBitfields = Struct...
33.572519
74
0.698272
444
4,398
6.871622
0.304054
0.362832
0.049164
0
0
0
0
0
0
0
0
0.093884
0.152342
4,398
130
75
33.830769
0.724517
0.161664
0
0
0
0
0.082506
0
0
0
0
0
0
1
0
false
0
0.020202
0
0.020202
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
671a1a30341f98dfd27e877827d5eea516829e2a
7,765
py
Python
env/lib/python3.9/site-packages/ansible/modules/cloud/amazon/_ec2_vpc_vpn_facts.py
unbounce/aws-name-asg-instances
e0379442e3ce71bf66ba9b8975b2cc57a2c7648d
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
env/lib/python3.9/site-packages/ansible/modules/cloud/amazon/_ec2_vpc_vpn_facts.py
unbounce/aws-name-asg-instances
e0379442e3ce71bf66ba9b8975b2cc57a2c7648d
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
env/lib/python3.9/site-packages/ansible/modules/cloud/amazon/_ec2_vpc_vpn_facts.py
unbounce/aws-name-asg-instances
e0379442e3ce71bf66ba9b8975b2cc57a2c7648d
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
#!/usr/bin/python # Copyright: Ansible Project # 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 DOCUMENTATION = r''' --- module: ec2_vpc_vpn_info version_added: 1.0.0 short_description:...
35.619266
157
0.642112
914
7,765
5.291028
0.317287
0.056452
0.07072
0.056452
0.32775
0.228081
0.153846
0.106079
0.074648
0.019851
0
0.019913
0.288603
7,765
217
158
35.78341
0.855539
0.020734
0
0.357895
0
0.026316
0.714737
0.042895
0
0
0
0
0
1
0.015789
false
0.005263
0.031579
0.005263
0.052632
0.005263
0
0
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
671c056e5378258e43c069fd46366a89b0af73b7
202
py
Python
api/__init__.py
zhangyouliang/TencentComicBook
74d8e7e787f70554d5d982687540a6ac3225b9ed
[ "MIT" ]
null
null
null
api/__init__.py
zhangyouliang/TencentComicBook
74d8e7e787f70554d5d982687540a6ac3225b9ed
[ "MIT" ]
null
null
null
api/__init__.py
zhangyouliang/TencentComicBook
74d8e7e787f70554d5d982687540a6ac3225b9ed
[ "MIT" ]
null
null
null
from flask import Flask def create_app(): app = Flask(__name__) app.config['JSON_AS_ASCII'] = False from .views import app as main_app app.register_blueprint(main_app) return app
18.363636
39
0.70297
30
202
4.4
0.566667
0.090909
0
0
0
0
0
0
0
0
0
0
0.217822
202
10
40
20.2
0.835443
0
0
0
0
0
0.064356
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
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
671d6732bc9abaae404bc6f0b8c59f26d23ca716
3,337
py
Python
src/udpa/annotations/versioning_pb2.py
pomerium/enterprise-client-python
366d72cc9cd6dc05fae704582deb13b1ccd20a32
[ "Apache-2.0" ]
1
2021-09-14T04:34:29.000Z
2021-09-14T04:34:29.000Z
src/udpa/annotations/versioning_pb2.py
pomerium/enterprise-client-python
366d72cc9cd6dc05fae704582deb13b1ccd20a32
[ "Apache-2.0" ]
3
2021-09-15T15:10:41.000Z
2022-01-04T21:03:03.000Z
src/udpa/annotations/versioning_pb2.py
pomerium/enterprise-client-python
366d72cc9cd6dc05fae704582deb13b1ccd20a32
[ "Apache-2.0" ]
1
2021-09-13T21:51:37.000Z
2021-09-13T21:51:37.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: udpa/annotations/versioning.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection...
39.258824
374
0.802218
393
3,337
6.496183
0.318066
0.058754
0.048962
0.047004
0.29338
0.233059
0.177047
0.143361
0.113592
0.113592
0
0.025371
0.0905
3,337
84
375
39.72619
0.815815
0.0905
0
0.15625
1
0.015625
0.242394
0.197421
0
0
0
0
0
1
0
false
0
0.078125
0
0.078125
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
671ef5ab0fb204c856b7864f6aaa3913e2ce45e8
2,787
py
Python
modules/action/scan_smbclient_nullsession.py
mrpnkt/apt2
542fb0593069c900303421f3f24a499ce8f3a6a8
[ "MIT" ]
37
2018-08-24T20:13:19.000Z
2022-02-22T08:41:24.000Z
modules/action/scan_smbclient_nullsession.py
zu3s/apt2-1
67325052d2713a363183c23188a67e98a379eec7
[ "MIT" ]
4
2020-06-14T23:16:45.000Z
2021-03-08T14:18:21.000Z
modules/action/scan_smbclient_nullsession.py
zu3s/apt2-1
67325052d2713a363183c23188a67e98a379eec7
[ "MIT" ]
23
2018-11-15T13:00:09.000Z
2021-08-07T18:53:04.000Z
import re from core.actionModule import actionModule from core.keystore import KeyStore as kb from core.utils import Utils class scan_smbclient_nullsession(actionModule): def __init__(self, config, display, lock): super(scan_smbclient_nullsession, self).__init__(config, display, lock) self.title ...
42.227273
108
0.545748
307
2,787
4.882736
0.462541
0.033356
0.032021
0.022682
0
0
0
0
0
0
0
0.014811
0.345892
2,787
65
109
42.876923
0.80746
0.139218
0
0
0
0
0.184906
0
0
0
0
0.015385
0
1
0.075
false
0
0.1
0
0.225
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
6724bee4efbfb26d55e405a724ed5a24e2b08168
8,496
py
Python
engine/audio/audio_director.py
codehearts/pickles-fetch-quest
ca9b3c7fe26acb50e1e2d654d068f5bb953bc427
[ "MIT" ]
3
2017-12-07T19:17:36.000Z
2021-07-29T18:24:25.000Z
engine/audio/audio_director.py
codehearts/pickles-fetch-quest
ca9b3c7fe26acb50e1e2d654d068f5bb953bc427
[ "MIT" ]
41
2017-11-11T06:00:08.000Z
2022-03-28T23:27:25.000Z
engine/audio/audio_director.py
codehearts/pickles-fetch-quest
ca9b3c7fe26acb50e1e2d654d068f5bb953bc427
[ "MIT" ]
2
2018-08-31T23:49:00.000Z
2021-09-21T00:42:48.000Z
from .audio_source import AudioSource from engine import disk import pyglet.media class AudioDirector(object): """Director for loading audio and controlling playback. Attributes: attenuation_distance (int): The default attenuation distance for newly loaded audio. Existing audio will retai...
38.27027
79
0.631474
1,092
8,496
4.833333
0.190476
0.043767
0.02122
0.033346
0.363206
0.341228
0.306556
0.270936
0.255968
0.236264
0
0.006192
0.296728
8,496
221
80
38.443439
0.877155
0.556144
0
0.19697
0
0
0.008772
0
0
0
0
0
0
1
0.212121
false
0
0.045455
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
1
0
0
0
0
0
0
0
1
6726c80fc78ce012124f71d544ed59aef2223c32
2,858
py
Python
source/windows10 system repair tool.py
programmer24680/windows10-system-repair-tool
130e9c55a7448811994a4bc04f2c3362d96cf9c9
[ "MIT" ]
1
2021-01-25T06:44:45.000Z
2021-01-25T06:44:45.000Z
source/windows10 system repair tool.py
programmer24680/windows10-system-repair-tool
130e9c55a7448811994a4bc04f2c3362d96cf9c9
[ "MIT" ]
null
null
null
source/windows10 system repair tool.py
programmer24680/windows10-system-repair-tool
130e9c55a7448811994a4bc04f2c3362d96cf9c9
[ "MIT" ]
null
null
null
import os import time print("=====================================================================") print(" ") print(" STARTING SYSTEM REPAIR ") print(" ...
42.029412
109
0.537089
328
2,858
4.664634
0.280488
0.082353
0.078431
0.098039
0.361438
0.319608
0.303268
0.203268
0.128105
0.082353
0
0.012444
0.297061
2,858
67
110
42.656716
0.749129
0
0
0.477612
0
0.014925
0.543737
0.063681
0
0
0
0
0
1
0
false
0
0.029851
0
0.029851
0.432836
0
0
0
null
0
0
0
0
0
0
0
0
0
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
672a7017194500a70a969cf6e26d3c8f610f807f
2,765
py
Python
src/sonic_ax_impl/main.py
stepanblyschak/sonic-snmpagent
45edd7e689922ecf90697d099285f7cce99742c8
[ "Apache-2.0" ]
13
2016-03-09T20:38:16.000Z
2021-02-04T17:39:27.000Z
src/sonic_ax_impl/main.py
stepanblyschak/sonic-snmpagent
45edd7e689922ecf90697d099285f7cce99742c8
[ "Apache-2.0" ]
167
2017-02-01T23:16:11.000Z
2022-03-31T02:22:08.000Z
src/sonic_ax_impl/main.py
xumia/sonic-snmpagent
4e063e4ade89943f2413a767f24564aecfa2cd1c
[ "Apache-2.0" ]
89
2016-03-09T20:38:18.000Z
2022-03-09T09:16:13.000Z
""" SNMP subagent entrypoint. """ import asyncio import functools import os import signal import sys import ax_interface from sonic_ax_impl.mibs import ieee802_1ab from . import logger from .mibs.ietf import rfc1213, rfc2737, rfc2863, rfc3433, rfc4292, rfc4363 from .mibs.vendor import dell, cisco # Background task u...
32.151163
111
0.718626
317
2,765
6.123028
0.470032
0.055641
0.044822
0.021638
0.02576
0
0
0
0
0
0
0.040126
0.19783
2,765
85
112
32.529412
0.834986
0.207233
0
0
0
0
0.050902
0
0
0
0
0.011765
0
1
0.035714
false
0
0.178571
0
0.232143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
67366ca8b5a32e45010c5e5c8a95158feb06f5b0
1,952
py
Python
sysinv/cgts-client/cgts-client/cgtsclient/v1/load.py
SidneyAn/config
d694cc5d79436ea7d6170881c23cbfc8441efc0f
[ "Apache-2.0" ]
null
null
null
sysinv/cgts-client/cgts-client/cgtsclient/v1/load.py
SidneyAn/config
d694cc5d79436ea7d6170881c23cbfc8441efc0f
[ "Apache-2.0" ]
null
null
null
sysinv/cgts-client/cgts-client/cgtsclient/v1/load.py
SidneyAn/config
d694cc5d79436ea7d6170881c23cbfc8441efc0f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015-2020 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # from cgtsclient.common import base from cgtsclient import exc CREATION_ATTRIBUTES = ['software_version', 'compatible_version', 'required_patches'] IMPORT_ATTRIBUTES = ['path_to_iso', 'path_to_sig', '...
26.378378
81
0.589139
234
1,952
4.705128
0.32906
0.063579
0.059946
0.032698
0.211626
0.148956
0.148956
0.148956
0.050863
0
0
0.013062
0.294057
1,952
73
82
26.739726
0.785922
0.043033
0
0.102041
0
0
0.113795
0.027375
0
0
0
0
0
1
0.183673
false
0
0.163265
0.040816
0.591837
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
673a564ceef3de9745d7d4bb80242204d7ba623d
1,843
py
Python
k_means.py
sokrutu/imagemean
680bab26a1841cd8d4e03beba020709a5cb434a2
[ "MIT" ]
null
null
null
k_means.py
sokrutu/imagemean
680bab26a1841cd8d4e03beba020709a5cb434a2
[ "MIT" ]
null
null
null
k_means.py
sokrutu/imagemean
680bab26a1841cd8d4e03beba020709a5cb434a2
[ "MIT" ]
null
null
null
from random import randint def k_means(data, K): """ k-Means clustering TODO: Assumes values from 0-255 :param data: NxD array of numbers :param K: The number of clusters :return: Tuple of cluster means (KxD array) and cluster assignments (Nx1 with values from 1 to K) """ N = len(dat...
25.597222
101
0.511666
267
1,843
3.483146
0.322097
0.052688
0.060215
0.03871
0.15914
0.077419
0
0
0
0
0
0.034061
0.37873
1,843
71
102
25.957746
0.778166
0.222463
0
0.113636
0
0
0.01361
0
0
0
0
0.014085
0
1
0.068182
false
0
0.022727
0
0.159091
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
673b17b5d8b3ab21d7358bca547447f1eb5fad33
24,476
py
Python
3rd party/YOLO_network.py
isaiasfsilva/ROLO
6612007e35edb73dac734e7a4dac2cd4c1dca6c1
[ "Apache-2.0" ]
962
2016-07-22T01:36:20.000Z
2022-03-30T01:34:35.000Z
3rd party/YOLO_network.py
isaiasfsilva/ROLO
6612007e35edb73dac734e7a4dac2cd4c1dca6c1
[ "Apache-2.0" ]
57
2016-08-12T15:33:31.000Z
2022-01-29T19:16:01.000Z
3rd party/YOLO_network.py
isaiasfsilva/ROLO
6612007e35edb73dac734e7a4dac2cd4c1dca6c1
[ "Apache-2.0" ]
342
2016-07-22T01:36:26.000Z
2022-02-26T23:00:25.000Z
import os import numpy as np import tensorflow as tf import cv2 import time import sys import pickle import ROLO_utils as util class YOLO_TF: fromfile = None tofile_img = 'test/output.jpg' tofile_txt = 'test/output.txt' imshow = True filewrite_img = False filewrite_txt = False disp_console = True weights_file ...
35.6793
209
0.664774
4,130
24,476
3.769734
0.115496
0.036997
0.02004
0.00334
0.460402
0.410046
0.381078
0.375554
0.364249
0.34087
0
0.063317
0.168246
24,476
685
210
35.731387
0.701444
0.048047
0
0.318359
0
0.003906
0.056617
0.003498
0
0
0
0
0.001953
0
null
null
0
0.015625
null
null
0.056641
0
0
0
null
0
0
0
0
0
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
673d6da7ddbe2f62dc10d702de83d4dd27b4df32
1,059
py
Python
msph/clients/ms_online.py
CultCornholio/solenya
583cb5f36825808c7cdc2de03f565723a32ae8d3
[ "MIT" ]
11
2021-09-01T05:04:08.000Z
2022-02-17T01:09:58.000Z
msph/clients/ms_online.py
CultCornholio/solenya
583cb5f36825808c7cdc2de03f565723a32ae8d3
[ "MIT" ]
null
null
null
msph/clients/ms_online.py
CultCornholio/solenya
583cb5f36825808c7cdc2de03f565723a32ae8d3
[ "MIT" ]
2
2021-09-08T19:12:53.000Z
2021-10-05T17:52:11.000Z
from .framework import Client, Resource from . import constants as const client = Client( base_url='https://login.microsoftonline.com', base_headers={ 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0', 'Content-Type': 'application/x-www-form-urlencoded', ...
32.090909
110
0.686497
142
1,059
4.908451
0.408451
0.068867
0.073171
0.057389
0.292683
0.176471
0.176471
0
0
0
0
0.035227
0.169027
1,059
32
111
33.09375
0.756818
0
0
0.222222
0
0.037037
0.309726
0.119924
0
0
0
0
0
1
0.111111
false
0
0.074074
0.111111
0.296296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
6746ba919e9bbb1f397db2429492049488882aa8
1,361
py
Python
server/admin.py
allisto/allistic-server
848edb71b4709ad0734b83a43de4ac8c58e88fdf
[ "Apache-2.0" ]
5
2019-03-04T08:28:08.000Z
2019-03-05T05:55:55.000Z
server/admin.py
allisto/allistic-server
848edb71b4709ad0734b83a43de4ac8c58e88fdf
[ "Apache-2.0" ]
7
2019-03-03T19:45:02.000Z
2021-03-18T21:26:08.000Z
server/admin.py
allisto/allistic-server
848edb71b4709ad0734b83a43de4ac8c58e88fdf
[ "Apache-2.0" ]
1
2019-03-01T11:15:07.000Z
2019-03-01T11:15:07.000Z
from django.contrib import admin from .models import Doctor, ConsultationTime, Medicine, Allergy, Child, Parent admin.site.site_header = "Allisto - We Do Good" @admin.register(Doctor) class DoctorAdmin(admin.ModelAdmin): list_display = ('name', 'aadhar_number', 'specialization', 'email', 'phone_number') lis...
30.931818
87
0.702425
145
1,361
6.413793
0.317241
0.069892
0.102151
0.139785
0.376344
0.344086
0.344086
0.187097
0.187097
0.187097
0
0
0.135195
1,361
43
88
31.651163
0.790144
0
0
0.206897
0
0
0.280676
0
0
0
0
0
0
1
0
false
0
0.068966
0
0.758621
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
674e48cd30f8211b37cb1b97721c2c716552aabd
605
py
Python
Python/bank-robbers.py
JaredLGillespie/CodinGame
7e14078673300f66d56c8af4f66d9bf5d2229fa6
[ "MIT" ]
1
2020-01-05T17:44:57.000Z
2020-01-05T17:44:57.000Z
Python/bank-robbers.py
JaredLGillespie/CodinGame
7e14078673300f66d56c8af4f66d9bf5d2229fa6
[ "MIT" ]
null
null
null
Python/bank-robbers.py
JaredLGillespie/CodinGame
7e14078673300f66d56c8af4f66d9bf5d2229fa6
[ "MIT" ]
2
2020-09-27T16:02:53.000Z
2021-11-24T09:08:59.000Z
# https://www.codingame.com/training/easy/bank-robbers from heapq import * def calc_vault_time(c, n): return 10**n * 5**(c - n) def solution(): robbers = int(input()) vault = int(input()) vault_times = [] for i in range(vault): c, n = map(int, input().split()) vault_times.appen...
20.862069
66
0.609917
81
605
4.395062
0.493827
0.219101
0.073034
0.078652
0.08427
0
0
0
0
0
0
0.006652
0.254545
605
28
67
21.607143
0.782705
0.08595
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.055556
0.055556
0.222222
0.055556
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
674e497c1af4728fb031faf7f24fbf2bf5bd7b4b
576
py
Python
14Django/day04/BookManager/introduction1.py
HaoZhang95/PythonAndMachineLearning
b897224b8a0e6a5734f408df8c24846a98c553bf
[ "MIT" ]
937
2019-05-08T08:46:25.000Z
2022-03-31T12:56:07.000Z
14Django/day04/BookManager/introduction1.py
Sakura-gh/Python24
b97e18867264a0647d5645c7d757a0040e755577
[ "MIT" ]
47
2019-09-17T10:06:02.000Z
2022-03-11T23:46:52.000Z
14Django/day04/BookManager/introduction1.py
Sakura-gh/Python24
b97e18867264a0647d5645c7d757a0040e755577
[ "MIT" ]
354
2019-05-10T02:15:26.000Z
2022-03-30T05:52:57.000Z
""" 模板语言: {{ 变量 }} {% 代码段 %} {% 一个参数时:变量|过滤器, Book.id | add: 1 <= 2 当前id+1来和2比较 两个参数时:变量|过滤器:参数 %}, 过滤器最多只能传2个参数,过滤器用来对传入的变量进行修改 {% if book.name|length > 4 %} 管道|符号的左右不能有多余的空格,否则报错,其次并不是name.length而是通过管道来过滤 {{ book.pub_date|date:'Y年m月j日' }} 日期的转换管道 """ """ CSRF 跨站请求伪造, 盗用...
24
85
0.670139
52
576
7.403846
0.884615
0.025974
0
0
0
0
0
0
0
0
0
0.012959
0.196181
576
24
86
24
0.818575
0.449653
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
674f2806f73a13483671e5b0ce4735f88b2f1c4f
606
py
Python
book/migrations/0010_auto_20170603_1441.py
pyprism/Hiren-Mail-Notify
324583a2edd25da5d2077914a79da291e00c743e
[ "MIT" ]
null
null
null
book/migrations/0010_auto_20170603_1441.py
pyprism/Hiren-Mail-Notify
324583a2edd25da5d2077914a79da291e00c743e
[ "MIT" ]
144
2015-10-18T17:19:03.000Z
2021-06-27T07:05:56.000Z
book/migrations/0010_auto_20170603_1441.py
pyprism/Hiren-Mail-Notify
324583a2edd25da5d2077914a79da291e00c743e
[ "MIT" ]
1
2015-10-18T17:04:39.000Z
2015-10-18T17:04:39.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-06-03 08:41 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('book', '0009_book_folder'), ] operations = [ migrations.AddField( ...
23.307692
64
0.587459
64
606
5.375
0.703125
0.052326
0.075581
0.098837
0
0
0
0
0
0
0
0.053738
0.293729
606
25
65
24.24
0.75
0.108911
0
0.222222
1
0
0.078212
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
674faa0b694ce161c45416e214ad1d35c7eb77fc
1,218
py
Python
contrib/ComparisonStatistics/Test/test_1.py
xylar/cdat
8a5080cb18febfde365efc96147e25f51494a2bf
[ "BSD-3-Clause" ]
62
2018-03-30T15:46:56.000Z
2021-12-08T23:30:24.000Z
contrib/ComparisonStatistics/Test/test_1.py
xylar/cdat
8a5080cb18febfde365efc96147e25f51494a2bf
[ "BSD-3-Clause" ]
114
2018-03-21T01:12:43.000Z
2021-07-05T12:29:54.000Z
contrib/ComparisonStatistics/Test/test_1.py
CDAT/uvcdat
5133560c0c049b5c93ee321ba0af494253b44f91
[ "BSD-3-Clause" ]
14
2018-06-06T02:42:47.000Z
2021-11-26T03:27:00.000Z
#!/usr/bin/env python import ComparisonStatistics import cdutil import os,sys # Reference ref = os.path.join(cdutil.__path__[0],'..','..','..','..','sample_data','tas_dnm-95a.xml') Ref=cdutil.VariableConditioner(ref) Ref.var='tas' Ref.id='reference' # Test tst = os.path.join(cdutil.__path__[0],'..','..','..','..','s...
24.36
91
0.728243
185
1,218
4.718919
0.475676
0.037801
0.02291
0.036655
0.117984
0.117984
0.077892
0.077892
0.077892
0
0
0.03479
0.079639
1,218
49
92
24.857143
0.743979
0.180624
0
0
0
0
0.168016
0
0
0
0
0
0
0
null
null
0
0.096774
null
null
0.129032
0
0
0
null
0
0
0
0
0
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
675069879b1d492d1df7599b3ec43ea76978d06f
1,881
py
Python
setup.py
baye0630/paperai
717f6c5a6652d6bc1bdb70d4a248a4751f820ddb
[ "Apache-2.0" ]
null
null
null
setup.py
baye0630/paperai
717f6c5a6652d6bc1bdb70d4a248a4751f820ddb
[ "Apache-2.0" ]
null
null
null
setup.py
baye0630/paperai
717f6c5a6652d6bc1bdb70d4a248a4751f820ddb
[ "Apache-2.0" ]
null
null
null
# pylint: disable = C0111 from setuptools import find_packages, setup setup(name="paperai", # version="1.5.0", # author="NeuML", # description="AI-powered literature discovery and review engine for medical/scientific papers", # long_description=DESCRIPTION, # long_description_content_typ...
36.882353
102
0.569378
193
1,881
5.481865
0.549223
0.028355
0.042533
0.075614
0.220227
0.056711
0
0
0
0
0
0.030347
0.264221
1,881
51
103
36.882353
0.734104
0.334397
0
0.068966
0
0
0.473258
0.08752
0
0
0
0
0
1
0
true
0
0.034483
0
0.034483
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
6758d510a825ee1d3b5115d43a4e119fa4dab901
956
py
Python
bluebottle/donations/migrations/0009_auto_20190130_1140.py
jayvdb/bluebottle
305fea238e6aa831598a8b227223a1a2f34c4fcc
[ "BSD-3-Clause" ]
null
null
null
bluebottle/donations/migrations/0009_auto_20190130_1140.py
jayvdb/bluebottle
305fea238e6aa831598a8b227223a1a2f34c4fcc
[ "BSD-3-Clause" ]
null
null
null
bluebottle/donations/migrations/0009_auto_20190130_1140.py
jayvdb/bluebottle
305fea238e6aa831598a8b227223a1a2f34c4fcc
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-01-30 10:40 from __future__ import unicode_literals import bluebottle.utils.fields from decimal import Decimal from django.db import migrations, models import django.db.models.deletion import djmoney.models.fields class Migration(migrations.Migration): ...
31.866667
179
0.66318
111
956
5.54955
0.567568
0.048701
0.077922
0.087662
0.165584
0.165584
0.165584
0.165584
0
0
0
0.051383
0.206067
956
29
180
32.965517
0.760211
0.07113
0
0.272727
1
0
0.143503
0.050847
0
0
0
0
0
1
0
false
0
0.272727
0
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6759d2fab349039ee4a85d50f2f8ff9d4646da91
6,592
py
Python
src/config.py
NicolasSommer/valuenet
1ce7e56956b378a8f281e9f9919e6aa98516a9d9
[ "Apache-2.0" ]
null
null
null
src/config.py
NicolasSommer/valuenet
1ce7e56956b378a8f281e9f9919e6aa98516a9d9
[ "Apache-2.0" ]
null
null
null
src/config.py
NicolasSommer/valuenet
1ce7e56956b378a8f281e9f9919e6aa98516a9d9
[ "Apache-2.0" ]
null
null
null
import argparse import json import os class Config: DATA_PREFIX = "data" EXPERIMENT_PREFIX = "experiments" def write_config_to_file(args, output_path): config_path = os.path.join(output_path, "args.json") with open(config_path, 'w', encoding='utf-8') as f: json.dump(args.__dict__, f, indent...
40.944099
104
0.715564
865
6,592
5.245087
0.224277
0.101168
0.191095
0.038792
0.671589
0.579458
0.507604
0.495261
0.456469
0.373154
0
0.012821
0.148058
6,592
160
105
41.2
0.79505
0.081614
0
0.425532
0
0
0.285288
0.025348
0
0
0
0
0
1
0.06383
false
0.010638
0.031915
0
0.159574
0.06383
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
675ffb2c535d8805575601fc596c61d52191a22a
1,283
py
Python
entropylab/tests/test_issue_204.py
qguyk/entropy
e43077026c83fe84de022cf8636b2c9d42f1d330
[ "BSD-3-Clause" ]
null
null
null
entropylab/tests/test_issue_204.py
qguyk/entropy
e43077026c83fe84de022cf8636b2c9d42f1d330
[ "BSD-3-Clause" ]
null
null
null
entropylab/tests/test_issue_204.py
qguyk/entropy
e43077026c83fe84de022cf8636b2c9d42f1d330
[ "BSD-3-Clause" ]
1
2022-03-29T11:47:31.000Z
2022-03-29T11:47:31.000Z
import os from datetime import datetime import pytest from entropylab import ExperimentResources, SqlAlchemyDB, PyNode, Graph @pytest.mark.skipif( datetime.utcnow() > datetime(2022, 6, 25), reason="Please remove after two months have passed since the fix was merged", ) def test_issue_204(initialized_project...
26.729167
85
0.681216
161
1,283
5.291925
0.565217
0.037559
0.073944
0.088028
0
0
0
0
0
0
0
0.013092
0.226033
1,283
47
86
27.297872
0.844914
0.111458
0
0
0
0
0.15887
0.018535
0
0
0
0
0.034483
1
0.068966
false
0.068966
0.137931
0
0.241379
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
67656a05cc2aa8785f99e903c16b411d139ad81d
3,576
py
Python
src/python/commands/LikeImpl.py
plewis/phycas
9f5a4d9b2342dab907d14a46eb91f92ad80a5605
[ "MIT" ]
3
2015-09-24T23:12:57.000Z
2021-04-12T07:07:01.000Z
src/python/commands/LikeImpl.py
plewis/phycas
9f5a4d9b2342dab907d14a46eb91f92ad80a5605
[ "MIT" ]
null
null
null
src/python/commands/LikeImpl.py
plewis/phycas
9f5a4d9b2342dab907d14a46eb91f92ad80a5605
[ "MIT" ]
1
2015-11-23T10:35:43.000Z
2015-11-23T10:35:43.000Z
import os,sys,math,random from phycas import * from MCMCManager import LikelihoodCore from phycas.utilities.PhycasCommand import * from phycas.readnexus import NexusReader from phycas.utilities.CommonFunctions import CommonFunctions class LikeImpl(CommonFunctions): #---+----|----+----|----+----|----+----|----+----...
39.733333
131
0.576622
372
3,576
5.405914
0.352151
0.067628
0.06365
0.018896
0.101442
0.057683
0
0
0
0
0
0.000788
0.290268
3,576
89
132
40.179775
0.791568
0.104306
0
0.061538
0
0
0.063736
0.010566
0
0
0
0
0.030769
0
null
null
0
0.092308
null
null
0.015385
0
0
0
null
0
0
0
0
0
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
676e003414de3f2f5ddecf2d26540316287d4189
6,232
py
Python
tools/telemetry/telemetry/results/page_test_results.py
Fusion-Rom/android_external_chromium_org
d8b126911c6ea9753e9f526bee5654419e1d0ebd
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-01-25T09:58:49.000Z
2020-01-25T09:58:49.000Z
tools/telemetry/telemetry/results/page_test_results.py
Fusion-Rom/android_external_chromium_org
d8b126911c6ea9753e9f526bee5654419e1d0ebd
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/telemetry/telemetry/results/page_test_results.py
Fusion-Rom/android_external_chromium_org
d8b126911c6ea9753e9f526bee5654419e1d0ebd
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T06:34:36.000Z
2020-11-04T06:34:36.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections import copy import traceback from telemetry import value as value_module from telemetry.results import page_run from telemetry.results im...
33.869565
75
0.72914
834
6,232
5.185851
0.220624
0.033988
0.051792
0.062428
0.259191
0.225896
0.193526
0.164624
0.145665
0.092023
0
0.002203
0.198813
6,232
183
76
34.054645
0.86401
0.234756
0
0.231405
0
0
0.028017
0
0
0
0
0.010929
0.066116
1
0.173554
false
0
0.066116
0.024793
0.355372
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
6776771ca007095afc605ceffe189d17a91d3508
2,472
py
Python
Q/questionnaire/models/models_publications.py
ES-DOC/esdoc-questionnaire
9301eda375c4046323265b37ba96d94c94bf8b11
[ "MIT" ]
null
null
null
Q/questionnaire/models/models_publications.py
ES-DOC/esdoc-questionnaire
9301eda375c4046323265b37ba96d94c94bf8b11
[ "MIT" ]
477
2015-01-07T18:22:27.000Z
2017-07-17T15:05:48.000Z
Q/questionnaire/models/models_publications.py
ES-DOC/esdoc-questionnaire
9301eda375c4046323265b37ba96d94c94bf8b11
[ "MIT" ]
null
null
null
#################### # ES-DOC CIM Questionnaire # Copyright (c) 2017 ES-DOC. All rights reserved. # # University of Colorado, Boulder # http://cires.colorado.edu/ # # This project is distributed according to the terms of the MIT license [http://www.opensource.org/licenses/MIT]. #################### from djan...
29.783133
137
0.666667
287
2,472
5.554007
0.428571
0.018821
0.045169
0.035759
0.056462
0
0
0
0
0
0
0.004978
0.187298
2,472
82
138
30.146341
0.788452
0.115291
0
0.042553
0
0
0.066699
0
0
0
0
0
0
1
0.085106
false
0
0.148936
0.042553
0.510638
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
6778c22f5231a134154a3cc716c3a2ed3620a01a
626
py
Python
lookup.py
apinkney97/IP2Location-Python
5841dcdaf826f7f0ef3e26e91524319552f4c7f8
[ "MIT" ]
90
2015-01-21T01:15:56.000Z
2022-02-25T05:12:16.000Z
lookup.py
Guantum/IP2Location-Python
dfa5710cd527ddbd446bbd2206242de6c62758fc
[ "MIT" ]
17
2015-11-09T12:48:44.000Z
2022-03-21T00:29:00.000Z
lookup.py
Guantum/IP2Location-Python
dfa5710cd527ddbd446bbd2206242de6c62758fc
[ "MIT" ]
36
2016-01-12T11:33:56.000Z
2021-10-02T12:34:39.000Z
import os, IP2Location, sys, ipaddress # database = IP2Location.IP2Location(os.path.join("data", "IPV6-COUNTRY.BIN"), "SHARED_MEMORY") database = IP2Location.IP2Location(os.path.join("data", "IPV6-COUNTRY.BIN")) try: ip = sys.argv[1] if ip == '' : print ('You cannot enter an empty IP address.') ...
25.04
95
0.618211
79
626
4.860759
0.493671
0.09375
0.15625
0.166667
0.390625
0.302083
0.302083
0.302083
0.302083
0.302083
0
0.021277
0.249201
626
25
96
25.04
0.795745
0.148562
0
0.222222
0
0
0.214286
0
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0.222222
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
677d56032178efeb016755dc92a217e0030b9013
926
py
Python
utils/exceptions.py
acatiadroid/util-bot
2a91aa4335c4a844f5335d70cb7c7c32dd8010be
[ "MIT" ]
1
2021-06-02T18:59:34.000Z
2021-06-02T18:59:34.000Z
utils/exceptions.py
acatiadroid/util-bot
2a91aa4335c4a844f5335d70cb7c7c32dd8010be
[ "MIT" ]
null
null
null
utils/exceptions.py
acatiadroid/util-bot
2a91aa4335c4a844f5335d70cb7c7c32dd8010be
[ "MIT" ]
1
2021-05-22T19:53:43.000Z
2021-05-22T19:53:43.000Z
from pymongo.errors import PyMongoError class IdNotFound(PyMongoError): """Raised when _id was not found in the database collection.""" def __init__(self, *args): if args: self.message = args[0] else: self.message = self.__doc__ def __str__(self): return s...
22.047619
67
0.552916
119
926
4.10084
0.411765
0.067623
0.045082
0
0
0
0
0
0
0
0
0.015576
0.306695
926
41
68
22.585366
0.744548
0.061555
0
0
0
0
0.098494
0
0
0
0
0
0
1
0.178571
false
0
0.035714
0.035714
0.535714
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
677f53508c3acb6aa3c5210a9a7139a828c94921
14,637
py
Python
tests/test_validators.py
yaaminu/yaval
32f04ecfa092c978fc026f6b7f58d6cf2defd8c9
[ "MIT" ]
14
2021-02-12T19:04:21.000Z
2021-03-12T18:18:09.000Z
tests/test_validators.py
yaaminu/yaval
32f04ecfa092c978fc026f6b7f58d6cf2defd8c9
[ "MIT" ]
5
2021-02-12T16:04:37.000Z
2021-04-14T12:05:02.000Z
tests/test_validators.py
yaaminu/yaval
32f04ecfa092c978fc026f6b7f58d6cf2defd8c9
[ "MIT" ]
null
null
null
import datetime from mock import Mock, call import pytest from finicky import ValidationException, is_int, is_float, is_str, is_date, is_dict, is_list # noinspection PyShadowingBuiltins class TestIntValidator: def test_must_raise_validation_exception_when_input_is_none_and_required_is_true(self): with p...
52.841155
122
0.683678
2,069
14,637
4.552924
0.109715
0.034183
0.052548
0.037367
0.686518
0.602972
0.557113
0.527601
0.481104
0.423779
0
0.041333
0.173533
14,637
276
123
53.032609
0.737373
0.036824
0
0.254902
0
0
0.134543
0.001494
0
0
0
0
0.22549
1
0.22549
false
0
0.019608
0
0.27451
0.004902
0
0
0
null
0
0
0
0
0
0
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
6781793ae8fc13e5299017f4d13600e84c029c5a
547
py
Python
sources/simulators/multiprocessing_simulator/start_client.py
M4rukku/impact_of_non_iid_data_in_federated_learning
c818db03699c82e42217d56f8ddd4cc2081c8bb1
[ "MIT" ]
null
null
null
sources/simulators/multiprocessing_simulator/start_client.py
M4rukku/impact_of_non_iid_data_in_federated_learning
c818db03699c82e42217d56f8ddd4cc2081c8bb1
[ "MIT" ]
null
null
null
sources/simulators/multiprocessing_simulator/start_client.py
M4rukku/impact_of_non_iid_data_in_federated_learning
c818db03699c82e42217d56f8ddd4cc2081c8bb1
[ "MIT" ]
null
null
null
import flwr as fl import flwr.client from sources.utils.simulation_parameters import DEFAULT_SERVER_ADDRESS from sources.simulators.base_client_provider import BaseClientProvider def start_client(client_provider: BaseClientProvider, client_identifier): client = client_provider(str(client_identifier)) if isi...
39.071429
90
0.824497
68
547
6.352941
0.382353
0.150463
0.138889
0.12037
0.236111
0.236111
0.236111
0.236111
0
0
0
0
0.109689
547
14
91
39.071429
0.887064
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.4
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
6788b2d4a5d2258670eff8708364f1ba49cb5189
615
py
Python
solutions/nelum_pokuna.py
UdeshUK/RxH5-Prextreme
6f329b13d552d9c7e9ad927e2fe607c7cc0964f6
[ "Apache-2.0" ]
1
2018-10-14T12:47:03.000Z
2018-10-14T12:47:03.000Z
solutions/nelum_pokuna.py
Team-RxH5/Prextreme
6f329b13d552d9c7e9ad927e2fe607c7cc0964f6
[ "Apache-2.0" ]
null
null
null
solutions/nelum_pokuna.py
Team-RxH5/Prextreme
6f329b13d552d9c7e9ad927e2fe607c7cc0964f6
[ "Apache-2.0" ]
null
null
null
cases=int(raw_input()) for case in range(cases): answers=[0,0] grid=[[0 for x in range(4)] for y in range(2)] common=[] for i in range(2): answers[i]=int(raw_input()) for j in range(4): grid[i][j]=raw_input().split() grid[i][j] = map(int, grid[i][j]) # Code...
23.653846
50
0.518699
99
615
3.191919
0.323232
0.110759
0.056962
0.088608
0
0
0
0
0
0
0
0.038186
0.318699
615
25
51
24.6
0.71599
0.017886
0
0
0
0
0.051495
0
0
0
0
0
0
0
null
null
0
0
null
null
0.15
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
679fc8ee35fed0b83bbf337e8c352e97186a807c
1,151
py
Python
qualif16/timeline.py
valenca/hashcode16
ac47b6f480a9c2ce78446aa3510178cc32f26ea5
[ "WTFPL" ]
1
2016-02-08T17:23:18.000Z
2016-02-08T17:23:18.000Z
qualif16/timeline.py
valenca/hashcode16
ac47b6f480a9c2ce78446aa3510178cc32f26ea5
[ "WTFPL" ]
null
null
null
qualif16/timeline.py
valenca/hashcode16
ac47b6f480a9c2ce78446aa3510178cc32f26ea5
[ "WTFPL" ]
null
null
null
from data import * from heapq import * class Timeline: def __init__(self): self.events=[] def addEvent(self, event): heappush(self.events, event) def nextEvent(self): assert(self.events != []) return heappop(self.events) def nextEvents(self): if self.events == []: return [] cur_time = self.event...
19.508475
89
0.652476
181
1,151
3.961326
0.270718
0.13947
0.136681
0.146444
0.195258
0.195258
0.195258
0.160391
0.160391
0.160391
0
0.014478
0.159861
1,151
58
90
19.844828
0.726991
0
0
0.159091
0
0
0.05396
0
0
0
0
0
0.022727
0
null
null
0
0.045455
null
null
0.045455
0
0
0
null
0
0
0
0
0
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
67a783ee0f0ec9ab1fa4d600a15705146b7bc899
260
py
Python
09_cumledeki_kelime_sayisi.py
kabatasmirac/We_WantEd_OrnekCozumler
0f022361659fb78cd3f644910f3611d45df64317
[ "MIT" ]
1
2020-06-09T13:09:23.000Z
2020-06-09T13:09:23.000Z
09_cumledeki_kelime_sayisi.py
kabatasmirac/We_WantEd_OrnekCozumler
0f022361659fb78cd3f644910f3611d45df64317
[ "MIT" ]
null
null
null
09_cumledeki_kelime_sayisi.py
kabatasmirac/We_WantEd_OrnekCozumler
0f022361659fb78cd3f644910f3611d45df64317
[ "MIT" ]
null
null
null
def kelime_sayisi(string): counter = 1 for i in range(0,len(string)): if string[i] == ' ': counter += 1 return counter cumle = input("Cumlenizi giriniz : ") print("Cumlenizdeki kelime sayisi = {}".format(kelime_sayisi(cumle)))
26
69
0.615385
32
260
4.9375
0.65625
0.227848
0
0
0
0
0
0
0
0
0
0.015228
0.242308
260
10
69
26
0.786802
0
0
0
0
0
0.199234
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0.125
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
67add2205d4190930f5b032323a1238d7a058e8c
6,378
py
Python
gpn/distributions/base.py
WodkaRHR/Graph-Posterior-Network
139e7c45c37324c9286e0cca60360a4978b3f411
[ "MIT" ]
23
2021-11-16T01:31:55.000Z
2022-03-04T05:49:03.000Z
gpn/distributions/base.py
WodkaRHR/Graph-Posterior-Network
139e7c45c37324c9286e0cca60360a4978b3f411
[ "MIT" ]
1
2021-12-17T01:25:16.000Z
2021-12-20T10:38:30.000Z
gpn/distributions/base.py
WodkaRHR/Graph-Posterior-Network
139e7c45c37324c9286e0cca60360a4978b3f411
[ "MIT" ]
7
2021-12-03T11:13:44.000Z
2022-02-06T03:12:10.000Z
import torch import torch.distributions as D class ExponentialFamily(D.ExponentialFamily): """ Shared base distribution for exponential family distributions. """ @property def is_sparse(self): """ Whether the distribution's parameters are sparse. Just returns `False`. """ ...
33.21875
100
0.607087
651
6,378
5.900154
0.281106
0.056235
0.021869
0.027337
0.149961
0.097891
0.068732
0.051549
0.024993
0
0
0.000649
0.275321
6,378
191
101
33.39267
0.830376
0.647695
0
0.414634
0
0
0
0
0
0
0
0
0
1
0.317073
false
0
0.04878
0
0.560976
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
67addac624c1ac8a0bc388113f31ef1180a2d2c5
557
py
Python
demos/python/3_statements.py
denfromufa/mipt-course
ad828f9f3777b68727090bcd69feb0dd91f17465
[ "BSD-3-Clause" ]
null
null
null
demos/python/3_statements.py
denfromufa/mipt-course
ad828f9f3777b68727090bcd69feb0dd91f17465
[ "BSD-3-Clause" ]
null
null
null
demos/python/3_statements.py
denfromufa/mipt-course
ad828f9f3777b68727090bcd69feb0dd91f17465
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python condition = 42 # IMPORTANT: colons, _indentation_ are significant! if condition: print "Condition is true!" elif True: # not 'true'! print "I said it's true! :)" else: print "Condition is false :(" # of course, elif/else are optional assert True == (not False) # Equivalent of `for (in...
19.892857
51
0.601436
78
557
4.269231
0.551282
0.066066
0.096096
0
0
0
0
0
0
0
0
0.029484
0.2693
557
27
52
20.62963
0.788698
0.360862
0
0.111111
0
0
0.17192
0
0
0
0
0
0.055556
0
null
null
0
0
null
null
0.333333
0
0
0
null
0
0
0
0
0
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
67afb6f388c98096e84a0f8aa3dc9e79c6d38f5b
5,186
py
Python
src/voxelize.py
Beskamir/BlenderDepthMaps
ba1201effde617078fb35f23d534372de3dd39c3
[ "MIT" ]
null
null
null
src/voxelize.py
Beskamir/BlenderDepthMaps
ba1201effde617078fb35f23d534372de3dd39c3
[ "MIT" ]
null
null
null
src/voxelize.py
Beskamir/BlenderDepthMaps
ba1201effde617078fb35f23d534372de3dd39c3
[ "MIT" ]
null
null
null
import bpy import bmesh import numpy from random import randint import time # pointsToVoxels() has been modified from the function generate_blocks() in https://github.com/cagcoach/BlenderPlot/blob/master/blendplot.py # Some changes to accomodate Blender 2.8's API changes were made, # and the function has been made m...
42.508197
140
0.636521
769
5,186
4.262679
0.304291
0.016473
0.02288
0.028066
0.106467
0.089384
0.074741
0.023795
0.023795
0.023795
0
0.034691
0.232935
5,186
122
141
42.508197
0.789341
0.33494
0
0.050633
1
0
0.053981
0
0
0
0
0
0
1
0.037975
false
0
0.063291
0
0.113924
0.126582
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
67b70692a042775258dace6d02203639346f7fe2
5,947
py
Python
ce_cli/function.py
maiot-io/cengine
3a1946c449e8c5e1d216215df6eeab941eb1640a
[ "Apache-2.0" ]
7
2020-10-13T12:47:32.000Z
2021-03-12T12:00:14.000Z
ce_cli/function.py
maiot-io/cengine
3a1946c449e8c5e1d216215df6eeab941eb1640a
[ "Apache-2.0" ]
null
null
null
ce_cli/function.py
maiot-io/cengine
3a1946c449e8c5e1d216215df6eeab941eb1640a
[ "Apache-2.0" ]
1
2021-01-23T02:19:42.000Z
2021-01-23T02:19:42.000Z
import click import ce_api import base64 import os from ce_cli.cli import cli, pass_info from ce_cli.utils import check_login_status from ce_cli.utils import api_client, api_call from ce_api.models import FunctionCreate, FunctionVersionCreate from ce_cli.utils import declare, notice from tabulate import tabulate from c...
35.189349
86
0.648562
800
5,947
4.55
0.1675
0.043956
0.024725
0.025
0.477473
0.431868
0.408791
0.400549
0.356593
0.339835
0
0.005316
0.240794
5,947
168
87
35.39881
0.800886
0.069783
0
0.393701
0
0
0.116406
0
0
0
0
0
0
1
0.047244
false
0.055118
0.086614
0
0.133858
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
67bbf09857ef02050b6c12ecac3ac6f6bf74d30b
770
py
Python
pi/Cart/main.py
polycart/polycart
2c36921b126df237b109312a16dfb04f2b2ab20f
[ "Apache-2.0" ]
3
2020-01-10T15:54:57.000Z
2020-03-14T13:04:14.000Z
pi/Cart/main.py
polycart/polycart
2c36921b126df237b109312a16dfb04f2b2ab20f
[ "Apache-2.0" ]
null
null
null
pi/Cart/main.py
polycart/polycart
2c36921b126df237b109312a16dfb04f2b2ab20f
[ "Apache-2.0" ]
1
2020-01-29T06:07:39.000Z
2020-01-29T06:07:39.000Z
#!/usr/bin/python3 import cartinit from kivy.app import App from kivy.uix.screenmanager import Screen, ScreenManager, SlideTransition from kivy.lang import Builder from buttons import RoundedButton cartinit.init() # create ScreenManager as root, put all screens into sm = ScreenManager() sm.transition = SlideTransiti...
18.780488
73
0.720779
96
770
5.677083
0.572917
0.044037
0
0
0
0
0
0
0
0
0
0.003195
0.187013
770
40
74
19.25
0.867412
0.228571
0
0.090909
0
0
0.030612
0
0
0
0
0
0
1
0.045455
false
0.090909
0.227273
0.045455
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
1
0
0
0
0
0
1
67d91682b7361980dedb029fa4ec3aa3743a4f6d
3,910
py
Python
implementations/rest/bin/authhandlers.py
djsincla/SplunkModularInputsPythonFramework
1dd215214f3d2644cb358e41f4105fe40cff5393
[ "Apache-2.0" ]
3
2020-08-31T00:59:26.000Z
2021-10-19T22:01:00.000Z
implementations/rest/bin/authhandlers.py
djsincla/SplunkModularInputsPythonFramework
1dd215214f3d2644cb358e41f4105fe40cff5393
[ "Apache-2.0" ]
null
null
null
implementations/rest/bin/authhandlers.py
djsincla/SplunkModularInputsPythonFramework
1dd215214f3d2644cb358e41f4105fe40cff5393
[ "Apache-2.0" ]
null
null
null
from requests.auth import AuthBase import hmac import base64 import hashlib import urlparse import urllib #add your custom auth handler class to this module class MyEncryptedCredentialsAuthHAndler(AuthBase): def __init__(self,**args): # setup any auth-related data here #self.username = args['usern...
29.179104
100
0.586701
442
3,910
5.020362
0.266968
0.048671
0.047319
0.059937
0.422713
0.422713
0.422713
0.422713
0.422713
0.385309
0
0.004415
0.304859
3,910
134
101
29.179104
0.811994
0.210486
0
0.469136
0
0
0.061338
0.012398
0.012346
0
0
0
0
1
0.17284
false
0.135802
0.074074
0.024691
0.419753
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
67e03d999e85af82b3115a02553d48dddb7a3aa2
1,414
py
Python
py-insta/__init__.py
ItsTrakos/Py-insta
483725f13b7c7eab0261b461c7ec507d1109a9f4
[ "Unlicense" ]
null
null
null
py-insta/__init__.py
ItsTrakos/Py-insta
483725f13b7c7eab0261b461c7ec507d1109a9f4
[ "Unlicense" ]
null
null
null
py-insta/__init__.py
ItsTrakos/Py-insta
483725f13b7c7eab0261b461c7ec507d1109a9f4
[ "Unlicense" ]
null
null
null
""" # -*- coding: utf-8 -*- __author__ = "Trakos" __email__ = "mhdeiimhdeiika@gmail.com" __version__ = 1.0.0" __copyright__ = "Copyright (c) 2019 -2021 Leonard Richardson" # Use of this source code is governed by the MIT license. __license__ = "MIT" Description: py-Insta Is A Python Library ...
32.883721
117
0.562942
153
1,414
4.993464
0.660131
0.020942
0.02356
0
0
0
0
0
0
0
0
0.025026
0.321782
1,414
43
118
32.883721
0.771637
0
0
0.102564
0
0
0.160537
0.016973
0
0
0
0
0
0
null
null
0
0.051282
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