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
a8347ba774f82ced779a3ceac5d45c914fbb1cf6
3,179
py
Python
tests/test_derivatives.py
whalenpt/rkstiff
9fbec7ddd123cc644d392933b518d342751b4cd8
[ "MIT" ]
4
2021-11-05T15:35:21.000Z
2022-01-17T10:20:57.000Z
tests/test_derivatives.py
whalenpt/rkstiff
9fbec7ddd123cc644d392933b518d342751b4cd8
[ "MIT" ]
null
null
null
tests/test_derivatives.py
whalenpt/rkstiff
9fbec7ddd123cc644d392933b518d342751b4cd8
[ "MIT" ]
null
null
null
from rkstiff.grids import construct_x_kx_rfft, construct_x_kx_fft from rkstiff.grids import construct_x_Dx_cheb from rkstiff.derivatives import dx_rfft, dx_fft import numpy as np def test_periodic_dx_rfft(): N = 100 a, b = 0, 2*np.pi x,kx = construct_x_kx_rfft(N,a,b) u = np.sin(x) ux_exact = np.co...
26.057377
74
0.624096
628
3,179
2.923567
0.106688
0.122004
0.078431
0.081699
0.888344
0.880719
0.845861
0.815359
0.815359
0.815359
0
0.038057
0.223026
3,179
121
75
26.272727
0.705263
0.016672
0
0.762887
0
0
0
0
0
0
0
0
0.123711
1
0.092784
false
0
0.041237
0
0.134021
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
a834a938200061353abd64e3aa79cc1eac77b3bf
2,511
py
Python
python/jinja2_template.py
bismog/leetcode
13b8a77045f96e7c59ddfe287481f6aaa68e564d
[ "MIT" ]
null
null
null
python/jinja2_template.py
bismog/leetcode
13b8a77045f96e7c59ddfe287481f6aaa68e564d
[ "MIT" ]
null
null
null
python/jinja2_template.py
bismog/leetcode
13b8a77045f96e7c59ddfe287481f6aaa68e564d
[ "MIT" ]
1
2018-08-17T07:07:15.000Z
2018-08-17T07:07:15.000Z
#!/usr/bin/env python import os from jinja2 import Environment, FileSystemLoader PATH = os.path.dirname(os.path.abspath(__file__)) env = Environment(loader=FileSystemLoader(os.path.join(PATH, 'templates'))) mac_addr = "01:23:45:67:89:01" PXE_ROOT_DIR = "/data/tftpboot" pxe_options = { 'os_distribution': 'centos...
31
84
0.68419
364
2,511
4.486264
0.318681
0.024495
0.029394
0.029394
0.22229
0.169626
0.119412
0.05695
0.05695
0
0
0.011679
0.181601
2,511
80
85
31.3875
0.782968
0.329351
0
0
0
0
0.159669
0.031807
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.236842
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
0
0
1
0
a837db7dbbd9e3811093f9342986a637e65f9e07
1,101
py
Python
school_system/users/admin.py
SanyaDeath/BIA-school-system
d07e4e86f91cf1e24c211cc9f5524c50da45b0e5
[ "BSD-3-Clause" ]
null
null
null
school_system/users/admin.py
SanyaDeath/BIA-school-system
d07e4e86f91cf1e24c211cc9f5524c50da45b0e5
[ "BSD-3-Clause" ]
null
null
null
school_system/users/admin.py
SanyaDeath/BIA-school-system
d07e4e86f91cf1e24c211cc9f5524c50da45b0e5
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin from .models import Student, User admin.site.site_header = 'BIA SCHOOL SYSTEM' class UserAdmin(DjangoUserAdmin): model = User fieldsets = DjangoUserAdmin.fieldsets + ((None, { 'fields': ('role', 'midd...
28.230769
66
0.613079
119
1,101
5.478992
0.411765
0.06135
0.069018
0.087423
0.197853
0.197853
0.156442
0.156442
0.156442
0.156442
0
0
0.254314
1,101
38
67
28.973684
0.794153
0
0
0.076923
0
0
0.197094
0
0
0
0
0
0
1
0.038462
false
0
0.115385
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
0
0
0
0
1
0
b5179adb5c10e59288f470f8fa76ecec344ba97b
1,111
py
Python
converter.py
ownerofworld/TDroidDesk
5c773f15d764e6cff468bb39ed40dca5ba07d902
[ "MIT" ]
20
2017-02-22T18:36:57.000Z
2022-03-23T11:03:35.000Z
converter.py
extratone/TDroidDesk
e778463e996368374c856e6154dc0885df1f3c11
[ "MIT" ]
3
2017-02-23T03:51:07.000Z
2017-03-26T15:06:35.000Z
converter.py
extratone/TDroidDesk
e778463e996368374c856e6154dc0885df1f3c11
[ "MIT" ]
9
2017-02-23T19:39:20.000Z
2022-01-02T03:28:01.000Z
# coding: utf-8 """Converter module.""" import util THEME = 'theme' BACKGROUND = 'background' class ThemeConverter(object): """Object that converts themes using given map file.""" def __init__(self, theme_map, transp_map): """Constructor.""" self.theme_map = theme_map self.transp_m...
26.452381
74
0.621062
131
1,111
5.015267
0.381679
0.100457
0.054795
0
0
0
0
0
0
0
0
0.002519
0.285329
1,111
41
75
27.097561
0.824937
0.212421
0
0
0
0
0.018116
0
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b517e64ad1c06cf00c0f78b0ee1fc02a33f3ce6e
3,109
py
Python
tools/serve/test_serve.py
mtrzos/wpt
6e559a60ecfa38ad6cc434911dd0995a63900db6
[ "BSD-3-Clause" ]
null
null
null
tools/serve/test_serve.py
mtrzos/wpt
6e559a60ecfa38ad6cc434911dd0995a63900db6
[ "BSD-3-Clause" ]
null
null
null
tools/serve/test_serve.py
mtrzos/wpt
6e559a60ecfa38ad6cc434911dd0995a63900db6
[ "BSD-3-Clause" ]
1
2021-04-06T20:06:58.000Z
2021-04-06T20:06:58.000Z
import pickle import platform import os import pytest import localpaths from . import serve from .serve import Config @pytest.mark.skipif(platform.uname()[0] == "Windows", reason="Expected contents are platform-dependent") def test_make_hosts_file_nix(): c = Config(browser_host="foo.bar", al...
38.8625
88
0.525571
409
3,109
3.872861
0.183374
0.098485
0.131313
0.164141
0.833333
0.782828
0.777778
0.777778
0.777778
0.777778
0
0.152791
0.320039
3,109
79
89
39.35443
0.5965
0.030878
0
0.676923
0
0
0.327351
0.266201
0
0
0
0
0.169231
1
0.092308
false
0
0.107692
0
0.2
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
b51830bb1dccb3fd7e3c8b9bb5061b4737e27584
8,440
py
Python
webshell/preprocess.py
radish608/graduationProject_DL4WebSecurity
1bafeca95d8c02be438b79e8192cae3f624879c9
[ "MIT" ]
1
2020-09-15T01:44:21.000Z
2020-09-15T01:44:21.000Z
webshell/preprocess.py
radish608/graduationProject_DL4WebSecurity
1bafeca95d8c02be438b79e8192cae3f624879c9
[ "MIT" ]
null
null
null
webshell/preprocess.py
radish608/graduationProject_DL4WebSecurity
1bafeca95d8c02be438b79e8192cae3f624879c9
[ "MIT" ]
null
null
null
# -*-coding: utf-8 -*- import os import re from sklearn.feature_extraction.text import CountVectorizer import sys import numpy as np from sklearn.model_selection import train_test_split from sklearn.feature_extraction.text import TfidfTransformer import commands import tflearn import pickle max_features=10000 max_docu...
26.049383
104
0.619313
1,188
8,440
4.123737
0.127104
0.104715
0.083282
0.044091
0.772403
0.736069
0.710961
0.688916
0.688916
0.658298
0
0.014672
0.273223
8,440
323
105
26.130031
0.783991
0.043365
0
0.730089
0
0
0.062484
0.021118
0
0
0
0
0
0
null
null
0
0.044248
null
null
0.048673
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
b5195d6a3d0b3fd5a3b08706a1231fda25ed0eb8
2,252
py
Python
py/DREAM/Settings/Equations/RunawayElectronDistribution.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
12
2020-09-07T11:19:10.000Z
2022-02-17T17:40:19.000Z
py/DREAM/Settings/Equations/RunawayElectronDistribution.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
110
2020-09-02T15:29:24.000Z
2022-03-09T09:50:01.000Z
py/DREAM/Settings/Equations/RunawayElectronDistribution.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
3
2021-05-21T13:24:31.000Z
2022-02-11T14:43:12.000Z
import numpy as np from DREAM.Settings.Equations.EquationException import EquationException from . import DistributionFunction as DistFunc from . DistributionFunction import DistributionFunction from .. TransportSettings import TransportSettings INIT_FORWARD = 1 INIT_XI_NEGATIVE = 2 INIT_XI_POSITIVE = 3 INIT_ISOTROP...
30.026667
83
0.655861
278
2,252
5.097122
0.366906
0.031757
0.067749
0.048694
0.149612
0.08892
0.0494
0
0
0
0
0.020784
0.25222
2,252
74
84
30.432432
0.820665
0.150089
0
0
0
0
0.015608
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.3
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
0
0
1
0
b519b948a7702826eb1cadca71144eb49329174c
8,907
py
Python
chevah/compat/tests/normal/testing/test_assertion.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
5
2016-12-03T22:54:50.000Z
2021-11-17T11:17:39.000Z
chevah/compat/tests/normal/testing/test_assertion.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
76
2015-01-22T16:00:31.000Z
2022-02-09T22:13:34.000Z
chevah/compat/tests/normal/testing/test_assertion.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
1
2016-12-10T15:57:31.000Z
2016-12-10T15:57:31.000Z
# Copyright (c) 2015 Adi Roiban. # See LICENSE for details. """ Tests for the assertion helpers. """ from __future__ import print_function from __future__ import division from __future__ import absolute_import import os from chevah.compat.exceptions import CompatError from chevah.compat.testing import ChevahTestCase, ...
32.507299
78
0.615359
965
8,907
5.55544
0.187565
0.022197
0.072748
0.057079
0.587577
0.568364
0.49599
0.433315
0.409439
0.379593
0
0.007358
0.29808
8,907
273
79
32.626374
0.850128
0.213652
0
0.412587
0
0
0.102053
0.003551
0
0
0
0
0.517483
1
0.125874
false
0
0.041958
0
0.174825
0.006993
0
0
0
null
0
0
0
0
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
b51c24c2a8046cf56cf971ce8b89fbb099048127
2,253
py
Python
tests/basic_test.py
patpizio/conformal_predictors
80d46d8728af23cf4a412024f592c40b51d977c7
[ "MIT" ]
null
null
null
tests/basic_test.py
patpizio/conformal_predictors
80d46d8728af23cf4a412024f592c40b51d977c7
[ "MIT" ]
4
2021-08-04T15:11:33.000Z
2021-08-04T22:52:03.000Z
tests/basic_test.py
patpizio/conformal_predictors
80d46d8728af23cf4a412024f592c40b51d977c7
[ "MIT" ]
null
null
null
import unittest import sys sys.path.insert(0, '../src/') from conformal_predictors.icp import ConformalPredictor from conformal_predictors.nc_measures import * import conformal_predictors.calibrutils as cu from sklearn.datasets import * import numpy as np from sklearn.svm import SVC from sklearn.ensemble import Ran...
29.644737
112
0.699512
282
2,253
5.361702
0.343972
0.043651
0.043651
0.018519
0.123016
0.097884
0.097884
0.097884
0.048942
0
0
0.008989
0.209942
2,253
76
113
29.644737
0.840449
0.094541
0
0
0
0
0.007389
0
0
0
0
0
0.023256
1
0.046512
false
0.023256
0.325581
0
0.395349
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
b51c95bad3faa026a48a62db4fc8bca989c644e2
7,561
py
Python
data/unaligned_dataset.py
basicskywards/cyclegan-yolo
536498706da30707facf1211355ff21df2e5b227
[ "BSD-3-Clause" ]
null
null
null
data/unaligned_dataset.py
basicskywards/cyclegan-yolo
536498706da30707facf1211355ff21df2e5b227
[ "BSD-3-Clause" ]
null
null
null
data/unaligned_dataset.py
basicskywards/cyclegan-yolo
536498706da30707facf1211355ff21df2e5b227
[ "BSD-3-Clause" ]
null
null
null
import os.path import torchvision.transforms as transforms from data.base_dataset import BaseDataset, get_transform from data.image_folder import make_dataset from PIL import Image import PIL from pdb import set_trace as st import torch import numpy as np #from yolo.utils.datasets import pad #import torchvision.trans...
40.005291
206
0.562492
1,031
7,561
3.903977
0.173618
0.017391
0.019876
0.017888
0.358261
0.308571
0.244969
0.201491
0.172671
0.159255
0
0.015264
0.289512
7,561
188
207
40.218085
0.733991
0.297183
0
0.020619
0
0
0.0518
0.004761
0
0
0
0
0
1
0.061856
false
0
0.103093
0.020619
0.226804
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
0
0
1
0
b51f90c659e185b69613117f368541efd8ec132f
8,396
py
Python
primare_control/primare_interface.py
ZenithDK/primare-control
597a2dd15bedb511fab5cca8d01044692d1e2d96
[ "Apache-2.0" ]
null
null
null
primare_control/primare_interface.py
ZenithDK/primare-control
597a2dd15bedb511fab5cca8d01044692d1e2d96
[ "Apache-2.0" ]
null
null
null
primare_control/primare_interface.py
ZenithDK/primare-control
597a2dd15bedb511fab5cca8d01044692d1e2d96
[ "Apache-2.0" ]
null
null
null
"""Interface to Primare amplifiers using Twisted SerialPort. This module allows you to control your Primare I22 and I32 amplifier from the command line using Primare's binary protocol via the RS232 port on the amplifier. """ import logging import click from contextlib import closing from primare_control import Prima...
36.504348
79
0.47737
798
8,396
4.902256
0.288221
0.027607
0.021472
0.033742
0.221115
0.162065
0.126278
0.126278
0.126278
0.112986
0
0.01643
0.412816
8,396
229
80
36.663755
0.777079
0.137685
0
0.293413
0
0
0.129792
0
0
0
0
0
0
1
0.02994
false
0.02994
0.023952
0
0.071856
0.005988
0
0
0
null
0
0
0
0
0
0
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
1
0
b51fa08d66290d275d2da9e4167fcbc0a1d4e931
382
py
Python
sjfxjc/foundations-for-analytics-with-python-master/csv/2csv_reader_parsing_and_write.py
SaronZhou/python
40d73b49b9b17542c73a3c09d28e479d2fefcde3
[ "MIT" ]
null
null
null
sjfxjc/foundations-for-analytics-with-python-master/csv/2csv_reader_parsing_and_write.py
SaronZhou/python
40d73b49b9b17542c73a3c09d28e479d2fefcde3
[ "MIT" ]
null
null
null
sjfxjc/foundations-for-analytics-with-python-master/csv/2csv_reader_parsing_and_write.py
SaronZhou/python
40d73b49b9b17542c73a3c09d28e479d2fefcde3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import csv import sys input_file = sys.argv[1] output_file = sys.argv[2] with open(input_file, 'r', newline='') as csv_in_file: with open(output_file, 'w', newline='') as csv_out_file: filereader = csv.reader(csv_in_file, delimiter=',') filewriter = csv.writer(csv_out_file, delimiter=',') ...
29.384615
57
0.730366
61
382
4.344262
0.491803
0.067925
0.083019
0
0
0
0
0
0
0
0
0.008982
0.125654
382
13
58
29.384615
0.784431
0.054974
0
0
0
0
0.01108
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5205edd8aab4d0aa6260c04b7e15a833d448e5d
298
py
Python
challenges/fifo-animal-shelter/pets.py
jeremyCtown/data-structures-and-algorithms
d4ba8741f858fb5298f8ce560240373fb7742e20
[ "MIT" ]
null
null
null
challenges/fifo-animal-shelter/pets.py
jeremyCtown/data-structures-and-algorithms
d4ba8741f858fb5298f8ce560240373fb7742e20
[ "MIT" ]
null
null
null
challenges/fifo-animal-shelter/pets.py
jeremyCtown/data-structures-and-algorithms
d4ba8741f858fb5298f8ce560240373fb7742e20
[ "MIT" ]
null
null
null
class Dog: """ Creates dog object """ def __init__(self): self.val = 'dog' def __repr__(self): return self.val class Cat: """ Creates cat object """ def __init__(self): self.val = 'cat' def __repr__(self): return self.val
14.190476
24
0.516779
34
298
4.058824
0.323529
0.202899
0.188406
0.246377
0.695652
0.695652
0
0
0
0
0
0
0.362416
298
20
25
14.9
0.726316
0.124161
0
0.6
0
0
0.026087
0
0
0
0
0
0
1
0.4
false
0
0
0.2
0.8
0
0
0
0
null
1
1
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
1
0
0
0
1
1
0
0
6
b520efe1b1cf2e4fbb13042874cc3d5189db3ae6
2,980
py
Python
provdbconnector/tests/db_adapters/neo4j/test_neo4jadapter.py
Ama-Gi/prov-neo4j-covid19-track
67a79694ad3b48c34dd263f1508c0bdfbc6702fb
[ "Apache-2.0" ]
15
2016-09-21T22:27:45.000Z
2022-01-17T15:44:42.000Z
provdbconnector/tests/db_adapters/neo4j/test_neo4jadapter.py
Ama-Gi/prov-neo4j-covid19-track
67a79694ad3b48c34dd263f1508c0bdfbc6702fb
[ "Apache-2.0" ]
87
2016-09-19T13:26:05.000Z
2022-03-16T04:16:47.000Z
provdbconnector/tests/db_adapters/neo4j/test_neo4jadapter.py
Ama-Gi/prov-neo4j-covid19-track
67a79694ad3b48c34dd263f1508c0bdfbc6702fb
[ "Apache-2.0" ]
3
2016-10-17T19:25:10.000Z
2020-06-26T12:38:34.000Z
import unittest from provdbconnector.exceptions.database import InvalidOptionsException, AuthException from provdbconnector import Neo4jAdapter, NEO4J_USER, NEO4J_PASS, NEO4J_HOST, NEO4J_BOLT_PORT from provdbconnector.prov_db import ProvDb from provdbconnector.tests import AdapterTestTemplate from provdbconnector.test...
33.863636
124
0.601342
311
2,980
5.578778
0.315113
0.04611
0.040346
0.051873
0.456484
0.408069
0.342939
0.308357
0.287032
0.287032
0
0.012627
0.30906
2,980
87
125
34.252874
0.830015
0.11745
0
0.45098
0
0
0.126427
0
0
0
0
0
0.039216
1
0.137255
false
0.098039
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b521c6c0f419d3631f195792a8be1ffaddad4502
1,956
py
Python
Python3-ThirdPartyLibrary/Chapter06_psutil.py
anliven/Reading-Code-Learning-Python
a814cab207bbaad6b5c69b9feeb8bf2f459baf2b
[ "Apache-2.0" ]
null
null
null
Python3-ThirdPartyLibrary/Chapter06_psutil.py
anliven/Reading-Code-Learning-Python
a814cab207bbaad6b5c69b9feeb8bf2f459baf2b
[ "Apache-2.0" ]
null
null
null
Python3-ThirdPartyLibrary/Chapter06_psutil.py
anliven/Reading-Code-Learning-Python
a814cab207bbaad6b5c69b9feeb8bf2f459baf2b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import psutil # CPU print("CPU: ", psutil.cpu_count()) # CPU逻辑数量 print("CPU: ", psutil.cpu_count(logical=False)) # CPU物理核心 print("CPU: ", psutil.cpu_times()) # 统计CPU的用户/系统/空闲时间 # for x in range(3): # print(psutil.cpu_percent(interval=1, percpu=True)) # 每秒刷新一次CPU使用率 # 内存 prin...
36.222222
73
0.596626
222
1,956
5.157658
0.536036
0.125764
0.062882
0.073362
0.078603
0
0
0
0
0
0
0.005178
0.210123
1,956
53
74
36.90566
0.735922
0.304192
0
0
0
0
0.21957
0
0
0
0
0
0
1
0
false
0
0.029412
0
0.029412
0.411765
0
0
0
null
0
0
0
0
0
0
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
b5220f9d88a447b033fc07fa837a16f3731fa688
1,971
py
Python
ocrDA.py
it-pebune/ani-research-data-extraction
e8b0ffecb0835020ce7942223cf566dc45ccee35
[ "MIT" ]
null
null
null
ocrDA.py
it-pebune/ani-research-data-extraction
e8b0ffecb0835020ce7942223cf566dc45ccee35
[ "MIT" ]
7
2022-01-29T22:19:55.000Z
2022-03-28T18:18:19.000Z
ocrDA.py
it-pebune/ani-research-data-extraction
e8b0ffecb0835020ce7942223cf566dc45ccee35
[ "MIT" ]
null
null
null
import json from NewDeclarationInQueue.formular_converter import FormularConverter from NewDeclarationInQueue.preprocess_one_step import PreprocessOneStep from NewDeclarationInQueue.preprocess_two_steps import PreProcessTwoSteps from NewDeclarationInQueue.processfiles.customprocess.search_text_line_parameter import Se...
38.647059
112
0.811771
235
1,971
6.395745
0.289362
0.08982
0.123087
0.0998
0.049235
0
0
0
0
0
0
0
0.129376
1,971
50
113
39.42
0.875874
0.125824
0
0
0
0
0.015734
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.433333
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
0
0
1
0
b522c08e48bccc21cac46f1faeda9461a2a4bfcf
1,187
py
Python
backend/model/migrate/versions/18632a2d5fc_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
7
2018-05-20T08:56:08.000Z
2022-03-11T15:50:54.000Z
backend/model/migrate/versions/18632a2d5fc_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
2
2021-06-08T21:12:51.000Z
2022-01-13T01:25:27.000Z
backend/model/migrate/versions/18632a2d5fc_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
5
2016-10-09T14:52:09.000Z
2020-12-25T01:04:35.000Z
"""Extend event column in account history Revision ID: 18632a2d5fc Revises: 3e19c50e864 Create Date: 2015-06-05 17:49:12.757269 """ # revision identifiers, used by Alembic. revision = '18632a2d5fc' down_revision = '3e19c50e864' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa fr...
21.581818
63
0.670598
141
1,187
5.48227
0.453901
0.051746
0.043984
0.036223
0.445019
0.344114
0.344114
0.238034
0.238034
0.238034
0
0.060086
0.214827
1,187
54
64
21.981481
0.769313
0.264532
0
0.24
0
0
0.097735
0
0
0
0
0
0
1
0.24
false
0.08
0.12
0
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
b522cbe5a92fd1c03c4cc0d0200215ca4a546a8f
8,018
py
Python
grid_user/models.py
topd333/Xlab
28d89b3b18717957229ca52cb2cbbbc20bd31eae
[ "Unlicense" ]
null
null
null
grid_user/models.py
topd333/Xlab
28d89b3b18717957229ca52cb2cbbbc20bd31eae
[ "Unlicense" ]
null
null
null
grid_user/models.py
topd333/Xlab
28d89b3b18717957229ca52cb2cbbbc20bd31eae
[ "Unlicense" ]
null
null
null
import random import datetime from django.db import models from django.contrib.auth.models import ( BaseUserManager, AbstractBaseUser ) from django.utils import timezone SECURTYQUESTION = ( ('1', "What city were you born in?"), ('2', "What is your mother's maiden name?"), ('3', "What street did you gro...
31.077519
114
0.634697
909
8,018
5.464246
0.20132
0.052547
0.090598
0.120797
0.548017
0.482988
0.368432
0.352527
0.256896
0.241997
0
0.025724
0.267897
8,018
257
115
31.198444
0.820443
0.094288
0
0.43956
0
0
0.095011
0.009815
0
0
0
0
0
1
0.076923
false
0.087912
0.027473
0.021978
0.472527
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
b523c2ff097c63e33e8bee17d44fcc56243d89de
1,729
py
Python
keyboards/inline/in_processing/confirm_keyboard.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
keyboards/inline/in_processing/confirm_keyboard.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
keyboards/inline/in_processing/confirm_keyboard.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
from emoji import emojize from data import all_emoji from aiogram.types import InlineKeyboardMarkup from aiogram.types import InlineKeyboardButton from aiogram.utils.callback_data import CallbackData cb_confirm_close = CallbackData('cb_cc', 'type_btn') def create_kb_confirm_close(): emo_snail = all_emoji['back__...
26.6
76
0.625795
172
1,729
5.97093
0.27907
0.093476
0.211295
0.238559
0.632911
0.586173
0.586173
0.586173
0.516066
0.342746
0
0
0.293811
1,729
64
77
27.015625
0.841114
0
0
0.428571
0
0
0.155003
0
0
0
0
0
0
1
0.035714
false
0
0.089286
0
0.160714
0
0
0
0
null
0
1
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
2
b524a997831cceef37fb6ffcb9a5a1813e885500
9,076
py
Python
utils/HCA/a_star.py
proroklab/magat_pathplanning
a2cab3b11abc46904bc45be1762a780becb1e8c7
[ "MIT" ]
40
2021-07-01T03:14:20.000Z
2022-03-23T23:45:22.000Z
utils/HCA/a_star.py
QingbiaoLi/magat_pathplanning
f28429b1a2ab7866c3001b82e6ae9ca3f072c106
[ "MIT" ]
null
null
null
utils/HCA/a_star.py
QingbiaoLi/magat_pathplanning
f28429b1a2ab7866c3001b82e6ae9ca3f072c106
[ "MIT" ]
13
2021-07-14T07:57:16.000Z
2022-03-03T10:43:25.000Z
''' This file contains utility of AStarSearch. Thanks to Binyu Wang for providing the codes. ''' from random import randint import numpy as np class SearchEntry(): def __init__(self, x, y, g_cost, f_cost=0, pre_entry=None): self.x = x self.y = y # cost move form start entry to this entry ...
35.592157
119
0.552336
1,220
9,076
4.02459
0.120492
0.027495
0.008554
0.009776
0.780652
0.743177
0.714257
0.694297
0.682077
0.682077
0
0.025993
0.334509
9,076
254
120
35.732283
0.786921
0.164941
0
0.640884
0
0
0
0
0
0
0
0
0
1
0.116022
false
0
0.01105
0.022099
0.276243
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
b525a442d992316233f044f50e799f9a075c90fa
1,270
py
Python
app/users/tasks.py
atulmishra-one/dairy_management_portal
a07320dc0f4419d4c78f7d2453c63b1c9544aba8
[ "MIT" ]
2
2020-08-02T10:06:19.000Z
2022-03-29T06:10:57.000Z
app/users/tasks.py
atulmishra-one/dairy_management_portal
a07320dc0f4419d4c78f7d2453c63b1c9544aba8
[ "MIT" ]
null
null
null
app/users/tasks.py
atulmishra-one/dairy_management_portal
a07320dc0f4419d4c78f7d2453c63b1c9544aba8
[ "MIT" ]
2
2019-02-03T15:44:02.000Z
2021-03-09T07:30:28.000Z
import xlrd from app.services.extension import task_server, sqlalchemy as db from app.models.core.user import User from app.application import initialize_app try: from app.config.production import ProductionConfig as config_object except ImportError: from app.config.local import LocalConfig as config_object ...
27.608696
71
0.607874
157
1,270
4.770701
0.509554
0.046729
0.034713
0.024032
0.048064
0
0
0
0
0
0
0.009934
0.286614
1,270
46
72
27.608696
0.816777
0.019685
0
0
0
0
0.049035
0
0
0
0
0
0
1
0.027027
false
0.027027
0.189189
0
0.243243
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
0
0
1
0
b526e227b8af6adb71768eb4900aaf57a69f1acb
3,444
py
Python
savenger.py
SlapBot/GodkillerArmor
27058332cd94c4389b092a621eeedc834d8f5a15
[ "MIT" ]
3
2018-07-06T17:06:28.000Z
2018-09-06T03:31:43.000Z
savenger.py
SlapBot/GodkillerArmor
27058332cd94c4389b092a621eeedc834d8f5a15
[ "MIT" ]
null
null
null
savenger.py
SlapBot/GodkillerArmor
27058332cd94c4389b092a621eeedc834d8f5a15
[ "MIT" ]
1
2018-07-10T00:13:07.000Z
2018-07-10T00:13:07.000Z
from praw import Reddit import random class Savenger: AVENGERS = ["Iron Man", "Doctor Strange", "Star-Lord", "Black Widow", "Thor", "Spider-Man", "Captain America", "Wanda Maximoff", "Bucky Barnes", "Loki", "Hulk", "Black Panther", "Vision", "Gamora", "Drax", "Nebula", ...
44.727273
108
0.626597
370
3,444
5.683784
0.318919
0.029957
0.033286
0.043272
0.162625
0.162625
0.162625
0.07418
0
0
0
0
0.278165
3,444
76
109
45.315789
0.845937
0
0
0.166667
0
0.015152
0.256969
0.044715
0
0
0
0
0
1
0.121212
false
0.030303
0.030303
0.015152
0.287879
0.212121
0
0
0
null
0
0
0
0
0
0
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
1
0
b52a4b91de40afb841386437bc92df7dcd61942d
1,493
py
Python
python-packages/pyRiemann-0.2.2/pyriemann/channelselection.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
2
2017-08-13T14:09:32.000Z
2018-07-16T23:39:00.000Z
python-packages/pyRiemann-0.2.2/pyriemann/channelselection.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
null
null
null
python-packages/pyRiemann-0.2.2/pyriemann/channelselection.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
2
2018-04-02T06:45:11.000Z
2018-07-16T23:39:02.000Z
from .utils.distance import distance from .classification import MDM import numpy from sklearn.base import BaseEstimator, TransformerMixin ########################################################## class ElectrodeSelection(BaseEstimator, TransformerMixin): def __init__(self, nelec=16, metric='riemann'): ...
31.765957
62
0.464836
153
1,493
4.503268
0.326797
0.143687
0.060958
0.040639
0
0
0
0
0
0
0
0.009751
0.381782
1,493
46
63
32.456522
0.736728
0.005358
0
0.055556
0
0
0.004912
0
0
0
0
0
0
1
0.083333
false
0
0.111111
0.027778
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b52aa43dd118effc265e50061d8175f3814721d2
1,897
py
Python
syncbase/user/urls.py
gkrnours/syncbase
0e20d400fe83e2157ee6e893a105253d20634808
[ "MIT" ]
null
null
null
syncbase/user/urls.py
gkrnours/syncbase
0e20d400fe83e2157ee6e893a105253d20634808
[ "MIT" ]
null
null
null
syncbase/user/urls.py
gkrnours/syncbase
0e20d400fe83e2157ee6e893a105253d20634808
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from django.contrib.auth import views as auth from user.forms import NewAccountForm from user import views app_name = 'user' urlpatterns = [ # auth url(r'^create/$', views.UserCreate.as_view(), name='create'), url(r'^login/$', auth.login, {'template_name...
34.490909
95
0.655245
240
1,897
4.895833
0.208333
0.199149
0.13617
0.163404
0.337021
0.199149
0.163404
0.163404
0
0
0
0.008974
0.177649
1,897
54
96
35.12963
0.744231
0.006326
0
0
0
0.025641
0.479809
0.273645
0
0
0
0
0
1
0
false
0.589744
0.102564
0
0.102564
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
1
0
0
0
0
0
2
b52daf8a9a6916b3bc3be9fb6b077491427da67f
1,728
py
Python
mac_changer.py
xicoder96/luv-sic
033527b558c3e4d7f254dca1e2f6f0ccf9ff78fe
[ "MIT" ]
null
null
null
mac_changer.py
xicoder96/luv-sic
033527b558c3e4d7f254dca1e2f6f0ccf9ff78fe
[ "MIT" ]
null
null
null
mac_changer.py
xicoder96/luv-sic
033527b558c3e4d7f254dca1e2f6f0ccf9ff78fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import subprocess import re import argparse def get_arguments(): parser = argparse.ArgumentParser() parser.add_argument("-i", "--interface", dest="interface", help="interface to change mac address") parser.add_argument("-m", "--mac", dest="new_mac", ...
33.230769
79
0.65162
221
1,728
4.918552
0.316742
0.020239
0.027599
0.033119
0.236431
0.158234
0.158234
0.01104
0.01104
0.01104
0
0.001468
0.211806
1,728
51
80
33.882353
0.796623
0.012153
0
0.1
0
0.025
0.292497
0.016999
0
0
0
0
0
1
0.075
false
0
0.075
0
0.2
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b53016b4f1a8a22aaafbf177615312636a59d031
1,916
py
Python
training/model.py
J77M/stuffy-nose-recognition
e5d8957e2026e9046e6ffee69a60a11a686bc042
[ "MIT" ]
null
null
null
training/model.py
J77M/stuffy-nose-recognition
e5d8957e2026e9046e6ffee69a60a11a686bc042
[ "MIT" ]
null
null
null
training/model.py
J77M/stuffy-nose-recognition
e5d8957e2026e9046e6ffee69a60a11a686bc042
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import time import utils path = r'data/' x, y = utils.reload_data(path) inp_shape = (x[0].shape[0],1) x = np.array(x).reshape(-1, 1000, 1)# change 1000 to your sample lenght if you changed frame (= CHUNK ) or RESOLUTION # prepared for testing and evaluating. try other comb...
39.102041
173
0.641441
256
1,916
4.625
0.382813
0.053209
0.059122
0.088682
0.274493
0.217905
0.191723
0.162162
0.092905
0.092905
0
0.023826
0.233299
1,916
49
174
39.102041
0.782165
0.080898
0
0.055556
0
0
0.092098
0.039795
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.027778
0
0
0
null
0
0
0
0
0
0
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
1
0
b5317c9553e4578dd1313a39baa5b57770eff21b
6,163
py
Python
app/api_service/ice_creams/migrations/0001_initial.py
TheRayOfSeasons/worker-heavy-cicd
fa36e89dd68ee2fd8b37bda55d6bb885f31afaa7
[ "MIT" ]
null
null
null
app/api_service/ice_creams/migrations/0001_initial.py
TheRayOfSeasons/worker-heavy-cicd
fa36e89dd68ee2fd8b37bda55d6bb885f31afaa7
[ "MIT" ]
null
null
null
app/api_service/ice_creams/migrations/0001_initial.py
TheRayOfSeasons/worker-heavy-cicd
fa36e89dd68ee2fd8b37bda55d6bb885f31afaa7
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-12 07:47 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
66.268817
204
0.646438
687
6,163
5.56623
0.129549
0.050209
0.075314
0.09205
0.877092
0.877092
0.877092
0.859571
0.859571
0.84545
0
0.006837
0.216778
6,163
92
205
66.98913
0.785374
0.007302
0
0.576471
1
0
0.162852
0.067691
0
0
0
0
0
1
0
false
0
0.035294
0
0.082353
0
0
0
0
null
0
0
0
1
1
1
1
1
1
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
7
b5325a85e324486debcb82eb330c6fd293cb8cf4
1,306
py
Python
game/game/protocol.py
maosplx/L2py
5d81b2ea150c0096cfce184706fa226950f7f583
[ "MIT" ]
7
2020-09-01T21:52:37.000Z
2022-02-25T16:00:08.000Z
game/game/protocol.py
maosplx/L2py
5d81b2ea150c0096cfce184706fa226950f7f583
[ "MIT" ]
4
2021-09-10T22:15:09.000Z
2022-03-25T22:17:43.000Z
game/game/protocol.py
maosplx/L2py
5d81b2ea150c0096cfce184706fa226950f7f583
[ "MIT" ]
9
2020-09-01T21:53:39.000Z
2022-03-30T12:03:04.000Z
import logging from common.api_handlers import handle_request from common.packet import Packet from common.response import Response from common.transport.protocol import TCPProtocol from game.models.world import WORLD from game.session import GameSession from game.states import Connected LOG = logging.getLogger(f"l2p...
30.372093
79
0.658499
146
1,306
5.760274
0.431507
0.092747
0.014269
0.035672
0.054697
0.054697
0
0
0
0
0
0.00207
0.260337
1,306
42
80
31.095238
0.86853
0
0
0.058824
0
0
0.048239
0
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.352941
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
0
0
1
0
b532e08e69d241104c91b1c89e9d10205dab72ab
292
py
Python
day6.py
seblars/AdventOfCode2020
dc41181caa50fe03645aa36d70fe0ebd76cd6e25
[ "MIT" ]
1
2020-12-16T09:37:01.000Z
2020-12-16T09:37:01.000Z
day6.py
seblars/AdventOfCode2020
dc41181caa50fe03645aa36d70fe0ebd76cd6e25
[ "MIT" ]
null
null
null
day6.py
seblars/AdventOfCode2020
dc41181caa50fe03645aa36d70fe0ebd76cd6e25
[ "MIT" ]
null
null
null
import fileinput # "day6.txt" groups = [x.split() for x in ''.join(fileinput.input()).split('\n\n')] # part 1 print(sum(len(set([j for sub in group for j in sub])) for group in groups)) # part 2 print(sum(len(set.intersection(*[set(list(j)) for j in group])) for group in groups))
29.2
86
0.64726
53
292
3.566038
0.45283
0.084656
0.116402
0.148148
0
0
0
0
0
0
0
0.012397
0.171233
292
9
87
32.444444
0.768595
0.082192
0
0
0
0
0.015686
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
b53308bf2a97499e9f1e960c2ded7b7ca3598996
370
py
Python
Conditional/Extras/Everton/02.py
Vitor-ORB/algorithms-and-programming-1-ufms
10821e9b580b78b7f78c27e740f3ead9c6b9f0bd
[ "MIT" ]
7
2021-05-25T16:49:20.000Z
2022-02-17T11:57:32.000Z
Conditional/Extras/Everton/02.py
Vitor-ORB/algorithms-and-programming-1-ufms
10821e9b580b78b7f78c27e740f3ead9c6b9f0bd
[ "MIT" ]
null
null
null
Conditional/Extras/Everton/02.py
Vitor-ORB/algorithms-and-programming-1-ufms
10821e9b580b78b7f78c27e740f3ead9c6b9f0bd
[ "MIT" ]
8
2021-05-25T16:49:39.000Z
2021-09-30T18:02:07.000Z
'''Considere o problema de computar o valor absoluto de um número real. O valor absoluto de um número real x é dado por f(x) = x se x >= 0 ou f(x) = -x se x < 0. Projete e implemente um programa em Python que lei um número de ponto flutuante x, calcule e imprima o valor absoluto de x.''' x = float(input()) y = (x**2)...
33.636364
126
0.651351
73
370
3.30137
0.520548
0.074689
0.174274
0.19917
0.290456
0.290456
0.232365
0
0
0
0
0.023729
0.202703
370
10
127
37
0.79322
0.762162
0
0
0
0
0.207317
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
b536ac94f02abdab43e5ca604aa965f6ad2715d0
1,394
py
Python
pyoptmat/solvers.py
Argonne-National-Laboratory/pyoptmat
a6e5e8d0b93c77374d4ccbc65a86262eec5df77b
[ "MIT" ]
null
null
null
pyoptmat/solvers.py
Argonne-National-Laboratory/pyoptmat
a6e5e8d0b93c77374d4ccbc65a86262eec5df77b
[ "MIT" ]
1
2022-03-30T22:20:38.000Z
2022-03-31T15:02:22.000Z
pyoptmat/solvers.py
Argonne-National-Laboratory/pyoptmat
a6e5e8d0b93c77374d4ccbc65a86262eec5df77b
[ "MIT" ]
2
2021-11-16T15:13:54.000Z
2022-01-06T21:35:42.000Z
import torch import warnings def newton_raphson(fn, x0, linsolver = "lu", rtol = 1e-6, atol = 1e-10, miter = 100): """ Solve a nonlinear system with Newton's method. Return the solution and the last Jacobian Args: fn: function that returns the residual and Jacobian x0:...
27.333333
82
0.585366
191
1,394
4.246073
0.471204
0.059186
0.009864
0.01233
0.051788
0.051788
0.051788
0.051788
0.051788
0.051788
0
0.021784
0.308465
1,394
50
83
27.88
0.819502
0.422525
0
0.166667
0
0
0.127572
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5373a616def2b1d58dca3805f309b56a4c149e0
323
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/number-of-substrings-with-only-1s.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/number-of-substrings-with-only-1s.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/number-of-substrings-with-only-1s.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(n) # Space: O(1) class Solution(object): def numSub(self, s): """ :type s: str :rtype: int """ MOD = 10**9+7 result, count = 0, 0 for c in s: count = count+1 if c == '1' else 0 result = (result+count)%MOD return resu...
20.1875
46
0.436533
44
323
3.204545
0.659091
0.156028
0
0
0
0
0
0
0
0
0
0.054054
0.427245
323
15
47
21.533333
0.708108
0.151703
0
0
0
0
0.004149
0
0
0
0
0
0
1
0.125
false
0
0
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
0
0
0
0
1
0
b537ff6eac7f94b76cf8db09b3957cee998efb52
4,531
py
Python
usecase-2/monitoring/fleet-seat-info-monitor/src/seat_res_train_monitor.py
edgefarm/edgefarm-demos
6381d4a2f7f9c1d0632ab8123fed2bd0763d3b34
[ "MIT" ]
null
null
null
usecase-2/monitoring/fleet-seat-info-monitor/src/seat_res_train_monitor.py
edgefarm/edgefarm-demos
6381d4a2f7f9c1d0632ab8123fed2bd0763d3b34
[ "MIT" ]
9
2021-04-21T10:37:45.000Z
2021-07-28T05:56:50.000Z
usecase-2/monitoring/fleet-seat-info-monitor/src/seat_res_train_monitor.py
edgefarm/train-simulation
6381d4a2f7f9c1d0632ab8123fed2bd0763d3b34
[ "MIT" ]
null
null
null
import logging import datetime import asyncio from edgefarm_application.base.application_module import application_module_network_nats from edgefarm_application.base.avro import schemaless_decode from run_task import run_task from state_tracker import StateTracker from schema_loader import schema_load _logger = logg...
31.685315
96
0.608034
549
4,531
4.73224
0.238616
0.037721
0.028868
0.024634
0.156274
0.111624
0.070824
0.070824
0.026944
0
0
0.001888
0.29861
4,531
142
97
31.908451
0.815607
0.060252
0
0.115385
0
0
0.110227
0.005065
0
0
0
0
0
1
0.038462
false
0
0.076923
0.009615
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b53809b9629204fc4062a7f81e9f288aeb36cec8
302
py
Python
modulo 03/script_03.py
p-g-krish/CursoSecurityToolsPython
7b2205a33d23166a37a6b8105b9ca5863855aa85
[ "Apache-2.0" ]
10
2020-02-13T03:14:29.000Z
2021-09-16T04:32:40.000Z
modulo 03/script_03.py
p-g-krish/CursoSecurityToolsPython
7b2205a33d23166a37a6b8105b9ca5863855aa85
[ "Apache-2.0" ]
null
null
null
modulo 03/script_03.py
p-g-krish/CursoSecurityToolsPython
7b2205a33d23166a37a6b8105b9ca5863855aa85
[ "Apache-2.0" ]
4
2020-02-18T23:42:23.000Z
2021-09-10T05:52:09.000Z
from termcolor import colored, cprint import sys text = colored('Hello, World!', 'red', attrs=['reverse', 'blink']) print(text) cprint('Hello, World!', 'green', 'on_red') for i in range(10): cprint(i, 'magenta', end=' ') cprint("Attention!",'red', attrs=['bold'], file=sys.stdout)
33.555556
68
0.622517
40
302
4.675
0.675
0.106952
0
0
0
0
0
0
0
0
0
0.007968
0.168874
302
8
69
37.75
0.737052
0
0
0
0
0
0.261905
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
b538595bde41c89c5a8fbdc33e2ae560a927b953
1,597
py
Python
src/AML/run_training.py
monkeypants/CartridgeOCR
a2cdaa72e3839a881118b85f5ff7b4515579004b
[ "MIT" ]
2
2021-07-12T02:37:46.000Z
2021-12-28T23:03:20.000Z
src/AML/run_training.py
monkeypants/CartridgeOCR
a2cdaa72e3839a881118b85f5ff7b4515579004b
[ "MIT" ]
28
2021-12-29T00:51:24.000Z
2022-03-24T08:03:59.000Z
src/AML/run_training.py
monkeypants/CartridgeOCR
a2cdaa72e3839a881118b85f5ff7b4515579004b
[ "MIT" ]
4
2021-09-24T16:13:43.000Z
2022-03-09T17:52:35.000Z
import sys from azureml.core import Workspace, Experiment, Environment, ScriptRunConfig from azureml.core.compute import ComputeTarget, AmlCompute from azureml.core.compute_target import ComputeTargetException from shutil import copy ws = Workspace.from_config() # Choose a name for your CPU cluster # cpu_cluster_name...
35.488889
86
0.708203
187
1,597
5.834225
0.475936
0.082493
0.064161
0.04033
0
0
0
0
0
0
0
0.004688
0.198497
1,597
44
87
36.295455
0.847656
0.068253
0
0
0
0
0.117925
0
0
0
0
0
0
1
0
false
0
0.16129
0
0.16129
0.064516
0
0
0
null
0
0
0
0
0
0
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
1
0
b538fc619dc6adad01e93a8132a517e7cc8b2d80
818
py
Python
tests/conftest.py
cielavenir/pyppmd-py2
c148b8fbe7cb0c0e9f68fdf9a1c3599325f0e4c8
[ "BSD-3-Clause" ]
3
2021-05-04T13:20:39.000Z
2021-11-03T12:43:02.000Z
tests/conftest.py
cielavenir/pyppmd-py2
c148b8fbe7cb0c0e9f68fdf9a1c3599325f0e4c8
[ "BSD-3-Clause" ]
39
2021-04-16T02:55:28.000Z
2022-03-30T14:23:50.000Z
tests/conftest.py
cielavenir/pyppmd-py2
c148b8fbe7cb0c0e9f68fdf9a1c3599325f0e4c8
[ "BSD-3-Clause" ]
3
2021-07-07T17:39:30.000Z
2022-03-30T15:15:44.000Z
import cpuinfo def pytest_benchmark_update_json(config, benchmarks, output_json): """Calculate compression/decompression speed and add as extra_info""" for benchmark in output_json["benchmarks"]: if "data_size" in benchmark["extra_info"]: rate = benchmark["extra_info"].get("data_size", 0.0...
43.052632
110
0.684597
109
818
4.862385
0.40367
0.079245
0.075472
0.090566
0
0
0
0
0
0
0
0.00292
0.162592
818
18
111
45.444444
0.770803
0.077017
0
0
0
0
0.233645
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.230769
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
0
0
1
0
b53920dd20dbdafabadb24be44f2a512437147fb
331
py
Python
examples/test_gcld3.py
lbp0200/EasyNMT
d253e9346996a47aa989bb33aed72e531528dc27
[ "Apache-2.0" ]
null
null
null
examples/test_gcld3.py
lbp0200/EasyNMT
d253e9346996a47aa989bb33aed72e531528dc27
[ "Apache-2.0" ]
null
null
null
examples/test_gcld3.py
lbp0200/EasyNMT
d253e9346996a47aa989bb33aed72e531528dc27
[ "Apache-2.0" ]
null
null
null
import time import gcld3 detector = gcld3.NNetLanguageIdentifier(min_num_bytes=0, max_num_bytes=1000) # text = "This text is written in English" text = "薄雾" while True: result = detector.FindLanguage(text=text) print(text, result.probability, result.language) time.s...
25.461538
59
0.65861
41
331
5.219512
0.658537
0.074766
0
0
0
0
0
0
0
0
0
0.040323
0.250755
331
12
60
27.583333
0.822581
0.120846
0
0
0
0
0.00692
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b539e3fd28c31f9e28937feef603fdbd7a3fc98e
1,593
py
Python
src/0075下一个排列/index.py
zzh2036/OneDayOneLeetcode
1198692e68f8f0dbf15555e45969122e1a92840a
[ "MIT" ]
null
null
null
src/0075下一个排列/index.py
zzh2036/OneDayOneLeetcode
1198692e68f8f0dbf15555e45969122e1a92840a
[ "MIT" ]
null
null
null
src/0075下一个排列/index.py
zzh2036/OneDayOneLeetcode
1198692e68f8f0dbf15555e45969122e1a92840a
[ "MIT" ]
null
null
null
''' 实现获取 下一个排列 的函数,算法需要将给定数字序列重新排列成字典序中下一个更大的排列。 如果不存在下一个更大的排列,则将数字重新排列成最小的排列(即升序排列)。 必须 原地 修改,只允许使用额外常数空间。 示例 1: 输入:nums = [1,2,3] 输出:[1,3,2] 示例 2: 输入:nums = [3,2,1] 输出:[1,2,3] 示例 3: 输入:nums = [1,1,5] 输出:[1,5,1] 示例 4: 输入:nums = [1] 输出:[1]   提示: 1 <= nums.length <= 100 0 <= nums[i] <= 100 ''' class Solution: ...
22.125
61
0.468927
199
1,593
3.713568
0.371859
0.040595
0.028417
0
0
0
0
0
0
0
0
0.054507
0.40113
1,593
71
62
22.43662
0.720126
0.310107
0
0
0
0
0.007533
0
0
0
0
0
0
1
0.103448
false
0
0
0
0.206897
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b53a0396d1bab4e9ce336103d0380f331ae41db6
7,906
py
Python
scripts/structural_make_html_report.py
vogelbac/LAB-QA2GO-
be434da7399d396413309f947f4b634d8fae9a17
[ "BSD-3-Clause" ]
14
2019-02-07T10:50:58.000Z
2021-09-03T16:11:00.000Z
scripts/structural_make_html_report.py
vogelbac/LAB-QA2GO-
be434da7399d396413309f947f4b634d8fae9a17
[ "BSD-3-Clause" ]
6
2019-01-28T09:19:27.000Z
2021-09-09T06:56:42.000Z
scripts/structural_make_html_report.py
vogelbac/LAB-QA2GO
be434da7399d396413309f947f4b634d8fae9a17
[ "BSD-3-Clause" ]
4
2019-01-28T09:00:58.000Z
2021-05-25T13:54:40.000Z
# script to generate the overview and individual html report website. import os import numpy def main(result_folder, name, header_comp): menu_html_file_path = '/home/brain/qa/html/menu_html.html' menu_html_file = open(menu_html_file_path, 'r') menu_html = menu_html_file.readlines() menu_html_file.close() resul...
41.610526
193
0.68214
1,322
7,906
3.840393
0.119516
0.019697
0.05909
0.060666
0.615718
0.550916
0.476856
0.415206
0.324207
0.273981
0
0.014482
0.13534
7,906
189
194
41.830688
0.728204
0.010372
0
0.268456
1
0.120805
0.288309
0.102328
0
0
0
0
0
1
0.013423
false
0
0.013423
0
0.026846
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
b53d20ea8c808f96c712a842e16ae3ddaa8b7e31
786
py
Python
argumenta.py
el3ctron/argumenta
3d66425b31a36940ba0dccb1361b250a06b02fec
[ "Apache-2.0" ]
null
null
null
argumenta.py
el3ctron/argumenta
3d66425b31a36940ba0dccb1361b250a06b02fec
[ "Apache-2.0" ]
null
null
null
argumenta.py
el3ctron/argumenta
3d66425b31a36940ba0dccb1361b250a06b02fec
[ "Apache-2.0" ]
null
null
null
class tabla_de_sesgos : def __init__(self) : self.sesgo = None # self.clase_de_sesgo = None # pass class marcador (reproductor, tabla_de_sesgos, registro_de_tiempos, medio) : def __init__(self) : pass def cargar_medio (self) : # returns pass def marcar_tiempos (self) : # returns pass def marcar...
19.170732
75
0.664122
103
786
4.718447
0.281553
0.098765
0.113169
0.092593
0.248971
0.18107
0.18107
0.18107
0.18107
0.18107
0
0
0.234097
786
40
76
19.65
0.807309
0.06743
0
0.5
0
0
0
0
0
0
0
0
0
1
0.294118
false
0.294118
0
0
0.441176
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
1
0
0
0
0
0
2
b53dea5224a5f4701caa31694ad6c985328e3868
12,226
py
Python
pynetdicom3/sop_class.py
mcgregorandrew/pynetdicom3
1c798f9b0ad086cf0a8d0619e57f2bc2fbbf13f1
[ "MIT" ]
null
null
null
pynetdicom3/sop_class.py
mcgregorandrew/pynetdicom3
1c798f9b0ad086cf0a8d0619e57f2bc2fbbf13f1
[ "MIT" ]
null
null
null
pynetdicom3/sop_class.py
mcgregorandrew/pynetdicom3
1c798f9b0ad086cf0a8d0619e57f2bc2fbbf13f1
[ "MIT" ]
2
2020-09-27T06:41:41.000Z
2021-02-07T06:53:02.000Z
"""Generates the supported SOP Classes.""" from collections import namedtuple import inspect import logging import sys from pydicom.uid import UID from pynetdicom3.service_class import ( VerificationServiceClass, StorageServiceClass, QueryRetrieveServiceClass, BasicWorklistManagementServiceClass, ) ...
49.699187
108
0.679699
1,881
12,226
4.38118
0.137693
0.035675
0.07766
0.155321
0.306031
0.283339
0.275937
0.260041
0.260041
0.231161
0
0.21796
0.130133
12,226
245
109
49.902041
0.556935
0.073777
0
0.01087
1
0.603261
0.698928
0.658713
0
0
0
0
0
1
0.016304
false
0
0.032609
0
0.076087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
b53df049332ea39e2f7827214e41edfb7e42ca6c
7,885
py
Python
feed_forward_model.py
karlschrader/deepPD
678793c9026eab2681d2d0a3b7e7f9f91c0f3bc5
[ "MIT" ]
null
null
null
feed_forward_model.py
karlschrader/deepPD
678793c9026eab2681d2d0a3b7e7f9f91c0f3bc5
[ "MIT" ]
null
null
null
feed_forward_model.py
karlschrader/deepPD
678793c9026eab2681d2d0a3b7e7f9f91c0f3bc5
[ "MIT" ]
null
null
null
import os from datetime import datetime import numpy as np import tensorflow as tf from tensorflow.python.training import moving_averages TF_DTYPE = tf.float64 MOMENTUM = 0.99 EPSILON = 1e-6 DELTA_CLIP = 50.0 class FeedForwardModel(): """ Abstract class for creating neural networks. Offers functions to ...
38.842365
95
0.557261
872
7,885
4.824541
0.231651
0.01545
0.022819
0.02377
0.365581
0.314476
0.246019
0.214405
0.151652
0.151652
0
0.009419
0.367153
7,885
202
96
39.034653
0.833667
0.29423
0
0.281818
0
0
0.030564
0
0
0
0
0
0
1
0.054545
false
0
0.045455
0
0.163636
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
0
0
1
0
b53f8bde038bcadd2b2dcbf0be630c6ab3f7dcdd
122
py
Python
semg_bss/hyser/__init__.py
nihil21/semg-bss
c8abd8aad6ed35e22a31d238adafe28f22bbcb3f
[ "MIT" ]
2
2021-12-09T15:27:42.000Z
2021-12-16T12:48:54.000Z
semg_bss/hyser/__init__.py
nihil21/semg-bss
c8abd8aad6ed35e22a31d238adafe28f22bbcb3f
[ "MIT" ]
null
null
null
semg_bss/hyser/__init__.py
nihil21/semg-bss
c8abd8aad6ed35e22a31d238adafe28f22bbcb3f
[ "MIT" ]
null
null
null
from .dataset import load_pr, load_1dof, load_mvc, load_ndof __all__ = ["load_pr", "load_1dof", "load_mvc", "load_ndof"]
30.5
60
0.737705
20
122
3.9
0.45
0.153846
0.25641
0.358974
0.74359
0.74359
0.74359
0.74359
0
0
0
0.018519
0.114754
122
3
61
40.666667
0.703704
0
0
0
0
0
0.270492
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
1
1
0
1
1
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
8
b540b40d9aaf331bef2f785083b2bbd7ed30bfe6
619
py
Python
Fibonacci/Python/fibonacci.py
IanDoarn/LearningRepo
4c5906b3c1f497a979c3fce89a66d1e571cd6b42
[ "MIT" ]
null
null
null
Fibonacci/Python/fibonacci.py
IanDoarn/LearningRepo
4c5906b3c1f497a979c3fce89a66d1e571cd6b42
[ "MIT" ]
null
null
null
Fibonacci/Python/fibonacci.py
IanDoarn/LearningRepo
4c5906b3c1f497a979c3fce89a66d1e571cd6b42
[ "MIT" ]
null
null
null
""" Fibonacci sequence using python generators Written by: Ian Doarn """ def fib(): # Generator that yields fibonacci numbers a, b = 0, 1 while True: # First iteration: yield a # yield 0 to start with and then a, b = b, a + b # a will now be 1, and b will also be 1,...
23.807692
75
0.55412
97
619
3.402062
0.57732
0.018182
0
0
0
0
0
0
0
0
0
0.027094
0.344103
619
25
76
24.76
0.785714
0.466882
0
0
0
0
0.063291
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.090909
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b543980e156f1837cc8c91284aa02b3f5bbf8218
974
py
Python
Chapter 6/glossary_2.py
WilliamJaber/Python-Crash-Course
d87621785011039fbe0b42f0d8b6cd2364246577
[ "MIT" ]
null
null
null
Chapter 6/glossary_2.py
WilliamJaber/Python-Crash-Course
d87621785011039fbe0b42f0d8b6cd2364246577
[ "MIT" ]
null
null
null
Chapter 6/glossary_2.py
WilliamJaber/Python-Crash-Course
d87621785011039fbe0b42f0d8b6cd2364246577
[ "MIT" ]
5
2021-09-22T16:53:47.000Z
2022-03-24T00:56:49.000Z
glossary = { 'intger': 'is colloquially defined as a number that can be written without a fractional component.\n', 'iterate': 'is the repetition of a process in order to generate a sequence of outcomes.\n', 'indentation': 'is an empty space at the beginning of a line that groups particular blocks of code.\...
64.933333
125
0.710472
155
974
4.464516
0.6
0.013006
0
0
0
0
0
0
0
0
0
0
0.194045
974
14
126
69.571429
0.881529
0
0
0
1
0.076923
0.822382
0
0
0
0
0
0
1
0
false
0
0
0
0
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
b543f58cf6e8b8dc209086801165057172e20d3f
1,711
py
Python
scripts/test_spider_roundtrip.py
mattr1/seq2struct_forPRs
cdc9e3c94380fb479ed3e3c77f370038d27cf2d6
[ "MIT" ]
25
2019-07-16T22:32:44.000Z
2022-01-25T05:23:07.000Z
scripts/test_spider_roundtrip.py
mattr1/seq2struct_forPRs
cdc9e3c94380fb479ed3e3c77f370038d27cf2d6
[ "MIT" ]
19
2018-12-17T20:42:11.000Z
2020-02-12T21:29:51.000Z
scripts/test_spider_roundtrip.py
mattr1/seq2struct_forPRs
cdc9e3c94380fb479ed3e3c77f370038d27cf2d6
[ "MIT" ]
22
2019-03-16T05:57:27.000Z
2020-10-25T04:34:54.000Z
import ast import argparse import json import os import pprint import astor import tqdm import _jsonnet from seq2struct import datasets from seq2struct import grammars from seq2struct.utils import registry from third_party.spider import evaluation def main(): parser = argparse.ArgumentParser() parser.add_a...
30.553571
102
0.663939
211
1,711
5.222749
0.417062
0.045372
0.046279
0.041742
0.161525
0.123412
0.079855
0.079855
0
0
0
0.013709
0.189947
1,711
55
103
31.109091
0.781385
0
0
0
0
0
0.124489
0.035652
0
0
0
0
0
1
0.02381
false
0
0.285714
0
0.309524
0.02381
0
0
0
null
0
0
0
0
0
0
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
1
0
b5441f2ff301c902adbb89a228a3e18af8032444
1,632
py
Python
tune/noniterative/objective.py
fugue-project/tune
bf2288ddcb29c8345d996a9b22c0910da9002da1
[ "Apache-2.0" ]
14
2021-03-03T20:02:09.000Z
2021-11-10T20:32:22.000Z
tune/noniterative/objective.py
fugue-project/tune
bf2288ddcb29c8345d996a9b22c0910da9002da1
[ "Apache-2.0" ]
26
2021-04-30T19:56:06.000Z
2022-01-18T04:40:00.000Z
tune/noniterative/objective.py
fugue-project/tune
bf2288ddcb29c8345d996a9b22c0910da9002da1
[ "Apache-2.0" ]
2
2021-04-30T03:12:21.000Z
2022-02-05T12:13:37.000Z
from tune.constants import TUNE_STOPPER_DEFAULT_CHECK_INTERVAL from typing import Any, Callable, Optional from tune._utils import run_monitored_process from tune.concepts.flow import Trial, TrialReport class NonIterativeObjectiveFunc: def generate_sort_metric(self, value: float) -> float: # pragma: no cover ...
33.306122
85
0.717525
171
1,632
6.654971
0.362573
0.043937
0.066784
0.102812
0.179262
0
0
0
0
0
0
0.000766
0.199755
1,632
48
86
34
0.870597
0.044118
0
0.111111
0
0
0.002571
0
0
0
0
0.020833
0
1
0.194444
false
0
0.111111
0.111111
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
1
0
0
0
0
0
0
1
0
0
0
2
b545de61a4d0708ce0bd62bccdbaa4f9ddf7238d
371
py
Python
ThinkPython/chap10/ex7.py
sokolowskik/Tutorials
d2681d4f18b03e00f90f9132c77f0b23b74d2629
[ "MIT" ]
null
null
null
ThinkPython/chap10/ex7.py
sokolowskik/Tutorials
d2681d4f18b03e00f90f9132c77f0b23b74d2629
[ "MIT" ]
null
null
null
ThinkPython/chap10/ex7.py
sokolowskik/Tutorials
d2681d4f18b03e00f90f9132c77f0b23b74d2629
[ "MIT" ]
null
null
null
a1 = 'mary' b1 = 'army' a2 = 'mary' b2 = 'mark' def is_anagram(a, b): """ Return True if words a and b are anagrams. Return Flase if otherwise. """ a_list = list(a) b_list = list(b) a_list.sort() b_list.sort() if a_list == b_list: return True else: return False ...
16.130435
46
0.574124
60
371
3.4
0.433333
0.132353
0.137255
0
0
0
0
0
0
0
0
0.030888
0.301887
371
22
47
16.863636
0.756757
0
0
0
0
0
0.05694
0
0
0
0
0
0
0
null
null
0
0
null
null
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b54662251afe3923c7f22e2ffa35d6fb5d4cc63b
459
py
Python
pymotion/models/notification.py
LeResKP/motion
4a7c6200ca6fd20edb3b98c6ea1215c90d988a78
[ "MIT" ]
null
null
null
pymotion/models/notification.py
LeResKP/motion
4a7c6200ca6fd20edb3b98c6ea1215c90d988a78
[ "MIT" ]
null
null
null
pymotion/models/notification.py
LeResKP/motion
4a7c6200ca6fd20edb3b98c6ea1215c90d988a78
[ "MIT" ]
null
null
null
from sqlalchemy import ( Column, ForeignKey, Integer, Text, ) from sqlalchemy.orm import relationship from .meta import Base class Notification(Base): __tablename__ = 'notification' id = Column(Integer, primary_key=True) user_id = Column(Integer, ForeignKey("user.id"), nullable=False) ...
21.857143
77
0.714597
51
459
6.294118
0.529412
0.087227
0.093458
0
0
0
0
0
0
0
0
0
0.180828
459
20
78
22.95
0.853723
0
0
0
0
0
0.076253
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.642857
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
b5473421d6c0b8e5ed5978ee678700c80296d6a9
1,340
py
Python
utils/model_helper.py
CocoBir/django-restful-demo
aeb7f8a0bcff5c52b528c7b0c48f87de5f392320
[ "MIT" ]
null
null
null
utils/model_helper.py
CocoBir/django-restful-demo
aeb7f8a0bcff5c52b528c7b0c48f87de5f392320
[ "MIT" ]
null
null
null
utils/model_helper.py
CocoBir/django-restful-demo
aeb7f8a0bcff5c52b528c7b0c48f87de5f392320
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ model helper ~~~~~~~~~~~~ :Created: 2016-8-5 :Copyright: (c) 2016<smileboywtu@gmail.com> """ from customer_exceptions import OffsetOutOfRangeException class ListModelHelper(object): """get the object list""" @classmethod def list(cls, index=0, limit=8, sor...
23.103448
60
0.568657
144
1,340
5.263889
0.465278
0.031662
0
0
0
0
0
0
0
0
0
0.014161
0.314925
1,340
57
61
23.508772
0.811547
0.319403
0
0.095238
0
0
0.028424
0
0
0
0
0
0
1
0.095238
false
0.047619
0.047619
0
0.380952
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
0
0
1
0
b54756c2e6e68e661aab45de212b547f340ad633
2,603
py
Python
djadmin2/templatetags/admin2_tags.py
beezz/django-admin2
4aec1a3836011cd46e5eb8b6375590bf5a76c044
[ "BSD-3-Clause" ]
1
2015-04-30T13:34:03.000Z
2015-04-30T13:34:03.000Z
djadmin2/templatetags/admin2_tags.py
taxido/django-admin2
6a6b3d5f790b8289b0dd0f9194d80799af8804dc
[ "BSD-3-Clause" ]
1
2021-03-19T23:57:09.000Z
2021-03-19T23:57:09.000Z
djadmin2/templatetags/admin2_tags.py
RyanBalfanz/django-admin2
e7f0611eea22370bb3418e25e9cd10ddbac4fd6d
[ "BSD-3-Clause" ]
null
null
null
from django import template register = template.Library() from .. import utils @register.filter def admin2_urlname(view, action): """ Converts the view and the specified action into a valid namespaced URLConf name. """ return utils.admin2_urlname(view, action) @register.filter def model_app_label(...
26.835052
84
0.702651
354
2,603
5.059322
0.293785
0.062535
0.075935
0.036851
0.48297
0.45952
0.45952
0.383585
0.383585
0.3311
0
0.001478
0.220131
2,603
96
85
27.114583
0.880788
0.425279
0
0.341463
0
0
0.005193
0
0
0
0
0
0
1
0.219512
false
0
0.04878
0
0.609756
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
1
0
0
2
b5484bee48cb34153d413c1639f3e4d36037235a
2,323
py
Python
tests/test_filters/test_edges.py
luluricketts/biothings_explorer
ae2009ff285f96a08e0145f242846ca613b5069c
[ "Apache-2.0" ]
null
null
null
tests/test_filters/test_edges.py
luluricketts/biothings_explorer
ae2009ff285f96a08e0145f242846ca613b5069c
[ "Apache-2.0" ]
null
null
null
tests/test_filters/test_edges.py
luluricketts/biothings_explorer
ae2009ff285f96a08e0145f242846ca613b5069c
[ "Apache-2.0" ]
null
null
null
""" Tests for edges.py """ import unittest import pandas as pd from biothings_explorer.user_query_dispatcher import SingleEdgeQueryDispatcher from biothings_explorer.filters.edges import filter_node_degree class TestFilterEdges(unittest.TestCase): # test for count values def test_count_values(self): ...
40.754386
106
0.54025
233
2,323
5.23176
0.351931
0.059065
0.052502
0.091058
0.45119
0.415094
0.415094
0.359311
0.331419
0.331419
0
0.039624
0.359019
2,323
56
107
41.482143
0.779046
0.061989
0
0.340909
0
0
0.082988
0
0
0
0
0
0.090909
1
0.068182
false
0
0.090909
0
0.181818
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
0
0
1
0
b54ed986a0849287fd62118ba89a87ae8732ba9e
974
py
Python
get_data.py
ryanw3bb/fpl
a06fbf8ada5f549f0750ed9af46f53b3a1a0149e
[ "MIT" ]
1
2018-08-15T02:52:52.000Z
2018-08-15T02:52:52.000Z
get_data.py
ryanw3bb/fpl
a06fbf8ada5f549f0750ed9af46f53b3a1a0149e
[ "MIT" ]
null
null
null
get_data.py
ryanw3bb/fpl
a06fbf8ada5f549f0750ed9af46f53b3a1a0149e
[ "MIT" ]
null
null
null
""" Retrieves data as json files from fantasy.premierleague.com """ import json import requests LAST_SEASON_DATA_FILENAME = "data/player_data_20_21.json" DATA_URL = "https://fantasy.premierleague.com/api/bootstrap-static/" DATA_FILENAME = "data/player_data_21_22.json" FIXTURES_URL = "https://fantasy.premierleague.c...
24.974359
68
0.74846
142
974
4.84507
0.288732
0.087209
0.100291
0.063953
0.468023
0.392442
0.229651
0.148256
0.148256
0.148256
0
0.014634
0.158111
974
38
69
25.631579
0.82439
0.145791
0
0.190476
0
0
0.227218
0.100851
0
0
0
0
0
1
0.095238
false
0
0.095238
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b54f720607fa63d495bc79cd36045e62028217a1
5,587
py
Python
examples/spawning5.py
MissMeriel/BeamNGpy
a8467c57537441802bc5b56f0012dfee2b5f5af0
[ "MIT" ]
1
2021-08-10T19:29:52.000Z
2021-08-10T19:29:52.000Z
examples/spawning5.py
MissMeriel/BeamNGpy
a8467c57537441802bc5b56f0012dfee2b5f5af0
[ "MIT" ]
null
null
null
examples/spawning5.py
MissMeriel/BeamNGpy
a8467c57537441802bc5b56f0012dfee2b5f5af0
[ "MIT" ]
null
null
null
from beamngpy import BeamNGpy, Vehicle, Scenario, ScenarioObject from beamngpy import setup_logging, Config from beamngpy.sensors import Camera, GForces, Lidar, Electrics, Damage, Timer import beamngpy import time, random # globals default_model = 'pickup' default_scenario = 'west_coast_usa' #'cliff' # smallgrid dt = ...
36.51634
133
0.583139
685
5,587
4.632117
0.264234
0.015128
0.0104
0.022061
0.211787
0.173338
0.173338
0.162622
0.144343
0.113457
0
0.067558
0.263469
5,587
153
134
36.51634
0.703524
0.121711
0
0.12069
0
0
0.122466
0.01454
0
0
0
0
0
1
0.043103
false
0
0.043103
0
0.137931
0.086207
0
0
0
null
0
0
0
0
0
0
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
1
0
b55212239eec52a949a21799291c19c62811b1b2
17,827
py
Python
steam/check_acf.py
DarkStarSword/junk
f0de649a3ef92715fbc6aeff7599ad843763c32b
[ "MIT" ]
19
2015-02-02T16:49:32.000Z
2021-12-04T02:33:10.000Z
steam/check_acf.py
DarkStarSword/junk
f0de649a3ef92715fbc6aeff7599ad843763c32b
[ "MIT" ]
1
2015-07-11T13:57:34.000Z
2015-11-16T02:36:23.000Z
steam/check_acf.py
DarkStarSword/junk
f0de649a3ef92715fbc6aeff7599ad843763c32b
[ "MIT" ]
4
2017-02-06T21:11:17.000Z
2019-04-04T15:11:50.000Z
#!/usr/bin/env python from __future__ import print_function import os, optparse, glob import depotcache, acf from ui import ui_tty as ui import hashlib import sys g_indent = ' ' colours = { False: 'back_red black', True: '' } class UnknownLen(list): pass def depot_summary_ok(mounted): if len(mounted) > 0: ...
35.941532
388
0.710664
2,674
17,827
4.589005
0.176515
0.021025
0.014669
0.00929
0.278543
0.199739
0.152718
0.084019
0.057371
0.05297
0
0.003707
0.167667
17,827
495
389
36.014141
0.823292
0.112358
0
0.274112
0
0.020305
0.223568
0.006887
0
0
0
0.00202
0.010152
0
null
null
0.005076
0.025381
null
null
0.121827
0
0
0
null
0
0
0
0
0
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
b5523d39a4d4c8cb3b8be163ac345c9888bb29a1
178
py
Python
reference/old/distance-simple.py
Art31/trekking-pro-cefetrj
37ab58759b42978cbd8d950bd75c487e1292cb2b
[ "Apache-1.1" ]
null
null
null
reference/old/distance-simple.py
Art31/trekking-pro-cefetrj
37ab58759b42978cbd8d950bd75c487e1292cb2b
[ "Apache-1.1" ]
null
null
null
reference/old/distance-simple.py
Art31/trekking-pro-cefetrj
37ab58759b42978cbd8d950bd75c487e1292cb2b
[ "Apache-1.1" ]
null
null
null
from gpiozero import DistanceSensor from time import sleep sensor = DistanceSensor(echo=23, trigger=22) while True: print('Distance: ', sensor.distance * 100) sleep(1)
19.777778
46
0.735955
23
178
5.695652
0.73913
0
0
0
0
0
0
0
0
0
0
0.054054
0.168539
178
8
47
22.25
0.831081
0
0
0
0
0
0.056497
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
b5526b9490a6617e9343309ab67db978943793e5
1,070
py
Python
SmallTips/RemoveDuplication.py
Akasan/PythonTips
eee85c35fd25576c7b2b01af838749608bf8989c
[ "MIT" ]
null
null
null
SmallTips/RemoveDuplication.py
Akasan/PythonTips
eee85c35fd25576c7b2b01af838749608bf8989c
[ "MIT" ]
null
null
null
SmallTips/RemoveDuplication.py
Akasan/PythonTips
eee85c35fd25576c7b2b01af838749608bf8989c
[ "MIT" ]
null
null
null
import pickle def remove_duplicate_from_list(data): """ remove duplications from specific list any data can be contained in the data. if the data is hashable, you can implement this function easily like below. data = list(set(data)) but if the data is unhashable, you have to im...
36.896552
89
0.66729
161
1,070
4.291925
0.403727
0.014472
0.082489
0.099855
0.23589
0.196816
0.104197
0.104197
0.104197
0
0
0.017305
0.243925
1,070
28
90
38.214286
0.836836
0.534579
0
0.181818
0
0
0.042601
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
0.181818
0
0
0
null
0
0
0
0
0
0
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
1
0
b5533e6640dc60d29a04f82e1a7722aa55036807
7,226
py
Python
ultraviolet_cli/commands/fixtures.py
mnyrop/ultraviolet-cli
f177adde71a899ca6775bd4673d30e19ccdb2a30
[ "MIT" ]
1
2022-02-08T18:28:30.000Z
2022-02-08T18:28:30.000Z
ultraviolet_cli/commands/fixtures.py
mnyrop/ultraviolet-cli
f177adde71a899ca6775bd4673d30e19ccdb2a30
[ "MIT" ]
null
null
null
ultraviolet_cli/commands/fixtures.py
mnyrop/ultraviolet-cli
f177adde71a899ca6775bd4673d30e19ccdb2a30
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2022 NYU Libraries. # # ultraviolet-cli is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Invenio module for custom UltraViolet commands.""" import click import glob import json import os imp...
33.146789
128
0.63313
932
7,226
4.831545
0.216738
0.044415
0.062181
0.049745
0.617366
0.596713
0.573173
0.567177
0.540084
0.540084
0
0.003049
0.22848
7,226
217
129
33.299539
0.804664
0.07902
0
0.608392
0
0
0.180188
0.034488
0
0
0
0
0
1
0.048951
false
0.013986
0.06993
0
0.132867
0.027972
0
0
0
null
0
0
0
0
0
0
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
1
0
b553c83a33407279287a7fa673284b12f5a363b1
1,320
py
Python
consts.py
twyair/hebrew-verb-inflection
a85773a008ea3fc1b8c36f92ac3100315edee6b6
[ "MIT" ]
null
null
null
consts.py
twyair/hebrew-verb-inflection
a85773a008ea3fc1b8c36f92ac3100315edee6b6
[ "MIT" ]
null
null
null
consts.py
twyair/hebrew-verb-inflection
a85773a008ea3fc1b8c36f92ac3100315edee6b6
[ "MIT" ]
null
null
null
from __future__ import annotations from enum import Enum, auto class Paradigm(Enum): NONE = auto() KFULIM = auto() KFULIM_2 = auto() # used only for HUFAL NO_PREFIX = auto() # used for words like 'hUnDA!s', 'hU_wA!n', 'nI_sa!H', 'nI_qa!H' PE_ALEF = auto() # used only for PAAL PAAL_1 = auto(...
22
88
0.559848
176
1,320
4.039773
0.426136
0.084388
0.033755
0.042194
0.140647
0.140647
0
0
0
0
0
0.013289
0.315909
1,320
59
89
22.372881
0.774086
0.147727
0
0
0
0
0
0
0
0
0
0.016949
0
1
0.041667
false
0
0.041667
0.041667
0.854167
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
1
0
0
2
b55c52f4a65b506287148bb4b6f73c63cbf60fe9
266
py
Python
cbsettings/exceptions.py
matthewwithanm/django-classbasedsettings
4b208f1c73a2acedc5cd3bfa2b73541607ed9ce8
[ "MIT" ]
23
2015-02-17T13:35:33.000Z
2020-10-02T07:06:24.000Z
cbsettings/exceptions.py
matthewwithanm/django-classbasedsettings
4b208f1c73a2acedc5cd3bfa2b73541607ed9ce8
[ "MIT" ]
8
2015-12-23T19:42:49.000Z
2021-10-01T20:13:40.000Z
cbsettings/exceptions.py
matthewwithanm/django-classbasedsettings
4b208f1c73a2acedc5cd3bfa2b73541607ed9ce8
[ "MIT" ]
4
2015-12-23T19:17:39.000Z
2020-09-27T19:29:13.000Z
class SettingsFactoryDoesNotExist(Exception): pass class InvalidSettingsFactory(Exception): pass class NoMatchingSettings(Exception): """Raised when a suitable settings class cannot be found.""" pass class InvalidCondition(Exception): pass
16.625
64
0.75188
25
266
8
0.6
0.195
0.18
0
0
0
0
0
0
0
0
0
0.176692
266
15
65
17.733333
0.913242
0.203008
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
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
1
1
0
0
0
0
0
3
b55d244aa62443aced945674009694fb76ee238b
1,834
py
Python
src/function_manager/function_manager.py
lzjzx1122/FaaSFlow
c4a32a04797770c21fe6a0dcacd85ac27a3d29ec
[ "Apache-2.0" ]
24
2021-12-02T01:00:54.000Z
2022-03-27T00:50:28.000Z
src/function_manager/function_manager.py
lzjzx1122/FaaSFlow
c4a32a04797770c21fe6a0dcacd85ac27a3d29ec
[ "Apache-2.0" ]
null
null
null
src/function_manager/function_manager.py
lzjzx1122/FaaSFlow
c4a32a04797770c21fe6a0dcacd85ac27a3d29ec
[ "Apache-2.0" ]
3
2021-12-02T01:00:47.000Z
2022-03-04T07:33:09.000Z
import gevent import docker import os from function_info import parse from port_controller import PortController from function import Function import random repack_clean_interval = 5.000 # repack and clean every 5 seconds dispatch_interval = 0.005 # 200 qps at most # the class for scheduling functions' int...
37.428571
104
0.681025
229
1,834
5.222707
0.344978
0.055184
0.053512
0.052676
0.36204
0.348662
0.348662
0.32107
0.244147
0.091973
0
0.011429
0.236641
1,834
48
105
38.208333
0.842857
0.09542
0
0.166667
0
0
0.061644
0
0
0
0
0
0
1
0.138889
false
0
0.194444
0
0.388889
0.027778
0
0
0
null
0
0
0
0
0
0
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
1
0
b55f0296b5c70a3898760614021a220983b1ac36
333
py
Python
getall.py
bransorem/Magic-Scraper
f68ae25122391efe440c8652119d146a75be4cea
[ "Unlicense" ]
2
2018-07-16T21:24:34.000Z
2020-12-19T21:34:00.000Z
getall.py
bransorem/Magic-Scraper
f68ae25122391efe440c8652119d146a75be4cea
[ "Unlicense" ]
null
null
null
getall.py
bransorem/Magic-Scraper
f68ae25122391efe440c8652119d146a75be4cea
[ "Unlicense" ]
null
null
null
import sets import scan_set import os path = 'ids/' setlist = os.listdir(path) def getall(set): id = scan_set.scan_set(set) scan_set.write_ids(set, id) for set in sets.set_info: s = set + '.txt' if s not in setlist: print "Getting " + set getall(set) print "\n\nCompletely Finis...
15.857143
39
0.615616
51
333
3.901961
0.490196
0.140704
0.100503
0
0
0
0
0
0
0
0
0
0.252252
333
20
40
16.65
0.799197
0
0
0
0
0
0.141141
0
0
0
0
0
0
0
null
null
0
0.214286
null
null
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b55f0ffd6458d9da1434363a2f94293d840e899b
6,717
py
Python
MalmoEnv/run.py
chemgymrl/malmo
207e2530ec94af46450ba6d0e62d691ade91e282
[ "MIT" ]
1
2022-02-17T07:58:06.000Z
2022-02-17T07:58:06.000Z
MalmoEnv/run.py
chemgymrl/malmo
207e2530ec94af46450ba6d0e62d691ade91e282
[ "MIT" ]
null
null
null
MalmoEnv/run.py
chemgymrl/malmo
207e2530ec94af46450ba6d0e62d691ade91e282
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------------------------ # Copyright (c) 2018 Microsoft Corporation # # 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 ...
46.645833
128
0.650737
879
6,717
4.861206
0.333333
0.025275
0.047742
0.036508
0.083782
0.052422
0.029487
0.01451
0
0
0
0.01434
0.221379
6,717
143
129
46.972028
0.802677
0.37755
0
0.028571
0
0.014286
0.203812
0.012219
0
0
0
0
0
1
0.028571
false
0
0.214286
0
0.271429
0.042857
0
0
0
null
0
0
0
0
0
0
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
1
0
b55f2629add10c43d98efae9012f1f13e3691bd5
1,172
py
Python
example/wrapper/common/5001-get_tgpio_digital.py
krasin/xArm-Python-SDK-ssh
9c854e8bfa78d0e91b67efbab79f733ddf19e916
[ "BSD-3-Clause" ]
62
2018-11-30T05:53:32.000Z
2022-03-20T13:15:22.000Z
example/wrapper/common/5001-get_tgpio_digital.py
krasin/xArm-Python-SDK-ssh
9c854e8bfa78d0e91b67efbab79f733ddf19e916
[ "BSD-3-Clause" ]
25
2019-08-12T18:53:41.000Z
2021-12-28T10:17:39.000Z
example/wrapper/common/5001-get_tgpio_digital.py
krasin/xArm-Python-SDK-ssh
9c854e8bfa78d0e91b67efbab79f733ddf19e916
[ "BSD-3-Clause" ]
43
2019-01-03T04:47:13.000Z
2022-03-18T06:40:59.000Z
#!/usr/bin/env python3 # Software License Agreement (BSD License) # # Copyright (c) 2019, UFACTORY, Inc. # All rights reserved. # # Author: Vinman <vinman.wen@ufactory.cc> <vinman.cub@gmail.com> """ Example: Get GPIO Digital """ import os import sys import time sys.path.append(os.path.join(os.path.dirname(__file__), ...
23.44
70
0.648464
175
1,172
4.251429
0.451429
0.064516
0.048387
0.026882
0
0
0
0
0
0
0
0.051064
0.197952
1,172
49
71
23.918367
0.740426
0.176621
0
0
0
0
0.135021
0.024262
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.066667
0
0
0
null
0
0
0
0
0
0
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
1
0
b560237f424501f39681590b33c61e9846076455
2,429
py
Python
sdk/python/pulumi_lxd/__init__.py
soupdiver/pulumi-lxd
258395aefd6a4cf138d470d7de70babed3310063
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_lxd/__init__.py
soupdiver/pulumi-lxd
258395aefd6a4cf138d470d7de70babed3310063
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_lxd/__init__.py
soupdiver/pulumi-lxd
258395aefd6a4cf138d470d7de70babed3310063
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from . import _utilities import typing # Export this package's modules as members: from .cached_image import * from .container import *...
19.58871
87
0.627419
265
2,429
5.649057
0.290566
0.078156
0.088176
0.09352
0.180361
0.180361
0
0
0
0
0
0.000503
0.181968
2,429
123
88
19.747967
0.752894
0.101688
0
0.278261
1
0
0.734375
0.215533
0
0
0
0
0
1
0
false
0
0.147826
0
0.147826
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
b56057ff5dbd4cdc1d25d244ff87b18b26455492
544
py
Python
49-group anagrams/main.py
ytong82/leetcode
34e08c430d654b14b1608211f74702f57e507189
[ "Apache-2.0" ]
null
null
null
49-group anagrams/main.py
ytong82/leetcode
34e08c430d654b14b1608211f74702f57e507189
[ "Apache-2.0" ]
null
null
null
49-group anagrams/main.py
ytong82/leetcode
34e08c430d654b14b1608211f74702f57e507189
[ "Apache-2.0" ]
null
null
null
class Solution: def groupAnagrams(self, strs): l = len(strs) if l == 0: return [] map = dict() for i in range(l): key = ''.join(sorted(strs[i])) if key in map.keys(): map[key].append(i) else: map[key] = ...
22.666667
51
0.443015
68
544
3.544118
0.485294
0.062241
0.06639
0.099585
0
0
0
0
0
0
0
0.00304
0.395221
544
24
52
22.666667
0.729483
0
0
0
0
0
0.033028
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.210526
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b561af012e5087c35cc2997a33fe02fbbdb5ae5d
2,429
py
Python
vending.py
mit-dci/litvending
28f8f2b51691eac7c69de153aafbe72663d9892c
[ "MIT" ]
1
2018-06-20T01:42:54.000Z
2018-06-20T01:42:54.000Z
vending.py
mit-dci/litvending
28f8f2b51691eac7c69de153aafbe72663d9892c
[ "MIT" ]
null
null
null
vending.py
mit-dci/litvending
28f8f2b51691eac7c69de153aafbe72663d9892c
[ "MIT" ]
1
2022-02-15T06:48:15.000Z
2022-02-15T06:48:15.000Z
#!/usr/bin/env python3 import os import time import sys gpio = None try: import RPi.GPIO gpio = RPi.GPIO except: print('RPi library not found. We\'re probably on a dev machine. Moving on...') import lvconfig import litrpc # This could be more efficient, we're making a lot more requests than we need to. def che...
26.11828
136
0.669823
393
2,429
4.012723
0.445293
0.038047
0.022828
0.020292
0.076094
0.026633
0.026633
0
0
0
0
0.004639
0.201317
2,429
92
137
26.402174
0.808247
0.186085
0
0.089552
0
0
0.229908
0
0
0
0
0
0
1
0.029851
false
0
0.089552
0
0.134328
0.149254
0
0
0
null
0
0
0
0
0
0
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
1
0
b563b116c6a5501886a56db83d13d435b9bc033e
3,070
py
Python
python-study/2.py
yu1k/python-study
0bf2e2927696f58f36c05602446ecd71e31596e3
[ "MIT" ]
null
null
null
python-study/2.py
yu1k/python-study
0bf2e2927696f58f36c05602446ecd71e31596e3
[ "MIT" ]
null
null
null
python-study/2.py
yu1k/python-study
0bf2e2927696f58f36c05602446ecd71e31596e3
[ "MIT" ]
null
null
null
#*** 文字列 *** #Pythonで文字列を作るには, ' (シングルクォーテーション)もしくは, " (ダブルクォーテーション)で囲む. print('some eggs') print("some eggs") print('some eggs\nsome eggs') #a == b は aとb同値であればTrue, そうでなければFalseを返す演算子です print('some eggs' == "some eggs") #True #'...' の中で ' ,または "..." の中で " を使う場合には, #各記号のまえに \ (バックスラッシュ) を入力する. print("I don't Kno...
17.150838
59
0.70684
361
3,070
6
0.484765
0.049862
0.024007
0.016621
0.096491
0.06048
0.042475
0.042475
0.042475
0.042475
0
0.038788
0.118241
3,070
179
60
17.150838
0.761359
0.629316
0
0.090909
0
0
0.297401
0
0
0
0
0
0
1
0
false
0
0
0
0
0.818182
0
0
0
null
0
0
0
0
0
0
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
b5656eebed6c2a64ded792a644ba9d21bbe79fe1
570
py
Python
tests/test_delete_query.py
RaduG/fluentql
653a77bb95b40724eb58744f5f8dbed9c88eaebd
[ "MIT" ]
4
2020-04-15T10:50:03.000Z
2021-07-22T12:23:50.000Z
tests/test_delete_query.py
RaduG/fluentql
653a77bb95b40724eb58744f5f8dbed9c88eaebd
[ "MIT" ]
2
2020-05-24T08:54:56.000Z
2020-05-24T09:04:31.000Z
tests/test_delete_query.py
RaduG/fluentql
653a77bb95b40724eb58744f5f8dbed9c88eaebd
[ "MIT" ]
null
null
null
import pytest from fluentql import GenericSQLDialect, Q from fluentql.types import Table test_table = Table("test_table") @pytest.fixture def dialect_cls(): return GenericSQLDialect @pytest.mark.parametrize( ["q", "expected"], [ (Q.delete().from_(test_table), "delete from test_table;"), ...
21.111111
73
0.652632
69
570
5.188406
0.347826
0.175978
0.156425
0.212291
0.192737
0
0
0
0
0
0
0.017937
0.217544
570
26
74
21.923077
0.784753
0
0
0
0
0
0.150877
0
0
0
0
0
0.052632
1
0.105263
false
0
0.157895
0.052632
0.315789
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
b56b02915f5cdfb61babcb70fc1c32bc2970b2fa
597
py
Python
Section02/ParsingChart.py
fosterleejoe/Developing-NLP-Applications-Using-NLTK-in-Python
f2cac32c02d0632fb89f32446388ef15d9926bbc
[ "MIT" ]
67
2017-11-23T18:48:47.000Z
2022-03-29T08:03:25.000Z
Section02/ParsingChart.py
fosterleejoe/Developing-NLP-Applications-Using-NLTK-in-Python
f2cac32c02d0632fb89f32446388ef15d9926bbc
[ "MIT" ]
null
null
null
Section02/ParsingChart.py
fosterleejoe/Developing-NLP-Applications-Using-NLTK-in-Python
f2cac32c02d0632fb89f32446388ef15d9926bbc
[ "MIT" ]
49
2017-12-06T16:10:14.000Z
2021-11-25T09:02:49.000Z
from nltk.grammar import CFG from nltk.parse.chart import ChartParser, BU_LC_STRATEGY grammar = CFG.fromstring(""" S -> T1 T4 T1 -> NNP VBZ T2 -> DT NN T3 -> IN NNP T4 -> T3 | T2 T3 NNP -> 'Tajmahal' | 'Agra' | 'Bangalore' | 'Karnataka' VBZ -> 'is' IN -> 'in' | 'of' DT -> 'the' NN -> 'capital' """) cp = ChartParser(g...
22.961538
56
0.676717
90
597
4.433333
0.511111
0.0401
0.06015
0
0
0
0
0
0
0
0
0.017857
0.155779
597
25
57
23.88
0.77381
0
0
0
0
0
0.386935
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b56b4c5922bce77528a0bba1e6eec4b2613a9cca
62
py
Python
msm_pele/AdaptivePELE/docs/makehtml.py
danielSoler93/msm_pele
80b187ceb6446059f6c7b0dd2c0968f0db4a17a1
[ "MIT" ]
13
2017-06-14T14:42:22.000Z
2022-01-25T08:46:04.000Z
msm_pele/AdaptivePELE/docs/makehtml.py
danielSoler93/msm_pele
80b187ceb6446059f6c7b0dd2c0968f0db4a17a1
[ "MIT" ]
16
2018-01-16T01:32:02.000Z
2021-02-19T17:05:12.000Z
msm_pele/AdaptivePELE/docs/makehtml.py
danielSoler93/msm_pele
80b187ceb6446059f6c7b0dd2c0968f0db4a17a1
[ "MIT" ]
8
2018-02-20T10:47:07.000Z
2022-03-21T12:28:07.000Z
from sphinx import cmdline import sys cmdline.main(sys.argv)
12.4
26
0.806452
10
62
5
0.7
0
0
0
0
0
0
0
0
0
0
0
0.129032
62
4
27
15.5
0.925926
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b56c623a069eaa852720532015deec19073b3d1a
5,526
py
Python
sirbot/slack/wrapper.py
Ovvovy/sirbot-slack
2d27e49cfbc2cb12e87ef3814823d2ad68d0a788
[ "MIT" ]
7
2017-05-06T11:37:25.000Z
2018-11-22T09:46:32.000Z
sirbot/slack/wrapper.py
Ovvovy/sirbot-slack
2d27e49cfbc2cb12e87ef3814823d2ad68d0a788
[ "MIT" ]
19
2017-05-07T16:25:02.000Z
2017-09-22T08:02:59.000Z
sirbot/slack/wrapper.py
Ovvovy/sirbot-slack
2d27e49cfbc2cb12e87ef3814823d2ad68d0a788
[ "MIT" ]
3
2017-05-06T11:37:28.000Z
2017-07-07T09:32:54.000Z
import logging from .store.user import User from .errors import SlackInactiveDispatcher, SlackNoThread logger = logging.getLogger(__name__) class SlackWrapper: """ A class to compose all available functionality of the slack plugin. An instance is offered to all incoming message of all the plugins to ...
32.892857
79
0.596091
602
5,526
5.33887
0.19103
0.037337
0.047915
0.053205
0.398569
0.274113
0.247978
0.21313
0.21313
0.187617
0
0.000266
0.31958
5,526
167
80
33.08982
0.854521
0.05067
0
0.288889
0
0
0.027227
0
0
0
0
0
0
1
0.066667
false
0
0.033333
0
0.122222
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
0
0
1
0
b56d3d57d3b008ef213624e96067cf823658819f
4,321
py
Python
rc/returninfo/classifier.py
ddangelorb/gthbmining
a7d18623cd14a2ffd2508a4bb6a71b06a5f26215
[ "MIT" ]
4
2019-09-17T02:53:51.000Z
2020-10-23T14:48:16.000Z
rc/returninfo/classifier.py
ddangelorb/gthbmining
a7d18623cd14a2ffd2508a4bb6a71b06a5f26215
[ "MIT" ]
null
null
null
rc/returninfo/classifier.py
ddangelorb/gthbmining
a7d18623cd14a2ffd2508a4bb6a71b06a5f26215
[ "MIT" ]
null
null
null
import warnings warnings.filterwarnings('ignore') #ignore warnings to print values properly import logging import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import ListedColormap from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeClassif...
50.244186
190
0.682249
526
4,321
5.385932
0.288973
0.022944
0.019061
0.031768
0.249912
0.235792
0.228733
0.133427
0.133427
0.133427
0
0.004342
0.200417
4,321
85
191
50.835294
0.81563
0.076603
0
0
0
0
0.228586
0.044461
0
0
0
0
0
1
0.0625
false
0
0.203125
0
0.296875
0.140625
0
0
0
null
0
0
0
0
0
0
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
1
0
b56d8510f015d44a803fb673140f624e3488a4d1
326
py
Python
pctiler/pctiler/colormaps/mtbs.py
hobu/planetary-computer-apis
27f5b8ce78737f43b306fa4738007c207a329b5b
[ "MIT" ]
1
2021-11-02T16:13:43.000Z
2021-11-02T16:13:43.000Z
pctiler/pctiler/colormaps/mtbs.py
moradology/planetary-computer-apis-1
81a666e843cd0d8592708b35e1360fb68815816d
[ "MIT" ]
null
null
null
pctiler/pctiler/colormaps/mtbs.py
moradology/planetary-computer-apis-1
81a666e843cd0d8592708b35e1360fb68815816d
[ "MIT" ]
null
null
null
from typing import Dict, List mtbs_colormaps: Dict[str, Dict[int, List[int]]] = { "mtbs-severity": { 0: [0, 0, 0, 0], 1: [0, 100, 0, 255], 2: [127, 255, 212, 255], 3: [255, 255, 0, 255], 4: [255, 0, 0, 255], 5: [127, 255, 0, 255], 6: [255, 255, 255, 255], ...
23.285714
51
0.435583
50
326
2.82
0.42
0.070922
0.06383
0.056738
0
0
0
0
0
0
0
0.336493
0.352761
326
13
52
25.076923
0.331754
0
0
0
0
0
0.039877
0
0
0
0
0
0
1
0
true
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
b56dd907e3a9ba7c7134351a3ded86b0fead6823
183
py
Python
run.py
sgilhuly/mire
8ac07af9083831a03a1901c1bb655932111ae4cf
[ "MIT" ]
2
2020-06-15T10:51:43.000Z
2020-08-02T07:38:44.000Z
run.py
sgilhuly/mire
8ac07af9083831a03a1901c1bb655932111ae4cf
[ "MIT" ]
null
null
null
run.py
sgilhuly/mire
8ac07af9083831a03a1901c1bb655932111ae4cf
[ "MIT" ]
1
2018-05-15T04:45:37.000Z
2018-05-15T04:45:37.000Z
import sys from app import app, socketio if __name__ == "__main__": if len(sys.argv) > 1: port = int(sys.argv[1]) else: port=5000 socketio.run(app, host="0.0.0.0", port=port)
18.3
45
0.661202
33
183
3.424242
0.545455
0.053097
0.141593
0
0
0
0
0
0
0
0
0.065789
0.169399
183
10
45
18.3
0.677632
0
0
0
0
0
0.081522
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
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b56fc2f3040d889070f9fe524690dd7b2af07b3c
1,004
py
Python
pyFoam/extractForces.py
mjsauvinen/P4US
ba7bbc77a6e482f612ba5aa5f021a41fcbb23345
[ "MIT" ]
4
2017-06-10T13:34:29.000Z
2021-10-08T14:33:43.000Z
pyFoam/extractForces.py
mjsauvinen/P4US
ba7bbc77a6e482f612ba5aa5f021a41fcbb23345
[ "MIT" ]
8
2018-07-10T12:00:49.000Z
2021-09-16T13:58:59.000Z
pyFoam/extractForces.py
mjsauvinen/P4US
ba7bbc77a6e482f612ba5aa5f021a41fcbb23345
[ "MIT" ]
6
2019-05-03T07:29:12.000Z
2022-01-21T03:10:27.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import numpy as np import pylab as pl from txtTools import openIOFile # =*=*=*=* FUNCTION DEFINITIONS *=*=*=*=*=*=*=*=*=*=*=* def isolateValues( line , stripChars ): v = [] sl = line.split() for i in xrange(len(sl)): for sc in stripChars: sl[i]...
20.489796
55
0.531873
150
1,004
3.56
0.48
0.089888
0.022472
0.044944
0
0
0
0
0
0
0
0.014907
0.198207
1,004
49
56
20.489796
0.648447
0.168327
0
0
0
0
0.054152
0
0
0
0
0
0
1
0.030303
false
0
0.121212
0
0.181818
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
0
0
1
0
b5708d1fb897807ff8443226c727f7b6941ec2ec
580
py
Python
fluentcheck/tests/tests_is/test_basic_checks_is.py
jstoebel/fluentcheck
9258dab4f46776b5df50528f5028ce2d11a443c5
[ "MIT" ]
83
2018-05-31T13:21:06.000Z
2022-03-20T14:27:49.000Z
fluentcheck/tests/tests_is/test_basic_checks_is.py
jstoebel/fluentcheck
9258dab4f46776b5df50528f5028ce2d11a443c5
[ "MIT" ]
20
2019-02-10T15:07:44.000Z
2021-04-02T13:18:52.000Z
fluentcheck/tests/tests_is/test_basic_checks_is.py
jstoebel/fluentcheck
9258dab4f46776b5df50528f5028ce2d11a443c5
[ "MIT" ]
11
2019-02-16T21:33:11.000Z
2022-03-25T03:39:52.000Z
import unittest from fluentcheck import Is from fluentcheck.exceptions import CheckError # noinspection PyStatementEffect class TestIsBasicChecks(unittest.TestCase): def test_is_none_pass(self): self.assertIsInstance(Is(None).none, Is) def test_is_none_fail(self): with self.assertRaises(Chec...
26.363636
63
0.712069
77
580
5.155844
0.311688
0.105793
0.09068
0.065491
0.556675
0.392947
0.221662
0.221662
0
0
0
0
0.201724
580
21
64
27.619048
0.857451
0.051724
0
0.142857
0
0
0.047445
0
0
0
0
0
0.285714
1
0.285714
false
0.142857
0.214286
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
1
0
1
0
0
1
0
0
3
b57121e74eb14c59a54321fc4b77f18535e2b4a3
414
py
Python
back_to_back/apps/calculator/migrations/0003_calculation_last_occurrence.py
mhotwagner/back-to-back
ce8e0a58406d4fd6c20ecc71b8d1c49e6851f752
[ "MIT" ]
null
null
null
back_to_back/apps/calculator/migrations/0003_calculation_last_occurrence.py
mhotwagner/back-to-back
ce8e0a58406d4fd6c20ecc71b8d1c49e6851f752
[ "MIT" ]
null
null
null
back_to_back/apps/calculator/migrations/0003_calculation_last_occurrence.py
mhotwagner/back-to-back
ce8e0a58406d4fd6c20ecc71b8d1c49e6851f752
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2018-02-18 17:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('calculator', '0002_calculation_add_occurrences'), ] operations = [ migrations.AddField( model_name='calculation', na...
21.789474
59
0.625604
43
414
5.883721
0.813953
0
0
0
0
0
0
0
0
0
0
0.062706
0.268116
414
18
60
23
0.772277
0.108696
0
0
1
0
0.185286
0.087193
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b57208d1dd6013bfe4af88d2691bee115d3cc089
627
py
Python
api/interests/models.py
sorinburghiu2323/Supervisio
df0b682d031914904547efafb3ec4d060bf96526
[ "MIT" ]
null
null
null
api/interests/models.py
sorinburghiu2323/Supervisio
df0b682d031914904547efafb3ec4d060bf96526
[ "MIT" ]
null
null
null
api/interests/models.py
sorinburghiu2323/Supervisio
df0b682d031914904547efafb3ec4d060bf96526
[ "MIT" ]
null
null
null
from django.db import models from django.core.exceptions import ValidationError from rest_framework.exceptions import ValidationError as DRFValidationError from api.models import TimestampedModel class Interest(TimestampedModel): name = models.CharField(max_length=255, unique=True) def __str__(self): ...
29.857143
75
0.700159
71
627
6.084507
0.549296
0.055556
0.143519
0
0
0
0
0
0
0
0
0.006036
0.207337
627
20
76
31.35
0.863179
0
0
0
0
0
0.041467
0
0
0
0
0
0
1
0.133333
false
0
0.266667
0.066667
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b572d60eef0c25ee409f0d4d3f9822ab96421622
3,652
py
Python
src/eddington_gui/boxes/initial_guess_box.py
tsarpaul/eddington-gui
6022c28fde22a97d97e0bcbe357a45d168bdf251
[ "Apache-2.0" ]
null
null
null
src/eddington_gui/boxes/initial_guess_box.py
tsarpaul/eddington-gui
6022c28fde22a97d97e0bcbe357a45d168bdf251
[ "Apache-2.0" ]
null
null
null
src/eddington_gui/boxes/initial_guess_box.py
tsarpaul/eddington-gui
6022c28fde22a97d97e0bcbe357a45d168bdf251
[ "Apache-2.0" ]
null
null
null
"""Box for specifying initial guess for the fitting algorithm.""" from typing import Callable, List, Optional import numpy as np import toga from eddington import EddingtonException from toga.style import Pack from eddington_gui.boxes.line_box import LineBox from eddington_gui.consts import SMALL_INPUT_WIDTH class ...
34.780952
87
0.618839
469
3,652
4.541578
0.230277
0.214085
0.098592
0.140845
0.402347
0.288263
0.233803
0.200939
0.164319
0.123005
0
0.006907
0.286418
3,652
104
88
35.115385
0.810437
0.158543
0
0.066667
0
0
0.031501
0
0
0
0
0
0
1
0.12
false
0
0.093333
0
0.373333
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
b5742eb898932211cf75e05e216d0c94c86949cb
418
py
Python
examples/select.py
GBS3/cues
09bce776f9275b71a4028e5c59103e45d81ebed6
[ "MIT" ]
1
2021-09-13T02:29:43.000Z
2021-09-13T02:29:43.000Z
examples/select.py
giosali/cues
09bce776f9275b71a4028e5c59103e45d81ebed6
[ "MIT" ]
null
null
null
examples/select.py
giosali/cues
09bce776f9275b71a4028e5c59103e45d81ebed6
[ "MIT" ]
1
2021-05-26T04:35:47.000Z
2021-05-26T04:35:47.000Z
""" examples.select =============== An example that demonstrates the Select child class. """ from cues.cues import Select def main(): name = 'programming_language' message = 'Which of these is your favorite programming language?' options = ['Python', 'JavaScript', 'C++', 'C#'] cue = Select(name, me...
18.173913
69
0.629187
48
418
5.291667
0.6875
0.149606
0
0
0
0
0
0
0
0
0
0
0.205742
418
22
70
19
0.76506
0.203349
0
0
0
0
0.313846
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b576d5aece893c6e7258835bd199ea37f39fabca
6,685
py
Python
ckanext/satreasury/tests/test_plugin.py
OpenUpSA/ckanext-satreasury
b6e71009ee5fdfe8cc477304b10536b5af614de6
[ "MIT" ]
1
2019-09-08T08:56:54.000Z
2019-09-08T08:56:54.000Z
ckanext/satreasury/tests/test_plugin.py
vulekamali/ckanext-satreasury
b6e71009ee5fdfe8cc477304b10536b5af614de6
[ "MIT" ]
3
2020-03-24T17:05:46.000Z
2021-02-02T22:01:44.000Z
ckanext/satreasury/tests/test_plugin.py
vulekamali/ckanext-satreasury
b6e71009ee5fdfe8cc477304b10536b5af614de6
[ "MIT" ]
1
2019-05-30T19:30:22.000Z
2019-05-30T19:30:22.000Z
import json import unittest from functools import partial import ckan.model as model import responses from ckanext.satreasury.plugin import SATreasuryDatasetPlugin from mock import MagicMock, Mock, PropertyMock, patch TRAVIS_ENDPOINT = "https://api.travis-ci.org/repo/vulekamali%2Fstatic-budget-portal" TRAVIS_COMMIT_M...
43.129032
219
0.57457
680
6,685
5.491176
0.179412
0.032137
0.044189
0.047134
0.778254
0.746652
0.738618
0.738618
0.712373
0.698982
0
0.022522
0.322513
6,685
154
220
43.409091
0.801943
0
0
0.723404
0
0.092199
0.318325
0.055647
0
0
0
0
0.035461
1
0.042553
false
0
0.049645
0
0.099291
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
b57c5c0aef7e6b76df1071bc270b08f415d805ee
2,011
py
Python
src/kbpo/db_evaluation.py
arunchaganty/kbp-online
9f8763d8f4bfb1fb8a01f1f4f506f56625dd38d8
[ "MIT" ]
4
2017-08-09T14:05:48.000Z
2018-12-25T01:34:23.000Z
src/kbpo/db_evaluation.py
arunchaganty/kbp-online
9f8763d8f4bfb1fb8a01f1f4f506f56625dd38d8
[ "MIT" ]
12
2017-01-19T23:18:18.000Z
2018-12-23T18:57:54.000Z
src/kbpo/db_evaluation.py
arunchaganty/kbp-online
9f8763d8f4bfb1fb8a01f1f4f506f56625dd38d8
[ "MIT" ]
2
2017-08-08T09:48:20.000Z
2018-07-09T09:12:43.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Routines to evaluate the system. """ import logging from collections import Counter from . import db logger = logging.getLogger(__name__) def get_exhaustive_samples(corpus_tag): """ Use the document_sample table to get which documents have been exhaustively...
40.22
147
0.635007
292
2,011
4.164384
0.308219
0.032895
0.019737
0.029605
0.089638
0.034539
0
0
0
0
0
0.006693
0.257086
2,011
49
148
41.040816
0.807229
0.1273
0
0.058824
0
0.088235
0.580682
0.012146
0
0
0
0.020408
0
1
0.058824
false
0
0.088235
0
0.205882
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
b57f76841f0c85c583ef9797290a21bbf823a12e
2,212
py
Python
model_metadata/utils.py
csdms/model_metadata
62acab7ae2a152bec64bc1f52751f7a8aa1d4184
[ "MIT" ]
1
2021-05-25T14:38:10.000Z
2021-05-25T14:38:10.000Z
model_metadata/utils.py
csdms/model_metadata
62acab7ae2a152bec64bc1f52751f7a8aa1d4184
[ "MIT" ]
3
2018-04-05T21:50:24.000Z
2021-04-02T03:54:04.000Z
model_metadata/utils.py
csdms/model_metadata
62acab7ae2a152bec64bc1f52751f7a8aa1d4184
[ "MIT" ]
null
null
null
#! /usr/bin/env python import os import sys from .api import install as install_mmd def model_data_dir(name, datarootdir=None): """Get a model's data dir. Parameters ---------- name : str The name of the model. Returns ------- str The absolute path to the data directory ...
26.97561
66
0.574593
252
2,212
4.924603
0.277778
0.070911
0.04029
0.053183
0.357776
0.357776
0.26108
0.196616
0.196616
0.196616
0
0.002015
0.326854
2,212
81
67
27.308642
0.83143
0.084087
0
0.32
0
0
0.037821
0
0
0
0
0
0
1
0.1
false
0
0.14
0
0.34
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
0
0
1
0
b582e5842d21e445f1825c2debc8042c425aedda
8,060
py
Python
solution/serverlist.py
ksh0165/lhms
8848a74ac5c0f309e3ab28583af4bd574575ab8a
[ "Apache-2.0" ]
null
null
null
solution/serverlist.py
ksh0165/lhms
8848a74ac5c0f309e3ab28583af4bd574575ab8a
[ "Apache-2.0" ]
null
null
null
solution/serverlist.py
ksh0165/lhms
8848a74ac5c0f309e3ab28583af4bd574575ab8a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import os import subprocess import re import pymysql from datetime import datetime strPath = r"/etc/webmin/servers";# file dir files = os.listdir(strPath) lists = [];# file lists host = []; user = []; pwd = []; val = 0;# extractServer use test = "";# grep host test1 = "";# grep user test2 = "";# gre...
42.198953
150
0.458561
863
8,060
4.274623
0.202781
0.056926
0.056926
0.029818
0.278124
0.261317
0.261317
0.208187
0.149092
0.088371
0
0.017614
0.25335
8,060
190
151
42.421053
0.595381
0.220596
0
0.140741
0
0.007407
0.230173
0.093937
0
0
0
0
0
1
0.02963
false
0.02963
0.037037
0
0.096296
0.259259
0
0
0
null
0
0
0
0
0
0
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
1
0
b58403121af69cb7645522d11585b8ed10c27038
579
py
Python
algorithms/tree_level_width.py
danielhgasparin/algorithms-python
4b27c3cddd22762599fe55d3b760f388733c4fa7
[ "MIT" ]
null
null
null
algorithms/tree_level_width.py
danielhgasparin/algorithms-python
4b27c3cddd22762599fe55d3b760f388733c4fa7
[ "MIT" ]
null
null
null
algorithms/tree_level_width.py
danielhgasparin/algorithms-python
4b27c3cddd22762599fe55d3b760f388733c4fa7
[ "MIT" ]
null
null
null
"""Tree level width module.""" from collections import deque def tree_level_width(tree): """Return a list containing the width of each level of the specified tree.""" result = [] count = 0 queue = deque([tree.root, "s"]) while len(queue) > 0: node = queue.popleft() if node == "s": ...
26.318182
81
0.504318
66
579
4.393939
0.515152
0.062069
0.096552
0
0
0
0
0
0
0
0
0.014006
0.38342
579
22
82
26.318182
0.798319
0.165803
0
0.222222
0
0
0.006342
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.166667
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
0
0
1
0
b5843a61298c91586c4a21bf7567496274b5cfe9
592
py
Python
tests/utils/test_bbox.py
Swall0w/clib
46f659783d5a0a6ec5994c3c707c1cc8a7934385
[ "MIT" ]
1
2017-08-27T00:01:27.000Z
2017-08-27T00:01:27.000Z
tests/utils/test_bbox.py
Swall0w/clib
46f659783d5a0a6ec5994c3c707c1cc8a7934385
[ "MIT" ]
49
2017-08-20T02:09:26.000Z
2017-12-31T11:58:27.000Z
tests/utils/test_bbox.py
Swall0w/clib
46f659783d5a0a6ec5994c3c707c1cc8a7934385
[ "MIT" ]
1
2017-12-08T08:31:38.000Z
2017-12-08T08:31:38.000Z
import os import unittest import clib from clib.utils import Box class BboxTest(unittest.TestCase): def setUp(self): self.bbox = Box(50, 50, 40, 60) def test_vi_bbox(self): self.assertEqual(self.bbox.int_left_top(), (30, 20)) self.assertEqual(self.bbox.int_right_bottom(), (70, 80)) ...
26.909091
64
0.646959
89
592
4.101124
0.404494
0.153425
0.260274
0.315068
0.328767
0.186301
0
0
0
0
0
0.071579
0.197635
592
21
65
28.190476
0.696842
0
0
0
0
0
0.013514
0
0
0
0
0
0.3125
1
0.125
false
0
0.25
0
0.4375
0
0
0
0
null
0
1
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
2
b586010d4e3392e2a65d444fb3bb7f33c20e15b9
67,167
py
Python
iriusrisk-python-client-lib/iriusrisk_python_client_lib/api/users_api.py
iriusrisk/iriusrisk-python-client-lib
4912706cd1e5c0bc555dbc7da02fb64cbeab3b18
[ "Apache-2.0" ]
null
null
null
iriusrisk-python-client-lib/iriusrisk_python_client_lib/api/users_api.py
iriusrisk/iriusrisk-python-client-lib
4912706cd1e5c0bc555dbc7da02fb64cbeab3b18
[ "Apache-2.0" ]
null
null
null
iriusrisk-python-client-lib/iriusrisk_python_client_lib/api/users_api.py
iriusrisk/iriusrisk-python-client-lib
4912706cd1e5c0bc555dbc7da02fb64cbeab3b18
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ IriusRisk API Products API # noqa: E501 OpenAPI spec version: 1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six from iriusrisk_py...
46.322069
390
0.634448
8,210
67,167
4.939342
0.025213
0.045768
0.030578
0.023081
0.98841
0.985771
0.98153
0.973639
0.959139
0.946168
0
0.014725
0.280093
67,167
1,449
391
46.354037
0.823924
0.377149
0
0.790668
1
0
0.218346
0.075779
0
0
0
0
0
1
0.034048
false
0
0.005044
0
0.089533
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
b5888f3a509cecfa1613e21a4254b8b55ec9d01b
1,246
py
Python
gcd/lop.py
bthate/genocide
8de7a2cccee7315ae6cf5661738ba1335e30a5ba
[ "DOC" ]
null
null
null
gcd/lop.py
bthate/genocide
8de7a2cccee7315ae6cf5661738ba1335e30a5ba
[ "DOC" ]
null
null
null
gcd/lop.py
bthate/genocide
8de7a2cccee7315ae6cf5661738ba1335e30a5ba
[ "DOC" ]
null
null
null
# This file is placed in the Public Domain. import queue import threading from .dpt import Dispatcher from .obj import Object from .thr import launch from .utl import get_exception class Restart(Exception): pass class Stop(Exception): pass class Loop(Object): def __init__(self): super().__...
18.878788
43
0.544944
142
1,246
4.704225
0.394366
0.053892
0.053892
0
0
0
0
0
0
0
0
0
0.360353
1,246
65
44
19.169231
0.838143
0.032905
0
0.106383
0
0
0.004988
0
0
0
0
0
0
1
0.170213
false
0.06383
0.12766
0
0.382979
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
b58c5490649547fd191436f9730cc2a2c51f3b00
3,619
py
Python
src/utils.py
Flantropy/TelegramChatAnalyzer
88e879fa771361d47292721ff8adfd82a74e9b93
[ "MIT" ]
null
null
null
src/utils.py
Flantropy/TelegramChatAnalyzer
88e879fa771361d47292721ff8adfd82a74e9b93
[ "MIT" ]
null
null
null
src/utils.py
Flantropy/TelegramChatAnalyzer
88e879fa771361d47292721ff8adfd82a74e9b93
[ "MIT" ]
null
null
null
import json import logging from io import BytesIO from typing import List from typing import Optional import matplotlib.pyplot as plt import pandas as pd import seaborn as sns from telegram import InputMediaPhoto def __convert_plot_to_telegram_photo(plot) -> InputMediaPhoto: with BytesIO() as buffer: plo...
30.411765
94
0.671733
464
3,619
4.950431
0.318966
0.095777
0.031345
0.054854
0.26121
0.182847
0.131911
0.05616
0.05616
0
0
0.005622
0.213595
3,619
118
95
30.669492
0.801476
0.049738
0
0.096774
0
0
0.091765
0
0
0
0
0
0
1
0.086022
false
0
0.096774
0
0.290323
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
0
0
1
0
b58c5890c2ea7e046b469064a62ceb8bea1ea212
2,215
py
Python
pyxrd/calculations/improve.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
27
2018-06-15T15:28:18.000Z
2022-03-10T12:23:50.000Z
pyxrd/calculations/improve.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
22
2018-06-14T08:29:16.000Z
2021-07-05T13:33:44.000Z
pyxrd/calculations/improve.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
8
2019-04-13T13:03:51.000Z
2021-06-19T09:29:11.000Z
# coding=UTF-8 # ex:ts=4:sw=4:et=on # Copyright (c) 2013, Mathijs Dumon # All rights reserved. # Complete license can be found in the LICENSE file. from io import StringIO from scipy.optimize import fmin_l_bfgs_b from .exceptions import wrap_exceptions def setup_project(projectf): from pyxrd.file_parsers.json_...
27.012195
86
0.648307
254
2,215
5.484252
0.42126
0.043073
0.017229
0.014358
0.315865
0.26705
0.26705
0.26705
0.18234
0.18234
0
0.005643
0.27991
2,215
81
87
27.345679
0.867712
0.163883
0
0.340426
0
0
0
0
0
0
0
0
0
1
0.06383
false
0
0.170213
0
0.319149
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
0
0
1
0
b58ccbfff32cc054d600f5f7877ef4514f099933
931
py
Python
enforceTH.py
Multivalence/enforceTypeHint
fb87fd48baa525044516ddbdf2160128e03fb7b7
[ "MIT" ]
null
null
null
enforceTH.py
Multivalence/enforceTypeHint
fb87fd48baa525044516ddbdf2160128e03fb7b7
[ "MIT" ]
null
null
null
enforceTH.py
Multivalence/enforceTypeHint
fb87fd48baa525044516ddbdf2160128e03fb7b7
[ "MIT" ]
1
2020-12-16T18:34:19.000Z
2020-12-16T18:34:19.000Z
import functools def enforceType(func): @functools.wraps(func) def wrapper(*args): wrapper.has_been_called = True x = func.__annotations__ t = [x[i] for i in x if i != 'return'] if len(args) != len(t): raise TypeError("Missing required positional arguments and/or annotations.") for i in range(...
23.275
94
0.664876
124
931
4.927419
0.451613
0.032733
0.045827
0.065466
0
0
0
0
0
0
0
0
0.221267
931
39
95
23.871795
0.842759
0
0
0.076923
0
0
0.228786
0
0
0
0
0
0
1
0.076923
false
0
0.038462
0
0.192308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b591052db3d50aa3c4ca4b5f6cbba2c5ca1708a6
3,239
py
Python
examples/DataRecording/runDataRecording.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
4
2019-03-14T05:30:59.000Z
2021-11-21T20:05:22.000Z
examples/DataRecording/runDataRecording.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
null
null
null
examples/DataRecording/runDataRecording.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
4
2019-02-14T14:30:46.000Z
2021-01-05T09:46:19.000Z
# encoding: UTF-8 from __future__ import print_function import sys try: reload(sys) # Python 2 sys.setdefaultencoding('utf8') except NameError: pass # Python 3 import multiprocessing from time import sleep from datetime import datetime, time from cyvn.trader.vtEvent import EVENT_LOG, EVENT_REC...
26.120968
77
0.562211
346
3,239
5.135838
0.378613
0.033765
0.039392
0.018571
0.075408
0.075408
0.075408
0.075408
0.075408
0.075408
0
0.013502
0.268293
3,239
123
78
26.333333
0.736287
0.12967
0
0.151899
0
0
0.041096
0
0
0
0
0
0
1
0.037975
false
0.012658
0.126582
0
0.164557
0.037975
0
0
0
null
0
0
0
0
0
0
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
1
0
b5913a9cb235f8d0707df68f9171ff05c9b0c7aa
232
py
Python
2.4 lcm.py
rahul263-stack/PROJECT-Dump
d8b1cfe0da8cad9fe2f3bbd427334b979c7d2c09
[ "MIT" ]
1
2020-04-06T04:41:56.000Z
2020-04-06T04:41:56.000Z
2.4 lcm.py
rahul263-stack/quarantine
d8b1cfe0da8cad9fe2f3bbd427334b979c7d2c09
[ "MIT" ]
null
null
null
2.4 lcm.py
rahul263-stack/quarantine
d8b1cfe0da8cad9fe2f3bbd427334b979c7d2c09
[ "MIT" ]
null
null
null
# Python3 a, b = [int(i) for i in input().split()] def euclid_gcd(a, b): if b == 0: return a c = a%b return euclid_gcd(b, c) if a>b: gcd = euclid_gcd(a, b) else: gcd = euclid_gcd(b, a) print(a*b//gcd)
14.5
40
0.534483
46
232
2.608696
0.391304
0.1
0.166667
0.183333
0
0
0
0
0
0
0
0.012195
0.293103
232
16
41
14.5
0.719512
0.030172
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.272727
0.090909
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
b59341fea7f0dca1f065a80700c550e7ea708375
711
py
Python
environments/__init__.py
electronicarts/character-motion-vaes
d8ff62f3a9f7fd330ebd797df3e7f8f7ec7c3816
[ "BSD-3-Clause" ]
132
2021-03-12T18:45:19.000Z
2022-03-28T16:54:33.000Z
environments/__init__.py
electronicarts/character-motion-vaes
d8ff62f3a9f7fd330ebd797df3e7f8f7ec7c3816
[ "BSD-3-Clause" ]
5
2021-03-14T08:41:32.000Z
2022-01-29T21:58:22.000Z
environments/__init__.py
electronicarts/character-motion-vaes
d8ff62f3a9f7fd330ebd797df3e7f8f7ec7c3816
[ "BSD-3-Clause" ]
13
2021-03-16T13:06:20.000Z
2021-12-29T11:57:38.000Z
import os current_dir = os.path.dirname(os.path.realpath(__file__)) import gym from gym.envs.registration import registry, make, spec def register(id, *args, **kvargs): if id in registry.env_specs: return else: return gym.envs.registration.register(id, *args, **kvargs) register(id="RandomW...
33.857143
84
0.773558
92
711
5.804348
0.391304
0.131086
0.11236
0.224719
0.308989
0.308989
0
0
0
0
0
0.007764
0.094233
711
20
85
35.55
0.821429
0
0
0
0
0
0.353024
0.250352
0
0
0
0
0
1
0.071429
false
0
0.214286
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
b59346ae49540ddec35f1665aa5dcc8cc4da2da0
471
py
Python
libya_elections/tests/test_schedule.py
SmartElect/SmartElect
d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8
[ "Apache-2.0" ]
23
2015-10-28T14:08:23.000Z
2021-09-11T21:38:41.000Z
libya_elections/tests/test_schedule.py
SmartElect/SmartElect
d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8
[ "Apache-2.0" ]
4
2019-12-05T20:36:10.000Z
2020-06-05T18:41:54.000Z
libya_elections/tests/test_schedule.py
SmartElect/SmartElect
d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8
[ "Apache-2.0" ]
11
2015-10-28T15:49:56.000Z
2021-09-14T14:18:36.000Z
import datetime from django.test import TestCase from libya_elections.utils import at_noon class ScheduleTest(TestCase): def test_at_noon(self): # at_noon returns a datetime with the right values dt = datetime.datetime(1970, 2, 3, 4, 5, 6, 7) result = at_noon(dt) self.assertEqual(...
29.4375
58
0.685775
65
471
4.876923
0.569231
0.07571
0.15142
0.208202
0
0
0
0
0
0
0
0.041096
0.225053
471
15
59
31.4
0.827397
0.101911
0
0
0
0
0
0
0
0
0
0
0.363636
1
0.090909
false
0
0.272727
0
0.454545
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
b5934a3e23d4a7debafa86c699f518b3070881a9
153
py
Python
website/website/apps/statistics/urls.py
SimonGreenhill/Language5
c59f502dda7be27fc338f0338cc3b03e63bad9c8
[ "MIT" ]
1
2020-08-17T05:56:16.000Z
2020-08-17T05:56:16.000Z
website/website/apps/statistics/urls.py
SimonGreenhill/Language5
c59f502dda7be27fc338f0338cc3b03e63bad9c8
[ "MIT" ]
5
2020-06-05T17:51:56.000Z
2022-01-13T00:42:51.000Z
website/website/apps/statistics/urls.py
SimonGreenhill/Language5
c59f502dda7be27fc338f0338cc3b03e63bad9c8
[ "MIT" ]
1
2015-02-23T22:54:00.000Z
2015-02-23T22:54:00.000Z
from django.conf.urls import url from website.apps.statistics.views import statistics urlpatterns = [ url(r'^$', statistics, name="statistics"), ]
19.125
52
0.732026
19
153
5.894737
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.137255
153
7
53
21.857143
0.848485
0
0
0
0
0
0.078431
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
b593abbfc1101fb51b4b3e49fd3161d9712060e7
12,779
py
Python
sitk_rtss_io.py
Auto-segmentation-in-Radiation-Oncology/Chapter-3
307330c848c7ddb650353484e18fa9bc7903f737
[ "BSD-3-Clause" ]
1
2020-06-28T01:57:46.000Z
2020-06-28T01:57:46.000Z
sitk_rtss_io.py
Auto-segmentation-in-Radiation-Oncology/Chapter-12
307330c848c7ddb650353484e18fa9bc7903f737
[ "BSD-3-Clause" ]
null
null
null
sitk_rtss_io.py
Auto-segmentation-in-Radiation-Oncology/Chapter-12
307330c848c7ddb650353484e18fa9bc7903f737
[ "BSD-3-Clause" ]
1
2021-11-15T21:47:17.000Z
2021-11-15T21:47:17.000Z
from skimage import measure import pydicom from pydicom.dataset import Dataset, FileDataset from pydicom.sequence import Sequence import os import numpy as np import SimpleITK as sITK import time import glob import sitk_ct_io as imio from skimage.draw import polygon # for debugging # import matplotlib.p...
44.526132
120
0.642069
1,456
12,779
5.414148
0.223214
0.025371
0.019028
0.013954
0.126728
0.071927
0.068121
0.066218
0.066218
0.049474
0
0.026108
0.26567
12,779
286
121
44.681818
0.813939
0.083418
0
0.063927
0
0.009132
0.062407
0.016062
0
0
0
0.003497
0.009132
1
0.018265
false
0
0.050228
0
0.09589
0.004566
0
0
0
null
0
0
0
0
0
0
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
1
0
b59742af888cb2d88c4cbf6cba219ceb64599613
2,364
py
Python
code/opt_algo/downhillsimplex_untested.py
nicolai-schwartze/Masterthesis
7857af20c6b233901ab3cedc325bd64704111e16
[ "MIT" ]
1
2020-06-13T10:02:02.000Z
2020-06-13T10:02:02.000Z
code/opt_algo/downhillsimplex_untested.py
nicolai-schwartze/Masterthesis
7857af20c6b233901ab3cedc325bd64704111e16
[ "MIT" ]
null
null
null
code/opt_algo/downhillsimplex_untested.py
nicolai-schwartze/Masterthesis
7857af20c6b233901ab3cedc325bd64704111e16
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Apr 20 14:03:18 2020 @author: Nicolai """ import sys sys.path.append("../differential_evolution") from JADE import JADE import numpy as np import scipy as sc import testFunctions as tf def downhillsimplex(population, function, minError, maxFeval): ''' implementatio...
26.863636
87
0.593909
270
2,364
5.144444
0.462963
0.054716
0.058315
0.077754
0.074874
0.038877
0
0
0
0
0
0.033878
0.300761
2,364
88
88
26.863636
0.806413
0.436971
0
0
0
0
0.028473
0.02157
0
0
0
0
0
1
0.032258
false
0
0.193548
0
0.258065
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
0
0
1
0
b5977a635ec36409ea956827d6f1116885b0d8e3
7,030
py
Python
bot_instagram.py
Lucas-Okamura/Instagram-Bot
e5e515f55a351c20add2389723dbbef452dc371b
[ "MIT" ]
1
2020-08-24T20:05:13.000Z
2020-08-24T20:05:13.000Z
bot_instagram.py
Lucas-Okamura/Instagram-Bot
e5e515f55a351c20add2389723dbbef452dc371b
[ "MIT" ]
null
null
null
bot_instagram.py
Lucas-Okamura/Instagram-Bot
e5e515f55a351c20add2389723dbbef452dc371b
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time import random import pandas as pd import os class InstagramBot: def __init__(self, username, password, function, url, num_people=1): ''' Bot that comment on photos on Instagram Args: usern...
32.546296
187
0.52845
765
7,030
4.729412
0.266667
0.037313
0.032338
0.036761
0.224433
0.18408
0.15644
0.127695
0.043671
0.020453
0
0.010849
0.383784
7,030
215
188
32.697674
0.824331
0.233997
0
0.243902
0
0
0.076494
0.01494
0
0
0
0
0
1
0.056911
false
0.065041
0.04878
0
0.113821
0.04878
0
0
0
null
0
0
0
0
0
0
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