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
cb71c198a8ea06c3e6442061d71bb89be7d796f3
2,785
py
Python
vendors/rez-2.23.1-py2.7/rez/cli/view.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
4
2019-01-11T03:41:28.000Z
2019-09-12T06:57:17.000Z
vendors/rez-2.23.1-py2.7/rez/cli/view.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
null
null
null
vendors/rez-2.23.1-py2.7/rez/cli/view.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
2
2019-01-10T05:00:18.000Z
2020-02-15T16:32:56.000Z
""" View the contents of a package. """ def setup_parser(parser, completions=False): formats = ("py", "yaml") parser.add_argument( "-f", "--format", default="yaml", choices=formats, help="format to print the package in") parser.add_argument( "-a", "--all", action="store_true", ...
31.647727
86
0.657092
371
2,785
4.862534
0.425876
0.024945
0.047118
0.031596
0.103104
0.055432
0.037694
0
0
0
0
0.006223
0.24991
2,785
87
87
32.011494
0.857348
0.238061
0
0.166667
0
0
0.188104
0
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.185185
0
0
0
null
0
0
0
0
0
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
cb78d2fded2228695f64a5934c942052bcac7b7a
1,065
py
Python
tower/tests/test_templates.py
thijstriemstra/tower
63b31dd3b5f0ba0679343c6894ad3ed7377a5d66
[ "BSD-3-Clause" ]
null
null
null
tower/tests/test_templates.py
thijstriemstra/tower
63b31dd3b5f0ba0679343c6894ad3ed7377a5d66
[ "BSD-3-Clause" ]
null
null
null
tower/tests/test_templates.py
thijstriemstra/tower
63b31dd3b5f0ba0679343c6894ad3ed7377a5d66
[ "BSD-3-Clause" ]
null
null
null
from jingo.tests.test_helpers import render from nose.tools import eq_ def test_safe(): """Ensure _() calls won't be escaped by Jinja2.""" txt = '<strong>Hello</strong>' rendered = render('{{ _("%s") }}' % txt) eq_(rendered, txt) def test_interpolation_nonsafe(): """Ensure '_() % something' is n...
26.625
59
0.555869
144
1,065
3.958333
0.340278
0.061404
0.049123
0.05614
0.340351
0.340351
0.217544
0.157895
0.157895
0.157895
0
0.00243
0.22723
1,065
39
60
27.307692
0.690158
0.202817
0
0.166667
0
0
0.380316
0.026731
0
0
0
0
0
1
0.208333
false
0
0.083333
0
0.291667
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
cb795ad96d367273850a3f36fd3ba8007654bc53
2,702
py
Python
lightning/bottle/auth/views.py
sergioisidoro/cookiecutter-lightning-in-a-flask
2c46a7b7e555252f308e411c2bb6ddec75f5f570
[ "MIT" ]
null
null
null
lightning/bottle/auth/views.py
sergioisidoro/cookiecutter-lightning-in-a-flask
2c46a7b7e555252f308e411c2bb6ddec75f5f570
[ "MIT" ]
null
null
null
lightning/bottle/auth/views.py
sergioisidoro/cookiecutter-lightning-in-a-flask
2c46a7b7e555252f308e411c2bb6ddec75f5f570
[ "MIT" ]
null
null
null
from flask import request, jsonify, Blueprint, current_app as app from flask_jwt_extended import ( jwt_required, get_jwt_identity, get_jwt, current_user ) from bottle.models import User from bottle.extensions import pwd_context, jwt from bottle.auth.helpers import ( revoke_token, revoke_refresh_tok...
28.442105
71
0.726499
366
2,702
5.101093
0.248634
0.022496
0.032137
0.040707
0.227638
0.186931
0.139261
0.106052
0.106052
0.106052
0
0.010494
0.15359
2,702
94
72
28.744681
0.805859
0.096225
0
0.136364
0
0
0.094867
0
0
0
0
0
0
1
0.106061
false
0.060606
0.090909
0.030303
0.363636
0.121212
0
0
0
null
0
0
0
0
0
0
0
0
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
cb796f62f24e815eb627142c6adfbc40da74d7c6
2,459
py
Python
cwltool/schemas/v1.0/salad/setup.py
jeremiahsavage/cwltool
fe1c06f16f866fa2d1a4655f236b9a52b9564fac
[ "Apache-2.0" ]
2
2017-07-06T13:25:23.000Z
2017-07-06T13:26:15.000Z
cwltool/schemas/v1.0/salad/setup.py
jeremiahsavage/cwltool
fe1c06f16f866fa2d1a4655f236b9a52b9564fac
[ "Apache-2.0" ]
1
2018-05-10T06:45:21.000Z
2018-05-10T06:45:21.000Z
cwltool/schemas/v1.0/salad/setup.py
jeremiahsavage/cwltool
fe1c06f16f866fa2d1a4655f236b9a52b9564fac
[ "Apache-2.0" ]
3
2018-04-05T17:14:59.000Z
2021-07-12T00:54:13.000Z
#!/usr/bin/env python import os import sys import shutil import setuptools.command.egg_info as egg_info_cmd from setuptools import setup, find_packages SETUP_DIR = os.path.dirname(__file__) README = os.path.join(SETUP_DIR, 'README.rst') try: import gittaggers tagger = gittaggers.EggInfoFromGit except Impor...
32.786667
90
0.635624
290
2,459
5.265517
0.527586
0.05501
0.086444
0.051081
0.079895
0.079895
0.079895
0.079895
0.079895
0.079895
0
0.016789
0.224888
2,459
74
91
33.22973
0.784365
0.200895
0
0
0
0
0.367504
0.041517
0
0
0
0.013514
0
1
0
false
0
0.127273
0
0.127273
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
cb7cfa5979abc6cc7699afb136d996544aea9158
481
py
Python
examples/sum_sum_plus_two.py
uta8a/Jikka
6cc465a9c233bea91ad149dadd0a8a7cd1a223eb
[ "Apache-2.0" ]
139
2019-07-19T15:09:34.000Z
2022-03-10T06:26:04.000Z
examples/sum_sum_plus_two.py
uta8a/Jikka
6cc465a9c233bea91ad149dadd0a8a7cd1a223eb
[ "Apache-2.0" ]
102
2019-07-19T16:49:08.000Z
2021-09-26T14:45:32.000Z
examples/sum_sum_plus_two.py
uta8a/Jikka
6cc465a9c233bea91ad149dadd0a8a7cd1a223eb
[ "Apache-2.0" ]
11
2019-10-17T05:46:10.000Z
2022-02-27T14:05:19.000Z
# https://judge.kimiyuki.net/problem/sum-sum-plus-two from typing import * def solve(a: List[int], b: List[int]) -> int: ans = 0 for a_i in a: for b_j in b: ans += a_i - b_j return ans def main() -> None: n, m = map(int, input().split()) a = list(map(int, input().split())) ...
19.24
53
0.534304
79
481
3.101266
0.455696
0.073469
0.134694
0.195918
0.236735
0.236735
0.236735
0
0
0
0
0.002899
0.282744
481
24
54
20.041667
0.707246
0.106029
0
0
0
0
0.018692
0
0
0
0
0
0.117647
1
0.117647
false
0
0.058824
0
0.235294
0.058824
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
cb7fa3c1b3eeee2434fff47aabc7dfcb4d83233e
1,787
py
Python
molly/apps/search/providers/application_search.py
mollyproject/mollyproject
3247c6bac3f39ce8d275d19aa410b30c6284b8a7
[ "Apache-2.0" ]
7
2015-05-16T13:27:21.000Z
2019-08-06T11:09:24.000Z
molly/apps/search/providers/application_search.py
mollyproject/mollyproject
3247c6bac3f39ce8d275d19aa410b30c6284b8a7
[ "Apache-2.0" ]
null
null
null
molly/apps/search/providers/application_search.py
mollyproject/mollyproject
3247c6bac3f39ce8d275d19aa410b30c6284b8a7
[ "Apache-2.0" ]
4
2015-11-27T13:36:36.000Z
2021-03-09T17:55:53.000Z
import logging from molly.apps.search.providers import BaseSearchProvider from molly.conf import all_apps logger = logging.getLogger(__name__) class ApplicationSearchProvider(BaseSearchProvider): def __init__(self, local_names=None): self.local_names = local_names self.applications = None ...
34.365385
87
0.576945
161
1,787
6.192547
0.341615
0.112337
0.056169
0.054162
0
0
0
0
0
0
0
0.000862
0.350867
1,787
52
88
34.365385
0.858621
0
0
0.146341
0
0
0.050895
0
0
0
0
0
0
0
null
null
0
0.146341
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
cb839c4b29203ce690e7bbc098b21bd52e1cd1c9
1,230
py
Python
src/utils/csv_writer.py
LuisMarques99/ProjetoFinal
a9558c22d99a1aca7c337d646d9022964c2a09d0
[ "MIT" ]
2
2020-05-21T17:55:28.000Z
2021-03-11T15:57:50.000Z
src/utils/csv_writer.py
LuisMarques99/ProjetoFinal
a9558c22d99a1aca7c337d646d9022964c2a09d0
[ "MIT" ]
5
2021-06-08T22:27:55.000Z
2022-03-12T00:48:38.000Z
src/utils/csv_writer.py
LuisMarques99/ProjetoFinal
a9558c22d99a1aca7c337d646d9022964c2a09d0
[ "MIT" ]
null
null
null
class CSVWriter: """Class that represents the structure of a CSV file writer Author: Luis Marques """ def __init__(self, filename: str, header: tuple, file_type: str = "w"): """Creates an instance of a CSV file writer Args: filename (str): string to define the name of the ...
30
85
0.576423
167
1,230
4.179641
0.335329
0.060172
0.074499
0.06447
0.237822
0.08596
0.08596
0
0
0
0
0.003593
0.321138
1,230
40
86
30.75
0.832335
0.407317
0
0
0
0
0.006547
0
0
0
0
0
0
1
0.266667
false
0
0
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
1
0
0
0
0
0
0
0
1
cb86bee29f2c6d3893b98efaf86b6b1da56c1f47
1,423
py
Python
MapasDeCampos_by_hidromod/src/PythonImageGenerator.py
RBCanelas/MOHID_python_tools
debddbba4fed0e1eae042eedc1554094bb78a63d
[ "MIT" ]
null
null
null
MapasDeCampos_by_hidromod/src/PythonImageGenerator.py
RBCanelas/MOHID_python_tools
debddbba4fed0e1eae042eedc1554094bb78a63d
[ "MIT" ]
null
null
null
MapasDeCampos_by_hidromod/src/PythonImageGenerator.py
RBCanelas/MOHID_python_tools
debddbba4fed0e1eae042eedc1554094bb78a63d
[ "MIT" ]
null
null
null
import h5py import sys import logging import ModuloGeneralReadOptions as MGRO import ModuloMapsLonLat2Center import ModuloMapsDraw import ModuloMapsValidation import os from subprocess import call import subprocess import ModuloMaps as MM import ModuloTimeSeriesPlot as MT import inspect try: configFile = 'PythonFi...
27.901961
156
0.710471
166
1,423
6.036145
0.506024
0.05489
0.038922
0.047904
0.057884
0.057884
0.057884
0
0
0
0
0.010924
0.163739
1,423
50
157
28.46
0.831092
0
0
0.131579
0
0
0.2052
0
0
0
0
0
0
1
0
false
0
0.342105
0
0.342105
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
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
cb89224f0c8eff0cb14796595ff6ff47083095fb
891
py
Python
squar_share/models.py
wenlongyan/Squarrel
8b7896e504f615da2813ddbe6e75d5b582d97372
[ "Apache-2.0" ]
null
null
null
squar_share/models.py
wenlongyan/Squarrel
8b7896e504f615da2813ddbe6e75d5b582d97372
[ "Apache-2.0" ]
null
null
null
squar_share/models.py
wenlongyan/Squarrel
8b7896e504f615da2813ddbe6e75d5b582d97372
[ "Apache-2.0" ]
null
null
null
#-*- coding:utf-8 -*- from django.db import models from datetime import datetime #导入datetime 用于处理上传文件的时间段 # Create your models here. class Upload(models.Model): DownloadDocount = models.IntegerField(verbose_name=u"访问次数",default=0) code = models.CharField(max_length=8,verbose_name=u"code") # Datatime = mode...
37.125
79
0.727273
117
891
5.358974
0.42735
0.175439
0.114833
0.191388
0.323764
0.323764
0.180223
0.121212
0
0
0
0.014512
0.14927
891
23
80
38.73913
0.812665
0.163861
0
0
0
0
0.052632
0
0
0
0
0
0
1
0.0625
false
0
0.125
0.0625
0.8125
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
cb8df511e8997f11822f97435dcc15f4f7dd6ed0
12,553
py
Python
main_game.py
KrolMateusz/Battleships-game
11ac8d415e13713d41ae42ae795c053d413b7a28
[ "MIT" ]
null
null
null
main_game.py
KrolMateusz/Battleships-game
11ac8d415e13713d41ae42ae795c053d413b7a28
[ "MIT" ]
null
null
null
main_game.py
KrolMateusz/Battleships-game
11ac8d415e13713d41ae42ae795c053d413b7a28
[ "MIT" ]
null
null
null
import string def generate_empty_map(size): battlefield = {} for letter in 'ABCDEFGHIJ': battlefield[letter] = ["." for _ in range(size)] return battlefield def print_map(player_battlefield): print(end=' ') for number in range(len(player_battlefield)): print(number + 1, end=' '...
42.124161
91
0.585278
1,580
12,553
4.375949
0.098734
0.135233
0.026323
0.030084
0.621493
0.559011
0.461672
0.440266
0.406711
0.358693
0
0.017136
0.311957
12,553
297
92
42.265993
0.783374
0.071696
0
0.372951
1
0
0.031296
0
0
0
0
0
0
1
0.061475
false
0
0.004098
0
0.209016
0.086066
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
cb8e5d920221e5da056a693d5fc86dadfaf99b7a
11,501
py
Python
lib/JumpScale/core/Dirs.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
1
2015-10-26T10:38:13.000Z
2015-10-26T10:38:13.000Z
lib/JumpScale/core/Dirs.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
lib/JumpScale/core/Dirs.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
import sys, os, inspect from JumpScale import j home = os.curdir # Default if 'JSBASE' in os.environ: home = os.environ['JSBASE'] elif 'JSJAIL' in os.environ: home = os.environ['JSJAIL'] elif os.name == 'posix': # home = os.path.expanduser("~/") home="/opt/jumpscale" elif os.na...
34.957447
143
0.594035
1,326
11,501
5.084465
0.201357
0.038268
0.040047
0.04776
0.344112
0.265648
0.201721
0.168348
0.107832
0.068377
0
0.002398
0.274933
11,501
328
144
35.064024
0.806092
0.034258
0
0.233184
0
0
0.063634
0
0
0
0
0.006098
0
0
null
null
0
0.013453
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
cb9036185ddd767440a904ce1c57ea8368f6b480
758
py
Python
packages/reporting-server/models/tortoise_models/ingestor_state.py
baviera08/romi-dashboard
ac3a15014ad3c3bdac523a6550934a06653cfba1
[ "Apache-2.0" ]
23
2021-04-13T23:01:12.000Z
2022-03-21T02:15:24.000Z
packages/reporting-server/models/tortoise_models/ingestor_state.py
baviera08/romi-dashboard
ac3a15014ad3c3bdac523a6550934a06653cfba1
[ "Apache-2.0" ]
326
2021-03-10T17:32:17.000Z
2022-03-30T04:42:14.000Z
packages/reporting-server/models/tortoise_models/ingestor_state.py
baviera08/romi-dashboard
ac3a15014ad3c3bdac523a6550934a06653cfba1
[ "Apache-2.0" ]
13
2021-04-10T10:33:36.000Z
2022-02-22T15:39:58.000Z
from enum import Enum from tortoise import fields, models class IngestorStateEnum(str, Enum): IDLE = "idle" BUSY = "busy" OFFLINE = "offline" class IngestorStateService: def get_state_name(self, state: int): if state == 0: return IngestorStateEnum.IDLE elif state == 1: ...
24.451613
60
0.6781
78
758
6.525641
0.564103
0.13556
0
0
0
0
0
0
0
0
0
0.010417
0.240106
758
30
61
25.266667
0.873264
0
0
0
0
0
0.019789
0
0
0
0
0
0
1
0.045455
false
0
0.090909
0
0.772727
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
cb9979145fc250bef21b5e73e5c0cb0ee5ba313f
891
py
Python
common/migrations/0005_embedpluginmodel.py
dzejkobi/institution-comparisoner
3f7ff16bd2b5065a95607bf895c9d28f8e9182a4
[ "MIT" ]
null
null
null
common/migrations/0005_embedpluginmodel.py
dzejkobi/institution-comparisoner
3f7ff16bd2b5065a95607bf895c9d28f8e9182a4
[ "MIT" ]
null
null
null
common/migrations/0005_embedpluginmodel.py
dzejkobi/institution-comparisoner
3f7ff16bd2b5065a95607bf895c9d28f8e9182a4
[ "MIT" ]
null
null
null
# Generated by Django 3.1.12 on 2021-09-09 11:37 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cms', '0022_auto_20180620_1551'), ('common', '0004_wrapperpluginmodel'), ] operations = [ migratio...
33
233
0.615039
92
891
5.815217
0.673913
0.04486
0.052336
0.082243
0
0
0
0
0
0
0
0.054299
0.255892
891
26
234
34.269231
0.75264
0.051627
0
0
1
0
0.212337
0.081851
0
0
0
0
0
1
0
false
0
0.1
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cb99b1bddd8bf295dadbb7226275019ede1f58a8
825
py
Python
biomass/models/nfkb_pathway/reaction_network.py
okadalabipr/biomass
b0743fd3d43115fdb808f0e61c35f410c0ed0e8a
[ "Apache-2.0" ]
16
2019-10-31T01:39:35.000Z
2021-09-21T19:39:28.000Z
biomass/models/tgfb_smad/reaction_network.py
himoto/biomass
789a747bb293a52eaf65ce2c441d063d7a6d0671
[ "Apache-2.0" ]
23
2020-02-05T05:17:40.000Z
2021-09-29T22:32:12.000Z
biomass/models/tgfb_smad/reaction_network.py
himoto/biomass
789a747bb293a52eaf65ce2c441d063d7a6d0671
[ "Apache-2.0" ]
9
2019-10-31T07:25:57.000Z
2021-09-29T21:52:31.000Z
from typing import Dict, List from biomass.analysis.reaction import is_duplicate class ReactionNetwork(object): """ Reaction indices grouped according to biological processes. This is used for sensitivity analysis (target='reaction'). """ def __init__(self) -> None: self.reactions: Dict[...
30.555556
86
0.655758
88
825
6.034091
0.5
0.214689
0.079096
0.112994
0
0
0
0
0
0
0
0
0.255758
825
26
87
31.730769
0.864821
0.203636
0
0
0
0
0.057003
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0
0.461538
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
cba60872f1c48440dea30a5c29fd9f2ade00b2e2
10,202
py
Python
ocrd/ocrd/workspace_bagger.py
JBBalling/core
b9977a28118d33e40656f5ea95e819d8cc496f32
[ "Apache-2.0" ]
null
null
null
ocrd/ocrd/workspace_bagger.py
JBBalling/core
b9977a28118d33e40656f5ea95e819d8cc496f32
[ "Apache-2.0" ]
null
null
null
ocrd/ocrd/workspace_bagger.py
JBBalling/core
b9977a28118d33e40656f5ea95e819d8cc496f32
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from os import makedirs, chdir, walk from os.path import join, isdir, basename, exists, relpath from shutil import make_archive, rmtree, copyfile, move from tempfile import mkdtemp import re import tempfile import sys from pkg_resources import get_distribution from bagit import Bag, make_...
36.963768
130
0.595079
1,235
10,202
4.74251
0.205668
0.016732
0.041318
0.027488
0.158614
0.119344
0.080587
0.059416
0.040977
0.040977
0
0.000709
0.308273
10,202
275
131
37.098182
0.829248
0.199373
0
0.078313
0
0.006024
0.095503
0.012033
0
0
0
0.010909
0
1
0.048193
false
0.006024
0.090361
0
0.162651
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
cba82a990077138a01992d7ddddb07930e5b7e4f
4,005
py
Python
where/parsers/terrapos_position.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
16
2018-08-31T10:31:11.000Z
2022-03-15T16:07:24.000Z
where/parsers/terrapos_position.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
5
2018-07-13T14:04:24.000Z
2021-06-17T02:14:44.000Z
where/parsers/terrapos_position.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
15
2018-06-07T05:45:24.000Z
2022-03-15T16:07:27.000Z
"""A parser for reading Terrapos position output file Example: -------- from where import parsers p = parsers.parse_file(parser_name='terrapos_position', file_path='Gal_C1X_brdc_land_30sec_24hrs_FNAV-file.txt') data = p.as_dict() Description: ------------ Reads data from files in Terrapos position outpu...
43.532609
196
0.457928
411
4,005
4.391727
0.418491
0.011634
0.023269
0.029917
0.237673
0.234349
0.198892
0.18338
0.090305
0.064266
0
0.081473
0.362547
4,005
91
197
44.010989
0.625539
0.695131
0
0
0
0
0.165331
0
0
0
0
0.065934
0
1
0.032258
false
0
0.096774
0
0.193548
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
cba97708676a0d3aa8068ee1b5ecb3bf8d14067f
2,369
py
Python
examples/vault-consul-ami/auth/sign-request.py
crowd-ai/terraform-aws-vault
b5175afe847ce2a5350ec8c2ae3405f0acacdf40
[ "Apache-2.0" ]
651
2017-09-19T09:48:37.000Z
2022-03-23T23:12:35.000Z
examples/vault-consul-ami/auth/sign-request.py
crowd-ai/terraform-aws-vault
b5175afe847ce2a5350ec8c2ae3405f0acacdf40
[ "Apache-2.0" ]
228
2017-09-16T05:36:56.000Z
2022-03-12T17:22:35.000Z
examples/vault-consul-ami/auth/sign-request.py
abhattacharyaNS1/terraform-aws-vault
4103d6bcc3c6fe75ac41e565e83d85315d2a2385
[ "Apache-2.0" ]
536
2017-09-24T00:35:20.000Z
2022-03-30T23:29:27.000Z
#!/usr/bin/env python # -What------------------------------------------------------------------------- # This script creates a request to the AWS Security Token Service API # with the action "GetCallerIdentity" and then signs the request using the # AWS credentials. It was modified from the python 2.x example published...
45.557692
169
0.656395
288
2,369
5.239583
0.465278
0.037111
0.018555
0.021206
0
0
0
0
0
0
0
0.009901
0.14732
2,369
51
170
46.45098
0.737129
0.502322
0
0
0
0
0.114556
0.041344
0
0
0
0
0
0
null
null
0
0.185185
null
null
0.037037
0
0
0
null
0
0
0
0
0
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
cbadf5b7aac1461606ae0d3e02672ce4a80c2908
779
py
Python
kitsune/flagit/migrations/0002_auto_20200629_0826.py
AndrewDVXI/kitsune
84bd4fa60346681c3fc5a03b0b1540fd1335cee2
[ "BSD-3-Clause" ]
929
2015-01-04T08:08:51.000Z
2022-03-31T06:20:44.000Z
kitsune/flagit/migrations/0002_auto_20200629_0826.py
hafixo/kitsune
d7756872e16590eea1c6adaeb5bc78f83414d753
[ "BSD-3-Clause" ]
1,751
2015-01-02T00:04:37.000Z
2022-03-31T10:24:30.000Z
kitsune/flagit/migrations/0002_auto_20200629_0826.py
Whoerr/kitsune
2428573b4920a824c3e712b8a4870f8c1ada8f64
[ "BSD-3-Clause" ]
605
2015-01-01T14:08:36.000Z
2022-03-28T15:39:45.000Z
# Generated by Django 2.2.13 on 2020-06-29 08:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('flagit', '0001_initial'), ] operations = [ migrations.AlterField( model_name='flaggedobject', name='notes', ...
32.458333
279
0.609756
79
779
5.949367
0.708861
0.085106
0.106383
0.123404
0.195745
0.195745
0
0
0
0
0
0.037479
0.24647
779
23
280
33.869565
0.763203
0.05905
0
0.352941
1
0
0.30643
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cbaefb61825099af304bd724cdb8276f0f24abb1
4,427
py
Python
tests/unit/objects/test_detailline.py
divipayhq/python-quickbooks
7578f788629da241df8743505c28425203ee7e95
[ "MIT" ]
null
null
null
tests/unit/objects/test_detailline.py
divipayhq/python-quickbooks
7578f788629da241df8743505c28425203ee7e95
[ "MIT" ]
null
null
null
tests/unit/objects/test_detailline.py
divipayhq/python-quickbooks
7578f788629da241df8743505c28425203ee7e95
[ "MIT" ]
null
null
null
import unittest from quickbooks.objects.detailline import SalesItemLineDetail, DiscountOverride, DetailLine, SubtotalLineDetail, \ DiscountLineDetail, SubtotalLine, DescriptionLineDetail, DescriptionLine, SalesItemLine, DiscountLine, GroupLine, \ AccountBasedExpenseLineDetail, ItemBasedExpenseLineDetail, Descr...
32.313869
119
0.733228
395
4,427
8.126582
0.2
0.168224
0.088785
0.107477
0.273832
0.220561
0.16947
0.054829
0.054829
0.054829
0
0.004397
0.177999
4,427
136
120
32.551471
0.877714
0
0
0.230769
0
0
0.041111
0.005873
0
0
0
0
0.406593
1
0.164835
false
0
0.021978
0
0.351648
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
cbafecc7dd1f5e7be6c1d9337cf73311ecf0726b
626
py
Python
nnmarkdown/form.py
nnscr/nnscr.de
e03948f1daa1ce16739da1924cae6db2d399d09d
[ "MIT" ]
null
null
null
nnmarkdown/form.py
nnscr/nnscr.de
e03948f1daa1ce16739da1924cae6db2d399d09d
[ "MIT" ]
null
null
null
nnmarkdown/form.py
nnscr/nnscr.de
e03948f1daa1ce16739da1924cae6db2d399d09d
[ "MIT" ]
null
null
null
from django import forms from django.utils.safestring import mark_safe from django.template.loader import render_to_string from django.forms.utils import flatatt class MarkdownWidget(forms.Textarea): def render(self, name, value, attrs=None): value = value or "" final_attrs = self.build_attrs(attr...
31.3
115
0.709265
78
626
5.474359
0.461538
0.093677
0.065574
0
0
0
0
0
0
0
0
0
0.177316
626
19
116
32.947368
0.829126
0
0
0
0
0
0.048
0
0
0
0
0
0
1
0.153846
false
0
0.307692
0
0.692308
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
cbb2fd3f6a93f15d58f3f3410154311b5f30d845
261
py
Python
py4science-master/src/chapter4/module_2.py
deepkick/PyRockSim
3d1b6c9eaf5fe1f08e585010f0d60520be4c3de0
[ "MIT" ]
22
2016-10-02T06:38:43.000Z
2021-01-01T19:49:31.000Z
py4science-master/src/chapter4/module_2.py
deepkick/PyRockSim
3d1b6c9eaf5fe1f08e585010f0d60520be4c3de0
[ "MIT" ]
1
2017-10-29T17:08:05.000Z
2018-01-20T03:23:15.000Z
py4science-master/src/chapter4/module_2.py
deepkick/PyRockSim
3d1b6c9eaf5fe1f08e585010f0d60520be4c3de0
[ "MIT" ]
14
2016-11-28T08:18:10.000Z
2020-04-06T11:58:38.000Z
# ファイル名: module_2.py import module_1 # module_1をimportして内部のプログラムを実行 # module_1の内部の変数にアクセス weight = module_1.wgt # 以下、複数回にわたり、module_1の内部の関数にアクセス module_1.teacher(weight) # module_1の関数にアクセス weight = module_1.run(weight) # module_1の module_1.teacher(weight)
23.727273
47
0.808429
36
261
5.555556
0.472222
0.175
0.13
0.2
0
0
0
0
0
0
0
0.04721
0.10728
261
10
48
26.1
0.811159
0.478927
0
0.4
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
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
cbb8e91cf74c4971e6048111785d4e8a3624ffa4
1,078
py
Python
flask_server/app/elasticsearch/rest_requests.py
RyanQuey/java-podcast-processor
c8a9223b987b0cdc0e5dc0e98be61e646a2090d2
[ "Unlicense" ]
3
2021-04-12T02:23:23.000Z
2021-12-07T15:15:28.000Z
flask_server/app/elasticsearch/rest_requests.py
RyanQuey/java-podcast-processor
c8a9223b987b0cdc0e5dc0e98be61e646a2090d2
[ "Unlicense" ]
null
null
null
flask_server/app/elasticsearch/rest_requests.py
RyanQuey/java-podcast-processor
c8a9223b987b0cdc0e5dc0e98be61e646a2090d2
[ "Unlicense" ]
null
null
null
from flask import make_response import requests import os import json ELASTICSEARCH_URL = os.environ.get("ELASTICSEARCH_URL") # TODO use python ES client instead def search(es_index, req): """ makes http request to our ES server TODO will need to make sure to attach the rest of the url received from the b...
30.8
119
0.67718
159
1,078
4.509434
0.496855
0.039052
0.033473
0.04463
0
0
0
0
0
0
0
0.00348
0.200371
1,078
34
120
31.705882
0.828306
0.230983
0
0
0
0
0.202736
0
0
0
0
0.117647
0
1
0.05
false
0
0.2
0
0.3
0.35
0
0
0
null
0
0
0
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
cbb9b5baf79e5cf3975ccc99eefbf0a09410fd22
11,726
py
Python
tests/test_pyqt5ac.py
addisonElliott/pyqt5AutoCompile
5945a85f6230a97f3467c79441d87f5f9cdb478d
[ "MIT" ]
8
2018-10-31T04:53:18.000Z
2020-11-18T18:47:48.000Z
tests/test_pyqt5ac.py
addisonElliott/pyqt5AutoCompile
5945a85f6230a97f3467c79441d87f5f9cdb478d
[ "MIT" ]
24
2020-03-27T11:38:39.000Z
2020-10-23T07:12:41.000Z
tests/test_pyqt5ac.py
addisonElliott/pyqt5AutoCompile
5945a85f6230a97f3467c79441d87f5f9cdb478d
[ "MIT" ]
3
2019-05-08T16:41:26.000Z
2021-08-23T12:37:55.000Z
import os import time import pytest from .. import pyqt5ac def _is_gitlab_ci(): return os.getenv("GITLAB_CI") is not None def _assert_path_exists(expected_path): assert expected_path.check(), ("Generated file does not exist " + str(expected_path)) def _assert_path_does_not_exist(expected_path): asse...
31.18617
98
0.717039
1,570
11,726
4.96051
0.090446
0.064201
0.097586
0.086672
0.78056
0.730611
0.682974
0.627119
0.609271
0.587185
0
0.006281
0.144551
11,726
375
99
31.269333
0.770113
0.015351
0
0.532319
0
0
0.216954
0.069169
0
0
0
0.002667
0.254753
1
0.114068
false
0
0.026616
0.003802
0.152091
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
cbbf087a5ba9b0980cd53302ab247217f2b10c5a
5,760
py
Python
api_tests/users/views/test_user_institutions_relationship.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
null
null
null
api_tests/users/views/test_user_institutions_relationship.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
18
2020-03-24T15:26:02.000Z
2022-03-08T21:30:39.000Z
api_tests/users/views/test_user_institutions_relationship.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
1
2019-07-16T00:14:49.000Z
2019-07-16T00:14:49.000Z
# -*- coding: utf-8 -*- import pytest from api.base.settings.defaults import API_BASE from osf_tests.factories import ( AuthUserFactory, InstitutionFactory, ) @pytest.mark.django_db class TestUserInstititutionRelationship: @pytest.fixture() def institution_one(self): return InstitutionFactor...
27.042254
111
0.565625
637
5,760
4.824176
0.142857
0.091116
0.068337
0.08656
0.74878
0.705825
0.639766
0.612105
0.564269
0.550602
0
0.011661
0.330035
5,760
212
112
27.169811
0.784659
0.064931
0
0.625
0
0
0.058824
0.012286
0
0
0
0
0.171053
1
0.065789
false
0
0.019737
0.026316
0.125
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
cbc175ee406ed8e8f8557cda6308358041a66384
880
py
Python
example/dj/apps/issue_tracker/tests/commands.py
druids/django-fperms-iscore
8e919cdc70ed57e0eb6407469de9ef2441ae06ad
[ "MIT" ]
1
2019-10-07T12:40:38.000Z
2019-10-07T12:40:38.000Z
example/dj/apps/issue_tracker/tests/commands.py
druids/django-fperms-iscore
8e919cdc70ed57e0eb6407469de9ef2441ae06ad
[ "MIT" ]
3
2019-08-09T14:10:21.000Z
2022-02-01T13:48:01.000Z
example/dj/apps/issue_tracker/tests/commands.py
druids/django-fperms-iscore
8e919cdc70ed57e0eb6407469de9ef2441ae06ad
[ "MIT" ]
null
null
null
from io import StringIO from django.core.management import call_command from germanium.test_cases.default import GermaniumTestCase from germanium.tools import assert_equal, assert_false from fperms.models import Perm from fperms_iscore.enums import PERM_TYPE_CORE class CommandsTestCase(GermaniumTestCase): de...
31.428571
120
0.694318
106
880
5.5
0.509434
0.056604
0.041166
0.075472
0
0
0
0
0
0
0
0.00431
0.209091
880
27
121
32.592593
0.833333
0
0
0
0
0
0.065909
0
0
0
0
0
0.222222
1
0.055556
false
0
0.333333
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
cbc5c72381bff5c1e27173958e828c9afff48876
359
py
Python
src/dataset/config.py
Digital-Pathology/CustomDataset
7b438b3151fcf766ef4853af03ea64b0616fc40a
[ "MIT" ]
null
null
null
src/dataset/config.py
Digital-Pathology/CustomDataset
7b438b3151fcf766ef4853af03ea64b0616fc40a
[ "MIT" ]
null
null
null
src/dataset/config.py
Digital-Pathology/CustomDataset
7b438b3151fcf766ef4853af03ea64b0616fc40a
[ "MIT" ]
null
null
null
""" Configuration for development - change these with caution! """ REGION_DIMS = (512, 512) DEFAULT_FILTRATION_STATUS = None DEFAULT_FILTRATION_CACHE_FILEPATH = "filtration_cache.h5" DEFULAT_FILTRATION_CACHE_TITLE = "filtration_cache" DATASET_FILTRATION_PREPROCESSING_MULTIPROCESSING = False FILTRATION_CACHE_A...
22.4375
62
0.830084
39
359
7.179487
0.641026
0.267857
0
0
0
0
0
0
0
0
0
0.021875
0.108635
359
15
63
23.933333
0.853125
0.16156
0
0
0
0
0.121528
0
0
0
0
0
0
1
0
false
0
0
0
0
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
cbc769df3f3a7da2c85962cb36f885ea72e661e7
180
py
Python
Python-If-Else.py
arunpragash-periyasamy/Hackerrank-Python
261787a3e7df99b32f06df0b44a8e1ed876ff007
[ "Apache-2.0" ]
null
null
null
Python-If-Else.py
arunpragash-periyasamy/Hackerrank-Python
261787a3e7df99b32f06df0b44a8e1ed876ff007
[ "Apache-2.0" ]
null
null
null
Python-If-Else.py
arunpragash-periyasamy/Hackerrank-Python
261787a3e7df99b32f06df0b44a8e1ed876ff007
[ "Apache-2.0" ]
null
null
null
a=int(input()) if(a%2==0): if(a>=2 and a<5): print ("Not Weird") elif(a<=20): print("Weird") else: print("Not Weird") else: print("Weird")
16.363636
27
0.466667
28
180
3
0.5
0.071429
0.095238
0
0
0
0
0
0
0
0
0.048387
0.311111
180
10
28
18
0.629032
0
0
0.6
0
0
0.155556
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cbcd288e222917a5a2aee92ac654ba890848d72e
310
py
Python
1287. Element Appearing More Than 25% In Sorted Array/main.py
amanchadha/LeetCode
20dddf0616351ad399f0fa03cb6a2b5cbdd25279
[ "MIT" ]
1
2021-07-18T06:18:40.000Z
2021-07-18T06:18:40.000Z
1287. Element Appearing More Than 25% In Sorted Array/main.py
amanchadha/LeetCode
20dddf0616351ad399f0fa03cb6a2b5cbdd25279
[ "MIT" ]
null
null
null
1287. Element Appearing More Than 25% In Sorted Array/main.py
amanchadha/LeetCode
20dddf0616351ad399f0fa03cb6a2b5cbdd25279
[ "MIT" ]
3
2020-09-27T05:48:30.000Z
2021-08-13T10:07:08.000Z
class Solution: def findSpecialInteger(self, arr: List[int]) -> int: n = len(arr) // 4 c = 0 prev = -1 for e in arr: if e == prev: c += 1 else: c = 1 prev = e if c > n: return e
22.142857
56
0.341935
36
310
2.944444
0.583333
0.037736
0
0
0
0
0
0
0
0
0
0.037037
0.564516
310
13
57
23.846154
0.748148
0
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
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
cbcfaf315ea69bf94aecc01aaf8171b1d851ceaf
9,454
py
Python
ajit.py
kuehnelth/aheui-editor
8915d5897424754b5e7e511332f0a2dc3b94bb52
[ "WTFPL" ]
1
2016-04-30T14:34:15.000Z
2016-04-30T14:34:15.000Z
ajit.py
kuehnelth/aheui-editor
8915d5897424754b5e7e511332f0a2dc3b94bb52
[ "WTFPL" ]
null
null
null
ajit.py
kuehnelth/aheui-editor
8915d5897424754b5e7e511332f0a2dc3b94bb52
[ "WTFPL" ]
null
null
null
import os import sys def do_nothing(machine, code): pass def exit_machine(machine, code): machine.terminate_flag = True def select_storage(machine, code): machine.select_storage(code) def send(machine, code): machine.current_storage.send(machine.get_storage(code)) def compare(machine, code): st...
24.878947
75
0.52179
1,169
9,454
4.117194
0.144568
0.028257
0.024932
0.024932
0.21899
0.152504
0.102223
0.071473
0.034905
0
0
0.037105
0.36429
9,454
379
76
24.944591
0.763727
0.004866
0
0.268882
0
0
0.007669
0
0
0
0.001917
0
0
0
null
null
0.012085
0.006042
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
cbd21513302537c5dc107856e01caa1ad4faf87b
1,347
py
Python
tests/thermostat/test_post.py
cjkrolak/radiotherm
614a2516b8bdb1d3c1b8cf3c641a9034c5adcf55
[ "BSD-3-Clause" ]
37
2015-02-03T04:21:15.000Z
2022-02-27T05:02:54.000Z
tests/thermostat/test_post.py
cjkrolak/radiotherm
614a2516b8bdb1d3c1b8cf3c641a9034c5adcf55
[ "BSD-3-Clause" ]
36
2015-10-11T15:57:34.000Z
2021-09-06T13:20:15.000Z
tests/thermostat/test_post.py
cjkrolak/radiotherm
614a2516b8bdb1d3c1b8cf3c641a9034c5adcf55
[ "BSD-3-Clause" ]
40
2015-01-26T23:00:29.000Z
2020-08-25T05:32:30.000Z
try: from mock import patch, MagicMock except ImportError: from unittest.mock import patch, MagicMock from tests.base_test_case import BaseTestCase from radiotherm.thermostat import Thermostat URL = 'http://192.168.0.2/fake' IP = '192.168.0.2' POST_VALUE = 'stuff' FAKE_REQUEST = 'this is a fake request' clas...
39.617647
98
0.71121
167
1,347
5.443114
0.317365
0.060506
0.088009
0.088009
0.541254
0.541254
0.541254
0.411441
0.330033
0.235424
0
0.015469
0.184113
1,347
33
99
40.818182
0.811647
0
0
0.344828
0
0
0.143281
0.069785
0
0
0
0
0.068966
1
0.068966
false
0
0.310345
0
0.413793
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
cbd4c622193ad881f703eaa07ae3f54f3f9ddcef
5,140
py
Python
Sketches/MPS/BugReports/FixTests/Axon/Axon/AxonExceptions.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MPS/BugReports/FixTests/Axon/Axon/AxonExceptions.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MPS/BugReports/FixTests/Axon/Axon/AxonExceptions.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
# # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not u...
26.494845
80
0.68249
634
5,140
5.526814
0.353312
0.04395
0.055936
0.053082
0.179509
0.128995
0.128995
0.111301
0.111301
0.082192
0
0.002799
0.235409
5,140
194
81
26.494845
0.888804
0.755447
0
0.4
0
0
0
0
0
0
0
0
0
1
0.04
false
0.4
0
0
0.56
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
cbd51b07bb62bc3833c7b5b84b2d0c6f2fe70399
6,027
py
Python
toolkit/ev3/simulation/brick.py
AlexGustafsson/ev3-emulator-toolkit
641737660839dc85e2caaab9431518597b8fd263
[ "Unlicense" ]
null
null
null
toolkit/ev3/simulation/brick.py
AlexGustafsson/ev3-emulator-toolkit
641737660839dc85e2caaab9431518597b8fd263
[ "Unlicense" ]
null
null
null
toolkit/ev3/simulation/brick.py
AlexGustafsson/ev3-emulator-toolkit
641737660839dc85e2caaab9431518597b8fd263
[ "Unlicense" ]
null
null
null
import json from enum import Enum from typing import Dict, Optional, List, Any, Union from toolkit.ev3.simulation.runtime import Runtime class Motor: def __init__(self, type: str) -> None: self.__type = type self.__speed = 0 self.__angle = 0 self.__count = 0 @property def...
35.040698
121
0.619379
702
6,027
5.07265
0.182336
0.107835
0.060657
0.077506
0.363662
0.350183
0.337826
0.337826
0.325751
0.325751
0
0.003968
0.247387
6,027
171
122
35.245614
0.781085
0.052597
0
0.176471
0
0
0.161514
0.015991
0
0
0
0.005848
0
1
0.226891
false
0.008403
0.033613
0.05042
0.453782
0.008403
0
0
0
null
0
0
0
0
0
0
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
cbd661420a0ee41f94a26b8a91eb5b06a4a40b8c
1,841
py
Python
overlays/migrations/0002_auto_20200623_1210.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
3
2020-05-05T12:12:09.000Z
2020-05-08T08:48:16.000Z
overlays/migrations/0002_auto_20200623_1210.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
160
2020-05-19T13:03:43.000Z
2022-03-12T00:35:28.000Z
overlays/migrations/0002_auto_20200623_1210.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
null
null
null
# Generated by Django 2.2.10 on 2020-06-23 12:10 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('overlays', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='overlay', ...
40.911111
258
0.58881
177
1,841
5.943503
0.440678
0.094106
0.068441
0.041825
0.193916
0.140684
0.072243
0
0
0
0
0.020787
0.268332
1,841
44
259
41.840909
0.760208
0.024986
0
0.157895
1
0
0.237591
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.131579
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
cbd9a16203d2a55f757101be4a35761026f83b32
813
py
Python
toucan/canary_log_api/migrations/0001_initial.py
toucan-project/TOUCAN
d562e1191b5ef10480be819ba8c584034c25259b
[ "MIT" ]
4
2019-08-28T14:36:23.000Z
2019-08-30T09:49:12.000Z
toucan/canary_log_api/migrations/0001_initial.py
toucan-project/TOUCAN
d562e1191b5ef10480be819ba8c584034c25259b
[ "MIT" ]
2
2021-04-20T17:09:30.000Z
2021-09-23T23:26:22.000Z
toucan/canary_log_api/migrations/0001_initial.py
toucan-project/TOUCAN
d562e1191b5ef10480be819ba8c584034c25259b
[ "MIT" ]
1
2020-01-22T20:01:58.000Z
2020-01-22T20:01:58.000Z
# Generated by Django 2.2.3 on 2019-08-27 10:12 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('canary_files', '0001_initial'), ] operations = [ migrations.CreateModel( na...
30.111111
133
0.599016
85
813
5.623529
0.635294
0.050209
0.058577
0.09205
0
0
0
0
0
0
0
0.038526
0.265683
813
26
134
31.269231
0.762144
0.055351
0
0
1
0
0.113577
0.030026
0
0
0
0
0
1
0
false
0
0.105263
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
cbdb8ed490d9f2b8c89faa7574288f4827be53a5
38,613
py
Python
selection/constraints/quasi_affine.py
wfithian/selective-inference
19ea427118b04716b23b394f37aafcf126d29a53
[ "BSD-3-Clause" ]
null
null
null
selection/constraints/quasi_affine.py
wfithian/selective-inference
19ea427118b04716b23b394f37aafcf126d29a53
[ "BSD-3-Clause" ]
null
null
null
selection/constraints/quasi_affine.py
wfithian/selective-inference
19ea427118b04716b23b394f37aafcf126d29a53
[ "BSD-3-Clause" ]
1
2019-07-13T04:14:12.000Z
2019-07-13T04:14:12.000Z
""" This module contains the core code needed for post selection inference based on affine selection procedures as described in the papers `Kac Rice`_, `Spacings`_, `covTest`_ and `post selection LASSO`_. .. _covTest: http://arxiv.org/abs/1301.7161 .. _Kac Rice: http://arxiv.org/abs/1308.3020 .. _Spacings: http://arxi...
31.06436
118
0.524305
4,583
38,613
4.301986
0.104735
0.015622
0.03662
0.011716
0.711453
0.685332
0.674072
0.662
0.651501
0.629742
0
0.015129
0.371766
38,613
1,242
119
31.089372
0.797634
0.377179
0
0.658537
0
0.004065
0.049497
0
0
0
0
0
0
1
0.04878
false
0
0.014228
0
0.150407
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cbe203829ccb1eca88e09126c70d4df5e355ab8d
324
py
Python
off.py
YmerejRedienhcs/ws2811
d4299cfc8577eebcd23a73bacbfbafbde439711a
[ "Unlicense" ]
1
2021-06-22T16:42:59.000Z
2021-06-22T16:42:59.000Z
off.py
YmerejRedienhcs/ws2811
d4299cfc8577eebcd23a73bacbfbafbde439711a
[ "Unlicense" ]
null
null
null
off.py
YmerejRedienhcs/ws2811
d4299cfc8577eebcd23a73bacbfbafbde439711a
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 import sys import board import neopixel import time import random if len(sys.argv) > 1: num_lights = int(sys.argv[1]) else: num_lights = 250 # program the number of lights with the default brightness 1.0, and autoWrite true pixels = neopixel.NeoPixel(board.D18, num_lights) pixels.fill((0,0,...
20.25
82
0.737654
54
324
4.37037
0.592593
0.114407
0.067797
0
0
0
0
0
0
0
0
0.047619
0.157407
324
15
83
21.6
0.81685
0.302469
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.454545
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
cbe41bfa6902fa18d686c9e77893a411d6f65e0e
10,027
py
Python
customer_journey/customer_journey/page/customer_safari/customer_safari.py
migrationcv/customer_journey
1be582aecb0a1ac09e718fbc24f34ab3ba584246
[ "MIT" ]
null
null
null
customer_journey/customer_journey/page/customer_safari/customer_safari.py
migrationcv/customer_journey
1be582aecb0a1ac09e718fbc24f34ab3ba584246
[ "MIT" ]
null
null
null
customer_journey/customer_journey/page/customer_safari/customer_safari.py
migrationcv/customer_journey
1be582aecb0a1ac09e718fbc24f34ab3ba584246
[ "MIT" ]
null
null
null
import frappe from datetime import datetime from collections import OrderedDict def days_between(d1, d2): if type(d1) == type(d2): if(d1 > d2): return (d1 - d2).days else: return (d2 - d1).days else: return "not defined" def handle_null_values(field): if not field: ...
42.668085
199
0.613344
1,325
10,027
4.430189
0.126038
0.091312
0.049063
0.061329
0.402215
0.285349
0.233049
0.200511
0.163714
0.151448
0
0.01704
0.239154
10,027
234
200
42.850427
0.752392
0.058741
0
0.122093
0
0.011628
0.230402
0.029849
0
0
0
0
0
0
null
null
0
0.017442
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
cbe4c96266a74a5d3dd1d43e875f08f3aefbb71f
330
py
Python
cluetracker/cluetracker/urls.py
dabreese00/cluetracker
05bb62e995cf4aa5e8b891b5b804e35e3dc4cf38
[ "MIT" ]
null
null
null
cluetracker/cluetracker/urls.py
dabreese00/cluetracker
05bb62e995cf4aa5e8b891b5b804e35e3dc4cf38
[ "MIT" ]
1
2021-10-16T18:26:56.000Z
2021-10-16T18:26:56.000Z
cluetracker/cluetracker/urls.py
dabreese00/cluetracker
05bb62e995cf4aa5e8b891b5b804e35e3dc4cf38
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include from rest_framework.authtoken import views urlpatterns = [ path('admin/', admin.site.urls), path('api/games/', include('games.api.urls')), path('api-auth/', include('rest_framework.urls')), path('api-token-auth/', views.obtain_auth_...
30
54
0.712121
45
330
5.133333
0.422222
0.103896
0.142857
0
0
0
0
0
0
0
0
0
0.127273
330
10
55
33
0.802083
0
0
0
0
0
0.221212
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1db0d6d8889624955eb87db476e500c41266b845
2,000
py
Python
8_Collections/D_list.py
Oscar-Oliveira/Python3
fa791225a6810b75890d24407b73c5e1b514acbe
[ "MIT" ]
null
null
null
8_Collections/D_list.py
Oscar-Oliveira/Python3
fa791225a6810b75890d24407b73c5e1b514acbe
[ "MIT" ]
null
null
null
8_Collections/D_list.py
Oscar-Oliveira/Python3
fa791225a6810b75890d24407b73c5e1b514acbe
[ "MIT" ]
null
null
null
""" List """ import math def my_avg(myList): sum = 0 for grade in myList: sum += grade return sum / len(myList) def list_one_by_one_v1(myList): for i in range(len(myList)): print(myList[i]) def list_one_by_one_v2(myList): for item in myList: print(item) ...
19.047619
58
0.657
292
2,000
4.380137
0.222603
0.120407
0.066458
0.037529
0.225958
0
0
0
0
0
0
0.039531
0.1905
2,000
104
59
19.230769
0.750463
0.0465
0
0.368421
0
0
0.115513
0
0
0
0
0
0
1
0.065789
false
0
0.013158
0
0.092105
0.526316
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1db15d658f4d9d2c4da4802c5734ed663d519b5f
1,013
py
Python
pgAdmin/pgadmin4/web/migrations/versions/a68b374fe373_.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
pgAdmin/pgadmin4/web/migrations/versions/a68b374fe373_.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
pgAdmin/pgadmin4/web/migrations/versions/a68b374fe373_.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
"""Added columns for SSH tunneling Revision ID: a68b374fe373 Revises: 50aad68f99c2 Create Date: 2018-04-05 13:59:57.588355 """ from alembic import op import sqlalchemy as sa from pgadmin.model import db # revision identifiers, used by Alembic. revision = 'a68b374fe373' down_revision = '50aad68f99c2' branch_labels =...
23.022727
79
0.705824
131
1,013
5.374046
0.496183
0.068182
0.127841
0.170455
0.443182
0.443182
0.443182
0.443182
0.386364
0.386364
0
0.066158
0.224087
1,013
43
80
23.55814
0.829517
0.207305
0
0.214286
0
0
0.443884
0.026482
0
0
0
0
0
1
0.071429
false
0.035714
0.107143
0
0.178571
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
1db5ba365b66615928f8f05c543d0b5167eb7d1f
225
py
Python
src/db/manager.py
AllForJan/prizma-backend
fe866e74fa01e900cc7eab624bb5716a4bae056d
[ "MIT" ]
2
2018-04-08T22:18:11.000Z
2018-04-26T08:12:46.000Z
src/db/manager.py
AllForJan/prizma-backend
fe866e74fa01e900cc7eab624bb5716a4bae056d
[ "MIT" ]
null
null
null
src/db/manager.py
AllForJan/prizma-backend
fe866e74fa01e900cc7eab624bb5716a4bae056d
[ "MIT" ]
2
2018-04-08T22:18:13.000Z
2018-04-08T22:18:18.000Z
import psycopg2.extras import settings conn = None def get_conn(): global conn if conn is None: conn = psycopg2.connect(settings.DATABASE_URL, cursor_factory=psycopg2.extras.RealDictCursor) return conn
18.75
101
0.737778
29
225
5.62069
0.62069
0.171779
0
0
0
0
0
0
0
0
0
0.016575
0.195556
225
11
102
20.454545
0.883978
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1db6f55f7f379d2a9164dfa3f5a7f777fd7d6739
1,907
py
Python
data/__init__.py
mdgaziur/Ranky
dc4420ad36a67955046a35269d3abd30c533da31
[ "MIT" ]
1
2020-09-22T10:14:33.000Z
2020-09-22T10:14:33.000Z
data/__init__.py
mdgaziur/Ranky
dc4420ad36a67955046a35269d3abd30c533da31
[ "MIT" ]
null
null
null
data/__init__.py
mdgaziur/Ranky
dc4420ad36a67955046a35269d3abd30c533da31
[ "MIT" ]
null
null
null
''' Data list contains all users info. Each user's info must be a list. First Element: 0 (int) Second Element: name (str) Third Element: username (str) Fourth Element: toph link (str) Fifth Element: dimik link (str) Sixth Element: uri link (str) Note: If any user does not have an account leave ...
45.404762
102
0.599371
248
1,907
4.560484
0.41129
0.103448
0.126437
0.137931
0.194518
0.134394
0.134394
0
0
0
0
0.029299
0.176717
1,907
41
103
46.512195
0.691083
0.176717
0
0
0
0
0.669443
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1db8b846f2d0a1a78a86826bc70d04b392786fb0
1,744
py
Python
resources/views/Absensi/models/DB.py
Ackyras/KP-LabMM
2780c46fdef2866e257c95b976b63d3837eb61f4
[ "MIT" ]
null
null
null
resources/views/Absensi/models/DB.py
Ackyras/KP-LabMM
2780c46fdef2866e257c95b976b63d3837eb61f4
[ "MIT" ]
null
null
null
resources/views/Absensi/models/DB.py
Ackyras/KP-LabMM
2780c46fdef2866e257c95b976b63d3837eb61f4
[ "MIT" ]
null
null
null
# %% # import import pymysql.cursors from datetime import date from models.Asprak import Asprak # %% class DB: def __init__(self, DB_HOST, DB_USER, DB_PASS, DB_NAME): self.host = DB_HOST self.name = DB_NAME self.user = DB_USER self.password = DB_PASS self.cursor = None ...
26.424242
80
0.525803
205
1,744
4.385366
0.341463
0.077864
0.053393
0.044494
0.097887
0.097887
0.097887
0.097887
0.097887
0.097887
0
0.004355
0.341743
1,744
65
81
26.830769
0.778746
0.205849
0
0.2
0
0
0.10438
0
0
0
0
0
0
1
0.1
false
0.075
0.075
0
0.325
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
1dbc3756e5bb1ca3b8a6ed8831c5a0781e94af80
684
py
Python
home_application/models.py
lvtu0316/testdisk
529290e4cf09d40d3d0ddb637859e86950bf70ed
[ "Apache-2.0" ]
null
null
null
home_application/models.py
lvtu0316/testdisk
529290e4cf09d40d3d0ddb637859e86950bf70ed
[ "Apache-2.0" ]
7
2020-06-05T21:13:27.000Z
2021-06-10T21:33:12.000Z
home_application/models.py
lvtu0316/testdisk
529290e4cf09d40d3d0ddb637859e86950bf70ed
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models # Create your models here. class Host(models.Model): ip = models.CharField( max_length=100,verbose_name='主机IP') os = models.CharField( max_length=100, verbose_name='系统') partition = models.CharField(max_length=100, verbose_name='分区') class Meta: ...
32.571429
105
0.704678
89
684
5.213483
0.58427
0.142241
0.116379
0.155172
0.24569
0.24569
0.24569
0
0
0
0
0.017699
0.173977
684
21
105
32.571429
0.80354
0.106725
0
0
0
0
0.046129
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0.071429
0.857143
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
1dc0532608c68592ef652c5e924e12bd2322ac2b
1,982
py
Python
DBTools.py
SheldonMcLetchie/cs505_final_project
ef32fac7b5357cc48ed7699e03178a1ea7d364d7
[ "Unlicense" ]
null
null
null
DBTools.py
SheldonMcLetchie/cs505_final_project
ef32fac7b5357cc48ed7699e03178a1ea7d364d7
[ "Unlicense" ]
null
null
null
DBTools.py
SheldonMcLetchie/cs505_final_project
ef32fac7b5357cc48ed7699e03178a1ea7d364d7
[ "Unlicense" ]
null
null
null
import pyorient import json import re def reset_db(client, name): # Remove Old Database if client.db_exists(name): client.db_drop(name) # Create New Database client.db_create(name, pyorient.DB_TYPE_GRAPH, pyorient.STORAGE_TYPE_PLOCAL) def getrid(client,id): nodeId = client.query("SE...
24.775
140
0.639758
266
1,982
4.684211
0.357143
0.052167
0.076244
0.041734
0.137239
0.109149
0.033708
0
0
0
0
0.00332
0.240161
1,982
79
141
25.088608
0.824037
0.281534
0
0
0
0
0.209104
0
0
0
0
0
0
1
0.09375
false
0.09375
0.09375
0
0.21875
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
1dc4498346a4a9cc6b9ec57425d0feb68a66053e
1,371
py
Python
dataset/car_racing/make_csv.py
prakharsingh95/Model-vs-Model-Free-RL
1ddcc54bab66905a44997c48df1d2034c3b8b903
[ "MIT" ]
2
2020-02-08T06:09:37.000Z
2020-02-09T04:11:20.000Z
dataset/car_racing/make_csv.py
prakharsingh95/Model-vs-Model-Free-RL
1ddcc54bab66905a44997c48df1d2034c3b8b903
[ "MIT" ]
null
null
null
dataset/car_racing/make_csv.py
prakharsingh95/Model-vs-Model-Free-RL
1ddcc54bab66905a44997c48df1d2034c3b8b903
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import cv2 import numpy as np import os from pathlib import Path from tqdm import tqdm import settings cwd = Path(os.path.dirname(__file__)) rollouts = cwd/'rollouts' def make_csv(): files = [] for i in sorted(rollouts.iterdir()): trajectory = Path(i) for file in sor...
24.482143
53
0.617797
197
1,371
4.096447
0.340102
0.039653
0.02974
0.034696
0.143742
0.143742
0.143742
0.143742
0.143742
0.061958
0
0.002854
0.233406
1,371
55
54
24.927273
0.764986
0.065646
0
0
0
0
0.092332
0
0
0
0
0.018182
0
1
0.073171
false
0
0.146341
0
0.219512
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
1dc44fe547c2cbc8a988bd0186a9d45858954898
1,736
py
Python
routes/auth.py
NihilBabu/xmigrate
c33d0b506a86a0ebef22df8ce299cd84f560d034
[ "Apache-2.0" ]
10
2021-01-02T11:59:46.000Z
2021-06-14T04:38:45.000Z
routes/auth.py
NihilBabu/xmigrate
c33d0b506a86a0ebef22df8ce299cd84f560d034
[ "Apache-2.0" ]
46
2022-02-19T09:11:11.000Z
2022-03-31T15:42:50.000Z
routes/auth.py
NihilBabu/xmigrate
c33d0b506a86a0ebef22df8ce299cd84f560d034
[ "Apache-2.0" ]
3
2021-01-10T12:33:52.000Z
2021-04-12T14:29:13.000Z
from quart import jsonify, request from quart_jwt_extended import ( JWTManager, jwt_required, create_access_token, get_jwt_identity ) from __main__ import app from pkg.common import user @app.route('/login', methods=['POST']) async def login(): if not request.is_json: return jsonify({"msg": "Missin...
32.148148
66
0.677419
221
1,736
5.190045
0.266968
0.124673
0.125545
0.120314
0.404534
0.404534
0.404534
0.404534
0.404534
0.404534
0
0.023724
0.198733
1,736
53
67
32.754717
0.800863
0.028802
0
0.4
0
0
0.181116
0
0
0
0
0
0
1
0
false
0.2
0.088889
0
0.333333
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1dcf0e7d4c548f523a1e770299d25df57bf6ab4c
2,553
py
Python
muscle_tuning/linearregression_tuning.py
c60evaporator/param_tuning_utility
8518b76369dcc918172a87ab4c975ee3a12f7045
[ "BSD-3-Clause" ]
null
null
null
muscle_tuning/linearregression_tuning.py
c60evaporator/param_tuning_utility
8518b76369dcc918172a87ab4c975ee3a12f7045
[ "BSD-3-Clause" ]
null
null
null
muscle_tuning/linearregression_tuning.py
c60evaporator/param_tuning_utility
8518b76369dcc918172a87ab4c975ee3a12f7045
[ "BSD-3-Clause" ]
null
null
null
from sklearn.linear_model import LinearRegression from .param_tuning import ParamTuning class LinearRegressionTuning(ParamTuning): """ ElasticNet回帰チューニング用クラス """ # 共通定数 SEED = 42 # デフォルト乱数シード SEEDS = [42, 43, 44, 45, 46, 47, 48, 49, 50, 51] # デフォルト複数乱数シード CV_NUM = 5 # 最適化時のクロスバリデーションのデ...
43.271186
160
0.678026
292
2,553
5.606164
0.34589
0.04887
0.051313
0.023213
0.415394
0.415394
0.415394
0.415394
0.415394
0.415394
0
0.021385
0.230709
2,553
59
161
43.271186
0.812118
0.217783
0
0.181818
0
0
0.025484
0.011213
0
0
0
0
0
1
0.060606
false
0
0.060606
0
0.69697
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
1dd2d0e4bc856dc742ce6152807e293a2e8661c5
1,793
py
Python
benchmark/pen_parser.py
bobowang2333/P4benchmark
fa2421cc19d58a317f1ab0594a51a40781deca6f
[ "Apache-2.0" ]
1
2017-06-08T01:35:41.000Z
2017-06-08T01:35:41.000Z
benchmark/pen_parser.py
bobowang2333/P4benchmark
fa2421cc19d58a317f1ab0594a51a40781deca6f
[ "Apache-2.0" ]
null
null
null
benchmark/pen_parser.py
bobowang2333/P4benchmark
fa2421cc19d58a317f1ab0594a51a40781deca6f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os from subprocess import call, Popen, PIPE import shlex import time import argparse from parsing.bm_parser import benchmark_parser_header from benchmark import P4Benchmark class BenchmarkParser(P4Benchmark): def __init__(self, nb_header, offer_load): parent_dir = 'result/pa...
29.883333
80
0.62019
226
1,793
4.668142
0.40708
0.059716
0.034123
0.032227
0.12891
0.092891
0.092891
0.092891
0.092891
0
0
0.022642
0.261015
1,793
59
81
30.389831
0.773585
0.015616
0
0.086957
0
0
0.077141
0
0
0
0
0
0.043478
0
null
null
0
0.152174
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
1dd3c0e6b6f71881fdb124f893a1baa72dcd793b
1,979
py
Python
soap_client.py
UF-OCR/OCR-API
6be6982c3f8aabda01d2d6deb52f854d53d929bc
[ "Apache-2.0" ]
1
2019-03-19T20:47:30.000Z
2019-03-19T20:47:30.000Z
soap_client.py
UF-OCR/OCR-API
6be6982c3f8aabda01d2d6deb52f854d53d929bc
[ "Apache-2.0" ]
7
2019-11-13T03:29:11.000Z
2020-05-04T13:29:50.000Z
soap_client.py
UF-OCR/OCR-API
6be6982c3f8aabda01d2d6deb52f854d53d929bc
[ "Apache-2.0" ]
2
2019-07-10T19:47:19.000Z
2020-02-05T20:37:41.000Z
from flask import Flask, request, jsonify, render_template, Markup, session, redirect, abort from zeep import Client, Settings, xsd from requests import Session from requests.auth import AuthBase, HTTPBasicAuth from zeep.transports import Transport import os import sys import datetime import time from classes.client im...
34.12069
117
0.660435
228
1,979
5.614035
0.394737
0.054688
0.05625
0.046875
0.129688
0.076563
0.076563
0.076563
0
0
0
0.020257
0.251642
1,979
57
118
34.719298
0.844024
0.036382
0
0.24
0
0
0.099369
0
0
0
0
0
0
1
0.04
false
0.08
0.24
0
0.36
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
1dd578b0975b5ca734ce00bac6a5f78898ec80a5
583
py
Python
posts/migrations/0003_auto_20200609_0943.py
Kmbaria/Awaaards
b85d89b5ab8f0aba437b6f960bbf62c73abbf342
[ "Unlicense" ]
null
null
null
posts/migrations/0003_auto_20200609_0943.py
Kmbaria/Awaaards
b85d89b5ab8f0aba437b6f960bbf62c73abbf342
[ "Unlicense" ]
8
2021-03-19T04:45:42.000Z
2021-09-22T19:11:49.000Z
posts/migrations/0003_auto_20200609_0943.py
tw8130/Awwards
d1296cdc26356443d6ec5869495eedb766ecbcf2
[ "Unlicense" ]
null
null
null
# Generated by Django 3.0.6 on 2020-06-09 06:43 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('posts', '0002_newsletterrecipients'), ] operations = [ migrations.RemoveField( model_name='proj...
24.291667
112
0.607204
61
583
5.737705
0.622951
0.068571
0.08
0.125714
0
0
0
0
0
0
0
0.044811
0.272727
583
23
113
25.347826
0.78066
0.077187
0
0.117647
1
0
0.126866
0.046642
0
0
0
0
0
1
0
false
0
0.117647
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1ddbd5533b5cd8a8c473080e79380610081050db
311
py
Python
test/files/async_context_processor_ticket_109.py
stefano-maggiolo/sqlalchemy2-stubs
2940033b46589cceefdc2ef32e0cdad267140213
[ "MIT" ]
106
2021-03-02T08:39:00.000Z
2022-03-14T03:18:17.000Z
test/files/async_context_processor_ticket_109.py
stefano-maggiolo/sqlalchemy2-stubs
2940033b46589cceefdc2ef32e0cdad267140213
[ "MIT" ]
138
2021-03-02T03:21:25.000Z
2022-03-22T20:50:58.000Z
test/files/async_context_processor_ticket_109.py
stefano-maggiolo/sqlalchemy2-stubs
2940033b46589cceefdc2ef32e0cdad267140213
[ "MIT" ]
25
2021-03-19T02:03:26.000Z
2022-02-17T14:27:12.000Z
from sqlalchemy import literal from sqlalchemy import select from sqlalchemy.ext import asyncio async def test() -> None: database = asyncio.create_async_engine("", future=True) trans_ctx = database.begin() async with trans_ctx as connection: await connection.execute(select(literal(1)))
25.916667
59
0.742765
40
311
5.675
0.625
0.185022
0.176211
0
0
0
0
0
0
0
0
0.003891
0.173633
311
11
60
28.272727
0.879377
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1ddecab57c17f7818efb6d569b49bd657b1ed2dd
976
py
Python
flaskblog/__init__.py
gopal1cloud/appsec-dvpa
99a5dbb54b9ce8b0e4803a28a265512fe0a4a389
[ "MIT" ]
null
null
null
flaskblog/__init__.py
gopal1cloud/appsec-dvpa
99a5dbb54b9ce8b0e4803a28a265512fe0a4a389
[ "MIT" ]
null
null
null
flaskblog/__init__.py
gopal1cloud/appsec-dvpa
99a5dbb54b9ce8b0e4803a28a265512fe0a4a389
[ "MIT" ]
null
null
null
from flask import Flask from flask_mongoengine import MongoEngine from flaskblog import config from flask_mysqldb import MySQL import os app = Flask(__name__) BASE_DIR = os.path.dirname(os.path.abspath(__file__)) UPLOAD_FOLDER = os.path.join(BASE_DIR, "uploads") ALLOWED_EXTENSIONS = {'yaml', 'json', 'yml'} app.confi...
25.025641
53
0.753074
130
976
5.392308
0.392308
0.077033
0.099857
0
0
0
0
0
0
0
0
0.001179
0.131148
976
38
54
25.684211
0.825472
0.056352
0
0
0
0
0.139434
0
0
0
0
0
0
1
0.038462
false
0.038462
0.307692
0
0.346154
0.192308
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1deb84b3cd679dd6a9787aa0411f8e86d867c6c5
512
py
Python
app/handlers/home_handler.py
CarlosRasche/wishlist
7d3d7156f09aab56ec81990930fcc5179586294a
[ "MIT" ]
null
null
null
app/handlers/home_handler.py
CarlosRasche/wishlist
7d3d7156f09aab56ec81990930fcc5179586294a
[ "MIT" ]
null
null
null
app/handlers/home_handler.py
CarlosRasche/wishlist
7d3d7156f09aab56ec81990930fcc5179586294a
[ "MIT" ]
null
null
null
from aiohttp import web from app.model.product_list import ProductList async def handle(request): name = request.match_info.get("name", "Anonymous") text = f'''Hello, this is the list {request.app.product_list._name} {format_product_list(request.app.product_list._product_list)}''' return web.Respo...
32
71
0.708984
71
512
4.929577
0.450704
0.251429
0.08
0.12
0.142857
0
0
0
0
0
0
0
0.171875
512
16
72
32
0.825472
0
0
0
0
0
0.321637
0.181287
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.416667
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
1df330ea2f2436e12416a184d2c72333047eb7fb
6,998
py
Python
pysnmp/SHIVA-ETHER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/SHIVA-ETHER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/SHIVA-ETHER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module SHIVA-ETHER-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SHIVA-ETHER-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:54:57 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
104.447761
937
0.760074
798
6,998
6.665414
0.174185
0.010152
0.014664
0.019553
0.443128
0.405903
0.189697
0.189697
0.189697
0.189697
0
0.080188
0.087596
6,998
66
938
106.030303
0.752858
0.046299
0
0
0
0
0.136534
0.006602
0
0
0
0
0
1
0
false
0
0.118644
0
0.118644
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1df94b9864cca0907d100810dee29f6817ba21ec
712
py
Python
test/mock_server_and_request.py
smurfix/remi
879f48048c3d753a07667a9b239358d104692788
[ "Apache-2.0" ]
3,224
2015-10-30T15:35:05.000Z
2022-03-08T19:31:46.000Z
test/mock_server_and_request.py
smurfix/remi
879f48048c3d753a07667a9b239358d104692788
[ "Apache-2.0" ]
453
2015-10-26T17:39:01.000Z
2022-03-07T13:57:18.000Z
test/mock_server_and_request.py
smurfix/remi
879f48048c3d753a07667a9b239358d104692788
[ "Apache-2.0" ]
458
2015-11-03T12:08:01.000Z
2022-03-09T00:17:19.000Z
try: # Python 2.x import BaseHTTPServer as server from StringIO import StringIO as IO except ImportError: # Python 3.x from http import server from io import BytesIO as IO class MockRequest(object): def makefile(self, *args, **kwargs): return IO(b"GET / HTTP/1.0") def getsockn...
22.967742
46
0.650281
95
712
4.736842
0.547368
0.088889
0.013333
0
0
0
0
0
0
0
0
0.024528
0.255618
712
31
47
22.967742
0.824528
0.029494
0
0
0
0
0.03193
0
0
0
0
0
0
1
0.173913
false
0.043478
0.217391
0.086957
0.565217
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
1dff4aebee01dcdc1b4d8dc4836b6fa454ca8ff5
262
py
Python
jupyterhub/jupyterhub/tests/test_internal_ssl_app.py
samkos/kslhub
68fd65a4c7e4796afd499a88a4b58e212015c383
[ "BSD-2-Clause" ]
null
null
null
jupyterhub/jupyterhub/tests/test_internal_ssl_app.py
samkos/kslhub
68fd65a4c7e4796afd499a88a4b58e212015c383
[ "BSD-2-Clause" ]
null
null
null
jupyterhub/jupyterhub/tests/test_internal_ssl_app.py
samkos/kslhub
68fd65a4c7e4796afd499a88a4b58e212015c383
[ "BSD-2-Clause" ]
null
null
null
"""Test the JupyterHub entry point with internal ssl""" # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. import sys import jupyterhub.tests.mocking from jupyterhub.tests.test_app import * ssl_enabled = True
23.818182
58
0.78626
37
262
5.513514
0.756757
0.147059
0
0
0
0
0
0
0
0
0
0
0.145038
262
10
59
26.2
0.910714
0.561069
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
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
380cbbc2db62dd47590dd587bed9bc49183e21b0
1,395
py
Python
cardcounter/engine/card.py
qwertystop/cardcounter
6b599026dec7846b2c718cd5cecc55804b94add5
[ "MIT" ]
null
null
null
cardcounter/engine/card.py
qwertystop/cardcounter
6b599026dec7846b2c718cd5cecc55804b94add5
[ "MIT" ]
null
null
null
cardcounter/engine/card.py
qwertystop/cardcounter
6b599026dec7846b2c718cd5cecc55804b94add5
[ "MIT" ]
null
null
null
"""Structure for cards""" from enum import Enum from functools import lru_cache from itertools import chain from typing import Tuple, Union class Rank(Enum): Ace = "A" _2 = "2" _3 = "3" _4 = "4" _5 = "5" _6 = "6" _7 = "7" _8 = "8" _9 = "9" _10 ...
23.25
81
0.555556
185
1,395
4.037838
0.47027
0.048193
0.060241
0.029451
0
0
0
0
0
0
0
0.026804
0.30466
1,395
59
82
23.644068
0.743299
0.103943
0
0.044444
0
0
0.018714
0
0
0
0
0
0
1
0.066667
false
0.022222
0.088889
0
0.755556
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
380da48c2bc99a70874d824e43531d5ab2bc74c2
1,569
py
Python
client/gap/banking.py
Blue-IT-Marketing/weqtrading
881d1c69430a317e2dfd9a5c64fe2d8f51910e50
[ "MIT" ]
null
null
null
client/gap/banking.py
Blue-IT-Marketing/weqtrading
881d1c69430a317e2dfd9a5c64fe2d8f51910e50
[ "MIT" ]
13
2020-09-06T15:33:52.000Z
2022-03-08T22:55:55.000Z
client/gap/banking.py
Blue-IT-Marketing/weqtrading
881d1c69430a317e2dfd9a5c64fe2d8f51910e50
[ "MIT" ]
1
2019-09-03T12:49:51.000Z
2019-09-03T12:49:51.000Z
import os import webapp2 import jinja2 from google.appengine.ext import ndb from google.appengine.api import users import logging import json import random import string import datetime class Banking(ndb.Expando): banking_id = ndb.StringProperty() account_holder= ndb.StringProperty() bank_name= ndb.String...
31.38
79
0.657744
184
1,569
5.358696
0.347826
0.081136
0.03854
0
0
0
0
0
0
0
0
0.003466
0.2645
1,569
50
80
31.38
0.850953
0
0
0.093023
0
0
0.030573
0
0
0
0
0
0
1
0.069767
false
0
0.232558
0.023256
0.581395
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
381436c20a0f93660d51a38454a0771e77375481
651
py
Python
src/ledgerapp/migrations/0006_alter_entry_account.py
robertsmoto/sodavault
200e843be7abe6cc447647bba55c7c1309092e5e
[ "BSD-3-Clause" ]
null
null
null
src/ledgerapp/migrations/0006_alter_entry_account.py
robertsmoto/sodavault
200e843be7abe6cc447647bba55c7c1309092e5e
[ "BSD-3-Clause" ]
null
null
null
src/ledgerapp/migrations/0006_alter_entry_account.py
robertsmoto/sodavault
200e843be7abe6cc447647bba55c7c1309092e5e
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.2.3 on 2021-09-15 12:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ledgerapp', '0005_auto_20210909_1505'), ] operations = [ migrations.AlterField( model_name='entry', name='account', ...
34.263158
313
0.614439
72
651
5.486111
0.805556
0.03038
0.055696
0
0
0
0
0
0
0
0
0.062622
0.215054
651
18
314
36.166667
0.710372
0.069124
0
0
1
0
0.360927
0.038079
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3815a63180245153645d873969dc123355d4582d
2,520
py
Python
DSL_SentimentAnalysis/CLM/multiverso/theano_ext/lasagne_ext/param_manager.py
Bhaskers-Blu-Org2/DualLearning
6c7873747400359bd0f0aa69dabe23b814ea2f0f
[ "MIT" ]
54
2019-05-07T12:20:33.000Z
2022-02-03T23:50:53.000Z
DSL_SentimentAnalysis/CLM/multiverso/theano_ext/lasagne_ext/param_manager.py
Pandinosaurus/DualLearning
6c7873747400359bd0f0aa69dabe23b814ea2f0f
[ "MIT" ]
3
2018-09-19T08:12:10.000Z
2019-04-29T12:36:36.000Z
DSL_SentimentAnalysis/CLM/multiverso/theano_ext/lasagne_ext/param_manager.py
Pandinosaurus/DualLearning
6c7873747400359bd0f0aa69dabe23b814ea2f0f
[ "MIT" ]
14
2019-05-07T12:20:32.000Z
2022-02-21T11:54:13.000Z
#!/usr/bin/env python # coding:utf8 import lasagne import numpy as np import multiverso as mv class MVNetParamManager(object): ''' MVNetParamManager is manager to make managing and synchronizing the variables in lasagne more easily ''' def __init__(self, network): ''' The constructor of M...
38.769231
97
0.657937
345
2,520
4.64058
0.327536
0.084947
0.074953
0.099938
0.193004
0.170518
0.118676
0.118676
0.118676
0.118676
0
0.005924
0.263095
2,520
64
98
39.375
0.85622
0.34246
0
0.114286
0
0
0.004525
0
0
0
0
0.015625
0.028571
1
0.085714
false
0
0.085714
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
3815bcfab5e8936000b86495242f674d1d13ad9a
640
py
Python
blastsight/view/glprograms/axisprogram.py
gsanhueza/BlastSight
4b5c48e7ea5f67b737429f05d5213e9ff1fd399d
[ "MIT" ]
null
null
null
blastsight/view/glprograms/axisprogram.py
gsanhueza/BlastSight
4b5c48e7ea5f67b737429f05d5213e9ff1fd399d
[ "MIT" ]
1
2022-03-13T17:35:35.000Z
2022-03-13T17:35:35.000Z
blastsight/view/glprograms/axisprogram.py
gsanhueza/BlastSight
4b5c48e7ea5f67b737429f05d5213e9ff1fd399d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2019-2021 Gabriel Sanhueza. # # Distributed under the MIT License. # See LICENSE for more info. from OpenGL.GL import glViewport from .shaderprogram import ShaderProgram class AxisProgram(ShaderProgram): def __init__(self): super().__init__() self.base_na...
24.615385
60
0.625
81
640
4.790123
0.617284
0.041237
0
0
0
0
0
0
0
0
0
0.037037
0.240625
640
25
61
25.6
0.761317
0.198438
0
0
0
0
0.03937
0
0
0
0
0
0
1
0.214286
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
381a0cd2c4f4295335ea6e32691e489f674accf6
1,938
py
Python
streampipes-wrapper-python/streampipes/api/resources/welcome.py
vesense/incubator-streampipes
1827945aefdc8acec68387b447ab1732e0c05543
[ "BSD-3-Clause" ]
228
2019-12-05T09:10:12.000Z
2022-03-30T03:43:07.000Z
streampipes-wrapper-python/streampipes/api/resources/welcome.py
vesense/incubator-streampipes
1827945aefdc8acec68387b447ab1732e0c05543
[ "BSD-3-Clause" ]
29
2019-12-31T07:51:48.000Z
2022-03-13T11:37:45.000Z
streampipes-wrapper-python/streampipes/api/resources/welcome.py
vesense/incubator-streampipes
1827945aefdc8acec68387b447ab1732e0c05543
[ "BSD-3-Clause" ]
65
2019-12-26T09:16:52.000Z
2022-03-30T13:24:16.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
42.130435
98
0.701754
237
1,938
5.691983
0.535865
0.044477
0.019274
0.023721
0.096368
0.096368
0.096368
0.096368
0.096368
0.096368
0
0.009715
0.203302
1,938
45
99
43.066667
0.86399
0.448916
0
0
0
0
0.325382
0
0
0
0
0.022222
0
1
0.045455
false
0
0.136364
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
1
0
0
0
0
0
0
0
0
0
0
1
381b8cee7ceb2254c95e764264f97e6c849df2a0
1,393
py
Python
ROSSi_workspace/rossi_plugin/src/rossi_plugin/Sniffer/GraphEntity.py
isse-augsburg/ROSSi
66a23b6c133069325096d6e199e53d293e42d61b
[ "MIT" ]
null
null
null
ROSSi_workspace/rossi_plugin/src/rossi_plugin/Sniffer/GraphEntity.py
isse-augsburg/ROSSi
66a23b6c133069325096d6e199e53d293e42d61b
[ "MIT" ]
null
null
null
ROSSi_workspace/rossi_plugin/src/rossi_plugin/Sniffer/GraphEntity.py
isse-augsburg/ROSSi
66a23b6c133069325096d6e199e53d293e42d61b
[ "MIT" ]
null
null
null
from enum import Enum class GraphEntity: def __init__(self, name, displayName = "", docs=""): self.displayName = displayName if displayName != "" else name self.docs = docs self.name = name def getname(self): return self.name class GraphConstantEntity(GraphEntity): def _...
26.788462
83
0.667624
144
1,393
6.083333
0.256944
0.119863
0.075342
0.100457
0.098174
0.098174
0.098174
0
0
0
0
0
0.224695
1,393
51
84
27.313725
0.811111
0.055994
0
0.0625
0
0
0.006116
0
0
0
0
0
0
1
0.21875
false
0
0.03125
0.03125
0.46875
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
381d4d1e093be4f54408b8fadffd4f03d6739f87
569
py
Python
001-100/10/10-sieve.py
junwei-wang/project-euler
abd728037e0f73f0f52f2ae4d40d468b307f34de
[ "MIT" ]
null
null
null
001-100/10/10-sieve.py
junwei-wang/project-euler
abd728037e0f73f0f52f2ae4d40d468b307f34de
[ "MIT" ]
null
null
null
001-100/10/10-sieve.py
junwei-wang/project-euler
abd728037e0f73f0f52f2ae4d40d468b307f34de
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from math import sqrt, ceil num = 2000000 sevie = [True] * num # 0, 1, 2, 3, ..., 1999999 sevie[0] = False sevie[1] = False for i in range(3, num): if i & 1 == 0: sevie[i] = False # a number has at most one factor than its squre sqr = int(ceil(sqrt(num))) for...
20.321429
57
0.56942
100
569
3.24
0.53
0.064815
0.074074
0.067901
0.074074
0
0
0
0
0
0
0.073892
0.286467
569
27
58
21.074074
0.724138
0.28471
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.055556
null
null
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
1
0
0
0
0
0
0
0
0
1
381de26728312e41332202928ffa86dfdcb66fa1
1,056
py
Python
library/pyjamas/DeferredCommand.py
allbuttonspressed/pyjs
c726fdead530eb63ee4763ae15daaa58d84cd58f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
library/pyjamas/DeferredCommand.py
allbuttonspressed/pyjs
c726fdead530eb63ee4763ae15daaa58d84cd58f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
library/pyjamas/DeferredCommand.py
allbuttonspressed/pyjs
c726fdead530eb63ee4763ae15daaa58d84cd58f
[ "ECL-2.0", "Apache-2.0" ]
1
2019-11-18T14:17:59.000Z
2019-11-18T14:17:59.000Z
from pyjamas.Timer import Timer deferredCommands = [] timerIsActive = False def add(cmd): deferredCommands.append(cmd) maybeSetDeferredCommandTimer() def flushDeferredCommands(): for i in range(len(deferredCommands)): current = deferredCommands[0] del deferredCommands[0] if curr...
20.705882
64
0.692235
115
1,056
6.278261
0.53913
0.070637
0
0
0
0
0
0
0
0
0
0.004908
0.22822
1,056
50
65
21.12
0.880982
0.191288
0
0.206897
0
0
0
0
0
0
0
0
0
1
0.241379
false
0
0.034483
0
0.310345
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
381f8337f96ab366e8d7ec93a54e6a1634da9acb
716
py
Python
018. 4Sum.py
95subodh/Leetcode
6aea0e5fb2f75c6b6f67c78b550172898b614fa1
[ "MIT" ]
2
2016-08-18T03:17:25.000Z
2016-09-25T14:07:48.000Z
018. 4Sum.py
95subodh/Leetcode
6aea0e5fb2f75c6b6f67c78b550172898b614fa1
[ "MIT" ]
null
null
null
018. 4Sum.py
95subodh/Leetcode
6aea0e5fb2f75c6b6f67c78b550172898b614fa1
[ "MIT" ]
null
null
null
#Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. import itertools class Solution(object): def fourSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: Lis...
26.518519
177
0.603352
129
716
3.341085
0.457364
0.048724
0.013921
0.046404
0.092807
0.092807
0.092807
0.092807
0
0
0
0.01105
0.24162
716
27
178
26.518519
0.782689
0.24581
0
0.1
0
0
0
0
0
0
0
0
0
0
null
null
0
0.05
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
381fd94611dc7b965a41d7b29a5554bf3b6ee0bb
256
py
Python
Desafios/MODULO 1/Desafio 15.py
deneyjunior/python-mundos-cev
4bc82bf0630f65cf66e5442ae57b72fd4b0207fc
[ "MIT" ]
null
null
null
Desafios/MODULO 1/Desafio 15.py
deneyjunior/python-mundos-cev
4bc82bf0630f65cf66e5442ae57b72fd4b0207fc
[ "MIT" ]
null
null
null
Desafios/MODULO 1/Desafio 15.py
deneyjunior/python-mundos-cev
4bc82bf0630f65cf66e5442ae57b72fd4b0207fc
[ "MIT" ]
null
null
null
print('='*10, 'Desafio 15', '='*10) dias = int(input('Quantos dias o carro ficou alugado?')) km = float(input('Quantos quilometros foram rodados?')) pago1 = dias * 60 pago2 = km * 0.15 pago = pago1 + pago2 print('O total a pagar é R$ {:.2f}.'.format(pago))
36.571429
56
0.652344
41
256
4.073171
0.707317
0.143713
0
0
0
0
0
0
0
0
0
0.073733
0.152344
256
7
57
36.571429
0.695853
0
0
0
0
0
0.424125
0
0
0
0
0
0
1
0
false
0
0
0
0
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3823eaf9c330fa0f59266123911b11d1829f0891
1,958
py
Python
src/resource_inventory/migrations/0010_auto_20190430_1405.py
opnfv/laas
35b9f39178cc502a5283a1b37a65f7dd0838ae05
[ "Apache-2.0" ]
2
2020-10-31T15:03:20.000Z
2021-03-22T16:29:15.000Z
src/resource_inventory/migrations/0010_auto_20190430_1405.py
opnfv/laas
35b9f39178cc502a5283a1b37a65f7dd0838ae05
[ "Apache-2.0" ]
13
2019-12-04T23:29:42.000Z
2022-03-02T04:53:53.000Z
src/resource_inventory/migrations/0010_auto_20190430_1405.py
opnfv/laas
35b9f39178cc502a5283a1b37a65f7dd0838ae05
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1 on 2019-04-30 14:05 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('resource_inventory', '0009_auto_20190315_1757'), ] operations = [ migrations.CreateModel( name='H...
35.6
158
0.61236
186
1,958
6.258065
0.370968
0.054124
0.118557
0.139175
0.522337
0.522337
0.331615
0.331615
0.254296
0.254296
0
0.02521
0.270684
1,958
54
159
36.259259
0.789916
0.021961
0
0.4375
1
0
0.193413
0.06116
0
0
0
0
0
1
0
false
0
0.041667
0
0.104167
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
382cdd6586453bc6800280c1bb1d8f71c76ec1ec
600
py
Python
examples/ch1_morphology.py
ruhyadi/JES-PCV
f89a7864fd2cc8009cf6f2d3ef40f01bcc7a3076
[ "BSD-2-Clause" ]
1,551
2015-01-01T00:16:25.000Z
2022-03-30T06:51:05.000Z
examples/ch1_morphology.py
ruhyadi/JES-PCV
f89a7864fd2cc8009cf6f2d3ef40f01bcc7a3076
[ "BSD-2-Clause" ]
20
2015-05-08T08:45:24.000Z
2021-12-07T06:57:41.000Z
examples/ch1_morphology.py
ruhyadi/JES-PCV
f89a7864fd2cc8009cf6f2d3ef40f01bcc7a3076
[ "BSD-2-Clause" ]
665
2015-01-01T15:51:42.000Z
2022-03-30T08:39:15.000Z
from PIL import Image from numpy import * from scipy.ndimage import measurements,morphology """ This is the morphology counting objects example in Section 1.4. """ # load image and threshold to make sure it is binary im = array(Image.open('../data/houses.png').convert('L')) im = (im<128) labels, nbr_objects = measu...
28.571429
65
0.763333
91
600
4.923077
0.549451
0.089286
0.084821
0.089286
0.133929
0.133929
0
0
0
0
0
0.015267
0.126667
600
21
66
28.571429
0.839695
0.163333
0
0
0
0
0.128205
0
0
0
0
0
0
0
null
null
0
0.3
null
null
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
382d27a740ae0d9f4d48cc0c794a0f4ed129191e
9,296
py
Python
widget/bean/events_chooser.py
CASL/VERAview
89b18f239ca5228185b80d5392068981d7733d3b
[ "BSD-3-Clause" ]
7
2017-04-21T05:35:16.000Z
2022-02-28T20:14:42.000Z
widget/bean/events_chooser.py
CASL/VERAview
89b18f239ca5228185b80d5392068981d7733d3b
[ "BSD-3-Clause" ]
2
2019-02-27T15:25:34.000Z
2021-05-26T17:01:59.000Z
widget/bean/events_chooser.py
CASL/VERAview
89b18f239ca5228185b80d5392068981d7733d3b
[ "BSD-3-Clause" ]
3
2019-07-09T08:31:34.000Z
2022-03-08T03:18:48.000Z
#!/usr/bin/env python # $Id$ #------------------------------------------------------------------------ # NAME: events_chooser.py - # HISTORY: - # 2017-07-21 leerw@ornl.gov - # Fixing _OnCharHook for Linux. # 2017-03-31 leerw@ornl.gov - # Added EVT_CHAR_HOOK. # 2016-08-15 leerw@ornl.gov - # N...
29.05
75
0.471816
836
9,296
5.099282
0.267943
0.026273
0.01689
0.007506
0.120338
0.086559
0.062867
0.015013
0.015013
0
0
0.00853
0.180293
9,296
319
76
29.141066
0.550919
0.487629
0
0.245455
0
0
0.029836
0
0
0
0
0
0
0
null
null
0
0.054545
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
382f9714339a7c7ef42142ac6cb1d9b2f4e7bacc
522
py
Python
tworaven_apps/ta2_interfaces/migrations/0007_storedresponse_additionalinfo.py
TwoRavens/TwoRavens
e5f820557d6646df525ceed15e17d79f4159cf0a
[ "Apache-2.0" ]
20
2017-12-11T07:26:06.000Z
2021-11-22T16:16:20.000Z
tworaven_apps/ta2_interfaces/migrations/0007_storedresponse_additionalinfo.py
TwoRavens/TwoRavens
e5f820557d6646df525ceed15e17d79f4159cf0a
[ "Apache-2.0" ]
849
2017-10-20T18:21:18.000Z
2022-02-18T02:45:44.000Z
tworaven_apps/ta2_interfaces/migrations/0007_storedresponse_additionalinfo.py
TwoRavens/TwoRavens
e5f820557d6646df525ceed15e17d79f4159cf0a
[ "Apache-2.0" ]
1
2020-05-18T06:02:13.000Z
2020-05-18T06:02:13.000Z
# Generated by Django 2.0.8 on 2018-11-08 19:43 from django.db import migrations import jsonfield.fields class Migration(migrations.Migration): dependencies = [ ('ta2_interfaces', '0006_auto_20180809_1101'), ] operations = [ migrations.AddField( model_name='storedresponse', ...
26.1
149
0.655172
57
522
5.894737
0.824561
0.089286
0
0
0
0
0
0
0
0
0
0.080201
0.235632
522
19
150
27.473684
0.761905
0.086207
0
0
1
0
0.301053
0.048421
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
382fc2be14093451a55c33e35bc0f3c0ec454bc1
2,709
py
Python
workers/toothbrush.py
andi3000/bt-mqtt-gateway
908f12ba075c511aeeae075133cc458cd615884f
[ "MIT" ]
479
2017-12-12T21:03:12.000Z
2022-03-24T18:26:20.000Z
workers/toothbrush.py
andi3000/bt-mqtt-gateway
908f12ba075c511aeeae075133cc458cd615884f
[ "MIT" ]
210
2018-05-10T14:32:05.000Z
2022-03-19T11:30:59.000Z
workers/toothbrush.py
andi3000/bt-mqtt-gateway
908f12ba075c511aeeae075133cc458cd615884f
[ "MIT" ]
124
2017-11-22T18:38:37.000Z
2022-03-31T11:14:58.000Z
import time from mqtt import MqttMessage from workers.base import BaseWorker import logger REQUIREMENTS = ["bluepy"] _LOGGER = logger.get(__name__) class ToothbrushWorker(BaseWorker): def searchmac(self, devices, mac): for dev in devices: if dev.addr == mac.lower(): return d...
31.870588
87
0.449243
216
2,709
5.490741
0.347222
0.060708
0.134907
0.168634
0.328836
0.328836
0.328836
0.328836
0.143339
0.099494
0
0.012978
0.459579
2,709
84
88
32.25
0.797131
0
0
0.222222
0
0
0.040236
0
0
0
0
0
0
1
0.055556
false
0
0.069444
0
0.180556
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
38341a80a626915e153dd92c48431e8ce87d8a14
3,630
py
Python
correlation/revenue/forbes.py
brooklynphotos/nbacasestudy
5456ba73b95caef474c6163db955658d555deda0
[ "Apache-2.0" ]
null
null
null
correlation/revenue/forbes.py
brooklynphotos/nbacasestudy
5456ba73b95caef474c6163db955658d555deda0
[ "Apache-2.0" ]
null
null
null
correlation/revenue/forbes.py
brooklynphotos/nbacasestudy
5456ba73b95caef474c6163db955658d555deda0
[ "Apache-2.0" ]
null
null
null
""" Retrieves revenue data using forbes. The basic restend point is this: https://www.forbes.com/ajax/list/data?year=2019&uri=nba-valuations&type=organization It is gotten from https://www.forbes.com/nba-valuations/list/ """ import json import sys import time import random from pathlib import Path import urllib.request...
33.302752
124
0.669697
558
3,630
4.243728
0.340502
0.030405
0.047297
0.021537
0.072635
0.027872
0.027872
0.027872
0
0
0
0.004337
0.237741
3,630
108
125
33.611111
0.851464
0.36832
0
0.063492
0
0.015873
0.108757
0
0
0
0
0.018519
0.015873
1
0.111111
false
0
0.142857
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
3837bad102e9889c85519ea4f38d162d1b70a3cf
990
py
Python
tests/math/test_math_distance.py
brianbruggeman/rl
6dd8a53da07697ffc87e62aa397be7b3b08f0aa0
[ "MIT" ]
null
null
null
tests/math/test_math_distance.py
brianbruggeman/rl
6dd8a53da07697ffc87e62aa397be7b3b08f0aa0
[ "MIT" ]
null
null
null
tests/math/test_math_distance.py
brianbruggeman/rl
6dd8a53da07697ffc87e62aa397be7b3b08f0aa0
[ "MIT" ]
null
null
null
import typing import munch import pytest class Point(typing.NamedTuple): x: int = 0 y: int = 0 z: int = 0 w: int = 0 @pytest.mark.parametrize( "data", [ { # 4d "points": [Point(0, 1, 2, 3), Point(4, 5, 6, 7)], "strict": False, "expected": 8.0, ...
23.571429
87
0.488889
120
990
4
0.341667
0.075
0.197917
0.083333
0.0875
0
0
0
0
0
0
0.06231
0.335354
990
41
88
24.146341
0.667173
0.018182
0
0.088235
0
0
0.10766
0
0
0
0
0
0.029412
1
0.029412
false
0
0.117647
0
0.294118
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
383c2d526694d1a324e2c0a2a4e15f20d0119293
2,099
py
Python
modules/vulnerabilities/ruijie/ruijie-eg-password-leak.py
cckuailong/pocsploit
fe4a3154e59d2bebd55ccfdf62f4f7efb21b5a2a
[ "MIT" ]
106
2022-03-18T06:51:09.000Z
2022-03-31T19:11:41.000Z
modules/vulnerabilities/ruijie/ruijie-eg-password-leak.py
cckuailong/pocsploit
fe4a3154e59d2bebd55ccfdf62f4f7efb21b5a2a
[ "MIT" ]
5
2022-03-27T07:37:32.000Z
2022-03-31T13:56:11.000Z
modules/vulnerabilities/ruijie/ruijie-eg-password-leak.py
cckuailong/pocsploit
fe4a3154e59d2bebd55ccfdf62f4f7efb21b5a2a
[ "MIT" ]
30
2022-03-21T01:27:08.000Z
2022-03-31T12:28:01.000Z
import requests # Vuln Base Info def info(): return { "author": "cckuailong", "name": '''Ruijie EG Easy Gateway Password Leak''', "description": '''Ruijie EG Easy Gateway login.php has CLI command injection, which leads to the disclosure of administrator account and password vulnerability'...
30.867647
278
0.563125
281
2,099
4.188612
0.52669
0.035684
0.028037
0.035684
0.037383
0.020391
0
0
0
0
0
0.059949
0.252978
2,099
68
279
30.867647
0.690689
0.041925
0
0
0
0.041667
0.394816
0.040877
0
0
0
0
0
1
0.104167
false
0.0625
0.020833
0.0625
0.229167
0.020833
0
0
0
null
0
0
0
0
0
0
0
0
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
383fa77119b3bf49d1fdc25665525be2af0eaeec
1,608
py
Python
hw_utils/pi_runner.py
mikewillems/spider-disco
a2e238015c94c7394b247df4701e23fffea22513
[ "MIT" ]
null
null
null
hw_utils/pi_runner.py
mikewillems/spider-disco
a2e238015c94c7394b247df4701e23fffea22513
[ "MIT" ]
1
2018-11-23T00:52:01.000Z
2018-11-23T08:44:26.000Z
hw_utils/pi_runner.py
mikewillems/spider-disco
a2e238015c94c7394b247df4701e23fffea22513
[ "MIT" ]
1
2018-11-22T21:12:13.000Z
2018-11-22T21:12:13.000Z
from flask import Flask, request, send_file, send_from_directory pi_runner = Flask(__name__) import os from datetime import datetime as dt import sys import atexit import hw_driver as hd import RPi.GPIO as GPIO def _clip(v, v1, v2): if v < v1: v = v1 if v > v2: v = v2 return v def _pri...
19.851852
66
0.629975
243
1,608
4.00823
0.341564
0.082136
0.093429
0.055441
0
0
0
0
0
0
0
0.020202
0.199627
1,608
81
67
19.851852
0.736597
0
0
0.033333
0
0
0.091361
0
0
0
0
0
0
0
null
null
0
0.116667
null
null
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3842a98547a7bc00c1ad5cbefd73d10f902492ea
2,325
py
Python
src/newtonRaphson.py
Sanatramesh/python-clustering-newtonRaphson
3f523ae343d881b9f04ab5768cc67710ecd5e123
[ "BSD-3-Clause" ]
null
null
null
src/newtonRaphson.py
Sanatramesh/python-clustering-newtonRaphson
3f523ae343d881b9f04ab5768cc67710ecd5e123
[ "BSD-3-Clause" ]
null
null
null
src/newtonRaphson.py
Sanatramesh/python-clustering-newtonRaphson
3f523ae343d881b9f04ab5768cc67710ecd5e123
[ "BSD-3-Clause" ]
null
null
null
""" For Python iMTech Mid Semester Exam - 26 Sep, 2012 For Question 1 newtonRaphson module - must contain a function with the name 'findRealRoots' """ # ====================================================================================================== # all your imports, globals and functions come here - between...
36.904762
108
0.507097
286
2,325
4.094406
0.377622
0.081981
0.119556
0.043553
0.221178
0.056362
0
0
0
0
0
0.038793
0.20172
2,325
62
109
37.5
0.592134
0.296774
0
0.076923
0
0
0.007214
0
0
0
0
0
0
0
null
null
0
0
null
null
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
38438d2bfb04ca01ac40231d4b1292a7f2274fcd
409
py
Python
app/run/migrations/0014_run_duration.py
Masado/django-app-api-3
88def27f1cd8974c62dead282cd04d1384054888
[ "MIT" ]
null
null
null
app/run/migrations/0014_run_duration.py
Masado/django-app-api-3
88def27f1cd8974c62dead282cd04d1384054888
[ "MIT" ]
null
null
null
app/run/migrations/0014_run_duration.py
Masado/django-app-api-3
88def27f1cd8974c62dead282cd04d1384054888
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-25 10:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('run', '0013_remove_run_date'), ] operations = [ migrations.AddField( model_name='run', name='duration', ...
21.526316
83
0.601467
46
409
5.23913
0.76087
0.099585
0
0
0
0
0
0
0
0
0
0.064189
0.276284
409
18
84
22.722222
0.75
0.110024
0
0
1
0
0.116022
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6974c5a591c5ca468af9692a2ddc965c2cf27013
621
py
Python
events/migrations/0017_auto_20191207_0120.py
McCarthyCode/Market-to-Market-Chicago
15d491f6f45c0899864ae9256f2808e46e0e140b
[ "MIT" ]
null
null
null
events/migrations/0017_auto_20191207_0120.py
McCarthyCode/Market-to-Market-Chicago
15d491f6f45c0899864ae9256f2808e46e0e140b
[ "MIT" ]
1
2020-06-09T11:15:17.000Z
2020-06-09T11:15:17.000Z
events/migrations/0017_auto_20191207_0120.py
mattmc318/Market-to-Market-Chicago
15d491f6f45c0899864ae9256f2808e46e0e140b
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-12-07 01:20 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('events', '0016_auto_20191206_2347'), ] operations = [ migrations.DeleteModel( name='DayOfWeek',...
27
163
0.644122
68
621
5.779412
0.676471
0.061069
0.071247
0.111959
0
0
0
0
0
0
0
0.065678
0.239936
621
22
164
28.227273
0.766949
0.072464
0
0.125
1
0
0.15331
0.076655
0
0
0
0
0
1
0
false
0
0.125
0
0.3125
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
697a6123c54ff2452073913112547b422d9c8656
572
py
Python
blog_api/app.py
Shannon-NJIT/Tutorial3
58ee55b793f5d3bc859df8c579d0b9e2ce1bf7f0
[ "MIT" ]
null
null
null
blog_api/app.py
Shannon-NJIT/Tutorial3
58ee55b793f5d3bc859df8c579d0b9e2ce1bf7f0
[ "MIT" ]
null
null
null
blog_api/app.py
Shannon-NJIT/Tutorial3
58ee55b793f5d3bc859df8c579d0b9e2ce1bf7f0
[ "MIT" ]
null
null
null
from flask import Flask #from config import app_config from .models import db, bcrypt from .views.UserView import user_api as user_blueprint def create_app(env_name): # Creating app app = Flask(__name__) # app initialization #app.config.from_object(app_config[env_name]) bcrypt.init_app(app) ...
22.88
70
0.702797
78
572
4.935897
0.5
0.062338
0.067532
0
0
0
0
0
0
0
0
0
0.199301
572
24
71
23.833333
0.840611
0.213287
0
0
0
0
0.14382
0
0
0
0
0
0
1
0.166667
false
0
0.25
0.083333
0.583333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
697b7973fdb909b4bfa2c1f30676258617abb63e
3,415
py
Python
scripts/extraction.py
gurkirt/daly-prep
b0d4d338b8d22fba157107a5e68cf8dc7d4eef07
[ "MIT" ]
null
null
null
scripts/extraction.py
gurkirt/daly-prep
b0d4d338b8d22fba157107a5e68cf8dc7d4eef07
[ "MIT" ]
null
null
null
scripts/extraction.py
gurkirt/daly-prep
b0d4d338b8d22fba157107a5e68cf8dc7d4eef07
[ "MIT" ]
null
null
null
'''' Author: Gurkirt Singh Date: 20:08:2016 This script helps to extract frames from video and store useful info about videos. ''' import os as os import numpy as np import json,shutil actions = ['ApplyingMakeUpOnLips', 'BrushingTeeth', 'CleaningFloor', 'CleaningWindows', 'Drinking', 'FoldingTextile', 'Ironing', 'Ph...
43.227848
183
0.602343
443
3,415
4.593679
0.413093
0.022113
0.020639
0.011794
0.095332
0.076658
0.058968
0.058968
0.058968
0.058968
0
0.014085
0.251537
3,415
79
184
43.227848
0.782081
0.231625
0
0.218182
0
0
0.249277
0.01943
0
0
0
0
0
0
null
null
0
0.054545
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
698032a6185434df64e30029bdd55d417023d714
9,202
py
Python
learning/tests/test_preprocess.py
JustinLovinger/learning
895b5d91509f1bf3da64f804dc346aecbfec853c
[ "MIT" ]
6
2017-09-15T20:54:14.000Z
2021-05-07T21:32:43.000Z
learning/tests/test_preprocess.py
JustinLovinger/learning
895b5d91509f1bf3da64f804dc346aecbfec853c
[ "MIT" ]
null
null
null
learning/tests/test_preprocess.py
JustinLovinger/learning
895b5d91509f1bf3da64f804dc346aecbfec853c
[ "MIT" ]
5
2017-09-20T17:39:41.000Z
2020-05-03T23:24:43.000Z
############################################################################### # The MIT License (MIT) # # Copyright (c) 2017 Justin Lovinger # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Softwar...
29.683871
90
0.539448
1,168
9,202
4.121575
0.219178
0.029082
0.028666
0.030744
0.369547
0.32904
0.29435
0.243041
0.223722
0.211882
0
0.055433
0.262878
9,202
309
91
29.779935
0.654283
0.199739
0
0.48731
0
0
0.018184
0
0
0
0
0.003236
0.142132
0
null
null
0
0.035533
null
null
0.020305
0
0
0
null
0
0
0
0
0
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
698bd121b882d5796a9ea626d0648e9dfe163ff1
520
py
Python
api/applications/serializers/document.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
api/applications/serializers/document.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
api/applications/serializers/document.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
from rest_framework import serializers from api.applications.models import ApplicationDocument from api.documents.libraries.process_document import process_document class ApplicationDocumentSerializer(serializers.ModelSerializer): class Meta: model = ApplicationDocument fields = "__all__" de...
30.588235
84
0.763462
49
520
7.897959
0.571429
0.116279
0.108527
0
0
0
0
0
0
0
0
0
0.178846
520
16
85
32.5
0.906323
0
0
0
0
0
0.013462
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
69918d6bad3de6728905408916583913a337364a
5,383
py
Python
scripts/automation/trex_control_plane/interactive/trex/scapy_server/scapy_zmq_client.py
mcallaghan-sandvine/trex-core
55fc1ed6d2e3d066e7895321eae233bb0339b722
[ "Apache-2.0" ]
null
null
null
scripts/automation/trex_control_plane/interactive/trex/scapy_server/scapy_zmq_client.py
mcallaghan-sandvine/trex-core
55fc1ed6d2e3d066e7895321eae233bb0339b722
[ "Apache-2.0" ]
3
2018-04-25T20:28:49.000Z
2018-07-16T13:45:40.000Z
scripts/automation/trex_control_plane/interactive/trex/scapy_server/scapy_zmq_client.py
mcallaghan-sandvine/trex-core
55fc1ed6d2e3d066e7895321eae233bb0339b722
[ "Apache-2.0" ]
null
null
null
import sys import os cpu_arch = 'arm' if os.uname()[4] == 'aarch64' else 'intel' python_ver = 'python%s' % sys.version_info.major ucs_ver = 'ucs2' if sys.maxunicode == 65535 else 'ucs4' zmq_path = os.path.abspath(os.path.join(os.pardir,os.pardir,os.pardir,os.pardir, os.pardir,'external_libs','pyzmq-14.5.0', ...
43.41129
158
0.588519
672
5,383
4.525298
0.279762
0.029596
0.034199
0.021046
0.219007
0.202565
0.166393
0.130878
0.117724
0.070372
0
0.011322
0.294445
5,383
123
159
43.764228
0.789363
0.010403
0
0.145631
0
0.009709
0.227068
0
0
0
0
0
0
0
null
null
0
0.067961
null
null
0.145631
0
0
0
null
0
0
0
0
0
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
6991c053ed5406fc17df6f7952157b15e43da0bd
302
py
Python
src/backend_service/services/task_service.py
arekmano/JusticeAI
a996a8903f7d05d5b5c275a1a394d0f55664f299
[ "MIT" ]
1
2020-06-11T21:35:14.000Z
2020-06-11T21:35:14.000Z
src/backend_service/services/task_service.py
mihaiqc/JusticeAI
311a080112b17cfb50b445df1a803c6a320c5405
[ "MIT" ]
1
2017-09-24T22:54:09.000Z
2017-09-24T22:54:09.000Z
src/backend_service/services/task_service.py
mihaiqc/JusticeAI
311a080112b17cfb50b445df1a803c6a320c5405
[ "MIT" ]
null
null
null
import requests TASK_URL = "http://task_service:3004" def ocr_extract_text(file_storage): files = { 'file': (file_storage.filename, file_storage.stream, file_storage.mimetype) } res = requests.post("{}/{}".format(TASK_URL, "ocr/extract_text"), files=files) return res.json()
25.166667
83
0.68543
39
302
5.051282
0.564103
0.22335
0.142132
0
0
0
0
0
0
0
0
0.01581
0.162252
302
11
84
27.454545
0.762846
0
0
0
0
0
0.162252
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
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
69959adc6b4dd1c964b70a636406aad981684047
640
py
Python
import_export/urls.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
import_export/urls.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
import_export/urls.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'import_export' urlpatterns = [ path('detail/', views.import_export, name='detail'), path('import/part/', views.import_sparepart, name='import_part'), path('import/ecu-base/', views.import_ecurefbase, name='import_ecu_base'), path('export/co...
40
94
0.734375
87
640
5.149425
0.241379
0.160714
0.142857
0.098214
0
0
0
0
0
0
0
0
0.104688
640
15
95
42.666667
0.78185
0
0
0
0
0
0.3375
0.0375
0
0
0
0
0
1
0
false
0
0.5
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
6998187ff00849032a64dbaa2c4c79df7c9c5752
12,441
py
Python
UI/qt_interfaces/single_file_downloader_ui.py
steenzout/python-storj-gui
5e81898f8a8a97f8ffa91563e20cf8b851075c64
[ "MIT" ]
40
2017-03-23T19:42:32.000Z
2017-07-13T23:43:00.000Z
UI/qt_interfaces/single_file_downloader_ui.py
steenzout/python-storj-gui
5e81898f8a8a97f8ffa91563e20cf8b851075c64
[ "MIT" ]
80
2017-04-10T19:47:23.000Z
2017-06-29T17:38:12.000Z
UI/qt_interfaces/single_file_downloader_ui.py
steenzout/python-storj-gui
5e81898f8a8a97f8ffa91563e20cf8b851075c64
[ "MIT" ]
9
2017-04-13T08:06:14.000Z
2017-06-27T23:57:55.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'single_file_downloader.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def ...
71.091429
226
0.70348
1,540
12,441
5.51039
0.135714
0.050907
0.088145
0.073886
0.481381
0.322413
0.277045
0.231558
0.231558
0.231558
0
0.05698
0.140905
12,441
174
227
71.5
0.736995
0.015754
0
0.0375
1
0
0.197271
0.094222
0
0
0
0
0
1
0.03125
false
0
0.00625
0.01875
0.0625
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
69a31bba0184519b82b6f1c0087c46994c327175
2,692
py
Python
tests/test_player.py
bigredengineer/DotaBroStats
48de373bb31dbf807d2393373f79d48157a575fa
[ "MIT" ]
1
2021-05-29T00:34:20.000Z
2021-05-29T00:34:20.000Z
tests/test_player.py
bigredengineer/DotaBroStats
48de373bb31dbf807d2393373f79d48157a575fa
[ "MIT" ]
3
2021-05-31T21:59:33.000Z
2021-06-01T06:55:54.000Z
tests/test_player.py
bigredengineer/DotaBroStats
48de373bb31dbf807d2393373f79d48157a575fa
[ "MIT" ]
null
null
null
import json from mock import patch import pytest from dota_utils import player from dota_utils.common import OpenDotaError, MockRequest from dota_utils.player import DotaPlayerStats class TestDotaPlayerStats: def test_basic(self): tony = DotaPlayerStats(11) assert tony.open_id == 11 def test...
42.730159
107
0.637073
315
2,692
5.260317
0.24127
0.07242
0.063368
0.088715
0.703681
0.683766
0.683766
0.683766
0.633072
0.633072
0
0.035855
0.243685
2,692
62
108
43.419355
0.777996
0.051634
0
0.577778
0
0.022222
0.165685
0
0
0
0
0
0.2
1
0.066667
false
0
0.133333
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
69a460f0fdfb716d046769b50a7ca074a8bdae91
665
py
Python
models_nonconvex/nonconvex4.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
7
2019-05-08T19:14:34.000Z
2021-12-24T00:00:40.000Z
models_nonconvex/nonconvex4.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
null
null
null
models_nonconvex/nonconvex4.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
1
2019-05-10T18:34:18.000Z
2019-05-10T18:34:18.000Z
from pyomo.environ import * model = m = ConcreteModel() m.x1 = Var(within=Reals, bounds=(1, 10)) m.x2 = Var(within=Reals, bounds=(1, 6)) m.y1 = Var(within=Binary, bounds=(0, 1), initialize=0) m.y2 = Var(within=Binary, bounds=(0, 1), initialize=0) m.y3 = Var(within=Binary, bounds=(0, 1), initialize=0) m.obj = Object...
33.25
79
0.560902
128
665
2.914063
0.3125
0.064343
0.120643
0.168901
0.490617
0.281501
0.281501
0.281501
0.281501
0
0
0.119318
0.206015
665
19
80
35
0.587121
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
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
69a91ac29faaec3319de178094837c5b38d116e5
1,813
py
Python
elib_logging/configure.py
132nd-etcher/elib_logging
35f5830830ebe90d48c44a008850b2fd5bb9971c
[ "MIT" ]
null
null
null
elib_logging/configure.py
132nd-etcher/elib_logging
35f5830830ebe90d48c44a008850b2fd5bb9971c
[ "MIT" ]
1
2018-10-21T17:12:03.000Z
2018-10-21T17:12:03.000Z
elib_logging/configure.py
132nd-etcher/elib_logging
35f5830830ebe90d48c44a008850b2fd5bb9971c
[ "MIT" ]
null
null
null
# coding=utf-8 """ Handles library configuration """ import os import sys import typing from elib_logging import exc, settings def setup_logging(logger_name: str, log_file_name: typing.Optional[str] = None, log_dir: typing.Optional[str] = None, log_format_console...
41.204545
120
0.69829
242
1,813
4.896694
0.231405
0.129958
0.141772
0.182278
0.522363
0.473418
0.422785
0.422785
0.306329
0.306329
0
0.000691
0.201875
1,813
43
121
42.162791
0.818245
0.091561
0
0.0625
0
0
0.319214
0.306937
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.1875
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
69ab520a8010290bb0d837e072d47b8a6d23a2e7
1,108
py
Python
pysal/contrib/geotable/io.py
cubensys/pysal
8d50990f6e6603ba79ae1a887a20a1e3a0734e51
[ "MIT", "BSD-3-Clause" ]
null
null
null
pysal/contrib/geotable/io.py
cubensys/pysal
8d50990f6e6603ba79ae1a887a20a1e3a0734e51
[ "MIT", "BSD-3-Clause" ]
null
null
null
pysal/contrib/geotable/io.py
cubensys/pysal
8d50990f6e6603ba79ae1a887a20a1e3a0734e51
[ "MIT", "BSD-3-Clause" ]
1
2021-07-19T01:46:17.000Z
2021-07-19T01:46:17.000Z
from pysal.common import simport, requires from pysal.cg import asShape from pysal.contrib import pdutilities as pdio from pysal.core import FileIO import pandas as pd class Namespace(object): pass @requires('geopandas') def geopandas(filename, **kw): import geopandas return geopandas.read_file(filename, ...
28.410256
86
0.656137
143
1,108
4.895105
0.440559
0.051429
0.045714
0
0
0
0
0
0
0
0
0
0.213899
1,108
38
87
29.157895
0.803674
0
0
0.0625
0
0
0.07491
0
0
0
0
0
0
1
0.0625
false
0.0625
0.21875
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
69b0e513568b8837f5c87a393955f28583639b1f
9,547
py
Python
SDWLE/cards_copy/spells/rogue.py
jomyhuang/sdwle
9b6e916567e09c7cba4a171fe0adf0f47009a8c3
[ "MIT" ]
null
null
null
SDWLE/cards_copy/spells/rogue.py
jomyhuang/sdwle
9b6e916567e09c7cba4a171fe0adf0f47009a8c3
[ "MIT" ]
null
null
null
SDWLE/cards_copy/spells/rogue.py
jomyhuang/sdwle
9b6e916567e09c7cba4a171fe0adf0f47009a8c3
[ "MIT" ]
null
null
null
import copy from SDWLE.cards.base import SpellCard from SDWLE.tags.action import AddCard from SDWLE.tags.base import Effect, BuffUntil, Buff, AuraUntil, ActionTag from SDWLE.tags.condition import IsSpell from SDWLE.tags.event import TurnStarted, TurnEnded, SpellCast from SDWLE.tags.selector import PlayerSelector, CardS...
33.616197
102
0.656856
1,189
9,547
5.001682
0.152229
0.082394
0.050277
0.065747
0.670927
0.622499
0.49958
0.468808
0.450143
0.450143
0
0.009659
0.23002
9,547
283
103
33.734982
0.799347
0.0287
0
0.443878
0
0
0.020937
0
0
0
0
0
0
1
0.219388
false
0
0.05102
0.015306
0.387755
0.010204
0
0
0
null
0
0
0
0
0
0
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
69b28655fadaa077229f53014196c2f1f961e834
9,207
py
Python
model_zoo/research/cv/IPT/src/foldunfold_stride.py
kungfu-team/mindspore-bert
71501cf52ae01db9d6a73fb64bcfe68a6509dc32
[ "Apache-2.0" ]
1
2021-03-10T09:05:13.000Z
2021-03-10T09:05:13.000Z
model_zoo/research/cv/IPT/src/foldunfold_stride.py
kungfu-team/mindspore-bert
71501cf52ae01db9d6a73fb64bcfe68a6509dc32
[ "Apache-2.0" ]
null
null
null
model_zoo/research/cv/IPT/src/foldunfold_stride.py
kungfu-team/mindspore-bert
71501cf52ae01db9d6a73fb64bcfe68a6509dc32
[ "Apache-2.0" ]
null
null
null
'''stride''' # Copyright 2021 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...
38.045455
115
0.525253
1,216
9,207
3.712171
0.110197
0.172796
0.192291
0.053168
0.722862
0.628932
0.554719
0.495348
0.459238
0.420691
0
0.018613
0.34061
9,207
241
116
38.20332
0.724922
0.076246
0
0.535912
0
0
0
0
0
0
0
0
0
1
0.044199
false
0
0.022099
0
0.110497
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
69b53cad85fceca63334c9bf3a07e001dfaef1e0
705
py
Python
pset6/bleep/bleep.py
harshalkondke/CS50
ce6c9c628bf63dcd40e165e62c60c99506c37fd4
[ "Apache-2.0" ]
null
null
null
pset6/bleep/bleep.py
harshalkondke/CS50
ce6c9c628bf63dcd40e165e62c60c99506c37fd4
[ "Apache-2.0" ]
null
null
null
pset6/bleep/bleep.py
harshalkondke/CS50
ce6c9c628bf63dcd40e165e62c60c99506c37fd4
[ "Apache-2.0" ]
null
null
null
from cs50 import get_string from sys import argv def main(): # TODO if len(argv) != 2: print("Usage: python bleep.py dictionary") exit(1) file = open(argv[1], "r") banned_words = set() for line in file: banned_words.add(line.strip().lower()) input_strin...
24.310345
74
0.563121
88
705
4.295455
0.545455
0.126984
0
0
0
0
0
0
0
0
0
0.010331
0.313475
705
29
75
24.310345
0.770661
0.025532
0
0
0
0
0.129376
0
0
0
0
0.034483
0
1
0.047619
false
0
0.095238
0
0.142857
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
69b7713a697cc1d33354839f77f22e0d647e6681
1,600
py
Python
KBQA/query_main.py
neohope/NLPStudy
9d642d48589b55135d2f8a74c0aae044cbef5854
[ "BSD-3-Clause" ]
4
2018-12-31T08:10:35.000Z
2020-09-03T03:40:12.000Z
KBQA/query_main.py
neohope/NLPStudy
9d642d48589b55135d2f8a74c0aae044cbef5854
[ "BSD-3-Clause" ]
null
null
null
KBQA/query_main.py
neohope/NLPStudy
9d642d48589b55135d2f8a74c0aae044cbef5854
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- """ 本例实现了一个在固定领域下的Knowledge based Question and answering系统 后端采用jena做语义网络,前端采用命令行交互 前端通过分词及正则表达式,匹配预设问题 匹配到问题模板后,将自然语言问题转换为sparql查询语句,并发给jena查询 然后将查询结果输出 """ from KBQA import jena_sparql_endpoint from KBQA import question2sparql if __name__ == '__main__': # TODO 连接Fu...
29.090909
76
0.531875
159
1,600
5.220126
0.515723
0.025301
0.033735
0.050602
0.033735
0
0
0
0
0
0
0.016553
0.358125
1,600
54
77
29.62963
0.791626
0.27875
0
0.206897
0
0
0.027241
0
0
0
0
0.018519
0
1
0
false
0
0.068966
0
0.068966
0.241379
0
0
0
null
0
0
0
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
69ba9fb7869bdbf275e713d7fabfb7b76f28d3ed
509
py
Python
setup.py
henry232323/pytumblr
e1082e1ffbb42db051db13694f208f091b9cb396
[ "Apache-2.0" ]
2
2017-11-16T18:55:22.000Z
2018-05-19T15:31:18.000Z
setup.py
henry232323/pytumblr
e1082e1ffbb42db051db13694f208f091b9cb396
[ "Apache-2.0" ]
null
null
null
setup.py
henry232323/pytumblr
e1082e1ffbb42db051db13694f208f091b9cb396
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup( name="APyTumblr", version="0.0.7", description="An AsyncIO Python API v2 wrapper for Tumblr", author="henry232323", author_email="henry@typheus.me", url="https://github.com/henry232323/pytumblr", packages = ['pytumblr'], licens...
17.551724
62
0.59725
55
509
5.454545
0.836364
0
0
0
0
0
0
0
0
0
0
0.042105
0.253438
509
28
63
18.178571
0.747368
0.039293
0
0
0
0
0.372951
0
0
0
0
0
0
1
0
true
0
0.05
0
0.05
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
69cc5bbcb516a42638eddf46ba128f44812fb49d
744
py
Python
setup.py
jjkke88/RL_toolbox
63693c12ef8db0a0b1759037c6d73f5c297ddcc6
[ "MIT" ]
52
2017-05-09T13:26:19.000Z
2021-01-30T17:13:49.000Z
setup.py
jjkke88/RL_toolbox
63693c12ef8db0a0b1759037c6d73f5c297ddcc6
[ "MIT" ]
1
2017-07-01T18:26:14.000Z
2017-07-12T01:07:36.000Z
setup.py
jjkke88/RL_toolbox
63693c12ef8db0a0b1759037c6d73f5c297ddcc6
[ "MIT" ]
9
2017-08-25T20:57:21.000Z
2021-01-30T17:13:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import with_statement import sys if sys.version_info < (2 , 5): sys.exit('Python 2.5 or greater is required.') try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup setup(name='RLToolbox' , ...
23.25
59
0.635753
91
744
5.065934
0.648352
0.058568
0.086768
0.08243
0
0
0
0
0
0
0
0.051546
0.217742
744
31
60
24
0.74055
0.056452
0
0
0
0
0.247143
0
0
0
0
0
0
1
0
true
0
0.227273
0
0.227273
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
69d192a0df5e99435387075e5e5598f8e1321c8a
2,469
py
Python
psmodulecheck/tests/test_filechecker.py
Rolias/ps-module-checker
99d9a9b7912bbb6805ead5464e931edc6f0169ab
[ "MIT" ]
null
null
null
psmodulecheck/tests/test_filechecker.py
Rolias/ps-module-checker
99d9a9b7912bbb6805ead5464e931edc6f0169ab
[ "MIT" ]
null
null
null
psmodulecheck/tests/test_filechecker.py
Rolias/ps-module-checker
99d9a9b7912bbb6805ead5464e931edc6f0169ab
[ "MIT" ]
null
null
null
import os import sys import tempfile import unittest package_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.append(package_path) import tempproject from psmodulecheck import (console, filechecker, ) class FilecheckerTe...
31.653846
80
0.629
277
2,469
5.404332
0.292419
0.028056
0.048096
0.068136
0.740815
0.703407
0.564462
0.515698
0.419506
0.419506
0
0.002261
0.283516
2,469
77
81
32.064935
0.84398
0.070879
0
0.576271
0
0
0.026244
0
0
0
0
0
0.101695
1
0.169492
false
0.016949
0.101695
0
0.305085
0.016949
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
69e012aecdb1f2b4a2ef919c2dcf84a1a1f2e9e8
318
py
Python
fabrik_cli/__init__.py
Frojd/Frojd-Fabric-CLI
804ac42bc70764f345252a6c3bfdc9451be75e65
[ "MIT" ]
null
null
null
fabrik_cli/__init__.py
Frojd/Frojd-Fabric-CLI
804ac42bc70764f345252a6c3bfdc9451be75e65
[ "MIT" ]
8
2015-05-06T06:15:20.000Z
2015-06-22T20:18:25.000Z
fabrik_cli/__init__.py
Frojd/Frojd-Fabric-CLI
804ac42bc70764f345252a6c3bfdc9451be75e65
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ fabrik_cli ------------ :copyright: (c) 2015-2016 by Fröjd Interactive AB :license: MIT, see LICENSE for more details. """ __title__ = "fabrik_cli" __version__ = "2.0.1" __build__ = 201 __license__ = "MIT" __copyright__ = "Copyright 2015-2016 Fröjd Interactive AB"
18.705882
58
0.672956
42
318
4.571429
0.714286
0.09375
0.1875
0
0
0
0
0
0
0
0
0.084871
0.147799
318
16
59
19.875
0.623616
0.506289
0
0
0
0
0.391892
0
0
0
0
0
0
1
0
false
0
0
0
0
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