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
0ecedb23d891d612188b09f34a36b454a3d85a93
6,674
py
Python
src/oci/apm_traces/models/query_result_row_type_summary.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/apm_traces/models/query_result_row_type_summary.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/apm_traces/models/query_result_row_type_summary.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
33.878173
245
0.674408
787
6,674
5.503177
0.190597
0.068575
0.087278
0.083122
0.626414
0.532671
0.414916
0.315862
0.315862
0.287693
0
0.003669
0.264909
6,674
196
246
34.05102
0.879128
0.557537
0
0.080645
0
0
0.102352
0.052265
0
0
0
0
0
1
0.225806
false
0
0.032258
0.032258
0.419355
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
0ecf9572bf4b2d6c4df42c5a6542407de0db8c29
6,920
py
Python
jaxformer/hf/sample.py
salesforce/CodeGen
2ca076874ca2d26c2437df2968f6c43df92748bc
[ "BSD-3-Clause" ]
105
2022-03-29T23:45:55.000Z
2022-03-31T23:57:14.000Z
jaxformer/hf/sample.py
salesforce/CodeGen
2ca076874ca2d26c2437df2968f6c43df92748bc
[ "BSD-3-Clause" ]
2
2022-03-31T04:18:49.000Z
2022-03-31T17:58:09.000Z
jaxformer/hf/sample.py
salesforce/CodeGen
2ca076874ca2d26c2437df2968f6c43df92748bc
[ "BSD-3-Clause" ]
6
2022-03-30T06:05:39.000Z
2022-03-31T21:01:27.000Z
# Copyright (c) 2022, salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause import os import re import time import random import argparse import torch from transformers import ...
27.244094
224
0.619509
884
6,920
4.645928
0.253394
0.024105
0.045532
0.005844
0.1215
0.073533
0.073533
0.068176
0.068176
0.068176
0
0.024032
0.212283
6,920
253
225
27.351779
0.729407
0.048988
0
0.0875
0
0.00625
0.112138
0.011787
0
0
0
0
0.0125
1
0.1
false
0
0.05
0
0.225
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
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
0ecfc00a422b2dc3bba9eb71d7782113b804c267
4,351
py
Python
tests/services/test_rover_runner_service.py
dev-11/mars-rover-challenge
67569fcc4b93e5ec4cbe466d7a2fd5b3e9a316b0
[ "MIT" ]
null
null
null
tests/services/test_rover_runner_service.py
dev-11/mars-rover-challenge
67569fcc4b93e5ec4cbe466d7a2fd5b3e9a316b0
[ "MIT" ]
null
null
null
tests/services/test_rover_runner_service.py
dev-11/mars-rover-challenge
67569fcc4b93e5ec4cbe466d7a2fd5b3e9a316b0
[ "MIT" ]
null
null
null
import unittest from services import RoverRunnerService from tests.test_environment.marses import small_mars_with_one_rover_empty_commands from tests.test_environment import mocks as m from data_objects import Rover class TestRoverRunnerService(unittest.TestCase): def test_rover_runner_moves_rover_forward(self):...
51.188235
85
0.746495
615
4,351
4.77561
0.117073
0.055158
0.061287
0.081716
0.872319
0.857337
0.845761
0.824311
0.799796
0.799796
0
0.005294
0.175132
4,351
84
86
51.797619
0.81304
0
0
0.575342
0
0
0.003218
0
0
0
0
0
0.123288
1
0.123288
false
0
0.068493
0
0.205479
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
0ed02b6b55177c4481e9ea0e870de71a75e2629f
12,734
py
Python
retrain_with_rotnet.py
ericdaat/self-label
7c12f834c7b6bd5bee2f7f165aab33d4c4e50b51
[ "MIT" ]
440
2020-02-17T06:54:38.000Z
2022-03-24T09:32:13.000Z
retrain_with_rotnet.py
ericdaat/self-label
7c12f834c7b6bd5bee2f7f165aab33d4c4e50b51
[ "MIT" ]
21
2020-02-28T06:40:20.000Z
2022-03-11T10:59:09.000Z
retrain_with_rotnet.py
ericdaat/self-label
7c12f834c7b6bd5bee2f7f165aab33d4c4e50b51
[ "MIT" ]
53
2020-02-27T13:05:49.000Z
2022-03-07T02:33:01.000Z
import argparse import warnings warnings.simplefilter("ignore", UserWarning) import files from tensorboardX import SummaryWriter import os import numpy as np import time import torch import torch.optim import torch.nn as nn import torch.utils.data import torchvision import torchvision.transforms as tfs from data impo...
44.369338
154
0.569185
1,531
12,734
4.615284
0.214892
0.0242
0.045712
0.018823
0.219643
0.201953
0.145344
0.093122
0.082649
0.082649
0
0.020361
0.286477
12,734
286
155
44.524476
0.757319
0.023166
0
0.151515
0
0.008658
0.109091
0.014414
0.004329
0
0
0
0
1
0.021645
false
0
0.064935
0
0.108225
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
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
0ed057bb216be080ba95c6d1f2a7ce1ab1dfd4f5
1,341
py
Python
tests/vie.py
Jinwithyoo/han
931a271e56134dcc35029bf75260513b60884f6c
[ "BSD-3-Clause" ]
null
null
null
tests/vie.py
Jinwithyoo/han
931a271e56134dcc35029bf75260513b60884f6c
[ "BSD-3-Clause" ]
null
null
null
tests/vie.py
Jinwithyoo/han
931a271e56134dcc35029bf75260513b60884f6c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from tests import HangulizeTestCase from hangulize.langs.vie import Vietnamese class VietnameseTestCase(HangulizeTestCase): """ http://korean.go.kr/09_new/dic/rule/rule_foreign_0218.jsp """ lang = Vietnamese() def test_1st(self): """제1항 nh는 이어지는 모음과 합쳐서 한 음절로 적는다....
24.833333
69
0.463833
176
1,341
3.471591
0.698864
0.045827
0.11784
0.10311
0.042553
0
0
0
0
0
0
0.018315
0.389262
1,341
54
70
24.833333
0.727717
0.38777
0
0.363636
0
0
0.060432
0
0
0
0
0
0.181818
1
0.181818
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ed0e5f6ef98dbca0fc996f3f87ca29e7cb4b7a2
1,054
py
Python
tests/test_functions/test_trig.py
jackromo/mathLibPy
b80badd293b93da85aaf122c3d3da022f6dab361
[ "MIT" ]
1
2020-06-09T05:43:33.000Z
2020-06-09T05:43:33.000Z
tests/test_functions/test_trig.py
jackromo/mathLibPy
b80badd293b93da85aaf122c3d3da022f6dab361
[ "MIT" ]
15
2016-03-06T17:10:40.000Z
2016-05-28T14:06:16.000Z
tests/test_functions/test_trig.py
jackromo/mathLibPy
b80badd293b93da85aaf122c3d3da022f6dab361
[ "MIT" ]
null
null
null
from mathlibpy.functions import * import unittest class SinTester(unittest.TestCase): def setUp(self): self.sin = Sin() def test_call(self): self.assertEqual(self.sin(0), 0) def test_eq(self): self.assertEqual(self.sin, Sin()) def test_get_derivative_call(self): sel...
20.269231
66
0.63852
141
1,054
4.595745
0.212766
0.148148
0.263889
0.319444
0.734568
0.623457
0.45679
0.25
0.25
0
0
0.01467
0.223909
1,054
51
67
20.666667
0.777506
0
0
0.354839
0
0
0.00759
0
0
0
0
0
0.290323
1
0.387097
false
0
0.064516
0
0.548387
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
1
0
0
0
0
1
0
0
4
0ed195167a4ca32696adae9b1a096d1817a006fd
639
py
Python
src/smallestLetter/target.py
rajitbanerjee/leetcode
720fcdd88d371e2d6592ceec8370a6760a77bb89
[ "CC0-1.0" ]
null
null
null
src/smallestLetter/target.py
rajitbanerjee/leetcode
720fcdd88d371e2d6592ceec8370a6760a77bb89
[ "CC0-1.0" ]
null
null
null
src/smallestLetter/target.py
rajitbanerjee/leetcode
720fcdd88d371e2d6592ceec8370a6760a77bb89
[ "CC0-1.0" ]
1
2021-04-28T18:17:55.000Z
2021-04-28T18:17:55.000Z
class Solution: def nextGreatestLetter(self, letters: list, target: str) -> str: if target < letters[0] or target >= letters[-1]: return letters[0] left, right = 0, len(letters) - 1 while left < right: mid = left + (right - left) // 2 if letters[mid] > tar...
31.95
70
0.528951
71
639
4.647887
0.422535
0.081818
0.084848
0
0
0
0
0
0
0
0
0.016355
0.330203
639
19
71
33.631579
0.754673
0
0
0
0
0
0.176839
0.061033
0
0
0
0
0
1
0.058824
false
0
0
0
0.235294
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ed3370d325b05dcd0ff4ac3d8d74980237e624c
1,004
py
Python
anti_cpdaily/command.py
hyx0329/nonebot_plugin_anti_cpdaily
5868626fb95876f9638aaa1edd9a2f914ea7bed1
[ "MIT" ]
2
2021-11-07T10:33:16.000Z
2021-12-20T08:25:19.000Z
anti_cpdaily/command.py
hyx0329/nonebot_plugin_anti_cpdaily
5868626fb95876f9638aaa1edd9a2f914ea7bed1
[ "MIT" ]
null
null
null
anti_cpdaily/command.py
hyx0329/nonebot_plugin_anti_cpdaily
5868626fb95876f9638aaa1edd9a2f914ea7bed1
[ "MIT" ]
null
null
null
import nonebot from nonebot import on_command from nonebot.rule import to_me from nonebot.typing import T_State from nonebot.adapters import Bot, Event from nonebot.log import logger from .config import global_config from .schedule import anti_cpdaily_check_routine cpdaily = on_command('cpdaily') scheduler = nonebot...
32.387097
124
0.76494
136
1,004
5.419118
0.441176
0.074627
0.065129
0.093623
0.126187
0
0
0
0
0
0
0.002342
0.149402
1,004
30
125
33.466667
0.860656
0.033865
0
0
0
0
0.162309
0.028322
0
0
0
0
0
1
0
false
0
0.4
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
1
0
0
0
0
1
0ed367645577a295c7ca8d2261bca85d6a1facb8
978
py
Python
matplotlib/gallery_python/pyplots/dollar_ticks.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
matplotlib/gallery_python/pyplots/dollar_ticks.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
matplotlib/gallery_python/pyplots/dollar_ticks.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
""" ============ Dollar Ticks ============ Use a `~.ticker.FormatStrFormatter` to prepend dollar signs on y axis labels. """ import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker as ticker # Fixing random state for reproducibility np.random.seed(19680801) fig, ax = plt.subplots() ax.plot(100*np...
22.227273
77
0.673824
122
978
5.311475
0.52459
0.111111
0.052469
0
0
0
0
0
0
0
0
0.020666
0.109407
978
43
78
22.744186
0.723307
0.290389
0
0
0
0
0.018303
0
0
0
0
0
0
1
0
false
0
0.210526
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ed3c5718d5548ba82fc7cde7bd8e347ef468e10
6,746
py
Python
Chibrary/utils.py
chiro2001/chibrary
da31ef80df394cfb260fbe2c1e675f28717fea3e
[ "MIT" ]
null
null
null
Chibrary/utils.py
chiro2001/chibrary
da31ef80df394cfb260fbe2c1e675f28717fea3e
[ "MIT" ]
null
null
null
Chibrary/utils.py
chiro2001/chibrary
da31ef80df394cfb260fbe2c1e675f28717fea3e
[ "MIT" ]
1
2021-09-21T16:40:58.000Z
2021-09-21T16:40:58.000Z
import json import re from flask import request, abort, jsonify from Chibrary import config from Chibrary.config import logger from Chibrary.exceptions import * from functools import wraps from urllib import parse from Chibrary.server import db def parse_url_query(url: str) -> dict: if not url.lower().startswith(...
28.82906
116
0.554996
891
6,746
4.096521
0.189675
0.041096
0.033151
0.048219
0.430137
0.4
0.373699
0.372603
0.353973
0.353973
0
0.035582
0.279277
6,746
233
117
28.95279
0.715138
0.243848
0
0.456376
0
0.006711
0.065274
0
0
0
0
0
0
1
0.100671
false
0.013423
0.060403
0.020134
0.328859
0.013423
0
0
0
null
0
0
0
0
0
0
0
0
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
0ed495b3d64a671dbd7202470a06b2b18d6c7be4
155
py
Python
tests/inputs/loops/51-arrays-in-loop.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
4
2019-10-06T18:01:24.000Z
2020-07-03T05:27:35.000Z
tests/inputs/loops/51-arrays-in-loop.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
5
2021-06-07T15:50:04.000Z
2021-06-07T15:50:06.000Z
tests/inputs/loops/51-arrays-in-loop.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
null
null
null
import numpy as np from something import Top i = 0 while i < 10: a = np.ndarray((10,4)) b = np.ones((10, Top)) i += 1 del Top # show_store()
12.916667
26
0.580645
29
155
3.068966
0.689655
0.089888
0
0
0
0
0
0
0
0
0
0.080357
0.277419
155
11
27
14.090909
0.714286
0.077419
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0ed4e33e928545ea0125662f34b75db4ebefd622
897
py
Python
tests/mappers/fields/test_float_field.py
Arfey/aiohttp_admin2
2b3782389ec9e25809635811b76ef8111b27d8ba
[ "MIT" ]
12
2021-10-15T11:48:12.000Z
2022-03-24T07:31:43.000Z
tests/mappers/fields/test_float_field.py
Arfey/aiohttp_admin2
2b3782389ec9e25809635811b76ef8111b27d8ba
[ "MIT" ]
2
2021-12-29T16:31:05.000Z
2021-12-30T00:50:40.000Z
tests/mappers/fields/test_float_field.py
Arfey/aiohttp_admin2
2b3782389ec9e25809635811b76ef8111b27d8ba
[ "MIT" ]
null
null
null
from aiohttp_admin2.mappers import Mapper from aiohttp_admin2.mappers import fields class FloatMapper(Mapper): field = fields.FloatField() def test_correct_float_type(): """ In this test we check success convert to float type. """ mapper = FloatMapper({"field": 1}) mapper.is_valid() ass...
21.878049
66
0.645485
117
897
4.82906
0.316239
0.169912
0.155752
0.134513
0.438938
0.332743
0.332743
0
0
0
0
0.019718
0.208473
897
40
67
22.425
0.776056
0.128205
0
0.2
0
0
0.074567
0
0
0
0
0
0.3
1
0.1
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ed5587a827c8b8f54d7f90abf4042432f650675
1,163
py
Python
autotest/t038_test.py
jdlarsen-UA/flopy
bf2c59aaa689de186bd4c80685532802ac7149cd
[ "CC0-1.0", "BSD-3-Clause" ]
2
2021-09-06T01:08:58.000Z
2021-09-06T06:02:15.000Z
autotest/t038_test.py
jdlarsen-UA/flopy
bf2c59aaa689de186bd4c80685532802ac7149cd
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
autotest/t038_test.py
jdlarsen-UA/flopy
bf2c59aaa689de186bd4c80685532802ac7149cd
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
""" Try to load all of the MODFLOW-USG examples in ../examples/data/mfusg_test. These are the examples that are distributed with MODFLOW-USG. """ import os import flopy # make the working directory tpth = os.path.join("temp", "t038") if not os.path.isdir(tpth): os.makedirs(tpth) # build list of name files to try...
25.844444
78
0.663801
186
1,163
4.010753
0.408602
0.048257
0.040214
0.0563
0.091153
0.091153
0.091153
0.091153
0.091153
0.091153
0
0.003289
0.215821
1,163
44
79
26.431818
0.814693
0.232158
0
0.142857
0
0
0.092971
0
0
0
0
0
0.071429
1
0.071429
false
0
0.071429
0
0.178571
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
0ed56ff83d82e72563699b9ea8ce0b02dcd84908
999
py
Python
botlib/cli.py
relikd/botlib
d0c5072d27db1aa3fad432457c90c9e3f23f22cc
[ "MIT" ]
null
null
null
botlib/cli.py
relikd/botlib
d0c5072d27db1aa3fad432457c90c9e3f23f22cc
[ "MIT" ]
null
null
null
botlib/cli.py
relikd/botlib
d0c5072d27db1aa3fad432457c90c9e3f23f22cc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os from argparse import ArgumentParser, ArgumentTypeError, FileType, Namespace from typing import Any def DirType(string: str) -> str: if os.path.isdir(string): return string raise ArgumentTypeError( 'Directory does not exist: "{}"'.format(os.path.abspath(string))...
31.21875
75
0.640641
129
999
4.829457
0.387597
0.064205
0.088283
0.109149
0.348315
0.348315
0.309791
0.309791
0.309791
0.235955
0
0.001253
0.201201
999
31
76
32.225806
0.779449
0.021021
0
0
0
0
0.041965
0
0
0
0
0
0
1
0.333333
false
0
0.142857
0.047619
0.619048
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
0ed9a8ae3cb2f6c51bd79bc87c61d261f1d3fcce
3,488
py
Python
pyhanko_certvalidator/asn1_types.py
MatthiasValvekens/certvalidator
246c5075ecdb6d50b14c93fdc97a9d0470f84821
[ "MIT" ]
4
2020-11-11T13:59:05.000Z
2022-03-13T14:06:10.000Z
pyhanko_certvalidator/asn1_types.py
MatthiasValvekens/certvalidator
246c5075ecdb6d50b14c93fdc97a9d0470f84821
[ "MIT" ]
1
2020-11-11T11:29:37.000Z
2020-11-11T11:29:37.000Z
pyhanko_certvalidator/asn1_types.py
MatthiasValvekens/certvalidator
246c5075ecdb6d50b14c93fdc97a9d0470f84821
[ "MIT" ]
2
2020-11-11T10:33:32.000Z
2022-03-13T14:06:11.000Z
from typing import Optional from asn1crypto import core, x509, cms __all__ = [ 'Target', 'TargetCert', 'Targets', 'SequenceOfTargets', 'AttrSpec', 'AAControls' ] class TargetCert(core.Sequence): _fields = [ ('target_certificate', cms.IssuerSerial), ('target_name', x509.GeneralName, {'opt...
30.068966
73
0.663417
430
3,488
5.155814
0.351163
0.031574
0.016238
0.031123
0.144339
0.078484
0.058638
0.058638
0.01263
0.01263
0
0.026997
0.214163
3,488
115
74
30.330435
0.781831
0.097764
0
0.075
0
0
0.199617
0
0
0
0
0
0
1
0.05
false
0
0.025
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ed9b178770e9775a60fa8ee66730cd786425565
448
py
Python
test/test_delete_group.py
ruslankl9/ironpython_training
51eaad4da24fdce60fbafee556160a9e847c08cf
[ "Apache-2.0" ]
null
null
null
test/test_delete_group.py
ruslankl9/ironpython_training
51eaad4da24fdce60fbafee556160a9e847c08cf
[ "Apache-2.0" ]
null
null
null
test/test_delete_group.py
ruslankl9/ironpython_training
51eaad4da24fdce60fbafee556160a9e847c08cf
[ "Apache-2.0" ]
null
null
null
from model.group import Group import random def test_delete_some_group(app): if len(app.group.get_group_list()) <= 1: app.group.add_new_group(Group(name='test')) old_list = app.group.get_group_list() index = random.randrange(len(old_list)) app.group.delete_group_by_index(index) new_list = ...
32
51
0.712054
73
448
4.068493
0.328767
0.13468
0.111111
0.161616
0.228956
0.161616
0
0
0
0
0
0.005376
0.169643
448
14
52
32
0.793011
0
0
0
0
0
0.008909
0
0
0
0
0
0.166667
1
0.083333
false
0
0.166667
0
0.25
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
0ed9d9ea2d863109661ee50e679a897b97a003a9
3,173
py
Python
Evaluation/batch_detection.py
gurkirt/actNet-inAct
1930bcb41553e50ddd83985a497a9d5ce4f1fcf2
[ "MIT" ]
27
2016-05-04T07:13:05.000Z
2021-12-05T04:45:45.000Z
Evaluation/batch_detection.py
gurkirt/actNet-inAct
1930bcb41553e50ddd83985a497a9d5ce4f1fcf2
[ "MIT" ]
1
2017-12-28T08:29:00.000Z
2017-12-28T08:29:00.000Z
Evaluation/batch_detection.py
gurkirt/actNet-inAct
1930bcb41553e50ddd83985a497a9d5ce4f1fcf2
[ "MIT" ]
12
2016-05-15T21:40:06.000Z
2019-11-27T09:43:55.000Z
''' Autor: Gurkirt Singh Start data: 15th May 2016 purpose: of this file is read frame level predictions and process them to produce a label per video ''' from sklearn.svm import LinearSVC from sklearn.ensemble import RandomForestClassifier import numpy as np import pickle import os import time,json import pylab as pl...
36.056818
157
0.627167
406
3,173
4.837438
0.3867
0.039715
0.038697
0.05499
0.267312
0.229633
0.217413
0.217413
0.184827
0.163951
0
0.021739
0.202647
3,173
87
158
36.471264
0.754545
0.15884
0
0.145161
0
0
0.175403
0.102419
0
0
0
0
0
0
null
null
0
0.145161
null
null
0.080645
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0eda0495743701a807a727479d2ba40e2e1b5552
910
py
Python
python/csv/csv_dict_writer.py
y2ghost/study
c5278611b0a732fe19e3d805c0c079e530b1d3b2
[ "MIT" ]
null
null
null
python/csv/csv_dict_writer.py
y2ghost/study
c5278611b0a732fe19e3d805c0c079e530b1d3b2
[ "MIT" ]
null
null
null
python/csv/csv_dict_writer.py
y2ghost/study
c5278611b0a732fe19e3d805c0c079e530b1d3b2
[ "MIT" ]
null
null
null
import csv def csv_dict_writer(path, headers, data): with open(path, 'w', newline='') as csvfile: writer = csv.DictWriter(csvfile, delimiter=',', fieldnames=headers) writer.writeheader() for record in data: writer.writerow(record) if __name__ =...
31.37931
74
0.650549
114
910
4.991228
0.578947
0.084359
0.057996
0
0
0
0
0
0
0
0
0.072857
0.230769
910
28
75
32.5
0.74
0
0
0
0
0
0.289011
0.143956
0
0
0
0
0
1
0.045455
false
0
0.045455
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
0
0
0
0
0
0
1
0
0eda1b4f399b44a556364cedf6c955fb55a3872c
2,355
py
Python
src/decisionengine/framework/modules/tests/test_module_decorators.py
moibenko/decisionengine
4c458e0c225ec2ce1e82d56e752724983331b7d1
[ "Apache-2.0" ]
9
2018-06-11T20:06:50.000Z
2020-10-01T17:02:02.000Z
src/decisionengine/framework/modules/tests/test_module_decorators.py
moibenko/decisionengine
4c458e0c225ec2ce1e82d56e752724983331b7d1
[ "Apache-2.0" ]
551
2018-06-25T21:06:37.000Z
2022-03-31T13:47:32.000Z
src/decisionengine/framework/modules/tests/test_module_decorators.py
goodenou/decisionengine
b203e2c493cf501562accf1013c6257c348711b7
[ "Apache-2.0" ]
70
2018-06-11T20:07:01.000Z
2022-02-10T16:18:24.000Z
# SPDX-FileCopyrightText: 2017 Fermi Research Alliance, LLC # SPDX-License-Identifier: Apache-2.0 import pytest from decisionengine.framework.modules import Publisher, Source from decisionengine.framework.modules.Module import verify_products from decisionengine.framework.modules.Source import Parameter def test_mu...
31.4
113
0.656476
281
2,355
5.313167
0.327402
0.044206
0.056263
0.083724
0.379102
0.35633
0.300067
0.300067
0.300067
0.234427
0
0.005467
0.223355
2,355
74
114
31.824324
0.810826
0.03949
0
0.339623
0
0
0.220452
0.009739
0
0
0
0
0
1
0.169811
false
0.056604
0.075472
0.037736
0.377358
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0edaae48c98ecfaf21b42f1bc713fce970f11754
1,687
py
Python
models/cnn_layer.py
RobinRojowiec/intent-recognition-in-doctor-patient-interviews
b91c7a9f3ad70edd0f39b56e3219f48d1fcf2078
[ "Apache-2.0" ]
null
null
null
models/cnn_layer.py
RobinRojowiec/intent-recognition-in-doctor-patient-interviews
b91c7a9f3ad70edd0f39b56e3219f48d1fcf2078
[ "Apache-2.0" ]
null
null
null
models/cnn_layer.py
RobinRojowiec/intent-recognition-in-doctor-patient-interviews
b91c7a9f3ad70edd0f39b56e3219f48d1fcf2078
[ "Apache-2.0" ]
1
2021-11-24T18:48:47.000Z
2021-11-24T18:48:47.000Z
import torch import torch.nn as nn from torch.nn.functional import max_pool1d from utility.model_parameter import Configuration, ModelParameter class CNNLayer(nn.Module): def __init__(self, config: Configuration, vocab_size=30000, use_embeddings=True, embed_dim=-1, **kwargs): super(CNNLayer, self).__init...
37.488889
109
0.670421
226
1,687
4.792035
0.336283
0.072022
0.044321
0.09603
0.088643
0.088643
0.088643
0.088643
0.088643
0
0
0.014559
0.226437
1,687
44
110
38.340909
0.815326
0.025489
0
0
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.117647
0.029412
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0edc64834d9ac7d861217e389cda5a4bf52a203f
1,129
py
Python
musicscore/musicxml/types/complextypes/backup.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
2
2020-06-22T13:33:28.000Z
2020-12-30T15:09:00.000Z
musicscore/musicxml/types/complextypes/backup.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
37
2020-02-18T12:15:00.000Z
2021-12-13T20:01:14.000Z
musicscore/musicxml/types/complextypes/backup.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
null
null
null
''' <xs:complexType name="backup"> <xs:annotation> <xs:documentation></xs:documentation> </xs:annotation> <xs:sequence> <xs:group ref="duration"/> <xs:group ref="editorial"/> </xs:sequence> </xs:complexType> ''' from musicscore.dtd.dtd import Sequence, GroupReference, Element from musicscore.musicxml...
35.28125
119
0.732507
139
1,129
5.884892
0.532374
0.06846
0.080685
0
0
0
0
0
0
0
0
0
0.170948
1,129
31
120
36.419355
0.873932
0.595217
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.636364
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
0edcbb01b3b82f3bf4be9564d133e3829ce06411
4,429
py
Python
NLP programmes in Python/9.Text Clustering/kmeans.py
AlexandrosPlessias/NLP-Greek-Presentations
4ae9d635a777f24bae5238b9f195bd17d00040ea
[ "MIT" ]
null
null
null
NLP programmes in Python/9.Text Clustering/kmeans.py
AlexandrosPlessias/NLP-Greek-Presentations
4ae9d635a777f24bae5238b9f195bd17d00040ea
[ "MIT" ]
null
null
null
NLP programmes in Python/9.Text Clustering/kmeans.py
AlexandrosPlessias/NLP-Greek-Presentations
4ae9d635a777f24bae5238b9f195bd17d00040ea
[ "MIT" ]
null
null
null
import nltk import re import csv import string import collections import numpy as np from nltk.corpus import wordnet from nltk.corpus import stopwords from nltk.stem import WordNetLemmatizer from nltk.tokenize import WordPunctTokenizer from sklearn.metrics import classification_report from sklearn.metric...
34.069231
141
0.685482
609
4,429
4.866995
0.316913
0.018893
0.012146
0.020243
0.197368
0.163968
0.163968
0.11471
0.064103
0.045884
0
0.013976
0.208399
4,429
129
142
34.333333
0.831432
0.172499
0
0.076923
0
0
0.062768
0.00643
0
0
0
0
0
1
0.038462
false
0
0.179487
0
0.269231
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
0
0
0
0
0
0
0
0
1
0
0edd17d0b784bbe0102b923ddf6f8c3e0cea3855
7,304
py
Python
common/utils.py
paTRICK-swk/P-STMO
def1bff3fcc4f1e3b1dd69c8d3c2d77f412e3b75
[ "MIT" ]
8
2022-03-16T02:55:45.000Z
2022-03-31T08:29:05.000Z
common/utils.py
paTRICK-swk/P-STMO
def1bff3fcc4f1e3b1dd69c8d3c2d77f412e3b75
[ "MIT" ]
2
2022-03-24T23:29:23.000Z
2022-03-31T02:59:39.000Z
common/utils.py
paTRICK-swk/P-STMO
def1bff3fcc4f1e3b1dd69c8d3c2d77f412e3b75
[ "MIT" ]
null
null
null
import torch import numpy as np import hashlib from torch.autograd import Variable import os def deterministic_random(min_value, max_value, data): digest = hashlib.sha256(data.encode()).digest() raw_value = int.from_bytes(digest[:4], byteorder='little', signed=False) return int(raw_value / (2 ** 32 - 1...
32.035088
118
0.607065
1,036
7,304
4.084942
0.177606
0.043478
0.056238
0.028355
0.502599
0.453686
0.408554
0.331758
0.305293
0.278828
0
0.030025
0.238499
7,304
227
119
32.176211
0.730852
0.032859
0
0.298701
0
0
0.055043
0
0
0
0
0
0.025974
1
0.097403
false
0
0.032468
0
0.220779
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0edda9355db51eae6f5202748937966f72f31878
1,362
py
Python
personal_ad/advice/converter.py
Sailer43/CSE5914Project
ebb47bff9a6101fac5173b5520e6002563da67d5
[ "MIT" ]
null
null
null
personal_ad/advice/converter.py
Sailer43/CSE5914Project
ebb47bff9a6101fac5173b5520e6002563da67d5
[ "MIT" ]
1
2019-10-15T21:48:27.000Z
2019-10-15T21:48:27.000Z
personal_ad/advice/converter.py
Sailer43/CSE5914Project
ebb47bff9a6101fac5173b5520e6002563da67d5
[ "MIT" ]
null
null
null
from ibm_watson import TextToSpeechV1, SpeechToTextV1, DetailedResponse from os import system from json import loads class Converter: k_s2t_api_key = "0pxCnJQ_r5Yy3SZDRhYS4XshrTMJyZEsuc45SbBcfGgf" k_t2s_api_key = "euoR7ZdLMOBd29wP1fNaZFJsqwKt45TUmwcVwpzbQBcA" k_s2t_url = "https://stream.watsonplatform.n...
30.954545
84
0.679883
176
1,362
4.960227
0.448864
0.036655
0.036655
0.02291
0.032073
0
0
0
0
0
0
0.033645
0.214391
1,362
43
85
31.674419
0.782243
0
0
0
0
0
0.240822
0.080029
0
0
0
0
0
1
0.125
false
0.03125
0.09375
0.03125
0.5625
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
0eddc7235cfdc03253ec66ce28f34006def0e26e
301
py
Python
warg_client/client/apis/controller/attack_controller.py
neel4os/warg-client
4d97904977a6f6865610afd04ca00ddfbad38ff9
[ "MIT" ]
null
null
null
warg_client/client/apis/controller/attack_controller.py
neel4os/warg-client
4d97904977a6f6865610afd04ca00ddfbad38ff9
[ "MIT" ]
null
null
null
warg_client/client/apis/controller/attack_controller.py
neel4os/warg-client
4d97904977a6f6865610afd04ca00ddfbad38ff9
[ "MIT" ]
null
null
null
from subprocess import run def perform_shutdown(body): arg = "" if body["reboot"]: _is_reboot = arg + "-r" else: _is_reboot = arg + "-h" time_to_shutdown = str(body['timeToShutdown']) result = run(["/sbin/shutdown", _is_reboot, time_to_shutdown]) return body
23.153846
66
0.621262
38
301
4.631579
0.578947
0.136364
0.125
0
0
0
0
0
0
0
0
0
0.245847
301
12
67
25.083333
0.77533
0
0
0
0
0
0.126246
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0edddd954e6572bd2613d0926da19b7e62f01353
346
py
Python
torrents/migrations/0011_auto_20190223_2345.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
9
2019-03-26T14:50:00.000Z
2020-11-10T16:44:08.000Z
torrents/migrations/0011_auto_20190223_2345.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
22
2019-03-02T23:16:13.000Z
2022-02-27T10:36:36.000Z
torrents/migrations/0011_auto_20190223_2345.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
5
2019-04-24T00:51:30.000Z
2020-11-06T18:31:49.000Z
# Generated by Django 2.1.7 on 2019-02-23 23:45 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('torrents', '0010_auto_20190223_0326'), ] operations = [ migrations.AlterModelOptions( name='realm', options={'ordering': ('n...
19.222222
48
0.586705
35
346
5.714286
0.828571
0
0
0
0
0
0
0
0
0
0
0.125
0.283237
346
17
49
20.352941
0.681452
0.130058
0
0
1
0
0.160535
0.076923
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0ede1b7c3e14b744474c60d6f5f4a702ad5ce8ca
281
py
Python
common/__init__.py
whyh/FavourDemo
1b19882fb2e79dee9c3332594bf45c91e7476eaa
[ "Unlicense" ]
1
2020-09-14T12:10:22.000Z
2020-09-14T12:10:22.000Z
common/__init__.py
whyh/FavourDemo
1b19882fb2e79dee9c3332594bf45c91e7476eaa
[ "Unlicense" ]
4
2021-04-30T20:54:31.000Z
2021-06-02T00:28:04.000Z
common/__init__.py
whyh/FavourDemo
1b19882fb2e79dee9c3332594bf45c91e7476eaa
[ "Unlicense" ]
null
null
null
from . import (emoji as emj, keyboards as kb, telegram as tg, phrases as phr, finance as fin, utils, glossary, bots, gcp, sed, db)
23.416667
31
0.33452
23
281
4.086957
0.826087
0
0
0
0
0
0
0
0
0
0
0
0.619217
281
11
32
25.545455
0.878505
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
0
1
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
1
0
0
0
0
0
0
3
0ee18d6b7b8309b3efbe99ae9ad5cbadde515b83
1,136
py
Python
questions/serializers.py
aneumeier/questions
fe5451b70d85cd5203b4cb624103c1eb154587d9
[ "BSD-3-Clause" ]
null
null
null
questions/serializers.py
aneumeier/questions
fe5451b70d85cd5203b4cb624103c1eb154587d9
[ "BSD-3-Clause" ]
null
null
null
questions/serializers.py
aneumeier/questions
fe5451b70d85cd5203b4cb624103c1eb154587d9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 """ :mod:`question.serializers` -- serializers """ from rest_framework import serializers from .models import Question, PossibleAnswer from category.models import Category class PossibleAnswerSerializer(serializers.ModelSerializer): class Meta: model = PossibleA...
21.846154
63
0.588028
93
1,136
7.053763
0.430108
0.118902
0.064024
0
0
0
0
0
0
0
0
0.001277
0.310739
1,136
51
64
22.27451
0.836526
0.101232
0
0.333333
0
0
0.110212
0
0
0
0
0
0
1
0.030303
false
0
0.090909
0
0.393939
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
0ee18e4216ec08fa76991908f8a448c6f9b7427c
2,147
py
Python
widgets/ui_ShowResultDialog.py
JaySon-Huang/SecertPhotos
e741cc26c19a5b249d45cc70959ac6817196cb8a
[ "MIT" ]
null
null
null
widgets/ui_ShowResultDialog.py
JaySon-Huang/SecertPhotos
e741cc26c19a5b249d45cc70959ac6817196cb8a
[ "MIT" ]
3
2015-05-19T08:43:46.000Z
2015-06-10T17:55:28.000Z
widgets/ui_ShowResultDialog.py
JaySon-Huang/SecertPhotos
e741cc26c19a5b249d45cc70959ac6817196cb8a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'src/ui_ShowResultDialog.ui' # # Created: Sat May 16 17:05:43 2015 # by: PyQt5 UI code generator 5.4 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def s...
43.816327
115
0.72054
230
2,147
6.63913
0.404348
0.041257
0.057629
0.074656
0.160445
0.128356
0.128356
0.128356
0.128356
0.128356
0
0.023177
0.17606
2,147
48
116
44.729167
0.840023
0.104797
0
0
1
0
0.04441
0
0
0
0
0
0
1
0.057143
false
0
0.057143
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0ee1c1606231abe837f3edc4544d4485e01f3d4a
6,484
py
Python
mixcoatl/admin/api_key.py
zomGreg/mixcoatl
dd8d7e206682955b251d7f858fffee56b11df8c6
[ "Apache-2.0" ]
null
null
null
mixcoatl/admin/api_key.py
zomGreg/mixcoatl
dd8d7e206682955b251d7f858fffee56b11df8c6
[ "Apache-2.0" ]
null
null
null
mixcoatl/admin/api_key.py
zomGreg/mixcoatl
dd8d7e206682955b251d7f858fffee56b11df8c6
[ "Apache-2.0" ]
null
null
null
""" mixcoatl.admin.api_key ---------------------- Implements access to the DCM ApiKey API """ from mixcoatl.resource import Resource from mixcoatl.decorators.lazy import lazy_property from mixcoatl.decorators.validations import required_attrs from mixcoatl.utils import uncamel, camelize, camel_keys, uncamel_keys impor...
31.173077
105
0.610734
772
6,484
4.968912
0.226684
0.023462
0.043014
0.01877
0.081856
0.037539
0.01512
0.01512
0
0
0
0.000431
0.284547
6,484
207
106
31.323672
0.826471
0.329272
0
0.236842
0
0
0.051231
0
0
0
0
0
0
1
0.175439
false
0.026316
0.04386
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ee1c3866e5f2d77866339896a7b340616b1337d
414
py
Python
Python tests/dictionaries.py
Johnny-QA/Python_training
a15de68195eb155c99731db3e4ff1d9d75681752
[ "Apache-2.0" ]
null
null
null
Python tests/dictionaries.py
Johnny-QA/Python_training
a15de68195eb155c99731db3e4ff1d9d75681752
[ "Apache-2.0" ]
null
null
null
Python tests/dictionaries.py
Johnny-QA/Python_training
a15de68195eb155c99731db3e4ff1d9d75681752
[ "Apache-2.0" ]
null
null
null
my_set = {1, 3, 5} my_dict = {'name': 'Jose', 'age': 90} another_dict = {1: 15, 2: 75, 3: 150} lottery_players = [ { 'name': 'Rolf', 'numbers': (13, 45, 66, 23, 22) }, { 'name': 'John', 'numbers': (14, 56, 80, 23, 22) } ] universities = [ { 'name': 'Oxford',...
16.56
39
0.398551
46
414
3.5
0.73913
0.049689
0
0
0
0
0
0
0
0
0
0.135659
0.376812
414
25
40
16.56
0.488372
0
0
0
0
0
0.187952
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0ee3d5ffc425ea5928ae83711b91532c1603b60f
7,589
py
Python
psdaq/psdaq/control_gui/QWTable.py
ZhenghengLi/lcls2
94e75c6536954a58c8937595dcac295163aa1cdf
[ "BSD-3-Clause-LBNL" ]
16
2017-11-09T17:10:56.000Z
2022-03-09T23:03:10.000Z
psdaq/psdaq/control_gui/QWTable.py
ZhenghengLi/lcls2
94e75c6536954a58c8937595dcac295163aa1cdf
[ "BSD-3-Clause-LBNL" ]
6
2017-12-12T19:30:05.000Z
2020-07-09T00:28:33.000Z
psdaq/psdaq/control_gui/QWTable.py
ZhenghengLi/lcls2
94e75c6536954a58c8937595dcac295163aa1cdf
[ "BSD-3-Clause-LBNL" ]
25
2017-09-18T20:02:43.000Z
2022-03-27T22:27:42.000Z
"""Class :py:class:`QWTable` is a QTableView->QWidget for tree model ====================================================================== Usage :: # Run test: python lcls2/psdaq/psdaq/control_gui/QWTable.py from psdaq.control_gui.QWTable import QWTable w = QWTable() Created on 2019-03-28 by Mikhail D...
32.431624
122
0.644617
893
7,589
5.235162
0.263158
0.029519
0.054118
0.04107
0.174759
0.133904
0.046631
0.046631
0.046631
0.046631
0
0.009221
0.228357
7,589
233
123
32.570815
0.789105
0.156542
0
0.103704
0
0
0.077382
0.007691
0
0
0
0
0
1
0.17037
false
0
0.051852
0.007407
0.266667
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
0ee3f4cb54a20c54630494d1b68aa8ef7ce66afa
1,948
py
Python
src/grailbase/mtloader.py
vadmium/grailbrowser
ca94e6db2359bcb16c0da256771550d1327c6d33
[ "CNRI-Python", "CNRI-Jython" ]
9
2015-03-23T23:21:42.000Z
2021-08-01T01:47:22.000Z
src/grailbase/mtloader.py
vadmium/grailbrowser
ca94e6db2359bcb16c0da256771550d1327c6d33
[ "CNRI-Python", "CNRI-Jython" ]
null
null
null
src/grailbase/mtloader.py
vadmium/grailbrowser
ca94e6db2359bcb16c0da256771550d1327c6d33
[ "CNRI-Python", "CNRI-Jython" ]
11
2015-03-23T23:22:22.000Z
2020-06-08T14:24:17.000Z
"""Extension loader for filetype handlers. The extension objects provided by MIMEExtensionLoader objects have four attributes: parse, embed, add_options, and update_options. The first two are used as handlers for supporting the MIME type as primary and embeded resources. The last two are (currently) only used for pr...
31.934426
77
0.602669
230
1,948
4.852174
0.378261
0.035842
0.043011
0.053763
0
0
0
0
0
0
0
0.001449
0.291581
1,948
60
78
32.466667
0.807246
0.181212
0
0.068182
0
0
0.089421
0
0
0
0
0
0
1
0.090909
false
0
0.045455
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ee482f843ff11fa45eb748eba4af3c343f6b618
38,737
py
Python
eventstreams_sdk/adminrest_v1.py
IBM/eventstreams-python-sdk
cc898e6901c35d1b43e2be7d152c6d770d967b23
[ "Apache-2.0" ]
2
2021-05-06T10:18:21.000Z
2021-09-17T05:19:57.000Z
eventstreams_sdk/eventstreams_sdk/adminrest_v1.py
IBM/eventstreams-python-sdk
cc898e6901c35d1b43e2be7d152c6d770d967b23
[ "Apache-2.0" ]
1
2021-03-16T17:08:20.000Z
2021-03-18T18:13:49.000Z
eventstreams_sdk/eventstreams_sdk/adminrest_v1.py
IBM/eventstreams-python-sdk
cc898e6901c35d1b43e2be7d152c6d770d967b23
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # (C) Copyright IBM Corp. 2021. # # 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 a...
37.755361
115
0.596226
4,282
38,737
5.205044
0.074731
0.021716
0.021536
0.013999
0.689295
0.658471
0.631281
0.587536
0.559494
0.549847
0
0.002026
0.299249
38,737
1,025
116
37.792195
0.819046
0.324677
0
0.637343
0
0
0.115538
0.021401
0
0
0
0
0
1
0.132855
false
0
0.012567
0
0.29623
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
0ee4cfc2dd5204b72c6c610aac6abe376e79a7c9
3,765
py
Python
3-functions/pytest-exercises/test_functions.py
BaseCampCoding/python-fundamentals
3804c07841d6604b1e5a1c15126b3301aa8ae306
[ "MIT" ]
null
null
null
3-functions/pytest-exercises/test_functions.py
BaseCampCoding/python-fundamentals
3804c07841d6604b1e5a1c15126b3301aa8ae306
[ "MIT" ]
1
2018-07-18T18:01:22.000Z
2019-06-14T15:06:28.000Z
3-functions/pytest-exercises/test_functions.py
BaseCampCoding/python-fundamentals
3804c07841d6604b1e5a1c15126b3301aa8ae306
[ "MIT" ]
null
null
null
import functions from pytest import approx from bcca.test import should_print def test_add_em_up(): assert functions.add_em_up(1, 2, 3) == 6 assert functions.add_em_up(4, 5, 6) == 15 def test_sub_sub_hubbub(): assert functions.sub_sub_hubbub(1, 2, 3) == -4 def test_square_area(): assert functions....
22.957317
74
0.733068
554
3,765
4.808664
0.263538
0.075075
0.052553
0.067568
0.266141
0.145646
0.051051
0
0
0
0
0.204895
0.153519
3,765
163
75
23.09816
0.631001
0
0
0.228814
0
0
0.288712
0
0
0
0
0
0.279661
1
0.152542
false
0
0.025424
0
0.177966
0.084746
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
0ee50094e88f5107ffe4383858e5ac2e6c4ea6ec
90
py
Python
src/products/admin.py
apabaad/django_ecommerce
ca04143477b306413158e5311062563f7418700c
[ "bzip2-1.0.6" ]
null
null
null
src/products/admin.py
apabaad/django_ecommerce
ca04143477b306413158e5311062563f7418700c
[ "bzip2-1.0.6" ]
null
null
null
src/products/admin.py
apabaad/django_ecommerce
ca04143477b306413158e5311062563f7418700c
[ "bzip2-1.0.6" ]
null
null
null
from django.contrib import admin from .models import Product admin.site.register(Product)
22.5
32
0.833333
13
90
5.769231
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.1
90
4
33
22.5
0.925926
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0ee558decdd72d80756553cbdc2a73e521956143
134
py
Python
cio/plugins/txt.py
beshrkayali/content-io
ae44aa4c4eba2234f940ca9d7a4bb310e25075b3
[ "BSD-3-Clause" ]
6
2015-02-12T20:23:42.000Z
2020-01-10T09:42:32.000Z
cio/plugins/txt.py
beshrkayali/content-io
ae44aa4c4eba2234f940ca9d7a4bb310e25075b3
[ "BSD-3-Clause" ]
5
2015-09-08T08:54:39.000Z
2020-01-10T12:13:21.000Z
cio/plugins/txt.py
beshrkayali/content-io
ae44aa4c4eba2234f940ca9d7a4bb310e25075b3
[ "BSD-3-Clause" ]
4
2015-06-29T15:21:41.000Z
2019-12-06T09:29:30.000Z
# coding=utf-8 from __future__ import unicode_literals from .base import BasePlugin class TextPlugin(BasePlugin): ext = 'txt'
13.4
39
0.753731
17
134
5.647059
0.823529
0
0
0
0
0
0
0
0
0
0
0.009009
0.171642
134
9
40
14.888889
0.855856
0.089552
0
0
0
0
0.025
0
0
0
0
0
0
1
0
false
0
0.5
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
0
0
1
0
1
0
0
4
0ee595b8e0ae941415e84128e8515b5e48db04fe
2,013
py
Python
ml-scripts/dump-data-to-learn.py
thejoeejoee/SUI-MIT-VUT-2020-2021
aee307aa772c5a0e97578da5ebedd3e2cd39ab91
[ "MIT" ]
null
null
null
ml-scripts/dump-data-to-learn.py
thejoeejoee/SUI-MIT-VUT-2020-2021
aee307aa772c5a0e97578da5ebedd3e2cd39ab91
[ "MIT" ]
null
null
null
ml-scripts/dump-data-to-learn.py
thejoeejoee/SUI-MIT-VUT-2020-2021
aee307aa772c5a0e97578da5ebedd3e2cd39ab91
[ "MIT" ]
1
2021-01-15T19:01:45.000Z
2021-01-15T19:01:45.000Z
#!/usr/bin/env python3 # Project: VUT FIT SUI Project - Dice Wars # Authors: # - Josef Kolář <xkolar71@stud.fit.vutbr.cz> # - Dominik Harmim <xharmi00@stud.fit.vutbr.cz> # - Petr Kapoun <xkapou04@stud.fit.vutbr.cz> # - Jindřich Šesták <xsesta05@stud.fit.vutbr.cz> # Year: 2020 # Description: Genera...
25.807692
116
0.623448
249
2,013
4.903614
0.493976
0.053235
0.05733
0.06552
0.07371
0.044226
0.044226
0.044226
0.044226
0.044226
0
0.040505
0.251863
2,013
77
117
26.142857
0.770252
0.193741
0
0.125
0
0
0.11505
0
0
0
0
0
0
1
0.0625
false
0.020833
0.125
0
0.1875
0.020833
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ee5bd4b8f792f655e11610a4d7c25b151f76873
4,041
py
Python
testing/conftest.py
davidszotten/pdbpp
3d90d83902e1d19840d0419362a41c654f93251e
[ "BSD-3-Clause" ]
null
null
null
testing/conftest.py
davidszotten/pdbpp
3d90d83902e1d19840d0419362a41c654f93251e
[ "BSD-3-Clause" ]
null
null
null
testing/conftest.py
davidszotten/pdbpp
3d90d83902e1d19840d0419362a41c654f93251e
[ "BSD-3-Clause" ]
null
null
null
import functools import sys from contextlib import contextmanager import pytest _orig_trace = None def pytest_configure(): global _orig_trace _orig_trace = sys.gettrace() @pytest.fixture(scope="session", autouse=True) def term(): """Configure TERM for predictable output from Pygments.""" from _pyt...
28.0625
80
0.659985
473
4,041
5.477801
0.336152
0.027789
0.018526
0.031262
0.074875
0.074875
0.038595
0
0
0
0
0.006752
0.230389
4,041
143
81
28.258741
0.826367
0.156892
0
0.152174
0
0
0.118927
0.031595
0
0
0
0
0.032609
1
0.152174
false
0
0.184783
0.01087
0.391304
0.01087
0
0
0
null
0
0
0
0
0
0
0
0
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
0ee60185bcf81d5e6fbf52b5b69fb40616c44fa1
1,279
py
Python
thing_gym_ros/envs/utils.py
utiasSTARS/thing-gym-ros
6e8a034ac0d1686f29bd29e2aaa63f39a5b188d4
[ "MIT" ]
1
2021-12-25T01:10:32.000Z
2021-12-25T01:10:32.000Z
thing_gym_ros/envs/utils.py
utiasSTARS/thing-gym-ros
6e8a034ac0d1686f29bd29e2aaa63f39a5b188d4
[ "MIT" ]
null
null
null
thing_gym_ros/envs/utils.py
utiasSTARS/thing-gym-ros
6e8a034ac0d1686f29bd29e2aaa63f39a5b188d4
[ "MIT" ]
null
null
null
""" Various generic env utilties. """ def center_crop_img(img, crop_zoom): """ crop_zoom is amount to "zoom" into the image. E.g. 2.0 would cut out half of the width, half of the height, and only give the center. """ raw_height, raw_width = img.shape[:2] center = raw_height // 2, raw_width // 2 cro...
53.291667
97
0.6638
233
1,279
3.390558
0.253219
0.068354
0.037975
0.043038
0.202532
0.167089
0.167089
0
0
0
0
0.04023
0.183737
1,279
24
98
53.291667
0.716475
0.326818
0
0.266667
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0
0
0.266667
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
0ee65ef56e608d8cc1f10a29c3d522f07069ba46
9,006
py
Python
tests/sentry/utils/http/tests.py
arya-s/sentry
959ffbd37cb4a7821f7a2676c137be54cad171a8
[ "BSD-3-Clause" ]
1
2021-06-16T06:57:35.000Z
2021-06-16T06:57:35.000Z
tests/sentry/utils/http/tests.py
arya-s/sentry
959ffbd37cb4a7821f7a2676c137be54cad171a8
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/utils/http/tests.py
arya-s/sentry
959ffbd37cb4a7821f7a2676c137be54cad171a8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import mock from exam import fixture from sentry import options from sentry.models import Project from sentry.testutils import TestCase from sentry.utils.http import ( is_same_domain, is_valid_origin, get_origins, absolute_uri, is_valid_ip, ) clas...
38.652361
94
0.663002
1,164
9,006
4.937285
0.115979
0.076562
0.132069
0.117453
0.774665
0.723682
0.699843
0.631634
0.56151
0.482513
0
0.022624
0.190207
9,006
232
95
38.818966
0.765391
0.002332
0
0.321637
0
0
0.193254
0.024379
0
0
0
0
0.298246
1
0.245614
false
0
0.040936
0.005848
0.333333
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0ee6801d23fab1803ee54e727965d043d1914412
224
py
Python
comcenterproject/project/helpers.py
tongpa/bantak_program
66edfe225e8018f65c9c5a6cd7745c17ba557bd5
[ "Apache-2.0" ]
null
null
null
comcenterproject/project/helpers.py
tongpa/bantak_program
66edfe225e8018f65c9c5a6cd7745c17ba557bd5
[ "Apache-2.0" ]
null
null
null
comcenterproject/project/helpers.py
tongpa/bantak_program
66edfe225e8018f65c9c5a6cd7745c17ba557bd5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """WebHelpers used in project.""" #from webhelpers import date, feedgenerator, html, number, misc, text from markupsafe import Markup def bold(text): return Markup('<strong>%s</strong>' % text)
24.888889
69
0.6875
29
224
5.310345
0.758621
0
0
0
0
0
0
0
0
0
0
0.005263
0.151786
224
9
70
24.888889
0.805263
0.526786
0
0
0
0
0.19
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
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
1
0
0
1
1
1
0
0
6
0ee6ceb6e274923689476909061cf2ae7181004e
1,555
py
Python
Thesis/load/runRiakLoads.py
arnaudsjs/YCSB-1
dc557d209244df72d68c9cb0a048d54e7bd72637
[ "Apache-2.0" ]
null
null
null
Thesis/load/runRiakLoads.py
arnaudsjs/YCSB-1
dc557d209244df72d68c9cb0a048d54e7bd72637
[ "Apache-2.0" ]
null
null
null
Thesis/load/runRiakLoads.py
arnaudsjs/YCSB-1
dc557d209244df72d68c9cb0a048d54e7bd72637
[ "Apache-2.0" ]
null
null
null
import sys; from Thesis.load.loadBenchmark import runLoadBenchmarkAsBatch; from Thesis.cluster.RiakCluster import RiakCluster; NORMAL_BINDING = 'riak'; CONSISTENCY_BINDING = 'riak_consistency'; IPS_IN_CLUSTER = ['172.16.33.14', '172.16.33.15', '172.16.33.16', '172.16.33.17', '172.16.33.18']; def main(): if len(s...
42.027027
161
0.664309
165
1,555
6.175758
0.424242
0.061825
0.041217
0.027478
0.178606
0.178606
0.178606
0.178606
0.178606
0.178606
0
0.060317
0.189711
1,555
37
162
42.027027
0.748413
0.004502
0
0.066667
0
0.033333
0.201034
0.035553
0
0
0
0
0
0
null
null
0
0.1
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0ee83db3e5e99371f123bcdb50f3fcc2018ce29b
4,947
py
Python
auto_nag/tests/test_round_robin.py
Mozilla-GitHub-Standards/f9c78643f5862cda82001d4471255ac29ef0c6b2c6171e2c1cbecab3d2fef4dd
28d999fcba9ad47d1dd0b2222880b71726ddd47c
[ "BSD-3-Clause" ]
null
null
null
auto_nag/tests/test_round_robin.py
Mozilla-GitHub-Standards/f9c78643f5862cda82001d4471255ac29ef0c6b2c6171e2c1cbecab3d2fef4dd
28d999fcba9ad47d1dd0b2222880b71726ddd47c
[ "BSD-3-Clause" ]
null
null
null
auto_nag/tests/test_round_robin.py
Mozilla-GitHub-Standards/f9c78643f5862cda82001d4471255ac29ef0c6b2c6171e2c1cbecab3d2fef4dd
28d999fcba9ad47d1dd0b2222880b71726ddd47c
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. import unittest from mock import patch from auto_nag.people import People from auto_nag.round_robin im...
31.711538
86
0.439256
573
4,947
3.699825
0.230366
0.122642
0.108962
0.113208
0.54434
0.54434
0.54434
0.535377
0.516981
0.486792
0
0.086928
0.381443
4,947
155
87
31.916129
0.605882
0.041641
0
0.290076
0
0
0.241554
0
0
0
0
0
0.167939
1
0.030534
false
0
0.030534
0.007634
0.099237
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
0ee87adc70e779b9ff0da63b63fc29dd8e09baec
21,473
py
Python
scipy/weave/inline_tools.py
tacaswell/scipy
4d7e924a319299e39c9a9514e021fbfdfceb854e
[ "BSD-3-Clause" ]
1
2017-01-18T20:32:35.000Z
2017-01-18T20:32:35.000Z
scipy/weave/inline_tools.py
tacaswell/scipy
4d7e924a319299e39c9a9514e021fbfdfceb854e
[ "BSD-3-Clause" ]
null
null
null
scipy/weave/inline_tools.py
tacaswell/scipy
4d7e924a319299e39c9a9514e021fbfdfceb854e
[ "BSD-3-Clause" ]
null
null
null
# should re-write compiled functions to take a local and global dict # as input. from __future__ import absolute_import, print_function import sys import os from . import ext_tools from . import catalog from . import common_info from numpy.core.multiarray import _get_ndarray_c_version ndarray_api_version = '/* NDARRA...
42.7749
93
0.593862
2,616
21,473
4.719037
0.196865
0.019684
0.015796
0.020008
0.304415
0.280761
0.268449
0.246983
0.24358
0.233293
0
0.003695
0.331998
21,473
501
94
42.860279
0.856944
0.42621
0
0.496212
0
0
0.150172
0.016552
0
0
0
0
0
1
0.049242
false
0.034091
0.037879
0
0.151515
0.007576
0
0
0
null
0
0
0
0
0
0
0
0
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
0ee8c1be25a8a7813888c36156d1084e0932af6f
22,062
py
Python
trove/guestagent/common/configuration.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
1
2020-04-08T07:42:19.000Z
2020-04-08T07:42:19.000Z
trove/guestagent/common/configuration.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
trove/guestagent/common/configuration.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2015 Tesora Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
40.629834
79
0.631629
2,555
22,062
5.192172
0.131115
0.03558
0.033921
0.038444
0.487035
0.428916
0.368988
0.346073
0.284185
0.241972
0
0.001503
0.306228
22,062
542
80
40.704797
0.865216
0.385912
0
0.32636
0
0
0.006627
0
0
0
0
0
0
1
0.16318
false
0
0.079498
0.016736
0.359833
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
0ee8cb45529200e0a449b9203826ebdcb7530c60
18,018
py
Python
API-Reference-Code-Generator.py
sawyercade/Documentation
257b68c8ca2928e8a730ea44196297a400587437
[ "Apache-2.0" ]
116
2017-09-13T17:11:07.000Z
2022-03-13T00:33:03.000Z
API-Reference-Code-Generator.py
sawyercade/Documentation
257b68c8ca2928e8a730ea44196297a400587437
[ "Apache-2.0" ]
148
2017-09-14T01:07:09.000Z
2022-03-28T21:47:55.000Z
API-Reference-Code-Generator.py
sawyercade/Documentation
257b68c8ca2928e8a730ea44196297a400587437
[ "Apache-2.0" ]
124
2017-09-07T22:05:43.000Z
2022-03-26T05:44:32.000Z
import pathlib import yaml documentations = {"Our Platform": "QuantConnect-Platform-2.0.0.yaml", "Alpha Streams": "QuantConnect-Alpha-0.8.yaml"} def RequestTable(api_call, params): writeUp = '<table class="table qc-table">\n<thead>\n<tr>\n' writeUp += f'<th colspan="2"><code>{api_call}</code...
41.04328
195
0.466811
1,816
18,018
4.457599
0.105727
0.112415
0.009883
0.038542
0.478196
0.422483
0.372329
0.323039
0.300556
0.274243
0
0.013493
0.39122
18,018
439
196
41.04328
0.724496
0.007104
0
0.327974
0
0.057878
0.247638
0.108471
0
0
0
0
0
1
0.009646
false
0
0.006431
0
0.032154
0.003215
0
0
0
null
0
0
0
0
0
0
0
0
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
0eea2bc9a6e4ca781595beca55133b3f45fb4b7b
551
py
Python
forge_api_client/hubs.py
dmh126/forge-python-data-management-api
9c33f220021251a0340346065e3dd1998fc49a12
[ "MIT" ]
1
2019-07-02T08:32:22.000Z
2019-07-02T08:32:22.000Z
forge_api_client/hubs.py
dmh126/forge-python-data-management-api
9c33f220021251a0340346065e3dd1998fc49a12
[ "MIT" ]
null
null
null
forge_api_client/hubs.py
dmh126/forge-python-data-management-api
9c33f220021251a0340346065e3dd1998fc49a12
[ "MIT" ]
2
2019-07-04T05:13:42.000Z
2020-05-09T22:15:05.000Z
from .utils import get_request, authorized class Hubs: @authorized def getHubs(self): url = self.api_url + '/project/v1/hubs' headers = { 'Authorization': '%s %s' % (self.token_type, self.access_token) } return get_request(url, headers) @authorized def g...
21.192308
75
0.575318
65
551
4.707692
0.384615
0.098039
0.065359
0.084967
0.666667
0.666667
0.666667
0.496732
0.496732
0.496732
0
0.005181
0.299456
551
25
76
22.04
0.787565
0
0
0.5
0
0
0.128857
0
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0eeb15222dc7d564fdca952a76722513fa52548a
144
py
Python
tlp/django_app/app/urls.py
munisisazade/create-django-app
f62395af2adaacacc4d3a3857c6570c9647d13a1
[ "MIT" ]
14
2018-01-08T12:50:10.000Z
2021-12-26T18:38:14.000Z
tlp/django_app/app/urls.py
munisisazade/create-django-app
f62395af2adaacacc4d3a3857c6570c9647d13a1
[ "MIT" ]
10
2018-03-01T14:17:05.000Z
2022-03-11T23:26:11.000Z
tlp/django_app/app/urls.py
munisisazade/create-django-app
f62395af2adaacacc4d3a3857c6570c9647d13a1
[ "MIT" ]
4
2019-04-09T17:29:34.000Z
2020-06-07T14:46:23.000Z
from django.conf.urls import url # from .views import BaseIndexView urlpatterns = [ # url(r'^$', BaseIndexView.as_view(), name="index"), ]
20.571429
56
0.6875
18
144
5.444444
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.152778
144
7
57
20.571429
0.803279
0.576389
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0eeba77c6034df540d6e02d1c1935e84c28bdcd9
10,427
py
Python
tools/archive/create_loadable_configs.py
madelinemccombe/iron-skillet
f7bb805ac5ed0f2b44e4b438f8c021eaf2f5c66b
[ "MIT" ]
null
null
null
tools/archive/create_loadable_configs.py
madelinemccombe/iron-skillet
f7bb805ac5ed0f2b44e4b438f8c021eaf2f5c66b
[ "MIT" ]
null
null
null
tools/archive/create_loadable_configs.py
madelinemccombe/iron-skillet
f7bb805ac5ed0f2b44e4b438f8c021eaf2f5c66b
[ "MIT" ]
null
null
null
# Copyright (c) 2018, Palo Alto Networks # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS...
38.762082
118
0.720629
1,456
10,427
5.052198
0.225962
0.019032
0.006525
0.012915
0.216966
0.169657
0.143284
0.132953
0.107123
0.107123
0
0.011043
0.201017
10,427
269
119
38.762082
0.871924
0.458905
0
0.054545
0
0
0.219135
0.03357
0
0
0
0
0
1
0.081818
false
0.118182
0.109091
0
0.272727
0.163636
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0eebd18c0a711ceedaa9842ae51084a3bb575a36
8,841
py
Python
pactman/verifier/pytest_plugin.py
piotrantosz/pactman
2838e273d79831721da9c1b658b8f9d249efc789
[ "MIT" ]
67
2018-08-26T03:39:16.000Z
2022-02-24T10:05:18.000Z
pactman/verifier/pytest_plugin.py
piotrantosz/pactman
2838e273d79831721da9c1b658b8f9d249efc789
[ "MIT" ]
82
2018-08-29T00:09:32.000Z
2022-02-08T02:46:15.000Z
pactman/verifier/pytest_plugin.py
piotrantosz/pactman
2838e273d79831721da9c1b658b8f9d249efc789
[ "MIT" ]
37
2018-08-22T04:40:31.000Z
2022-02-08T13:31:31.000Z
import glob import logging import os import warnings import pytest from _pytest.outcomes import Failed from _pytest.reports import TestReport from .broker_pact import BrokerPact, BrokerPacts, PactBrokerConfig from .result import PytestResult, log def pytest_addoption(parser): group = parser.getgroup("pact speci...
38.776316
109
0.658862
1,043
8,841
5.448706
0.239693
0.034489
0.044343
0.023755
0.173148
0.131445
0.062643
0.0183
0.0183
0.0183
0
0.001052
0.247144
8,841
227
110
38.947137
0.852764
0.153376
0
0.133721
0
0
0.205448
0.021471
0
0
0
0
0.005814
1
0.098837
false
0.005814
0.052326
0.011628
0.22093
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
0eec4303c142298ab8af1f1876c980b2e097801b
1,503
py
Python
interface/docstring.py
karttur/geoimagine02-grass
09c207707ddd0dae04a871e006e184409aa87d99
[ "BSD-3-Clause" ]
null
null
null
interface/docstring.py
karttur/geoimagine02-grass
09c207707ddd0dae04a871e006e184409aa87d99
[ "BSD-3-Clause" ]
null
null
null
interface/docstring.py
karttur/geoimagine02-grass
09c207707ddd0dae04a871e006e184409aa87d99
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- def docstring_property(class_doc): """Property attribute for docstrings. Took from: https://gist.github.com/bfroehle/4041015 >>> class A(object): ... '''Main docstring''' ... def __init__(self, x): ... self.x = x ... @docstring_property(__doc__)...
26.839286
78
0.611444
187
1,503
4.652406
0.40107
0.064368
0.041379
0.022989
0.027586
0
0
0
0
0
0
0.011029
0.276114
1,503
55
79
27.327273
0.788603
0.537591
0
0
0
0
0.068562
0
0
0
0
0
0
1
0.352941
false
0
0
0.058824
0.647059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
0eec9d3074b439e55c9718c0b6f3f23b0eb54adb
1,906
py
Python
autocnet/matcher/cuda_matcher.py
gsn9/autocnet
ddcca3ce3a6b59f720804bb3da03857efa4ff534
[ "CC0-1.0" ]
null
null
null
autocnet/matcher/cuda_matcher.py
gsn9/autocnet
ddcca3ce3a6b59f720804bb3da03857efa4ff534
[ "CC0-1.0" ]
1
2018-09-13T16:03:53.000Z
2018-09-13T16:03:53.000Z
autocnet/matcher/cuda_matcher.py
gsn9/autocnet
ddcca3ce3a6b59f720804bb3da03857efa4ff534
[ "CC0-1.0" ]
1
2018-09-13T15:12:51.000Z
2018-09-13T15:12:51.000Z
import warnings try: import cudasift as cs except: cs = None import numpy as np import pandas as pd def match(edge, aidx=None, bidx=None, **kwargs): """ Apply a composite CUDA matcher and ratio check. If this method is used, no additional ratio check is necessary and no symmetry check is requir...
35.962264
77
0.707765
275
1,906
4.76
0.381818
0.027502
0.018335
0.012223
0.082506
0.082506
0.032086
0.032086
0
0
0
0.001303
0.194648
1,906
52
78
36.653846
0.851466
0.272823
0
0
0
0
0.060651
0
0
0
0
0
0
1
0.033333
false
0
0.133333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0eed163a13b8bf28c8e3cc3018df9acf80f8ef9a
199
py
Python
app/apis/__init__.py
FabienArcellier/blueprint-webapp-flask-restx
84bc9dbe697c4b0f6667d2a2d8144a3f934a307a
[ "MIT" ]
null
null
null
app/apis/__init__.py
FabienArcellier/blueprint-webapp-flask-restx
84bc9dbe697c4b0f6667d2a2d8144a3f934a307a
[ "MIT" ]
null
null
null
app/apis/__init__.py
FabienArcellier/blueprint-webapp-flask-restx
84bc9dbe697c4b0f6667d2a2d8144a3f934a307a
[ "MIT" ]
null
null
null
from flask_restx import Api from app.apis.hello import api as hello api = Api( title='api', version='1.0', description='', prefix='/api', doc='/api' ) api.add_namespace(hello)
14.214286
39
0.633166
29
199
4.275862
0.62069
0.145161
0
0
0
0
0
0
0
0
0
0.012821
0.21608
199
13
40
15.307692
0.782051
0
0
0
0
0
0.070352
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0eed2f6be467201cff2adf42d27d251ad3cba2b3
1,339
py
Python
tests/test_core.py
Kantouzin/brainfuck
812834320b080e2317d3fac377db64782057c8f4
[ "WTFPL" ]
null
null
null
tests/test_core.py
Kantouzin/brainfuck
812834320b080e2317d3fac377db64782057c8f4
[ "WTFPL" ]
null
null
null
tests/test_core.py
Kantouzin/brainfuck
812834320b080e2317d3fac377db64782057c8f4
[ "WTFPL" ]
null
null
null
# coding: utf-8 import unittest from test.support import captured_stdout from brainfuck import BrainFuck class TestCore(unittest.TestCase): def test_hello_world(self): bf = BrainFuck() with captured_stdout() as stdout: bf.run() self.assertEqual(stdout.getvalue(), "Hello, wo...
24.345455
68
0.546677
153
1,339
4.588235
0.385621
0.119658
0.128205
0.08547
0.254986
0.254986
0.254986
0.254986
0.202279
0.202279
0
0.013129
0.317401
1,339
54
69
24.796296
0.754923
0.009709
0
0.305556
0
0
0.095166
0.036254
0
0
0
0
0.083333
1
0.083333
false
0
0.083333
0
0.194444
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
0eed507c0a7d908570e5345420f87553a7bbdb5d
788
py
Python
main.py
poltavski/social-network-frontend
ccc3410e23e42cfc65efd811aba262ec88163481
[ "MIT" ]
null
null
null
main.py
poltavski/social-network-frontend
ccc3410e23e42cfc65efd811aba262ec88163481
[ "MIT" ]
null
null
null
main.py
poltavski/social-network-frontend
ccc3410e23e42cfc65efd811aba262ec88163481
[ "MIT" ]
null
null
null
from fastapi import FastAPI, Request, Response from fastapi.responses import HTMLResponse from fastapi.staticfiles import StaticFiles from fastapi.templating import Jinja2Templates from utils import get_page_data, process_initial import uvicorn app = FastAPI() templates = Jinja2Templates(directory="templates") app.mou...
29.185185
74
0.769036
100
788
5.89
0.44
0.074703
0.037351
0.101868
0.278438
0.278438
0.278438
0.278438
0.278438
0.278438
0
0.017316
0.120558
788
26
75
30.307692
0.832612
0.072335
0
0.117647
0
0
0.086538
0
0
0
0
0
0
1
0
false
0
0.352941
0
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0eed571d3bbd262c5cff9905eccfdacc18b2c6bf
4,515
py
Python
Core/Python/create_static_group.py
Ku-Al/OpenManage-Enterprise
5cc67435d7cedb091edb07311ed9dceeda43277f
[ "Apache-2.0" ]
null
null
null
Core/Python/create_static_group.py
Ku-Al/OpenManage-Enterprise
5cc67435d7cedb091edb07311ed9dceeda43277f
[ "Apache-2.0" ]
null
null
null
Core/Python/create_static_group.py
Ku-Al/OpenManage-Enterprise
5cc67435d7cedb091edb07311ed9dceeda43277f
[ "Apache-2.0" ]
null
null
null
# # Python script using OME API to create a new static group # # _author_ = Raajeev Kalyanaraman <Raajeev.Kalyanaraman@Dell.com> # _version_ = 0.1 # # Copyright (c) 2020 Dell EMC Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Lic...
44.70297
108
0.61041
519
4,515
5.181118
0.425819
0.024544
0.013388
0.013388
0.080327
0.027891
0.019338
0
0
0
0
0.009416
0.294352
4,515
100
109
45.15
0.834589
0.287265
0
0.035088
0
0
0.196922
0
0
0
0
0
0
1
0.017544
false
0.087719
0.087719
0
0.105263
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0eed82297822ff3d19f2f5807a4ad2a8d7e8d1d9
4,531
py
Python
examples/references/segmentation/pascal_voc2012/code/dataflow/dataloaders.py
kagrze/ignite
18708a76f86623545311d35bc48673eac9e55591
[ "BSD-3-Clause" ]
null
null
null
examples/references/segmentation/pascal_voc2012/code/dataflow/dataloaders.py
kagrze/ignite
18708a76f86623545311d35bc48673eac9e55591
[ "BSD-3-Clause" ]
null
null
null
examples/references/segmentation/pascal_voc2012/code/dataflow/dataloaders.py
kagrze/ignite
18708a76f86623545311d35bc48673eac9e55591
[ "BSD-3-Clause" ]
null
null
null
from typing import Callable, Optional, Tuple, Union import numpy as np from torch.utils.data import DataLoader, Sampler from torch.utils.data.dataset import Subset, ConcatDataset import torch.utils.data.distributed as data_dist from dataflow.datasets import get_train_dataset, get_val_dataset, TransformedDataset, get...
43.990291
116
0.637387
546
4,531
4.948718
0.155678
0.041451
0.026647
0.03849
0.330126
0.215766
0.180977
0.15433
0.136936
0.136936
0
0.002177
0.290223
4,531
102
117
44.421569
0.837998
0.010814
0
0.171053
0
0
0.015179
0
0
0
0
0
0.039474
1
0.026316
false
0
0.078947
0
0.131579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0eef441f20577a797d6570e849cc35b3e4804f14
6,309
py
Python
saleor/core/jwt.py
autobotasia/saleor
e03e9f6ab1bddac308a6609d6b576a87e90ae655
[ "CC-BY-4.0" ]
1
2022-02-19T13:27:40.000Z
2022-02-19T13:27:40.000Z
saleor/core/jwt.py
autobotasia/saleor
e03e9f6ab1bddac308a6609d6b576a87e90ae655
[ "CC-BY-4.0" ]
null
null
null
saleor/core/jwt.py
autobotasia/saleor
e03e9f6ab1bddac308a6609d6b576a87e90ae655
[ "CC-BY-4.0" ]
2
2021-12-03T16:59:37.000Z
2022-02-19T13:05:42.000Z
from datetime import datetime, timedelta from typing import Any, Dict, Optional import graphene import jwt from django.conf import settings from django.core.handlers.wsgi import WSGIRequest from ..account.models import User from ..app.models import App from .permissions import ( get_permission_names, get_perm...
30.926471
84
0.703598
815
6,309
5.161963
0.181595
0.016639
0.02377
0.026147
0.282387
0.231281
0.156881
0.09294
0.09294
0.09294
0
0.001401
0.208274
6,309
203
85
31.078818
0.840841
0.058012
0
0.22293
0
0
0.067174
0.00423
0
0
0
0
0
1
0.089172
false
0
0.057325
0.012739
0.261147
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
0eef6d139660d7b5753e9bf6938554e0499dccc1
3,513
py
Python
locust/configuration.py
pancaprima/locust
dba803fcdd13ff2fada4e8b8ee37a163aa519a48
[ "MIT" ]
1
2018-09-03T10:05:55.000Z
2018-09-03T10:05:55.000Z
locust/configuration.py
pancaprima/locust
dba803fcdd13ff2fada4e8b8ee37a163aa519a48
[ "MIT" ]
14
2017-09-20T11:01:44.000Z
2020-02-21T18:37:58.000Z
locust/configuration.py
erlanggakrisnamukti/locust
dba803fcdd13ff2fada4e8b8ee37a163aa519a48
[ "MIT" ]
3
2018-01-24T09:39:56.000Z
2018-08-24T06:30:23.000Z
import os, json, logging, jsonpath_rw_ext, jsonpath_rw from jsonpath_rw import jsonpath, parse from . import events from ast import literal_eval from flask import make_response logger = logging.getLogger(__name__) CONFIG_PATH = '/tests/settings/config.json' class ClientConfiguration: """ This class is a handl...
34.782178
114
0.562767
397
3,513
4.811083
0.314861
0.036649
0.036649
0.018848
0.112042
0.035602
0
0
0
0
0
0.00563
0.342727
3,513
100
115
35.13
0.821568
0.105038
0
0.161765
0
0
0.033124
0.008943
0
0
0
0
0
1
0.073529
false
0.014706
0.073529
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
0eefcd2d4671b89d12e5ea2a56457ebf60bf3929
458
py
Python
data/migrations/0023_discardaction_answers.py
SIXMON/peps
48c09a951a0193ada7b91c8bb6efc4b1232c3520
[ "MIT" ]
5
2019-08-29T13:55:47.000Z
2021-11-15T08:30:33.000Z
data/migrations/0023_discardaction_answers.py
SIXMON/peps
48c09a951a0193ada7b91c8bb6efc4b1232c3520
[ "MIT" ]
295
2019-08-19T12:40:29.000Z
2022-01-24T14:03:20.000Z
data/migrations/0023_discardaction_answers.py
SIXMON/peps
48c09a951a0193ada7b91c8bb6efc4b1232c3520
[ "MIT" ]
7
2020-05-27T06:28:48.000Z
2021-11-17T10:00:54.000Z
# Generated by Django 2.2.4 on 2019-11-14 16:48 import django.contrib.postgres.fields.jsonb from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('data', '0022_discardaction'), ] operations = [ migrations.AddField( model_name='discardactio...
22.9
88
0.637555
50
458
5.8
0.7
0.089655
0.144828
0.186207
0.22069
0
0
0
0
0
0
0.055072
0.246725
458
19
89
24.105263
0.785507
0.098253
0
0
1
0
0.10219
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0eefd82c5da7e16c24688892ee11d187a2303e65
1,297
py
Python
app/models.py
juanitodread/pitaya-falcon
f4b889f9fa39072aeb9f1c71fe5f3bb259082e93
[ "Apache-2.0" ]
null
null
null
app/models.py
juanitodread/pitaya-falcon
f4b889f9fa39072aeb9f1c71fe5f3bb259082e93
[ "Apache-2.0" ]
null
null
null
app/models.py
juanitodread/pitaya-falcon
f4b889f9fa39072aeb9f1c71fe5f3bb259082e93
[ "Apache-2.0" ]
null
null
null
from json import JSONEncoder from time import time class Jsonable: """Abstract class to standardize the toJson method to be implemented by any class that wants to be serialized to JSON""" def toJson(self): """Abstract method""" raise NotImplementedError('You should implement this method in...
27.595745
109
0.621434
160
1,297
4.9625
0.38125
0.04534
0.065491
0.071788
0.198992
0.141058
0.078086
0.078086
0
0
0
0.004145
0.255975
1,297
46
110
28.195652
0.818653
0.14495
0
0.28125
0
0
0.065197
0
0
0
0
0
0
1
0.25
false
0
0.0625
0.09375
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
0ef004434fa16f22e39f1c30a252704c35a2362e
2,034
py
Python
compute_pi.py
jakobkogler/pi_memorize
c82c24f26407f1728ad1e73851b72dea9bf779f6
[ "MIT" ]
null
null
null
compute_pi.py
jakobkogler/pi_memorize
c82c24f26407f1728ad1e73851b72dea9bf779f6
[ "MIT" ]
null
null
null
compute_pi.py
jakobkogler/pi_memorize
c82c24f26407f1728ad1e73851b72dea9bf779f6
[ "MIT" ]
null
null
null
"""Compute pi.""" from decimal import Decimal, getcontext import argparse import itertools class ComputePi: """Compute pi to a specific precision using multiple algorithms.""" @staticmethod def BBP(precision): """Compute pi using the Bailey-Borwein-Plouffe formula.""" getcontext().prec = ...
29.478261
102
0.564897
257
2,034
4.346304
0.373541
0.03581
0.032229
0.034915
0.119964
0.094897
0.094897
0.094897
0.094897
0.094897
0
0.04446
0.303343
2,034
68
103
29.911765
0.743825
0.176991
0
0.108696
0
0
0.052696
0
0
0
0
0
0
1
0.065217
false
0
0.065217
0
0.217391
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
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
0ef0299af0be6f4403ddbf6bc9801b26ba188122
1,657
py
Python
scripts/01_deploy_data_types.py
LaMemeBete/nodys-smart-contract
f67b88d98ebf7063b72f46cb2b014d5de96eb56d
[ "MIT", "Unlicense" ]
null
null
null
scripts/01_deploy_data_types.py
LaMemeBete/nodys-smart-contract
f67b88d98ebf7063b72f46cb2b014d5de96eb56d
[ "MIT", "Unlicense" ]
null
null
null
scripts/01_deploy_data_types.py
LaMemeBete/nodys-smart-contract
f67b88d98ebf7063b72f46cb2b014d5de96eb56d
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/python3 import time from brownie import ( DataTypes, TransparentUpgradeableProxy, ProxyAdmin, config, network, Contract, ) from scripts.helpful_scripts import get_account, encode_function_data def main(): account = get_account() print(config["networks"][network.show_active()...
35.255319
93
0.692818
192
1,657
5.776042
0.411458
0.064923
0.076646
0.090171
0.368801
0.309288
0.309288
0.309288
0.309288
0.309288
0
0.013595
0.200966
1,657
46
94
36.021739
0.824018
0.250453
0
0.176471
0
0
0.140308
0.018654
0
0
0
0
0
1
0.029412
false
0
0.088235
0
0.117647
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
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
0ef0869b952bf4b7857333b5caa682157e430b0a
659
py
Python
modules/BidirectionalLSTM.py
omni-us/pytorch-retinanet
8d3ee38d50df0afec2ab4dfa0eabb8219eb399f5
[ "Apache-2.0" ]
12
2019-08-14T13:32:30.000Z
2022-03-09T15:25:33.000Z
modules/BidirectionalLSTM.py
omni-us/pytorch-retinanet
8d3ee38d50df0afec2ab4dfa0eabb8219eb399f5
[ "Apache-2.0" ]
2
2019-12-29T21:15:00.000Z
2020-01-14T13:51:54.000Z
modules/BidirectionalLSTM.py
omni-us/pytorch-retinanet
8d3ee38d50df0afec2ab4dfa0eabb8219eb399f5
[ "Apache-2.0" ]
6
2019-08-03T16:22:41.000Z
2020-09-27T16:55:40.000Z
import torch.nn as nn class BidirectionalLSTM(nn.Module): # Module to extract BLSTM features from convolutional feature map def __init__(self, nIn, nHidden, nOut): super(BidirectionalLSTM, self).__init__() self.rnn = nn.LSTM(nIn, nHidden, bidirectional=True) self.embedding = nn.Linear...
28.652174
69
0.614568
85
659
4.635294
0.494118
0.020305
0.015228
0
0
0
0
0
0
0
0
0.004141
0.267071
659
22
70
29.954545
0.811594
0.116844
0
0
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.066667
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
0ef0b2cd3d796c7cb5a1c89e97057d03988cd5cd
1,436
py
Python
release/stubs.min/System/Windows/Forms/__init___parts/PaintEventArgs.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/PaintEventArgs.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/PaintEventArgs.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
class PaintEventArgs(EventArgs,IDisposable): """ Provides data for the System.Windows.Forms.Control.Paint event. PaintEventArgs(graphics: Graphics,clipRect: Rectangle) """ def Instance(self): """ This function has been arbitrarily put into the stubs""" return PaintEventArgs() def Dispose(self):...
31.911111
215
0.699164
170
1,436
5.511765
0.376471
0.064034
0.051227
0.060832
0.248666
0.248666
0.248666
0.248666
0.248666
0.248666
0
0
0.169916
1,436
44
216
32.636364
0.786074
0.462396
0
0.3125
0
0
0
0
0
0
0
0
0
1
0.375
false
0.3125
0
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
0ef1f7b69f59398c929a14885bdad0d62cb19dca
5,173
py
Python
main.py
JaekwangCha/my_pytorch_templet
7b6b67116e9d69abd64631d90b38fedc79be6c8c
[ "MIT" ]
null
null
null
main.py
JaekwangCha/my_pytorch_templet
7b6b67116e9d69abd64631d90b38fedc79be6c8c
[ "MIT" ]
null
null
null
main.py
JaekwangCha/my_pytorch_templet
7b6b67116e9d69abd64631d90b38fedc79be6c8c
[ "MIT" ]
null
null
null
# written by Jaekwang Cha # version 0.1 # ================== IMPORT CUSTOM LEARNING LIBRARIES ===================== # from customs.train import train, test from customs.dataset import load_dataset from customs.model import load_model # ================== TRAINING SETTINGS ================== # import argparse...
52.785714
159
0.605838
606
5,173
5.008251
0.237624
0.062273
0.117628
0.013839
0.233937
0.158155
0.123229
0.085008
0.059967
0.036903
0
0.005554
0.234293
5,173
97
160
53.329897
0.760667
0.081577
0
0.104478
0
0
0.236791
0.005176
0
0
0
0
0
1
0.029851
false
0
0.104478
0
0.149254
0.149254
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ef37debe8fbb6d99817c5ad659e3ff1f210c644
4,812
py
Python
test/core/024-sc4-gridftp-http/Rosetta.py
ahnitz/pegasus
e269b460f4d87eb3f3a7e91cd82e2c28fdb55573
[ "Apache-2.0" ]
127
2015-01-28T19:19:13.000Z
2022-03-31T05:57:40.000Z
test/core/024-sc4-gridftp-http/Rosetta.py
ahnitz/pegasus
e269b460f4d87eb3f3a7e91cd82e2c28fdb55573
[ "Apache-2.0" ]
14
2015-04-15T17:44:20.000Z
2022-02-22T22:48:49.000Z
test/core/024-sc4-gridftp-http/Rosetta.py
ahnitz/pegasus
e269b460f4d87eb3f3a7e91cd82e2c28fdb55573
[ "Apache-2.0" ]
70
2015-01-22T15:20:32.000Z
2022-02-21T22:50:23.000Z
#!/usr/bin/env python3 import logging import sys import subprocess from pathlib import Path from datetime import datetime from Pegasus.api import * logging.basicConfig(level=logging.DEBUG) # --- Work Dir Setup ----------------------------------------------------------- RUN_ID = "024-sc4-gridftp-http-" + datetime.no...
24.932642
86
0.588113
566
4,812
4.848057
0.333922
0.02551
0.032799
0.016035
0.109694
0.095481
0.054665
0
0
0
0
0.01207
0.208022
4,812
192
87
25.0625
0.707951
0.104323
0
0.133333
0
0.006667
0.374012
0.067411
0
0
0
0
0.006667
1
0.006667
false
0.006667
0.04
0
0.046667
0.026667
0
0
0
null
0
0
0
0
0
0
0
0
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
0ef391d627e7c29662611237b93dc0cbb0bb55b3
1,600
py
Python
tests/nls_smoother_test.py
sisl/CEEM
6154587fe3cdb92e8b7f70eedb1262caa1553cc8
[ "MIT" ]
5
2020-06-21T16:50:42.000Z
2021-03-14T04:02:01.000Z
tests/nls_smoother_test.py
sisl/CEEM
6154587fe3cdb92e8b7f70eedb1262caa1553cc8
[ "MIT" ]
1
2021-03-13T07:46:36.000Z
2021-03-16T05:14:47.000Z
tests/nls_smoother_test.py
sisl/CEEM
6154587fe3cdb92e8b7f70eedb1262caa1553cc8
[ "MIT" ]
1
2021-03-30T12:08:20.000Z
2021-03-30T12:08:20.000Z
import torch from ceem.opt_criteria import * from ceem.systems import LorenzAttractor from ceem.dynamics import * from ceem.smoother import * from ceem import utils def test_smoother(): utils.set_rng_seed(1) torch.set_default_dtype(torch.float64) sigma = torch.tensor([10.]) rho = torch.tensor([28....
23.880597
89
0.6325
219
1,600
4.515982
0.420091
0.040445
0.042467
0.030334
0.188069
0.11729
0.11729
0.11729
0.11729
0.11729
0
0.031721
0.211875
1,600
66
90
24.242424
0.752577
0.054375
0
0.153846
0
0
0.056329
0
0
0
0
0
0.051282
1
0.025641
false
0.051282
0.153846
0
0.179487
0.051282
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0ef3a6ff8273269894257cdbba761bebf9bbfde6
5,787
py
Python
qiskit/visualization/pulse_v2/device_info.py
godspeed5/qiskit-terra
a5d87c3e4a663ab962704585fba0caef15061246
[ "Apache-2.0" ]
15
2020-06-29T08:33:39.000Z
2022-02-12T00:28:51.000Z
qiskit/visualization/pulse_v2/device_info.py
godspeed5/qiskit-terra
a5d87c3e4a663ab962704585fba0caef15061246
[ "Apache-2.0" ]
4
2020-11-27T09:34:13.000Z
2021-04-30T21:13:41.000Z
qiskit/visualization/pulse_v2/device_info.py
godspeed5/qiskit-terra
a5d87c3e4a663ab962704585fba0caef15061246
[ "Apache-2.0" ]
11
2020-06-29T08:40:24.000Z
2022-02-24T17:39:16.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
39.910345
96
0.681355
708
5,787
5.451977
0.333333
0.037306
0.042746
0.014767
0.148705
0.134715
0.082383
0.082383
0.062694
0.062694
0
0.004832
0.249006
5,787
144
97
40.1875
0.883341
0.444272
0
0.067797
0
0
0.003291
0
0
0
0
0
0
1
0.101695
false
0.016949
0.084746
0
0.305085
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
0ef3c67e54e013586a797d3526f9d748c2da9ba4
8,401
py
Python
django_gotolong/mfund/views.py
ParikhKadam/gotolong
839beb8aa37055a2078eaa289b8ae05b62e8905e
[ "BSD-2-Clause", "BSD-3-Clause" ]
15
2019-12-06T16:19:45.000Z
2021-08-20T13:22:22.000Z
django_gotolong/mfund/views.py
ParikhKadam/gotolong
839beb8aa37055a2078eaa289b8ae05b62e8905e
[ "BSD-2-Clause", "BSD-3-Clause" ]
14
2020-12-08T10:45:05.000Z
2021-09-21T17:23:45.000Z
django_gotolong/mfund/views.py
ParikhKadam/gotolong
839beb8aa37055a2078eaa289b8ae05b62e8905e
[ "BSD-2-Clause", "BSD-3-Clause" ]
9
2020-01-01T03:04:29.000Z
2021-04-18T08:42:30.000Z
# Create your views here. from .models import Mfund import plotly.graph_objects as go from plotly.offline import plot from plotly.tools import make_subplots from django.db.models import Q from django.conf import settings from django.shortcuts import redirect from django.contrib.auth.decorators import login_require...
31.464419
104
0.644209
1,067
8,401
4.811621
0.170572
0.025711
0.043631
0.036813
0.625438
0.600701
0.588625
0.582976
0.580639
0.580639
0
0.003638
0.247352
8,401
266
105
31.582707
0.808319
0.037019
0
0.565217
0
0
0.06774
0.002972
0
0
0
0
0
1
0.11413
false
0
0.11413
0.01087
0.429348
0.065217
0
0
0
null
0
0
0
0
0
0
0
0
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
0ef63c39ffdfa491eb48d1233a4ab5b8fb12a49a
5,444
py
Python
m3u8.py
akria00/m3u8-Downloader-master
37bf4683b0390998a819d0bb5b8af18ffb2166f6
[ "Apache-2.0" ]
2
2020-01-10T20:31:12.000Z
2020-03-04T19:34:15.000Z
m3u8.py
akria00/m3u8-Downloader-master
37bf4683b0390998a819d0bb5b8af18ffb2166f6
[ "Apache-2.0" ]
null
null
null
m3u8.py
akria00/m3u8-Downloader-master
37bf4683b0390998a819d0bb5b8af18ffb2166f6
[ "Apache-2.0" ]
1
2019-04-19T08:04:05.000Z
2019-04-19T08:04:05.000Z
#coding: utf-8 from gevent import monkey monkey.patch_all() from gevent.pool import Pool import gevent import requests import urllib import os import time import re import ssl class Downloader: def __init__(self, pool_size, retry=3): self.pool = Pool(pool_size) self.session = self._get_http_sessio...
38.609929
171
0.517083
675
5,444
4.038519
0.275556
0.039618
0.016141
0.020543
0.145268
0.145268
0.132795
0.123624
0.091709
0.091709
0
0.026323
0.351029
5,444
140
172
38.885714
0.745259
0.002388
0
0.215385
0
0.015385
0.092081
0.020258
0
0
0
0
0
1
0.053846
false
0
0.069231
0
0.161538
0.030769
0
0
0
null
0
0
0
0
0
0
0
0
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
0ef760e6a3a5620b5876eba10c68bc7b0bb1b6c8
474
py
Python
buzzbox/restaurants/migrations/0002_restaurant_description.py
Danielvalev/kutiika
661b850163de942a137157a97d98d90553861044
[ "MIT" ]
null
null
null
buzzbox/restaurants/migrations/0002_restaurant_description.py
Danielvalev/kutiika
661b850163de942a137157a97d98d90553861044
[ "MIT" ]
null
null
null
buzzbox/restaurants/migrations/0002_restaurant_description.py
Danielvalev/kutiika
661b850163de942a137157a97d98d90553861044
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-12-06 10:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('restaurants', '0001_initial'), ] operations = [ migrations.AddField( model_name='restaurant', name='description', ...
23.7
102
0.620253
48
474
6.020833
0.791667
0.103806
0
0
0
0
0
0
0
0
0
0.063218
0.265823
474
19
103
24.947368
0.767241
0.094937
0
0
1
0
0.154567
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0ef7742a3f6f5d085c7065159824fcf2edcb86c7
5,910
py
Python
src/dsrlib/ui/utils.py
fraca7/dsremap
fb8f4fb13e74b512ed0cac05387fbe9694faebcf
[ "MIT" ]
8
2020-09-06T02:15:10.000Z
2022-01-12T22:49:20.000Z
src/dsrlib/ui/utils.py
fraca7/dsremap
fb8f4fb13e74b512ed0cac05387fbe9694faebcf
[ "MIT" ]
5
2021-03-29T20:37:46.000Z
2021-09-19T13:20:24.000Z
src/dsrlib/ui/utils.py
fraca7/dsremap
fb8f4fb13e74b512ed0cac05387fbe9694faebcf
[ "MIT" ]
2
2020-09-16T01:45:49.000Z
2021-06-12T12:38:15.000Z
#!/usr/bin/env python3 import os import contextlib from PyQt5 import QtCore, QtWidgets from dsrlib.settings import Settings class LayoutBuilder: def __init__(self, target): self.target = target self._stack = [] @contextlib.contextmanager def _layout(self, cls, *args, **kwargs): ...
37.884615
160
0.57445
565
5,910
5.941593
0.247788
0.044683
0.025022
0.023831
0.292523
0.260352
0.260352
0.260352
0.260352
0.217456
0
0.006248
0.323012
5,910
155
161
38.129032
0.832792
0.018782
0
0.302326
0
0
0.022786
0
0
0
0
0
0
1
0.116279
false
0
0.031008
0.015504
0.248062
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
0ef7cab0d5cd63afd5bc70bd0539a8ffbacf39c0
37,201
py
Python
src/tiden/tidenrunner.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
null
null
null
src/tiden/tidenrunner.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
null
null
null
src/tiden/tidenrunner.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2017-2020 GridGain Systems. # # 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...
42.858295
121
0.597403
4,315
37,201
4.774508
0.099421
0.038831
0.037229
0.024464
0.414135
0.308951
0.230172
0.186875
0.125133
0.107077
0
0.001962
0.314938
37,201
867
122
42.907728
0.806435
0.110938
0
0.234401
0
0.001686
0.098218
0.019257
0
0
0
0
0.001686
1
0.053963
false
0.01855
0.040472
0.003373
0.139966
0.05059
0
0
0
null
0
0
0
0
0
0
0
0
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
0ef87bb853368bafa20ca953ac321175f6e8c5af
5,425
py
Python
ludwig/data/cache/manager.py
ludwig-ai/ludw
b9d95bbdb474bc22260269de1bc094bc5455f37c
[ "Apache-2.0" ]
970
2020-12-17T15:09:20.000Z
2022-03-31T22:58:03.000Z
ludwig/data/cache/manager.py
ludwig-ai/ludw
b9d95bbdb474bc22260269de1bc094bc5455f37c
[ "Apache-2.0" ]
503
2020-12-16T21:44:40.000Z
2022-03-31T18:21:52.000Z
ludwig/data/cache/manager.py
ludwig-ai/ludw
b9d95bbdb474bc22260269de1bc094bc5455f37c
[ "Apache-2.0" ]
145
2020-12-18T07:38:30.000Z
2022-03-29T19:05:08.000Z
import logging import os import re import uuid from pathlib import Path from ludwig.constants import CHECKSUM, META, TEST, TRAINING, VALIDATION from ludwig.data.cache.util import calculate_checksum from ludwig.utils import data_utils from ludwig.utils.fs_utils import delete, path_exists logger = logging.getLogger(__n...
37.413793
111
0.650323
677
5,425
4.937962
0.171344
0.078971
0.046665
0.038289
0.341908
0.283877
0.213281
0.168412
0.069399
0.039485
0
0.000254
0.272995
5,425
144
112
37.673611
0.847363
0.055853
0
0.127273
0
0
0.033444
0
0
0
0
0.006944
0
1
0.109091
false
0
0.081818
0.018182
0.336364
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
0ef896d76fe90ca7521ad1e92767789c5b227b40
2,629
py
Python
test_calc_base.py
kshshkim/factorioCalcPy
2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205
[ "MIT" ]
1
2021-09-21T01:42:05.000Z
2021-09-21T01:42:05.000Z
test_calc_base.py
kshshkim/factorioCalcPy
2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205
[ "MIT" ]
null
null
null
test_calc_base.py
kshshkim/factorioCalcPy
2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205
[ "MIT" ]
null
null
null
import pprint from FactorioCalcBase.data.binary import sorted_recipe_list, production_machine_category_list_dict from FactorioCalcBase.recipe import Recipe from FactorioCalcBase.calculator_base import CalculatorBase from FactorioCalcBase.dependency_dict_common_function import dict_add_number import time def test_chan...
40.446154
104
0.637885
297
2,629
5.276094
0.276094
0.076579
0.045948
0.042119
0.259732
0.2291
0.078494
0
0
0
0
0.006369
0.283378
2,629
64
105
41.078125
0.825372
0
0
0.075472
0
0
0.096234
0.033092
0
0
0
0
0
1
0.075472
false
0
0.113208
0
0.207547
0.056604
0
0
0
null
0
0
0
0
0
0
0
0
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
0ef9b198b443266a7fb573c35726d29675e45f68
2,561
py
Python
lib/py/src/Thrift.py
ahfeel/thrift
3ac3fa6fede4b2446209cfeb6fcae5900da543cc
[ "BSL-1.0" ]
3
2016-02-03T07:28:51.000Z
2017-02-28T06:20:21.000Z
lib/py/src/Thrift.py
shigin/thrift
4ca9547ffa73082fc4c3ff349dc23a1fda8dcc48
[ "BSL-1.0" ]
null
null
null
lib/py/src/Thrift.py
shigin/thrift
4ca9547ffa73082fc4c3ff349dc23a1fda8dcc48
[ "BSL-1.0" ]
8
2020-03-12T13:42:59.000Z
2021-05-27T06:34:33.000Z
# Copyright (c) 2006- Facebook # Distributed under the Thrift Software License # # See accompanying file LICENSE or visit the Thrift site at: # http://developers.facebook.com/thrift/ class TType: STOP = 0 VOID = 1 BOOL = 2 BYTE = 3 I08 = 3 DOUBLE = 4 I16 = 6 I32 = 8 I64 = 10 STR...
23.281818
62
0.635689
306
2,561
5.202614
0.398693
0.050251
0.037688
0.03392
0
0
0
0
0
0
0
0.033386
0.263178
2,561
109
63
23.495413
0.810281
0.118313
0
0.104651
0
0
0.067471
0.018767
0
0
0
0
0
1
0.069767
false
0.011628
0
0
0.511628
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
0ef9be0b4faecf741290076154fb3c5bae164853
6,546
py
Python
engine.py
nyumaya/wake-word-benchmark
d2f7ac091d31403f3398bc3ef2e2de4876a4629e
[ "Apache-2.0" ]
null
null
null
engine.py
nyumaya/wake-word-benchmark
d2f7ac091d31403f3398bc3ef2e2de4876a4629e
[ "Apache-2.0" ]
null
null
null
engine.py
nyumaya/wake-word-benchmark
d2f7ac091d31403f3398bc3ef2e2de4876a4629e
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018 Picovoice Inc. # # 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 writ...
33.397959
122
0.669111
770
6,546
5.497403
0.292208
0.018427
0.021262
0.02008
0.274274
0.246161
0.131349
0.116702
0.086936
0.061422
0
0.012224
0.225176
6,546
195
123
33.569231
0.822358
0.101283
0
0.338346
0
0
0.119563
0.066519
0
0
0
0
0.030075
1
0.172932
false
0.015038
0.067669
0.037594
0.458647
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
0efb8a4758e96798acb51aad7950963bd5e398c7
1,549
py
Python
objO_and_ctxMgr/harakiri.py
thirschbuechler/didactic-barnacles
88d0a2b572aacb2cb45e68bb4f05fa5273224439
[ "MIT" ]
null
null
null
objO_and_ctxMgr/harakiri.py
thirschbuechler/didactic-barnacles
88d0a2b572aacb2cb45e68bb4f05fa5273224439
[ "MIT" ]
null
null
null
objO_and_ctxMgr/harakiri.py
thirschbuechler/didactic-barnacles
88d0a2b572aacb2cb45e68bb4f05fa5273224439
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jan 20 22:18:58 2020 @author: https://stackoverflow.com/questions/293431/python-object-deleting-itself @editor: thirschbuechler this is probably overkill to alternatively exit a with-context, rather than by exception, but hey, maybe it will be needed, ...
29.226415
92
0.666882
209
1,549
4.712919
0.61244
0.033503
0.036548
0
0
0
0
0
0
0
0
0.019247
0.228535
1,549
53
93
29.226415
0.805021
0.475791
0
0
0
0
0.079146
0
0
0
0
0
0
1
0.192308
false
0.038462
0.038462
0
0.384615
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
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
0efbf67a5c5c854b7696ec4d515b55094ea51fb7
6,593
py
Python
chapter2/gestures.py
srimani-programmer/Opencv-with-Python-Blueprints-second-Edition
8762022a58a379229f02d7250d8344087d98516d
[ "MIT" ]
39
2019-11-25T21:30:14.000Z
2022-03-29T05:12:43.000Z
chapter2/gestures.py
srimani-programmer/Opencv-with-Python-Blueprints-second-Edition
8762022a58a379229f02d7250d8344087d98516d
[ "MIT" ]
2
2020-04-19T20:38:15.000Z
2021-09-29T05:02:48.000Z
chapter2/gestures.py
srimani-programmer/Opencv-with-Python-Blueprints-second-Edition
8762022a58a379229f02d7250d8344087d98516d
[ "MIT" ]
29
2019-12-22T15:18:18.000Z
2021-12-25T13:52:44.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """A module containing an algorithm for hand gesture recognition""" import numpy as np import cv2 from typing import Tuple __author__ = "Michael Beyeler" __license__ = "GNU GPL 3.0 or later" def recognize(img_gray): """Recognizes hand gesture in a single-channel dep...
36.425414
97
0.64341
928
6,593
4.484914
0.279095
0.023546
0.015858
0.027631
0.166026
0.103075
0.103075
0.081691
0.036521
0.036521
0
0.030094
0.27423
6,593
180
98
36.627778
0.839707
0.477931
0
0.033333
0
0
0.011312
0
0
0
0
0
0
1
0.1
false
0
0.05
0
0.283333
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
0efc0f40ba7d7a4e242df39e71061af9c4be7d55
4,224
py
Python
satt/trace/logger/panic.py
jnippula/satt
aff4562b7e94f095d2e13eb10b9ac872484bb5cd
[ "Apache-2.0" ]
54
2016-11-09T13:26:40.000Z
2019-04-30T16:29:45.000Z
satt/trace/logger/panic.py
jnippula/satt
aff4562b7e94f095d2e13eb10b9ac872484bb5cd
[ "Apache-2.0" ]
2
2016-11-09T13:25:19.000Z
2017-03-27T04:09:35.000Z
satt/trace/logger/panic.py
jnippula/satt
aff4562b7e94f095d2e13eb10b9ac872484bb5cd
[ "Apache-2.0" ]
10
2016-11-28T07:55:40.000Z
2019-03-23T12:40:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' // Copyright (c) 2015 Intel Corporation // // 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...
38.054054
125
0.615057
517
4,224
4.866538
0.340426
0.033386
0.038156
0.062003
0.202305
0.127186
0.102544
0.080286
0.066773
0.066773
0
0.012728
0.274621
4,224
110
126
38.4
0.80842
0.083807
0
0.233333
0
0
0.227642
0.013759
0
0
0
0.009091
0
0
null
null
0
0.05
null
null
0.15
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0efc1162d67d89e44bbe7d9f3dc36378c583e84a
688
py
Python
xlab/cli.py
csalcedo001/xlab
8c51f035a870dd57339ff0208a3ab27ef6b8b41f
[ "Apache-2.0" ]
1
2022-03-23T23:44:14.000Z
2022-03-23T23:44:14.000Z
xlab/cli.py
csalcedo001/xlab
8c51f035a870dd57339ff0208a3ab27ef6b8b41f
[ "Apache-2.0" ]
null
null
null
xlab/cli.py
csalcedo001/xlab
8c51f035a870dd57339ff0208a3ab27ef6b8b41f
[ "Apache-2.0" ]
null
null
null
import sys import os from . import filesys MAIN_USAGE_MESSAGE = """ usage: xlab command ... Options: positional arguments: command project """ def project(args): if len(args) != 1: print("error: Invalid arguments.") exit() if args[0] == 'init': root = os.getcwd() ...
16.380952
61
0.543605
80
688
4.6125
0.45
0.056911
0.086721
0
0
0
0
0
0
0
0
0.010684
0.319767
688
42
62
16.380952
0.777778
0
0
0.1
0
0
0.208999
0
0
0
0
0
0
1
0.066667
false
0
0.1
0
0.166667
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0efc40d3300b3d6d0a1fa06e980fe71072140597
16,294
py
Python
python/paddle/optimizer/adamw.py
jzhang533/Paddle
3227b2c401a80104e0c01dedcef2061ffa1ebbed
[ "Apache-2.0" ]
null
null
null
python/paddle/optimizer/adamw.py
jzhang533/Paddle
3227b2c401a80104e0c01dedcef2061ffa1ebbed
[ "Apache-2.0" ]
1
2021-09-07T10:31:38.000Z
2021-09-08T09:18:20.000Z
python/paddle/optimizer/adamw.py
jzhang533/Paddle
3227b2c401a80104e0c01dedcef2061ffa1ebbed
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. 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 appli...
42.543081
130
0.603044
2,004
16,294
4.668164
0.19511
0.0248
0.037199
0.016676
0.243934
0.186424
0.155639
0.124425
0.109674
0.08915
0
0.023185
0.31441
16,294
382
131
42.65445
0.814251
0.419541
0
0.134328
0
0
0.069296
0.006907
0
0
0
0
0.029851
1
0.039801
false
0.00995
0.039801
0.004975
0.129353
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
0efde6b5a9c1239ffa852e70caccc25e5c41c1dd
1,880
py
Python
tests/resources/test_interactions.py
VinLau/BAR_API
0719a5fbc08872f667590b27347af9bfed669bca
[ "MIT" ]
1
2020-07-06T20:12:25.000Z
2020-07-06T20:12:25.000Z
tests/resources/test_interactions.py
VinLau/BAR_API
0719a5fbc08872f667590b27347af9bfed669bca
[ "MIT" ]
37
2020-06-27T02:58:23.000Z
2022-03-29T00:35:28.000Z
tests/resources/test_interactions.py
VinLau/BAR_API
0719a5fbc08872f667590b27347af9bfed669bca
[ "MIT" ]
9
2020-06-26T23:09:16.000Z
2022-01-26T21:20:46.000Z
from api import app from unittest import TestCase class TestIntegrations(TestCase): maxDiff = None def setUp(self): self.app_client = app.test_client() def test_get_itrns(self): """ This function test retrieving protein interactions for various species' genes. """ ...
31.864407
86
0.519149
176
1,880
5.420455
0.386364
0.036688
0.068134
0.08805
0.51782
0.481132
0.392034
0.350105
0.259958
0.259958
0
0.050085
0.373404
1,880
58
87
32.413793
0.759762
0.079787
0
0.333333
0
0
0.253083
0.065766
0
0
0
0
0.095238
1
0.047619
false
0
0.047619
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
0efdfc79a9eea6c3e7cf614d63469062b5917d5a
2,261
py
Python
src/dialogflow-java-client-master/samples/clients/VirtualTradingAssistant/src/main/java/ai/examples/scraper/historicalScrape.py
16kozlowskim/Group-20-SE
ceb8c319643964a3f478772d8f10090962df567c
[ "MIT" ]
null
null
null
src/dialogflow-java-client-master/samples/clients/VirtualTradingAssistant/src/main/java/ai/examples/scraper/historicalScrape.py
16kozlowskim/Group-20-SE
ceb8c319643964a3f478772d8f10090962df567c
[ "MIT" ]
null
null
null
src/dialogflow-java-client-master/samples/clients/VirtualTradingAssistant/src/main/java/ai/examples/scraper/historicalScrape.py
16kozlowskim/Group-20-SE
ceb8c319643964a3f478772d8f10090962df567c
[ "MIT" ]
null
null
null
# install BeautifulSoup4 before running # # prints out historical data in csv format: # # [date, open, high, low, close, volume] # import re, csv, sys, urllib2 from bs4 import BeautifulSoup # If start date and end date is the same only one value will be returned and # if not the multiple values which can be used to ma...
29.75
205
0.658116
302
2,261
4.834437
0.486755
0.068493
0.087671
0.054795
0.247945
0.247945
0.247945
0.247945
0.247945
0.206849
0
0.013441
0.177355
2,261
75
206
30.146667
0.771505
0.361345
0
0.1
0
0
0.102313
0.031535
0
0
0
0
0
1
0.05
false
0
0.05
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0eff08358676f71813cab0fd67b31eed87ddaad4
5,460
py
Python
client/client.py
odontomachus/hotbox
d42c48d7f056f2b1f7bd707ad674e737a3c2fe08
[ "MIT" ]
null
null
null
client/client.py
odontomachus/hotbox
d42c48d7f056f2b1f7bd707ad674e737a3c2fe08
[ "MIT" ]
null
null
null
client/client.py
odontomachus/hotbox
d42c48d7f056f2b1f7bd707ad674e737a3c2fe08
[ "MIT" ]
null
null
null
import sys import io from collections import defaultdict import struct from time import sleep import queue import threading import serial from serial import SerialException RUN_LABELS = ('Time left', 'Temp 1', 'Temp 2', 'Off Goal', 'Temp Change', 'Duty cycle (/30)', 'Heating', 'Cycle', 'Total time', 'Goal temp') MSG...
26.25
140
0.512637
590
5,460
4.581356
0.262712
0.044395
0.033296
0.040696
0.254532
0.18276
0.18276
0.18276
0.130226
0.130226
0
0.020659
0.388278
5,460
207
141
26.376812
0.788623
0.08956
0
0.373418
0
0
0.045051
0
0
0
0
0
0
1
0.094937
false
0.006329
0.056962
0.006329
0.21519
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
0eff0ae716a4c5a7fc1773362d577d2a440094dc
2,549
py
Python
test/functional/abc-sync-chain.py
ComputerCraftr/devault
546b54df85e3392f85e7ea5fcd4ea9b395ba8f4c
[ "MIT" ]
35
2019-02-23T06:21:13.000Z
2021-11-15T11:35:13.000Z
test/functional/abc-sync-chain.py
ComputerCraftr/devault
546b54df85e3392f85e7ea5fcd4ea9b395ba8f4c
[ "MIT" ]
60
2019-02-25T18:17:03.000Z
2021-07-13T00:14:00.000Z
test/functional/abc-sync-chain.py
ComputerCraftr/devault
546b54df85e3392f85e7ea5fcd4ea9b395ba8f4c
[ "MIT" ]
24
2019-02-20T05:37:02.000Z
2021-10-29T18:42:10.000Z
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Test that a node receiving many (potentially out of order) blocks exits initial block download (IBD; this occur...
31.085366
77
0.629266
301
2,549
5.159468
0.478405
0.041854
0.043786
0.025757
0.02962
0
0
0
0
0
0
0.025192
0.283641
2,549
81
78
31.469136
0.825301
0.229502
0
0
0
0
0.022576
0.011801
0
0
0
0
0
1
0.104167
false
0
0.104167
0.020833
0.270833
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
16004b3ebbf7944e6af5eebfe55aa2baa0c582bb
1,325
py
Python
djangostagram/posts/models.py
hongsemy/InstagramWithDjango
18cb273668809fb48d829e1ac11438c51505623a
[ "MIT" ]
null
null
null
djangostagram/posts/models.py
hongsemy/InstagramWithDjango
18cb273668809fb48d829e1ac11438c51505623a
[ "MIT" ]
null
null
null
djangostagram/posts/models.py
hongsemy/InstagramWithDjango
18cb273668809fb48d829e1ac11438c51505623a
[ "MIT" ]
null
null
null
from django.db import models from djangostagram.users import models as user_model # Create your models here. # This class is used in other models as an inheritance. # An often-used pattern class TimeStamedModel(models.Model): created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeFi...
30.813953
90
0.627925
148
1,325
5.466216
0.432432
0.044499
0.048208
0.059333
0.375773
0.375773
0.375773
0.289246
0.289246
0.222497
0
0
0.299623
1,325
42
91
31.547619
0.871767
0.130566
0
0.322581
0
0
0.046208
0
0
0
0
0
0
1
0
false
0
0.064516
0
0.483871
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
160140a1d069dde69b115daae82f3d8b2a6cf9c6
497
py
Python
guillotina/contrib/workflows/events.py
rboixaderg/guillotina
fcae65c2185222272f3b8fee4bc2754e81e0e983
[ "BSD-2-Clause" ]
173
2017-03-10T18:26:12.000Z
2022-03-03T06:48:56.000Z
guillotina/contrib/workflows/events.py
rboixaderg/guillotina
fcae65c2185222272f3b8fee4bc2754e81e0e983
[ "BSD-2-Clause" ]
921
2017-03-08T14:04:43.000Z
2022-03-30T10:28:56.000Z
guillotina/contrib/workflows/events.py
rboixaderg/guillotina
fcae65c2185222272f3b8fee4bc2754e81e0e983
[ "BSD-2-Clause" ]
60
2017-03-16T19:59:44.000Z
2022-03-03T06:48:59.000Z
from guillotina.contrib.workflows.interfaces import IWorkflowChangedEvent from guillotina.events import ObjectEvent from zope.interface import implementer @implementer(IWorkflowChangedEvent) class WorkflowChangedEvent(ObjectEvent): """An object has been moved""" def __init__(self, object, workflow, action, c...
31.0625
73
0.744467
50
497
7.24
0.5
0.082873
0.077348
0
0
0
0
0
0
0
0
0
0.183099
497
15
74
33.133333
0.891626
0.04829
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1601ac11a20c04fcd9a8cadea05debe08ac71228
6,340
py
Python
data_steward/cdr_cleaner/cleaning_rules/covid_ehr_vaccine_concept_suppression.py
lrwb-aou/curation
e80447e56d269dc2c9c8bc79e78218d4b0dc504c
[ "MIT" ]
16
2017-06-30T20:05:05.000Z
2022-03-08T21:03:19.000Z
data_steward/cdr_cleaner/cleaning_rules/covid_ehr_vaccine_concept_suppression.py
lrwb-aou/curation
e80447e56d269dc2c9c8bc79e78218d4b0dc504c
[ "MIT" ]
342
2017-06-23T21:37:40.000Z
2022-03-30T16:44:16.000Z
data_steward/cdr_cleaner/cleaning_rules/covid_ehr_vaccine_concept_suppression.py
lrwb-aou/curation
e80447e56d269dc2c9c8bc79e78218d4b0dc504c
[ "MIT" ]
33
2017-07-01T00:12:20.000Z
2022-01-26T18:06:53.000Z
""" Suppress COVID EHR vaccine concepts. Original Issues: DC-1692 """ # Python imports import logging # Project imports from cdr_cleaner.cleaning_rules.deid.concept_suppression import AbstractBqLookupTableConceptSuppression from constants.cdr_cleaner import clean_cdr as cdr_consts from common import JINJA_ENV, CDM_T...
37.964072
108
0.681388
805
6,340
5.126708
0.284472
0.039254
0.023988
0.034892
0.408045
0.332929
0.312818
0.239884
0.203053
0.177853
0
0.010829
0.242587
6,340
166
109
38.192771
0.848605
0.226025
0
0.133333
0
0.009524
0.398463
0.123425
0
0
0
0
0
1
0.038095
false
0
0.07619
0
0.12381
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
160368ea260cbc50567d2f17656bb9f30dc2af47
3,494
py
Python
pydbhub/httphub.py
sum3105/pydbhub
501ea2c0ec7785bc06a38961a1366c3c04d7fabd
[ "MIT" ]
18
2021-06-03T14:27:55.000Z
2022-02-25T17:55:33.000Z
pydbhub/httphub.py
sum3105/pydbhub
501ea2c0ec7785bc06a38961a1366c3c04d7fabd
[ "MIT" ]
3
2021-06-20T07:17:51.000Z
2021-12-10T15:24:19.000Z
pydbhub/httphub.py
sum3105/pydbhub
501ea2c0ec7785bc06a38961a1366c3c04d7fabd
[ "MIT" ]
5
2021-06-29T09:50:40.000Z
2021-12-31T12:10:57.000Z
import pydbhub from typing import Any, Dict, List, Tuple from json.decoder import JSONDecodeError import requests import io def send_request_json(query_url: str, data: Dict[str, Any]) -> Tuple[List[Any], str]: """ send_request_json sends a request to DBHub.io, formatting the returned result as JSON Param...
30.649123
108
0.61763
450
3,494
4.704444
0.188889
0.030704
0.028342
0.039679
0.720359
0.691545
0.675012
0.643836
0.632026
0.576287
0
0.006339
0.277619
3,494
113
109
30.920354
0.832409
0.296508
0
0.703704
0
0
0.054577
0.029049
0
0
0
0
0
1
0.055556
false
0
0.092593
0
0.425926
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1603becbcb60a137e24357b35d07d2dd6b8de743
809
py
Python
test_calcscore.py
BrandonLeiran/bracket-scoring
a099e9a56ee3083c3a9db7d085b11b1dc7fe77f8
[ "MIT" ]
null
null
null
test_calcscore.py
BrandonLeiran/bracket-scoring
a099e9a56ee3083c3a9db7d085b11b1dc7fe77f8
[ "MIT" ]
null
null
null
test_calcscore.py
BrandonLeiran/bracket-scoring
a099e9a56ee3083c3a9db7d085b11b1dc7fe77f8
[ "MIT" ]
null
null
null
import pytest from calcscore import round_score # you'll be picking what teams make it to the next round # - so picking 32, then 16, then 8, 4, 2, 1...i.e. round 1-6 winners # teams will have a name & a seed # seed doesn't change, so maybe make that not passed around w/ results def test_round_score_invalid_round():...
31.115385
74
0.68974
123
809
4.365854
0.495935
0.130354
0.089385
0.145251
0.446927
0.357542
0.175047
0.175047
0.175047
0
0
0.023256
0.202719
809
25
75
32.36
0.809302
0.327565
0
0.142857
0
0
0.080074
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.285714
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
16045e96f3ff12b08a6e4885879fa2b0a083c578
4,803
py
Python
tests/test_get.py
bgyori/pyobo
f199f62f65fc7faff307b56f979a369202c8ad33
[ "MIT" ]
null
null
null
tests/test_get.py
bgyori/pyobo
f199f62f65fc7faff307b56f979a369202c8ad33
[ "MIT" ]
null
null
null
tests/test_get.py
bgyori/pyobo
f199f62f65fc7faff307b56f979a369202c8ad33
[ "MIT" ]
null
null
null
import unittest from operator import attrgetter import obonet from pyobo import SynonymTypeDef, get from pyobo.struct import Reference from pyobo.struct.struct import ( iterate_graph_synonym_typedefs, iterate_graph_typedefs, iterate_node_parents, iterate_node_properties, iterate_node_relationships, iterate_no...
39.694215
111
0.636269
557
4,803
5.348294
0.238779
0.09567
0.026855
0.023498
0.17959
0.171534
0.152736
0.103726
0.103726
0.103726
0
0.030411
0.240058
4,803
120
112
40.025
0.785753
0.130543
0
0.122222
0
0
0.108685
0.007035
0
0
0
0.008333
0.266667
1
0.1
false
0
0.077778
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16054aa866f43fe130ae74a4adb86263728710d3
2,676
py
Python
src/commons.py
ymontilla/WebScrapingCatastro
a184b5c92199305e28ca7346c01d1e78e0a92c13
[ "MIT" ]
null
null
null
src/commons.py
ymontilla/WebScrapingCatastro
a184b5c92199305e28ca7346c01d1e78e0a92c13
[ "MIT" ]
null
null
null
src/commons.py
ymontilla/WebScrapingCatastro
a184b5c92199305e28ca7346c01d1e78e0a92c13
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # + ## Utilidades comunes entre places y OSM. # + import csv import ast import codecs from math import cos, asin, sqrt # + def read_csv_with_encoding(filename, delimiter="|", encoding="iso-8859-1"): with codecs.open(filename, encoding=encoding) as fp: reader = csv.reader(fp, deli...
36.162162
114
0.612855
354
2,676
4.477401
0.367232
0.069401
0.080757
0.071924
0.251104
0.211987
0.147634
0.147634
0.147634
0.147634
0
0.032918
0.250747
2,676
73
115
36.657534
0.757606
0.050822
0
0.043478
0
0
0.077326
0
0
0
0
0
0
1
0.108696
false
0
0.108696
0
0.326087
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
160586a7f083f1efa16456b4bf747dcafc4be695
7,851
py
Python
GamesGetter.py
JamescMcE/BasketBet
f87719ac793ea50822e8c52fc23191dba9ad6418
[ "CC0-1.0" ]
null
null
null
GamesGetter.py
JamescMcE/BasketBet
f87719ac793ea50822e8c52fc23191dba9ad6418
[ "CC0-1.0" ]
null
null
null
GamesGetter.py
JamescMcE/BasketBet
f87719ac793ea50822e8c52fc23191dba9ad6418
[ "CC0-1.0" ]
null
null
null
#This script Imports Game Data from ESPN, and Odds from the ODDS-API, and then imports them into a MySQL table, example in workbench here https://puu.sh/HOKCj/ce199eec8e.png import mysql.connector import requests import json import datetime import time #Connection to the MYSQL Server. mydb = mysql.connector....
42.668478
257
0.584639
944
7,851
4.76589
0.233051
0.02934
0.032007
0.032007
0.304512
0.234497
0.234497
0.206713
0.206713
0.16048
0
0.019993
0.248249
7,851
184
258
42.668478
0.742291
0.135015
0
0.175182
0
0.036496
0.267567
0.042495
0
0
0
0
0
1
0.014599
false
0.007299
0.036496
0
0.051095
0.087591
0
0
0
null
0
0
0
0
0
0
0
0
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
16071d9e180a990b1f3b40b4034a6c704c0e2258
4,302
py
Python
neurodocker/tests/test_neurodocker.py
effigies/neurodocker
4b0f32d2915b8b0308e3e391d534e05eb29b8d09
[ "Apache-2.0" ]
1
2021-01-27T06:00:35.000Z
2021-01-27T06:00:35.000Z
neurodocker/tests/test_neurodocker.py
giovtorres/neurodocker
65575f5e44f2c5ef96a5da51d0df54b1af80bb79
[ "Apache-2.0" ]
null
null
null
neurodocker/tests/test_neurodocker.py
giovtorres/neurodocker
65575f5e44f2c5ef96a5da51d0df54b1af80bb79
[ "Apache-2.0" ]
null
null
null
"""Tests for neurodocker.main""" # Author: Jakub Kaczmarzyk <jakubk@mit.edu> from __future__ import absolute_import, unicode_literals import sys import pytest from neurodocker.neurodocker import create_parser, parse_args, main def test_generate(): args = ("generate -b ubuntu:17.04 -p apt" " --arg ...
31.173913
79
0.58066
547
4,302
4.484461
0.330896
0.052181
0.077456
0.101916
0.360375
0.229923
0.198532
0.182634
0.119853
0.119853
0
0.032548
0.250116
4,302
137
80
31.40146
0.727836
0.039749
0
0.213592
0
0
0.352413
0.016735
0
0
0
0
0.135922
1
0.048544
false
0
0.048544
0
0.097087
0.029126
0
0
0
null
0
0
0
0
0
0
0
0
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
1607f8c0c3d6768327bf886d9e6092523f205171
2,778
py
Python
fuzzers/011-cle-ffconfig/generate.py
tmichalak/prjuray
53f3c94b58ffc6d405ac20a3b340ae726717ed47
[ "0BSD" ]
39
2020-07-17T19:43:40.000Z
2022-01-07T02:05:48.000Z
fuzzers/011-cle-ffconfig/generate.py
tmichalak/prjuray
53f3c94b58ffc6d405ac20a3b340ae726717ed47
[ "0BSD" ]
24
2020-07-17T20:15:54.000Z
2022-01-21T08:29:51.000Z
fuzzers/011-cle-ffconfig/generate.py
tmichalak/prjuray
53f3c94b58ffc6d405ac20a3b340ae726717ed47
[ "0BSD" ]
11
2020-07-17T19:43:45.000Z
2022-02-09T08:43:23.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2020 The Project U-Ray Authors. # # Use of this source code is governed by a ISC-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC ''' FDCE Primitive: D Flip-Flop with Clock...
28.060606
101
0.596472
418
2,778
3.866029
0.435407
0.02599
0.034653
0.044554
0.246287
0.227723
0.117574
0.117574
0.117574
0
0
0.051151
0.296256
2,778
98
102
28.346939
0.775448
0.319654
0
0.046512
0
0
0.069904
0
0
0
0
0
0
1
0.046512
false
0
0.046512
0.023256
0.139535
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
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
1608246c353096fff06ae6f3c3c9e80955bceb92
2,697
py
Python
hmc/integrators/states/riemannian_leapfrog_state.py
JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo
7ee1b530db0eb536666dbc872fbf8200e53dd49b
[ "MIT" ]
1
2021-11-23T15:40:07.000Z
2021-11-23T15:40:07.000Z
hmc/integrators/states/riemannian_leapfrog_state.py
JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo
7ee1b530db0eb536666dbc872fbf8200e53dd49b
[ "MIT" ]
null
null
null
hmc/integrators/states/riemannian_leapfrog_state.py
JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo
7ee1b530db0eb536666dbc872fbf8200e53dd49b
[ "MIT" ]
null
null
null
from typing import Callable import numpy as np from hmc.integrators.states.leapfrog_state import LeapfrogState from hmc.integrators.fields import riemannian from hmc.linalg import solve_psd class RiemannianLeapfrogState(LeapfrogState): """The Riemannian leapfrog state uses the Fisher information matrix to provi...
32.890244
104
0.68743
347
2,697
5.060519
0.233429
0.092255
0.136674
0.079727
0.226082
0.068337
0.041002
0
0
0
0
0.000985
0.247312
2,697
81
105
33.296296
0.864039
0.091212
0
0.112903
0
0
0
0
0
0
0
0
0
1
0.16129
false
0
0.080645
0.032258
0.306452
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
1608a15c941a14be0a253388b661310efd0d4787
2,834
py
Python
MultirangerTest.py
StuartLiam/DroneNavigationOnboard
11ac6a301dfc72b15e337ddf09f5ddc79265a03f
[ "MIT" ]
null
null
null
MultirangerTest.py
StuartLiam/DroneNavigationOnboard
11ac6a301dfc72b15e337ddf09f5ddc79265a03f
[ "MIT" ]
null
null
null
MultirangerTest.py
StuartLiam/DroneNavigationOnboard
11ac6a301dfc72b15e337ddf09f5ddc79265a03f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # || ____ _ __ # +------+ / __ )(_) /_______________ _____ ___ # | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \ # +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ # || || /_____/_/\__/\___/_/ \__,_/ /___/\___/ # # Copyright (C) 2...
31.488889
77
0.693013
380
2,834
4.915789
0.542105
0.019272
0.020878
0.030514
0.043897
0.029979
0
0
0
0
0
0.017156
0.218419
2,834
90
78
31.488889
0.826185
0.590332
0
0
0
0
0.026643
0
0
0
0
0
0
1
0.03125
false
0
0.34375
0
0.4375
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