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
6a7ef877f9a75af565239a4f498da3558863fc35
7,766
py
Python
tensorflow/contrib/data/python/kernel_tests/optimization/map_and_filter_fusion_test.py
Smokrow/tensorflow
debd66dae1c9a49d36ea006c97facf06b4ac25cb
[ "Apache-2.0" ]
1
2018-09-08T08:26:31.000Z
2018-09-08T08:26:31.000Z
tensorflow/contrib/data/python/kernel_tests/optimization/map_and_filter_fusion_test.py
Smokrow/tensorflow
debd66dae1c9a49d36ea006c97facf06b4ac25cb
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/data/python/kernel_tests/optimization/map_and_filter_fusion_test.py
Smokrow/tensorflow
debd66dae1c9a49d36ea006c97facf06b4ac25cb
[ "Apache-2.0" ]
1
2020-02-15T14:34:36.000Z
2020-02-15T14:34:36.000Z
# Copyright 2018 The TensorFlow 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 applica...
34.515556
80
0.638424
970
7,766
4.954639
0.206186
0.036413
0.02164
0.017478
0.54432
0.492509
0.474823
0.414274
0.414274
0.354765
0
0.01271
0.240149
7,766
224
81
34.669643
0.801729
0.116147
0
0.474286
0
0
0.031437
0.009212
0
0
0
0
0.057143
1
0.062857
false
0
0.062857
0.005714
0.165714
0.005714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6a7f52df743becc0516c5282308cd0c5db04737d
16,979
py
Python
meerk40t/lihuiyu/lihuiyuemulator.py
jpirnay/meerk40t
10d4e41a8c5e2bb95a504904273699e115822b9b
[ "MIT" ]
null
null
null
meerk40t/lihuiyu/lihuiyuemulator.py
jpirnay/meerk40t
10d4e41a8c5e2bb95a504904273699e115822b9b
[ "MIT" ]
null
null
null
meerk40t/lihuiyu/lihuiyuemulator.py
jpirnay/meerk40t
10d4e41a8c5e2bb95a504904273699e115822b9b
[ "MIT" ]
null
null
null
from meerk40t.core.cutcode import CutCode, RawCut from meerk40t.core.parameters import Parameters from meerk40t.core.units import UNITS_PER_MIL from meerk40t.kernel import Module from meerk40t.numpath import Numpath from meerk40t.svgelements import Color class LihuiyuEmulator(Module): def __init__(self, context, ...
32.777992
118
0.52777
1,998
16,979
4.325325
0.133133
0.03888
0.069428
0.049178
0.476394
0.39875
0.355473
0.314973
0.297153
0.297153
0
0.010703
0.378173
16,979
517
119
32.841393
0.807823
0.052182
0
0.487356
0
0
0.034943
0
0
0
0
0
0
1
0.085057
false
0.002299
0.016092
0.011494
0.142529
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
6a7f701b1440f625bfec8817f0a39a899231c69f
105,704
py
Python
tencentcloud/dbbrain/v20210527/models.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
465
2018-04-27T09:54:59.000Z
2022-03-29T02:18:01.000Z
tencentcloud/dbbrain/v20210527/models.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
91
2018-04-27T09:48:11.000Z
2022-03-12T08:04:04.000Z
tencentcloud/dbbrain/v20210527/models.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
232
2018-05-02T08:02:46.000Z
2022-03-30T08:02:48.000Z
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
31.310427
195
0.597149
10,779
105,704
5.781705
0.088505
0.064264
0.015532
0.016945
0.658077
0.609153
0.559009
0.541391
0.510069
0.499318
0
0.007231
0.293518
105,704
3,376
196
31.310427
0.827299
0.307793
0
0.727163
0
0
0.080074
0.001422
0
0
0
0
0
1
0.105769
false
0
0.001202
0
0.159856
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
6a7fd9c2a4520acac2ad0d4b073014e3ffeaa218
20,152
py
Python
oauth/provider.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
2,027
2019-11-12T18:05:48.000Z
2022-03-31T22:25:04.000Z
oauth/provider.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
496
2019-11-12T18:13:37.000Z
2022-03-31T10:43:45.000Z
oauth/provider.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
249
2019-11-12T18:02:27.000Z
2022-03-22T12:19:19.000Z
# Ported to Python 3 # Originally from https://github.com/DeprecatedCode/oauth2lib/blob/d161b010f8a596826050a09e5e94d59443cc12d9/oauth2lib/provider.py import json import logging from requests import Response from io import StringIO try: from werkzeug.exceptions import Unauthorized except ImportError: Unauthor...
35.730496
129
0.654575
2,366
20,152
5.319527
0.105664
0.04513
0.025584
0.020022
0.622755
0.592404
0.517798
0.472906
0.411727
0.39679
0
0.005184
0.272529
20,152
563
130
35.793961
0.853342
0.323839
0
0.403162
0
0
0.126022
0.023411
0
0
0
0
0
1
0.134387
false
0
0.027668
0.003953
0.355731
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
6a811562ddff805b40048018c138048e412a8c98
773
py
Python
main.py
TomHacker/ImageCluster
c4262e08a61c50b6d850ba29bc4d56d21c789aa9
[ "Apache-2.0" ]
10
2019-04-08T06:46:35.000Z
2019-10-31T11:10:32.000Z
main.py
HandsomeBrotherShuaiLi/ImageCluster
c4262e08a61c50b6d850ba29bc4d56d21c789aa9
[ "Apache-2.0" ]
3
2020-06-02T01:24:18.000Z
2021-05-20T04:53:26.000Z
main.py
HandsomeBrotherShuaiLi/ImageCluster
c4262e08a61c50b6d850ba29bc4d56d21c789aa9
[ "Apache-2.0" ]
1
2019-05-23T11:08:04.000Z
2019-05-23T11:08:04.000Z
from model import ImageCluster m=ImageCluster( base_model='vgg16',#your feature map extractor model resorted_img_folder='resorted_data',#the folder for clustered images cluster_algo='kmeans',#cluster algorithm base_img_folder='data', maxK=150,#the max k num is 30, which means ImageCluster calculates...
36.809524
95
0.750323
126
773
4.492063
0.587302
0.058304
0.028269
0
0
0
0
0
0
0
0
0.035714
0.166882
773
20
96
38.65
0.843168
0.679172
0
0
0
0
0.12069
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a8199a221f44d9fef4df3ccc6d623b0243a377c
1,058
py
Python
tests/dummies.py
arvindmuralie77/gradsflow
d6ec5bc517dcf714cd4ecb91a7f702dce6bded3f
[ "Apache-2.0" ]
253
2021-08-17T17:42:25.000Z
2022-03-25T07:59:41.000Z
tests/dummies.py
arvindmuralie77/gradsflow
d6ec5bc517dcf714cd4ecb91a7f702dce6bded3f
[ "Apache-2.0" ]
161
2021-08-17T16:28:08.000Z
2022-03-27T02:36:45.000Z
tests/dummies.py
arvindmuralie77/gradsflow
d6ec5bc517dcf714cd4ecb91a7f702dce6bded3f
[ "Apache-2.0" ]
35
2021-08-23T16:26:15.000Z
2022-03-26T17:08:15.000Z
# Copyright (c) 2021 GradsFlow. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
32.060606
75
0.697543
151
1,058
4.807947
0.615894
0.082645
0.035813
0.044077
0.146006
0.146006
0.146006
0.146006
0.146006
0.146006
0
0.016568
0.201323
1,058
32
76
33.0625
0.842604
0.548204
0
0.166667
0
0
0.082073
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.25
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
6a82018dc0f7662911572e4ff805c96d468e9254
2,330
py
Python
JumpscaleCore/tools/executor/ExecutorSerial.py
gneumann333/jumpscaleX_core
777d249fa3668c6e802c2f765f4b82fb39c3e5fa
[ "Apache-2.0" ]
1
2020-06-21T11:18:52.000Z
2020-06-21T11:18:52.000Z
JumpscaleCore/tools/executor/ExecutorSerial.py
gneumann333/jumpscaleX_core
777d249fa3668c6e802c2f765f4b82fb39c3e5fa
[ "Apache-2.0" ]
644
2019-08-25T10:19:56.000Z
2020-12-23T09:41:04.000Z
JumpscaleCore/tools/executor/ExecutorSerial.py
gneumann333/jumpscaleX_core
777d249fa3668c6e802c2f765f4b82fb39c3e5fa
[ "Apache-2.0" ]
11
2019-08-29T21:38:50.000Z
2020-06-21T11:18:55.000Z
from Jumpscale import j JSBASE = j.baseclasses.object from .ExecutorBase import * import serial class ExecutorSerial(ExecutorBase): """ This executor is primary made to communicate with devices (routers, switch, ...) over console cable but you can use underlaying method to communicate with any serial de...
27.093023
108
0.615021
274
2,330
5.109489
0.386861
0.035714
0.034286
0.064286
0.076429
0.052857
0
0
0
0
0
0.006478
0.271245
2,330
85
109
27.411765
0.818021
0.111588
0
0.053571
0
0
0.039101
0
0
0
0
0
0
1
0.196429
false
0
0.053571
0.017857
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
6a836399736ccfbfdcec602215566bd6e9ae598c
2,201
py
Python
melisa/utils/snowflake.py
MelisaDev/melisa
53fee10d8c1bf4dd716bc90096c16f096e11bfbf
[ "MIT" ]
5
2022-03-11T19:51:28.000Z
2022-03-13T16:28:58.000Z
melisa/utils/snowflake.py
jungledev1/melisa
835e4b644e50b5038599ecbd1bfa510a0d3200e9
[ "MIT" ]
2
2022-03-19T18:09:39.000Z
2022-03-23T12:18:49.000Z
melisa/utils/snowflake.py
jungledev1/melisa
835e4b644e50b5038599ecbd1bfa510a0d3200e9
[ "MIT" ]
1
2022-03-23T07:30:04.000Z
2022-03-23T07:30:04.000Z
# Copyright MelisaDev 2022 - Present # Full MIT License can be found in `LICENSE.txt` at the project root. from __future__ import annotations class Snowflake(int): """ Discord utilizes Twitter's snowflake format for uniquely identifiable descriptors (IDs). These IDs are guaranteed to be unique across all...
30.150685
92
0.63562
272
2,201
5.036765
0.518382
0.040146
0.014599
0.042336
0.061314
0.061314
0.061314
0
0
0
0
0.058081
0.280327
2,201
72
93
30.569444
0.806818
0.431168
0
0.212121
0
0
0.107747
0
0
0
0
0
0
1
0.242424
false
0
0.030303
0.060606
0.575758
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
6a83ea727e6668f4f022e77a641fbd9d212a22e3
8,749
py
Python
feed/serializers/extensions.py
cul-it/arxiv-rss
40c0e859528119cc8ba3700312cb8df095d95cdd
[ "MIT" ]
4
2020-06-29T15:05:37.000Z
2022-02-02T10:28:28.000Z
feed/serializers/extensions.py
arXiv/arxiv-feed
82923d062e2524df94c22490cf936a988559ce66
[ "MIT" ]
12
2020-03-06T16:45:00.000Z
2022-03-02T15:36:14.000Z
feed/serializers/extensions.py
cul-it/arxiv-rss
40c0e859528119cc8ba3700312cb8df095d95cdd
[ "MIT" ]
2
2020-12-06T16:30:06.000Z
2021-11-05T12:29:08.000Z
"""Classes derived from the Feedgen extension classes.""" from typing import Dict, List, Optional from lxml import etree from lxml.etree import Element from flask import current_app from feedgen.ext.base import BaseEntryExtension, BaseExtension from feed.domain import Author, Media class ArxivExtension(BaseExtensio...
30.590909
79
0.529318
890
8,749
5.032584
0.170787
0.052244
0.015628
0.029694
0.426658
0.366376
0.350301
0.334896
0.273499
0.161197
0
0.001076
0.362899
8,749
285
80
30.698246
0.802476
0.258201
0
0.112903
0
0
0.141677
0.01705
0
0
0
0
0
1
0.120968
false
0
0.048387
0
0.241935
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
6a849b7bcd124ad715f2ce345cebb1f79d3397f0
1,132
py
Python
discovery-infra/test_infra/helper_classes/config/controller_config.py
lranjbar/assisted-test-infra
89cd4e16744afa646af88975f8038ca1774bcfa4
[ "Apache-2.0" ]
null
null
null
discovery-infra/test_infra/helper_classes/config/controller_config.py
lranjbar/assisted-test-infra
89cd4e16744afa646af88975f8038ca1774bcfa4
[ "Apache-2.0" ]
30
2021-11-15T07:10:49.000Z
2022-03-28T07:10:26.000Z
discovery-infra/test_infra/helper_classes/config/controller_config.py
lranjbar/assisted-test-infra
89cd4e16744afa646af88975f8038ca1774bcfa4
[ "Apache-2.0" ]
null
null
null
from abc import ABC from pathlib import Path from typing import Any from dataclasses import dataclass from test_infra import consts from test_infra.utils.global_variables import GlobalVariables from .base_config import _BaseConfig global_variables = GlobalVariables() @dataclass class BaseNodeConfig(_BaseConfig, AB...
26.325581
63
0.719965
158
1,132
4.917722
0.405063
0.108108
0.07722
0.036036
0
0
0
0
0
0
0
0.001133
0.219965
1,132
42
64
26.952381
0.878822
0.05212
0
0
0
0
0
0
0
0
0
0
0
1
0.030303
false
0
0.212121
0.030303
0.909091
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
6a84b5159878bc48cef9594078edc989fb798f13
952
py
Python
bitcoinpy/mempool.py
obulpathi/bitcoinpy
8f41e0221f2ff2d35697b6d4e5397deb7de09c3d
[ "MIT" ]
21
2016-01-03T14:52:07.000Z
2021-08-09T18:05:08.000Z
bitcoinpy/mempool.py
obulpathi/bitcoinpy
8f41e0221f2ff2d35697b6d4e5397deb7de09c3d
[ "MIT" ]
null
null
null
bitcoinpy/mempool.py
obulpathi/bitcoinpy
8f41e0221f2ff2d35697b6d4e5397deb7de09c3d
[ "MIT" ]
15
2015-02-07T20:08:11.000Z
2019-10-03T04:45:45.000Z
# MemPool.py # # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import logging from lib.serialize import uint256_to_shortstr class MemPool(object): def __init__(self): self.pool = {} # setup logging logging.basicConfi...
23.8
74
0.703782
142
952
4.619718
0.471831
0.085366
0.054878
0.08689
0.105183
0.105183
0
0
0
0
0
0.01761
0.164916
952
39
75
24.410256
0.807547
0.169118
0
0.185185
0
0
0.105732
0
0
0
0
0
0
1
0.148148
false
0
0.074074
0.037037
0.481481
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
6a84b6d6b4154a68e4e0a9485928b636bf10d1b0
13,530
py
Python
bashspy/parser.py
sarvi/bashspy
088f2cdfd00d29b4c7a98ec311f6e6c382ba4749
[ "MIT" ]
null
null
null
bashspy/parser.py
sarvi/bashspy
088f2cdfd00d29b4c7a98ec311f6e6c382ba4749
[ "MIT" ]
1
2021-06-12T12:47:44.000Z
2021-06-12T12:47:44.000Z
bashspy/parser.py
sarvi/bashspy
088f2cdfd00d29b4c7a98ec311f6e6c382ba4749
[ "MIT" ]
1
2020-05-18T08:55:14.000Z
2020-05-18T08:55:14.000Z
''' Created on Jun 13, 2019 @author: sarvi ''' from sly import Parser from .lexer import BashLexer class ASTCommands(list): __slots__ = ('grouping') def __init__(self, command, grouping=None): self.append(command) self.grouping = grouping def __repr__(self): x=[str(i) for i in s...
32.760291
135
0.602882
1,539
13,530
5.069526
0.11306
0.019867
0.017944
0.012689
0.334273
0.27557
0.187644
0.166752
0.138298
0.120354
0
0.00334
0.269771
13,530
413
136
32.760291
0.786336
0.111382
0
0.156997
0
0
0.188424
0.001837
0
0
0
0
0
1
0.153584
false
0
0.006826
0.064846
0.423208
0.006826
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6a84df704829c829063b750bd4cbc4f7f7261e8a
1,555
py
Python
Module03/pregnancy_wheel.py
biomed-bioinformatics-bootcamp/bmes-t580-2019-coursework-charrison620
4f53e9290b456f582464c86d114c794c1448b995
[ "MIT" ]
null
null
null
Module03/pregnancy_wheel.py
biomed-bioinformatics-bootcamp/bmes-t580-2019-coursework-charrison620
4f53e9290b456f582464c86d114c794c1448b995
[ "MIT" ]
null
null
null
Module03/pregnancy_wheel.py
biomed-bioinformatics-bootcamp/bmes-t580-2019-coursework-charrison620
4f53e9290b456f582464c86d114c794c1448b995
[ "MIT" ]
null
null
null
import datetime def print_header(): print('----------------------------') print(' Due Date APP ') print('----------------------------') print() def get_lmp_from_patient(): print("When was the patient's last normal menstrual cycle? ") date_str = input('Format: [dd/mm/yyyy}') ...
27.767857
87
0.65209
228
1,555
4.157895
0.350877
0.132911
0.110759
0.075949
0.224684
0.224684
0.183544
0.122363
0.122363
0.122363
0
0.016
0.196141
1,555
56
88
27.767857
0.7424
0.034727
0
0.055556
0
0
0.176785
0.037358
0
0
0
0
0
1
0.138889
false
0
0.027778
0
0.25
0.361111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6a863c2235ddfde035ee8193728b86e170dd1480
1,471
py
Python
costcalculator/forms.py
connor-c/Trip-Gas-Cost-Calculator
6101093ffd48b6cb6c4f847b8c1f40351617750b
[ "MIT" ]
null
null
null
costcalculator/forms.py
connor-c/Trip-Gas-Cost-Calculator
6101093ffd48b6cb6c4f847b8c1f40351617750b
[ "MIT" ]
8
2020-02-11T23:59:35.000Z
2022-02-10T07:16:43.000Z
costcalculator/forms.py
connor-c/Trip-Gas-Cost-Calculator
6101093ffd48b6cb6c4f847b8c1f40351617750b
[ "MIT" ]
null
null
null
from django import forms from django.core.validators import MinValueValidator, MinLengthValidator class OriginForm(forms.Form): origin_address = forms.CharField(validators=[MinLengthValidator(1)], widget=forms.TextInput(attrs={'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder': '123 Tech St, Sili...
70.047619
220
0.747791
164
1,471
6.682927
0.329268
0.04927
0.109489
0.136861
0.684307
0.684307
0.684307
0.684307
0.684307
0.684307
0
0.02819
0.083617
1,471
20
221
73.55
0.784866
0
0
0
0
0
0.281441
0
0
0
0
0
0
1
0
false
0
0.142857
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
6a86a5adbb68bba6dc2b067c07b59de722a8d5ca
1,940
py
Python
tasks/storm_raffle_handler.py
Ayouuuu/bili2.0
1108e39208e56f129fb5eb6605a5b3f1aadc0d8f
[ "MIT" ]
2
2020-01-03T09:27:53.000Z
2020-04-07T05:06:36.000Z
tasks/storm_raffle_handler.py
Ayouuuu/bili2.0
1108e39208e56f129fb5eb6605a5b3f1aadc0d8f
[ "MIT" ]
null
null
null
tasks/storm_raffle_handler.py
Ayouuuu/bili2.0
1108e39208e56f129fb5eb6605a5b3f1aadc0d8f
[ "MIT" ]
1
2019-08-23T07:43:21.000Z
2019-08-23T07:43:21.000Z
import bili_statistics from reqs.storm_raffle_handler import StormRaffleHandlerReq from tasks.utils import UtilsTask from .base_class import Forced, DontWait, Multi class StormRaffleJoinTask(Forced, DontWait, Multi): TASK_NAME = 'join_storm_raffle' # 为了速度,有时不用等room_id验证就参加,置room_id为0,is_normal_room自然会返回固定值tr...
41.276596
83
0.635567
243
1,940
4.765432
0.337449
0.082902
0.043178
0.048359
0.189983
0.158895
0.158895
0.088083
0.088083
0.088083
0
0.016973
0.271134
1,940
46
84
42.173913
0.80198
0.052577
0
0.210526
0
0
0.073025
0.023978
0
0
0
0
0
1
0
false
0
0.105263
0
0.236842
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a86acff1cb947e60b02c94c6dbdcc5c7b79e9bf
4,767
py
Python
u24_lymphocyte/third_party/treeano/sandbox/nodes/gradnet.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
45
2015-04-26T04:45:51.000Z
2022-01-24T15:03:55.000Z
u24_lymphocyte/third_party/treeano/sandbox/nodes/gradnet.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
u24_lymphocyte/third_party/treeano/sandbox/nodes/gradnet.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
import theano import theano.tensor as T import treeano import treeano.nodes as tn fX = theano.config.floatX @treeano.register_node("grad_net_interpolation") class GradNetInterpolationNode(treeano.NodeImpl): """ interpolates outputs between 2 nodes """ hyperparameter_names = ("late_gate",) chil...
36.389313
79
0.594084
489
4,767
5.548057
0.292434
0.053078
0.022116
0.015481
0.164394
0.075931
0.06045
0.030962
0
0
0
0.003387
0.318649
4,767
130
80
36.669231
0.831897
0.088945
0
0.10989
0
0
0.103184
0.029747
0
0
0
0
0.032967
1
0.054945
false
0
0.054945
0
0.197802
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
6a88dea060f9ea00f0bb7c465137c71904b3c14f
662
py
Python
minus80/RawFile.py
brohammer/Minus80
3cd5b61a7349b9fa6d35ed192d8a4f38523f92bb
[ "MIT" ]
null
null
null
minus80/RawFile.py
brohammer/Minus80
3cd5b61a7349b9fa6d35ed192d8a4f38523f92bb
[ "MIT" ]
null
null
null
minus80/RawFile.py
brohammer/Minus80
3cd5b61a7349b9fa6d35ed192d8a4f38523f92bb
[ "MIT" ]
null
null
null
import gzip #pragma: no cover import bz2 #pragma: no cover import lzma #pragma: no cover class RawFile(object):#pragma: no cover def __init__(self,filename): self.filename = filename if filename.endswith('.gz'): self.handle = gzip.open(filename,'rt') elif filename.endsw...
33.1
50
0.601208
79
662
4.886076
0.405063
0.15544
0.134715
0.098446
0.176166
0.176166
0
0
0
0
0
0.00625
0.274924
662
19
51
34.842105
0.797917
0.096677
0
0
0
0
0.025253
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.055556
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a89b2893b587e6d66f6aa207ca89999bce84710
846
py
Python
utils/config.py
jtr109/Alpha2kindle
a411d05cafa9036a732eeb75fa13f68963f254e3
[ "MIT" ]
null
null
null
utils/config.py
jtr109/Alpha2kindle
a411d05cafa9036a732eeb75fa13f68963f254e3
[ "MIT" ]
null
null
null
utils/config.py
jtr109/Alpha2kindle
a411d05cafa9036a732eeb75fa13f68963f254e3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os class BaseConf(object): HEADERS = { "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) " "AppleWebKit/537.36 (KHTML, like Gecko) " "Chrome/55.0.2883.95 " "Safari/537.36", "Accept": "tex...
27.290323
75
0.51773
110
846
3.927273
0.663636
0.023148
0.013889
0
0
0
0
0
0
0
0
0.082631
0.299054
846
30
76
28.2
0.645868
0.024823
0
0
0
0.045455
0.470231
0.185905
0
0
0
0
0
1
0
false
0.090909
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
1
0
0
0
0
0
1
6a89d65e11282b8c81495e2795c8364f65d2114c
4,724
py
Python
framework/database/__init__.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
null
null
null
framework/database/__init__.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
null
null
null
framework/database/__init__.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import functools import httplib as http import markupsafe from django.core.paginator import Paginator from django.db.models import Q, QuerySet from framework.exceptions import HTTPError def get_or_http_error(Model, pk_or_query, allow_deleted=False, display_name=None): """Load an instance ...
38.406504
114
0.67591
621
4,724
5.035427
0.334944
0.022386
0.017269
0.013431
0.10937
0.07867
0.055644
0.036457
0.036457
0.036457
0
0.006405
0.239839
4,724
122
115
38.721311
0.864383
0.425275
0
0.152542
0
0
0.087692
0
0
0
0
0.008197
0
1
0.067797
false
0
0.101695
0
0.220339
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
6a8b93de9ef615a88be0dad5abda769599f3cf01
2,886
py
Python
neptune/internal/client_library/job_development_api/image.py
jiji-online/neptune-cli
50cf680a80d141497f9331ab7cdaee49fcb90b0c
[ "Apache-2.0" ]
null
null
null
neptune/internal/client_library/job_development_api/image.py
jiji-online/neptune-cli
50cf680a80d141497f9331ab7cdaee49fcb90b0c
[ "Apache-2.0" ]
null
null
null
neptune/internal/client_library/job_development_api/image.py
jiji-online/neptune-cli
50cf680a80d141497f9331ab7cdaee49fcb90b0c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2016, deepsense.io # # 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...
26.722222
93
0.647263
359
2,886
5.111421
0.389972
0.038147
0.035967
0.027793
0.124251
0.091553
0.091553
0.059946
0.059946
0.059946
0
0.007597
0.27027
2,886
107
94
26.971963
0.863723
0.469508
0
0.081081
0
0
0.006329
0
0
0
0
0
0
1
0.135135
false
0
0.189189
0
0.459459
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
6a8bca56c22e3267d252604b1793381dda94c58e
626
py
Python
src/picome/hukeyboard.py
guibohnert91/picome
9b91c28f7e83a2b730cafbda1a97205672f3e676
[ "MIT" ]
null
null
null
src/picome/hukeyboard.py
guibohnert91/picome
9b91c28f7e83a2b730cafbda1a97205672f3e676
[ "MIT" ]
null
null
null
src/picome/hukeyboard.py
guibohnert91/picome
9b91c28f7e83a2b730cafbda1a97205672f3e676
[ "MIT" ]
null
null
null
from adafruit_hid.keyboard import Keyboard from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS from adafruit_hid.keycode import Keycode import usb_hid import time class HumanKeyboard(object): def __init__(self): self.keyboard = Keyboard(usb_hid.devices) self.keyboardLayout = KeyboardLayou...
28.454545
73
0.702875
75
626
5.72
0.52
0.111888
0.104895
0.107226
0
0
0
0
0
0
0
0.004098
0.220447
626
22
74
28.454545
0.875
0.174121
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.384615
0
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
6a8c272cd22c6193695ebfa5fa34ff4d88d4565d
579
py
Python
src/solutions/part2/q104_max_bi_tree_depth.py
hychrisli/PyAlgorithms
71e537180f3b371d0d2cc47b11cb68ec13a8ac68
[ "Apache-2.0" ]
null
null
null
src/solutions/part2/q104_max_bi_tree_depth.py
hychrisli/PyAlgorithms
71e537180f3b371d0d2cc47b11cb68ec13a8ac68
[ "Apache-2.0" ]
null
null
null
src/solutions/part2/q104_max_bi_tree_depth.py
hychrisli/PyAlgorithms
71e537180f3b371d0d2cc47b11cb68ec13a8ac68
[ "Apache-2.0" ]
null
null
null
from src.base.solution import Solution from src.tests.part2.q104_test_max_bi_tree_depth import MaxBiTreeDepthTestCases class MaxBiTreeDepth(Solution): def gen_test_cases(self): return MaxBiTreeDepthTestCases() def run_test(self, input): return self.maxDepth(input) def maxDepth(self, root...
23.16
79
0.661485
70
579
5.228571
0.542857
0.098361
0.087432
0
0
0
0
0
0
0
0
0.013605
0.238342
579
25
80
23.16
0.816327
0.055268
0
0
0
0
0.015504
0
0
0
0
0
0
1
0.230769
false
0
0.153846
0.153846
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
6a8c916961dcdf5b4bdd11f085941afc268401f1
771
py
Python
inventory/admin.py
shakyasaijal/businessAnalytics
9312bae79709387c6eadd50f87f6be85bd52c396
[ "BSD-3-Clause" ]
null
null
null
inventory/admin.py
shakyasaijal/businessAnalytics
9312bae79709387c6eadd50f87f6be85bd52c396
[ "BSD-3-Clause" ]
8
2021-03-30T13:03:11.000Z
2022-03-12T00:20:13.000Z
inventory/admin.py
shakyasaijal/businessAnalytics
9312bae79709387c6eadd50f87f6be85bd52c396
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from . import models class SupplierAdmin(admin.ModelAdmin): list_display = ('supplier_name', 'contact', ) search_fields = ['supplier_name', 'contact', ] admin.site.register(models.Suppliers, SupplierAdmin) class InventoryUserAdmin(admin.ModelAdmin): list_display = ('empl...
32.125
72
0.731518
84
771
6.488095
0.380952
0.082569
0.104587
0.143119
0.121101
0.121101
0
0
0
0
0
0
0.124514
771
23
73
33.521739
0.807407
0
0
0
0
0
0.229572
0
0
0
0
0
0
1
0
false
0
0.125
0
0.8125
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
6a8e0d766c7cdfdc409946fd3a6196d6981baf1d
55
py
Python
python/testData/resolve/TryExceptElse.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/resolve/TryExceptElse.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/resolve/TryExceptElse.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
try: name = "" except: pass else: print na<ref>me
9.166667
17
0.6
9
55
3.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.254545
55
6
17
9.166667
0.804878
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0.166667
0
null
null
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
4
6a8e67d20152ca7acb56c8c6199b1999e7f99406
500
py
Python
pybyte/session.py
ms7m/py-byte
c5872ff5b8536160d8cbd7f88406ed593113e77d
[ "MIT" ]
4
2020-01-26T17:22:05.000Z
2020-08-15T12:23:31.000Z
pybyte/session.py
ms7m/py-byte
c5872ff5b8536160d8cbd7f88406ed593113e77d
[ "MIT" ]
3
2020-01-27T18:10:06.000Z
2020-03-31T10:56:03.000Z
pybyte/session.py
ms7m/py-byte
c5872ff5b8536160d8cbd7f88406ed593113e77d
[ "MIT" ]
2
2020-01-27T17:59:45.000Z
2020-02-01T16:43:53.000Z
import requests class ByteSession(object): def __init__(self, token, providedSession=False): self._userToken = token if providedSession == False: self._session = requests.session() else: self._session = providedSession self._session.headers = { ...
26.315789
91
0.594
54
500
5.333333
0.62963
0.152778
0.166667
0
0
0
0
0
0
0
0
0.034091
0.296
500
19
92
26.315789
0.784091
0
0
0
0
0.071429
0.172
0
0
0
0
0
0
1
0.142857
false
0
0.071429
0.071429
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a8e7fcaf4ca3d67de4aab013987d7db788188b5
252
py
Python
pyqtgraph/examples/template.py
secantsquared/pyqtgraph
3ef7f5b91639543e43bcd66a84290fb9bc18fc5c
[ "MIT" ]
null
null
null
pyqtgraph/examples/template.py
secantsquared/pyqtgraph
3ef7f5b91639543e43bcd66a84290fb9bc18fc5c
[ "MIT" ]
null
null
null
pyqtgraph/examples/template.py
secantsquared/pyqtgraph
3ef7f5b91639543e43bcd66a84290fb9bc18fc5c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Description of example """ import pyqtgraph as pg from pyqtgraph.Qt import QtCore, QtGui, mkQApp import numpy as np app = mkQApp() # win.setWindowTitle('pyqtgraph example: ____') if __name__ == '__main__': pg.exec()
15.75
47
0.68254
32
252
5
0.75
0
0
0
0
0
0
0
0
0
0
0.004808
0.174603
252
15
48
16.8
0.764423
0.361111
0
0
0
0
0.052632
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6a8f3e25920be24fb569cc55eff90ae879efa647
73,328
py
Python
ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py
cas-packone/ambari-chs
68033fbd4b810b6642853f2ad9128cbbd4e0cb7b
[ "Apache-2.0" ]
3
2019-06-20T11:49:36.000Z
2020-12-11T10:44:29.000Z
ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py
cas-packone/ambari-chs
68033fbd4b810b6642853f2ad9128cbbd4e0cb7b
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py
cas-packone/ambari-chs
68033fbd4b810b6642853f2ad9128cbbd4e0cb7b
[ "Apache-2.0" ]
1
2019-03-20T08:36:17.000Z
2019-03-20T08:36:17.000Z
''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
36.13997
166
0.551836
5,880
73,328
6.787245
0.115476
0.031672
0.011652
0.007517
0.639555
0.586584
0.534165
0.493473
0.45496
0.410509
0
0.023864
0.307972
73,328
2,028
167
36.157791
0.762597
0.021179
0
0.463305
0
0.003922
0.333962
0.112355
0
0
0
0
0.052661
0
null
null
0.001681
0.003361
null
null
0.002801
0
0
0
null
0
0
0
0
0
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
6a8f6efd4560f4b302cef1f8c07a3c86f509c35d
642
py
Python
debugging/code/multiprocess_main.py
awesome-archive/python-debugging-skills
69af455302a805d6f198a06ea934f79d5913cb3e
[ "MIT" ]
null
null
null
debugging/code/multiprocess_main.py
awesome-archive/python-debugging-skills
69af455302a805d6f198a06ea934f79d5913cb3e
[ "MIT" ]
null
null
null
debugging/code/multiprocess_main.py
awesome-archive/python-debugging-skills
69af455302a805d6f198a06ea934f79d5913cb3e
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- import multiprocessing as mp import time from pudb.remote import set_trace def worker(worker_id): """ Simple worker process""" i = 0 while i < 10: if worker_id == 1: # debug process with id 1 set_trace(term_size=(80, 24)) time.sleep(1) # represents ...
22.928571
57
0.573209
91
642
3.868132
0.538462
0.068182
0
0
0
0
0
0
0
0
0
0.030973
0.29595
642
27
58
23.777778
0.747788
0.17134
0
0
0
0
0.051724
0
0
0
0
0
0
1
0.052632
false
0
0.157895
0
0.210526
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a8fb5db5439c528b72c62e081f71f595115b9ad
1,317
py
Python
lldb/packages/Python/lldbsuite/test/expression_command/anonymous-struct/TestCallUserAnonTypedef.py
bytesnake/Enzyme
247606c279920d476645d2e319e574bf8be10fc9
[ "Apache-2.0" ]
null
null
null
lldb/packages/Python/lldbsuite/test/expression_command/anonymous-struct/TestCallUserAnonTypedef.py
bytesnake/Enzyme
247606c279920d476645d2e319e574bf8be10fc9
[ "Apache-2.0" ]
null
null
null
lldb/packages/Python/lldbsuite/test/expression_command/anonymous-struct/TestCallUserAnonTypedef.py
bytesnake/Enzyme
247606c279920d476645d2e319e574bf8be10fc9
[ "Apache-2.0" ]
null
null
null
""" Test calling user defined functions using expression evaluation. This test checks that typesystem lookup works correctly for typedefs of untagged structures. Ticket: https://llvm.org/bugs/show_bug.cgi?id=26790 """ from __future__ import print_function import lldb from lldbsuite.test.decorators import * from lld...
28.021277
85
0.658314
148
1,317
5.695946
0.648649
0.046263
0.060498
0.054567
0
0
0
0
0
0
0
0.01291
0.235383
1,317
46
86
28.630435
0.82423
0.230068
0
0
0
0
0.105894
0
0
0
0
0
0
1
0.071429
false
0
0.178571
0
0.321429
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6a8fddf8511ca7d429d8644119f475536d5dae17
2,486
py
Python
main.py
ThomasDLi/simple-photo-editor
f8b3f1025155e2542b93b94c12d607b9b5e45731
[ "MIT" ]
1
2021-05-21T19:21:26.000Z
2021-05-21T19:21:26.000Z
main.py
ThomasDLi/simple-photo-editor
f8b3f1025155e2542b93b94c12d607b9b5e45731
[ "MIT" ]
null
null
null
main.py
ThomasDLi/simple-photo-editor
f8b3f1025155e2542b93b94c12d607b9b5e45731
[ "MIT" ]
null
null
null
from PIL import Image, ImageEnhance user_account_name = "Thomas.Li26" def main(): mode = input("Specify image editing mode. Type DEEPFRY, STRETCH, BRIGHTNESS, SHARPEN, or INVERT: ") if mode == "DEEPFRY": DEEPFRY() if mode == "STRETCH": STRETCH() if mode == "INVERT": ...
38.84375
104
0.650442
326
2,486
4.852761
0.190184
0.075853
0.063211
0.053729
0.710493
0.664349
0.664349
0.664349
0.664349
0.664349
0
0.004555
0.205149
2,486
63
105
39.460317
0.796053
0
0
0.454545
0
0
0.37598
0.096987
0
0
0
0
0
1
0.109091
false
0
0.018182
0
0.127273
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6a90540c04aa6d7b6d0419ad6f3c05ff1c4aa797
377
py
Python
scripts/field/Curbrock_Summon1.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/field/Curbrock_Summon1.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/field/Curbrock_Summon1.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# Curbrock Summon 2 CURBROCK2 = 9400930 # MOD ID CURBROCKS_ESCAPE_ROUTE_VER2 = 600050040 # MAP ID CURBROCKS_ESCAPE_ROUTE_VER3 = 600050050 # MAP ID 2 sm.spawnMob(CURBROCK2, 190, -208, False) sm.createClock(1800) sm.addEvent(sm.invokeAfterDelay(1800000, "warp", CURBROCKS_ESCAPE_ROUTE_VER3, 0)) sm.waitForMobDeath(CURBRO...
31.416667
81
0.806366
53
377
5.509434
0.54717
0.205479
0.273973
0.150685
0
0
0
0
0
0
0
0.152493
0.095491
377
12
82
31.416667
0.703812
0.106101
0
0
0
0
0.012012
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6a9096da46f0e3f90b72b1a819bf62ce11ddc6bd
786
py
Python
trainloops/listeners/cluster_killswitch.py
Gerryflap/master_thesis
5dc16e21b23837fee8a4532679bb5cb961af0b7c
[ "MIT" ]
null
null
null
trainloops/listeners/cluster_killswitch.py
Gerryflap/master_thesis
5dc16e21b23837fee8a4532679bb5cb961af0b7c
[ "MIT" ]
null
null
null
trainloops/listeners/cluster_killswitch.py
Gerryflap/master_thesis
5dc16e21b23837fee8a4532679bb5cb961af0b7c
[ "MIT" ]
null
null
null
""" Cancelling jobs on the University cluster forces programs to instantly quit, which sometimes crashes cluster nodes. As a remedy, this killswitch listener will stop the experiment in a nicer way to prevent this from happening. The experiment will be stopped if a file named "stop" is encountered i...
32.75
113
0.704835
106
786
5.122642
0.603774
0.071823
0
0
0
0
0
0
0
0
0
0
0.229008
786
23
114
34.173913
0.89604
0.507634
0
0
0
0
0.011142
0
0
0
0
0
0
1
0.272727
false
0.090909
0.181818
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
6a920dacf31156e85a0fcebb52765a1d1ca683fe
2,255
py
Python
authors/apps/notifications/views.py
andela/ah-backend-spaces-
58e031a96a6b9555f1a4133cf8cb688c236d3f3b
[ "BSD-3-Clause" ]
2
2018-08-17T15:47:36.000Z
2018-09-13T13:58:34.000Z
authors/apps/notifications/views.py
andela/ah-backend-spaces-
58e031a96a6b9555f1a4133cf8cb688c236d3f3b
[ "BSD-3-Clause" ]
35
2018-07-24T11:42:53.000Z
2021-06-10T20:34:41.000Z
authors/apps/notifications/views.py
andela/ah-backend-spaces-
58e031a96a6b9555f1a4133cf8cb688c236d3f3b
[ "BSD-3-Clause" ]
3
2018-07-17T13:05:35.000Z
2018-09-06T16:03:52.000Z
from rest_framework import status from rest_framework.generics import ( RetrieveUpdateAPIView, CreateAPIView, RetrieveUpdateDestroyAPIView ) from rest_framework.permissions import AllowAny, IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView from ..authenticatio...
34.692308
93
0.73082
228
2,255
7.083333
0.407895
0.024768
0.052632
0.04582
0.054489
0
0
0
0
0
0
0.004442
0.20133
2,255
64
94
35.234375
0.892282
0.180044
0
0.054054
0
0
0.067334
0
0
0
0
0
0
1
0.054054
false
0
0.27027
0
0.459459
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
6a921ec9df90e9d0bc4821cbf3d19c03f4f29792
1,882
py
Python
scripts/common/frozendict.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
scripts/common/frozendict.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
scripts/common/frozendict.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
1
2020-07-23T11:05:06.000Z
2020-07-23T11:05:06.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Implements a frozen dictionary-like object""" import collections import copy import common.memo as memo class frozendict(collections.Mapping): """A f...
26.507042
79
0.698193
266
1,882
4.736842
0.424812
0.044444
0.047619
0.019048
0
0
0
0
0
0
0
0.002653
0.198725
1,882
70
80
26.885714
0.832891
0.435175
0
0.058824
0
0
0.005988
0
0
0
0
0
0
1
0.382353
false
0
0.088235
0.294118
0.852941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
6a92b244776a352d3c8cb2387f8e203d0ce669c3
22
py
Python
avatar/__init__.py
yogeshkheri/geonode-avatar
293474f814117ae680278223c8cdf8d59c67862d
[ "BSD-3-Clause" ]
3
2021-10-17T20:37:40.000Z
2022-03-17T10:29:14.000Z
avatar/__init__.py
yogeshkheri/geonode-avatar
293474f814117ae680278223c8cdf8d59c67862d
[ "BSD-3-Clause" ]
4
2021-09-02T13:26:11.000Z
2022-03-16T12:26:36.000Z
avatar/__init__.py
yogeshkheri/geonode-avatar
293474f814117ae680278223c8cdf8d59c67862d
[ "BSD-3-Clause" ]
null
null
null
__version__ = '5.0.2'
11
21
0.636364
4
22
2.5
1
0
0
0
0
0
0
0
0
0
0
0.157895
0.136364
22
1
22
22
0.368421
0
0
0
0
0
0.227273
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
6a9450d0c04cca0024a14e15346193d320a70e58
50
py
Python
__init__.py
mmanganel/neurecon
5e86324675985f1fedfc4d5d3ac2e750f480538f
[ "MIT" ]
null
null
null
__init__.py
mmanganel/neurecon
5e86324675985f1fedfc4d5d3ac2e750f480538f
[ "MIT" ]
null
null
null
__init__.py
mmanganel/neurecon
5e86324675985f1fedfc4d5d3ac2e750f480538f
[ "MIT" ]
null
null
null
from neurecon.reconstruction import reconstruct
12.5
47
0.86
5
50
8.6
1
0
0
0
0
0
0
0
0
0
0
0
0.12
50
3
48
16.666667
0.977273
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
6a94a7cd3e89c26bee4c47c7741e5a37358da6ff
46
py
Python
Fundamentals/Reversed Strings.py
gnvidal/Codewars
117a83bd949a1503f31f1f915641e96e7bf7a04c
[ "MIT" ]
49
2018-04-30T06:42:45.000Z
2021-07-22T16:39:02.000Z
Fundamentals/Reversed Strings.py
gnvidal/Codewars
117a83bd949a1503f31f1f915641e96e7bf7a04c
[ "MIT" ]
1
2020-08-31T02:36:53.000Z
2020-08-31T10:14:00.000Z
Fundamentals/Reversed Strings.py
gnvidal/Codewars
117a83bd949a1503f31f1f915641e96e7bf7a04c
[ "MIT" ]
36
2016-11-07T19:59:58.000Z
2022-03-31T11:18:27.000Z
def solution(string): return string[::-1]
15.333333
23
0.652174
6
46
5
0.833333
0
0
0
0
0
0
0
0
0
0
0.026316
0.173913
46
2
24
23
0.763158
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
6
6a95707999c6dd8d718ea3549fc898fb5e496ed8
965
py
Python
python/flexflow/keras/datasets/cifar.py
zmxdream/FlexFlow
7ea50d71a02e853af7ae573d88c911511b3e82e0
[ "Apache-2.0" ]
455
2018-12-09T01:57:46.000Z
2022-03-22T01:56:47.000Z
python/flexflow/keras/datasets/cifar.py
zmxdream/FlexFlow
7ea50d71a02e853af7ae573d88c911511b3e82e0
[ "Apache-2.0" ]
136
2019-04-19T08:24:27.000Z
2022-03-28T01:39:19.000Z
python/flexflow/keras/datasets/cifar.py
zmxdream/FlexFlow
7ea50d71a02e853af7ae573d88c911511b3e82e0
[ "Apache-2.0" ]
102
2018-12-22T07:38:05.000Z
2022-03-30T06:04:39.000Z
# -*- coding: utf-8 -*- """Utilities common to CIFAR10 and CIFAR100 datasets. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys from six.moves import cPickle def load_batch(fpath, label_key='labels'): """Internal utility for parsing CIFAR ...
26.081081
53
0.586528
126
965
4.31746
0.547619
0.055147
0.088235
0.047794
0
0
0
0
0
0
0
0.022355
0.304663
965
37
54
26.081081
0.788376
0.295337
0
0
0
0
0.032864
0
0
0
0
0
0
1
0.052632
false
0
0.263158
0
0.368421
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a96000d55f22510def511958af1f99b01dba806
523
py
Python
day7/p2.py
Seralpa/Advent-of-code
9633624e4ff48c50d8be3deac54c83059e9c3b04
[ "MIT" ]
1
2020-12-18T16:06:25.000Z
2020-12-18T16:06:25.000Z
day7/p2.py
Seralpa/Advent-of-code
9633624e4ff48c50d8be3deac54c83059e9c3b04
[ "MIT" ]
null
null
null
day7/p2.py
Seralpa/Advent-of-code
9633624e4ff48c50d8be3deac54c83059e9c3b04
[ "MIT" ]
null
null
null
def getNumBags(color): if color=='': return 0 numBags=1 for bag in rules[color]: numBags+=bag[1]*getNumBags(bag[0]) return numBags with open('day7/input.txt') as f: rules=dict([l.split(' contain') for l in f.read().replace(' bags', '').replace(' bag', '').replace('.', '').replace(' ...
40.230769
153
0.596558
79
523
3.949367
0.506329
0.067308
0.044872
0
0
0
0
0
0
0
0
0.02331
0.179732
523
13
154
40.230769
0.703963
0.059273
0
0
0
0
0.111789
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.25
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a9611abd97c536f926ca250cbefadb44ebcbbc2
471
py
Python
adv/luther.py
6tennis/dl
69eb7e71da9fabe9e7ec40c461b525b4f967f345
[ "Apache-2.0" ]
null
null
null
adv/luther.py
6tennis/dl
69eb7e71da9fabe9e7ec40c461b525b4f967f345
[ "Apache-2.0" ]
null
null
null
adv/luther.py
6tennis/dl
69eb7e71da9fabe9e7ec40c461b525b4f967f345
[ "Apache-2.0" ]
null
null
null
from core.advbase import * from slot.d import * def module(): return Luther class Luther(Adv): a1 = ('cc',0.10,'hit15') conf = {} conf ['slots.d'] = Leviathan() conf['acl'] = """ `dragon `s1 `s2, seq=5 and cancel `s3, seq=5 and cancel or fsc `fs, seq=5 ...
20.478261
44
0.552017
64
471
3.875
0.703125
0.048387
0.056452
0.104839
0
0
0
0
0
0
0
0.035821
0.288747
471
23
45
20.478261
0.704478
0
0
0
0
0
0.336864
0
0
0
0
0
0
1
0.052632
false
0
0.157895
0.052632
0.473684
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
6a9615693970b5561756763d7533ebc0f325ce0c
21,646
py
Python
wandb/sdk/data_types/image.py
macio232/client
295380c99b1a0946470672d40348b17a674ad17f
[ "MIT" ]
null
null
null
wandb/sdk/data_types/image.py
macio232/client
295380c99b1a0946470672d40348b17a674ad17f
[ "MIT" ]
null
null
null
wandb/sdk/data_types/image.py
macio232/client
295380c99b1a0946470672d40348b17a674ad17f
[ "MIT" ]
null
null
null
import hashlib from io import BytesIO import logging import os from typing import Any, cast, Dict, List, Optional, Sequence, Type, TYPE_CHECKING, Union from pkg_resources import parse_version import wandb from wandb import util from ._private import MEDIA_TMP from .base_types.media import BatchableMedia, Media from ....
36.688136
119
0.572438
2,602
21,646
4.567256
0.154112
0.01969
0.013632
0.007152
0.241669
0.186974
0.171491
0.153315
0.146415
0.141535
0
0.007541
0.326111
21,646
589
120
36.750424
0.807157
0.130832
0
0.205357
0
0
0.09162
0.002533
0
0
0
0.003396
0
1
0.049107
false
0.002232
0.044643
0.006696
0.169643
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
6a961a7708b268c3d81ea73ab8b93515bd578d6c
669
py
Python
src/ACC_Backend_Utils.py
skostic14/isda-racing-backend
41b5f9760dc17a29aa8ab5e4cc1894a27496a72c
[ "Apache-2.0" ]
1
2021-07-29T05:29:06.000Z
2021-07-29T05:29:06.000Z
src/ACC_Backend_Utils.py
skostic14/isda-racing-backend
41b5f9760dc17a29aa8ab5e4cc1894a27496a72c
[ "Apache-2.0" ]
null
null
null
src/ACC_Backend_Utils.py
skostic14/isda-racing-backend
41b5f9760dc17a29aa8ab5e4cc1894a27496a72c
[ "Apache-2.0" ]
null
null
null
import datetime # Gets time from milliseconds # Returns string formatted as HH:MM:SS:mmm, MM:SS:mmm or S:mmm, depending on the time. def get_time_from_milliseconds(milli): milliseconds = milli % 1000 seconds= (milli//1000)%60 minutes= (milli//(1000*60))%60 hours= (milli//(1000*60*60))%24 if hours...
35.210526
87
0.651719
95
669
4.536842
0.442105
0.083527
0.076566
0.060325
0.143852
0
0
0
0
0
0
0.085343
0.19432
669
19
88
35.210526
0.714286
0.230194
0
0
0
0
0.09375
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0.076923
0.538462
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
6a961b6b72524b941aa7777c8c1e4c9ea87f76f0
2,721
py
Python
examples/advanced/pidigits.py
ovolve/sympy
0a15782f20505673466b940454b33b8014a25c13
[ "BSD-3-Clause" ]
3
2015-01-17T23:15:04.000Z
2015-05-26T14:11:44.000Z
examples/advanced/pidigits.py
ovolve/sympy
0a15782f20505673466b940454b33b8014a25c13
[ "BSD-3-Clause" ]
7
2015-03-23T23:33:02.000Z
2019-02-09T00:19:41.000Z
examples/advanced/pidigits.py
ovolve/sympy
0a15782f20505673466b940454b33b8014a25c13
[ "BSD-3-Clause" ]
1
2019-10-18T12:39:41.000Z
2019-10-18T12:39:41.000Z
#!/usr/bin/env python """Pi digits example Example shows arbitrary precision using mpmath with the computation of the digits of pi. """ from mpmath import libmp, pi from mpmath import functions as mpf_funs import math from time import clock import sys def display_fraction(digits, skip=0, colwidth=10, columns=5): ...
30.233333
119
0.602352
374
2,721
4.323529
0.347594
0.024737
0.018553
0.022263
0.092764
0
0
0
0
0
0
0.024863
0.260933
2,721
89
120
30.573034
0.779214
0.108416
0
0.134328
0
0.014925
0.170905
0
0
0
0
0
0
1
0.059701
false
0
0.074627
0
0.134328
0.208955
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6a975a412e5d4fce44f6c3c23326742e66d78cbe
1,272
py
Python
authserver/mailauth/migrations/0011_mnserviceuser.py
yopiti/authserver
0a1f7f5a83d03963d1ecfb5199be8e05d3068dfd
[ "MIT" ]
8
2017-07-04T10:07:32.000Z
2022-01-02T10:31:43.000Z
authserver/mailauth/migrations/0011_mnserviceuser.py
yopiti/authserver
0a1f7f5a83d03963d1ecfb5199be8e05d3068dfd
[ "MIT" ]
14
2020-02-11T21:42:38.000Z
2022-03-28T16:00:55.000Z
authserver/mailauth/migrations/0011_mnserviceuser.py
yopiti/authserver
0a1f7f5a83d03963d1ecfb5199be8e05d3068dfd
[ "MIT" ]
1
2020-03-01T10:39:28.000Z
2020-03-01T10:39:28.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-03-13 00:16 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import mailauth.models import uuid class Migration(migrations.Migration): dependencies = [ ...
36.342857
118
0.633648
133
1,272
5.894737
0.556391
0.070153
0.035714
0.056122
0
0
0
0
0
0
0
0.032124
0.241352
1,272
34
119
37.411765
0.780311
0.054245
0
0
1
0
0.125833
0.019167
0
0
0
0
0
1
0
false
0.074074
0.222222
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
6a97a004a7c418b0d32aaf5764a1c6b24a50f26a
10,580
py
Python
tempest/hacking/checks.py
rishabh20111990/tempest
df15531cd4231000b0da016f5cd8641523ce984e
[ "Apache-2.0" ]
2
2015-08-13T00:07:49.000Z
2020-08-07T06:38:44.000Z
tempest/hacking/checks.py
rishabh20111990/tempest
df15531cd4231000b0da016f5cd8641523ce984e
[ "Apache-2.0" ]
null
null
null
tempest/hacking/checks.py
rishabh20111990/tempest
df15531cd4231000b0da016f5cd8641523ce984e
[ "Apache-2.0" ]
3
2016-08-30T06:53:54.000Z
2021-03-22T16:54:39.000Z
# Copyright 2013 IBM Corp. # # 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 wri...
31.963746
79
0.636578
1,338
10,580
4.85426
0.189088
0.047421
0.036952
0.015242
0.36736
0.288068
0.182448
0.162125
0.105158
0.091917
0
0.017672
0.261909
10,580
330
80
32.060606
0.814061
0.180246
0
0.356757
0
0
0.226009
0.061295
0
0
0
0
0
1
0.086486
false
0
0.064865
0
0.302703
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
6a98547230e4cc83fa248137ca0fde09ebb67dcf
1,018
py
Python
data/train/python/6a98547230e4cc83fa248137ca0fde09ebb67dcfController.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/python/6a98547230e4cc83fa248137ca0fde09ebb67dcfController.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/python/6a98547230e4cc83fa248137ca0fde09ebb67dcfController.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
import SimpleXMLRPCServer import sys import logging from K8055Controller import K8055Controller logging.basicConfig() controller_log = logging.getLogger("Controller") class Controller: def __init__(self): self.k8055 = K8055Controller() controller_log.debug("initialized") def reset(s...
24.829268
77
0.634578
118
1,018
5.322034
0.364407
0.085987
0.11465
0.044586
0.175159
0
0
0
0
0
0
0.067639
0.259332
1,018
41
78
24.829268
0.765252
0
0
0.125
0
0
0.068695
0
0
0
0
0
0
1
0.15625
false
0
0.125
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
0
0
0
0
1
0
6a98f5590ec68008681144a3cad2ee8a6d9f0359
55
py
Python
model/__init__.py
sun1638650145/CRNN
485157e5803b9be861a63ebb04f04fccb16ef5f1
[ "Apache-2.0" ]
11
2020-09-18T02:35:48.000Z
2022-02-26T21:31:55.000Z
model/__init__.py
sun1638650145/CRNN
485157e5803b9be861a63ebb04f04fccb16ef5f1
[ "Apache-2.0" ]
null
null
null
model/__init__.py
sun1638650145/CRNN
485157e5803b9be861a63ebb04f04fccb16ef5f1
[ "Apache-2.0" ]
null
null
null
from .crnn import CRNN from .crnn import CRNN_Attention
27.5
32
0.836364
9
55
5
0.444444
0.355556
0.622222
0.8
0
0
0
0
0
0
0
0
0.127273
55
2
32
27.5
0.9375
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
6a9907c6e19624e9a00da0b3cff99ba87e746680
3,206
py
Python
models2.py
Lydia-Tan/MindLife
644f1a3834f337d51c99650c3924df99c5200d06
[ "MIT" ]
1
2020-01-20T19:49:07.000Z
2020-01-20T19:49:07.000Z
models2.py
lindaweng/Mindlife
30be070b39728fb3fe149d4c95e5bce280a3b6a7
[ "MIT" ]
null
null
null
models2.py
lindaweng/Mindlife
30be070b39728fb3fe149d4c95e5bce280a3b6a7
[ "MIT" ]
null
null
null
import nltk import re import sys from sys import argv from nltk.sentiment.vader import SentimentIntensityAnalyzer def ajay(ans): ajay = SentimentIntensityAnalyzer() completeScore = 0 questionWeights = [0.05, 0.20, 0.05, 0.05, 0.05, 0.20, 0.05, 0.05, 0.20, 0.10] print ans ansList = ans.split("$") ...
51.709677
98
0.585153
379
3,206
4.94723
0.490765
0.0096
0.0128
0.042667
0.014933
0.014933
0.014933
0.013333
0.013333
0
0
0.020648
0.335309
3,206
62
99
51.709677
0.859221
0.033063
0
0
0
0
0.510204
0
0
0
0
0
0
0
null
null
0
0.092593
null
null
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6a9a4141ccd8a77a2a296371f9b8eb6510494db4
1,487
py
Python
tokendito/tool.py
pcmxgti/tokendito
c1672917b1b95e463c5bdf8e9c3c039189da8e42
[ "Apache-2.0" ]
40
2019-07-31T03:21:03.000Z
2022-03-29T23:57:19.000Z
tokendito/tool.py
pcmxgti/tokendito
c1672917b1b95e463c5bdf8e9c3c039189da8e42
[ "Apache-2.0" ]
27
2019-08-07T06:40:15.000Z
2022-03-21T18:46:49.000Z
tokendito/tool.py
pcmxgti/tokendito
c1672917b1b95e463c5bdf8e9c3c039189da8e42
[ "Apache-2.0" ]
16
2019-07-31T14:22:04.000Z
2022-02-16T12:55:27.000Z
# vim: set filetype=python ts=4 sw=4 # -*- coding: utf-8 -*- """This module retrieves AWS credentials after authenticating with Okta.""" from __future__ import absolute_import, division, print_function, unicode_literals import logging from future import standard_library from tokendito import aws_helpers from tokendit...
31.638298
88
0.774042
190
1,487
5.784211
0.442105
0.029117
0.069154
0.076433
0.263876
0.216561
0.216561
0.10737
0
0
0
0.002414
0.164089
1,487
46
89
32.326087
0.881738
0.228648
0
0
0
0
0.090989
0
0
0
0
0
0
1
0.038462
false
0.038462
0.269231
0
0.307692
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a9b47904f23c1124cf4fbc27654a8fe5f3b7493
42
py
Python
resources/__init__.py
Boryslavq/UHMI_Chalenge
4b7df902c0a0901c727a6fb26347dabca1067494
[ "MIT" ]
null
null
null
resources/__init__.py
Boryslavq/UHMI_Chalenge
4b7df902c0a0901c727a6fb26347dabca1067494
[ "MIT" ]
null
null
null
resources/__init__.py
Boryslavq/UHMI_Chalenge
4b7df902c0a0901c727a6fb26347dabca1067494
[ "MIT" ]
null
null
null
from . import rest from . import helpers
14
22
0.738095
6
42
5.166667
0.666667
0.645161
0
0
0
0
0
0
0
0
0
0
0.214286
42
2
23
21
0.939394
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
6a9c07074d315021100d6322a18c6bc3087be1db
15,833
py
Python
ir_datasets/formats/trec.py
cakiki/ir_datasets
7f9f8e9ff62e49d40383220ecc2daa250695d267
[ "Apache-2.0" ]
null
null
null
ir_datasets/formats/trec.py
cakiki/ir_datasets
7f9f8e9ff62e49d40383220ecc2daa250695d267
[ "Apache-2.0" ]
null
null
null
ir_datasets/formats/trec.py
cakiki/ir_datasets
7f9f8e9ff62e49d40383220ecc2daa250695d267
[ "Apache-2.0" ]
null
null
null
import io import codecs import tarfile import re import gzip import xml.etree.ElementTree as ET from fnmatch import fnmatch from pathlib import Path from typing import NamedTuple import ir_datasets from ir_datasets.indices import PickleLz4FullStore from .base import GenericDoc, GenericQuery, GenericScoredDoc, BaseDocs,...
38.429612
284
0.55978
1,860
15,833
4.52043
0.130108
0.02676
0.028306
0.022479
0.489653
0.442793
0.410442
0.393911
0.373335
0.354781
0
0.002943
0.334681
15,833
411
285
38.523114
0.795234
0.0108
0
0.439437
0
0.005634
0.077095
0.010731
0
0
0
0
0.005634
1
0.112676
false
0
0.033803
0.061972
0.312676
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
6a9c552700ad0a75cac33278ee8dc5a5139c2432
844
py
Python
textpand/download.py
caufieldjh/textpand-for-kgs
42853c53c5a4cc06fbd745c147d02fe7916690fa
[ "BSD-3-Clause" ]
3
2021-12-10T21:13:47.000Z
2021-12-10T23:36:18.000Z
textpand/download.py
caufieldjh/textpand-for-kgs
42853c53c5a4cc06fbd745c147d02fe7916690fa
[ "BSD-3-Clause" ]
1
2022-01-06T20:59:07.000Z
2022-01-06T20:59:07.000Z
textpand/download.py
caufieldjh/textpand-for-kgs
42853c53c5a4cc06fbd745c147d02fe7916690fa
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from .utils import download_from_yaml def download(output_dir: str, snippet_only: bool, ignore_cache: bool = False) -> None: """Downloads data files from list of URLs (default: download.yaml) into data directory (default: data/). Args: output_dir: A str...
31.259259
108
0.625592
107
844
4.775701
0.523364
0.107632
0.062622
0.086106
0
0
0
0
0
0
0
0.003367
0.296209
844
26
109
32.461538
0.856902
0.491706
0
0
0
0
0.033079
0
0
0
0
0
0
1
0.125
false
0
0.125
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
6a9cb003c79f63e5985173912dffc928314248d4
6,770
py
Python
venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_autosupport_invoke.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_autosupport_invoke.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_autosupport_invoke.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # (c) 2020, NetApp, Inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ''' na_ontap_autosupport_invoke ''' from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.1', 's...
34.365482
109
0.644018
816
6,770
5.121324
0.264706
0.034219
0.021536
0.022733
0.24001
0.152668
0.135918
0.116774
0.104092
0.056234
0
0.005343
0.253619
6,770
196
110
34.540816
0.82169
0.042393
0
0.167742
0
0
0.275793
0.030317
0
0
0
0
0
1
0.045161
false
0.012903
0.045161
0
0.109677
0.006452
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6a9cd0c545ed5aa451bbc0bc26a2e800d471ecd0
304
py
Python
tests/api/serializer/test_user.py
armandomeeuwenoord/freight
31ae2fa9252ab0b25385abd04742475e6671e3b1
[ "Apache-2.0" ]
562
2015-02-20T08:25:24.000Z
2021-11-12T19:58:44.000Z
tests/api/serializer/test_user.py
armandomeeuwenoord/freight
31ae2fa9252ab0b25385abd04742475e6671e3b1
[ "Apache-2.0" ]
129
2015-02-20T07:41:14.000Z
2022-02-17T21:14:40.000Z
tests/api/serializer/test_user.py
armandomeeuwenoord/freight
31ae2fa9252ab0b25385abd04742475e6671e3b1
[ "Apache-2.0" ]
54
2015-02-28T01:12:23.000Z
2021-03-02T11:14:52.000Z
from freight.api.serializer import serialize from freight.testutils import TestCase class UserSerializerTest(TestCase): def test_simple(self): user = self.create_user() result = serialize(user) assert result["id"] == str(user.id) assert result["name"] == user.name
25.333333
44
0.680921
36
304
5.694444
0.583333
0.107317
0
0
0
0
0
0
0
0
0
0
0.213816
304
11
45
27.636364
0.857741
0
0
0
0
0
0.019737
0
0
0
0
0
0.25
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a9cdc6c74a18d65dd44c9480dd5e3953a78dd18
1,639
py
Python
binning/pozo_5m_class_dem.py
UP-RS-ESP/GEW-DAP04-WS201819
18341620d9168e1eec476af1d8f568cf0017bf56
[ "MIT" ]
2
2020-10-12T11:33:00.000Z
2021-12-20T06:33:54.000Z
binning/pozo_5m_class_dem.py
UP-RS-ESP/GEW-DAP04-WS201819
18341620d9168e1eec476af1d8f568cf0017bf56
[ "MIT" ]
null
null
null
binning/pozo_5m_class_dem.py
UP-RS-ESP/GEW-DAP04-WS201819
18341620d9168e1eec476af1d8f568cf0017bf56
[ "MIT" ]
null
null
null
import sys import numpy as np from matplotlib import pyplot as pl from rw import WriteGTiff fn = '../pozo-steep-vegetated-pcl.npy' pts = np.load(fn) x, y, z, c = pts[:, 0], pts[:, 1], pts[:, 2], pts[:, 5] ix = (0.2 * (x - x.min())).astype('int') iy = (0.2 * (y - y.min())).astype('int') shape = (100, 100) xb = np.aran...
30.351852
59
0.52349
287
1,639
2.916376
0.344948
0.021505
0.019116
0.021505
0.203106
0.160096
0.121864
0.076464
0
0
0
0.040765
0.266626
1,639
53
60
30.924528
0.655574
0
0
0
0
0
0.110433
0.064674
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6a9cfc593e93acc1f1c0f3afda04be08e714940c
2,228
py
Python
comtypes/_meta.py
phuslu/pyMSAA
611bc4c31e0d6ba36f0f0bebdc6e6be14b994eb0
[ "MIT" ]
23
2015-05-28T15:31:35.000Z
2022-02-16T07:51:34.000Z
comtypes/_meta.py
kar98kar/pyMSAA
611bc4c31e0d6ba36f0f0bebdc6e6be14b994eb0
[ "MIT" ]
3
2020-05-19T03:00:52.000Z
2020-11-03T09:22:51.000Z
comtypes/_meta.py
kar98kar/pyMSAA
611bc4c31e0d6ba36f0f0bebdc6e6be14b994eb0
[ "MIT" ]
13
2016-08-26T23:00:40.000Z
2022-03-03T09:58:36.000Z
# comtypes._meta helper module from ctypes import POINTER, c_void_p, cast import comtypes ################################################################ # metaclass for CoClass (in comtypes/__init__.py) def _wrap_coclass(self): # We are an IUnknown pointer, represented as a c_void_p instance, # but...
35.935484
85
0.601436
267
2,228
4.64794
0.389513
0.024174
0.029009
0.037067
0.038678
0
0
0
0
0
0
0.001266
0.290844
2,228
61
86
36.52459
0.784177
0.342908
0
0.066667
0
0
0.056274
0.018251
0
0
0
0
0
1
0.1
false
0.033333
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a9d299ac035789dcfbdc5b67b56e5ebe19176e2
33,321
py
Python
bin/ADFRsuite/CCSBpckgs/mglutil/gui/BasicWidgets/Tk/Dial.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/mglutil/gui/BasicWidgets/Tk/Dial.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/mglutil/gui/BasicWidgets/Tk/Dial.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
################################################################################ ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your op...
36.376638
87
0.547643
3,868
33,321
4.706825
0.152792
0.046523
0.004779
0.005273
0.32341
0.297484
0.258376
0.209162
0.176261
0.161046
0
0.018954
0.333393
33,321
915
88
36.416393
0.800693
0.101378
0
0.279534
0
0
0.064124
0
0
0
0
0.001093
0.023295
0
null
null
0
0.016639
null
null
0.023295
0
0
0
null
0
0
0
0
0
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
6a9d42bd307c1507375c76e403f46b3901bbf76d
3,560
py
Python
qt-creator-opensource-src-4.6.1/scripts/checkInstalledFiles.py
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
[ "MIT" ]
5
2018-12-22T14:49:13.000Z
2022-01-13T07:21:46.000Z
qt-creator-opensource-src-4.6.1/scripts/checkInstalledFiles.py
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
[ "MIT" ]
null
null
null
qt-creator-opensource-src-4.6.1/scripts/checkInstalledFiles.py
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
[ "MIT" ]
8
2018-07-17T03:55:48.000Z
2021-12-22T06:37:53.000Z
#!/usr/bin/env python ############################################################################ # # Copyright (C) 2016 The Qt Company Ltd. # Contact: https://www.qt.io/licensing/ # # This file is part of Qt Creator. # # Commercial License Usage # Licensees holding valid commercial Qt licenses may use this file in #...
31.504425
136
0.608989
439
3,560
4.91344
0.416856
0.016226
0.013908
0.01669
0.024108
0
0
0
0
0
0
0.008453
0.235674
3,560
112
137
31.785714
0.78427
0.290169
0
0.123288
0
0
0.100851
0
0
0
0
0
0
0
null
null
0
0.082192
null
null
0.068493
0
0
0
null
0
0
0
0
0
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
6a9da9d2fe8534cba2998ec7d3c2190abe55abec
5,190
py
Python
deep_sdf/workspace.py
huajian1069/non-convex_optimisation
cf4cd5070524c3f7e6b814fe9b85a15a06e7b8db
[ "MIT" ]
2
2020-10-12T19:22:50.000Z
2021-08-21T21:48:27.000Z
deep_sdf/workspace.py
huajian1069/non-convex_optimisation
cf4cd5070524c3f7e6b814fe9b85a15a06e7b8db
[ "MIT" ]
13
2020-04-17T09:07:06.000Z
2020-07-25T19:43:44.000Z
deep_sdf/workspace.py
huajian1069/non-convex-optimisation
cf4cd5070524c3f7e6b814fe9b85a15a06e7b8db
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2004-present Facebook. All Rights Reserved. import json import os import torch model_params_subdir = "ModelParameters" optimizer_params_subdir = "OptimizerParameters" latent_codes_subdir = "LatentCodes" logs_filename = "Logs.pth" reconstructions_subdir = "Reconstructions" reconstruc...
25.566502
82
0.7158
608
5,190
5.807566
0.205592
0.030586
0.031153
0.050977
0.464741
0.435004
0.337581
0.306429
0.29595
0.29595
0
0.001431
0.1921
5,190
202
83
25.693069
0.840687
0.014451
0
0.315385
0
0
0.110307
0.004498
0
0
0
0
0
1
0.1
false
0
0.030769
0.030769
0.238462
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
6a9e779e59feb114fa5c597307d0f0ba536c3a82
1,571
py
Python
EmoPy/EmoPy/examples/convolutional_dropout_model.py
Rahmatullina/FinalYearProject
326f521b9f600dbbc7ace2223bd5aafc79b2267c
[ "Apache-2.0" ]
null
null
null
EmoPy/EmoPy/examples/convolutional_dropout_model.py
Rahmatullina/FinalYearProject
326f521b9f600dbbc7ace2223bd5aafc79b2267c
[ "Apache-2.0" ]
9
2020-09-26T01:09:35.000Z
2022-02-10T01:32:30.000Z
EmoPy/EmoPy/examples/convolutional_dropout_model.py
Rahmatullina/FinalYearProject
326f521b9f600dbbc7ace2223bd5aafc79b2267c
[ "Apache-2.0" ]
null
null
null
from EmoPy.src.fermodel import FERModel from EmoPy.src.directory_data_loader import DirectoryDataLoader from EmoPy.src.csv_data_loader import CSVDataLoader from EmoPy.src.data_generator import DataGenerator from EmoPy.src.neuralnets import ConvolutionalNNDropout from sklearn.model_selection import train_test_split impo...
38.317073
121
0.789306
200
1,571
5.915
0.385
0.038039
0.050719
0.037194
0.062553
0.062553
0.062553
0
0
0
0
0.011315
0.099936
1,571
40
122
39.275
0.825318
0.091661
0
0
0
0
0.122191
0.023174
0
0
0
0
0
1
0
false
0
0.275862
0
0.275862
0.172414
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6a9f3ae293c23801e109a6d38cb1d3e6cf12238a
189
py
Python
ENV/lib/python3.6/site-packages/pyramid_jinja2/tests/extensions.py
captain-c00keys/pyramid-stocks
0acf3363a6a7ee61cd41b855f43c9d6f9582ae6a
[ "MIT" ]
null
null
null
ENV/lib/python3.6/site-packages/pyramid_jinja2/tests/extensions.py
captain-c00keys/pyramid-stocks
0acf3363a6a7ee61cd41b855f43c9d6f9582ae6a
[ "MIT" ]
null
null
null
ENV/lib/python3.6/site-packages/pyramid_jinja2/tests/extensions.py
captain-c00keys/pyramid-stocks
0acf3363a6a7ee61cd41b855f43c9d6f9582ae6a
[ "MIT" ]
null
null
null
from jinja2 import nodes from jinja2.ext import Extension class TestExtension(Extension): tags = {'test_ext'} def parse(self, parser): return nodes.Const("This is test extension")
27
73
0.746032
26
189
5.384615
0.692308
0.142857
0
0
0
0
0
0
0
0
0
0.012579
0.15873
189
6
74
31.5
0.867925
0
0
0
0
0
0.15873
0
0
0
0
0
0
1
0.2
false
0
0.4
0.2
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
1
1
0
0
5
6a9f71d63576d36e576c5ed1a561ba09b6a33e88
45,622
py
Python
deepstream_ignition_usb_yolo.py
valdivj/Deepstream-IGN-Maker-YOLO
f38ece731e9797a525da932c3da2de77e48f45af
[ "Unlicense" ]
18
2021-02-09T11:07:57.000Z
2022-03-16T12:35:34.000Z
deepstream_ignition_usb_yolo.py
valdivj/Deepstream-IGN-Maker-YOLO
f38ece731e9797a525da932c3da2de77e48f45af
[ "Unlicense" ]
null
null
null
deepstream_ignition_usb_yolo.py
valdivj/Deepstream-IGN-Maker-YOLO
f38ece731e9797a525da932c3da2de77e48f45af
[ "Unlicense" ]
3
2021-02-11T00:23:56.000Z
2021-11-16T02:15:37.000Z
#!/usr/bin/env python3 ################################################################################ # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"),...
46.410987
849
0.645829
5,676
45,622
5.037703
0.141473
0.039903
0.062321
0.033154
0.495524
0.41827
0.38585
0.351193
0.345632
0.326467
0
0.026393
0.242602
45,622
982
850
46.458248
0.801123
0.260883
0
0.109855
0
0
0.134868
0.002756
0
0
0
0.001018
0
1
0.012924
false
0.004847
0.021002
0
0.090469
0.051696
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6a9fcd8ecc089595a2ffc3a48b4ee67000ac218d
799
py
Python
src/pyams_i18n/tests/__init__.py
Py-AMS/pyams-i18n
dbb3953302311977653145385af02e4d1ae41431
[ "ZPL-2.1" ]
null
null
null
src/pyams_i18n/tests/__init__.py
Py-AMS/pyams-i18n
dbb3953302311977653145385af02e4d1ae41431
[ "ZPL-2.1" ]
null
null
null
src/pyams_i18n/tests/__init__.py
Py-AMS/pyams-i18n
dbb3953302311977653145385af02e4d1ae41431
[ "ZPL-2.1" ]
null
null
null
# # Copyright (c) 2015-2019 Thierry Florac <tflorac AT ulthar.net> # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
26.633333
75
0.740926
116
799
5.008621
0.681034
0.086059
0.048193
0
0
0
0
0
0
0
0
0.019817
0.178974
799
29
76
27.551724
0.865854
0.664581
0
0
0
0
0.065306
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a9fd697438b33b3c4d1fb77bd83291ab92dfcca
1,811
py
Python
tests/test_custom_experts.py
protagohhz/hivemind
487fb68feea4d27ede0afdef211f6edc889b1a9e
[ "MIT" ]
1,026
2020-06-04T05:02:30.000Z
2022-03-29T13:05:04.000Z
tests/test_custom_experts.py
mryab/hivemind
595b831bcaac6b4d8da215de70b8138ac548c562
[ "MIT" ]
301
2020-04-04T14:26:49.000Z
2022-03-19T15:25:39.000Z
tests/test_custom_experts.py
learning-at-home/tesseract
c6b2b2d84ccfc890314a2bfece8eef238372d410
[ "MIT" ]
89
2020-04-16T19:39:29.000Z
2022-03-25T17:32:43.000Z
import os import pytest import torch from hivemind import RemoteExpert from hivemind.moe.server import background_server CUSTOM_EXPERTS_PATH = os.path.join(os.path.dirname(__file__), "test_utils", "custom_networks.py") @pytest.mark.forked def test_custom_expert(hid_dim=16): with background_server( expe...
27.439394
97
0.600773
208
1,811
4.966346
0.283654
0.046467
0.058083
0.073572
0.797677
0.753146
0.710552
0.710552
0.710552
0.627299
0
0.026751
0.298178
1,811
65
98
27.861538
0.785995
0
0
0.615385
0
0
0.046935
0
0
0
0
0
0
1
0.038462
false
0
0.096154
0
0.134615
0
0
0
0
null
0
0
0
0
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
5
6aa02482ee4345f8d62c98b8785e029ed85945dd
1,639
py
Python
tqsdk/demo/example/momentum.py
boyscout2008/tqsdk-python
79496a938a44f79ea9164569637509d0cc7db70a
[ "Apache-2.0" ]
null
null
null
tqsdk/demo/example/momentum.py
boyscout2008/tqsdk-python
79496a938a44f79ea9164569637509d0cc7db70a
[ "Apache-2.0" ]
null
null
null
tqsdk/demo/example/momentum.py
boyscout2008/tqsdk-python
79496a938a44f79ea9164569637509d0cc7db70a
[ "Apache-2.0" ]
1
2020-11-20T01:19:11.000Z
2020-11-20T01:19:11.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = "Ringo" ''' 价格动量 策略 (难度:初级) 参考: https://www.shinnytech.com/blog/momentum-strategy/ 注: 该示例策略仅用于功能示范, 实盘时请根据自己的策略/经验进行修改 ''' from tqsdk import TqAccount, TqApi, TargetPosTask # 设置指定合约,获取N条K线计算价格动量 SYMBOL = "SHFE.au1912" N = 15 api = TqApi() klines = api.get_...
26.015873
90
0.621721
216
1,639
4.560185
0.523148
0.040609
0.036548
0.054822
0.117767
0.054822
0
0
0
0
0
0.064673
0.245272
1,639
62
91
26.435484
0.731609
0.145821
0
0.058824
0
0
0.065882
0
0
0
0
0
0
1
0.029412
false
0
0.029412
0
0.088235
0.147059
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6aa1d7c9f54267d6e42717a153600f7e111a7f9f
10,323
py
Python
color_transfer/__init__.py
AdamSpannbauer/color_transfer
155e0134615f35bf19bf32f4cacf056603604914
[ "MIT" ]
null
null
null
color_transfer/__init__.py
AdamSpannbauer/color_transfer
155e0134615f35bf19bf32f4cacf056603604914
[ "MIT" ]
null
null
null
color_transfer/__init__.py
AdamSpannbauer/color_transfer
155e0134615f35bf19bf32f4cacf056603604914
[ "MIT" ]
1
2020-11-05T17:35:14.000Z
2020-11-05T17:35:14.000Z
# import the necessary packages import numpy as np import cv2 import imutils def color_transfer(source, target, clip=True, preserve_paper=True): """ Transfers the color distribution from the source to the target image using the mean and standard deviations of the L*a*b* color space. This implemen...
36.477032
105
0.657173
1,447
10,323
4.569454
0.213545
0.040835
0.048699
0.025408
0.277374
0.202511
0.161978
0.161978
0.156534
0.148367
0
0.032266
0.252446
10,323
282
106
36.606383
0.824543
0.473215
0
0.163462
0
0
0.013559
0
0
0
0
0
0
1
0.067308
false
0
0.028846
0.009615
0.163462
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
6aa21222a53d441e6c157bad6965004f0771b6e4
250
py
Python
Python/Tree/TestCreateTreeLibraryImport.py
zseen/hackerrank-challenges
c154f039f58073ee3d94d012462c7055e68784b2
[ "MIT" ]
null
null
null
Python/Tree/TestCreateTreeLibraryImport.py
zseen/hackerrank-challenges
c154f039f58073ee3d94d012462c7055e68784b2
[ "MIT" ]
null
null
null
Python/Tree/TestCreateTreeLibraryImport.py
zseen/hackerrank-challenges
c154f039f58073ee3d94d012462c7055e68784b2
[ "MIT" ]
null
null
null
from Library.CreateATree import CreateATree tree = CreateATree.BinarySearchTree() nodesList = list((4, 5, 1, 3, 2)) for i in range(0, len(nodesList)): tree.insert(nodesList[i]) #tree.printInorder() tree.printPreorder() #tree.printPostorder()
19.230769
43
0.732
32
250
5.71875
0.71875
0
0
0
0
0
0
0
0
0
0
0.027397
0.124
250
12
44
20.833333
0.808219
0.16
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aa25f7e4d64679c81ca1e60dffb6ddf922f9c4c
522
py
Python
application/siteApp/urls.py
Marcelotsvaz/vaz-projects
8ccc0bf8d25f9276714e1e5ecb0a4e80f07442b4
[ "Unlicense" ]
null
null
null
application/siteApp/urls.py
Marcelotsvaz/vaz-projects
8ccc0bf8d25f9276714e1e5ecb0a4e80f07442b4
[ "Unlicense" ]
null
null
null
application/siteApp/urls.py
Marcelotsvaz/vaz-projects
8ccc0bf8d25f9276714e1e5ecb0a4e80f07442b4
[ "Unlicense" ]
null
null
null
# # VAZ Projects # # # Author: Marcelo Tellier Sartori Vaz <marcelotsvaz@gmail.com> from django.urls import path from . import views app_name = 'siteApp' urlpatterns = [ path( '', views.Home.as_view(), name = 'home' ), path( 'about-me', views.About_me.as_view(), name = 'about_me' ), path( 'searc...
23.727273
77
0.628352
68
522
4.705882
0.426471
0.09375
0.15625
0.10625
0.19375
0.19375
0.19375
0
0
0
0
0
0.189655
522
22
78
23.727273
0.756501
0.143678
0
0
0
0
0.192744
0.049887
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aa2b3de5b891e225cac65fc5b3ebe31165e5ef6
63
py
Python
svd/core/exc.py
epicosy/svd
baa91f57ee5bd51b0140d9d0b1b97ce39f18acc4
[ "MIT" ]
null
null
null
svd/core/exc.py
epicosy/svd
baa91f57ee5bd51b0140d9d0b1b97ce39f18acc4
[ "MIT" ]
null
null
null
svd/core/exc.py
epicosy/svd
baa91f57ee5bd51b0140d9d0b1b97ce39f18acc4
[ "MIT" ]
null
null
null
class SVDError(Exception): """Generic errors.""" pass
12.6
26
0.619048
6
63
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.222222
63
4
27
15.75
0.795918
0.238095
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
6aa2cafc9ca0f9283336142e3b81fea44a3587b3
1,286
py
Python
Classes/ServiceBase.py
tkeske/SMS-Fetcher
7b3ec0ea4517ad11164b8e2d7ee2c60d2a9f0ed2
[ "BSD-3-Clause" ]
null
null
null
Classes/ServiceBase.py
tkeske/SMS-Fetcher
7b3ec0ea4517ad11164b8e2d7ee2c60d2a9f0ed2
[ "BSD-3-Clause" ]
null
null
null
Classes/ServiceBase.py
tkeske/SMS-Fetcher
7b3ec0ea4517ad11164b8e2d7ee2c60d2a9f0ed2
[ "BSD-3-Clause" ]
null
null
null
''' @author Tomáš Keske @since 10.8.2019 ''' import sys from jnius import autoclass from Conf.Conf import * class ServiceBase(): def __init__(self): PythonServiceClass = autoclass('org.kivy.android.PythonService') self.Context = autoclass('android.content.Context') self.Service = Python...
32.15
98
0.667963
159
1,286
5.377358
0.603774
0.009357
0.011696
0.016374
0
0
0
0
0
0
0
0.008197
0.241058
1,286
40
99
32.15
0.867828
0.301711
0
0
0
0
0.171558
0.059819
0
0
0
0
0
1
0.1
false
0
0.15
0
0.3
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aa359b860399eb8f9859835f9d9ac0f53b4de56
723
py
Python
api/queue/__init__.py
sofia008/api-redis-queue
8d65665c8a9f44990565baa8c7ba43d7f01425d3
[ "Apache-2.0" ]
null
null
null
api/queue/__init__.py
sofia008/api-redis-queue
8d65665c8a9f44990565baa8c7ba43d7f01425d3
[ "Apache-2.0" ]
null
null
null
api/queue/__init__.py
sofia008/api-redis-queue
8d65665c8a9f44990565baa8c7ba43d7f01425d3
[ "Apache-2.0" ]
null
null
null
# api/queue/__init__.py import os from flask import Flask from flask_bootstrap import Bootstrap # instantiate the extensions bootstrap = Bootstrap() def create_app(script_info=None): # instantiate the app app = Flask( __name__, template_folder="../client/templates", static_folder=...
19.026316
51
0.697095
89
723
5.404494
0.47191
0.037422
0
0
0
0
0
0
0
0
0
0
0.214385
723
37
52
19.540541
0.846831
0.200553
0
0
0
0
0.087719
0
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.352941
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aa447f55a379751c7664d4eb5818450b99462c4
2,183
py
Python
tests/test_engine.py
Foxboron/python-adblock
50b2ddba9f7b237b38c848c7d4a1637917444924
[ "Apache-2.0", "MIT" ]
35
2020-06-26T21:06:13.000Z
2022-03-19T10:50:35.000Z
tests/test_engine.py
Foxboron/python-adblock
50b2ddba9f7b237b38c848c7d4a1637917444924
[ "Apache-2.0", "MIT" ]
34
2020-04-27T02:59:40.000Z
2022-03-06T20:55:00.000Z
tests/test_engine.py
Foxboron/python-adblock
50b2ddba9f7b237b38c848c7d4a1637917444924
[ "Apache-2.0", "MIT" ]
6
2020-12-22T21:56:02.000Z
2022-02-16T02:13:21.000Z
import adblock import pytest SMALL_FILTER_LIST = """ ||wikipedia.org^ ||old.reddit.com^ ||lobste.rs^ """ def empty_engine(): return adblock.Engine(adblock.FilterSet()) def test_engine_creation_and_blocking(): filter_set = adblock.FilterSet(debug=True) filter_set.add_filter_list(SMALL_FILTER_LIST) e...
29.106667
78
0.724233
259
2,183
5.864865
0.366795
0.050691
0.04345
0.045425
0.267281
0.154049
0.154049
0
0
0
0
0.005008
0.176821
2,183
74
79
29.5
0.840289
0.045809
0
0.148148
0
0
0.101442
0
0
0
0
0
0.148148
1
0.092593
false
0
0.037037
0.018519
0.148148
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
6aa4b1f3d6675f767aaa7329c04a4c62bcde0e63
232
py
Python
v1/status_updates/urls.py
DucPhamTV/Bank
4905ec7d63ef4daafe2119bf6b32928d4db2d4f2
[ "MIT" ]
94
2020-07-12T23:08:47.000Z
2022-03-05T14:00:01.000Z
v1/status_updates/urls.py
DucPhamTV/Bank
4905ec7d63ef4daafe2119bf6b32928d4db2d4f2
[ "MIT" ]
84
2020-07-13T23:30:50.000Z
2022-03-15T15:47:46.000Z
v1/status_updates/urls.py
DucPhamTV/Bank
4905ec7d63ef4daafe2119bf6b32928d4db2d4f2
[ "MIT" ]
63
2020-07-13T02:46:51.000Z
2021-11-26T09:29:29.000Z
from rest_framework.routers import SimpleRouter from .views.upgrade_notice import UpgradeNoticeViewSet router = SimpleRouter(trailing_slash=False) router.register('upgrade_notice', UpgradeNoticeViewSet, basename='upgrade_notice')
33.142857
82
0.857759
25
232
7.76
0.64
0.201031
0
0
0
0
0
0
0
0
0
0
0.068966
232
6
83
38.666667
0.898148
0
0
0
0
0
0.12069
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
6aa55947380a65f7c24093ff3b3feee2ac3b5948
1,048
py
Python
data_structures/stack/largest_rectangle_area_in_histogram.py
ruler30cm/python-ds
f84605c5b746ea1d46de3d00b86f5fba399445c7
[ "MIT" ]
1,723
2019-07-30T07:06:22.000Z
2022-03-31T15:22:22.000Z
data_structures/stack/largest_rectangle_area_in_histogram.py
ruler30cm/python-ds
f84605c5b746ea1d46de3d00b86f5fba399445c7
[ "MIT" ]
213
2019-10-06T08:07:47.000Z
2021-10-04T15:38:36.000Z
data_structures/stack/largest_rectangle_area_in_histogram.py
ruler30cm/python-ds
f84605c5b746ea1d46de3d00b86f5fba399445c7
[ "MIT" ]
628
2019-10-06T10:26:25.000Z
2022-03-31T01:41:00.000Z
''' Largest rectangle area in a histogram:: Find the largest rectangular area possible in a given histogram where the largest rectangle can be made of a number of contiguous bars. For simplicity, assume that all bars have same width and the width is 1 unit. ''' def max_area_histogram(histogram): stack = list()...
28.324324
136
0.603053
147
1,048
4.176871
0.380952
0.102606
0.065147
0.04886
0.29316
0.29316
0.29316
0.29316
0.29316
0.29316
0
0.021651
0.294847
1,048
36
137
29.111111
0.809202
0.262405
0
0.3
0
0
0.019634
0
0
0
0
0
0
1
0.05
false
0
0
0
0.1
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aa62343269180c72e1026d8bfdc9d3fa9196b1e
7,448
py
Python
gluon/contrib/pbkdf2_ctypes.py
Cwlowe/web2py
6ae4c3c274be1026cbc45b0fcd8d1180c74b9070
[ "BSD-3-Clause" ]
9
2018-04-19T05:08:30.000Z
2021-11-23T07:36:58.000Z
gluon/contrib/pbkdf2_ctypes.py
mohit3011/Quiz-Mate
17988a623abde439aef2b43fc8dc3162b5cae15e
[ "BSD-3-Clause" ]
98
2017-11-02T19:00:44.000Z
2022-03-22T16:15:39.000Z
gluon/contrib/pbkdf2_ctypes.py
mohit3011/Quiz-Mate
17988a623abde439aef2b43fc8dc3162b5cae15e
[ "BSD-3-Clause" ]
9
2017-10-24T21:53:36.000Z
2021-11-23T07:36:59.000Z
# -*- coding: utf-8 -*- """ pbkdf2_ctypes ~~~~~~ Fast pbkdf2. This module implements pbkdf2 for Python using crypto lib from openssl or commoncrypto. Note: This module is intended as a plugin replacement of pbkdf2.py by Armin Ronacher. Git repository: $ git clone https://github.c...
38.194872
88
0.569683
850
7,448
4.732941
0.223529
0.0609
0.041014
0.032811
0.49043
0.434999
0.338553
0.338553
0.272682
0.222719
0
0.034061
0.341702
7,448
194
89
38.391753
0.786457
0.116273
0
0.309353
0
0
0.054685
0
0
0
0
0
0
1
0.057554
false
0.05036
0.064748
0.021583
0.179856
0.014388
0
0
0
null
0
0
0
0
0
0
0
0
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
6aa72ed7ab8eb40be3928ae652b97a0368992b42
2,389
py
Python
auth_backend/src/key_op.py
cispa/bitahoy
ffc2004930a033cfb94d13671bc6068b473ce226
[ "MIT" ]
null
null
null
auth_backend/src/key_op.py
cispa/bitahoy
ffc2004930a033cfb94d13671bc6068b473ce226
[ "MIT" ]
null
null
null
auth_backend/src/key_op.py
cispa/bitahoy
ffc2004930a033cfb94d13671bc6068b473ce226
[ "MIT" ]
2
2021-12-30T16:48:15.000Z
2022-01-14T14:21:15.000Z
import sys import os import psycopg2 import base64 from cryptography.hazmat.primitives import serialization, hashes from cryptography.hazmat.primitives.asymmetric import padding, rsa from cryptography.hazmat.backends import default_backend import time if len(sys.argv) < 2: print("Please enter either create or rem...
45.942308
184
0.637505
286
2,389
5.251748
0.363636
0.051931
0.043941
0.04261
0.573901
0.573901
0.573901
0.573901
0.573901
0.573901
0
0.022124
0.243198
2,389
52
185
45.942308
0.808628
0.029301
0
0.342105
0
0
0.249784
0.009922
0
0
0
0
0
1
0
false
0
0.210526
0
0.210526
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6aa73c2ad6102f4cce8d4e90a98090c3f6fe5363
342
py
Python
src/tools/types/obj.py
loongson-zn/build
d4bedebfa046b763c316e31c98b48ed2779741b9
[ "BSL-1.0" ]
215
2015-01-10T17:16:34.000Z
2022-02-23T15:22:08.000Z
src/tools/types/obj.py
loongson-zn/build
d4bedebfa046b763c316e31c98b48ed2779741b9
[ "BSL-1.0" ]
594
2015-01-22T16:17:55.000Z
2022-02-26T22:11:01.000Z
src/tools/types/obj.py
loongson-zn/build
d4bedebfa046b763c316e31c98b48ed2779741b9
[ "BSL-1.0" ]
302
2015-02-03T01:20:29.000Z
2022-02-12T07:01:28.000Z
# Copyright David Abrahams 2004. Distributed under the Boost # Software License, Version 1.0. (See accompanying # file LICENSE.txt or copy at https://www.bfgroup.xyz/b2/LICENSE.txt) from b2.build import type def register (): type.register_type ('OBJ', ['obj'], None, ['NT', 'CYGWIN']) type.register_type ('OBJ'...
28.5
69
0.692982
49
342
4.795918
0.734694
0.153191
0.13617
0.161702
0
0
0
0
0
0
0
0.027586
0.152047
342
11
70
31.090909
0.782759
0.511696
0
0
0
0
0.110429
0
0
0
0
0
0
1
0.2
true
0
0.2
0
0.4
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
1
0
0
0
0
0
0
2
6aa7fd8436efabe5593a8174e9772f897fb7aec0
4,465
py
Python
sympy/polys/tests/test_sqfreetools.py
eriknw/sympy
b7544e2bb74c011f6098a7e886fd77f41776c2c4
[ "BSD-3-Clause" ]
7
2015-01-14T06:55:33.000Z
2018-08-11T14:43:52.000Z
sympy/polys/tests/test_sqfreetools.py
pbeltran/sympy-1
94f92b36731c2bebe6de1037c063c2a258a8a399
[ "BSD-3-Clause" ]
1
2018-02-19T04:56:04.000Z
2018-02-19T04:56:04.000Z
sympy/polys/tests/test_sqfreetools.py
pbeltran/sympy-1
94f92b36731c2bebe6de1037c063c2a258a8a399
[ "BSD-3-Clause" ]
1
2016-04-24T14:39:22.000Z
2016-04-24T14:39:22.000Z
"""Tests for square-free decomposition algorithms and related tools. """ from sympy.polys.rings import ring from sympy.polys.domains import FF, ZZ, QQ from sympy.polys.polyclasses import DMP from sympy.polys.specialpolys import f_polys from sympy.utilities.pytest import raises f_0, f_1, f_2, f_3, f_4, f_5, f_6 = f_p...
29.569536
100
0.519821
975
4,465
2.212308
0.082051
0.178489
0.12981
0.156699
0.662031
0.596198
0.504868
0.385257
0.29949
0.223459
0
0.088722
0.255319
4,465
150
101
29.766667
0.56
0.014558
0
0.135922
0
0
0.00774
0
0
0
0
0
0.572816
1
0.029126
false
0
0.048544
0
0.07767
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
6aa848925fe885025486d711e7226e473656a954
1,377
py
Python
ezno_convert/enums.py
ofersadan85/ezno_convert
4c5cf7d41c72698e5486068673f170d968a9de27
[ "MIT" ]
2
2021-02-07T21:27:04.000Z
2021-03-13T06:47:25.000Z
ezno_convert/enums.py
ofersadan85/ezno_convert
4c5cf7d41c72698e5486068673f170d968a9de27
[ "MIT" ]
1
2021-02-10T05:45:00.000Z
2021-02-10T05:45:00.000Z
ezno_convert/enums.py
ofersadan85/ezno_convert
4c5cf7d41c72698e5486068673f170d968a9de27
[ "MIT" ]
null
null
null
import enum from typing import Union @enum.unique class PPT(enum.Enum): # Source: https://docs.microsoft.com/en-us/office/vba/api/powerpoint.ppsaveasfiletype AnimatedGIF = 40 BMP = 19 Default = 11 EMF = 23 External = 64000 GIF = 16 JPG = 17 META = 15 MP4 = 39 OpenPresentati...
20.863636
114
0.611474
177
1,377
4.751412
0.553672
0.042806
0.085612
0.099881
0.237812
0.237812
0.237812
0.237812
0.237812
0.237812
0
0.065606
0.269426
1,377
65
115
21.184615
0.770378
0.251271
0
0.09434
0
0
0.079922
0.021443
0
0
0
0.015385
0
1
0
false
0
0.037736
0
0.924528
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
6aa897704d8b8b96376b6c78aa9de27ecec18071
378
py
Python
app/django_first/news/migrations/0002_movies_year.py
vvuri/flask_pipeline
d3f283b8a6a6239e56d85e67dbe3edce55bcb980
[ "MIT" ]
null
null
null
app/django_first/news/migrations/0002_movies_year.py
vvuri/flask_pipeline
d3f283b8a6a6239e56d85e67dbe3edce55bcb980
[ "MIT" ]
null
null
null
app/django_first/news/migrations/0002_movies_year.py
vvuri/flask_pipeline
d3f283b8a6a6239e56d85e67dbe3edce55bcb980
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-01-19 23:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('news', '0001_initial'), ] operations = [ migrations.AddField( model_name='movies', name='year', field=mo...
19.894737
60
0.582011
42
378
5.166667
0.833333
0
0
0
0
0
0
0
0
0
0
0.075188
0.296296
378
18
61
21
0.740602
0.119048
0
0
1
0
0.07855
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6aa93bd0cfbc5bae7eaa0365dd95b7de863c0e17
653
py
Python
scripts/issue_param_value.py
Jhsmit/awesome-panel-extensions
41eba7cf84caa911be4ed0df2a96e16fc1e70263
[ "CC-BY-4.0" ]
3
2020-07-16T07:28:45.000Z
2020-07-17T12:53:56.000Z
scripts/issue_param_value.py
MarcSkovMadsen/panel-extensions-template
f41ad8d8fb8502f87de3a4992917cbffb6299012
[ "CC-BY-4.0" ]
null
null
null
scripts/issue_param_value.py
MarcSkovMadsen/panel-extensions-template
f41ad8d8fb8502f87de3a4992917cbffb6299012
[ "CC-BY-4.0" ]
null
null
null
import panel as pn import param from awesome_panel_extensions.frameworks.fast import FastTemplate, FastTextInput WIDGETS = { "some_text": {"type": FastTextInput, "readonly": True, "sizing_mode": "fixed", "width": 400} } class ParameterizedApp(param.Parameterized): some_text = param.String(default="This is s...
27.208333
96
0.735069
73
653
6.328767
0.589041
0.069264
0
0
0
0
0
0
0
0
0
0.005338
0.139357
653
23
97
28.391304
0.816726
0
0
0
0
0
0.104135
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aaa29259fb6e01655aa91ee60654bb2eceee036
1,271
py
Python
gjqyxyxxcxxt/gjqyxyxxcxxt/queue_companies.py
AisinoPythonTeam/PythonAiniso
983a29962752679d8cc26a2c3cdb0ba8fcfa3f02
[ "Apache-2.0" ]
null
null
null
gjqyxyxxcxxt/gjqyxyxxcxxt/queue_companies.py
AisinoPythonTeam/PythonAiniso
983a29962752679d8cc26a2c3cdb0ba8fcfa3f02
[ "Apache-2.0" ]
null
null
null
gjqyxyxxcxxt/gjqyxyxxcxxt/queue_companies.py
AisinoPythonTeam/PythonAiniso
983a29962752679d8cc26a2c3cdb0ba8fcfa3f02
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import pymysql import sys, os, json, time, pymongo app_dir = os.path.abspath("../") sys.path.append(app_dir) from gjqyxyxxcxxt import settings from gjqyxyxxcxxt.database.my_redis import QueueRedis conn = None def connect_db(): global conn conn = pymysql.connect(host="172.16.16.15",port...
24.921569
125
0.650669
173
1,271
4.612717
0.508671
0.037594
0.030075
0.030075
0
0
0
0
0
0
0
0.027328
0.222659
1,271
50
126
25.42
0.780364
0.028324
0
0.121951
0
0
0.112916
0
0
0
0
0
0
0
null
null
0.02439
0.097561
null
null
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6aab26683b9b2a063b1ca8928d6b0655775e0f6b
86,132
py
Python
model/entity_quotes.py
tkuculo/QuoteKG
a7b7d323679624a9cd3805e866028fad0a5a5408
[ "MIT" ]
null
null
null
model/entity_quotes.py
tkuculo/QuoteKG
a7b7d323679624a9cd3805e866028fad0a5a5408
[ "MIT" ]
null
null
null
model/entity_quotes.py
tkuculo/QuoteKG
a7b7d323679624a9cd3805e866028fad0a5a5408
[ "MIT" ]
null
null
null
#main_section > lines > line > text #main_section > lines > line > sub_line > text #main_section > sub_sections #main_section > templates > type #main_section > templates > empty_values #main_section > templates > values #main_section > templates > sub_templates #main_section > title > line > text from transformers.mod...
337.772549
1,878
0.652603
12,537
86,132
4.613065
0.282683
0.002594
0.013141
0.002282
0.184649
0.164471
0.154459
0.144984
0.13518
0.125999
0
0.000253
0.127757
86,132
254
1,879
339.102362
0.745701
0.005074
0
0.202643
0
0.030837
0.688585
0
0
0
0
0
0
1
0.026432
false
0
0.013216
0
0.057269
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
6aab6b3ba732d64220b4fb1bf6b4cc739254d1fe
1,019
py
Python
tests/pm/update_sla.py
supsi-dacd-isaac/parity-sidechain-interface
b64a5fb724955332afb4998344081d1b93ac216a
[ "MIT" ]
null
null
null
tests/pm/update_sla.py
supsi-dacd-isaac/parity-sidechain-interface
b64a5fb724955332afb4998344081d1b93ac216a
[ "MIT" ]
null
null
null
tests/pm/update_sla.py
supsi-dacd-isaac/parity-sidechain-interface
b64a5fb724955332afb4998344081d1b93ac216a
[ "MIT" ]
null
null
null
# Importing section import json import requests import argparse import hashlib import time from http import HTTPStatus # Main if __name__ == "__main__": arg_parser = argparse.ArgumentParser() args = arg_parser.parse_args() set_cmd = 'updateSla' params = { 'idx': 'sla04', ...
24.261905
80
0.617272
132
1,019
4.590909
0.5
0.046205
0.049505
0.066007
0.122112
0.122112
0.122112
0.122112
0.122112
0.122112
0
0.02474
0.24632
1,019
41
81
24.853659
0.764323
0.088322
0
0.142857
0
0
0.223784
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0.178571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aac1f4d092634d65b03e7c6699787370a84bac7
498
py
Python
array/python3/5_move_all_negative_elements.py
jitendragangwar123/cp
8d9da1abd841784da8304e7ebb64a6b94cb804bb
[ "MIT" ]
null
null
null
array/python3/5_move_all_negative_elements.py
jitendragangwar123/cp
8d9da1abd841784da8304e7ebb64a6b94cb804bb
[ "MIT" ]
1
2020-12-12T19:09:01.000Z
2020-12-12T19:09:01.000Z
array/python3/5_move_all_negative_elements.py
jitendragangwar123/cp
8d9da1abd841784da8304e7ebb64a6b94cb804bb
[ "MIT" ]
1
2020-12-12T18:36:24.000Z
2020-12-12T18:36:24.000Z
def sort(arr): # Start index 0. start = 0 # End index end = len(arr)-1 while start <= end: # Swap all positive value with last index end & decrease end by 1. if arr[start] >= 0: arr[start], arr[end] = arr[end], arr[start] end -= 1 else: # ...
23.714286
74
0.5
74
498
3.256757
0.472973
0.165975
0.082988
0
0
0
0
0
0
0
0
0.05414
0.369478
498
20
75
24.9
0.713376
0.291165
0
0
0
0
0.022989
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.076923
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
6aac551e77cffa8d22df81867eace49a7797fd1d
1,199
py
Python
misc.py
hldai/wikiprocesspy
788ccb6f0e0e54a7322863d5a13332635afc240d
[ "MIT" ]
null
null
null
misc.py
hldai/wikiprocesspy
788ccb6f0e0e54a7322863d5a13332635afc240d
[ "MIT" ]
null
null
null
misc.py
hldai/wikiprocesspy
788ccb6f0e0e54a7322863d5a13332635afc240d
[ "MIT" ]
null
null
null
import json def __text_from_anchor_sents_file(anchor_sents_file, output_file): f = open(anchor_sents_file, encoding='utf-8') fout = open(output_file, 'w', encoding='utf-8', newline='\n') for i, line in enumerate(f): sent = json.loads(line) fout.write('{}\n'.format(sent['tokens'])) ...
35.264706
118
0.686405
186
1,199
4.188172
0.27957
0.141207
0.115533
0.061617
0.441592
0.382542
0.382542
0.382542
0.382542
0.382542
0
0.042
0.165972
1,199
33
119
36.333333
0.737
0.120934
0
0.272727
0
0.136364
0.287893
0.253575
0
0
0
0
0
1
0.090909
false
0
0.045455
0
0.136364
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
6aad34cdb7b95e79e68448f602b65f3d09cae50a
1,106
py
Python
test/smptest.py
myrtam/CANNR
b966a873ec60264b0fd42b81edadb5495237d7ea
[ "Apache-2.0" ]
null
null
null
test/smptest.py
myrtam/CANNR
b966a873ec60264b0fd42b81edadb5495237d7ea
[ "Apache-2.0" ]
null
null
null
test/smptest.py
myrtam/CANNR
b966a873ec60264b0fd42b81edadb5495237d7ea
[ "Apache-2.0" ]
1
2021-05-14T08:37:37.000Z
2021-05-14T08:37:37.000Z
""" Test harness for smp.py """ import sys import os sys.path.append('/Users/ptendick/open-source-workspace/cannr Image/source/cannr/lib') os.environ['PATH'] = '/Library/Frameworks/Python.framework/Versions/3.7/bin:' + os.environ['PATH'] import cannr import smp # Test openProcess by opening a Flask process def test_o...
32.529412
108
0.705244
133
1,106
5.842105
0.43609
0.083655
0.109395
0.148005
0.468468
0.254826
0.254826
0.254826
0.136422
0
0
0.01594
0.149186
1,106
33
109
33.515152
0.809777
0.117541
0
0.210526
0
0.105263
0.505176
0.39441
0
0
0
0
0
1
0.157895
false
0
0.210526
0.105263
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
6aad4ce5dfa92a930b5b7dfb6e85c80cb8498743
2,833
py
Python
neural_toolbox/inception.py
ibrahimSouleiman/GuessWhat
60d140de1aae5ccda27e7d3eef2b9fb9548f0854
[ "Apache-2.0" ]
null
null
null
neural_toolbox/inception.py
ibrahimSouleiman/GuessWhat
60d140de1aae5ccda27e7d3eef2b9fb9548f0854
[ "Apache-2.0" ]
null
null
null
neural_toolbox/inception.py
ibrahimSouleiman/GuessWhat
60d140de1aae5ccda27e7d3eef2b9fb9548f0854
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import tensorflow.contrib.slim as slim import tensorflow.contrib.slim.python.slim.nets.resnet_v1 as resnet_v1 import tensorflow.contrib.slim.python.slim.nets.inception_v1 as inception_v1 import tensorflow.contrib.slim.python.slim.nets.resnet_utils as slim_utils from tensorflow.contrib import l...
36.320513
143
0.676668
378
2,833
4.857143
0.330688
0.034858
0.050109
0.058824
0.123094
0.123094
0.075708
0.075708
0
0
0
0.027953
0.217084
2,833
77
144
36.792208
0.79982
0.487116
0
0
0
0
0.035793
0
0
0
0
0
0
1
0.074074
false
0
0.296296
0
0.444444
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aad74ee52655f68220f799efaffcbccdd0748ad
6,133
py
Python
timm/utils/checkpoint_saver.py
Robert-JunWang/pytorch-image-models
7c67d6aca992f039eece0af5f7c29a43d48c00e4
[ "Apache-2.0" ]
17,769
2019-05-02T08:08:25.000Z
2022-03-31T22:14:44.000Z
timm/utils/checkpoint_saver.py
jonychoi/pytorch-image-models
e4360e6125bb0bb4279785810c8eb33b40af3ebd
[ "Apache-2.0" ]
556
2019-05-26T16:31:37.000Z
2022-03-30T04:21:07.000Z
timm/utils/checkpoint_saver.py
jonychoi/pytorch-image-models
e4360e6125bb0bb4279785810c8eb33b40af3ebd
[ "Apache-2.0" ]
3,029
2019-05-14T01:18:28.000Z
2022-03-31T20:09:50.000Z
""" Checkpoint Saver Track top-n training checkpoints and maintain recovery checkpoints on specified intervals. Hacked together by / Copyright 2020 Ross Wightman """ import glob import operator import os import logging import torch from .model import unwrap_model, get_state_dict _logger = logging.getLogger(__nam...
40.615894
104
0.626121
767
6,133
4.762712
0.191656
0.04599
0.072817
0.03285
0.261429
0.164796
0.121544
0.095812
0
0
0
0.004531
0.280287
6,133
150
105
40.886667
0.823063
0.073863
0
0.04878
0
0
0.044492
0
0
0
0
0
0.02439
1
0.04878
false
0
0.04878
0
0.130081
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
6aad9dd74183fdbafeb45c7c06a4bb4ab92534aa
292
py
Python
AGC004/AGC004a.py
VolgaKurvar/AtCoder
21acb489f1594bbb1cdc64fbf8421d876b5b476d
[ "Unlicense" ]
null
null
null
AGC004/AGC004a.py
VolgaKurvar/AtCoder
21acb489f1594bbb1cdc64fbf8421d876b5b476d
[ "Unlicense" ]
null
null
null
AGC004/AGC004a.py
VolgaKurvar/AtCoder
21acb489f1594bbb1cdc64fbf8421d876b5b476d
[ "Unlicense" ]
null
null
null
# AGC004a def main(): import sys input = sys.stdin.readline sys.setrecursionlimit(10**6) a, b, c = map(int, input().split()) if a % 2 == 0 or b % 2 == 0 or c % 2 == 0: print(0) exit(0) print(min(a*b, b*c, c*a)) if __name__ == '__main__': main()
18.25
46
0.506849
48
292
2.916667
0.520833
0.042857
0.057143
0
0
0
0
0
0
0
0
0.069652
0.311644
292
15
47
19.466667
0.626866
0.023973
0
0
0
0
0.028269
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.181818
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aae27568c85842fa9dbea1ace5c81d9190ab20e
12,603
py
Python
glance/tests/functional/test_api.py
arvindn05/glance
055d15a6ba5d132f649156eac0fc91f4cd2813e4
[ "Apache-2.0" ]
null
null
null
glance/tests/functional/test_api.py
arvindn05/glance
055d15a6ba5d132f649156eac0fc91f4cd2813e4
[ "Apache-2.0" ]
null
null
null
glance/tests/functional/test_api.py
arvindn05/glance
055d15a6ba5d132f649156eac0fc91f4cd2813e4
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # 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 requ...
39.261682
78
0.614933
1,536
12,603
4.897786
0.120443
0.063804
0.014622
0.017546
0.793301
0.768045
0.721521
0.706367
0.677788
0.666091
0
0.027053
0.246211
12,603
320
79
39.384375
0.764842
0.190669
0
0.5625
0
0
0.124477
0.014488
0
0
0
0.003125
0.153846
1
0.105769
false
0
0.019231
0
0.149038
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
6ab135f81cd0354b89240b44a37bacfa732bfab3
13,664
py
Python
qcore/asserts.py
corey-sobel/qcore
719a44617789e3cc384ce860031d9479ee0877e4
[ "Apache-2.0" ]
1
2022-01-31T23:15:48.000Z
2022-01-31T23:15:48.000Z
qcore/asserts.py
corey-sobel/qcore
719a44617789e3cc384ce860031d9479ee0877e4
[ "Apache-2.0" ]
null
null
null
qcore/asserts.py
corey-sobel/qcore
719a44617789e3cc384ce860031d9479ee0877e4
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Quora, 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 writing, so...
34.592405
100
0.640222
1,733
13,664
4.875361
0.171379
0.039768
0.040241
0.056811
0.464079
0.420168
0.405018
0.378861
0.352823
0.347852
0
0.00286
0.257904
13,664
394
101
34.680203
0.830375
0.259368
0
0.233333
0
0.004167
0.116202
0.010372
0
0
0
0
0.3625
1
0.1
false
0.004167
0.008333
0.004167
0.15
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
6ab1bd9218aece261b575574072df1d919112085
1,108
py
Python
lib/galaxy/web/__init__.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
4
2015-05-12T20:36:41.000Z
2017-06-26T15:34:02.000Z
lib/galaxy/web/__init__.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
52
2015-03-16T14:02:14.000Z
2021-12-24T09:50:23.000Z
lib/galaxy/web/__init__.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
1
2016-03-21T12:54:06.000Z
2016-03-21T12:54:06.000Z
""" The Galaxy web application framework """ from .framework import url_for from .framework.base import httpexceptions from .framework.decorators import ( do_not_cache, error, expose, expose_api, expose_api_anonymous, expose_api_anonymous_and_sessionless, expose_api_raw, expose_api_raw_...
30.777778
74
0.737365
135
1,108
5.459259
0.251852
0.244233
0.162822
0.170963
0.7327
0.7327
0.7327
0.7327
0.7327
0.7327
0
0
0.173285
1,108
35
75
31.657143
0.804585
0.032491
0
0
0
0
0.339286
0.18797
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
1
0
1
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
6ab21446cecd0d46b1a47275470353f326cec4d7
6,318
py
Python
src/python/pants/core/goals/check_test.py
yoav-orca/pants
995448e9add343975844c7a43d5d64618fc4e4d9
[ "Apache-2.0" ]
1,806
2015-01-05T07:31:00.000Z
2022-03-31T11:35:41.000Z
src/python/pants/core/goals/check_test.py
yoav-orca/pants
995448e9add343975844c7a43d5d64618fc4e4d9
[ "Apache-2.0" ]
9,565
2015-01-02T19:01:59.000Z
2022-03-31T23:25:16.000Z
src/python/pants/core/goals/check_test.py
riisi/pants
b33327389fab67c47b919710ea32f20ca284b1a6
[ "Apache-2.0" ]
443
2015-01-06T20:17:57.000Z
2022-03-31T05:28:17.000Z
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from abc import ABCMeta, abstractmethod from pathlib import Path from textwrap import dedent from typing import ClassVar, Iterable, List, Optional, Tuple, Type from pants.core.goals.check...
28.459459
99
0.650681
615
6,318
6.495935
0.273171
0.030038
0.016521
0.028786
0.198999
0.182728
0.138924
0.126909
0.094118
0.052065
0
0.007407
0.252137
6,318
221
100
28.588235
0.83746
0.019943
0
0.212329
0
0
0.04019
0.004914
0
0
0
0
0.089041
1
0.109589
false
0.013699
0.089041
0.034247
0.410959
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
6ab219191a7ea6ce5d831e0b7655a8775e4ac26e
9,851
py
Python
data-processing/entities/definitions/model/utils.py
alexkreidler/scholarphi
86d26d0bfa5ded00760fba1a9c6891a94a3dd6d2
[ "Apache-2.0" ]
null
null
null
data-processing/entities/definitions/model/utils.py
alexkreidler/scholarphi
86d26d0bfa5ded00760fba1a9c6891a94a3dd6d2
[ "Apache-2.0" ]
null
null
null
data-processing/entities/definitions/model/utils.py
alexkreidler/scholarphi
86d26d0bfa5ded00760fba1a9c6891a94a3dd6d2
[ "Apache-2.0" ]
1
2020-10-23T12:36:11.000Z
2020-10-23T12:36:11.000Z
import os import random from typing import Any, Dict, List, Union import numpy as np import torch from colorama import Fore, Style from sklearn.metrics import f1_score from sklearn.metrics import precision_recall_fscore_support as score from sklearn.metrics import precision_score, recall_score def highlight(input_: ...
35.952555
376
0.66308
1,418
9,851
4.35402
0.158674
0.024943
0.017817
0.028345
0.360382
0.298996
0.241173
0.232588
0.168772
0.167315
0
0.004346
0.229114
9,851
273
377
36.084249
0.808665
0.132575
0
0.230392
0
0
0.072094
0.023953
0
0
0
0
0.029412
1
0.063725
false
0
0.044118
0.019608
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
6ab2ef53d9a0815c477ae2435981a3a0029d019b
11,463
py
Python
fire/trace.py
nvhoang55/python-fire
b78287f6d68208732ca4d91e57f4678e6c4747c7
[ "Apache-2.0" ]
null
null
null
fire/trace.py
nvhoang55/python-fire
b78287f6d68208732ca4d91e57f4678e6c4747c7
[ "Apache-2.0" ]
null
null
null
fire/trace.py
nvhoang55/python-fire
b78287f6d68208732ca4d91e57f4678e6c4747c7
[ "Apache-2.0" ]
1
2022-01-17T08:35:09.000Z
2022-01-17T08:35:09.000Z
# Copyright (C) 2018 Google 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 writing, ...
36.275316
84
0.640932
1,400
11,463
5.19
0.22
0.009634
0.008258
0.011698
0.21346
0.164327
0.139004
0.127168
0.113955
0.106524
0
0.002093
0.291547
11,463
315
85
36.390476
0.892624
0.449795
0
0.186667
0
0
0.034761
0
0
0
0
0
0
1
0.146667
false
0
0.033333
0.026667
0.3
0.006667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6ab36187809db9e1ba202abbdfa4e21a0d5b6dfb
33,549
py
Python
test/unit/__init__.py
thiagodasilva/swift
0553d9333ed0045c4d209065b315533a33e5d7d7
[ "Apache-2.0" ]
null
null
null
test/unit/__init__.py
thiagodasilva/swift
0553d9333ed0045c4d209065b315533a33e5d7d7
[ "Apache-2.0" ]
null
null
null
test/unit/__init__.py
thiagodasilva/swift
0553d9333ed0045c4d209065b315533a33e5d7d7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 OpenStack Foundation # # 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 agree...
32.104306
79
0.592924
4,079
33,549
4.703849
0.177004
0.013759
0.007505
0.007818
0.147965
0.092458
0.068171
0.04232
0.026372
0.016782
0
0.011366
0.307669
33,549
1,044
80
32.135057
0.814698
0.1561
0
0.182442
0
0
0.063651
0.005997
0
0
0
0
0.001372
1
0.128944
false
0.013717
0.049383
0.021948
0.29904
0.004115
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6ab3a62e50f821717cc617bcae69096621bae1d3
10,138
py
Python
fairseq/models/bart/model.py
samsontmr/fairseq
1d50b6dcd961faaa74ee32e9d7a02ff76f16ab87
[ "MIT" ]
172
2019-08-22T14:20:25.000Z
2022-02-16T07:38:12.000Z
fairseq/models/bart/model.py
samsontmr/fairseq
1d50b6dcd961faaa74ee32e9d7a02ff76f16ab87
[ "MIT" ]
3
2019-08-30T11:56:15.000Z
2020-10-02T13:57:49.000Z
fairseq/models/bart/model.py
samsontmr/fairseq
1d50b6dcd961faaa74ee32e9d7a02ff76f16ab87
[ "MIT" ]
8
2019-10-15T04:36:43.000Z
2020-10-21T01:50:09.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension """ import torch.nn as n...
41.044534
111
0.641251
1,187
10,138
5.192923
0.20219
0.053537
0.044776
0.015412
0.232966
0.15623
0.115509
0.072356
0.034718
0.034718
0
0.00666
0.25942
10,138
246
112
41.211382
0.814331
0.054843
0
0.154229
0
0.004975
0.169195
0.046981
0
0
0
0
0
1
0.054726
false
0
0.034826
0.00995
0.124378
0.024876
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6ab43a62d7fe9c3851fb93216f017948e9264012
4,665
py
Python
vagrant/optraj.istic.univ-rennes1.fr/src/system/Assignment.py
gpierre42/optraj
53beb81c669093b866a786f2c1df9c663bbd7224
[ "Apache-2.0" ]
null
null
null
vagrant/optraj.istic.univ-rennes1.fr/src/system/Assignment.py
gpierre42/optraj
53beb81c669093b866a786f2c1df9c663bbd7224
[ "Apache-2.0" ]
null
null
null
vagrant/optraj.istic.univ-rennes1.fr/src/system/Assignment.py
gpierre42/optraj
53beb81c669093b866a786f2c1df9c663bbd7224
[ "Apache-2.0" ]
null
null
null
# coding=utf8 ''' Created on 29 Oct 2013 @author: Nicolas Poirey ''' from Worker import Worker from Phase import Phase class Assignment(object): ''' Classe Assignment définissant une affectation attributs publics : - num : l'id de l'affectation (int) - worker : l'ouvrier de l'affectation (Wor...
34.555556
1,463
0.520043
499
4,665
4.649299
0.304609
0.023707
0.030172
0.032328
0.197845
0.167672
0.123707
0.123707
0.123707
0.123707
0
0.032012
0.296892
4,665
134
1,464
34.813433
0.675305
0.552412
0
0.078947
0
0.026316
0.073407
0
0
0
0
0
0
1
0.289474
false
0
0.052632
0
0.552632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
6ab44cf57a381d44d95045fd0ee5b06ba9aa8eed
2,257
py
Python
tracker/view/error.py
cmm1107/arch-security-tracker
7d5f7d69f2b02c056c3888a9b70132c29432a468
[ "MIT" ]
null
null
null
tracker/view/error.py
cmm1107/arch-security-tracker
7d5f7d69f2b02c056c3888a9b70132c29432a468
[ "MIT" ]
null
null
null
tracker/view/error.py
cmm1107/arch-security-tracker
7d5f7d69f2b02c056c3888a9b70132c29432a468
[ "MIT" ]
null
null
null
from binascii import hexlify from functools import wraps from logging import error from os import urandom from random import randint from flask import make_response from flask import render_template from werkzeug.exceptions import BadRequest from werkzeug.exceptions import Forbidden from werkzeug.exceptions import Gon...
29.311688
116
0.717767
293
2,257
5.419795
0.296928
0.048489
0.083123
0.105793
0.085013
0.085013
0
0
0
0
0
0.012917
0.176783
2,257
76
117
29.697368
0.841765
0
0
0
0
0
0.078423
0
0
0
0
0
0
1
0.178571
false
0
0.285714
0.107143
0.660714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2