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
445ef4455f305009ac0e1b4aeb8c80e0b3115162
20,825
py
Python
wolfgang_robot/wolfgang_pybullet_sim/src/wolfgang_pybullet_sim/simulation.py
MosHumanoid/bitbots_thmos_meta
f45ccc362dc689b69027be5b0d000d2a08580de4
[ "MIT" ]
null
null
null
wolfgang_robot/wolfgang_pybullet_sim/src/wolfgang_pybullet_sim/simulation.py
MosHumanoid/bitbots_thmos_meta
f45ccc362dc689b69027be5b0d000d2a08580de4
[ "MIT" ]
null
null
null
wolfgang_robot/wolfgang_pybullet_sim/src/wolfgang_pybullet_sim/simulation.py
MosHumanoid/bitbots_thmos_meta
f45ccc362dc689b69027be5b0d000d2a08580de4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import math import sys import os import time import pybullet as p from time import sleep import time import rospy import tf from scipy import signal import pybullet_data import rospkg from transforms3d.quaternions import quat2mat from wolfgang_pybullet_sim.terrain import Terrain import numpy as...
47.115385
120
0.585066
2,563
20,825
4.555989
0.180648
0.027747
0.031172
0.015586
0.364049
0.32534
0.276098
0.251691
0.232251
0.19988
0
0.018701
0.31443
20,825
442
121
47.115385
0.799188
0.099256
0
0.215743
0
0
0.070843
0.005198
0
0
0
0.002262
0
1
0.087464
false
0
0.043732
0.008746
0.177843
0.008746
0
0
0
null
0
0
0
0
0
0
0
0
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
4460bbb142aa4c99178afe32a15838a44e96e1f2
11,641
py
Python
dataloader_cifar.py
pizard/DivideMix
9610201b9eb5dc871a77bf12017c137be291c71c
[ "MIT" ]
null
null
null
dataloader_cifar.py
pizard/DivideMix
9610201b9eb5dc871a77bf12017c137be291c71c
[ "MIT" ]
null
null
null
dataloader_cifar.py
pizard/DivideMix
9610201b9eb5dc871a77bf12017c137be291c71c
[ "MIT" ]
null
null
null
from torch.utils.data import Dataset, DataLoader import torchvision.transforms as transforms import random import numpy as np from PIL import Image import json import os from torchnet.meter import AUCMeter def uniform_mix_C(mixing_ratio, num_classes): ''' returns a linear interpolation of a uniform matrix and a...
44.601533
259
0.545486
1,342
11,641
4.532042
0.151267
0.029596
0.023676
0.015784
0.494574
0.462019
0.446399
0.410556
0.392305
0.392305
0
0.034988
0.349369
11,641
261
260
44.601533
0.768022
0.084185
0
0.343284
0
0
0.033551
0
0
0
0
0
0
1
0.044776
false
0
0.044776
0
0.169154
0.00995
0
0
0
null
0
0
0
0
0
0
0
0
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
4460e4feed0f72a43de6ee2899df2357b585c9b2
4,134
py
Python
tests/render-out/Drawing13.py
debragail/reportlab-mirror
1e5814e1313ed50d5abb65487b207711cb4f7595
[ "BSD-3-Clause" ]
1
2020-05-21T23:34:55.000Z
2020-05-21T23:34:55.000Z
tests/render-out/Drawing13.py
debragail/reportlab-mirror
1e5814e1313ed50d5abb65487b207711cb4f7595
[ "BSD-3-Clause" ]
null
null
null
tests/render-out/Drawing13.py
debragail/reportlab-mirror
1e5814e1313ed50d5abb65487b207711cb4f7595
[ "BSD-3-Clause" ]
null
null
null
#Autogenerated by ReportLab guiedit do not edit from reportlab.graphics.shapes import _DrawingEditorMixin, Drawing, Group, Rect, String from reportlab.lib.colors import Color, CMYKColor, PCMYKColor class ExplodedDrawing_Drawing(_DrawingEditorMixin,Drawing): def __init__(self,width=756.284,height=240.20000000000002,*a...
142.551724
242
0.779149
668
4,134
4.83982
0.185629
0.016084
0.015775
0.011135
0.808537
0.808537
0.808537
0.808537
0.799876
0.799876
0
0.116463
0.050798
4,134
28
243
147.642857
0.699286
0.013546
0
0
1
0
0.229146
0
0
0
0
0
0
1
0.041667
false
0
0.083333
0
0.166667
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
4460f4628cd89ed83a3cb70a7461035c26830bb4
2,971
py
Python
rnnparser/RecursiveNN/tests/test_vectorized_variables.py
uphere-co/nlp-prototype
c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3
[ "BSD-3-Clause" ]
null
null
null
rnnparser/RecursiveNN/tests/test_vectorized_variables.py
uphere-co/nlp-prototype
c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3
[ "BSD-3-Clause" ]
null
null
null
rnnparser/RecursiveNN/tests/test_vectorized_variables.py
uphere-co/nlp-prototype
c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import pytest from vecGraphComp.base import MatrixValues, ValueHolder, Block, NodeType, ExpressionWriter def test_numpy_structure_of_arrays_with_expand_dims(): m,n = 200,100 x1=np.random.random((n,1)) x2=np.random.random((n,1)) A=np.random.random((m,n)) x...
30.947917
90
0.63211
527
2,971
3.519924
0.259962
0.02965
0.059299
0.026954
0.292183
0.212399
0.166038
0.128302
0.111051
0.058221
0
0.056864
0.171323
2,971
95
91
31.273684
0.696588
0.117132
0
0.097222
0
0
0.024493
0
0
0
0
0
0.263889
1
0.069444
false
0
0.041667
0
0.111111
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
4462a86f114257e11040144f6da38d51df8b1bf2
6,421
py
Python
code/pyorg/scripts/ribo_mt/particles_curator.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
12
2020-01-08T01:33:02.000Z
2022-03-16T00:25:34.000Z
code/pyorg/scripts/ribo_mt/particles_curator.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
8
2019-12-19T19:34:56.000Z
2022-03-10T10:11:28.000Z
code/pyorg/scripts/ribo_mt/particles_curator.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
2
2022-03-30T13:12:22.000Z
2022-03-30T18:12:10.000Z
""" Curates an output STAR file from Relion to work as input for pyseg.pyorg scripts for microtubules Input: - STAR file with the particles to curate - STAR file to pair tomograms used for reconstruction with the one segmented used to pick the particles Output: - A curated output STAR file ...
35.672222
115
0.63339
889
6,421
4.328459
0.253093
0.044179
0.031185
0.039761
0.289501
0.261694
0.169699
0.142931
0.111746
0.111746
0
0.00608
0.180346
6,421
180
116
35.672222
0.725062
0.097181
0
0.162602
0
0
0.263972
0.031483
0
0
0
0
0
1
0
false
0
0.073171
0
0.073171
0.252033
0
0
0
null
0
0
0
0
0
0
0
0
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
4462c41b0b42cc76b2753d10c545dd05d91c8946
1,954
py
Python
tests/test_proprietor_validation.py
LandRegistry/datatypes-alpha
b7ec20c9aec84697aa49aaf6bff52fac3770a942
[ "MIT" ]
null
null
null
tests/test_proprietor_validation.py
LandRegistry/datatypes-alpha
b7ec20c9aec84697aa49aaf6bff52fac3770a942
[ "MIT" ]
null
null
null
tests/test_proprietor_validation.py
LandRegistry/datatypes-alpha
b7ec20c9aec84697aa49aaf6bff52fac3770a942
[ "MIT" ]
1
2021-04-11T06:07:21.000Z
2021-04-11T06:07:21.000Z
import unittest from copy import deepcopy from datatypes.exceptions import DataDoesNotMatchSchemaException from datatypes import proprietor_validator from datatypes.core import unicoded proprietor = unicoded({ "title" : "Mrs", "full_name": "Bootata Smick", "decoration": "tidy" }) proprietor_with_additi...
39.08
149
0.754862
197
1,954
7.203046
0.28934
0.107822
0.095137
0.029598
0.553911
0.553911
0.450317
0.427766
0.30303
0.260747
0
0
0.169908
1,954
49
150
39.877551
0.874846
0
0
0.282051
0
0
0.144319
0
0
0
0
0
0.076923
1
0.128205
false
0
0.128205
0
0.282051
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
446311708b993bd3bd09966b836ad93712d7141b
2,999
py
Python
neuralknight/tests/test_mock_board_integration.py
grandquista/neuralknight-v1
f54e8e1ac90019c1a3a84089bac20485e8f626b4
[ "MIT" ]
null
null
null
neuralknight/tests/test_mock_board_integration.py
grandquista/neuralknight-v1
f54e8e1ac90019c1a3a84089bac20485e8f626b4
[ "MIT" ]
158
2018-08-14T17:42:49.000Z
2021-08-19T13:19:44.000Z
neuralknight/tests/test_mock_board_integration.py
grandquista/neuralknight-v1
f54e8e1ac90019c1a3a84089bac20485e8f626b4
[ "MIT" ]
2
2018-04-06T02:40:16.000Z
2018-04-16T16:13:21.000Z
from ..models.base_agent import BaseAgent class MockAgent(BaseAgent): def __init__(self, testapp, moves, game_id, player): self.testapp = testapp self.args = [] self.kwargs = [] self.moves = iter(moves) self.past_end = False super().__init__(game_id, player) de...
32.247312
64
0.481827
487
2,999
2.87885
0.149897
0.151213
0.199001
0.228245
0.437946
0.352354
0.308845
0.28388
0.28388
0.268902
0
0.156997
0.316105
2,999
92
65
32.597826
0.526572
0.548183
0
0.057143
0
0
0.022936
0
0
0
0
0
0.285714
1
0.142857
false
0
0.028571
0
0.257143
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
44632699c65d23e5e6c27862e4557240a69f61f0
1,888
py
Python
Selenium-Test/script.py
zeabdelkhalek/TP-IGL-Client
b75904df147fa3905d5e8e1d666ef54e3aefe4a2
[ "MIT" ]
1
2020-05-11T02:38:22.000Z
2020-05-11T02:38:22.000Z
Selenium-Test/script.py
AbdelkhalekESI/TP-IGL-Client
b75904df147fa3905d5e8e1d666ef54e3aefe4a2
[ "MIT" ]
3
2020-07-19T04:53:34.000Z
2021-05-10T23:00:57.000Z
Selenium-Test/script.py
zeabdelkhalek/TP-IGL-Client
b75904df147fa3905d5e8e1d666ef54e3aefe4a2
[ "MIT" ]
null
null
null
from selenium import webdriver import time from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import TimeoutException options = webdriver.ChromeOptions() options.add_argument('--disable-web-security') url='http://127...
32.551724
73
0.739407
267
1,888
5.003745
0.41573
0.10479
0.178144
0.199102
0.303892
0.257485
0.043413
0
0
0
0
0.018641
0.119174
1,888
57
74
33.122807
0.784726
0.075742
0
0.052632
0
0
0.236479
0.024741
0
0
0
0
0
1
0
false
0
0.131579
0
0.131579
0.052632
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
4463d5e39650a4e7422e085de2d3acc28f0ff1e9
815
py
Python
python100days/day09/multi.py
lanSeFangZhou/pythonbase
f4daa373573b2fc0a59a5eb919d02eddf5914e18
[ "Apache-2.0" ]
null
null
null
python100days/day09/multi.py
lanSeFangZhou/pythonbase
f4daa373573b2fc0a59a5eb919d02eddf5914e18
[ "Apache-2.0" ]
1
2021-06-02T00:58:26.000Z
2021-06-02T00:58:26.000Z
python100days/day09/multi.py
lanSeFangZhou/pythonbase
f4daa373573b2fc0a59a5eb919d02eddf5914e18
[ "Apache-2.0" ]
null
null
null
''' 多重继承 - 通过多重继承可以给一个类的对象具备多方面的能力 - 这样在设计类的时候可以避免设计太多层次的复杂的继承关系 ''' class Father(object): def _init_(self, name): self._name = name def gamble(self): print('%s在打麻将.' % self._name) def eat(self): print('%s在大吃大喝.' % self._name) class Monk(object): def _init_(self, name): ...
18.111111
38
0.619632
97
815
5
0.268041
0.197938
0.148454
0.092784
0.212371
0.148454
0.148454
0.148454
0.148454
0
0
0
0.230675
815
45
39
18.111111
0.773525
0.201227
0
0.291667
0
0
0.051482
0
0
0
0
0
0
1
0.291667
false
0
0
0
0.416667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
446691647b7b65b8fcd033c966f9edcd95dfe8b8
907
py
Python
src/plots/experiments_1.py
ekreutz/bayes-cv-pruning
a82888fcc8771fdf90d51bd6c37c5bc7a449c81a
[ "MIT" ]
null
null
null
src/plots/experiments_1.py
ekreutz/bayes-cv-pruning
a82888fcc8771fdf90d51bd6c37c5bc7a449c81a
[ "MIT" ]
null
null
null
src/plots/experiments_1.py
ekreutz/bayes-cv-pruning
a82888fcc8771fdf90d51bd6c37c5bc7a449c81a
[ "MIT" ]
null
null
null
import os import pickle import numpy as np import matplotlib.font_manager as font_manager import matplotlib.pyplot as plt import seaborn as sns # Plot sns.set(context="paper", style="whitegrid", font="STIXGeneral", font_scale=1.25) def plot(): CURRENT_PATH = os.path.dirname(os.path.realpath(__file__)) # Fi...
29.258065
80
0.654906
143
907
4.076923
0.594406
0.030875
0.027444
0
0
0
0
0
0
0
0
0.037736
0.181918
907
30
81
30.233333
0.747978
0.048512
0
0
0
0
0.187209
0
0
0
0
0
0
1
0.047619
false
0
0.285714
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
44674ec2d9f2bc00d3172b73a93d3bb416c64936
1,661
py
Python
cyberexperiment/core/models.py
udrems/cyberexperiment
9ad9c9580cd9dd1c28c0d8e27975f5bca530e101
[ "MIT" ]
null
null
null
cyberexperiment/core/models.py
udrems/cyberexperiment
9ad9c9580cd9dd1c28c0d8e27975f5bca530e101
[ "MIT" ]
4
2021-09-10T16:21:53.000Z
2021-09-17T18:04:22.000Z
cyberexperiment/core/models.py
udrems/cyberexperiment
9ad9c9580cd9dd1c28c0d8e27975f5bca530e101
[ "MIT" ]
2
2021-09-08T07:50:59.000Z
2021-09-08T16:15:26.000Z
from django.conf import settings from django.db import models from django.shortcuts import redirect class TimeStamp(models.Model): """timestamp to capture all the time of event in the database""" created_at = models.DateTimeField(auto_now_add=True) modified_at = models.DateTimeField(auto_now=True) c...
27.229508
110
0.713426
210
1,661
5.495238
0.409524
0.051993
0.069324
0.083189
0.469671
0.421144
0.421144
0.421144
0.421144
0.421144
0
0.005155
0.18242
1,661
60
111
27.683333
0.844624
0.148706
0
0.5
0
0
0.021413
0
0
0
0
0
0
1
0.147059
false
0
0.088235
0.117647
0.911765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
44677c1268d64c9902a9bcde21123859ab265c49
709
py
Python
quickstart.py
adamstimb/nimbusinator
a7bb7e282b8322c1a97bffc3c40ab0541f746615
[ "MIT" ]
null
null
null
quickstart.py
adamstimb/nimbusinator
a7bb7e282b8322c1a97bffc3c40ab0541f746615
[ "MIT" ]
16
2019-11-23T19:08:45.000Z
2020-03-13T17:13:23.000Z
quickstart.py
adamstimb/nimbusinator
a7bb7e282b8322c1a97bffc3c40ab0541f746615
[ "MIT" ]
null
null
null
from nimbusinator.nimbus import Nimbus from nimbusinator.command import Command if __name__ == '__main__': # Create and bind nimbusinator objects: nim = Nimbus(full_screen=True) cmd = Command(nim) nim.boot() # Boot the Nimbus cmd.set_mode(40) # Low resolution mode cmd.set_border(1)...
33.761905
57
0.638928
99
709
4.444444
0.626263
0.040909
0.072727
0
0
0
0
0
0
0
0
0.046642
0.244006
709
20
58
35.45
0.774254
0.291961
0
0
0
0
0.065173
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4467af496402d2c4c04283d114962eb0a43111b9
264
py
Python
03-threads/threads_example.py
LeandroMelloo/programacao_concorrente_assincrona_com_python
49790de6004d588ccc2a07d1be0c420d6a1e4b7a
[ "Apache-2.0" ]
null
null
null
03-threads/threads_example.py
LeandroMelloo/programacao_concorrente_assincrona_com_python
49790de6004d588ccc2a07d1be0c420d6a1e4b7a
[ "Apache-2.0" ]
null
null
null
03-threads/threads_example.py
LeandroMelloo/programacao_concorrente_assincrona_com_python
49790de6004d588ccc2a07d1be0c420d6a1e4b7a
[ "Apache-2.0" ]
null
null
null
import threading def start_threading(param): print('Executa algo....') print(f'Utiliza o parâmetro recebido: {param}') return print(f'Resultado final: {param * param}') th = threading.Thread(target=start_threading, args=(5,)) th.start() th.join()
18.857143
56
0.689394
35
264
5.142857
0.628571
0.155556
0
0
0
0
0
0
0
0
0
0.004464
0.151515
264
13
57
20.307692
0.799107
0
0
0
0
0
0.32197
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0.375
0
0
0
null
0
0
0
0
0
0
0
0
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
4469f717f508277478e42eda4cc4da6b53f5509d
2,386
py
Python
bench_scenarios/generate_obj_based_scope.py
JanDorniak99/pmemkv-bench
c89cfec5bc12f8a54424572b149e843f9f5a5379
[ "Apache-2.0" ]
null
null
null
bench_scenarios/generate_obj_based_scope.py
JanDorniak99/pmemkv-bench
c89cfec5bc12f8a54424572b149e843f9f5a5379
[ "Apache-2.0" ]
null
null
null
bench_scenarios/generate_obj_based_scope.py
JanDorniak99/pmemkv-bench
c89cfec5bc12f8a54424572b149e843f9f5a5379
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # SPDX-License-Identifier: Apache-2.0 # Copyright 2021, Intel Corporation # This script implements generate() method, which may be invoked by run_benchmark.py directly, # or used as standalone application, which prints configuration json (also validated against schema) # to stdout. Such once g...
29.097561
100
0.642498
267
2,386
5.569288
0.494382
0.03228
0.04035
0.02959
0.133154
0.102219
0.102219
0.102219
0.102219
0.102219
0
0.021846
0.232607
2,386
81
101
29.45679
0.790279
0.158424
0
0.067797
1
0
0.233383
0.108446
0
0
0
0
0
1
0.050847
false
0
0.067797
0
0.169492
0.033898
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
446a3b7125f8d81082029efd8515e3cb3a464996
453
py
Python
pyews/configuration/endpoint.py
kartones-forks/pyews
763f3eb7918e55fc6ea8ff1fa333657ae0d9c18f
[ "MIT" ]
1
2021-03-15T13:38:08.000Z
2021-03-15T13:38:08.000Z
pyews/configuration/endpoint.py
nautics889/pyews
e35ad7425bf100a2ae67e3d4b763cc5d2cc8d4f3
[ "MIT" ]
null
null
null
pyews/configuration/endpoint.py
nautics889/pyews
e35ad7425bf100a2ae67e3d4b763cc5d2cc8d4f3
[ "MIT" ]
null
null
null
class Endpoint: def __init__(self, domain=None): self.domain = domain def get(self): endpoint_list = ['https://outlook.office365.com/autodiscover/autodiscover.svc'] if self.domain: endpoint_list.append("https://{}/autodiscover/autodiscover.svc".format(self.domain)) ...
32.357143
109
0.673289
49
453
6.061224
0.387755
0.16835
0.272727
0.148148
0.518519
0.518519
0.383838
0.383838
0
0
0
0.008197
0.192053
453
13
110
34.846154
0.803279
0
0
0
0
0
0.337029
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.444444
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
446a9b413000d786cd15da4f54dc59cd09eba6bf
9,450
py
Python
catan-simulator/src/Api/Catan.py
williamaredal/Catan-Simulator
27b5fa2bb77554fc5dfc67286899a70d3c41aeb4
[ "MIT" ]
null
null
null
catan-simulator/src/Api/Catan.py
williamaredal/Catan-Simulator
27b5fa2bb77554fc5dfc67286899a70d3c41aeb4
[ "MIT" ]
null
null
null
catan-simulator/src/Api/Catan.py
williamaredal/Catan-Simulator
27b5fa2bb77554fc5dfc67286899a70d3c41aeb4
[ "MIT" ]
null
null
null
from collections import Counter from random import choice import numpy as np # Figuring out the roads to victory requiring the minimum number of cards to achieve victory in catan class Ledger: def __init__( self, victoryPointCondition=10, villageSettlement=1, citySettlement=2, startVillages=...
31.605351
153
0.610899
792
9,450
7.27904
0.19697
0.020815
0.006245
0.011448
0.29575
0.280659
0.170685
0.151605
0.138248
0.116739
0
0.017117
0.295238
9,450
298
154
31.711409
0.848499
0.030794
0
0.243478
0
0
0.06252
0
0
0
0
0
0
1
0.069565
false
0
0.013043
0
0.113043
0.034783
0
0
0
null
0
0
0
0
0
0
0
0
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
446aff1f81c23a0f38cd568dd2d43f6846714b6e
29,745
py
Python
client_server_test INHERIT/LocalModel.py
hades208002/mdp-project
c242a8d00412cc3772d298986977f6acc47002ee
[ "MIT" ]
null
null
null
client_server_test INHERIT/LocalModel.py
hades208002/mdp-project
c242a8d00412cc3772d298986977f6acc47002ee
[ "MIT" ]
null
null
null
client_server_test INHERIT/LocalModel.py
hades208002/mdp-project
c242a8d00412cc3772d298986977f6acc47002ee
[ "MIT" ]
null
null
null
# Import all the useful libraries import numpy as np import pandas as pd import fancyimpute from sklearn import model_selection from sklearn.model_selection import StratifiedKFold from sklearn.ensemble import AdaBoostClassifier # PROBABILITY from sklearn.tree import DecisionTreeClassifier # PROBABILITY from sklearn....
59.49
605
0.755455
4,357
29,745
4.938949
0.112233
0.051118
0.034156
0.042939
0.573214
0.529904
0.474976
0.449138
0.425717
0.414192
0
0.021863
0.120424
29,745
499
606
59.609218
0.800634
0.236779
0
0.20915
0
0
0.100894
0
0
0
0
0
0
1
0.062092
false
0
0.127451
0
0.24183
0.124183
0
0
0
null
0
0
0
0
0
0
0
0
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
446b4021141854c01eb8346f6d3902a45b8ff171
4,455
py
Python
get_weibo.py
SUIBE-Blockchain/Data-Crawler-Practice
46f4b98f05923ab534e28e51456c87efc33dbb8d
[ "Apache-2.0" ]
1
2021-10-05T05:52:39.000Z
2021-10-05T05:52:39.000Z
get_weibo.py
SUIBE-Blockchain/Data-Crawler-Practice
46f4b98f05923ab534e28e51456c87efc33dbb8d
[ "Apache-2.0" ]
null
null
null
get_weibo.py
SUIBE-Blockchain/Data-Crawler-Practice
46f4b98f05923ab534e28e51456c87efc33dbb8d
[ "Apache-2.0" ]
7
2020-08-09T09:52:15.000Z
2020-08-16T08:04:02.000Z
import sys from bs4 import BeautifulSoup import re import urllib.request, urllib.error import xlwt # 进行Excel操作 import time def main(): Baseurl = 'https://weibo.cn/thepapernewsapp?page=' # 1.爬取网页 datalist = getdata(Baseurl) #IDlence = (len(datalist) - 1) savepath = "澎湃新闻.xls" # 3...
28.928571
412
0.525701
459
4,455
5.045752
0.40305
0.056131
0.047496
0.041451
0.045769
0
0
0
0
0
0
0.050151
0.333109
4,455
153
413
29.117647
0.729384
0.111336
0
0.15
0
0.02
0.193471
0.094214
0
0
0
0
0
1
0.04
false
0
0.06
0
0.13
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
446c1a08792230c1d74587f3d323492f2871df02
3,273
py
Python
mouse.py
AlbertMelo/MouseExpressions
8e2bc36d8378541d512e04b17908bdefac6090e8
[ "MIT" ]
3
2019-07-22T18:29:10.000Z
2019-09-11T12:24:05.000Z
mouse.py
AlbertMelo/MouseExpressions
8e2bc36d8378541d512e04b17908bdefac6090e8
[ "MIT" ]
7
2019-12-16T22:20:58.000Z
2022-02-10T00:50:45.000Z
mouse.py
AlbertMelo/MouseExpressions
8e2bc36d8378541d512e04b17908bdefac6090e8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pyautogui as pyg import os import subprocess import programa class Mouse(object): def __init__(self, QuadroXI, QuadroYI, Dimensao): self.TEMPO = 0 #Touchpad do monitor self.QuadroXI = QuadroXI - Dimensao self.QuadroYI = QuadroYI - Dimensao + int(Dimensao/3) self.QuadroXF ...
21.966443
101
0.676749
481
3,273
4.511435
0.24948
0.045622
0.03318
0.04424
0.26682
0.231336
0.169585
0.140092
0.126267
0.092166
0
0.013973
0.190956
3,273
149
102
21.966443
0.805514
0.215399
0
0.1
0
0
0.00968
0
0
0
0
0.006711
0
1
0.2375
false
0
0.05
0.0125
0.325
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
446d377b81da3c67728272ccd4cb25650010c8a7
549
py
Python
unittests/check_external_packages.py
davidharvey1986/rrg
26b4658f14279af21af1a61d57e9936daf315a71
[ "MIT" ]
2
2019-11-18T12:51:09.000Z
2019-12-11T03:13:51.000Z
unittests/check_external_packages.py
davidharvey1986/rrg
26b4658f14279af21af1a61d57e9936daf315a71
[ "MIT" ]
5
2017-06-09T10:06:27.000Z
2019-07-19T11:28:18.000Z
unittests/check_external_packages.py
davidharvey1986/rrg
26b4658f14279af21af1a61d57e9936daf315a71
[ "MIT" ]
2
2017-07-19T15:48:33.000Z
2017-08-09T16:07:20.000Z
import subprocess def check_external_packages(): try: stilts_path = subprocess.check_output(['which','stilts.sh']) except: raise ValueError('Cannot find STILTS please install and ensure it is in the shell path') try: stilts_path = subprocess.check_output(['which','sex']) ...
27.45
105
0.668488
68
549
5.308824
0.544118
0.091413
0.072022
0.127424
0.526316
0.216066
0.216066
0
0
0
0
0
0.245902
549
19
106
28.894737
0.871981
0
0
0.428571
0
0
0.364299
0
0
0
0
0
0
1
0.071429
false
0
0.285714
0
0.357143
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
446d5bb17dd8a928ca7451126fb10c9f182c9616
6,084
py
Python
2020/day16/day16ab.py
jeremy-frank/advent-of-code
6a9dd284f0e67fea694548f1545402c579ef3f08
[ "MIT" ]
null
null
null
2020/day16/day16ab.py
jeremy-frank/advent-of-code
6a9dd284f0e67fea694548f1545402c579ef3f08
[ "MIT" ]
null
null
null
2020/day16/day16ab.py
jeremy-frank/advent-of-code
6a9dd284f0e67fea694548f1545402c579ef3f08
[ "MIT" ]
null
null
null
""" day16ab - https://adventofcode.com/2020/day/16 --- Day 16: Ticket Translation --- * Part 1 Three input files: the rules for ticket fields the numbers on your ticket the numbers on other nearby tickets The rules for ticket fields specify a list of fields that exist somewhere on the ticket and the valid r...
28.971429
100
0.619001
825
6,084
4.431515
0.254545
0.064004
0.035558
0.02407
0.180525
0.091904
0.059081
0.059081
0.059081
0.059081
0
0.024666
0.286982
6,084
209
101
29.110048
0.818119
0.335141
0
0.150943
0
0
0.101417
0.006463
0
0
0
0
0
1
0.056604
false
0
0
0
0.113208
0.132075
0
0
0
null
0
0
0
0
0
0
0
0
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
446f6522d2f68fb06ab1adc22f7cb83ad19c1bfc
712
py
Python
docs/blog/2017/0610.py
CylonOven/blog
ddc560edb0445f950b39d441b569ef2258abc2d6
[ "BSD-2-Clause" ]
null
null
null
docs/blog/2017/0610.py
CylonOven/blog
ddc560edb0445f950b39d441b569ef2258abc2d6
[ "BSD-2-Clause" ]
null
null
null
docs/blog/2017/0610.py
CylonOven/blog
ddc560edb0445f950b39d441b569ef2258abc2d6
[ "BSD-2-Clause" ]
null
null
null
import random random.seed("lel") class table(object): changes= { '1':"@", '0':" " } def __init__(self, lists): self.data = lists @classmethod def gen_matix(cls, x, y): return cls( [ [random.choice((1,0)) for y in range(y)] for x in range(x) ...
20.342857
66
0.463483
85
712
3.764706
0.435294
0.1875
0.10625
0.1125
0
0
0
0
0
0
0
0.019824
0.36236
712
35
67
20.342857
0.685022
0
0
0.074074
0
0
0.029453
0
0
0
0
0
0
1
0.111111
false
0
0.037037
0.037037
0.259259
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
447050f1592cecfe7f5d28a4335436f9cc0b4d7b
228
py
Python
regtests/loop/while_else.py
bpmbank/PythonJS
591a80afd8233fb715493591db2b68f1748558d9
[ "BSD-3-Clause" ]
319
2015-01-02T11:34:16.000Z
2022-03-25T00:43:33.000Z
regtests/loop/while_else.py
bpmbank/PythonJS
591a80afd8233fb715493591db2b68f1748558d9
[ "BSD-3-Clause" ]
10
2015-02-03T02:33:09.000Z
2021-11-09T21:41:00.000Z
regtests/loop/while_else.py
bpmbank/PythonJS
591a80afd8233fb715493591db2b68f1748558d9
[ "BSD-3-Clause" ]
61
2015-01-02T12:01:56.000Z
2021-12-08T07:16:16.000Z
''' while else loop (DEPRECATED) ''' def main(): a = False i = 0 while i < 10: i += 1 else: a = True TestError( a==True ) b = False i = 0 while i < 10: i += 1 break else: b = True TestError( b==False )
8.769231
28
0.517544
37
228
3.189189
0.432432
0.101695
0.118644
0.20339
0.288136
0.288136
0.288136
0.288136
0
0
0
0.052288
0.328947
228
25
29
9.12
0.718954
0.122807
0
0.5
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.0625
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
447144dab05f58bb3666adc6c76ca187a3b6abdf
2,116
py
Python
Firefly.py
iglennrogers/swarm_pyside
8930f668473c5f9b399c29661295be47f31b9164
[ "BSD-2-Clause" ]
null
null
null
Firefly.py
iglennrogers/swarm_pyside
8930f668473c5f9b399c29661295be47f31b9164
[ "BSD-2-Clause" ]
null
null
null
Firefly.py
iglennrogers/swarm_pyside
8930f668473c5f9b399c29661295be47f31b9164
[ "BSD-2-Clause" ]
null
null
null
import PySide.QtGui as QtGui import PySide.QtCore as QtCore import GravitionalObject as go class Firefly(go.GravitationalObject): def __init__(self): super(Firefly, self).__init__() self._acc = QtCore.QPointF() self._vel = QtCore.QPointF() self._pos = QtCore.QPointF() ...
32.553846
112
0.557183
265
2,116
4.264151
0.260377
0.080531
0.038938
0.035398
0.260177
0.19115
0.19115
0.113274
0.113274
0.113274
0
0.008075
0.297732
2,116
64
113
33.0625
0.752355
0.048204
0
0.038462
0
0
0
0
0
0
0
0
0
1
0.192308
false
0
0.057692
0.057692
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
44721cfa8e5eb18c5d3df0207aabe203967e7af7
14,325
py
Python
translate.py
mursalinkhan0018/python-translation-project
11a4b333cea3aaee1a90291898c293c7a6f96c45
[ "CC-BY-4.0" ]
null
null
null
translate.py
mursalinkhan0018/python-translation-project
11a4b333cea3aaee1a90291898c293c7a6f96c45
[ "CC-BY-4.0" ]
null
null
null
translate.py
mursalinkhan0018/python-translation-project
11a4b333cea3aaee1a90291898c293c7a6f96c45
[ "CC-BY-4.0" ]
null
null
null
#! /usr/bin/env python3 import sys #1 DONE!!! Passed 9/10 def translate_sequence(rna_sequence, genetic_code): pass # Read and get the RNA string rna = rna_sequence.upper() print ("\n \n RNA String: ", rna) x=len(rna) if x < 3: return '' # RNA codon table(make sure you have it) protein...
28.198819
787
0.530471
1,909
14,325
3.869565
0.130959
0.065521
0.042236
0.028293
0.722079
0.669555
0.633004
0.606742
0.606742
0.582916
0
0.023756
0.318255
14,325
507
788
28.254438
0.732644
0.177173
0
0.743662
0
0.002817
0.079388
0.002234
0
0
0
0
0.002817
1
0.016901
false
0.067606
0.002817
0
0.059155
0.056338
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
44738fe37e6ee74c46f89a6a97da23dbbd1f4bcc
289
py
Python
utils/parsing.py
Cherimolah/TeaBot
6c475bc70e2d71b37d613fbd4df16529d4c1d28c
[ "MIT" ]
2
2021-12-26T09:31:15.000Z
2022-02-15T17:08:19.000Z
utils/parsing.py
Cherimolah/TeaBot
6c475bc70e2d71b37d613fbd4df16529d4c1d28c
[ "MIT" ]
null
null
null
utils/parsing.py
Cherimolah/TeaBot
6c475bc70e2d71b37d613fbd4df16529d4c1d28c
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from typing import Union def parse_unix_to_date(unix_time: Union[int, float]) -> str: if unix_time == 0: return "навсегда" return (datetime.utcfromtimestamp(unix_time)+timedelta(hours=3)).strftime("до %d.%m.%Y %H:%M:%S МСК")
20.642857
105
0.695502
43
289
4.534884
0.697674
0.123077
0
0
0
0
0
0
0
0
0
0.008333
0.16955
289
13
106
22.230769
0.804167
0
0
0
0
0
0.112676
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.833333
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
1
0
0
2
4475eccd120177058a082a3f92db22d0104dd277
4,226
py
Python
sasoptpy/abstract/parameter.py
jld23/sasoptpy
f96911f04d6c0c01fce902f1f995935583df69a8
[ "Apache-2.0" ]
20
2017-12-22T18:29:55.000Z
2021-09-12T15:04:39.000Z
sasoptpy/abstract/parameter.py
jld23/sasoptpy
f96911f04d6c0c01fce902f1f995935583df69a8
[ "Apache-2.0" ]
9
2019-01-24T14:52:33.000Z
2022-03-16T14:14:35.000Z
sasoptpy/abstract/parameter.py
jld23/sasoptpy
f96911f04d6c0c01fce902f1f995935583df69a8
[ "Apache-2.0" ]
12
2017-12-22T19:37:16.000Z
2021-07-30T21:04:03.000Z
#!/usr/bin/env python # encoding: utf-8 # # Copyright SAS Institute # # Licensed under the Apache License, Version 2.0 (the License); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
27.986755
80
0.604827
530
4,226
4.626415
0.307547
0.016313
0.039967
0.013051
0.100326
0.017129
0
0
0
0
0
0.006707
0.294368
4,226
150
81
28.173333
0.81556
0.399195
0
0.215385
0
0
0.008102
0
0
0
0
0
0
1
0.184615
false
0
0.046154
0.061538
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
447765c57c490141d0b8cee8dfb8c7b014fcc8e9
721
py
Python
truffe2/communication/forms2.py
JonathanCollaud/truffe2
5cbb055ac1acf7e7dc697340618fcb56c67fbd91
[ "BSD-2-Clause" ]
9
2016-09-14T02:19:19.000Z
2020-10-18T14:52:14.000Z
truffe2/communication/forms2.py
JonathanCollaud/truffe2
5cbb055ac1acf7e7dc697340618fcb56c67fbd91
[ "BSD-2-Clause" ]
19
2016-11-09T21:28:51.000Z
2021-02-10T22:37:31.000Z
truffe2/communication/forms2.py
JonathanCollaud/truffe2
5cbb055ac1acf7e7dc697340618fcb56c67fbd91
[ "BSD-2-Clause" ]
13
2016-12-31T14:22:09.000Z
2020-12-27T19:43:19.000Z
from django.forms import ModelForm from django.utils.safestring import mark_safe from django.utils.html import escape from .models import DisplayReservationLine, Display class DisplayReservationLineForm(ModelForm): class Meta: model = DisplayReservationLine exclude = ('display_reservation', '...
40.055556
130
0.705964
79
721
6.240506
0.56962
0.060852
0.060852
0
0
0
0
0
0
0
0
0
0.171983
721
18
130
40.055556
0.825796
0
0
0
0
0
0.083102
0
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
447ad10e9234f1a46678ef5e6f05c247b8fa544c
468
py
Python
windowsbuild/MSVC2017/python/3.7.7/Scripts/pygmentize-script.py
Tech-XCorp/visit-deps
23e2bd534bf9c332d6b7d32310495f1f65b1b936
[ "BSD-3-Clause" ]
null
null
null
windowsbuild/MSVC2017/python/3.7.7/Scripts/pygmentize-script.py
Tech-XCorp/visit-deps
23e2bd534bf9c332d6b7d32310495f1f65b1b936
[ "BSD-3-Clause" ]
null
null
null
windowsbuild/MSVC2017/python/3.7.7/Scripts/pygmentize-script.py
Tech-XCorp/visit-deps
23e2bd534bf9c332d6b7d32310495f1f65b1b936
[ "BSD-3-Clause" ]
null
null
null
#!C:\A_Visit\ForRegression\visit-deps\windowsbuild\MSVC2017\python\3.7.7\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pygments==2.5.2','console_scripts','pygmentize' __requires__ = 'pygments==2.5.2' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(...
36
84
0.675214
68
468
4.352941
0.573529
0.091216
0.101351
0.111486
0.236486
0.236486
0.236486
0
0
0
0
0.044335
0.132479
468
12
85
39
0.684729
0.337607
0
0
0
0
0.290541
0.077703
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
447be6e4fc567f716395f5061f29158ceb4b650e
1,034
py
Python
day-03/automatic-pizza-order-program.py
swokyisalreadytaken/100-Days-of-Code-in-Python
269c99a481b94248454114c051fafa8f52697332
[ "Unlicense" ]
1
2021-08-13T23:46:20.000Z
2021-08-13T23:46:20.000Z
day-03/automatic-pizza-order-program.py
swokyisalreadytaken/100-Days-of-Code-in-Python
269c99a481b94248454114c051fafa8f52697332
[ "Unlicense" ]
null
null
null
day-03/automatic-pizza-order-program.py
swokyisalreadytaken/100-Days-of-Code-in-Python
269c99a481b94248454114c051fafa8f52697332
[ "Unlicense" ]
null
null
null
# build an automatic pizza order program. # ask the user the size and extra ingredients inputs print("Welcome to Python Pizza Deliveries!") size = input("What size pizza do you want? S, M, or L \n") add_pepperoni = input("Do you want pepperoni? Y or N \n") extra_cheese = input("Do you want extra cheese? Y or N \n") # ...
27.945946
59
0.647002
175
1,034
3.777143
0.314286
0.12708
0.04236
0.060514
0.428139
0.310136
0.310136
0.310136
0.096823
0.096823
0
0.020126
0.231141
1,034
37
60
27.945946
0.808805
0.301741
0
0.592593
0
0
0.294693
0
0
0
0
0
0
1
0
false
0
0
0
0
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
44809a2040f353f40337b79e36aebadd2135b1f0
2,091
py
Python
WindowOperators.py
zatricion/Streams
d2f688e230b4cb325d5f76886a7499d132591bd4
[ "MIT" ]
null
null
null
WindowOperators.py
zatricion/Streams
d2f688e230b4cb325d5f76886a7499d132591bd4
[ "MIT" ]
null
null
null
WindowOperators.py
zatricion/Streams
d2f688e230b4cb325d5f76886a7499d132591bd4
[ "MIT" ]
null
null
null
from Agent import * from Stream import * from MergeSplitOpStructures import * def window_many_to_many(f, in_streams, num_out_streams, window_size, step_size, state=None): def transition(in_lists, state=None): range_out = range((num_out_streams)) range_in = range(len(in_streams)) output_list...
44.489362
93
0.679101
309
2,091
4.245955
0.168285
0.07622
0.085366
0.109756
0.474085
0.474085
0.474085
0.394817
0.347561
0.17378
0
0.000628
0.238164
2,091
46
94
45.456522
0.822976
0.036346
0
0.088235
0
0
0
0
0
0
0
0
0
1
0.147059
false
0
0.088235
0.088235
0.411765
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
4482d252ebee04a4fe3a2d16129164bc0d1de4ec
623
py
Python
frontend_command.py
privacyrespected/Alpha
60ffdb73b334e37a87be119ce881d084aef8d7a1
[ "Apache-2.0" ]
null
null
null
frontend_command.py
privacyrespected/Alpha
60ffdb73b334e37a87be119ce881d084aef8d7a1
[ "Apache-2.0" ]
null
null
null
frontend_command.py
privacyrespected/Alpha
60ffdb73b334e37a87be119ce881d084aef8d7a1
[ "Apache-2.0" ]
null
null
null
#this files process commands entered through the front end from modules.sense import * from modules.mainsystem import * def Pcommand(command): command=command.lower() if command.startswith("speak"): #speak function to debug command=command.replace("","speak") speak(command) elif command.star...
34.611111
60
0.64366
67
623
5.985075
0.552239
0.139651
0.094763
0
0
0
0
0
0
0
0
0
0.23435
623
18
61
34.611111
0.840671
0.128411
0
0
0
0
0.127306
0
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
44830eb53faf0ef1df3db123fb8ce39f3db546df
197
py
Python
src/defuzzification/utils.py
stdevAntiD2ta/fuzzy-control-system
c58b503846a2b46cd09c3457a411f58bcbad3ec7
[ "MIT" ]
null
null
null
src/defuzzification/utils.py
stdevAntiD2ta/fuzzy-control-system
c58b503846a2b46cd09c3457a411f58bcbad3ec7
[ "MIT" ]
null
null
null
src/defuzzification/utils.py
stdevAntiD2ta/fuzzy-control-system
c58b503846a2b46cd09c3457a411f58bcbad3ec7
[ "MIT" ]
null
null
null
def get_maximums(set): fuz_set = [(set.membership(x), x) for x in set] fuz_set.sort() fuz_set = [x for (ux, x) in fuz_set if ux == fuz_set[-1][0]] fuz_set.sort() return fuz_set
28.142857
64
0.609137
38
197
2.947368
0.394737
0.375
0.160714
0
0
0
0
0
0
0
0
0.013245
0.233503
197
7
65
28.142857
0.728477
0
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4483b0857e8241cf5117ec7285f536dc85720d7e
2,177
py
Python
swamp/mr/tests/test_mrjob.py
rigdenlab/SWAMP
3e93ab27f4acf0124f7cb2d78a151cc3352b9c6e
[ "BSD-3-Clause" ]
2
2020-02-15T11:06:34.000Z
2020-04-10T08:48:49.000Z
swamp/mr/tests/test_mrjob.py
rigdenlab/SWAMP
3e93ab27f4acf0124f7cb2d78a151cc3352b9c6e
[ "BSD-3-Clause" ]
15
2020-02-04T10:56:07.000Z
2021-02-12T09:11:03.000Z
swamp/mr/tests/test_mrjob.py
rigdenlab/SWAMP
3e93ab27f4acf0124f7cb2d78a151cc3352b9c6e
[ "BSD-3-Clause" ]
4
2020-02-04T13:25:09.000Z
2022-03-23T13:44:17.000Z
import os import dill import unittest import collections from pyjob import Script from swamp.utils import remove from swamp.mr.mrjob import MrJob RESULTS = collections.namedtuple('results', ['results']) WORKDIR = os.path.join(os.environ['CCP4_SCR'], 'test_workdir') class MrJobTestCase(unittest.TestCase): def te...
38.875
137
0.673404
286
2,177
4.975524
0.328671
0.063247
0.042164
0.029515
0.376669
0.290935
0.175685
0.175685
0.126493
0.126493
0
0.009534
0.180983
2,177
55
138
39.581818
0.788559
0
0
0.104167
0
0.020833
0.320625
0.128158
0
0
0
0
0.125
1
0.0625
false
0
0.166667
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
44844a84b744658a244c29556a18ff7de739bdd6
6,306
py
Python
distil/active_learning_strategies/partition_strategy.py
ansunsujoe/distil
cf6cae2b88ef129d09c159aae0569978190e9f98
[ "MIT" ]
83
2021-01-06T06:50:30.000Z
2022-03-31T05:16:32.000Z
distil/active_learning_strategies/partition_strategy.py
ansunsujoe/distil
cf6cae2b88ef129d09c159aae0569978190e9f98
[ "MIT" ]
30
2021-02-27T06:09:47.000Z
2021-12-23T11:03:36.000Z
distil/active_learning_strategies/partition_strategy.py
ansunsujoe/distil
cf6cae2b88ef129d09c159aae0569978190e9f98
[ "MIT" ]
13
2021-03-05T18:26:58.000Z
2022-03-12T01:53:17.000Z
import math import numpy as np from torch.utils.data import Subset from .strategy import Strategy class PartitionStrategy(Strategy): """ Provides a wrapper around most of the strategies implemented in DISTIL that allows one to select portions of the budget from specific partitions of the unlabeled d...
52.115702
189
0.669997
793
6,306
5.161412
0.239596
0.062301
0.05375
0.029318
0.297337
0.248473
0.200098
0.15612
0.15612
0.15612
0
0.002805
0.265144
6,306
121
190
52.115702
0.880449
0.423565
0
0.06383
0
0
0.069959
0.019988
0
0
0
0
0
1
0.042553
false
0
0.085106
0
0.170213
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
4485c237e7028b7f11bca171722bc70d54c20ee5
2,120
py
Python
lib/lib_constant.py
NingAnMe/GFSSI
066ac3dcffe04927aa497ee8b2257bee3ec3789a
[ "MIT" ]
1
2020-08-18T08:05:35.000Z
2020-08-18T08:05:35.000Z
lib/lib_constant.py
NingAnMe/GFSSI
066ac3dcffe04927aa497ee8b2257bee3ec3789a
[ "MIT" ]
null
null
null
lib/lib_constant.py
NingAnMe/GFSSI
066ac3dcffe04927aa497ee8b2257bee3ec3789a
[ "MIT" ]
1
2020-08-26T06:50:59.000Z
2020-08-26T06:50:59.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @Time : 2019/8/2 @Author : AnNing """ import os from lib.lib_path import get_aid_path, GFSSI_DIR aid_path = get_aid_path() # 无效数据的填充值 FULL_VALUE = -999 # 辅助文件 BASEMAP_FY4_4KM = os.path.join(aid_path, 'ditu_fy4a_4km.png') LON_LAT_LUT_FY4_4KM = os.path.join(aid_pat...
37.192982
92
0.745283
366
2,120
3.967213
0.289617
0.078512
0.130854
0.125344
0.50551
0.412534
0.2927
0.210744
0.088154
0
0
0.069219
0.100472
2,120
56
93
37.857143
0.692187
0.146698
0
0
0
0
0.221537
0.128435
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
44860ad18421633ee3079c64cf2ba7d53eaef76a
1,647
py
Python
fondo_api/tests/runner.py
Fonmon/Fondo-API
0c78eaab259df18219c01fceb67bd1b6ff8ec941
[ "MIT" ]
null
null
null
fondo_api/tests/runner.py
Fonmon/Fondo-API
0c78eaab259df18219c01fceb67bd1b6ff8ec941
[ "MIT" ]
48
2018-01-13T14:52:52.000Z
2022-03-13T17:41:42.000Z
fondo_api/tests/runner.py
Fonmon/Fondo-API
0c78eaab259df18219c01fceb67bd1b6ff8ec941
[ "MIT" ]
null
null
null
import logging from django.test.runner import DiscoverRunner class TestRunner(DiscoverRunner): """ When migrations are disabled for the test runner, the `pre_migrate` signal does not emit. So we need another hook for installing the extension. Prior to Django 1.9, the `pre_syncdb` signal worked for that. ...
44.513514
84
0.680631
197
1,647
5.51269
0.477157
0.055249
0.066298
0.036832
0.073665
0
0
0
0
0
0
0.003221
0.245902
1,647
37
85
44.513514
0.871176
0.264117
0
0
0
0
0.035314
0
0
0
0
0
0
1
0.190476
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
44862ca62ad76ed43e2aa3db0d2b5e1183483ba1
3,706
py
Python
tests/test_reference.py
foliant-docs/foliantcontrib.apireferences
4b4bfe865970b7adb1a8c7b5f3cb697ec3257976
[ "MIT" ]
null
null
null
tests/test_reference.py
foliant-docs/foliantcontrib.apireferences
4b4bfe865970b7adb1a8c7b5f3cb697ec3257976
[ "MIT" ]
null
null
null
tests/test_reference.py
foliant-docs/foliantcontrib.apireferences
4b4bfe865970b7adb1a8c7b5f3cb697ec3257976
[ "MIT" ]
null
null
null
import re from foliant.preprocessors.apireferences.apireferences import DEFAULT_REF_REGEX from foliant.preprocessors.apireferences.classes import Reference from unittest import TestCase class TestReference(TestCase): def test_repr_doesnt_throw_errors(self): ref = Reference( source='`MyAPI: GE...
32.79646
79
0.611441
413
3,706
5.338983
0.140436
0.197279
0.236735
0.15873
0.707483
0.654422
0.522449
0.522449
0.476644
0.454875
0
0.006225
0.263087
3,706
112
80
33.089286
0.801172
0
0
0.478723
0
0
0.122774
0
0
0
0
0
0.308511
1
0.085106
false
0
0.042553
0
0.138298
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
448774b167c44c150d8ea3fd24f5266556ab412f
460
py
Python
Diffusion of Infection and Campus Evacuation/parameters.py
dem123456789/Computer-Simulation
ec61bdd7ca767f631ef190c1248690bd65327302
[ "MIT" ]
2
2016-07-03T05:19:20.000Z
2021-03-07T04:39:07.000Z
Diffusion of Infection and Campus Evacuation/parameters.py
dem123456789/Computer-Simulation
ec61bdd7ca767f631ef190c1248690bd65327302
[ "MIT" ]
null
null
null
Diffusion of Infection and Campus Evacuation/parameters.py
dem123456789/Computer-Simulation
ec61bdd7ca767f631ef190c1248690bd65327302
[ "MIT" ]
null
null
null
import math DEBUG = 1 PARKING_NODE_COLOR = '#FF0099' EXIT_NODE_COLOR = 'r' STREET_NODE_COLOR = 'g' COP_NODE_COLOR = '#3c3ccc' VISUAL = 1 COP_MODE = 0 COP_INTERSECTION_THRESHOLD = 0 COP_CONGESTION_THRESHOLD = 0.5 COP_EVACUATION_THRESHOLD = 0 DEPTH_OF_AWARENESS = 1 EAST_TENDENCY = 0 SPACE_TIME_TRADEOFF = 1 DEAD_END = [] ...
20.909091
39
0.773913
75
460
4.373333
0.64
0.109756
0.073171
0
0
0
0
0
0
0
0
0.070707
0.13913
460
21
40
21.904762
0.757576
0.06087
0
0
0
0
0.037471
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
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
4487941981e54376941db03ab4c7b9fc524aa4f4
316
py
Python
Section 3/33_alert.py
IgorPavlovski84/-Automating-Web-Testing-with-Selenium-and-Python
c57b43416bb4bdc7242e79aa9d202851a852daae
[ "MIT" ]
26
2018-12-21T00:52:01.000Z
2021-11-08T13:12:26.000Z
Section 3/33_alert.py
calvinkkd/-Automating-Web-Testing-with-Selenium-and-Python
ca6e427cf6393993245263e26a704beeea8c1fed
[ "MIT" ]
1
2021-02-02T22:05:36.000Z
2021-02-02T22:05:36.000Z
Section 3/33_alert.py
calvinkkd/-Automating-Web-Testing-with-Selenium-and-Python
ca6e427cf6393993245263e26a704beeea8c1fed
[ "MIT" ]
14
2018-12-08T11:40:38.000Z
2021-05-04T01:02:39.000Z
from selenium import webdriver import time driver = webdriver.Chrome() driver.get('http://localhost/se/33.html') driver.execute_script("document.body.style.zoom = '1.5'") time.sleep(1) driver.find_element_by_css_selector('button').click() time.sleep(1) driver.switch_to_alert().accept() time.sleep(1) driver.close()
28.727273
57
0.772152
49
316
4.836735
0.693878
0.113924
0.126582
0.202532
0
0
0
0
0
0
0
0.023569
0.060127
316
11
58
28.727273
0.774411
0
0
0.272727
0
0
0.205047
0.07571
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
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
448bc1e703300278885ac596fbdec39b730d307d
3,611
py
Python
constrained_language_typology/plot_languages_main.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
constrained_language_typology/plot_languages_main.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
constrained_language_typology/plot_languages_main.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
32.241071
77
0.663805
474
3,611
4.85865
0.485232
0.031264
0.033869
0.023448
0
0
0
0
0
0
0
0.026603
0.188037
3,611
111
78
32.531532
0.758868
0.381058
0
0.036364
0
0
0.171208
0
0
0
0
0
0
1
0.036364
false
0
0.2
0
0.236364
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
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
448ce569784ffe842d7c48946cdd94821413b192
1,515
py
Python
experiments/cartpole_dqn.py
jkulhanek/deep-rl-pytorch
6fa7ceee8524f002d4a8d93295b231f6b9b7c29c
[ "MIT" ]
7
2019-03-24T19:51:11.000Z
2022-01-27T17:20:29.000Z
experiments/cartpole_dqn.py
jkulhanek/deep-rl-pytorch
6fa7ceee8524f002d4a8d93295b231f6b9b7c29c
[ "MIT" ]
null
null
null
experiments/cartpole_dqn.py
jkulhanek/deep-rl-pytorch
6fa7ceee8524f002d4a8d93295b231f6b9b7c29c
[ "MIT" ]
4
2020-04-11T01:06:24.000Z
2021-07-18T01:22:36.000Z
import gym import torch.nn as nn import torch.nn.functional as F import numpy as np import deep_rl.deepq as deepq from deep_rl import register_trainer class Model(nn.Module): def __init__(self): super().__init__() def init_weights(m): if type(m) == nn.Linear: nn.init....
25.25
65
0.617162
192
1,515
4.666667
0.427083
0.035714
0.029018
0
0
0
0
0
0
0
0
0.03464
0.275908
1,515
59
66
25.677966
0.782133
0
0
0
0
0
0.007261
0
0
0
0
0
0
1
0.177778
false
0
0.133333
0.066667
0.488889
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
448dcd1097bbc80970b03d1a55067eb7abf25a12
3,314
py
Python
account/views.py
Django-Pyhon/basic-banking-django
c0393fcc06101ebfde8a681fa2d6c8cd8d02a3bc
[ "MIT" ]
1
2021-07-27T22:20:17.000Z
2021-07-27T22:20:17.000Z
account/views.py
Django-Pyhon/basic-banking-django
c0393fcc06101ebfde8a681fa2d6c8cd8d02a3bc
[ "MIT" ]
null
null
null
account/views.py
Django-Pyhon/basic-banking-django
c0393fcc06101ebfde8a681fa2d6c8cd8d02a3bc
[ "MIT" ]
null
null
null
from django.http import Http404 from django.shortcuts import render # Create your views here. from django.contrib.auth.models import User, Group from rest_framework import views, status from rest_framework.response import Response from account.serializers import * class ListCustomers(views.APIView): def get(se...
31.865385
82
0.67592
358
3,314
6.189944
0.209497
0.08213
0.129964
0.113718
0.624097
0.563177
0.531137
0.40343
0.350632
0.230144
0
0.009471
0.235365
3,314
103
83
32.174757
0.865036
0.00694
0
0.512821
0
0
0.002432
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.551282
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
448f5af76ad0cc20a0a28294b6c5340ad6385f98
1,063
py
Python
setup.py
pymgrit/pymgrit
40eca08cedf486de22604279b4add87086b7d3cc
[ "MIT" ]
6
2020-04-24T13:14:17.000Z
2022-03-09T14:16:51.000Z
setup.py
pymgrit/pymgrit
40eca08cedf486de22604279b4add87086b7d3cc
[ "MIT" ]
6
2020-03-24T09:03:05.000Z
2021-08-02T13:31:39.000Z
setup.py
pymgrit/pymgrit
40eca08cedf486de22604279b4add87086b7d3cc
[ "MIT" ]
4
2020-06-09T21:11:19.000Z
2021-06-27T11:34:58.000Z
from setuptools import setup, find_packages install_requires = [ 'numpy>=1.17.0', 'scipy>=1.4.1', 'mpi4py>=3.0', 'matplotlib>=3.1.3' ] extras_requires = { 'docs': [ 'sphinx' ], 'tests': [ 'tox', ] } def long_description(): with open('README.rst') as f: ret...
25.309524
116
0.631232
130
1,063
5
0.607692
0.092308
0.073846
0.083077
0.083077
0.083077
0
0
0
0
0
0.021454
0.210724
1,063
41
117
25.926829
0.753278
0
0
0
0
0.028571
0.316087
0.094073
0
0
0
0
0
1
0.028571
false
0
0.028571
0
0.085714
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
448fa6d89d25e8087b61e1aab2f8a346c2002a80
185
py
Python
study/python/OtherTutorials/flexibleNumberOfArgs.py
YoungsAppWorkshop/dev_environment_setup
f197c81059ec5f1ce0bd8b5d972034252f29d9d0
[ "MIT" ]
null
null
null
study/python/OtherTutorials/flexibleNumberOfArgs.py
YoungsAppWorkshop/dev_environment_setup
f197c81059ec5f1ce0bd8b5d972034252f29d9d0
[ "MIT" ]
3
2021-01-06T10:18:17.000Z
2021-09-02T17:55:51.000Z
study/python/OtherTutorials/flexibleNumberOfArgs.py
YoungsAppWorkshop/dev_environment_setup
f197c81059ec5f1ce0bd8b5d972034252f29d9d0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def add_numbers(*args): total = 0 for arg in args: total += arg print(total) add_numbers(3) add_numbers(3, 2) add_numbers(1, 3, 5, 6, 7, 8)
15.416667
29
0.605405
33
185
3.272727
0.636364
0.37037
0.203704
0
0
0
0
0
0
0
0
0.079137
0.248649
185
11
30
16.818182
0.697842
0.113514
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.125
0.125
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4490ad67efce400919429713bee906671961ca09
2,590
py
Python
mod6_lab1.py
KMSkelton/pyPrac
11cec31d4cc1cbb890f89324a10f4daf66376de0
[ "MIT" ]
1
2017-08-08T20:38:27.000Z
2017-08-08T20:38:27.000Z
mod6_lab1.py
KMSkelton/pyPrac
11cec31d4cc1cbb890f89324a10f4daf66376de0
[ "MIT" ]
1
2018-08-15T22:26:29.000Z
2018-08-15T22:26:29.000Z
mod6_lab1.py
KMSkelton/pyPrac
11cec31d4cc1cbb890f89324a10f4daf66376de0
[ "MIT" ]
null
null
null
# Update the code to have a function that reads in the file and returns contents as a list def open_sample_func(sample_text): with open(sample_text) as file: lines = file.readlines() return lines # Update the code to have a function that converts the list of book lines into a list of the words def ...
41.774194
105
0.71583
419
2,590
4.260143
0.291169
0.110924
0.036415
0.02521
0.266667
0.12437
0.09972
0.09972
0.045938
0
0
0.000989
0.218919
2,590
61
106
42.459016
0.881364
0.439768
0
0
0
0
0.182008
0.030683
0
0
0
0
0
1
0.108108
false
0
0
0
0.216216
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
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
4490e5d26b0906c435e659bb5263d97c5a74554f
648
py
Python
tests/two_three_compat_test.py
dw/econtext
c1e72b82258752d4a3155e88806c2e1235805eff
[ "BSD-3-Clause" ]
null
null
null
tests/two_three_compat_test.py
dw/econtext
c1e72b82258752d4a3155e88806c2e1235805eff
[ "BSD-3-Clause" ]
27
2017-08-22T21:20:22.000Z
2017-09-10T07:35:55.000Z
tests/two_three_compat_test.py
dw/econtext
c1e72b82258752d4a3155e88806c2e1235805eff
[ "BSD-3-Clause" ]
null
null
null
import mitogen.core import testlib import simple_pkg.ping # TODO: this is a joke. 2/3 interop is one of the hardest bits to get right. # There should be 100 tests in this file. class TwoThreeCompatTest(testlib.RouterMixin, testlib.TestCase): if mitogen.core.PY3: python_path = 'python2' else: ...
28.173913
76
0.700617
90
648
4.944444
0.611111
0.089888
0.058427
0
0
0
0
0
0
0
0
0.021401
0.20679
648
22
77
29.454545
0.844358
0.175926
0
0
0
0
0.026365
0
0
0
0
0.045455
0.142857
1
0.071429
false
0
0.214286
0
0.357143
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
44911cbbd93bdb5beaecefc59e565353a88e30d2
1,439
py
Python
volume/pipeline.py
Napam/INF399-Master-Evaluation
d6e66397ae6951cffae65ddd41979bab367abdb8
[ "MIT" ]
1
2021-05-31T13:32:09.000Z
2021-05-31T13:32:09.000Z
volume/pipeline.py
Napam/INF399-Master-Evaluation
d6e66397ae6951cffae65ddd41979bab367abdb8
[ "MIT" ]
null
null
null
volume/pipeline.py
Napam/INF399-Master-Evaluation
d6e66397ae6951cffae65ddd41979bab367abdb8
[ "MIT" ]
null
null
null
import glob, os from cococonvert import convert_csv_labels, convert_csv_outputs from cocoeval import COCO, COCOeval import sys class StdoutRedirection: """Standard output redirection context manager""" def __init__(self, path): self._path = path def __enter__(self): sys.stdout = open(se...
32.704545
99
0.660181
183
1,439
4.89071
0.393443
0.044693
0.046927
0.035754
0.18771
0
0
0
0
0
0
0.018325
0.203614
1,439
44
100
32.704545
0.762653
0.029882
0
0
0
0
0.23652
0.071891
0
0
0
0
0
1
0.09375
false
0
0.125
0
0.28125
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4492af236eff4aa2e983034e070713b3b4e8e677
3,076
py
Python
play.py
brandoFranco/tictactoeOpenCV
60eaa9c028cdfe13e68124de4037b39fcfa7432c
[ "MIT" ]
null
null
null
play.py
brandoFranco/tictactoeOpenCV
60eaa9c028cdfe13e68124de4037b39fcfa7432c
[ "MIT" ]
null
null
null
play.py
brandoFranco/tictactoeOpenCV
60eaa9c028cdfe13e68124de4037b39fcfa7432c
[ "MIT" ]
null
null
null
# # Jogo da Velha utilizando Visao Computacional e Realidade aumentada. # Definicao de funcoes auxiliares # import numpy as np # Funcao que verifica se e o fim do jogo. def won(tabuleiro): if (tabuleiro[0] == tabuleiro[1] == tabuleiro[2] == 0): return 1 elif (tabuleiro[0] == tabuleiro[3] == tabuleiro...
28.220183
69
0.535761
486
3,076
3.390947
0.193416
0.118325
0.038835
0.058252
0.475121
0.455704
0.430825
0.169296
0.169296
0.069782
0
0.088889
0.28316
3,076
108
70
28.481481
0.658503
0.114434
0
0.3
0
0
0.005895
0
0
0
0
0
0
1
0.05
false
0
0.0125
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4492b1a697142e5525ad3f5dfe95027989301553
1,407
py
Python
src/main.py
TomoTom0/DiscordBot_Heroku_Stat.ink
458ad08fb53a83b8fa96dad25fd603c9d14722b2
[ "MIT" ]
1
2020-11-12T04:26:30.000Z
2020-11-12T04:26:30.000Z
src/main.py
TomoTom0/DiscordBot_Heroku_Stat.ink
458ad08fb53a83b8fa96dad25fd603c9d14722b2
[ "MIT" ]
null
null
null
src/main.py
TomoTom0/DiscordBot_Heroku_Stat.ink
458ad08fb53a83b8fa96dad25fd603c9d14722b2
[ "MIT" ]
4
2020-11-14T14:53:30.000Z
2021-07-05T11:36:59.000Z
#! /usr/bin/env python3 import discord from discord.ext import commands import subprocess import re import os, sys import json import basic import datetime import traceback import iksm_discord TOKEN = basic.DISCORD_TOKENS["0"] startup_extensions = ["splat"] # cogの導入 description = f"stat.inkへ戦績自動アップロードを行うbotです。\nまずはs...
25.125
86
0.702914
173
1,407
5.578035
0.560694
0.022798
0.026943
0.033161
0.037306
0
0
0
0
0
0
0.005222
0.183369
1,407
55
87
25.581818
0.834639
0.093817
0
0.162162
0
0.027027
0.266772
0.123125
0
0
0
0
0
1
0
false
0
0.27027
0
0.297297
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
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
44932b7c61cbe0cddbdb7086477b87d6e2cfcb5d
1,019
py
Python
tls/Alerts.py
anuraagbaishya/tls1.3
e86b575431694fe4ea987cdb89ef3438f7f28360
[ "MIT" ]
null
null
null
tls/Alerts.py
anuraagbaishya/tls1.3
e86b575431694fe4ea987cdb89ef3438f7f28360
[ "MIT" ]
null
null
null
tls/Alerts.py
anuraagbaishya/tls1.3
e86b575431694fe4ea987cdb89ef3438f7f28360
[ "MIT" ]
null
null
null
from tls.CustomEnums import UInt8Enum class Alert(Exception): def __init__(self, level, description): self.level = level self.description = description class AlertLevel(UInt8Enum): warning = 1 fatal = 2 class AlertDescription(UInt8Enum): close_notify = 0 unexpected_message = 10...
23.697674
43
0.708538
115
1,019
5.965217
0.773913
0.026239
0
0
0
0
0
0
0
0
0
0.084416
0.244357
1,019
42
44
24.261905
0.806494
0
0
0
0
0
0
0
0
0
0
0
0
1
0.027778
false
0
0.027778
0
0.944444
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
4494889d1e0dfebc5119191d7266469bf0009a3a
21,922
py
Python
ProjectSurveillance/views.py
psymen145/OVS-django-fe
1823e8b42c17276d6b50a63dddd9b04a21c2038c
[ "MIT" ]
null
null
null
ProjectSurveillance/views.py
psymen145/OVS-django-fe
1823e8b42c17276d6b50a63dddd9b04a21c2038c
[ "MIT" ]
null
null
null
ProjectSurveillance/views.py
psymen145/OVS-django-fe
1823e8b42c17276d6b50a63dddd9b04a21c2038c
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404, redirect from django.http import HttpResponse, JsonResponse, Http404 from django.contrib.auth.decorators import login_required from django.core.exceptions import ObjectDoesNotExist from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from ...
42.238921
178
0.59251
2,526
21,922
4.998812
0.163104
0.019561
0.018294
0.013305
0.413954
0.370476
0.345688
0.311713
0.300467
0.282252
0
0.007151
0.32383
21,922
518
179
42.320463
0.844701
0.199845
0
0.493188
0
0
0.082006
0.026136
0
0
0
0
0
1
0.040872
false
0.00545
0.038147
0
0.125341
0.027248
0
0
0
null
0
0
0
0
0
0
0
0
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
4496bc453a600d2cdbfc10306dcde26b6af41bee
41
py
Python
test_server/src/controllers/__init__.py
s-nao/gatling-practice
5d4e6abfbed34a4e356a7ef770393e57411de80c
[ "Apache-2.0" ]
null
null
null
test_server/src/controllers/__init__.py
s-nao/gatling-practice
5d4e6abfbed34a4e356a7ef770393e57411de80c
[ "Apache-2.0" ]
null
null
null
test_server/src/controllers/__init__.py
s-nao/gatling-practice
5d4e6abfbed34a4e356a7ef770393e57411de80c
[ "Apache-2.0" ]
null
null
null
from . import ( users, search, )
8.2
15
0.512195
4
41
5.25
1
0
0
0
0
0
0
0
0
0
0
0
0.365854
41
4
16
10.25
0.807692
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
1
1
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
0
0
0
0
0
4
4497d26024dfdc2730aaaf21bcb0e80805684f50
7,806
py
Python
optur/storages/backends/mysql.py
ytsmiling/optur
cbc56c60b322ea764592f01758798f745199b455
[ "MIT" ]
1
2022-01-19T09:18:15.000Z
2022-01-19T09:18:15.000Z
optur/storages/backends/mysql.py
ytsmiling/optur
cbc56c60b322ea764592f01758798f745199b455
[ "MIT" ]
null
null
null
optur/storages/backends/mysql.py
ytsmiling/optur
cbc56c60b322ea764592f01758798f745199b455
[ "MIT" ]
null
null
null
import time from typing import Any, Callable, List, Optional from google.protobuf.timestamp_pb2 import Timestamp from optur.errors import NotFoundError from optur.proto.study_pb2 import StudyInfo from optur.proto.study_pb2 import Trial as TrialProto from optur.storages.backends.backend import StorageBackend def _re...
37.893204
99
0.55816
837
7,806
5.056153
0.16129
0.036389
0.068053
0.065217
0.527647
0.442344
0.366257
0.289225
0.265359
0.208648
0
0.008772
0.342813
7,806
205
100
38.078049
0.816179
0.003459
0
0.443243
0
0
0.350051
0.048354
0
0
0
0.004878
0
1
0.064865
false
0.010811
0.064865
0.005405
0.178378
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
449998dcb11c693a0012e9960aaba5d1b4901d48
1,394
py
Python
pymclevel/test/templevel.py
bennettdc/MCEdit-Unified
90abfb170c65b877ac67193e717fa3a3ded635dd
[ "0BSD" ]
237
2018-02-04T19:13:31.000Z
2022-03-26T03:06:07.000Z
pymclevel/test/templevel.py
bennettdc/MCEdit-Unified
90abfb170c65b877ac67193e717fa3a3ded635dd
[ "0BSD" ]
551
2015-01-01T02:36:53.000Z
2018-02-01T00:03:12.000Z
pymclevel/test/templevel.py
bennettdc/MCEdit-Unified
90abfb170c65b877ac67193e717fa3a3ded635dd
[ "0BSD" ]
97
2015-01-02T01:31:12.000Z
2018-01-22T05:37:47.000Z
import atexit import os from os.path import join import shutil import tempfile from pymclevel import mclevel __author__ = 'Rio' tempdir = os.path.join(tempfile.gettempdir(), "pymclevel_test") if not os.path.exists(tempdir): os.mkdir(tempdir) def mktemp(suffix): td = tempfile.mkdtemp(suffix, dir=tempdir) ...
24.892857
63
0.601148
155
1,394
5.322581
0.367742
0.058182
0.043636
0.026667
0.106667
0.065455
0
0
0
0
0
0
0.29627
1,394
55
64
25.345455
0.840979
0
0
0.116279
0
0
0.040172
0
0
0
0
0
0
1
0.093023
false
0
0.139535
0
0.27907
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
449a09fa6cac651fdb37c7759dc5ded62edc72b2
5,157
py
Python
dags/oss_know/libs/github/init_profiles.py
HexaemeronFsk/airflow-jobs
674f4c15f6889653bf5578117b085ef794c7b3f4
[ "Apache-2.0" ]
null
null
null
dags/oss_know/libs/github/init_profiles.py
HexaemeronFsk/airflow-jobs
674f4c15f6889653bf5578117b085ef794c7b3f4
[ "Apache-2.0" ]
null
null
null
dags/oss_know/libs/github/init_profiles.py
HexaemeronFsk/airflow-jobs
674f4c15f6889653bf5578117b085ef794c7b3f4
[ "Apache-2.0" ]
null
null
null
import itertools from loguru import logger from opensearchpy.helpers import scan as os_scan from oss_know.libs.base_dict.opensearch_index import OPENSEARCH_INDEX_GITHUB_COMMITS, \ OPENSEARCH_INDEX_GITHUB_ISSUES_TIMELINE from oss_know.libs.util.opensearch_api import OpensearchAPI from oss_know.libs.util.base import ...
46.459459
114
0.61528
620
5,157
4.806452
0.179032
0.051678
0.05906
0.073826
0.531208
0.455705
0.417785
0.415436
0.323826
0.267785
0
0.000549
0.293969
5,157
110
115
46.881818
0.817907
0.084545
0
0.166667
0
0
0.169864
0.047101
0
0
0
0
0
1
0.059524
false
0
0.071429
0
0.202381
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
921fdb31b845a38c9c0e90ae7d4068748c59af90
10,274
py
Python
json_to_relation/test/testModuleStoreImporter.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
4
2015-10-10T19:09:49.000Z
2021-09-02T00:58:06.000Z
json_to_relation/test/testModuleStoreImporter.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
null
null
null
json_to_relation/test/testModuleStoreImporter.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
8
2015-05-16T14:33:33.000Z
2019-10-24T08:56:25.000Z
# Copyright (c) 2014, Stanford University # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
51.114428
757
0.662644
1,083
10,274
6.253001
0.357341
0.009746
0.024808
0.024365
0.104548
0.056113
0.056113
0.054489
0.022888
0.022888
0
0.025375
0.248199
10,274
201
758
51.114428
0.851372
0.353027
0
0.220183
0
0.027523
0.119124
0.084367
0
0
0
0
0.073395
1
0.073395
false
0.036697
0.311927
0
0.394495
0.009174
0
0
0
null
0
0
0
0
0
0
0
0
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
922098fba0782c8cc0b4f538f40dc425f77aa77a
1,457
py
Python
image_extractor.py
satrajit-chatterjee/DeXpression-PyTorch
00100385145485cf00b0a1cc53154db623c8a14f
[ "MIT" ]
6
2019-01-18T02:34:21.000Z
2022-03-22T13:37:11.000Z
image_extractor.py
satrajit-chatterjee/DeXpression-PyTorch
00100385145485cf00b0a1cc53154db623c8a14f
[ "MIT" ]
3
2019-01-18T02:44:13.000Z
2019-12-16T14:32:55.000Z
image_extractor.py
satrajit-chatterjee/DeXpression-PyTorch
00100385145485cf00b0a1cc53154db623c8a14f
[ "MIT" ]
1
2022-03-14T03:29:47.000Z
2022-03-14T03:29:47.000Z
import glob from shutil import copyfile emotions = ["neutral", "anger", "contempt", "disgust", "fear", "happy", "sadness", "surprise"] # Define emotion order participants = glob.glob("source_emotion\\*") # Returns a list of all folders with participant numbers for x in participants: part = "%s" % x[-4:] ...
60.708333
121
0.621139
178
1,457
4.983146
0.44382
0.045096
0.047351
0.024803
0.090192
0.090192
0.090192
0.090192
0.090192
0
0
0.010101
0.252574
1,457
23
122
63.347826
0.804408
0.284832
0
0
0
0
0.169492
0.070788
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
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
9221f8b3cd619ef0a25608b276b0b53b07e7b0d4
83
py
Python
cfgr/__init__.py
markkorput/pycfgr
594fc8d1c36e59e4fcf3e1d0bb5a5db8edf426c5
[ "MIT" ]
1
2021-09-15T08:40:10.000Z
2021-09-15T08:40:10.000Z
cfgr/__init__.py
markkorput/pycfgr
594fc8d1c36e59e4fcf3e1d0bb5a5db8edf426c5
[ "MIT" ]
6
2019-09-25T08:09:00.000Z
2019-09-27T12:26:09.000Z
cfgr/__init__.py
markkorput/pycfgr
594fc8d1c36e59e4fcf3e1d0bb5a5db8edf426c5
[ "MIT" ]
1
2021-09-15T08:40:14.000Z
2021-09-15T08:40:14.000Z
from .Runtime import Runtime from .Type import Type from .Instance import Instance
20.75
30
0.819277
12
83
5.666667
0.416667
0
0
0
0
0
0
0
0
0
0
0
0.144578
83
3
31
27.666667
0.957746
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
0
0
0
4
9222f71379c7695e4f0ab4cb4b35f058fef9c401
156
py
Python
apps/BlogContent/urls.py
Roberto09/MyBlog
24634ce60a3af45a5675668132dbfa725872b793
[ "MIT" ]
null
null
null
apps/BlogContent/urls.py
Roberto09/MyBlog
24634ce60a3af45a5675668132dbfa725872b793
[ "MIT" ]
null
null
null
apps/BlogContent/urls.py
Roberto09/MyBlog
24634ce60a3af45a5675668132dbfa725872b793
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from apps.BlogContent.views import SeeBP urlpatterns = [ url(r'^MyBlogs', SeeBP.as_view() , name='see_BP'), ]
26
54
0.724359
23
156
4.826087
0.826087
0
0
0
0
0
0
0
0
0
0
0
0.134615
156
6
55
26
0.822222
0
0
0
0
0
0.089172
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
92231061990614a2931123b7d435d718a7b2ef2d
62
py
Python
run.py
rblack42/flask-inventory
48c0cfaf1ab10d0891c5af9d2b609e2b9e44ed74
[ "BSD-3-Clause" ]
null
null
null
run.py
rblack42/flask-inventory
48c0cfaf1ab10d0891c5af9d2b609e2b9e44ed74
[ "BSD-3-Clause" ]
null
null
null
run.py
rblack42/flask-inventory
48c0cfaf1ab10d0891c5af9d2b609e2b9e44ed74
[ "BSD-3-Clause" ]
null
null
null
from app.core import create_app app = create_app('flask.cfg')
20.666667
31
0.774194
11
62
4.181818
0.636364
0.391304
0
0
0
0
0
0
0
0
0
0
0.112903
62
2
32
31
0.836364
0
0
0
0
0
0.145161
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
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
4
92232435b0e0b41e1bc75ad98de9764440370bab
13,549
py
Python
resultr_format/__init__.py
haykkh/resultr-format
8188a9b9a011899a58be54c8036edc9207e63948
[ "MIT" ]
null
null
null
resultr_format/__init__.py
haykkh/resultr-format
8188a9b9a011899a58be54c8036edc9207e63948
[ "MIT" ]
null
null
null
resultr_format/__init__.py
haykkh/resultr-format
8188a9b9a011899a58be54c8036edc9207e63948
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Makes UCL PHAS results better """ __author__ = "Hayk Khachatryan" __version__ = "0.1.4.4" __license__ = "MIT" import argparse import csv import sys import itertools import pathlib as pathlib import inquirer ######################### # # # # # ...
32.259524
114
0.518857
1,372
13,549
5.102041
0.186589
0.025714
0.003429
0.009429
0.532714
0.485857
0.447143
0.419857
0.393857
0.393857
0
0.012199
0.346594
13,549
419
115
32.336516
0.778493
0.303712
0
0.393258
0
0
0.148821
0
0
0
0
0
0
1
0.061798
false
0
0.039326
0
0.157303
0.016854
0
0
0
null
0
0
0
0
0
0
0
0
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
922341f36deca5a7a2891e78eb58b70f3fdc0eb8
1,981
py
Python
dmg/edits/pallete.py
Antolin1/DMG-Python
ba3942e13006e1a32f3fe9f1b29615311f667274
[ "MIT" ]
null
null
null
dmg/edits/pallete.py
Antolin1/DMG-Python
ba3942e13006e1a32f3fe9f1b29615311f667274
[ "MIT" ]
null
null
null
dmg/edits/pallete.py
Antolin1/DMG-Python
ba3942e13006e1a32f3fe9f1b29615311f667274
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Sep 6 11:36:49 2021 @author: Jose Antonio """ import random from networkx.algorithms.isomorphism import is_isomorphic from dmg.graphUtils import edge_match_type as edge_match from dmg.graphUtils import node_match_type as node_match import networkx as ...
30.953125
68
0.570419
236
1,981
4.639831
0.377119
0.09863
0.057534
0.042009
0.054795
0
0
0
0
0
0
0.012346
0.345785
1,981
64
69
30.953125
0.832562
0.118627
0
0.045455
0
0
0.003458
0
0
0
0
0.015625
0
1
0.090909
false
0
0.113636
0.045455
0.340909
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
922361dea1d8463d9ea2c90bf6568fee4603b6fb
14,689
py
Python
ml_boilerplate/preprocess/generic_pipeline.py
mcraig2/ml_boilerplate
5373f593b76fb115fb7a80dc9b87c633a3fcde48
[ "MIT" ]
null
null
null
ml_boilerplate/preprocess/generic_pipeline.py
mcraig2/ml_boilerplate
5373f593b76fb115fb7a80dc9b87c633a3fcde48
[ "MIT" ]
null
null
null
ml_boilerplate/preprocess/generic_pipeline.py
mcraig2/ml_boilerplate
5373f593b76fb115fb7a80dc9b87c633a3fcde48
[ "MIT" ]
null
null
null
""" The Pipeline object in sci-kit learn is very useful for constructing simple and complex modeling pipelines. However, out of the box it is cumbersome to build pipelines that involve heterogenous data. Most transformers assume that the entirety of the input datasets are of the same dtype. So, how do y...
38.054404
82
0.601675
1,738
14,689
4.975834
0.20023
0.014801
0.013529
0.019426
0.251156
0.192414
0.173797
0.16339
0.113552
0.088113
0
0.001848
0.300225
14,689
385
83
38.153247
0.839479
0.370754
0
0.156627
0
0
0.064557
0.007913
0
0
0
0
0
1
0.13253
false
0.006024
0.10241
0
0.421687
0.006024
0
0
0
null
0
0
0
0
0
0
0
0
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
92248f27e069d6c0f5243445c0b5840242d3af37
455
py
Python
provider/urls.py
Creationeers/Django_Barebone_Rest
f7e414575a5e6ff6324cef7e4ceccac0775eba78
[ "Apache-2.0" ]
null
null
null
provider/urls.py
Creationeers/Django_Barebone_Rest
f7e414575a5e6ff6324cef7e4ceccac0775eba78
[ "Apache-2.0" ]
7
2020-05-14T23:03:48.000Z
2022-02-10T08:49:02.000Z
provider/urls.py
Creationeers/Django_Barebone_Rest
f7e414575a5e6ff6324cef7e4ceccac0775eba78
[ "Apache-2.0" ]
null
null
null
from django.urls import path, include from rest_framework_simplejwt import views as jwt_views from .views import (RegisterUserView) AUTH_PATTERNS = [ path('token/', jwt_views.TokenObtainPairView.as_view(), name='token-obtain'), path('token/refresh/', jwt_views.TokenRefreshView.as_view(), name='token-refresh') ...
35
86
0.742857
56
455
5.857143
0.446429
0.073171
0.091463
0.091463
0
0
0
0
0
0
0
0
0.112088
455
13
87
35
0.811881
0
0
0
0
0
0.157895
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
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
92249c945ed95319b78da0f8f6f1d5710f928e02
4,598
py
Python
pipeline/config.py
felipemoran/tcc_sfm
b0b35e92c7c2f86d84120366147a8a650d0a4f7c
[ "MIT" ]
2
2020-10-27T21:45:01.000Z
2021-04-21T11:47:37.000Z
pipeline/config.py
felipemoran/tcc_sfm
b0b35e92c7c2f86d84120366147a8a650d0a4f7c
[ "MIT" ]
null
null
null
pipeline/config.py
felipemoran/tcc_sfm
b0b35e92c7c2f86d84120366147a8a650d0a4f7c
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Tuple, Any, List, Union import ruamel.yaml from ruamel.yaml.constructor import SafeConstructor import dacite import numpy as np @dataclass class CornerSelectionConfig: """ Config for the corner selection phase of KLT """ quality_level: float mi...
19
85
0.705524
527
4,598
5.918406
0.352941
0.062841
0.041039
0.019237
0.123758
0.096505
0.07791
0.07791
0.065406
0.065406
0
0.001134
0.232927
4,598
241
86
19.078838
0.883187
0.177251
0
0.272
0
0
0.019525
0
0
0
0
0
0.008
1
0.048
false
0
0.048
0
0.792
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
922663d4e78a63fff7f9bf0e66748de595d3c9af
161
py
Python
pymath/map_squares/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
pymath/map_squares/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
pymath/map_squares/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
def map_squares(numbers): """ :param numbers: list of numbers :return: square of the numbers """ return list(map(lambda x: x ** 2, numbers))
23
47
0.614907
22
161
4.454545
0.590909
0.265306
0
0
0
0
0
0
0
0
0
0.008333
0.254658
161
6
48
26.833333
0.808333
0.385093
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
1
0
1
0
0
null
1
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
1
0
0
0
0
0
0
0
4
92278d4c99a794fc39f30624185168097ec4b202
1,400
py
Python
url_fetcher.py
netarachelhershko/crawler
22a5b41a768fae7415ad30cc6aec97063f2d07ce
[ "MIT" ]
null
null
null
url_fetcher.py
netarachelhershko/crawler
22a5b41a768fae7415ad30cc6aec97063f2d07ce
[ "MIT" ]
null
null
null
url_fetcher.py
netarachelhershko/crawler
22a5b41a768fae7415ad30cc6aec97063f2d07ce
[ "MIT" ]
null
null
null
from html_url_extractor import HtmlUrlExtractor from request_getter import RequestGetter from sitemap_fetcher import SitemapFetcher from urlparse import urljoin class UrlFetcher(object): """ Handles url fetching from both html source and sitemaps """ def __init__(self, request_limit=10): self.html_url...
40
98
0.712143
176
1,400
5.375
0.318182
0.07611
0.05074
0.044397
0.065539
0.065539
0
0
0
0
0
0.001832
0.22
1,400
34
99
41.176471
0.864469
0.129286
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.458333
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
9227e595e3c40b1cac183a271ef1634007be821b
7,207
py
Python
lib/db.py
IoTtalk/os-IoTtalk
3c8609d10fcad040e3de727216507d0369be4cd0
[ "MIT" ]
2
2021-06-28T13:25:54.000Z
2021-07-27T08:43:38.000Z
lib/db.py
IoTtalk/IoTtalk
3c8609d10fcad040e3de727216507d0369be4cd0
[ "MIT" ]
1
2021-11-24T09:15:40.000Z
2021-11-24T13:51:23.000Z
lib/db.py
IoTtalk/IoTtalk
3c8609d10fcad040e3de727216507d0369be4cd0
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import Session from ec_config import SQLITE_PATH, MYSQL_HOST, MYSQL_USER, MYSQL_PASS Base = declarative_base() engine = None def connect(db_name): global engine if db_name.startswith('sqlite:'):...
42.146199
122
0.686971
866
7,207
5.430716
0.169746
0.154795
0.095684
0.100999
0.630023
0.54646
0.470338
0.432915
0.375505
0.319371
0
0.007669
0.167754
7,207
170
123
42.394118
0.776425
0.04121
0
0.305344
0
0
0.143668
0.010603
0
0
0
0
0
1
0.022901
false
0.022901
0.053435
0
0.89313
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
92295505eb2a2180c78b5213c3250cea2e678cad
2,995
py
Python
chaos_genius/controllers/alert_controller.py
rsohlot/chaos_genius
ee1f68bf44af36b50d0ccb8c0824bbbbb079b07d
[ "MIT" ]
320
2022-02-18T18:18:42.000Z
2022-03-31T16:42:38.000Z
chaos_genius/controllers/alert_controller.py
rsohlot/chaos_genius
ee1f68bf44af36b50d0ccb8c0824bbbbb079b07d
[ "MIT" ]
115
2022-02-18T16:39:01.000Z
2022-03-31T15:23:52.000Z
chaos_genius/controllers/alert_controller.py
rsohlot/chaos_genius
ee1f68bf44af36b50d0ccb8c0824bbbbb079b07d
[ "MIT" ]
18
2022-02-18T18:44:01.000Z
2022-03-10T08:33:34.000Z
# -*- coding: utf-8 -*- """alert controlller.""" from typing import Any, Dict, List, Literal, Optional, Sequence, Tuple, overload from flask_sqlalchemy import Pagination from chaos_genius.databases.models.alert_model import Alert ALERT_CHANNELS = { "email": "E-mail", "slack": "Slack", } """A mapping of chann...
30.876289
88
0.66611
414
2,995
4.661836
0.280193
0.020725
0.039896
0.031088
0.28342
0.243523
0.22487
0.196891
0.196891
0.196891
0
0.002612
0.233055
2,995
96
89
31.197917
0.837614
0.238397
0
0.42623
0
0
0.028241
0
0
0
0
0.010417
0
1
0.081967
false
0
0.04918
0
0.196721
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
922960e3fb0974ea30b7500861328def7470c6f3
783
py
Python
PraticandoKivy/aula1.py
AlexandrePeBrito/Python
79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0
[ "MIT" ]
null
null
null
PraticandoKivy/aula1.py
AlexandrePeBrito/Python
79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0
[ "MIT" ]
null
null
null
PraticandoKivy/aula1.py
AlexandrePeBrito/Python
79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0
[ "MIT" ]
null
null
null
from kivy.app import App from kivy.uix.behaviors import button from kivy.uix.button import Button from kivy.uix.boxlayout import BoxLayout from kivy.uix.label import Label class teste(App): def build(self): #Interface box = BoxLayout( orientation='vertical') button=Butt...
27.964286
86
0.630907
100
783
4.89
0.4
0.0818
0.08998
0.0818
0.09407
0
0
0
0
0
0
0.020942
0.268199
783
27
87
29
0.832461
0.108557
0
0
0
0
0.066187
0
0
0
0
0
0
1
0.05
false
0
0.25
0
0.4
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
92299645cac68849bfd2688dce2525ba1cb2cd5d
1,160
py
Python
webapp/forms.py
rustprooflabs/osm2pgsql-tuner
1a70cf591ed364f5f0f4a71ef9c164388558da52
[ "MIT" ]
3
2021-05-08T16:44:19.000Z
2021-12-04T20:12:19.000Z
webapp/forms.py
rustprooflabs/osm2pgsql-tuner
1a70cf591ed364f5f0f4a71ef9c164388558da52
[ "MIT" ]
13
2021-05-08T16:47:02.000Z
2022-02-23T14:06:26.000Z
webapp/forms.py
rustprooflabs/osm2pgsql-tuner
1a70cf591ed364f5f0f4a71ef9c164388558da52
[ "MIT" ]
null
null
null
"""Provides Flask Forms related functionality.""" from wtforms import SelectField, BooleanField from flask_wtf import FlaskForm from webapp import config def _get_pbf_gb_choices(): """Prepares list of PBF size choices for drop-down menu. Returns ------------------------- pbf_gb_choices : list ...
32.222222
69
0.580172
134
1,160
4.820896
0.462687
0.069659
0.148607
0.04644
0
0
0
0
0
0
0
0.022032
0.29569
1,160
35
70
33.142857
0.768666
0.181897
0
0
0
0
0.121711
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.52381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
922ad101e021f8b01709397177dc8e329b180e68
1,798
py
Python
karbor-1.3.0/karbor/tests/unit/fake_operation_log.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
1
2021-05-23T01:48:25.000Z
2021-05-23T01:48:25.000Z
karbor-1.3.0/karbor/tests/unit/fake_operation_log.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
karbor-1.3.0/karbor/tests/unit/fake_operation_log.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
39.086957
78
0.669077
227
1,798
5.180617
0.656388
0.07483
0.095238
0.027211
0
0
0
0
0
0
0
0.105263
0.228587
1,798
45
79
39.955556
0.74261
0.303671
0
0
0
0
0.379143
0.232821
0
0
0
0
0
1
0.035714
false
0
0.071429
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
922bba1b4a76b2a553064b7df320dfa6750e6b3c
2,776
py
Python
stage_check/stage_check/OutputRedundancyDatabaseConn.py
128technology/stage_check
2c9cdc491bafbcc6ed1a308093fe606dfd37da67
[ "MIT" ]
2
2020-05-26T15:13:47.000Z
2021-04-29T18:14:21.000Z
stage_check/stage_check/OutputRedundancyDatabaseConn.py
128technology/stage_check
2c9cdc491bafbcc6ed1a308093fe606dfd37da67
[ "MIT" ]
null
null
null
stage_check/stage_check/OutputRedundancyDatabaseConn.py
128technology/stage_check
2c9cdc491bafbcc6ed1a308093fe606dfd37da67
[ "MIT" ]
null
null
null
""" """ try: from stage_check import Output except ImportError: import Output class Base(Output.Base): """ """ def __init__(self): super().__init__() self.__full_name = "OutputRedundancyDatabaseConn.Base" self.status = Output.Status.OK """ no_node_data """ def proc_no_node_d...
19.828571
60
0.482349
250
2,776
4.968
0.184
0.080515
0.112721
0.152979
0.599839
0.497585
0.433172
0.433172
0.433172
0.433172
0
0
0.434078
2,776
139
61
19.971223
0.790579
0.096902
0
0.523077
0
0
0.014865
0.014865
0
0
0
0
0
1
0.169231
false
0
0.046154
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
922c6959cdb3d1ae6948d3f9838d9fd85526c23d
105
py
Python
bans/database/common.py
examknow/bans
2a405788770090e552e605e00e70cfb2cf910ac1
[ "MIT" ]
null
null
null
bans/database/common.py
examknow/bans
2a405788770090e552e605e00e70cfb2cf910ac1
[ "MIT" ]
null
null
null
bans/database/common.py
examknow/bans
2a405788770090e552e605e00e70cfb2cf910ac1
[ "MIT" ]
null
null
null
class DBTable(object): def __init__(self, db_location: str): self._db_location = db_location
26.25
41
0.704762
14
105
4.714286
0.642857
0.454545
0.424242
0
0
0
0
0
0
0
0
0
0.2
105
3
42
35
0.785714
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
1
1
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
1
0
0
0
0
1
0
0
6
922e25c5c3aba311e0beb70dcaf014c52bc03e0f
221
py
Python
eyey/constants.py
dincamihai/eyey
146c75a1c8b4f3da6ced57b4fee43ba3315052e0
[ "Apache-2.0" ]
null
null
null
eyey/constants.py
dincamihai/eyey
146c75a1c8b4f3da6ced57b4fee43ba3315052e0
[ "Apache-2.0" ]
null
null
null
eyey/constants.py
dincamihai/eyey
146c75a1c8b4f3da6ced57b4fee43ba3315052e0
[ "Apache-2.0" ]
null
null
null
IMPORTANT = b'important' NOT_IMPORTANT = b'not-important' SHOULD_BE_IMPORTANT = b'should-be-important' SHOULD_BE_NOT_IMPORTANT = b'should-be-not-important' RETRAIN = b'retrain' RELABEL = b'relabel' DELETED = b'\\Deleted'
27.625
52
0.773756
33
221
5
0.242424
0.242424
0.157576
0.218182
0
0
0
0
0
0
0
0
0.095023
221
7
53
31.571429
0.825
0
0
0
0
0
0.393665
0.104072
0
0
0
0
0
1
0
false
0
0.571429
0
0.571429
0
0
0
0
null
1
0
1
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
1
0
0
5
922ebbdd04efb0dd43f3ace3b299d783e86149ce
27
py
Python
type_mappers/example.py
christabor/type_mappers
4c992b350dd579451f8956fb6ba8f70dd6e9a42f
[ "MIT" ]
2
2017-01-27T22:55:57.000Z
2017-01-29T01:56:52.000Z
type_mappers/example.py
christabor/type_mappers
4c992b350dd579451f8956fb6ba8f70dd6e9a42f
[ "MIT" ]
5
2017-01-28T07:36:31.000Z
2018-10-12T16:37:06.000Z
type_mappers/example.py
christabor/type_mappers
4c992b350dd579451f8956fb6ba8f70dd6e9a42f
[ "MIT" ]
null
null
null
from type_mappers import *
13.5
26
0.814815
4
27
5.25
1
0
0
0
0
0
0
0
0
0
0
0
0.148148
27
1
27
27
0.913043
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
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
6
922fe87b33a94fd0514ba31eace5ebb1c4d0f849
504
py
Python
APPS/PICK/models.py
RockhoRockho/Project_FG
362c75ebfdfcc8f1a8c88236279fefe24dfbd2c7
[ "MIT" ]
1
2022-03-25T12:45:24.000Z
2022-03-25T12:45:24.000Z
APPS/PICK/models.py
RockhoRockho/Project_FG
362c75ebfdfcc8f1a8c88236279fefe24dfbd2c7
[ "MIT" ]
null
null
null
APPS/PICK/models.py
RockhoRockho/Project_FG
362c75ebfdfcc8f1a8c88236279fefe24dfbd2c7
[ "MIT" ]
null
null
null
from django.db import models class Pick(models.Model): reason = models.CharField(max_length=30, default='', verbose_name='사유') comment = models.TextField(default='', verbose_name='덧글') member = models.ForeignKey('MEMBER.Member', on_delete=models.CASCADE) product = models.ForeignKey('PRODUCT.Product', o...
29.647059
76
0.676587
62
504
5.290323
0.564516
0.134146
0.109756
0.128049
0
0
0
0
0
0
0
0.004951
0.198413
504
16
77
31.5
0.806931
0
0
0
0
0
0.077381
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0.083333
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9230b5dfc3dc5973a4a8bb85e64adb2810164e90
154
py
Python
data/test_xunit.py
dustprotocol/go2xunit
15f9176b63ac73928fea9106350a53d7556ddf27
[ "MIT" ]
163
2015-03-18T09:42:39.000Z
2022-02-09T01:22:29.000Z
data/test_xunit.py
dustprotocol/go2xunit
15f9176b63ac73928fea9106350a53d7556ddf27
[ "MIT" ]
50
2015-05-28T08:27:51.000Z
2019-09-26T08:07:31.000Z
data/test_xunit.py
dustprotocol/go2xunit
15f9176b63ac73928fea9106350a53d7556ddf27
[ "MIT" ]
50
2015-01-10T18:44:32.000Z
2021-11-18T03:52:03.000Z
def test_add(): assert 1 + 2 == 3, "bad add" def test_sub(): assert 2 - 1 == 1, "bad sub" def test_sub_fail(): assert 2 - 2 == 1, "bad sub"
17.111111
32
0.538961
28
154
2.821429
0.357143
0.265823
0.253165
0
0
0
0
0
0
0
0
0.081818
0.285714
154
8
33
19.25
0.636364
0
0
0
0
0
0.136364
0
0
0
0
0
0.5
1
0.5
true
0
0
0
0.5
0
1
0
0
null
1
1
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
1
0
1
1
0
0
0
0
0
0
7
9231baa109d9435fe051070cbdf5afd97866fc14
5,134
py
Python
graphlearn/python/nn/tf/app/link_predictor.py
gasdaf/graph-learn
4a77b39be37bb7507f0e9fb5d4ed40ca623b2ceb
[ "Apache-2.0" ]
1
2021-08-30T03:13:23.000Z
2021-08-30T03:13:23.000Z
graphlearn/python/nn/tf/app/link_predictor.py
gasdaf/graph-learn
4a77b39be37bb7507f0e9fb5d4ed40ca623b2ceb
[ "Apache-2.0" ]
null
null
null
graphlearn/python/nn/tf/app/link_predictor.py
gasdaf/graph-learn
4a77b39be37bb7507f0e9fb5d4ed40ca623b2ceb
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
36.15493
80
0.653292
727
5,134
4.480055
0.308116
0.017194
0.021492
0.024562
0.211544
0.180841
0.16549
0.16549
0.16549
0.152287
0
0.013628
0.242501
5,134
141
81
36.411348
0.823862
0.410012
0
0.217949
0
0
0.005144
0
0
0
0
0
0
1
0.076923
false
0
0.089744
0
0.24359
0.012821
0
0
0
null
0
0
0
0
0
0
0
0
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
9231c9644edcc00c1f418f1e4bb4808e72a0d692
1,099
py
Python
torchtext/functional.py
parmeet/text
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
[ "BSD-3-Clause" ]
null
null
null
torchtext/functional.py
parmeet/text
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
[ "BSD-3-Clause" ]
null
null
null
torchtext/functional.py
parmeet/text
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
[ "BSD-3-Clause" ]
null
null
null
import torch from torch import Tensor from torch.nn.utils.rnn import pad_sequence from typing import List, Optional __all__ = [ 'to_tensor', 'truncate', 'add_token', ] def to_tensor(input: List[List[int]], padding_value: Optional[int] = None) -> Tensor: if padding_value is None: output = torc...
23.891304
92
0.616015
148
1,099
4.425676
0.297297
0.085496
0.117557
0.079389
0.20916
0.20916
0.170992
0
0
0
0
0
0.264786
1,099
45
93
24.422222
0.810644
0
0
0.323529
0
0
0.023658
0
0
0
0
0
0
1
0.088235
false
0
0.117647
0
0.323529
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
92332ccdf59f7541211edc49c0cc5adb5fbfec98
913
py
Python
img_backend/add_device.py
FIGLAB/zensors
4c80de1970ccaf167f87c474aadd96bcbcf5b9a1
[ "MIT" ]
2
2019-07-17T15:43:02.000Z
2020-05-04T17:21:43.000Z
img_backend/add_device.py
FIGLAB/zensors
4c80de1970ccaf167f87c474aadd96bcbcf5b9a1
[ "MIT" ]
null
null
null
img_backend/add_device.py
FIGLAB/zensors
4c80de1970ccaf167f87c474aadd96bcbcf5b9a1
[ "MIT" ]
2
2018-10-31T16:39:52.000Z
2018-11-08T22:41:14.000Z
#!/usr/bin/env python ''' Simple script to add a device to the database. ''' from ZensorDevice import ZensorDevice from enumerations import * import sys import random def main(argv): if len(argv) != 2: print "Usage:", argv[0], "<device_id>" return -1 devid = sys.argv[1] device = ZensorDev...
26.085714
60
0.63965
115
913
4.965217
0.478261
0.056042
0.06655
0
0
0
0
0
0
0
0
0.014514
0.245345
913
34
61
26.852941
0.814224
0.021906
0
0.074074
0
0
0.171838
0
0
0
0
0
0
0
null
null
0.074074
0.148148
null
null
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
92334af517a1402e63b55a3fe85da09a5408dc14
6,901
py
Python
python/GafferScene/ScriptProcedural.py
PaulDoessel/gaffer-play
8b72dabb388e12424c230acfb0bd209049b01bd6
[ "BSD-3-Clause" ]
1
2016-07-31T09:55:09.000Z
2016-07-31T09:55:09.000Z
python/GafferScene/ScriptProcedural.py
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
null
null
null
python/GafferScene/ScriptProcedural.py
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
1
2020-02-15T16:15:54.000Z
2020-02-15T16:15:54.000Z
########################################################################## # # Copyright (c) 2012, John Haddon. All rights reserved. # Copyright (c) 2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that ...
30.946188
108
0.697
741
6,901
6.373819
0.384615
0.02075
0.014398
0.013339
0.132119
0.097819
0.097819
0.082998
0.052086
0.052086
0
0.002495
0.186929
6,901
222
109
31.085586
0.839244
0.252717
0
0.184615
0
0
0.161537
0.025146
0
0
0
0
0
1
0.076923
false
0
0.038462
0
0.215385
0.015385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
923501e60d59a0a4529bbd2a7bc6300d6760071d
5,881
py
Python
tests/testapps/tests/test_models.py
salexkidd/django-stackstore-model
fb0bb6431dd772a80b8c9d6d2b625eae69562fa9
[ "MIT" ]
5
2020-05-28T07:04:25.000Z
2020-09-26T05:29:46.000Z
tests/testapps/tests/test_models.py
salexkidd/django-stackstore-model
fb0bb6431dd772a80b8c9d6d2b625eae69562fa9
[ "MIT" ]
1
2020-09-26T05:34:19.000Z
2020-09-26T05:34:19.000Z
tests/testapps/tests/test_models.py
salexkidd/django-stackstore-model
fb0bb6431dd772a80b8c9d6d2b625eae69562fa9
[ "MIT" ]
null
null
null
from django.conf import settings from django.test import TestCase from django.test.utils import override_settings from copy import deepcopy from .. import models as testapps_models from .. import factories as testapps_factories class StackStoreManagerTest(TestCase): def test_delete(self): with self.asser...
33.605714
125
0.689679
669
5,881
5.70852
0.124066
0.123854
0.12045
0.080649
0.756743
0.676617
0.604609
0.568735
0.546216
0.519508
0
0.001759
0.226492
5,881
174
126
33.798851
0.837767
0
0
0.5
0
0
0.006972
0
0
0
0
0
0.195313
1
0.125
false
0
0.046875
0
0.1875
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
9235169950838a2e17fec391196466cf8a8f8312
6,915
py
Python
docs/_downloads/d6b1e39143e3255799ec607967cb9223/sample.py
harishbalakrishnan3/Visual-Categorization
28c5fc4695fca931bb2a49697cf1776dae1e8259
[ "MIT" ]
null
null
null
docs/_downloads/d6b1e39143e3255799ec607967cb9223/sample.py
harishbalakrishnan3/Visual-Categorization
28c5fc4695fca931bb2a49697cf1776dae1e8259
[ "MIT" ]
null
null
null
docs/_downloads/d6b1e39143e3255799ec607967cb9223/sample.py
harishbalakrishnan3/Visual-Categorization
28c5fc4695fca931bb2a49697cf1776dae1e8259
[ "MIT" ]
1
2021-03-15T14:00:27.000Z
2021-03-15T14:00:27.000Z
""" A sample python script that illustrates how to use the gcm module. As a first step, we need to find the model's parameters - c,w,b (we will assume r = 2). This is done using MLE. After we find the parameters, we use them to find the corresponding probabilities using the functions from the gcm module. The following ...
36.015625
119
0.580188
856
6,915
4.630841
0.216122
0.063572
0.045409
0.008073
0.460394
0.437941
0.350656
0.350656
0.350656
0.350656
0
0.037197
0.12914
6,915
191
120
36.204188
0.621056
0.142299
0
0.382609
0
0
0.07844
0.034768
0
0
0
0
0
1
0.043478
false
0
0.034783
0.008696
0.121739
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
92372ee1b7c3e312c79430dd59dae4078f3316d3
948
py
Python
Python/Qiskit/Grower_search_algorithm.py
Pavel555-star/programs
d4cb812c0b9c5fff7b7c3cd20965bf820b1b95d8
[ "BSD-3-Clause" ]
1
2021-01-23T19:11:35.000Z
2021-01-23T19:11:35.000Z
Python/Qiskit/Grower_search_algorithm.py
Pavel555-star/programs
d4cb812c0b9c5fff7b7c3cd20965bf820b1b95d8
[ "BSD-3-Clause" ]
null
null
null
Python/Qiskit/Grower_search_algorithm.py
Pavel555-star/programs
d4cb812c0b9c5fff7b7c3cd20965bf820b1b95d8
[ "BSD-3-Clause" ]
null
null
null
from qiskit import * import matplotlib.pyplot as plt import numpy as np # define the oracle circuit oracle = QuantumCircuit(2, name='oracle') oracle.cz(0,1) -> cz-matrix ((1,0,0,0), (0,1,0,0), (0,0,1,0), (0,0,0,1)) oracle.to_gate() backend = Aer.get_backend('statevector_simulator') reflect = QuantumCircuit(2, name ...
28.727273
74
0.652954
171
948
3.538012
0.25731
0.059504
0.059504
0.039669
0.328926
0.328926
0.242975
0.242975
0.242975
0.208264
0
0.087112
0.116034
948
32
75
29.625
0.634845
0.220464
0
0.086957
0
0
0.069672
0.028689
0
0
0
0
0
0
null
null
0
0.130435
null
null
0.086957
0
0
0
null
0
0
0
0
0
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
92379068cb2a4bc0fdeb0bc56557ae60741cfaaa
687
py
Python
sympy/crypto/__init__.py
shipci/sympy
4b59927bed992b980c9b3faac01becb36feef26b
[ "BSD-3-Clause" ]
319
2016-09-22T15:54:48.000Z
2022-03-18T02:36:58.000Z
sympy/crypto/__init__.py
curzel-it/KiPyCalc
909c783d5e6967ea58ca93f875106d8a8e3ca5db
[ "MIT" ]
9
2016-11-03T21:56:41.000Z
2020-08-09T19:27:37.000Z
sympy/crypto/__init__.py
curzel-it/KiPyCalc
909c783d5e6967ea58ca93f875106d8a8e3ca5db
[ "MIT" ]
27
2016-10-06T16:05:32.000Z
2022-03-18T02:37:00.000Z
from sympy.crypto.crypto import (alphabet_of_cipher, cycle_list, encipher_shift, encipher_affine, encipher_substitution, encipher_vigenere, decipher_vigenere, bifid5_square, bifid6_square, bifid7_square, encipher_hill, decipher_hill, encipher_bifid5, encipher_bifid6, encipher_bifid7, decip...
57.25
74
0.804949
85
687
5.964706
0.4
0.047337
0.051282
0
0
0
0
0
0
0
0
0.013559
0.141194
687
11
75
62.454545
0.845763
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
923986f9bd14fbab28d2e07beb811c4e8f7e82e8
2,656
py
Python
5-Detection/SSD/utils/config.py
MaybeS/mnist
d0aeafce97d7308dc84adbb6ad8e547776db0cd5
[ "MIT" ]
8
2020-07-17T00:30:20.000Z
2021-06-15T07:14:55.000Z
5-Detection/SSD/utils/config.py
MaybeS/mnist
d0aeafce97d7308dc84adbb6ad8e547776db0cd5
[ "MIT" ]
null
null
null
5-Detection/SSD/utils/config.py
MaybeS/mnist
d0aeafce97d7308dc84adbb6ad8e547776db0cd5
[ "MIT" ]
2
2019-07-02T04:20:21.000Z
2019-07-16T06:51:13.000Z
import json from typing import Tuple, List class Config: """Config stack layers - Default config - Model default config - Load from config file - User argument config """ size = (300, 300) ssd_attributes = ['feature_map', 'steps', 'sizes', 'aspect_ratios'] ssd = { "aspec...
27.381443
92
0.50753
311
2,656
4.250804
0.437299
0.054463
0.006808
0.029501
0.040091
0
0
0
0
0
0
0.05896
0.348645
2,656
96
93
27.666667
0.705202
0.067018
0
0.043478
0
0
0.111474
0.011433
0
0
0
0
0
1
0.057971
false
0
0.028986
0.014493
0.304348
0.014493
0
0
0
null
0
0
0
0
0
0
0
0
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
923bc38bcf577c37aae6244f55a0e48675ccbfd5
5,200
py
Python
testing/testing_apiai_requests.py
Muflhi01/flow-dashboard
993320e2eb0f86d89b9904a3d5415c7479c5918e
[ "MIT" ]
1,623
2017-03-11T11:49:48.000Z
2022-03-30T06:44:11.000Z
testing/testing_apiai_requests.py
Muflhi01/flow-dashboard
993320e2eb0f86d89b9904a3d5415c7479c5918e
[ "MIT" ]
136
2017-03-11T17:08:57.000Z
2022-03-09T21:38:46.000Z
testing/testing_apiai_requests.py
Muflhi01/flow-dashboard
993320e2eb0f86d89b9904a3d5415c7479c5918e
[ "MIT" ]
217
2017-05-06T14:28:36.000Z
2022-03-29T16:56:01.000Z
#!/usr/bin/python # -*- coding: utf8 -*- from datetime import datetime from base_test_case import BaseTestCase from models import Goal from flow import app as tst_app from models import Habit, Task import json import imp try: imp.find_module('secrets', ['settings']) except ImportError: from settings import sec...
34.210526
133
0.363846
365
5,200
5.052055
0.545205
0.021692
0.02603
0.030369
0
0
0
0
0
0
0
0.039159
0.533462
5,200
151
134
34.437086
0.72094
0.010769
0
0.058824
0
0
0.194163
0.031323
0
0
0
0
0.014706
1
0.022059
false
0
0.073529
0
0.110294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
923d6daeee1f26ba47d523d2b91fd5411beae0a5
937
py
Python
cozyfuse/binary.py
poupotte/couchdb-fuse
1e81098f62c41d9566c01d2a2fadd0bdfe54402d
[ "BSD-3-Clause" ]
1
2016-03-28T22:56:04.000Z
2016-03-28T22:56:04.000Z
cozyfuse/binary.py
poupotte/couchdb-fuse
1e81098f62c41d9566c01d2a2fadd0bdfe54402d
[ "BSD-3-Clause" ]
null
null
null
cozyfuse/binary.py
poupotte/couchdb-fuse
1e81098f62c41d9566c01d2a2fadd0bdfe54402d
[ "BSD-3-Clause" ]
null
null
null
import sys from kivy.app import App from kivy.uix.anchorlayout import AnchorLayout from kivy.properties import * from replication import recover_progression_binary from kivy.clock import Clock class Binary(AnchorLayout): ''' Manage binaries download window ''' progress = ObjectProperty() def ini...
20.822222
56
0.608324
103
937
5.38835
0.466019
0.057658
0.091892
0
0
0
0
0
0
0
0
0.018321
0.300961
937
44
57
21.295455
0.829008
0
0
0
0
0
0.009913
0
0
0
0
0
0
0
null
null
0.038462
0.230769
null
null
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
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
924075a62dfbc2884a5bde01f2ed7a11d0476d1c
3,019
py
Python
institutions/geo/models.py
sephcoster/mapusaurus
5515f0d89ff7b7cbc796af25b3d45950c8ed882f
[ "CC0-1.0" ]
null
null
null
institutions/geo/models.py
sephcoster/mapusaurus
5515f0d89ff7b7cbc796af25b3d45950c8ed882f
[ "CC0-1.0" ]
null
null
null
institutions/geo/models.py
sephcoster/mapusaurus
5515f0d89ff7b7cbc796af25b3d45950c8ed882f
[ "CC0-1.0" ]
null
null
null
import json from django.contrib.gis.db import models class Geo(models.Model): STATE_TYPE, COUNTY_TYPE, TRACT_TYPE, METRO_TYPE, MICRO_TYPE = range(1, 6) METDIV_TYPE, = range(6, 7) TYPES = [(STATE_TYPE, 'State'), (COUNTY_TYPE, 'County'), (TRACT_TYPE, 'Census Tract'), (METRO_TYPE, 'Metropolitan...
39.207792
77
0.532958
292
3,019
5.359589
0.308219
0.040256
0.092013
0.122684
0.376997
0.376997
0.376997
0.334824
0.334824
0.282428
0
0.009063
0.342166
3,019
76
78
39.723684
0.778953
0.031136
0
0.31746
0
0
0.13315
0
0
0
0
0
0
1
0.031746
false
0
0.031746
0
0.412698
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
924185f1b41185b073f99907c5347d88ec6b3ce8
2,798
py
Python
phone_dic_accent_archive.py
arcman7/cmu_sphinx
343ee1c08061d607cab6ba9ab738a1ac5a8b59d9
[ "MIT" ]
null
null
null
phone_dic_accent_archive.py
arcman7/cmu_sphinx
343ee1c08061d607cab6ba9ab738a1ac5a8b59d9
[ "MIT" ]
null
null
null
phone_dic_accent_archive.py
arcman7/cmu_sphinx
343ee1c08061d607cab6ba9ab738a1ac5a8b59d9
[ "MIT" ]
null
null
null
import collections import os counter = collections.Counter() dir_name = 'accent_archive' text_file_name = 'reading-passage.txt' print('creating dictionary from "{}"'.format(os.path.join(dir_name, 'AA_unpacked', text_file_name))) # The Accent Archive uses the same text transcript for every audio recording text ...
38.328767
149
0.602931
405
2,798
4.024691
0.251852
0.081595
0.04908
0.051534
0.433742
0.390798
0.376687
0.314724
0.210429
0.210429
0
0.002745
0.218728
2,798
73
150
38.328767
0.742909
0.129736
0
0.245283
0
0
0.139535
0
0
0
0
0
0
1
0
false
0.018868
0.037736
0
0.037736
0.132075
0
0
0
null
0
0
0
0
0
0
0
0
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
9242d22fb136a3ab5cbefda78054161564a70807
5,308
py
Python
necroassembler/utils.py
rdeioris/necroassembler
3dd60f0b71158b15dac061ddae0e2048e9c20d86
[ "MIT" ]
2
2019-10-09T21:12:15.000Z
2020-01-27T03:09:03.000Z
necroassembler/utils.py
rdeioris/necroassembler
3dd60f0b71158b15dac061ddae0e2048e9c20d86
[ "MIT" ]
null
null
null
necroassembler/utils.py
rdeioris/necroassembler
3dd60f0b71158b15dac061ddae0e2048e9c20d86
[ "MIT" ]
1
2019-10-16T20:51:29.000Z
2019-10-16T20:51:29.000Z
import string import struct from necroassembler.exceptions import NotInBitRange, InvalidBitRange def neg_fix(value, bits): negative = 1 << (bits - 1) if value & negative: return -(1 << (bits)) + value return value def pack_byte(*args): return struct.pack('B' * len(args), *[n & 0xff if n is n...
27.936842
102
0.568953
732
5,308
3.991803
0.154372
0.043121
0.060233
0.08898
0.479466
0.455168
0.455168
0.37269
0.31896
0.31896
0
0.023678
0.31575
5,308
189
103
28.084656
0.780837
0.011869
0
0.333333
0
0
0.004579
0
0
0
0.020607
0
0
1
0.193798
false
0
0.023256
0.131783
0.457364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
9242da30eb8cc1d9931d3a3bfc2731f59cc10a24
3,367
py
Python
Advanced Computer Vision & Deep Learning/Project-2_Image_Captioning/model.py
sudoberlin/Computer_Vision_ND
6211d0a610a26f6ed54116127588adb6ff4b7ba9
[ "Apache-2.0" ]
1
2020-08-09T19:49:38.000Z
2020-08-09T19:49:38.000Z
Advanced Computer Vision & Deep Learning/Project-2_Image_Captioning/model.py
sudoberlin/Computer_Vision_ND
6211d0a610a26f6ed54116127588adb6ff4b7ba9
[ "Apache-2.0" ]
null
null
null
Advanced Computer Vision & Deep Learning/Project-2_Image_Captioning/model.py
sudoberlin/Computer_Vision_ND
6211d0a610a26f6ed54116127588adb6ff4b7ba9
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torchvision.models as models import torch.nn.functional as F import math class EncoderCNN(nn.Module): def __init__(self, embed_size): super(EncoderCNN, self).__init__() resnet = models.resnet50(pretrained=True) for param in resnet.parameters(): ...
38.701149
125
0.612712
409
3,367
4.858191
0.310513
0.045294
0.028183
0.025667
0.137896
0.080523
0.080523
0.05234
0.05234
0.05234
0
0.010638
0.302049
3,367
87
126
38.701149
0.834894
0.239085
0
0.039216
0
0.019608
0.043184
0
0
0
0
0
0
1
0.098039
false
0
0.098039
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
0
0
0
0
0
1
0
924648ee2a9039a086b544cb62c526565fc25489
724
py
Python
amshared/stage/__init__.py
avidclam/amshared
fc605639409f3ea2b0efb2c0b45ad03969115bb6
[ "MIT" ]
null
null
null
amshared/stage/__init__.py
avidclam/amshared
fc605639409f3ea2b0efb2c0b45ad03969115bb6
[ "MIT" ]
null
null
null
amshared/stage/__init__.py
avidclam/amshared
fc605639409f3ea2b0efb2c0b45ad03969115bb6
[ "MIT" ]
null
null
null
""" Stage is a way to serialize data flows. Data Flow is a sequence (list, generator) of (metadata, content) tuples. Metadata is a key-value dictionary with several key names reserved: ``rubric``, ``name``, ``part``, `format``, and ``payload``. Content is useful application data (payload) or miscellaneous informatio...
32.909091
80
0.75
106
724
5.113208
0.669811
0.016605
0
0
0
0
0
0
0
0
0
0
0.161602
724
21
81
34.47619
0.892916
0.914365
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
9246509ac7b49513170c02e13891de80c2511c3a
29
py
Python
api/dorest/dorest/__init__.py
ichise-laboratory/uwkgm
6505fa5d524336b30505804a3d241143cb1fa4bf
[ "BSD-3-Clause" ]
null
null
null
api/dorest/dorest/__init__.py
ichise-laboratory/uwkgm
6505fa5d524336b30505804a3d241143cb1fa4bf
[ "BSD-3-Clause" ]
6
2020-11-25T10:49:45.000Z
2021-09-22T18:50:03.000Z
api/dorest/dorest/__init__.py
ichise-laboratory/uwkgm
6505fa5d524336b30505804a3d241143cb1fa4bf
[ "BSD-3-Clause" ]
1
2020-12-24T02:15:42.000Z
2020-12-24T02:15:42.000Z
from .libs.sh import verbose
14.5
28
0.793103
5
29
4.6
1
0
0
0
0
0
0
0
0
0
0
0
0.137931
29
1
29
29
0.92
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
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
6
92469e853a715e9955a582e9ea45ef2f7e9cfdce
3,585
py
Python
running_modes/scoring/logging/base_scoring_logger.py
lilleswing/Reinvent-1
ac4e3e6fa6379c6f4af883478dfd1b3407933ada
[ "Apache-2.0" ]
183
2020-04-04T02:01:15.000Z
2022-03-30T21:56:56.000Z
running_modes/scoring/logging/base_scoring_logger.py
lilleswing/Reinvent-1
ac4e3e6fa6379c6f4af883478dfd1b3407933ada
[ "Apache-2.0" ]
39
2020-04-05T15:19:56.000Z
2022-03-09T12:58:21.000Z
running_modes/scoring/logging/base_scoring_logger.py
lilleswing/Reinvent-1
ac4e3e6fa6379c6f4af883478dfd1b3407933ada
[ "Apache-2.0" ]
70
2020-04-05T19:25:43.000Z
2022-02-22T12:04:39.000Z
import json import logging import os from abc import ABC, abstractmethod import pandas as pd from typing import List from running_modes.configurations.general_configuration_envelope import GeneralConfigurationEnvelope from running_modes.configurations.logging.scoring_log_configuration import ScoringLoggerConfiguratio...
41.206897
114
0.698187
424
3,585
5.632075
0.323113
0.065327
0.035595
0.035176
0.072864
0.052764
0.031826
0.031826
0.031826
0
0
0.001772
0.212831
3,585
86
115
41.686047
0.844437
0
0
0
0
0.014085
0.046583
0.006416
0
0
0
0
0
1
0.126761
false
0
0.140845
0
0.338028
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
924a0eddccceff04dda1decc76232550991e0be7
2,697
py
Python
shopkit/contrib/payment/stripe_provider/__init__.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
shopkit/contrib/payment/stripe_provider/__init__.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
shopkit/contrib/payment/stripe_provider/__init__.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.utils.translation import ugettext_lazy as _ from ....payment import PaymentProvider, PaymentFailure, PaymentType from . import forms from . import models import stripe import datetime class StripeProvider(PaymentProvider): form_class = forms.StripeReceiptForm pay...
35.486842
84
0.595476
296
2,697
5.233108
0.334459
0.058102
0.051646
0.043899
0.096837
0.034861
0
0
0
0
0
0.002162
0.314053
2,697
75
85
35.96
0.835135
0.030404
0
0.09375
0
0
0.07925
0
0
0
0
0
0
1
0.0625
false
0.015625
0.109375
0
0.234375
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
924a32e6e209fa2de53fe9b454a531ee0e4f03f5
2,424
py
Python
lambda/src/handlers/receive_email.py
sjmatta-forks/serverless-southwest-check-in
6b8cfbf1cb19c222f51a039db024217637db2ce4
[ "MIT" ]
49
2017-02-14T13:49:37.000Z
2022-03-24T13:57:05.000Z
lambda/src/handlers/receive_email.py
sjmatta-forks/serverless-southwest-check-in
6b8cfbf1cb19c222f51a039db024217637db2ce4
[ "MIT" ]
39
2017-02-08T14:21:17.000Z
2022-01-11T00:20:22.000Z
lambda/src/handlers/receive_email.py
sjmatta-forks/serverless-southwest-check-in
6b8cfbf1cb19c222f51a039db024217637db2ce4
[ "MIT" ]
13
2018-02-18T18:49:49.000Z
2022-02-16T15:05:35.000Z
import json import logging import os import time import boto3 import mail # Set up logging log = logging.getLogger(__name__) log.setLevel(logging.DEBUG) def _get_sfn_execution_name(reservation): """ Generate a human-readable execution named composed of the passenger's check in details followed by a tim...
32.32
79
0.691832
315
2,424
5.174603
0.4
0.066258
0.055215
0.03681
0.141104
0.04908
0.04908
0.04908
0.04908
0
0
0.001545
0.198845
2,424
74
80
32.756757
0.837796
0.276403
0
0.047619
0
0
0.170388
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.261905
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
924b85ea9f7b1945f0fd22f097a20909bd163eef
723
py
Python
src/a9a/__init__.py
hvod2000/a9a
6b5cddbac885e2aff56e32936b966f4ce05afbba
[ "MIT" ]
null
null
null
src/a9a/__init__.py
hvod2000/a9a
6b5cddbac885e2aff56e32936b966f4ce05afbba
[ "MIT" ]
null
null
null
src/a9a/__init__.py
hvod2000/a9a
6b5cddbac885e2aff56e32936b966f4ce05afbba
[ "MIT" ]
null
null
null
import a9a.encoder import a9a.decoder import a9a.dir_reader import a9a.dir_writer class Archive: def __init__(self, nodes=None): if nodes is None: nodes = {} self.content = nodes def to_bytes(self): return b"a9a\n" + encoder.encode_nodes(self.content) def __repr__(sel...
24.1
65
0.658368
99
723
4.565657
0.373737
0.079646
0.106195
0.115044
0.132743
0
0
0
0
0
0
0.018018
0.232365
723
29
66
24.931034
0.796396
0
0
0.090909
0
0
0.045643
0.031812
0
0
0
0
0.045455
1
0.272727
false
0
0.181818
0.181818
0.727273
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
1
1
0
0
3