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
ff2e1e0220935d61abebe3f9bb44ced77febfd59
3,461
py
Python
aws_interface/settings/base.py
hubaimaster/aws-interface
162dd056546d58b6eb29afcae1c3c2d78e4309b2
[ "Apache-2.0" ]
53
2018-10-02T05:58:54.000Z
2020-09-15T08:58:26.000Z
aws_interface/settings/base.py
hubaimaster/aws-interface
162dd056546d58b6eb29afcae1c3c2d78e4309b2
[ "Apache-2.0" ]
52
2018-09-26T05:16:09.000Z
2022-03-11T23:51:14.000Z
aws_interface/settings/base.py
hubaimaster/aws-interface
162dd056546d58b6eb29afcae1c3c2d78e4309b2
[ "Apache-2.0" ]
10
2019-03-11T16:35:14.000Z
2019-10-23T08:03:54.000Z
import json import os from django.utils.translation import ugettext_lazy as _ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRETS_DIR = os.path.join(BASE_DIR, 'secret') SECRETS_BASE = os.path.join(SECRETS_DIR, 'base.json') try: secrets_base = json.load(open(SECRETS_BASE, 'rt')) except ...
25.448529
91
0.693441
373
3,461
6.284182
0.399464
0.083191
0.050768
0.029863
0.226109
0.1907
0.106229
0.093857
0.03413
0
0
0.005554
0.167582
3,461
135
92
25.637037
0.808053
0.164114
0
0.022472
0
0
0.458828
0.357425
0
0
0
0
0
1
0
false
0.05618
0.044944
0
0.044944
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
ff39a262d9879b00ce53286ab0e82574116fd43d
446
py
Python
evaluation/plot_mr-qr.py
cragkhit/elasticsearch
05567b30c5bde08badcac1bf421454e5d995eb91
[ "Apache-2.0" ]
23
2018-10-03T15:02:53.000Z
2021-09-16T11:07:36.000Z
evaluation/plot_mr-qr.py
LandAndLand/Siamese
07fb10bec4614f55bcc39e571d1185fc9ce86242
[ "Apache-2.0" ]
18
2019-02-10T04:52:54.000Z
2022-01-25T02:14:40.000Z
evaluation/plot_mr-qr.py
LandAndLand/Siamese
07fb10bec4614f55bcc39e571d1185fc9ce86242
[ "Apache-2.0" ]
19
2018-11-16T13:39:05.000Z
2021-09-05T23:59:30.000Z
import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import numpy as np df = pd.DataFrame({'Group': ['A', 'A', 'A', 'B', 'C', 'B', 'B', 'C', 'A', 'C'], 'Apple': np.random.rand(10),'Orange': np.random.rand(10)}) # df = df[['Group','Apple','Orange']] dd = pd.melt(df, id_vars=['Gr...
34.307692
86
0.591928
72
446
3.625
0.5
0.015326
0.091954
0.10728
0
0
0
0
0
0
0
0.01061
0.154709
446
12
87
37.166667
0.681698
0.078475
0
0
0
0
0.156479
0
0
0
0
0
0
1
0
false
0
0.444444
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
ff3a59385f39dd84628830c42d805fbf04fd38ca
19,947
py
Python
pisces/util.py
omarmarcillo/piscesWIN
ed935bb98a4a3a720d918e41b1d3dc30ddf8bf60
[ "MIT" ]
null
null
null
pisces/util.py
omarmarcillo/piscesWIN
ed935bb98a4a3a720d918e41b1d3dc30ddf8bf60
[ "MIT" ]
null
null
null
pisces/util.py
omarmarcillo/piscesWIN
ed935bb98a4a3a720d918e41b1d3dc30ddf8bf60
[ "MIT" ]
null
null
null
import logging import math from getpass import getpass import numpy as np import sqlalchemy as sa from sqlalchemy.orm import Session from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.exc import NoSuchTableError, IntegrityError, OperationalError from sqlalchemy.exc import ProgrammingError from sql...
31.313972
113
0.623502
2,450
19,947
5.031837
0.226122
0.010221
0.00584
0.006814
0.137249
0.085659
0.074059
0.042343
0.037476
0.032609
0
0.009604
0.274427
19,947
636
114
31.363208
0.842189
0.130345
0
0.160622
0
0
0.04275
0.002905
0
0
0
0.004717
0
0
null
null
0.031088
0.072539
null
null
0.005181
0
0
0
null
0
0
0
0
0
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
ff3e47ad0be895a5a1026172616d234bf2fedea0
219
py
Python
archives/02/tootle/utils.py
asmodehn/caerbannog
47bb1138190748041a4c0d02e522c0924a9af962
[ "MIT" ]
1
2019-01-22T20:57:45.000Z
2019-01-22T20:57:45.000Z
archives/03/footle/utils.py
asmodehn/functional-python
47bb1138190748041a4c0d02e522c0924a9af962
[ "MIT" ]
3
2019-03-14T17:33:39.000Z
2019-03-14T18:09:42.000Z
archives/03/footle/utils.py
asmodehn/caerbannog
47bb1138190748041a4c0d02e522c0924a9af962
[ "MIT" ]
null
null
null
import enum # Directly, naively, modeled in python 3.6 # from the code shown in : https://www.youtube.com/watch?v=AG3KuqDbmhM # Side Note: Yes, Python has enums ! class PenState(enum.Enum): UP = -1 DOWN = 1
18.25
70
0.680365
35
219
4.257143
0.857143
0
0
0
0
0
0
0
0
0
0
0.028736
0.205479
219
11
71
19.909091
0.827586
0.657534
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ff45bca681c780b0d982c2961d35bf4d95e29c98
12,308
py
Python
HayStack_Client/Inbox_Module.py
ConsensusGroup/Haystack
c2d0b8fb7b2064b05a5d256bb949dda9a0ef569d
[ "MIT" ]
1
2019-11-28T08:50:26.000Z
2019-11-28T08:50:26.000Z
HayStack_Client/Inbox_Module.py
wyxxl/Haystack
36b0bfb02cd23265c719f2d2d90d7ed65843afe5
[ "MIT" ]
3
2019-11-22T04:23:47.000Z
2019-11-30T07:11:24.000Z
HayStack_Client/Inbox_Module.py
wyxxl/Haystack
36b0bfb02cd23265c719f2d2d90d7ed65843afe5
[ "MIT" ]
3
2018-03-19T05:20:44.000Z
2019-11-22T00:56:31.000Z
#################################################################################### ############## This module is used to handle the inbox of the client ############### #################################################################################### from User_Modules import Initialization from Tools_Module import...
49.035857
169
0.693451
1,507
12,308
5.362309
0.137359
0.041827
0.052593
0.025739
0.477787
0.404405
0.309739
0.202574
0.163594
0.153941
0
0.004539
0.194589
12,308
250
170
49.232
0.810653
0.03843
0
0.158416
0
0
0.014538
0
0
0
0
0
0
0
null
null
0
0.034653
null
null
0.004951
0
0
0
null
0
0
0
0
0
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
ff45c48ab2d1add981c195c6cce31a2e115be642
5,439
py
Python
rcmd/__init__.py
sysr-q/rcmd.py
0ecce1970164805cedb33d02a9dcf9eb6cd14e0c
[ "MIT" ]
1
2015-07-09T23:12:18.000Z
2015-07-09T23:12:18.000Z
rcmd/__init__.py
sysr-q/rcmd.py
0ecce1970164805cedb33d02a9dcf9eb6cd14e0c
[ "MIT" ]
null
null
null
rcmd/__init__.py
sysr-q/rcmd.py
0ecce1970164805cedb33d02a9dcf9eb6cd14e0c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import collections import functools import inspect import string import sys import re import rcmd.parser __all__ = ("Rcmd",) __version__ = "1.1.1" PROMPT = "(Rcmd) " PY2 = sys.version_info[0] == 2 DEFAULT_PARSER = rcmd.parser.Regex class OrderedDefaultDi...
32.963636
87
0.54955
617
5,439
4.73906
0.272285
0.02736
0.036936
0.02223
0.035226
0
0
0
0
0
0
0.005607
0.344181
5,439
164
88
33.164634
0.81413
0.061408
0
0.142857
0
0
0.039976
0
0
0
0
0.012195
0
1
0.092857
false
0
0.057143
0
0.257143
0.007143
0
0
0
null
0
0
0
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
ff4f7b54cf8dffc718c784ff7c128499223790d9
7,255
py
Python
analysis/explainshell/manager.py
lizhi16/dockerfile_analysis_framework
eb35105c8bbbc93d83129a6ab435c6e9acd4fab9
[ "Apache-2.0" ]
3
2021-05-10T05:55:46.000Z
2021-12-15T13:36:09.000Z
analysis/explainshell/manager.py
QQQQM/dockerfile_analysis_framework
eb35105c8bbbc93d83129a6ab435c6e9acd4fab9
[ "Apache-2.0" ]
null
null
null
analysis/explainshell/manager.py
QQQQM/dockerfile_analysis_framework
eb35105c8bbbc93d83129a6ab435c6e9acd4fab9
[ "Apache-2.0" ]
1
2021-09-03T07:24:55.000Z
2021-09-03T07:24:55.000Z
import sys, os, argparse, logging, glob from explainshell import options, store, fixer, manpage, errors, util, config from explainshell.algo import classifier logger = logging.getLogger('explainshell.manager') class managerctx(object): def __init__(self, classifier, store, manpage): self.classifier = cla...
35.915842
134
0.587457
853
7,255
4.922626
0.248535
0.035723
0.02834
0.015004
0.110264
0.095023
0.04763
0.04763
0.04763
0.022863
0
0.00237
0.301999
7,255
201
135
36.094527
0.826817
0.014748
0
0.166667
0
0
0.109055
0
0
0
0
0
0.012346
0
null
null
0.006173
0.018519
null
null
0.012346
0
0
0
null
0
0
0
0
0
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
ff521ae272c797bdb1f9fa0c80a13512d664acc6
2,758
py
Python
13_baseline_interface.py
saikrishnar/TTS_Interface
83bcb780ab58def7ff187699b05221e48f6618ba
[ "Apache-2.0" ]
null
null
null
13_baseline_interface.py
saikrishnar/TTS_Interface
83bcb780ab58def7ff187699b05221e48f6618ba
[ "Apache-2.0" ]
null
null
null
13_baseline_interface.py
saikrishnar/TTS_Interface
83bcb780ab58def7ff187699b05221e48f6618ba
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ ZetCode PyQt4 tutorial In this example, we receive data from a QtGui.QInputDialog dialog. author: Jan Bodnar website: zetcode.com last edited: October 2011 """ import sys, os from PyQt4 import QtGui from PyQt4.QtGui import QSound #import pyttsx #engine=pyttsx.init() ...
24.40708
64
0.566352
318
2,758
4.842767
0.339623
0.054545
0.054545
0.081818
0.375325
0.27987
0.27987
0.27987
0.231818
0.231818
0
0.022187
0.313633
2,758
112
65
24.625
0.791337
0.129079
0
0.16129
0
0
0.059486
0
0
0
0
0
0
0
null
null
0
0.064516
null
null
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ff5632d9e03cb4468b844d5619a98d003c34cb14
4,277
py
Python
yogadl/_core.py
aaron276h/YogaDL
21fc93076abde8e5c03e4e12c56f0fcaae050bda
[ "Apache-2.0" ]
74
2020-04-07T20:37:03.000Z
2022-02-17T06:52:42.000Z
yogadl/_core.py
aaron276h/YogaDL
21fc93076abde8e5c03e4e12c56f0fcaae050bda
[ "Apache-2.0" ]
10
2020-04-10T16:40:46.000Z
2021-11-10T12:45:36.000Z
yogadl/_core.py
aaron276h/YogaDL
21fc93076abde8e5c03e4e12c56f0fcaae050bda
[ "Apache-2.0" ]
6
2020-03-27T13:48:47.000Z
2020-12-02T21:49:48.000Z
# Copyright 2020 Determined AI. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
30.992754
99
0.6556
549
4,277
5.030965
0.415301
0.021723
0.036206
0.015206
0.068429
0.058291
0.047791
0.023896
0.023896
0
0
0.003474
0.259762
4,277
137
100
31.218978
0.86892
0.573299
0
0.291667
0
0
0
0
0
0
0
0.007299
0
1
0.166667
false
0.104167
0.0625
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
1
0
0
0
0
0
1
ff60c6107949c09358312aa32b69b079986c3b5b
2,011
py
Python
bluetooth/camera_share.py
AdityaNG/Self-Driving-RC-Car
92a49d5a47b1894fdfc5de87b506037395d67277
[ "MIT" ]
null
null
null
bluetooth/camera_share.py
AdityaNG/Self-Driving-RC-Car
92a49d5a47b1894fdfc5de87b506037395d67277
[ "MIT" ]
null
null
null
bluetooth/camera_share.py
AdityaNG/Self-Driving-RC-Car
92a49d5a47b1894fdfc5de87b506037395d67277
[ "MIT" ]
null
null
null
""" # sudo modprobe bcm2835-v4l2 # python3 controller.py > logs/controller.txt & # python3 autopilot_web_server.py > logs/autopilot_web_server.txt & # python3 recorder.py > logs/recorder.txt & cd training_data; #python3 -m http.server > ../logs/webserver.txt & """ import threading import time import sys from ...
23.940476
85
0.696171
254
2,011
5.377953
0.30315
0.085652
0.144949
0.18448
0.40776
0.277452
0.277452
0.212299
0.131772
0.131772
0
0.01135
0.167578
2,011
83
86
24.228916
0.80466
0.416708
0
0.04878
0
0
0.095321
0
0
0
0
0
0
1
0.097561
false
0
0.268293
0
0.365854
0.02439
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
ff700a13a1f7672d46eaab12f27acd657a82f87e
10,645
py
Python
tests/pytests/test_rotation.py
ladoramkershner/ale
7bd25687480f8e6b60319026ef0982ae41ef027e
[ "Unlicense" ]
4
2019-05-23T18:37:43.000Z
2022-01-10T20:03:56.000Z
tests/pytests/test_rotation.py
ladoramkershner/ale
7bd25687480f8e6b60319026ef0982ae41ef027e
[ "Unlicense" ]
262
2018-12-12T16:33:00.000Z
2022-03-28T01:28:33.000Z
tests/pytests/test_rotation.py
ladoramkershner/ale
7bd25687480f8e6b60319026ef0982ae41ef027e
[ "Unlicense" ]
20
2018-12-17T20:42:18.000Z
2022-03-07T20:48:16.000Z
import pytest import numpy as np from scipy.spatial.transform import Rotation from ale.rotation import ConstantRotation, TimeDependentRotation def test_constant_constant_composition(): rot1_2 = ConstantRotation([1.0/np.sqrt(2), 0, 0, 1.0/np.sqrt(2)], 1, 2) rot2_3 = ConstantRotation([0, 1.0/np.sqrt(2), 0, 1.0/...
45.297872
99
0.558008
1,714
10,645
3.28238
0.057176
0.033416
0.04728
0.048347
0.769641
0.719694
0.682012
0.649662
0.611091
0.56701
0
0.11137
0.272898
10,645
234
100
45.491453
0.615504
0.022452
0
0.457143
0
0
0.002115
0
0
0
0
0
0.290476
1
0.090476
false
0
0.019048
0
0.109524
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
ff7b6d67d191038450714540a8780c9fc1cebc97
981
py
Python
D4/D4.py
bitlischieber/AdventOfCode2019
d5a7d56f7146512a05a5033992bf62c3ffc225df
[ "MIT" ]
null
null
null
D4/D4.py
bitlischieber/AdventOfCode2019
d5a7d56f7146512a05a5033992bf62c3ffc225df
[ "MIT" ]
null
null
null
D4/D4.py
bitlischieber/AdventOfCode2019
d5a7d56f7146512a05a5033992bf62c3ffc225df
[ "MIT" ]
null
null
null
import re # Your puzzle input is 246540-787419. ## Part 1 pwords = [] for i in range(246540,787419): if(int(str(i)[0]) <= int(str(i)[1]) <= int(str(i)[2]) <= int(str(i)[3]) <= int(str(i)[4]) <= int(str(i)[5])): if((str(i)[0] == str(i)[1]) or (str(i)[1] == str(i)[2]) or (str(i)[2] == str(i)[3]) or (str(i)[...
31.645161
149
0.53211
163
981
3.202454
0.368098
0.130268
0.08046
0.08046
0.114943
0
0
0
0
0
0
0.066396
0.247706
981
31
150
31.645161
0.640921
0.168196
0
0.1
0
0
0.142327
0
0
0
0
0
0
1
0
false
0.15
0.05
0
0.05
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ff7fcbb0bfdbde3d1f79a429a9fe598acfe02aeb
206
py
Python
astetik/style/random_colors.py
meirm/astetik
ea05ce57a0bf1e8bd7ef18c4d5ca8d7ad3fb4be7
[ "MIT" ]
8
2019-05-14T07:26:40.000Z
2021-12-21T12:05:20.000Z
astetik/style/random_colors.py
meirm/astetik
ea05ce57a0bf1e8bd7ef18c4d5ca8d7ad3fb4be7
[ "MIT" ]
33
2018-04-04T20:45:59.000Z
2019-03-07T12:54:37.000Z
astetik/style/random_colors.py
meirm/astetik
ea05ce57a0bf1e8bd7ef18c4d5ca8d7ad3fb4be7
[ "MIT" ]
3
2020-02-09T14:35:00.000Z
2020-12-19T13:47:23.000Z
import numpy as np def randomcolor(): ''' PICKS COLORS RANDOMLY ''' colors = [] for i in range(20): colors.append(list((np.random.randint(0, 255, 3) / 255))) return colors
13.733333
65
0.572816
27
206
4.37037
0.814815
0
0
0
0
0
0
0
0
0
0
0.068027
0.286408
206
14
66
14.714286
0.734694
0.101942
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
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
ff83bea750c4cac8ec0e2ebe1b67c6a43b93f889
348
py
Python
pytorch_yolo_v1/utils/viz.py
ldylab/learning_yolo_family_with_pytorch
63fd8d65e5ccd55c9ec124052bbcb040e0d9c549
[ "MIT" ]
null
null
null
pytorch_yolo_v1/utils/viz.py
ldylab/learning_yolo_family_with_pytorch
63fd8d65e5ccd55c9ec124052bbcb040e0d9c549
[ "MIT" ]
null
null
null
pytorch_yolo_v1/utils/viz.py
ldylab/learning_yolo_family_with_pytorch
63fd8d65e5ccd55c9ec124052bbcb040e0d9c549
[ "MIT" ]
null
null
null
import cv2 import numpy as np def label2rgb(label_np): print(label_np) label_color = np.argmax(label_np, axis=0) label_color = label_color / np.max(label_color) * 255 print(label_color) n = label_color.astype(np.uint8) n = np.array(n) print(type(n)) label_color = cv2.applyColorMap(n, '...
24.857143
57
0.683908
55
348
4.127273
0.418182
0.352423
0.105727
0
0
0
0
0
0
0
0
0.028881
0.204023
348
14
58
24.857143
0.790614
0
0
0
0
0
0.008596
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.333333
0.25
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
ff84429f7d474a7b298815c4c9923f2e513a316a
624
py
Python
setup.py
CottageLabs/OpenArticleGauge
58d29b4209a7b59041d61326ffe1cf03f98f3cff
[ "BSD-3-Clause" ]
1
2016-04-07T18:29:27.000Z
2016-04-07T18:29:27.000Z
setup.py
CottageLabs/OpenArticleGauge
58d29b4209a7b59041d61326ffe1cf03f98f3cff
[ "BSD-3-Clause" ]
11
2015-01-06T15:53:09.000Z
2022-03-01T01:46:14.000Z
setup.py
CottageLabs/OpenArticleGauge
58d29b4209a7b59041d61326ffe1cf03f98f3cff
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages setup( name = 'openarticlegauge', version = '0.0.1', packages = find_packages(), install_requires = [ "Flask==0.9", "Jinja2==2.6", "Werkzeug==0.8.3", "anyjson==0.3.3", "argparse==1.2.1", "celery==3.0.25", ...
21.517241
43
0.467949
78
624
3.705128
0.512821
0.020761
0.020761
0
0
0
0
0
0
0
0
0.104265
0.323718
624
28
44
22.285714
0.580569
0
0
0
0
0
0.41573
0
0
0
0
0
0
1
0
true
0
0.038462
0
0.038462
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
ff872e30eb57317b2f13a0bac08cb6a9f3f2de7a
743
py
Python
tasks.py
Lugoues/bq-schema
5c2da95ff8458d78067884e701df799fc1421b0a
[ "MIT" ]
9
2020-12-04T13:57:52.000Z
2022-03-22T00:06:39.000Z
tasks.py
Lugoues/bq-schema
5c2da95ff8458d78067884e701df799fc1421b0a
[ "MIT" ]
11
2020-12-04T13:18:31.000Z
2022-03-01T10:16:12.000Z
tasks.py
Lugoues/bq-schema
5c2da95ff8458d78067884e701df799fc1421b0a
[ "MIT" ]
3
2021-01-15T16:03:15.000Z
2022-03-29T14:45:10.000Z
from invoke import task _TEST_FOLDER = "tests" _SOURCE_FOLDERS = " ".join(["bq_schema", _TEST_FOLDER]) @task def lint(context): context.run(f"pylint {_SOURCE_FOLDERS}") @task def type_check(context): context.run("mypy bq_schema") @task def check_code_format(context): context.run("black --check .") ...
19.051282
135
0.683715
102
743
4.764706
0.382353
0.144033
0.174897
0.074074
0.111111
0
0
0
0
0
0
0
0.158816
743
38
136
19.552632
0.7776
0
0
0.2
0
0.04
0.340511
0.044415
0
0
0
0
0
1
0.24
false
0.04
0.04
0
0.28
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
ff8ca2b95bd5e50c726e3b8b088b4cc7f8a3f295
1,927
py
Python
app/auth/views.py
reivhax/One-minute-pitch
108c870af05e241d06a8ffa8e1dff2c2579b885a
[ "MIT" ]
null
null
null
app/auth/views.py
reivhax/One-minute-pitch
108c870af05e241d06a8ffa8e1dff2c2579b885a
[ "MIT" ]
null
null
null
app/auth/views.py
reivhax/One-minute-pitch
108c870af05e241d06a8ffa8e1dff2c2579b885a
[ "MIT" ]
null
null
null
from flask import render_template,request,redirect,url_for,abort from flask_login import login_user,login_required,current_user,logout_user from ..models import User from .forms import LoginForm,RegisterForm from . import auth # Views @auth.route('/login', methods=["GET","POST"]) def login(): if current_user.is_au...
36.358491
81
0.65698
233
1,927
5.321888
0.270386
0.053226
0.067742
0.080645
0.495161
0.472581
0.419355
0.419355
0.419355
0.353226
0
0
0.227296
1,927
52
82
37.057692
0.832774
0.002595
0
0.395833
0
0
0.114583
0
0
0
0
0
0
1
0.0625
false
0.1875
0.104167
0
0.3125
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
ff8f7319fa2ef38456a1e0b0ac584091c2866fc8
5,657
py
Python
views/templates.py
dpgd/utils
bb5d8477f5ea449d1c0072149aaec63456780394
[ "Apache-2.0" ]
null
null
null
views/templates.py
dpgd/utils
bb5d8477f5ea449d1c0072149aaec63456780394
[ "Apache-2.0" ]
null
null
null
views/templates.py
dpgd/utils
bb5d8477f5ea449d1c0072149aaec63456780394
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.shortcuts import render from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.http import HttpResponse from django.http import JsonResponse import json imp...
32.889535
79
0.573979
578
5,657
5.491349
0.15917
0.028355
0.042533
0.059546
0.712035
0.712035
0.670132
0.621613
0.565217
0.483932
0
0.009776
0.312887
5,657
171
80
33.081871
0.806792
0.006717
0
0.583942
0
0
0.045406
0
0
0
0
0
0
1
0.087591
false
0.007299
0.058394
0
0.343066
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
ffa5632264ef2684f646109550067994dceeb5bf
47,602
py
Python
wflow-py/wflow/wflow_topoflex.py
edwinkost/wflow
ee9291d4b556d7b61f7f13bcb972774be9a16cec
[ "MIT" ]
null
null
null
wflow-py/wflow/wflow_topoflex.py
edwinkost/wflow
ee9291d4b556d7b61f7f13bcb972774be9a16cec
[ "MIT" ]
null
null
null
wflow-py/wflow/wflow_topoflex.py
edwinkost/wflow
ee9291d4b556d7b61f7f13bcb972774be9a16cec
[ "MIT" ]
null
null
null
#!/usr/bin/python """ Definition of the wflow_sceleton model. --------------------------------------- This simple model calculates soil temperature using air temperature as a forcing. Usage: wflow_sceleton -C case -R Runid -c inifile -C: set the name of the case (directory) to run -R: set the name ru...
52.891111
428
0.584849
5,674
47,602
4.848255
0.135883
0.040387
0.038169
0.021084
0.484678
0.432077
0.314515
0.26126
0.227017
0.169726
0
0.010916
0.264842
47,602
899
429
52.949944
0.775168
0.100962
0
0.11925
0
0.001704
0.09429
0.026989
0
0
0
0.002225
0
0
null
null
0
0.028961
null
null
0.008518
0
0
0
null
0
0
0
0
0
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
440112a8da465b1369f6b864a3bc46abf44215b4
1,169
py
Python
dolfyn/_version.py
MRE-Code-Hub/dolfyn
d807d0188f9e5f11845bc3f9efc7d154f729850a
[ "Apache-2.0" ]
28
2016-03-07T16:31:34.000Z
2022-03-29T03:28:36.000Z
dolfyn/_version.py
MRE-Code-Hub/dolfyn
d807d0188f9e5f11845bc3f9efc7d154f729850a
[ "Apache-2.0" ]
85
2015-09-04T15:51:26.000Z
2022-03-29T20:45:08.000Z
dolfyn/_version.py
MRE-Code-Hub/dolfyn
d807d0188f9e5f11845bc3f9efc7d154f729850a
[ "Apache-2.0" ]
27
2016-04-02T04:02:10.000Z
2022-03-26T02:45:06.000Z
__version__ = '0.12.1' __prog_name__ = 'DOLfYN' __version_date__ = 'May-07-2020' def ver2tuple(ver): if isinstance(ver, tuple): return ver # ### Previously used FLOATS for 'save-format' versioning. # Version 1.0: underscore ('_') handled inconsistently. # Version 1.1: '_' and '#' handled consi...
33.4
79
0.616766
155
1,169
4.445161
0.587097
0.046444
0.043541
0
0
0
0
0
0
0
0
0.031359
0.263473
1,169
34
80
34.382353
0.768873
0.526091
0
0
0
0
0.045541
0
0
0
0
0
0
1
0.058824
false
0.058824
0
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4401f17ac9a52cbe4575cab397ce4038517fbf27
3,421
py
Python
app_APPium_test/test_wework.py
XuXuClassMate/My_Test_PyProject
5822455af47f5855d1db4c388c2c973c440a4d3f
[ "Apache-2.0" ]
null
null
null
app_APPium_test/test_wework.py
XuXuClassMate/My_Test_PyProject
5822455af47f5855d1db4c388c2c973c440a4d3f
[ "Apache-2.0" ]
null
null
null
app_APPium_test/test_wework.py
XuXuClassMate/My_Test_PyProject
5822455af47f5855d1db4c388c2c973c440a4d3f
[ "Apache-2.0" ]
null
null
null
from time import sleep from appium import webdriver from appium.webdriver.common.mobileby import MobileBy phone_info = { "platformName": "android", "platformVersion": "8.1", "deviceName": "S4F6R19C18016391", "appPackage": "com.tencent.wework", "appActivity": ".launch.LaunchSplashActivity t9", "...
51.059701
119
0.590471
354
3,421
5.550847
0.319209
0.10687
0.10687
0.160305
0.504326
0.470738
0.448346
0.38117
0.335878
0.235115
0
0.018787
0.253142
3,421
66
120
51.833333
0.750294
0.028939
0
0.068966
0
0.017241
0.306116
0.182585
0
0
0
0
0.034483
1
0.068966
false
0
0.051724
0
0.137931
0.017241
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
440218523ba22fe2f9f6dcf8fcd70445b840f0b6
648
py
Python
cover.py
NaikAayush/bpl-hassio-component
d5e7dd21cd3781f377a055ea30b70e31621aed5a
[ "Apache-2.0" ]
4
2020-06-05T14:30:58.000Z
2020-10-20T14:44:08.000Z
cover.py
NaikAayush/bpl-hassio-component
d5e7dd21cd3781f377a055ea30b70e31621aed5a
[ "Apache-2.0" ]
1
2020-06-05T11:58:47.000Z
2020-06-05T12:51:54.000Z
cover.py
NaikAayush/bpl-hassio-component
d5e7dd21cd3781f377a055ea30b70e31621aed5a
[ "Apache-2.0" ]
2
2020-06-23T06:08:13.000Z
2020-10-20T14:44:11.000Z
import logging import socket import threading import datetime import time import math from . import BPLMonitor, BPLCurtain, DATA_DOMAIN from homeassistant.helpers.entity import Entity _LOGGER = logging.getLogger(__name__) def setup_platform(hass, config, add_entities, discovery_info=None): """Set up the sens...
22.344828
68
0.722222
87
648
5.172414
0.551724
0.06
0.08
0
0
0
0
0
0
0
0
0
0.205247
648
28
69
23.142857
0.873786
0.128086
0
0
0
0
0.012567
0
0
0
0
0
0
1
0.055556
false
0
0.444444
0
0.555556
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
4406908337deb2845dc9d5f77a346658c2a95f02
820
py
Python
bag.py
dineshrajpurohit/ds_al
d664ff4ccc69b052d724f65e280287137c000f9e
[ "MIT" ]
null
null
null
bag.py
dineshrajpurohit/ds_al
d664ff4ccc69b052d724f65e280287137c000f9e
[ "MIT" ]
null
null
null
bag.py
dineshrajpurohit/ds_al
d664ff4ccc69b052d724f65e280287137c000f9e
[ "MIT" ]
null
null
null
from linked_list import Linked_List, Node import random class Bag(Linked_List): def __init__(self): Linked_List.__init__(self) def add(self, item): """Stores in a random location in the Linked list""" if self.count == 0: random_location = 0 else: rando...
21.025641
63
0.591463
114
820
4.008772
0.342105
0.109409
0.043764
0.083151
0.109409
0.109409
0.109409
0
0
0
0
0.008503
0.282927
820
38
64
21.578947
0.768707
0
0
0.071429
0
0
0.080729
0
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.178571
0
0
0
null
0
0
0
0
0
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
44127ded546cdc0cee1ad820b69cf53bd3f75627
2,098
py
Python
FFTAnalysis/FFT.py
JamieAGraham/FID-Analysis-g-2
0f84718e2ca749d2593e179508e258716e795648
[ "MIT" ]
1
2019-01-21T08:12:01.000Z
2019-01-21T08:12:01.000Z
FFTAnalysis/FFT.py
JamieAGraham/FID-Analysis-g-2
0f84718e2ca749d2593e179508e258716e795648
[ "MIT" ]
null
null
null
FFTAnalysis/FFT.py
JamieAGraham/FID-Analysis-g-2
0f84718e2ca749d2593e179508e258716e795648
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np import scipy as sci import sys # Python implementation of the FFT quadratic peak interpolation method. This code can be run with the following format: # <python FFT.py [filename.txt] [Zero Padding Multiple]> # The format of the text file is identical to that of the ZC...
35.559322
146
0.751192
341
2,098
4.521994
0.43695
0.022698
0.035668
0.027237
0.049935
0.020752
0
0
0
0
0
0.015228
0.154909
2,098
58
147
36.172414
0.854484
0.545281
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
441607de126545ce02d6ca83016f6cae1858265c
1,199
py
Python
src/ai/conditions.py
Kupoman/thor
f7eb2c3f80975abe2d1388b2dd46fad214e90ac0
[ "Apache-2.0" ]
1
2015-04-24T22:48:20.000Z
2015-04-24T22:48:20.000Z
src/ai/conditions.py
Kupoman/thor
f7eb2c3f80975abe2d1388b2dd46fad214e90ac0
[ "Apache-2.0" ]
null
null
null
src/ai/conditions.py
Kupoman/thor
f7eb2c3f80975abe2d1388b2dd46fad214e90ac0
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Daniel Stokes, Mitchell Stokes # # 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 ...
24.469388
76
0.705588
170
1,199
4.829412
0.541176
0.073082
0.031669
0.038977
0.051157
0
0
0
0
0
0
0.010309
0.190992
1,199
48
77
24.979167
0.836082
0.486239
0
0.090909
0
0
0.041667
0
0
0
0
0
0
1
0.181818
false
0
0
0.136364
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
4420c5cb01c539546aa99ace8168cfcd8793b662
283
py
Python
basic_structure.py
spaceghst007/astr-119-session-2
fe0048291527d0211a9e9158f550013c8bd325ff
[ "MIT" ]
null
null
null
basic_structure.py
spaceghst007/astr-119-session-2
fe0048291527d0211a9e9158f550013c8bd325ff
[ "MIT" ]
9
2021-09-23T18:54:54.000Z
2021-12-09T19:56:08.000Z
basic_structure.py
spaceghst007/astro-119
bb9aa0c27781774ffa9dfbeefcd5267934eaaece
[ "MIT" ]
null
null
null
import library as alias #imports functions for #us to use def main(): #defines the main func #do some stuff #rest of the profram continues from here #if the main() function exists, fun it if __name__== "__main__": main() #you can do other stuff down here
21.769231
52
0.674912
44
283
4.159091
0.772727
0.076503
0
0
0
0
0
0
0
0
0
0
0.254417
283
13
53
21.769231
0.867299
0.607774
0
0
0
0
0.07619
0
0
0
0
0
0
0
null
null
0
0.25
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
4423a427eb503ff98aa8787e66071a7336b2ece4
340
py
Python
custom_components/bhyve/util.py
jdreamerz/bhyve-home-assistant
937bbb09a963dac12b62eafd83b95a3ad1e26606
[ "MIT" ]
122
2019-12-19T11:37:04.000Z
2022-03-23T16:31:58.000Z
custom_components/bhyve/util.py
jdreamerz/bhyve-home-assistant
937bbb09a963dac12b62eafd83b95a3ad1e26606
[ "MIT" ]
79
2020-01-05T01:34:35.000Z
2022-03-28T20:48:41.000Z
custom_components/bhyve/util.py
jdreamerz/bhyve-home-assistant
937bbb09a963dac12b62eafd83b95a3ad1e26606
[ "MIT" ]
25
2020-04-14T03:57:50.000Z
2022-03-11T01:03:58.000Z
from homeassistant.util import dt def orbit_time_to_local_time(timestamp: str): if timestamp is not None: return dt.as_local(dt.parse_datetime(timestamp)) return None def anonymize(device): device["address"] = "REDACTED" device["full_location"] = "REDACTED" device["location"] = "REDACTED...
22.666667
56
0.702941
43
340
5.395349
0.604651
0.12069
0
0
0
0
0
0
0
0
0
0
0.191176
340
14
57
24.285714
0.843636
0
0
0
0
0
0.152941
0
0
0
0
0
0
1
0.2
false
0
0.1
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4426a04a1fd4ec16b66768708c1c452e2cc4a0c5
366
py
Python
mowl/projection/catont/model.py
bio-ontology-research-group/OntoML
4cdc17dc7ee26464db96c67838c3e77dba5318f9
[ "BSD-3-Clause" ]
null
null
null
mowl/projection/catont/model.py
bio-ontology-research-group/OntoML
4cdc17dc7ee26464db96c67838c3e77dba5318f9
[ "BSD-3-Clause" ]
null
null
null
mowl/projection/catont/model.py
bio-ontology-research-group/OntoML
4cdc17dc7ee26464db96c67838c3e77dba5318f9
[ "BSD-3-Clause" ]
null
null
null
from org.mowl.CatParser import CatParser import sys from mowl.graph.graph import GraphGenModel class CatOnt(GraphGenModel): def __init__(self, dataset, subclass = True, relations = False): super().__init__(dataset) self.parser = CatParser(dataset.ontology) def parseOWL(self): edge...
19.263158
68
0.691257
42
366
5.833333
0.595238
0.122449
0
0
0
0
0
0
0
0
0
0
0.218579
366
18
69
20.333333
0.856643
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.3
0
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4433b5e6b884f337cf2810e7f6671f9c80e2cdee
1,984
py
Python
zaqar/storage/mongodb/__init__.py
vkmc/zaqar-websocket
a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b
[ "Apache-2.0" ]
1
2015-03-22T18:41:13.000Z
2015-03-22T18:41:13.000Z
zaqar/storage/mongodb/__init__.py
vkmc/zaqar-websocket
a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b
[ "Apache-2.0" ]
null
null
null
zaqar/storage/mongodb/__init__.py
vkmc/zaqar-websocket
a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
31
77
0.753024
298
1,984
5.006711
0.563758
0.040214
0.017426
0.021448
0
0
0
0
0
0
0
0.006017
0.162298
1,984
63
78
31.492063
0.891697
0.925907
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4436fdccd6b75fca5e51d4fe69169e3268927bb4
690
py
Python
evennia/utils/tests/test_evmenu.py
victomteng1997/evennia_default_lib
24769cef2e5e9a6d368068df3343c9f87cee4bfb
[ "BSD-3-Clause" ]
null
null
null
evennia/utils/tests/test_evmenu.py
victomteng1997/evennia_default_lib
24769cef2e5e9a6d368068df3343c9f87cee4bfb
[ "BSD-3-Clause" ]
4
2021-06-08T23:38:31.000Z
2022-02-11T03:48:07.000Z
evennia/utils/tests/test_evmenu.py
pmwheatley/evennia
2cf26e9d092e16473626a4a6374de7323d0e473a
[ "BSD-3-Clause" ]
null
null
null
""" Unit tests for the EvMenu system TODO: This need expansion. """ from django.test import TestCase from evennia.utils import evmenu from mock import Mock class TestEvMenu(TestCase): "Run the EvMenu testing." def setUp(self): self.caller = Mock() self.caller.msg = Mock() self.menu...
26.538462
99
0.626087
79
690
5.417722
0.544304
0.070093
0.098131
0.116822
0.135514
0
0
0
0
0
0
0.005882
0.26087
690
25
100
27.6
0.833333
0.121739
0
0
0
0
0.140097
0
0
0
0
0.04
0.142857
1
0.142857
false
0
0.214286
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
1
0
0
0
0
0
0
0
0
0
0
1
44377f07f4f9b504ff225e5db64d279967d6e06b
1,448
py
Python
searching/binary_search.py
TrungLuong1194/retrieval_systems
61441826ec7d55c9758faa63bd322a16b95300d2
[ "MIT" ]
1
2021-05-05T11:52:58.000Z
2021-05-05T11:52:58.000Z
searching/binary_search.py
TrungLuong1194/retrieval_systems
61441826ec7d55c9758faa63bd322a16b95300d2
[ "MIT" ]
null
null
null
searching/binary_search.py
TrungLuong1194/retrieval_systems
61441826ec7d55c9758faa63bd322a16b95300d2
[ "MIT" ]
null
null
null
from utils import generate_random_sequence def search(seq, l, r, x): num_comparisons = 0 if r >= l: mid = l + (r - l) // 2 num_comparisons += 1 if seq[mid] == x: return mid, num_comparisons elif seq[mid] > x: res, num = search(seq, l, mid - 1, x) ...
27.846154
85
0.57942
184
1,448
4.369565
0.228261
0.139303
0.05597
0.039801
0.529851
0.529851
0.529851
0.529851
0.529851
0.41791
0
0.01955
0.293508
1,448
51
86
28.392157
0.766373
0.015884
0
0.512821
1
0
0.116655
0
0
0
0
0
0
1
0.025641
false
0
0.025641
0
0.153846
0.25641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
443a1dbb542f360faeaeea363f81df3503c8ec91
25,677
py
Python
StreamPy/examples_timed_window_wrapper.py
AnomalyInc/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
2
2017-04-27T11:04:27.000Z
2019-02-07T21:03:32.000Z
StreamPy/examples_timed_window_wrapper.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
StreamPy/examples_timed_window_wrapper.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
from Stream import Stream, _no_value, _multivalue, TimeAndValue from Operators import stream_func, stream_agent from examples_element_wrapper import print_stream import numpy as np import random ############################################################ ############################################################ ...
33.260363
77
0.615921
3,458
25,677
4.096298
0.075477
0.026685
0.014755
0.026403
0.604659
0.523332
0.466926
0.357642
0.31006
0.270314
0
0.014705
0.1684
25,677
771
78
33.303502
0.648668
0.421116
0
0.377778
0
0
0.25892
0.139116
0
0
0
0
0
0
null
null
0
0.013889
null
null
0.313889
0
0
0
null
0
0
0
0
0
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
443c50de6d23a92caba3547e54ca585d7c48e719
1,921
py
Python
datalad/interface/tests/test_download_url.py
yarikoptic/datalad
c0cd538de2ed9a30c0f58256c7afa6e18d325505
[ "MIT" ]
null
null
null
datalad/interface/tests/test_download_url.py
yarikoptic/datalad
c0cd538de2ed9a30c0f58256c7afa6e18d325505
[ "MIT" ]
6
2015-11-20T21:41:13.000Z
2018-06-12T14:27:32.000Z
datalad/interface/tests/test_download_url.py
yarikoptic/datalad
c0cd538de2ed9a30c0f58256c7afa6e18d325505
[ "MIT" ]
1
2017-03-28T14:44:16.000Z
2017-03-28T14:44:16.000Z
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
31.491803
87
0.624675
249
1,921
4.626506
0.453815
0.076389
0.048611
0.069444
0.124132
0
0
0
0
0
0
0.014314
0.199896
1,921
60
88
32.016667
0.735198
0.212389
0
0.085714
0
0
0.084906
0
0
0
0
0.016667
0.142857
1
0.057143
false
0
0.171429
0
0.228571
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
443f8a442eb5e1a9068d4862abf1940688bb8790
2,835
py
Python
Validation/ground_truth_internet2.py
dioptra-io/icmp-rate-limiting-classifier
85ff3a62767655ef3c3ce3d1507b058795ca6a25
[ "MIT" ]
null
null
null
Validation/ground_truth_internet2.py
dioptra-io/icmp-rate-limiting-classifier
85ff3a62767655ef3c3ce3d1507b058795ca6a25
[ "MIT" ]
null
null
null
Validation/ground_truth_internet2.py
dioptra-io/icmp-rate-limiting-classifier
85ff3a62767655ef3c3ce3d1507b058795ca6a25
[ "MIT" ]
null
null
null
from Files.utils import ipv4_regex, ipv6_regex import re if __name__ == "__main__": """ This script parse the Internet2 interfaces files and generates router files """ router_id_regex = re.compile('<th id=".*?">(.*)</th>') gt_interface_addresses = ( "resources/internet2/ground-truth/Int...
33.352941
83
0.564727
383
2,835
3.885117
0.219321
0.096774
0.133065
0.067204
0.473118
0.383065
0.259409
0.22043
0.130376
0.130376
0
0.054823
0.330864
2,835
84
84
33.75
0.729573
0.008113
0
0.15625
1
0
0.115158
0.048565
0
0
0
0
0
1
0
false
0
0.03125
0
0.03125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4448a015d76866d91b99ca1cdae65e510ef13604
552
py
Python
setup.py
fran6w/pandas-method-chaining
962382bd9ff3c18d9057369fffd82cb78b781a70
[ "MIT" ]
5
2022-02-08T17:29:29.000Z
2022-02-10T01:21:08.000Z
setup.py
fran6w/pandas-method-chaining
962382bd9ff3c18d9057369fffd82cb78b781a70
[ "MIT" ]
null
null
null
setup.py
fran6w/pandas-method-chaining
962382bd9ff3c18d9057369fffd82cb78b781a70
[ "MIT" ]
null
null
null
from setuptools import setup requires = ["flake8 > 3.0.0", "attr"] flake8_entry_point = "flake8.extension" long_description = """ A flake8 style checker for pandas method chaining, forked from https://github.com/deppen8/pandas-vet] """ setup( name="pandas-method-chaining", version="0.1.0", author="Franc...
23
101
0.672101
66
552
5.484848
0.590909
0.132597
0.220994
0
0
0
0
0
0
0
0
0.027211
0.201087
552
23
102
24
0.793651
0
0
0
0
0.052632
0.449275
0.099638
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
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
44498224c2c4e7f049ad80cd33458107e75c0a63
1,845
py
Python
land_planning_and_allocation/config/land_planning_and_allocation.py
the-bantoo/Land-Planning-And-Allocation
67a6b57c7c4ddc40a51691f94cacb5e28b1c5cd5
[ "MIT" ]
null
null
null
land_planning_and_allocation/config/land_planning_and_allocation.py
the-bantoo/Land-Planning-And-Allocation
67a6b57c7c4ddc40a51691f94cacb5e28b1c5cd5
[ "MIT" ]
1
2020-10-05T15:50:33.000Z
2020-10-07T10:28:31.000Z
land_planning_and_allocation/config/land_planning_and_allocation.py
the-bantoo/Land-Planning-And-Allocation
67a6b57c7c4ddc40a51691f94cacb5e28b1c5cd5
[ "MIT" ]
2
2020-10-29T17:38:08.000Z
2021-09-07T10:59:27.000Z
from __future__ import unicode_literals from frappe import _ def get_data(): config = [ { "label": _("Sales"), "items": [ { "type": "doctype", "name": "Customer", "description": _("Customer Database."), "onboard": 1, ...
24.932432
48
0.303523
101
1,845
5.346535
0.39604
0.122222
0.166667
0.111111
0.085185
0
0
0
0
0
0
0.006046
0.551762
1,845
74
49
24.932432
0.646917
0
0
0.236111
0
0
0.253521
0
0
0
0
0
0
1
0.013889
false
0
0.027778
0
0.055556
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
4454f7de9276d2ef84e523693c9b10da6deda31e
1,605
py
Python
bin/commands/corpus.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
220
2016-01-22T21:19:02.000Z
2022-01-25T04:33:55.000Z
bin/commands/corpus.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
14
2016-01-23T14:34:39.000Z
2016-09-19T19:58:37.000Z
bin/commands/corpus.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
14
2016-02-03T13:47:48.000Z
2019-03-27T13:09:05.000Z
import os import click import csv import random import sys from osp.common import config from osp.common.utils import query_bar from osp.corpus.corpus import Corpus from osp.corpus.models import Document from osp.corpus.models import Document_Format from osp.corpus.models import Document_Text from osp.corpus.jobs im...
16.546392
48
0.667913
217
1,605
4.81106
0.317972
0.05364
0.074713
0.054598
0.320881
0.286398
0.141762
0.141762
0.141762
0.141762
0
0
0.223053
1,605
96
49
16.71875
0.837209
0.137695
0
0.170213
0
0
0.014717
0
0
0
0
0
0
1
0.148936
false
0.021277
0.319149
0
0.468085
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
445bbb13d66be9cd63e6a869ffd43b9922f5816e
554
py
Python
todoapi/migrations/0004_auto_20190129_2103.py
Faysa1/Gestion-Tickets-Taches
eeba92df59c3217d15b02a5bb1ed3c6e673537a4
[ "Apache-2.0" ]
null
null
null
todoapi/migrations/0004_auto_20190129_2103.py
Faysa1/Gestion-Tickets-Taches
eeba92df59c3217d15b02a5bb1ed3c6e673537a4
[ "Apache-2.0" ]
null
null
null
todoapi/migrations/0004_auto_20190129_2103.py
Faysa1/Gestion-Tickets-Taches
eeba92df59c3217d15b02a5bb1ed3c6e673537a4
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.4 on 2019-01-29 15:33 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('todoapi', '0003_todolist_taskid'), ] operations = [ migrations.RemoveField( model_name='todolist', name=...
23.083333
106
0.597473
57
554
5.719298
0.719298
0.055215
0.104294
0.128834
0
0
0
0
0
0
0
0.050761
0.288809
554
23
107
24.086957
0.77665
0.081227
0
0.235294
1
0
0.100592
0
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
4462c97437bc2633fd00f625e98649576bec2677
908
py
Python
neighbours/migrations/0004_auto_20190529_1722.py
lizKimita/Neighbourhoods
fb0ab33f8107550ddb17a3a16206cf47dc0c2401
[ "MIT" ]
null
null
null
neighbours/migrations/0004_auto_20190529_1722.py
lizKimita/Neighbourhoods
fb0ab33f8107550ddb17a3a16206cf47dc0c2401
[ "MIT" ]
2
2021-03-19T00:56:37.000Z
2021-06-08T19:56:50.000Z
neighbours/migrations/0004_auto_20190529_1722.py
lizKimita/Neighbourhoods
fb0ab33f8107550ddb17a3a16206cf47dc0c2401
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-05-29 14:22 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('neighbours', '0003_auto_2019...
28.375
121
0.634361
100
908
5.58
0.52
0.057348
0.075269
0.11828
0.215054
0.215054
0.215054
0.215054
0.215054
0.215054
0
0.047198
0.253304
908
31
122
29.290323
0.775811
0.072687
0
0.208333
1
0
0.083433
0.027414
0
0
0
0
0
1
0
false
0
0.166667
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
44655a40e6400407fb31ca40d61899342b9c12b9
9,789
py
Python
pyEBOT.py
Ndnes/pyEBOT
f9ca06a73a790e262f121030db762dc6f5e3b3f2
[ "MIT" ]
null
null
null
pyEBOT.py
Ndnes/pyEBOT
f9ca06a73a790e262f121030db762dc6f5e3b3f2
[ "MIT" ]
1
2021-04-30T21:13:28.000Z
2021-04-30T21:13:28.000Z
pyEBOT.py
ScruffyLNH/pyEBOT
f9ca06a73a790e262f121030db762dc6f5e3b3f2
[ "MIT" ]
null
null
null
import discord # noqa import os import event import configuration import managedMessages import logging from logging import handlers from pydantic import ValidationError from utility import loadData, saveData, checkConfig, sendMessagePackets from constants import Constants from discord.ext import commands # TODO: Deci...
35.726277
117
0.633773
1,084
9,789
5.666974
0.244465
0.027348
0.023441
0.021651
0.452222
0.406642
0.355689
0.327853
0.307179
0.294156
0
0.003536
0.277761
9,789
273
118
35.857143
0.865347
0.146287
0
0.424242
0
0
0.214148
0.018392
0
0
0
0.014652
0
1
0.005051
false
0
0.055556
0.005051
0.065657
0.035354
0
0
0
null
0
0
0
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
446cfd9633762470041899a151b2c8d473c3807d
1,410
py
Python
Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/UnitTests/Decorator_UnitTest.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
1
2017-04-25T13:15:10.000Z
2017-04-25T13:15:10.000Z
Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/UnitTests/Decorator_UnitTest.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
null
null
null
Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/UnitTests/Decorator_UnitTest.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
null
null
null
# Placeholder unit test import os import sys import unittest from CommonEnvironment.CallOnExit import CallOnExit # --------------------------------------------------------------------------- _script_fullpath = os.path.abspath(__file__) if "python" in sys.executable.lower() else sys.executable _script_dir, ...
32.790698
103
0.471631
119
1,410
5.361345
0.495798
0.028213
0
0
0
0
0
0
0
0
0
0.007785
0.180142
1,410
42
104
33.571429
0.544118
0.277305
0
0
0
0
0.049536
0
0
0
0
0
0.08
1
0.16
false
0.04
0.2
0.08
0.52
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4470b29c084d95b91fbeaec1cd5884d0eed8930c
637
py
Python
api/routers/email.py
temanisparsh/mailing-system
9c3e5a060a0d3531f8f4a83af335098b36e735c5
[ "MIT" ]
2
2021-04-13T02:45:24.000Z
2021-04-24T14:06:23.000Z
api/routers/email.py
temanisparsh/mailing-system
9c3e5a060a0d3531f8f4a83af335098b36e735c5
[ "MIT" ]
null
null
null
api/routers/email.py
temanisparsh/mailing-system
9c3e5a060a0d3531f8f4a83af335098b36e735c5
[ "MIT" ]
null
null
null
from flask import Blueprint, make_response, request, jsonify, current_app from flask.views import MethodView from controllers import email controller = email.controller router = Blueprint('email', __name__) router.add_url_rule('/draft', view_func = controller['draft']) router.add_url_rule('/<email_id>', view_func = ...
42.466667
87
0.766091
89
637
5.157303
0.337079
0.117647
0.156863
0.20915
0
0
0
0
0
0
0
0
0.078493
637
14
88
45.5
0.781942
0
0
0
0
0
0.188383
0.089482
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0.181818
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
447257de395d85121624eb9bed0a9e4c6693723b
1,459
py
Python
services/load-test/locustfile.py
DragonBanana/serverless-sock-shop
a7b5e66217fdd087951348c187dbed856453aa6c
[ "Apache-2.0" ]
null
null
null
services/load-test/locustfile.py
DragonBanana/serverless-sock-shop
a7b5e66217fdd087951348c187dbed856453aa6c
[ "Apache-2.0" ]
null
null
null
services/load-test/locustfile.py
DragonBanana/serverless-sock-shop
a7b5e66217fdd087951348c187dbed856453aa6c
[ "Apache-2.0" ]
null
null
null
import base64 from time import sleep from locust import HttpUser, TaskSet, task from random import randint, choice, getrandbits class WebTasks(TaskSet): @task def load(self): user = f"u{getrandbits(64)}" password = f"p{getrandbits(64)}" session = bytes(f"{user}:{password}", "utf-8") ...
37.410256
169
0.629198
178
1,459
5.117978
0.5
0.131723
0.08562
0.035126
0
0
0
0
0
0
0
0.045038
0.178204
1,459
38
170
38.394737
0.714762
0
0
0
0
0
0.284441
0
0
0
0
0
0
1
0.033333
false
0.1
0.133333
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
1
0
0
0
0
0
1
44784a6ded1f53a62eb235ce8793f3ad8844271d
695
py
Python
machine/exceptions/machine.py
kraglik/machine
cc82a6d05f4cd0ab4992518e15ac536c7ec35b35
[ "BSD-3-Clause" ]
null
null
null
machine/exceptions/machine.py
kraglik/machine
cc82a6d05f4cd0ab4992518e15ac536c7ec35b35
[ "BSD-3-Clause" ]
null
null
null
machine/exceptions/machine.py
kraglik/machine
cc82a6d05f4cd0ab4992518e15ac536c7ec35b35
[ "BSD-3-Clause" ]
null
null
null
from abc import ABC class MachineError(Exception, ABC): message = "Abstract error" status_code = 500 def __init__(self) -> None: super().__init__(self.message) def __str__(self) -> str: return self.message class MachineSuspiciousOperationError(MachineError): message = "Suspicio...
21.060606
61
0.723741
67
695
7.253731
0.522388
0.102881
0.053498
0.074074
0
0
0
0
0
0
0
0.026978
0.2
695
32
62
21.71875
0.847122
0
0
0.2
0
0
0.129496
0
0
0
0
0
0
1
0.1
false
0
0.05
0.05
0.95
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
4488f7325ab2d56de9be26b0914150cab23ccf10
4,800
py
Python
groups/bal/baljsn/generate_baljsn_encoder_testtypes.py
eddiepierce/bde
45953ece9dd1cd8732f01a1cd24bbe838791d298
[ "Apache-2.0" ]
1
2020-02-03T17:15:53.000Z
2020-02-03T17:15:53.000Z
groups/bal/baljsn/generate_baljsn_encoder_testtypes.py
eddiepierce/bde
45953ece9dd1cd8732f01a1cd24bbe838791d298
[ "Apache-2.0" ]
2
2020-11-05T15:20:55.000Z
2021-01-05T19:38:43.000Z
groups/bal/baljsn/generate_baljsn_encoder_testtypes.py
eddiepierce/bde
45953ece9dd1cd8732f01a1cd24bbe838791d298
[ "Apache-2.0" ]
2
2020-01-16T17:58:12.000Z
2020-08-11T20:59:30.000Z
#!/opt/bb/bin/python3.7 """This module defines a program that generates the 'baljsn_encoder_testtypes' component and replace all uses of 'bdes' with 'bsls' within its files. """ from asyncio import create_subprocess_exec as aio_create_subprocess_exec from asyncio import run as aio_run from asyncio import subprocess as...
36.923077
78
0.663542
648
4,800
4.75
0.350309
0.046784
0.05718
0.022092
0.1423
0.122807
0.122157
0.122157
0.093567
0.038986
0
0.004544
0.220625
4,800
129
79
37.209302
0.81823
0.26125
0
0.032258
1
0
0.193525
0.091244
0
0
0
0
0.016129
1
0.032258
false
0
0.193548
0
0.241935
0.080645
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
448cf70cfd1b834b6d5617d52923b2de9160c37b
5,259
py
Python
app/cascade/session.py
jillmnolan/cascade-server
313c2ccfc061740c0ef664e97bce60546008b9b2
[ "Apache-2.0" ]
null
null
null
app/cascade/session.py
jillmnolan/cascade-server
313c2ccfc061740c0ef664e97bce60546008b9b2
[ "Apache-2.0" ]
null
null
null
app/cascade/session.py
jillmnolan/cascade-server
313c2ccfc061740c0ef664e97bce60546008b9b2
[ "Apache-2.0" ]
null
null
null
# NOTICE # # This software was produced for the U. S. Government # under Basic Contract No. W15P7T-13-C-A802, and is # subject to the Rights in Noncommercial Computer Software # and Noncommercial Computer Software Documentation # Clause 252.227-7014 (FEB 2012) # # (C) 2017 The MITRE Corporation. from __future__ import...
32.263804
115
0.647271
596
5,259
5.557047
0.313758
0.018116
0.009964
0.020833
0.051932
0.051932
0.045894
0
0
0
0
0.007245
0.265069
5,259
162
116
32.462963
0.849677
0.106864
0
0.019417
0
0
0.009677
0
0
0
0
0.006173
0
0
null
null
0
0.106796
null
null
0.009709
0
0
0
null
0
0
0
0
0
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
449284fbda913d2f987ab1f3fec5f66b05594a69
8,947
py
Python
patch_manager_sdk/api/patch_task/create_task_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
patch_manager_sdk/api/patch_task/create_task_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
patch_manager_sdk/api/patch_task/create_task_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: create_task.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf...
38.564655
690
0.761708
1,020
8,947
6.383333
0.152941
0.041775
0.04838
0.036554
0.604976
0.517432
0.475964
0.475964
0.453233
0.453233
0
0.032336
0.118587
8,947
231
691
38.731602
0.793305
0.053873
0
0.64
1
0.005
0.217268
0.177173
0
0
0
0
0
1
0
false
0
0.025
0
0.025
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
44945b8fe068508f54ab4d058e61f6309743743d
793
py
Python
federation/utils/text.py
hoseinfzad/federation
a73c6d8fbd3cc13b48109467072763c4ca082116
[ "BSD-3-Clause" ]
null
null
null
federation/utils/text.py
hoseinfzad/federation
a73c6d8fbd3cc13b48109467072763c4ca082116
[ "BSD-3-Clause" ]
null
null
null
federation/utils/text.py
hoseinfzad/federation
a73c6d8fbd3cc13b48109467072763c4ca082116
[ "BSD-3-Clause" ]
null
null
null
import re from urllib.parse import urlparse def decode_if_bytes(text): try: return text.decode("utf-8") except AttributeError: return text def encode_if_text(text): try: return bytes(text, encoding="utf-8") except TypeError: return text def get_path_from_url(url: st...
20.333333
93
0.630517
107
793
4.570093
0.551402
0.06135
0.05317
0
0
0
0
0
0
0
0
0.006579
0.233291
793
38
94
20.868421
0.797697
0.192938
0
0.190476
0
0
0.07438
0.046281
0
0
0
0
0
1
0.238095
false
0
0.095238
0
0.714286
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
4494dc6b8750d65bd4c6d07b2ca4bd79161d771c
4,909
py
Python
bin/tower_api.py
coreywan/splunk-alert_ansible-tower
b763f96bdeb6ece868688c004ec4813a4e724292
[ "MIT" ]
null
null
null
bin/tower_api.py
coreywan/splunk-alert_ansible-tower
b763f96bdeb6ece868688c004ec4813a4e724292
[ "MIT" ]
null
null
null
bin/tower_api.py
coreywan/splunk-alert_ansible-tower
b763f96bdeb6ece868688c004ec4813a4e724292
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys, json, os, datetime import logging, logging.handlers import splunk.entity as entity import splunk import requests # Tower Connect # # This script is used as wrapper to connect to Ansible Tower API. ## Original from: # __author__ = "Keith Rhea" # __email__ = "keithr@mindpointgroup.com" # ...
32.509934
130
0.731106
662
4,909
5.246224
0.308157
0.028794
0.011517
0.031097
0.193205
0.15894
0.15894
0.109415
0.109415
0.059315
0
0.002365
0.138521
4,909
150
131
32.726667
0.81887
0.23243
0
0.153061
0
0.010204
0.214401
0.024449
0
0
0
0
0
1
0.05102
false
0.091837
0.05102
0
0.132653
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
9222e01ae2604dcf2fab576e4fa11a7030f28fb2
15,359
py
Python
pymcdyes.py
pudquick/pyMCdyes
d70b66eb2600e2bf7163d8052ca99e3f283d1720
[ "MIT", "Unlicense" ]
5
2015-02-01T22:00:18.000Z
2021-12-27T22:28:53.000Z
pymcdyes.py
pudquick/pyMCdyes
d70b66eb2600e2bf7163d8052ca99e3f283d1720
[ "MIT", "Unlicense" ]
2
2015-01-26T15:58:24.000Z
2021-08-16T07:35:45.000Z
pymcdyes.py
pudquick/pyMCdyes
d70b66eb2600e2bf7163d8052ca99e3f283d1720
[ "MIT", "Unlicense" ]
1
2021-12-09T22:47:50.000Z
2021-12-09T22:47:50.000Z
import zipfile, sys, os.path, exceptions, time from collections import namedtuple from itertools import imap col = namedtuple('col', 'r g b') color_map, base_colors, base_mods = None, None, None try: from itertools import combinations_with_replacement except: # Replacement recipe for python 2.6 def combina...
39.687339
134
0.508887
2,269
15,359
3.235787
0.150286
0.059112
0.01471
0.015936
0.372651
0.293108
0.258513
0.229638
0.208799
0.198583
0
0.04241
0.350609
15,359
386
135
39.790155
0.693704
0.026043
0
0.334286
0
0
0.126263
0.005955
0.002857
0
0.000535
0
0
0
null
null
0
0.011429
null
null
0.122857
0
0
0
null
0
0
0
0
0
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
922ffc6a6a5958c698b10e6c368e92441dec83b3
37,876
py
Python
dataikuapi/dss/admin.py
dataiku/dataiku-api-client-python
80a295c9be7ae85fb738342f18d193a6c0637f96
[ "Apache-2.0" ]
28
2017-03-29T20:10:05.000Z
2022-02-14T01:08:37.000Z
dataikuapi/dss/admin.py
dataiku/dataiku-api-client-python
80a295c9be7ae85fb738342f18d193a6c0637f96
[ "Apache-2.0" ]
128
2016-07-28T15:14:22.000Z
2022-03-29T10:37:04.000Z
dataikuapi/dss/admin.py
dataiku/dataiku-api-client-python
80a295c9be7ae85fb738342f18d193a6c0637f96
[ "Apache-2.0" ]
10
2017-07-07T07:38:16.000Z
2022-02-24T20:24:06.000Z
from .future import DSSFuture import json, warnings class DSSConnectionInfo(dict): """A class holding read-only information about a connection. This class should not be created directly. Instead, use :meth:`DSSConnection.get_info` The main use case of this class is to retrieve the decrypted credentials fo...
37.612711
166
0.588473
4,467
37,876
4.869263
0.090665
0.034481
0.030481
0.028964
0.613719
0.558503
0.512252
0.457358
0.427015
0.408395
0
0.000252
0.267742
37,876
1,006
167
37.650099
0.783991
0.347634
0
0.427083
0
0
0.143328
0.040066
0
0
0
0
0
1
0.226563
false
0.010417
0.007813
0
0.432292
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
9230c70e3e7a07bb047762b1d0e90007f1ea9c2e
786
py
Python
app/myCarApp/migrations/0007_auto_20200312_1505.py
irokas/myCarApp
e87916463fe0defc22868fcb50cf89e8b5180de9
[ "MIT" ]
null
null
null
app/myCarApp/migrations/0007_auto_20200312_1505.py
irokas/myCarApp
e87916463fe0defc22868fcb50cf89e8b5180de9
[ "MIT" ]
1
2020-06-06T01:31:14.000Z
2020-06-06T01:31:14.000Z
app/myCarApp/migrations/0007_auto_20200312_1505.py
irokas/myCarApp
e87916463fe0defc22868fcb50cf89e8b5180de9
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2020-03-12 15:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('myCarApp', '0006_auto_20200312_1502'), ] operations = [ migrations.RemoveField( model_name='user', name='groups', ), ...
22.457143
48
0.524173
68
786
5.882353
0.529412
0.16
0.13
0.15
0.35
0.35
0.16
0
0
0
0
0.06
0.363868
786
34
49
23.117647
0.74
0.054707
0
0.535714
1
0
0.144399
0.031039
0
0
0
0
0
1
0
false
0
0.035714
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92323128c2e607997148b443dbcfa9a1f1bb8c24
4,083
py
Python
computations/plot_teacher_action.py
matthiasgruber/supervisor
f7ab5f5ee67170256033e62e61a5be3410fcf6a8
[ "MIT" ]
3
2021-08-08T20:22:13.000Z
2022-01-27T17:22:32.000Z
computations/plot_teacher_action.py
matthiasgruber/supervisor
f7ab5f5ee67170256033e62e61a5be3410fcf6a8
[ "MIT" ]
null
null
null
computations/plot_teacher_action.py
matthiasgruber/supervisor
f7ab5f5ee67170256033e62e61a5be3410fcf6a8
[ "MIT" ]
null
null
null
import numpy as np from skopt.space import Space from skopt.sampler import Grid import matplotlib.pyplot as plt import seaborn as sns def plot_teacher_action(): space = Space([(-1., 1.), (-1., 1.)]) grid = Grid(border="include", use_full_layout=False) action_manipulated = grid.generate(space.dimensions, 1...
43.903226
111
0.349988
413
4,083
3.37046
0.186441
0.04023
0.045259
0.022989
0.668822
0.608477
0.589799
0.538793
0.538793
0.538793
0
0.133792
0.502082
4,083
92
112
44.380435
0.55091
0
0
0.255814
0
0
0.046289
0.016654
0
0
0
0
0
1
0.011628
false
0
0.05814
0
0.069767
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
9233972eee2acd909d5c2793ebbe019c84c7ffde
4,724
py
Python
core/BuildRelationModel.py
jakelever/VERSE
79dbed53fe362ff7f0f57cd801fe2d5bb13adcce
[ "MIT" ]
14
2016-08-01T22:10:44.000Z
2020-03-28T07:24:23.000Z
core/BuildRelationModel.py
jakelever/VERSE
79dbed53fe362ff7f0f57cd801fe2d5bb13adcce
[ "MIT" ]
null
null
null
core/BuildRelationModel.py
jakelever/VERSE
79dbed53fe362ff7f0f57cd801fe2d5bb13adcce
[ "MIT" ]
6
2017-09-27T12:56:27.000Z
2020-04-27T17:02:56.000Z
import sys import fileinput import argparse import time import itertools import pickle import random import codecs from collections import defaultdict from sklearn import svm from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction import DictVectorizer from scipy.sparse import coo_ma...
35.787879
164
0.77011
525
4,724
6.899048
0.346667
0.013805
0.018774
0.015461
0.025953
0
0
0
0
0
0
0.013517
0.122989
4,724
131
165
36.061069
0.860729
0.050381
0
0.050505
0
0
0.132396
0.004912
0
0
0
0
0.020202
0
null
null
0
0.181818
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
9236cffd93466ddd47d27068c82af927208be77b
1,565
py
Python
Exercicios/ex045.py
MateusBarboza99/Python-03-
9c6df88aaa8ba83d385b92722ed1df5873df3a77
[ "MIT" ]
null
null
null
Exercicios/ex045.py
MateusBarboza99/Python-03-
9c6df88aaa8ba83d385b92722ed1df5873df3a77
[ "MIT" ]
null
null
null
Exercicios/ex045.py
MateusBarboza99/Python-03-
9c6df88aaa8ba83d385b92722ed1df5873df3a77
[ "MIT" ]
null
null
null
from random import randint from time import sleep itens = ('Pedra', 'Papel','Tesoura') computador = randint(0, 2) print('''\033[1;31mSuas opções\033[m: [ 0 ] PEDRA [ 1 ] PAPEL [ 2 ] TESOURA''') jogador = int(input('\033[1;34mQual é a sua Jogada?\033[m ')) print('\033[1;30mJO\033[m') sleep(1) print('\033[1;34mKEN\033[m'...
30.096154
91
0.61278
239
1,565
4.012552
0.209205
0.095933
0.140772
0.093848
0.588113
0.561001
0.474453
0.37122
0.290928
0.12513
0
0.183899
0.190415
1,565
51
92
30.686275
0.573007
0.044728
0
0.543478
0
0
0.450202
0.044415
0
0
0
0
0
1
0
false
0
0.043478
0
0.043478
0.434783
0
0
0
null
0
0
0
0
0
0
0
0
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
9242ae5288aa3a0bbc00979abb2bc983b3a1be9f
23,190
py
Python
scripts/parse_results2.py
pfritzgerald/nusassifi
6aa9da54fa7dc3155ff2863fda2507fdab532cf8
[ "BSD-3-Clause" ]
2
2018-01-14T01:51:38.000Z
2020-02-18T01:18:50.000Z
scripts/parse_results2.py
pfritzgerald/nusassifi
6aa9da54fa7dc3155ff2863fda2507fdab532cf8
[ "BSD-3-Clause" ]
null
null
null
scripts/parse_results2.py
pfritzgerald/nusassifi
6aa9da54fa7dc3155ff2863fda2507fdab532cf8
[ "BSD-3-Clause" ]
null
null
null
################################################################################### # Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions ...
40.260417
748
0.642216
3,387
23,190
4.262474
0.169767
0.006788
0.005611
0.015239
0.484796
0.431253
0.366489
0.348618
0.287941
0.260234
0
0.012505
0.175852
23,190
575
749
40.330435
0.742884
0.147434
0
0.326754
0
0.004386
0.338726
0.041946
0
0
0.000158
0
0
0
null
null
0
0.015351
null
null
0.057018
0
0
0
null
0
0
0
0
0
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
9244f5a095f254ac7e4c2d25e2cbeaaadf1125dc
699
py
Python
htm_rl/htm_rl/envs/biogwlab/wrappers/entity_map_provider.py
cog-isa/htm-rl
baf5b67a11283d37165bf6a29d6808a234d6d98c
[ "MIT" ]
1
2021-12-09T22:09:24.000Z
2021-12-09T22:09:24.000Z
htm_rl/htm_rl/envs/biogwlab/wrappers/entity_map_provider.py
cog-isa/htm-rl
baf5b67a11283d37165bf6a29d6808a234d6d98c
[ "MIT" ]
null
null
null
htm_rl/htm_rl/envs/biogwlab/wrappers/entity_map_provider.py
cog-isa/htm-rl
baf5b67a11283d37165bf6a29d6808a234d6d98c
[ "MIT" ]
1
2021-11-18T08:54:20.000Z
2021-11-18T08:54:20.000Z
import numpy as np from htm_rl.envs.biogwlab.environment import Environment from htm_rl.envs.biogwlab.module import EntityType from htm_rl.envs.env import Wrapper class EntityMapProvider(Wrapper): root_env: Environment entities: dict[EntityType, np.array] def __init__(self, entities: dict[EntityType, n...
27.96
73
0.692418
91
699
5.087912
0.384615
0.045356
0.058315
0.084233
0.215983
0
0
0
0
0
0
0
0.211731
699
25
74
27.96
0.84029
0
0
0
0
0
0.004286
0
0
0
0
0
0
1
0.117647
false
0
0.235294
0
0.588235
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
9257a1c304b032f3118a7fd64af508518963f0b0
885
py
Python
tests/unit/test_events.py
ChristChurchMayfair/ccm-assistant
3d9a922642f0275882c6829e54a6fbc940067f26
[ "MIT" ]
null
null
null
tests/unit/test_events.py
ChristChurchMayfair/ccm-assistant
3d9a922642f0275882c6829e54a6fbc940067f26
[ "MIT" ]
null
null
null
tests/unit/test_events.py
ChristChurchMayfair/ccm-assistant
3d9a922642f0275882c6829e54a6fbc940067f26
[ "MIT" ]
null
null
null
import unittest import events from tests.testing_utils import is_valid_response, ValidResponseObjectTester class TestEvents(unittest.TestCase): def test_on_launch(self): response = events.on_launch() self.assertTrue(is_valid_response(response)) response_tester = ValidResponseObjectTester(...
46.578947
117
0.657627
101
885
5.554455
0.544554
0.124777
0.122995
0.15508
0.185383
0.128342
0
0
0
0
0
0
0.267797
885
18
118
49.166667
0.865741
0
0
0
0
0
0.20678
0
0
0
0
0
0.333333
1
0.066667
false
0.066667
0.2
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
1
0
0
0
0
0
1
9265d277e73b871513f4356dfe33826899c0f173
184
py
Python
example/tasks/__init__.py
FranciscoCarbonell/flask-task
f83bce09b2c2cdaf4f6a3adad8e02a1cf20b451c
[ "MIT" ]
null
null
null
example/tasks/__init__.py
FranciscoCarbonell/flask-task
f83bce09b2c2cdaf4f6a3adad8e02a1cf20b451c
[ "MIT" ]
null
null
null
example/tasks/__init__.py
FranciscoCarbonell/flask-task
f83bce09b2c2cdaf4f6a3adad8e02a1cf20b451c
[ "MIT" ]
null
null
null
from flask_task import Task from models import * import time task = Task() print(task) @task.decorator def proceso(): users = Users.query.all() print(users) time.sleep(7)
15.333333
29
0.695652
27
184
4.703704
0.555556
0.125984
0
0
0
0
0
0
0
0
0
0.006711
0.190217
184
12
30
15.333333
0.845638
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.4
0.2
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
926bc9490d2a62700dd18a83cfd63f2029975aef
1,296
py
Python
_cihub/auth.py
gocept/cihub
fe61bd2f78bb05fff47d9c2258f212247e9f01b9
[ "BSD-3-Clause" ]
1
2019-08-20T11:44:45.000Z
2019-08-20T11:44:45.000Z
_cihub/auth.py
gocept/cihub
fe61bd2f78bb05fff47d9c2258f212247e9f01b9
[ "BSD-3-Clause" ]
10
2019-08-13T06:19:08.000Z
2021-08-25T12:09:28.000Z
_cihub/auth.py
gocept/cihub
fe61bd2f78bb05fff47d9c2258f212247e9f01b9
[ "BSD-3-Clause" ]
null
null
null
from _cihub.config import config from starlette.authentication import AuthCredentials from starlette.authentication import AuthenticationBackend from starlette.authentication import AuthenticationError from starlette.authentication import SimpleUser from starlette.responses import PlainTextResponse import base64 import...
37.028571
77
0.705247
121
1,296
7.512397
0.495868
0.071507
0.118812
0.145215
0
0
0
0
0
0
0
0.008763
0.207562
1,296
34
78
38.117647
0.876339
0
0
0
0
0
0.118827
0
0
0
0
0
0
1
0.035714
false
0.071429
0.285714
0.035714
0.464286
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
926d46283cec37988de4c03d710f601335cac972
670
py
Python
first.py
HelloEI/accountbook.py
384803e53b650b84085751bf3c15b06e5449289e
[ "Apache-2.0" ]
5
2016-04-15T06:14:12.000Z
2020-08-26T12:05:28.000Z
first.py
HelloEI/accountbook.py
384803e53b650b84085751bf3c15b06e5449289e
[ "Apache-2.0" ]
2
2020-10-19T03:52:31.000Z
2020-10-19T04:24:09.000Z
first.py
HelloEI/accountbook.py
384803e53b650b84085751bf3c15b06e5449289e
[ "Apache-2.0" ]
5
2016-05-05T01:49:13.000Z
2021-10-02T12:23:20.000Z
#!/usr/bin/env python3 import mysql.connector class Student(object): def aMethod(name): print("hello world!,my name is %s"%name) def doubleNum(number,n): total = 0 while n > 1: total = ( number * number ) if total==0 else (total * number) n = n - 1 return total def getData(): conn = mysql.conne...
20.30303
102
0.671642
98
670
4.561224
0.571429
0.06264
0
0
0
0
0
0
0
0
0
0.023339
0.168657
670
32
103
20.9375
0.779174
0.085075
0
0
0
0
0.222772
0.037954
0
0
0
0
0
1
0.176471
false
0.058824
0.058824
0
0.352941
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
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
926f62ad15520900ffe9ee3c5f181f51989849ce
3,346
py
Python
src/oci/oda/models/resource_type_metadata.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/oda/models/resource_type_metadata.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/oda/models/resource_type_metadata.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
32.803922
245
0.671847
393
3,346
5.547074
0.318066
0.110092
0.119266
0.055046
0.431193
0.298165
0.208257
0.208257
0.208257
0.208257
0
0.007264
0.259414
3,346
101
246
33.128713
0.872478
0.538852
0
0.057143
0
0
0.074045
0.017516
0
0
0
0
0
1
0.228571
false
0
0.057143
0.057143
0.485714
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
92715004559307209d12d1ee245fa5a1f61f4563
3,233
py
Python
project/core/renderer.py
MarkKoz/code-jam-3
d6d441ed0954a752a20ff28a9800c45bff185a7c
[ "MIT" ]
1
2018-11-08T05:13:07.000Z
2018-11-08T05:13:07.000Z
project/core/renderer.py
MarkKoz/code-jam-3
d6d441ed0954a752a20ff28a9800c45bff185a7c
[ "MIT" ]
null
null
null
project/core/renderer.py
MarkKoz/code-jam-3
d6d441ed0954a752a20ff28a9800c45bff185a7c
[ "MIT" ]
1
2020-01-17T23:41:10.000Z
2020-01-17T23:41:10.000Z
import pygame import pyscroll from project.entities.player import Player from .constants import FONTS, SCREEN_SCALE from .world import World class Renderer: def __init__(self, width: int, height: int): self.screen: pygame.Surface = None self.surface: pygame.Surface = None self._set_screen...
39.91358
101
0.619548
409
3,233
4.735941
0.278729
0.033041
0.061951
0.026329
0.162106
0.140423
0.071244
0.037171
0
0
0
0.010947
0.265388
3,233
80
102
40.4125
0.804632
0.064027
0
0.064516
0
0
0.053696
0.006961
0
0
0
0.0125
0
1
0.129032
false
0
0.080645
0
0.225806
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
927ab956bcff28b9d0f5bae8c4584f546303628a
312
py
Python
catalog/urls.py
edwildson/djangosecommerce
22541d24af52cd6f2d51196116a101583389b945
[ "CC0-1.0" ]
1
2021-11-05T20:35:00.000Z
2021-11-05T20:35:00.000Z
catalog/urls.py
edwildson/djangosecommerce
22541d24af52cd6f2d51196116a101583389b945
[ "CC0-1.0" ]
null
null
null
catalog/urls.py
edwildson/djangosecommerce
22541d24af52cd6f2d51196116a101583389b945
[ "CC0-1.0" ]
null
null
null
from django.conf.urls import url, include from django.contrib import admin from . import views urlpatterns = [ url(r'^$', views.product_list, name='product_list'), url(r'^(?P<slug>[\w_-]+)$', views.category, name='category'), url(r'^produto/(?P<slug>[\w_-]+)$', views.product, name='product'), ]
28.363636
72
0.647436
43
312
4.604651
0.465116
0.060606
0.060606
0.111111
0
0
0
0
0
0
0
0
0.134615
312
10
73
31.2
0.733333
0
0
0
0
0
0.240385
0.086538
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
9284a9ecb8298c0c4ecebb8842fdeeed07ddd657
1,131
py
Python
source/code/elm327/358-turn-signal.py
wosk/nissan-leaf-obd-manual
ddc9fcc4de04e124da7fd66034793b047f82007e
[ "CC-BY-4.0" ]
4
2021-02-11T19:50:54.000Z
2022-03-11T23:03:39.000Z
source/code/elm327/358-turn-signal.py
wosk/nissan-leaf-obd-manual
ddc9fcc4de04e124da7fd66034793b047f82007e
[ "CC-BY-4.0" ]
2
2022-02-10T09:11:25.000Z
2022-03-10T04:42:58.000Z
source/code/elm327/358-turn-signal.py
wosk/nissan-leaf-obd-manual
ddc9fcc4de04e124da7fd66034793b047f82007e
[ "CC-BY-4.0" ]
2
2021-12-20T10:07:36.000Z
2022-02-09T21:40:05.000Z
#!/usr/bin/env python """358 turn signal Query the turn signal status of a Nissan Leaf using an ELM327 compatible diagnostic tool. Tested on the following vehicles: * AZE0 """ import serial elm = serial.Serial("/dev/ttyUSB0", 38400, timeout=5) elm.write(b"ATZ\r") # reset all print(elm.read_until(b"\r\r>").decod...
22.62
83
0.679045
199
1,131
3.81407
0.407035
0.094862
0.106719
0.201581
0.411067
0.411067
0.411067
0.411067
0.376812
0.376812
0
0.032389
0.126437
1,131
49
84
23.081633
0.73583
0.301503
0
0.32
0
0
0.170543
0
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0.4
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92855cd09cbae920e6ca82d73cc218f2e0af8300
537
py
Python
snake/constants.py
ajutras/plexsnake
98f59310d353ba0ed941b2c5472af423a58ecb28
[ "MIT" ]
null
null
null
snake/constants.py
ajutras/plexsnake
98f59310d353ba0ed941b2c5472af423a58ecb28
[ "MIT" ]
null
null
null
snake/constants.py
ajutras/plexsnake
98f59310d353ba0ed941b2c5472af423a58ecb28
[ "MIT" ]
null
null
null
from enum import Enum from typing import Type, Union from plexapi.library import MovieSection, MusicSection, PhotoSection, ShowSection SECTION_TYPE = Union[Type[MovieSection], Type[MusicSection], Type[PhotoSection], Type[ShowSection]] VIDEO_EXTENSIONS = ["mkv", "mp4", "avi", "mpeg", "flv", "webm", "ogv", "gifv", "m...
24.409091
106
0.581006
56
537
5.482143
0.696429
0.058632
0
0
0
0
0
0
0
0
0
0.004577
0.18622
537
21
107
25.571429
0.697941
0
0
0
0
0
0.108007
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.769231
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
92877a4e0fd73198db3cb66d0a46c4a95443b8e1
777
py
Python
ex075b.py
wtomalves/exerciciopython
5c239521830cb8d092c7ff8646ff1f38c605509d
[ "MIT" ]
1
2020-09-04T22:36:21.000Z
2020-09-04T22:36:21.000Z
ex075b.py
wtomalves/exerciciopython
5c239521830cb8d092c7ff8646ff1f38c605509d
[ "MIT" ]
null
null
null
ex075b.py
wtomalves/exerciciopython
5c239521830cb8d092c7ff8646ff1f38c605509d
[ "MIT" ]
null
null
null
núm = (int(input('Digite um número: ')), \ int(input('Digite outro número: ')), \ int(input('Digite mais um número: ')),\ int(input('Digite o último número: '))) print(f'Você digitou os valores {núm}') print(f'O valor 9 apareceu {núm.count(9)} vezes!') if 3 in núm: print(f'O valor 3 ap...
35.318182
87
0.646075
125
777
4.016
0.52
0.059761
0.111554
0.119522
0.14741
0
0
0
0
0
0
0.017886
0.208494
777
22
88
35.318182
0.798374
0.033462
0
0
0
0
0.510242
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
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
9291f9e3c9139922e176c7d9f26cb5dc54b08505
8,162
py
Python
laLiga.py
mlavador/Practica1TD
9ea03e4fe94482d2c4f436903eab6a26984b5a2f
[ "MIT" ]
null
null
null
laLiga.py
mlavador/Practica1TD
9ea03e4fe94482d2c4f436903eab6a26984b5a2f
[ "MIT" ]
null
null
null
laLiga.py
mlavador/Practica1TD
9ea03e4fe94482d2c4f436903eab6a26984b5a2f
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.firefox import options from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.firefox.options import Options from selenium.webd...
36.932127
136
0.636976
1,022
8,162
4.887476
0.30137
0.024024
0.029429
0.036436
0.354154
0.264865
0.233033
0.233033
0.201802
0.201802
0
0.019945
0.244425
8,162
221
137
36.932127
0.790011
0.076207
0
0.246914
0
0.012346
0.208143
0.100779
0
0
0
0
0
1
0.067901
false
0.067901
0.080247
0
0.197531
0.024691
0
0
0
null
0
0
0
0
0
0
0
0
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
9296387e3aae32eda6587a5641e01948d8add307
4,922
py
Python
examples/utility_scripts/make_h5sig.py
bendichter/api-python
52e97e7642021913ae6505ab63b7cc77d2622d76
[ "BSD-3-Clause" ]
32
2015-08-21T14:14:44.000Z
2017-08-31T09:33:14.000Z
examples/utility_scripts/make_h5sig.py
bendichter/api-python
52e97e7642021913ae6505ab63b7cc77d2622d76
[ "BSD-3-Clause" ]
24
2015-11-18T11:17:04.000Z
2019-12-31T19:44:18.000Z
examples/utility_scripts/make_h5sig.py
bendichter/api-python
52e97e7642021913ae6505ab63b7cc77d2622d76
[ "BSD-3-Clause" ]
18
2015-10-07T03:04:41.000Z
2022-03-11T18:52:20.000Z
# This script runs utility 'nwb.h5diffsig' to generate a text summary of # hdf5 (nwb) file contents which can be used to compare one hdf5 to another. import sys import glob import os, fnmatch from subprocess import check_output from sys import version_info def error_exit(msg): if msg: print(msg) prin...
39.693548
101
0.648923
693
4,922
4.431457
0.249639
0.064474
0.04396
0.054705
0.18691
0.163465
0.147183
0.132856
0.082058
0
0
0.008284
0.23974
4,922
123
102
40.01626
0.8124
0.202763
0
0.101124
1
0
0.171619
0
0
0
0
0
0.022472
1
0.078652
false
0
0.05618
0
0.168539
0.146067
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
92967410ac85b4cb291f167e2e476389e8f4926e
808
py
Python
habitrac/habits/migrations/0002_auto_20210224_2212.py
IgnisDa/habitrac
0b5f6f1f4a6659c4cce49aacae54cdb0e74af67a
[ "Apache-2.0" ]
null
null
null
habitrac/habits/migrations/0002_auto_20210224_2212.py
IgnisDa/habitrac
0b5f6f1f4a6659c4cce49aacae54cdb0e74af67a
[ "Apache-2.0" ]
null
null
null
habitrac/habits/migrations/0002_auto_20210224_2212.py
IgnisDa/habitrac
0b5f6f1f4a6659c4cce49aacae54cdb0e74af67a
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1 on 2021-02-24 16:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('habits', '0001_initial'), ] operations = [ migrations.AddField( model_name='dailyhabit', name='name_slug', ...
31.076923
150
0.622525
94
808
5.234043
0.542553
0.073171
0.093496
0.109756
0.556911
0.556911
0.556911
0.398374
0.398374
0.398374
0
0.040816
0.272277
808
25
151
32.32
0.795918
0.053218
0
0.421053
1
0
0.224115
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92a1e55fe8d92d294d02616fe785cccd9571b8ae
2,144
py
Python
zeex/core/views/actions/analyze.py
zbarge/dbtrix
1321978a929586a99bdddf470d970a4aca7e594c
[ "MIT" ]
10
2016-12-07T15:54:02.000Z
2021-07-24T00:31:39.000Z
zeex/core/views/actions/analyze.py
zbarge/dbtrix
1321978a929586a99bdddf470d970a4aca7e594c
[ "MIT" ]
86
2016-12-12T03:28:19.000Z
2017-01-13T18:41:07.000Z
zeex/core/views/actions/analyze.py
zbarge/dbtrix
1321978a929586a99bdddf470d970a4aca7e594c
[ "MIT" ]
5
2016-12-07T23:53:59.000Z
2021-01-25T10:14:57.000Z
""" MIT License Copyright (c) 2016 Zeke Barge Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
37.614035
90
0.758862
296
2,144
5.425676
0.5
0.054795
0.027397
0
0
0
0
0
0
0
0
0.002261
0.174907
2,144
56
91
38.285714
0.905596
0.518657
0
0
0
0
0.009785
0
0
0
0
0.017857
0
1
0.173913
false
0
0.173913
0.043478
0.434783
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
92a355e76f2f607c3e794d883f4291d76b4e72fb
352
py
Python
app/views/reports.py
jubbp/maker-hub
93bde3bcde7869c8454613061c50c0dcb3d2f573
[ "MIT" ]
4
2021-09-28T04:55:16.000Z
2021-12-11T03:33:01.000Z
app/views/reports.py
jubbp/maker-hub
93bde3bcde7869c8454613061c50c0dcb3d2f573
[ "MIT" ]
92
2021-03-18T07:26:43.000Z
2022-03-29T21:25:38.000Z
app/views/reports.py
jubbp/maker-hub
93bde3bcde7869c8454613061c50c0dcb3d2f573
[ "MIT" ]
4
2021-02-27T16:31:41.000Z
2021-07-25T02:20:09.000Z
import fastapi from fastapi_chameleon import template from starlette.requests import Request from app.viewmodels.reports.overview_viewmodel import OverviewViewModel router = fastapi.APIRouter() @router.get("/reports") @template() async def overview(request: Request): vm = OverviewViewModel(request) await vm...
22
71
0.78125
42
352
6.47619
0.595238
0
0
0
0
0
0
0
0
0
0
0
0.130682
352
15
72
23.466667
0.888889
0
0
0
0
0
0.022727
0
0
0
0
0
0
1
0
false
0
0.363636
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
92a65becbe0852ddc814ae58266014dcc0a286d8
870
py
Python
Dijkstra's_Shortest_Path/Python/paveldedik/dijkstra.py
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
1,184
2015-01-01T14:11:29.000Z
2022-03-21T19:40:47.000Z
Dijkstra's_Shortest_Path/Python/paveldedik/dijkstra.py
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
89
2015-01-01T15:49:17.000Z
2021-12-05T19:11:38.000Z
Dijkstra's_Shortest_Path/Python/paveldedik/dijkstra.py
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
388
2015-01-02T03:26:17.000Z
2022-03-24T14:36:10.000Z
def initialize(G, s): """Initialize graph G and vertex s.""" V, E = G d = {v: float('inf') for v in V} p = {v: None for v in V} d[s] = 0 return d, p def dijkstra(G, w, s): """Dijkstra's algorithm for shortest-path search.""" d, p = initialize(G, s) V, E = G S = set(V) while...
28.064516
74
0.412644
149
870
2.355705
0.33557
0.022792
0.068376
0.022792
0.039886
0.039886
0.039886
0
0
0
0
0.010582
0.348276
870
30
75
29
0.608466
0.089655
0
0.166667
0
0
0.04878
0
0
0
0
0
0
0
null
null
0
0
null
null
0.041667
0
0
0
null
0
0
0
0
0
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
92acab8b469ae3da5790c1501f7438408dc8a417
501
py
Python
tests/trac/test-trac-0132.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
123
2015-01-12T06:43:22.000Z
2022-03-20T18:06:46.000Z
tests/trac/test-trac-0132.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
103
2015-01-08T18:35:57.000Z
2022-01-18T01:44:14.000Z
tests/trac/test-trac-0132.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
54
2015-02-15T17:12:00.000Z
2022-03-07T23:02:32.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import logging if __name__ == '__main__': logging.basicConfig() _log = logging.getLogger(__name__) import sys import pyxb import unittest class TestTrac0132 (unittest.TestCase): message = 'bad character \u2620' def testDecode (self): ...
23.857143
53
0.680639
60
501
5.233333
0.616667
0.038217
0.063694
0
0
0
0
0
0
0
0
0.032258
0.195609
501
20
54
25.05
0.746898
0.041916
0
0.125
0
0
0.075314
0
0
0
0
0
0.0625
1
0.0625
false
0
0.3125
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
92ad8cf0bdac7265fa2eb7cf4335a0ecc102cba0
1,454
py
Python
lib/pics.py
MuffinAmor/nellie
eace65ac7d7d1730c131345e6e5e5b7d39b078ef
[ "MIT" ]
1
2022-03-12T17:34:05.000Z
2022-03-12T17:34:05.000Z
lib/pics.py
MuffinAmor/nellie
eace65ac7d7d1730c131345e6e5e5b7d39b078ef
[ "MIT" ]
null
null
null
lib/pics.py
MuffinAmor/nellie
eace65ac7d7d1730c131345e6e5e5b7d39b078ef
[ "MIT" ]
null
null
null
import json import os import sys def create(): if not os.path.isfile('pics'): try: os.mkdir('pics') except: pass def add_pic(token, name, author_id: str, time: str, datas): try: create() if not os.path.isfile("pics/{}.json".format(token...
27.433962
73
0.522696
187
1,454
3.962567
0.326203
0.08637
0.151147
0.205128
0.465587
0.465587
0.42915
0.336032
0.291498
0.291498
0
0.004069
0.323934
1,454
52
74
27.961538
0.749746
0
0
0.357143
0
0
0.106277
0
0
0
0
0
0
1
0.119048
false
0.02381
0.071429
0
0.285714
0.02381
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
92b59cd9d72cfaa0ddd8cd3b3f2fc437adb2aeb6
1,915
py
Python
player.py
tterava/PokerTrainingFramework
00359c9a6f90d406b2bb307b3ac390255a26aef2
[ "MIT" ]
5
2017-10-26T04:38:03.000Z
2018-09-28T10:48:55.000Z
player.py
tterava/PokerTrainingFramework
00359c9a6f90d406b2bb307b3ac390255a26aef2
[ "MIT" ]
null
null
null
player.py
tterava/PokerTrainingFramework
00359c9a6f90d406b2bb307b3ac390255a26aef2
[ "MIT" ]
3
2017-09-17T18:53:55.000Z
2019-01-30T20:38:02.000Z
''' Created on Jan 26, 2017 @author: tommi ''' from enum import Enum from handeval import pcg_brand class Action(Enum): CHECKFOLD = 1 CHECKCALL = 2 BETRAISE = 3 class Street(Enum): PREFLOP = 0 FLOP = 3 TURN = 4 RIVER = 5 SHOWDOWN = 6 class PlayerState: ST...
25.197368
111
0.51906
208
1,915
4.673077
0.399038
0.101852
0.040123
0.030864
0.061728
0.061728
0
0
0
0
0
0.03223
0.400522
1,915
76
112
25.197368
0.81446
0.080418
0
0.105263
0
0
0
0
0
0
0
0
0
1
0.157895
false
0.017544
0.035088
0.017544
0.526316
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
92b90bc09ae5eb5ee51472d4d68ff7145fcf2fe4
975
py
Python
src/usecases/update/update_engagement.py
lokaimoma/BLOGG
c8d56e28e13a30951caf0e123c27144b435231b4
[ "MIT" ]
13
2021-07-03T01:06:54.000Z
2022-03-24T12:19:56.000Z
src/usecases/update/update_engagement.py
lokaimoma/BLOGG
c8d56e28e13a30951caf0e123c27144b435231b4
[ "MIT" ]
1
2021-07-03T00:06:20.000Z
2021-07-03T00:06:20.000Z
src/usecases/update/update_engagement.py
lokaimoma/BLOGG
c8d56e28e13a30951caf0e123c27144b435231b4
[ "MIT" ]
2
2021-07-10T13:59:21.000Z
2022-02-24T18:09:25.000Z
from typing import Callable from sqlalchemy import select from sqlalchemy.ext.asyncio import AsyncSession from src.domain_logic.engagement_domain import EngagementDomain from src.model import get_database_session from src.model.engagement import Engagement async def update_engagement(engagement_domain: EngagementDo...
39
93
0.665641
104
975
6.067308
0.461538
0.126783
0.038035
0
0
0
0
0
0
0
0
0
0.276923
975
24
94
40.625
0.895035
0.021538
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.315789
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2b7c1b186a3759a86d7e38790e51f9374f25c4d5
285
py
Python
api/kubeops_api/migrations/0021_merge_20190923_0906.py
240325184/KubeOperator
777774050b236abf938a5a9ef505124c26e4916e
[ "Apache-2.0" ]
3
2019-11-29T03:49:08.000Z
2020-07-29T02:52:51.000Z
api/kubeops_api/migrations/0021_merge_20190923_0906.py
240325184/KubeOperator
777774050b236abf938a5a9ef505124c26e4916e
[ "Apache-2.0" ]
27
2021-05-05T02:51:26.000Z
2022-01-04T21:30:21.000Z
api/kubeops_api/migrations/0021_merge_20190923_0906.py
240325184/KubeOperator
777774050b236abf938a5a9ef505124c26e4916e
[ "Apache-2.0" ]
1
2020-11-22T01:15:05.000Z
2020-11-22T01:15:05.000Z
# Generated by Django 2.1.2 on 2019-09-23 09:06 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('kubeops_api', '0019_deployexecution_params'), ('kubeops_api', '0020_auto_20190920_0946'), ] operations = [ ]
19
55
0.663158
34
285
5.352941
0.794118
0.10989
0
0
0
0
0
0
0
0
0
0.157658
0.221053
285
14
56
20.357143
0.662162
0.157895
0
0
1
0
0.302521
0.210084
0
0
0
0
0
1
0
false
0
0.125
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2b7efb9037d90e5f834e5bc06fc125f068a356e8
2,409
py
Python
datastructures/doubly_linked_list/doubly_linked_list.py
abhishekmulay/ds-algo-study
5b0ef8d773e147e9916ec0d7a7b8a3bf5776252e
[ "MIT" ]
null
null
null
datastructures/doubly_linked_list/doubly_linked_list.py
abhishekmulay/ds-algo-study
5b0ef8d773e147e9916ec0d7a7b8a3bf5776252e
[ "MIT" ]
null
null
null
datastructures/doubly_linked_list/doubly_linked_list.py
abhishekmulay/ds-algo-study
5b0ef8d773e147e9916ec0d7a7b8a3bf5776252e
[ "MIT" ]
null
null
null
class Node(object): def __init__(self, data, next, prev): self.data = data self.next = next self.previous = prev def get_data(self): return self.data def set_data(self, data): self.data = data def get_next(self): return self.next def set_next(self,...
24.581633
83
0.541719
308
2,409
4.084416
0.191558
0.063593
0.039746
0.033386
0.185215
0.118442
0.094595
0.094595
0.052464
0
0
0.004479
0.351183
2,409
97
84
24.835052
0.800384
0.096721
0
0.285714
0
0
0.022591
0
0
0
0
0
0
0
null
null
0
0
null
null
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2b82af115d374712a8e32833be52849e47279b46
2,372
py
Python
tests/utils/require.py
AmyYH/phantoscope
11e32316bf131c7078c736665daebd6ac109cb04
[ "Apache-2.0" ]
null
null
null
tests/utils/require.py
AmyYH/phantoscope
11e32316bf131c7078c736665daebd6ac109cb04
[ "Apache-2.0" ]
null
null
null
tests/utils/require.py
AmyYH/phantoscope
11e32316bf131c7078c736665daebd6ac109cb04
[ "Apache-2.0" ]
null
null
null
import time from functools import wraps from operators.operator import register_operators, delete_operators, operator_detail from pipeline.pipeline import create_pipeline, delete_pipeline from application.application import new_application, delete_application def pre_operator(name="pytest_op_1", type="encoder", ...
30.025316
84
0.616779
253
2,372
5.628459
0.225296
0.070225
0.05618
0.073736
0.301966
0.250702
0.250702
0.170646
0.170646
0.075843
0
0.009308
0.275295
2,372
78
85
30.410256
0.819081
0.013491
0
0.517241
0
0
0.085971
0.013259
0
0
0
0
0
1
0.258621
false
0
0.086207
0
0.517241
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
2b9106be6077553b816d571071228cc566d6b2f7
614
py
Python
class9/ex4/mytest/world.py
patrebert/pynet_cert
b82cce3ddb20d9e4abc89d74579ddeb3513bdf55
[ "Apache-2.0" ]
null
null
null
class9/ex4/mytest/world.py
patrebert/pynet_cert
b82cce3ddb20d9e4abc89d74579ddeb3513bdf55
[ "Apache-2.0" ]
null
null
null
class9/ex4/mytest/world.py
patrebert/pynet_cert
b82cce3ddb20d9e4abc89d74579ddeb3513bdf55
[ "Apache-2.0" ]
null
null
null
def func3(): print "world.py func3" class MyClass: def __init__(self,arg1, arg2, arg3): self.arg1 = arg1 self.arg2 = arg2 self.arg3 = arg3 def hello(self): print "hello" print " %s %s %s" %(self.arg1,self.arg2,self.arg3) def not_hello(self): print "no...
19.1875
59
0.543974
84
614
3.785714
0.27381
0.100629
0.113208
0.075472
0.471698
0.471698
0.471698
0.471698
0.471698
0.471698
0
0.054795
0.286645
614
31
60
19.806452
0.671233
0
0
0.333333
0
0
0.100977
0
0
0
0
0
0
0
null
null
0
0
null
null
0.208333
0
0
0
null
0
0
0
0
0
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
2b91c3ea3579361a8659b6facd3cc3c85c0c5647
7,836
py
Python
tests/CallejeroTestCase.py
santiagocastellano/normalizador-amba-Python3
a2603660f1b5bae3a72d01a32d0b9e147e720bff
[ "MIT" ]
4
2019-01-11T02:56:42.000Z
2021-05-26T18:52:02.000Z
tests/CallejeroTestCase.py
santiagocastellano/normalizador-amba-Python3
a2603660f1b5bae3a72d01a32d0b9e147e720bff
[ "MIT" ]
1
2019-02-15T14:38:10.000Z
2019-02-15T14:38:10.000Z
tests/CallejeroTestCase.py
santiagocastellano/normalizador-amba-Python3
a2603660f1b5bae3a72d01a32d0b9e147e720bff
[ "MIT" ]
6
2018-06-07T07:57:51.000Z
2020-11-11T20:06:01.000Z
# coding: UTF-8 import unittest from usig_normalizador_amba.Callejero import Callejero from usig_normalizador_amba.Partido import Partido from usig_normalizador_amba.Calle import Calle from tests.test_commons import cargarCallejeroEstatico class CallejeroTestCase(unittest.TestCase): p = Partido('jose_c_paz', '...
49.910828
124
0.674834
993
7,836
5.189325
0.178248
0.024064
0.102465
0.081118
0.624491
0.531535
0.486901
0.47254
0.450029
0.392199
0
0.042017
0.195125
7,836
156
125
50.230769
0.774061
0.007657
0
0.346457
0
0
0.222694
0.003345
0
0
0
0
0.425197
1
0.165354
false
0
0.03937
0
0.244094
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
2b943bb6d649f4c5b8452a7600c4d8cd02908f19
174
py
Python
1080.py
Juniorr452/URI-Online-Judge
8bbcaa055d4db37a5d10f8d36ff749f96680fc67
[ "Unlicense" ]
null
null
null
1080.py
Juniorr452/URI-Online-Judge
8bbcaa055d4db37a5d10f8d36ff749f96680fc67
[ "Unlicense" ]
null
null
null
1080.py
Juniorr452/URI-Online-Judge
8bbcaa055d4db37a5d10f8d36ff749f96680fc67
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- maior = -1 index_maior = -1 for i in range(1, 101): n = int(input()) if n > maior: maior = n index_maior = i print(maior) print(index_maior)
12.428571
23
0.597701
30
174
3.366667
0.533333
0.29703
0
0
0
0
0
0
0
0
0
0.052239
0.229885
174
13
24
13.384615
0.701493
0.12069
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.222222
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
2b95a11348b5c82d433546ea5fa563ba02bbe766
360
py
Python
synapse/tests/test_lookup_iso3166.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/tests/test_lookup_iso3166.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
4
2017-10-03T21:50:40.000Z
2017-11-20T15:49:38.000Z
synapse/tests/test_lookup_iso3166.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
from synapse.tests.common import * import synapse.lookup.iso3166 as s_l_country class CountryLookTest(SynTest): def test_lookup_countries(self): self.eq(s_l_country.country2iso.get('united states of america'), 'us') self.eq(s_l_country.country2iso.get('mexico'), 'mx') self.eq(s_l_country...
30
78
0.727778
51
360
4.941176
0.588235
0.031746
0.142857
0.095238
0.345238
0.345238
0.345238
0
0
0
0
0.022801
0.147222
360
11
79
32.727273
0.798046
0
0
0
0
0
0.127778
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2b97532eac9b75f66e2c180e772a85b0a2275744
7,777
py
Python
Task_6_Website_Testing/seleniumscript/demoscript.py
shwetathikekar/Sparks_Foundation_Task_6
20f8c9be4ab536c533af083015125eeb52bfdb73
[ "BSD-3-Clause" ]
null
null
null
Task_6_Website_Testing/seleniumscript/demoscript.py
shwetathikekar/Sparks_Foundation_Task_6
20f8c9be4ab536c533af083015125eeb52bfdb73
[ "BSD-3-Clause" ]
null
null
null
Task_6_Website_Testing/seleniumscript/demoscript.py
shwetathikekar/Sparks_Foundation_Task_6
20f8c9be4ab536c533af083015125eeb52bfdb73
[ "BSD-3-Clause" ]
null
null
null
from selenium import webdriver from selenium.common.exceptions import NoSuchElementException from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import Select import time driver = webdriver.Chrome(ChromeDriverManager().install()) driv...
30.984064
125
0.710171
1,110
7,777
4.889189
0.169369
0.086604
0.147227
0.164548
0.683619
0.611388
0.526073
0.491432
0.477796
0.462687
0
0.017501
0.155073
7,777
250
126
31.108
0.808401
0.056063
0
0.486339
0
0.016393
0.334926
0.029616
0
0
0
0
0
1
0
false
0
0.032787
0
0.032787
0.262295
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
2ba2ae7f65a6c1b2131f05707b8b68a10964c292
1,432
py
Python
dbaas/drivers/factory.py
jaeko44/python_dbaas
4fafa4ad70200fec1436c326c751761922ec9fa8
[ "BSD-3-Clause" ]
null
null
null
dbaas/drivers/factory.py
jaeko44/python_dbaas
4fafa4ad70200fec1436c326c751761922ec9fa8
[ "BSD-3-Clause" ]
null
null
null
dbaas/drivers/factory.py
jaeko44/python_dbaas
4fafa4ad70200fec1436c326c751761922ec9fa8
[ "BSD-3-Clause" ]
1
2017-07-02T08:46:17.000Z
2017-07-02T08:46:17.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django.utils.translation import ugettext_lazy as _ import re __all__ = ['DriverFactory'] class DriverFactory(object): @classmethod def is_driver_available(cls, name): try: cls.get_driver_class(name) ...
30.468085
93
0.647346
157
1,432
5.687898
0.369427
0.100784
0.035834
0.040314
0
0
0
0
0
0
0
0.00096
0.272346
1,432
46
94
31.130435
0.856046
0.03771
0
0.085714
0
0
0.052364
0
0
0
0
0.021739
0
1
0.085714
false
0
0.2
0
0.514286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
2ba6252815a9e7af063eb544b38007c502f9003b
847
py
Python
tests/test_mysql_connection_pool.py
maypimentel/mysql_connection_pool
a6d193ee62d24fbc9aec449dd3bc9bf00375927d
[ "MIT" ]
null
null
null
tests/test_mysql_connection_pool.py
maypimentel/mysql_connection_pool
a6d193ee62d24fbc9aec449dd3bc9bf00375927d
[ "MIT" ]
null
null
null
tests/test_mysql_connection_pool.py
maypimentel/mysql_connection_pool
a6d193ee62d24fbc9aec449dd3bc9bf00375927d
[ "MIT" ]
null
null
null
import pytest from mysql_connection_pool import MysqlPool from mysql.connector import MySQLConnection from mysql.connector.errors import PoolError class TestMysqlConnectionPool: def setup_method(self, method): self.pool = MysqlPool(pool_size=2, pool_max_size=2) def test_cnx_type(self): cnx = ...
31.37037
62
0.68477
104
847
5.403846
0.413462
0.085409
0.097865
0.186833
0.099644
0.099644
0
0
0
0
0
0.010654
0.224321
847
26
63
32.576923
0.844749
0
0
0.095238
0
0
0.048406
0
0
0
0
0
0.095238
1
0.190476
false
0
0.190476
0
0.428571
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
2bab0829721480eeda72f3c77616a3357f6dd591
361
py
Python
invenio_rdm_records/records/__init__.py
kprzerwa/invenio-rdm-records
d5919b5f1b5f453074fcb2b63929a60bfcb240ed
[ "MIT" ]
null
null
null
invenio_rdm_records/records/__init__.py
kprzerwa/invenio-rdm-records
d5919b5f1b5f453074fcb2b63929a60bfcb240ed
[ "MIT" ]
null
null
null
invenio_rdm_records/records/__init__.py
kprzerwa/invenio-rdm-records
d5919b5f1b5f453074fcb2b63929a60bfcb240ed
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # Invenio-RDM-Records is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Data access layer.""" from .api import BibliographicDraft, BibliographicRecord __all__ = ( "Bibliogra...
22.5625
77
0.711911
45
361
5.622222
0.888889
0.29249
0
0
0
0
0
0
0
0
0
0.016779
0.174515
361
15
78
24.066667
0.832215
0.598338
0
0
0
0
0.276119
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
2bac022802ff5f30be91c9805dd48c3ef70817d6
448
py
Python
compiler/dna/components/DNABattleCell.py
AnonymousDeveloper65535/libpandadna
3110a8d576d22093e4c735081c5f639d28397a17
[ "BSD-3-Clause" ]
36
2015-01-29T19:43:45.000Z
2022-01-19T11:49:28.000Z
compiler/dna/components/DNABattleCell.py
AnonymousDeveloper65535/libpandadna
3110a8d576d22093e4c735081c5f639d28397a17
[ "BSD-3-Clause" ]
44
2015-01-16T16:09:30.000Z
2022-01-25T02:29:15.000Z
compiler/dna/components/DNABattleCell.py
AnonymousDeveloper65535/libpandadna
3110a8d576d22093e4c735081c5f639d28397a17
[ "BSD-3-Clause" ]
42
2015-01-03T08:43:21.000Z
2022-01-11T04:29:11.000Z
class DNABattleCell: COMPONENT_CODE = 21 def __init__(self, width, height, pos): self.width = width self.height = height self.pos = pos def setWidth(self, width): self.width = width def setHeight(self, height): self.height = height def setWidthHeight(self,...
21.333333
44
0.600446
52
448
5.076923
0.288462
0.170455
0.113636
0
0
0
0
0
0
0
0
0.00641
0.303571
448
20
45
22.4
0.839744
0
0
0.4
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
2bb885a3c4e0854b14cd5772fdf531c5720eeabb
2,324
py
Python
tests/test_sample.py
harshkothari410/refocus-python
e949d460a674434d861de25d5931a5c66eb2bcc6
[ "MIT" ]
null
null
null
tests/test_sample.py
harshkothari410/refocus-python
e949d460a674434d861de25d5931a5c66eb2bcc6
[ "MIT" ]
null
null
null
tests/test_sample.py
harshkothari410/refocus-python
e949d460a674434d861de25d5931a5c66eb2bcc6
[ "MIT" ]
null
null
null
import sys, os sys.path.insert(0, os.path.abspath('..')) from refocus import Refocus r = Refocus() def test_post_success_sample(): data = { 'name' : 'test_subject', 'isPublished' : True } subject = r.subject.post(data) subjectId = subject['id'] name = 'example' data = { 'name' : 'test_aspect', 'timeout...
23.009901
62
0.692771
316
2,324
4.927215
0.148734
0.069364
0.115607
0.085421
0.587026
0.535645
0.441875
0.277457
0.189467
0.189467
0
0.006539
0.144578
2,324
101
63
23.009901
0.77666
0
0
0.470588
0
0
0.20043
0.072258
0
0
0
0
0.129412
0
null
null
0
0.023529
null
null
0.047059
0
0
0
null
0
0
0
0
0
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
2bbcdab6432278953dd2f6f1fb43850081c24622
2,448
py
Python
day4.py
Camology/AdventOfCode2020
1a44682238f785ebe629f03435d0f2e344ea084c
[ "MIT" ]
null
null
null
day4.py
Camology/AdventOfCode2020
1a44682238f785ebe629f03435d0f2e344ea084c
[ "MIT" ]
null
null
null
day4.py
Camology/AdventOfCode2020
1a44682238f785ebe629f03435d0f2e344ea084c
[ "MIT" ]
null
null
null
import re input = open("inputs/day4.txt", "r") #credit to themanush on r/adventofcode I was very confused how to nicely read this in lines = [line.replace("\n", " ") for line in input.read().split("\n\n")] #part1 requiredItems = ["byr","iyr","eyr","hgt","hcl","ecl","pid"] acceptedPP = 0 for line in lines: if all(...
37.661538
87
0.527369
314
2,448
4.111465
0.324841
0.049574
0.080558
0.069713
0.221534
0.181255
0.144074
0.144074
0.144074
0.080558
0
0.041983
0.299428
2,448
64
88
38.25
0.710787
0.038399
0
0.145455
0
0
0.132766
0.014043
0
0
0
0
0
1
0
false
0.054545
0.018182
0
0.018182
0.236364
0
0
0
null
0
0
0
0
0
0
0
0
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
2bc20b9f40a6e7f47604b240de9991017619b04d
718
py
Python
unimport/statement.py
abdulniyaspm/unimport
372a144a0c5b5c334ff042451a4436c88e1f0dab
[ "MIT" ]
1
2020-11-18T22:45:38.000Z
2020-11-18T22:45:38.000Z
unimport/statement.py
abdulniyaspm/unimport
372a144a0c5b5c334ff042451a4436c88e1f0dab
[ "MIT" ]
5
2020-11-18T22:32:21.000Z
2020-11-19T02:05:24.000Z
unimport/statement.py
abdulniyaspm/unimport
372a144a0c5b5c334ff042451a4436c88e1f0dab
[ "MIT" ]
null
null
null
import operator from typing import List, NamedTuple, Union class Import(NamedTuple): lineno: int column: int name: str package: str def __len__(self) -> int: return operator.length_hint(self.name.split(".")) class ImportFrom(NamedTuple): lineno: int column: int name: str ...
19.944444
70
0.604457
86
718
4.930233
0.337209
0.113208
0.134434
0.117925
0.478774
0.478774
0.478774
0.478774
0.478774
0.273585
0
0
0.268802
718
35
71
20.514286
0.807619
0
0
0.538462
0
0
0.005571
0
0
0
0
0
0
1
0.115385
false
0
0.192308
0.115385
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
2bc7b7f77faaa7a0a3cf8324a4dc548438ba06f2
231
py
Python
Core/Block_C/RC500_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
1
2021-04-25T13:53:20.000Z
2021-04-25T13:53:20.000Z
Core/Block_C/RC500_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
null
null
null
Core/Block_C/RC500_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
null
null
null
from Core.IFactory import IFactory from Regs.Block_C import RC500 class RC500Factory(IFactory): def create_block_object(self, line): self.rc500 = _rc500 = RC500() _rc500.reg_list = line return _rc500
21
40
0.69697
30
231
5.133333
0.6
0.194805
0.194805
0
0
0
0
0
0
0
0
0.118644
0.233766
231
10
41
23.1
0.751412
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.714286
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
2bd2c11c953dc4b41de49912844b0de63987451e
292
py
Python
AD18-flask-admin-image-demo/app/extensions.py
AngelLiang/Flask-Demos
cf0a74885b873cb2583b3870ccdf3508d3af602e
[ "MIT" ]
3
2020-06-17T05:44:48.000Z
2021-09-11T02:49:38.000Z
AD18-flask-admin-image-demo/app/extensions.py
AngelLiang/Flask-Demos
cf0a74885b873cb2583b3870ccdf3508d3af602e
[ "MIT" ]
3
2021-06-08T20:57:03.000Z
2022-02-23T14:54:59.000Z
AD18-flask-admin-image-demo/app/extensions.py
AngelLiang/Flask-Demos
cf0a74885b873cb2583b3870ccdf3508d3af602e
[ "MIT" ]
6
2020-06-17T05:44:56.000Z
2022-03-29T12:53:05.000Z
from flask_sqlalchemy import SQLAlchemy from flask_admin import Admin db = SQLAlchemy() admin = Admin(template_mode='bootstrap3') def register_extensions(app): db.init_app(app) admin.init_app(app) from app.admin_ import register_modelviews register_modelviews(admin, app)
20.857143
46
0.773973
39
292
5.564103
0.384615
0.082949
0.092166
0
0
0
0
0
0
0
0
0.004032
0.150685
292
13
47
22.461538
0.870968
0
0
0
0
0
0.034247
0
0
0
0
0
0
1
0.111111
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
2bd8fdd55a1396edd97ad55fc5072a9f4d8558e4
1,260
py
Python
lucene/build_index.py
lavizhao/keyword
f2dc25bfa71b8734ee1140672a5dc1875814453b
[ "Apache-2.0" ]
3
2016-04-05T23:14:24.000Z
2017-05-30T12:49:06.000Z
lucene/build_index.py
lavizhao/keyword
f2dc25bfa71b8734ee1140672a5dc1875814453b
[ "Apache-2.0" ]
null
null
null
lucene/build_index.py
lavizhao/keyword
f2dc25bfa71b8734ee1140672a5dc1875814453b
[ "Apache-2.0" ]
null
null
null
#coding: utf-8 import lucene import csv print "预处理" INDEX_DIR = '../index' lucene.initVM() directory = lucene.SimpleFSDirectory(lucene.File(INDEX_DIR)) analyzer = lucene.StandardAnalyzer(lucene.Version.LUCENE_CURRENT) def get_data(): """ """ f = open("../data/new_train.csv") reader = csv.reader(f) ...
21
76
0.570635
147
1,260
4.77551
0.442177
0.094017
0.022792
0.048433
0.099715
0.099715
0.099715
0
0
0
0
0.015608
0.288095
1,260
59
77
21.355932
0.767001
0.010317
0
0
0
0
0.067921
0.017185
0
0
0
0
0
0
null
null
0
0.054054
null
null
0.162162
0
0
0
null
0
0
0
0
0
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
2bda3a43c9cc57273eac8731884923f293556b31
1,423
py
Python
chuong_3.py
ngcngmnh/lt_he_thong_dien
8d93a729c09b0e38241fce272d686d3cc116e2db
[ "MIT" ]
1
2020-04-09T10:47:35.000Z
2020-04-09T10:47:35.000Z
chuong_3.py
streetsamurai-mi/lt_he_thong_dien
8d93a729c09b0e38241fce272d686d3cc116e2db
[ "MIT" ]
null
null
null
chuong_3.py
streetsamurai-mi/lt_he_thong_dien
8d93a729c09b0e38241fce272d686d3cc116e2db
[ "MIT" ]
null
null
null
import array import math import chuong_1 import chuong_2 def bien_ap_t1(): s_max=abs(chuong_2.s_a) s_dm_B=s_max/1.4 d_p_n=260 d_p_0=100 u_n=14 i_0=0.045 r_b1=d_p_n*110**2/20000**2*10**3 z_b1=u_n*110**2/20000*10 x_b1=math.sqrt(z_b1**2-r_b1**2) d_q_FE=i_0*20000/100 print('S_ptm...
24.534483
48
0.609276
340
1,423
2.197059
0.164706
0.040161
0.024096
0.053548
0.650602
0.650602
0.587684
0.574297
0.574297
0.528782
0
0.199473
0.200281
1,423
58
49
24.534483
0.456942
0
0
0.491228
0
0
0.158006
0
0
0
0
0
0
1
0.052632
false
0
0.070175
0
0.122807
0.368421
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2bde38a0652ec7f8948f0b72373c8f848937effe
3,060
py
Python
virtualmother_app/module/database.py
guralin/virtual_mother
3522373870fd9e5d5c4cff06bc0a41e5d3567bcd
[ "MIT" ]
null
null
null
virtualmother_app/module/database.py
guralin/virtual_mother
3522373870fd9e5d5c4cff06bc0a41e5d3567bcd
[ "MIT" ]
5
2018-10-10T08:02:50.000Z
2021-02-08T20:26:56.000Z
virtualmother_app/module/database.py
guralin/virtual_mother
3522373870fd9e5d5c4cff06bc0a41e5d3567bcd
[ "MIT" ]
null
null
null
#!/bin/env python # coding: utf-8 from virtualmother_app import db from virtualmother_app.models import Table,TodoTable from flask_sqlalchemy import SQLAlchemy import datetime # views.py (/register) class SendData(Table): # カラムに値を代入 def __init__(self, user_id, get_up_time): self.user_id = user_id...
27.818182
123
0.652614
425
3,060
4.4
0.178824
0.115508
0.072193
0.051337
0.463102
0.387701
0.283957
0.266845
0.21016
0.21016
0
0.003809
0.227778
3,060
109
124
28.073395
0.787558
0.064706
0
0.230769
0
0
0
0
0
0
0
0.009174
0
1
0.230769
false
0
0.061538
0
0.446154
0.015385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
2be14ee7a943f9d2fe87958327d23b686dc32825
286
py
Python
tests/show_text_input.py
royqh1979/easygui_qt
5580f996c4690d0ab7bf31ac149163867b96b5af
[ "BSD-3-Clause" ]
53
2015-01-02T04:36:48.000Z
2022-03-05T21:31:42.000Z
tests/show_text_input.py
royqh1979/easygui_qt
5580f996c4690d0ab7bf31ac149163867b96b5af
[ "BSD-3-Clause" ]
18
2015-01-01T12:38:11.000Z
2021-12-20T21:28:04.000Z
tests/show_text_input.py
royqh1979/easygui_qt
5580f996c4690d0ab7bf31ac149163867b96b5af
[ "BSD-3-Clause" ]
16
2015-01-29T17:27:06.000Z
2022-03-03T19:28:42.000Z
import os import sys sys.path.insert(0, os.getcwd()) try: from easygui_qt import easygui_qt except ImportError: print("problem with import") name = easygui_qt.text_input(message="What is your name?", title="Mine is Reeborg.") print(name, end='')
19.066667
58
0.65035
40
286
4.55
0.675
0.148352
0
0
0
0
0
0
0
0
0
0.004566
0.234266
286
14
59
20.428571
0.826484
0
0
0
0
0
0.185965
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2be4d2149dc0218082410a0c98f57ef80bf1bdbe
1,938
py
Python
chatclient.py
charchitdahal/Chat-Server
184fbad45f0ef8d00d314118ce628e4fcfcb942f
[ "Apache-2.0" ]
null
null
null
chatclient.py
charchitdahal/Chat-Server
184fbad45f0ef8d00d314118ce628e4fcfcb942f
[ "Apache-2.0" ]
null
null
null
chatclient.py
charchitdahal/Chat-Server
184fbad45f0ef8d00d314118ce628e4fcfcb942f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import socket import os import sys import thread import time import json server_ip = sys.argv[1] server_port = 1134 username = sys.argv[2] sock = socket.socket( socket.AF_INET,socket.SOCK_DGRAM ) def get_messages(): global sock, username while True: data = None try: ...
26.547945
81
0.614551
237
1,938
4.915612
0.350211
0.103004
0.118455
0.103004
0.200858
0.161373
0.161373
0.161373
0.161373
0.161373
0
0.013176
0.255934
1,938
72
82
26.916667
0.79473
0.120227
0
0.352941
0
0
0.091692
0
0
0
0
0
0
0
null
null
0
0.117647
null
null
0.078431
0
0
0
null
0
0
0
0
0
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
2be4d41280ed950bd97a5cd8c4f46a3d4b222ae0
499
py
Python
init_db.py
zhy0216-collection/Gather
4a42715b83ad8802514c4f8128fd0a30658ba359
[ "MIT" ]
null
null
null
init_db.py
zhy0216-collection/Gather
4a42715b83ad8802514c4f8128fd0a30658ba359
[ "MIT" ]
null
null
null
init_db.py
zhy0216-collection/Gather
4a42715b83ad8802514c4f8128fd0a30658ba359
[ "MIT" ]
null
null
null
# coding=utf-8 import settings import pymongo db = pymongo.Connection(host=settings.mongodb_host, port=settings.mongodb_port)[settings.database_name] db.members.create_index([('created', -1)]) db.topics.create_index([('last_reply_time', -1), ('node', 1)]) db.replies.create_index([('topic', 1),...
35.642857
75
0.671343
68
499
4.75
0.470588
0.204334
0.06192
0
0
0
0
0
0
0
0
0.024831
0.112224
499
13
76
38.384615
0.704289
0.024048
0
0
0
0
0.142268
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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