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
f4547f32ba2dd53a8a0e71fc993cc07d7d1a58ed
2,384
py
Python
python/handwritten_baseline/pipeline/model/feature_extr/debug.py
UKPLab/cdcr-beyond-corpus-tailored
52bf98692c7464f25628baea24addd1a988f9a1f
[ "Apache-2.0" ]
10
2020-11-28T05:01:04.000Z
2021-12-21T19:34:00.000Z
python/handwritten_baseline/pipeline/model/feature_extr/debug.py
UKPLab/cdcr-beyond-corpus-tailored
52bf98692c7464f25628baea24addd1a988f9a1f
[ "Apache-2.0" ]
1
2022-03-12T07:20:39.000Z
2022-03-16T05:11:38.000Z
python/handwritten_baseline/pipeline/model/feature_extr/debug.py
UKPLab/cdcr-beyond-corpus-tailored
52bf98692c7464f25628baea24addd1a988f9a1f
[ "Apache-2.0" ]
1
2021-12-21T19:34:08.000Z
2021-12-21T19:34:08.000Z
import pprint from typing import Optional, List, Tuple, Set, Dict import numpy as np from overrides import overrides from python.handwritten_baseline.pipeline.data.base import Dataset from python.handwritten_baseline.pipeline.model.feature_extr import DEBUG_EXTR from python.handwritten_baseline.pipeline.model.feature...
43.345455
127
0.684983
286
2,384
5.468531
0.328671
0.084399
0.067136
0.055627
0.285166
0.219949
0.152813
0.152813
0.049872
0.049872
0
0.00269
0.220218
2,384
55
128
43.345455
0.838623
0.026007
0
0.068182
0
0
0.081925
0
0
0
0
0
0
1
0.090909
false
0
0.159091
0.022727
0.386364
0.068182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f454b6de1f5f5d7ea1e9cef6495a08d3a75a9606
1,253
py
Python
kunquat/tracker/errorbase.py
cyberixae/kunquat
06ae72b2c1519686cc510ce887d9d45a5c3fa3a3
[ "CC0-1.0" ]
null
null
null
kunquat/tracker/errorbase.py
cyberixae/kunquat
06ae72b2c1519686cc510ce887d9d45a5c3fa3a3
[ "CC0-1.0" ]
null
null
null
kunquat/tracker/errorbase.py
cyberixae/kunquat
06ae72b2c1519686cc510ce887d9d45a5c3fa3a3
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Author: Tomi Jylhä-Ollila, Finland 2014 # # This file is part of Kunquat. # # CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/ # # To the extent possible under law, Kunquat Affirmers have waived all # copyright and related or neighboring rights to Kunquat. # from __futu...
24.096154
71
0.73344
175
1,253
5.062857
0.537143
0.099323
0.14447
0.047404
0.189616
0.13544
0
0
0
0
0
0.009515
0.161213
1,253
51
72
24.568627
0.833492
0.263368
0
0
0
0
0.06632
0
0
0
0
0.019608
0
1
0.238095
false
0.047619
0.190476
0
0.47619
0.190476
0
0
0
null
0
0
0
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
1
0
0
0
0
0
0
0
2
f456221256fc52688ca188318ed96a52141502e3
4,311
py
Python
venv/lib/python3.5/site-packages/igraph/test/atlas.py
dtklinh/Protein-Rigid-Domains-Estimation
a27152ef5437eb87ee31c317091356c4787f82a4
[ "MIT" ]
2
2021-03-04T16:57:06.000Z
2021-08-11T01:42:29.000Z
venv/lib/python3.5/site-packages/igraph/test/atlas.py
dtklinh/Protein-Rigid-Domains-Estimation
a27152ef5437eb87ee31c317091356c4787f82a4
[ "MIT" ]
null
null
null
venv/lib/python3.5/site-packages/igraph/test/atlas.py
dtklinh/Protein-Rigid-Domains-Estimation
a27152ef5437eb87ee31c317091356c4787f82a4
[ "MIT" ]
null
null
null
import warnings import unittest from igraph import * class TestBase(unittest.TestCase): def testPageRank(self): for idx, g in enumerate(self.__class__.graphs): try: pr = g.pagerank() except Exception as ex: self.assertTrue(False, msg="PageRank calcu...
38.491071
118
0.52424
494
4,311
4.510121
0.257085
0.035009
0.048474
0.037702
0.454219
0.38061
0.366697
0.326302
0.279174
0.219928
0
0.018328
0.3672
4,311
111
119
38.837838
0.798387
0.040362
0
0.341176
0
0
0.174619
0
0
0
0
0
0.2
1
0.070588
false
0
0.035294
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4564217958b77537d1072c7c3fc29f0c202d7e9
3,509
py
Python
pycspr/types/cl.py
momipsl/pycspr
82c1ca003525a3d205d2aa3b7da5d1ecd275e9b5
[ "Apache-2.0" ]
2
2021-04-14T13:49:20.000Z
2021-07-06T22:07:02.000Z
pycspr/types/cl.py
momipsl/pycspr
82c1ca003525a3d205d2aa3b7da5d1ecd275e9b5
[ "Apache-2.0" ]
null
null
null
pycspr/types/cl.py
momipsl/pycspr
82c1ca003525a3d205d2aa3b7da5d1ecd275e9b5
[ "Apache-2.0" ]
1
2021-04-15T12:52:42.000Z
2021-04-15T12:52:42.000Z
import dataclasses import enum class CLType(enum.Enum): """Enumeration over set of CL types. """ BOOL = 0 I32 = 1 I64 = 2 U8 = 3 U32 = 4 U64 = 5 U128 = 6 U256 = 7 U512 = 8 UNIT = 9 STRING = 10 KEY = 11 UREF = 12 OPTION = 13 LIST = 14 BYTE_A...
21.396341
85
0.667427
432
3,509
5.351852
0.280093
0.044983
0.108131
0.108997
0.528114
0.505623
0.446799
0.423875
0.274221
0.274221
0
0.035728
0.258193
3,509
163
86
21.527607
0.852478
0.436307
0
0.209877
0
0
0
0
0
0
0
0
0
1
0.012346
false
0.012346
0.024691
0
0.654321
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
f456c15808160c57f2b68cffa03b0cdb9fe05135
1,668
py
Python
google/cloud/aiplatform_v1/types/env_var.py
nachocano/python-aiplatform
1c6b998d9145309d79712f494a2b00b50a9a9bf4
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1/types/env_var.py
nachocano/python-aiplatform
1c6b998d9145309d79712f494a2b00b50a9a9bf4
[ "Apache-2.0" ]
1
2021-02-12T23:56:38.000Z
2021-02-12T23:56:38.000Z
google/cloud/aiplatform_v1/types/env_var.py
nachocano/python-aiplatform
1c6b998d9145309d79712f494a2b00b50a9a9bf4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
34.040816
88
0.688249
224
1,668
5.058036
0.575893
0.052957
0.022948
0.028244
0.047661
0
0
0
0
0
0
0.009397
0.234412
1,668
48
89
34.75
0.877839
0.767386
0
0
0
0
0.104575
0.084967
0
0
0
0
0
1
0
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f45776dc27791b0b8c76dabaff8a799c99fa956b
3,119
py
Python
tools/borplay/packlib.py
MrCoolSpan/openbor
846cfeb924906849c8a11e76c442e47286b707ea
[ "BSD-3-Clause" ]
25
2015-03-10T06:14:12.000Z
2021-04-28T03:42:32.000Z
tools/borplay/packlib.py
MrCoolSpan/openbor
846cfeb924906849c8a11e76c442e47286b707ea
[ "BSD-3-Clause" ]
2
2019-09-29T11:35:30.000Z
2021-02-08T11:10:32.000Z
tools/borplay/packlib.py
MrCoolSpan/openbor
846cfeb924906849c8a11e76c442e47286b707ea
[ "BSD-3-Clause" ]
18
2015-03-14T02:43:26.000Z
2020-07-24T02:08:58.000Z
# Copyright (c) 2009 Bryan Cain ("Plombo") # Class and functions to read .PAK files. import struct from cStringIO import StringIO class PackFileReader(object): ''' Represents a BOR packfile. ''' files = dict() # the index holding the location of each file packfile = None # the file object def __in...
29.990385
102
0.655338
466
3,119
4.330472
0.324034
0.024281
0.02775
0.023786
0.16551
0.132805
0.132805
0.132805
0.132805
0.099108
0
0.013895
0.215454
3,119
103
103
30.281553
0.810789
0.191087
0
0.070175
0
0
0.036676
0.015473
0
0
0
0
0
0
null
null
0
0.035088
null
null
0.017544
0
0
0
null
0
0
0
0
0
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
f4584cfc0d782e8ed0b2d30fb8fdd386a63762a3
1,017
py
Python
artascope/src/web/app.py
magus0219/icloud-photo-downloader
6334530d971cf61089d031de99a38f204c201837
[ "MIT" ]
3
2020-09-24T16:19:28.000Z
2022-02-09T21:10:11.000Z
artascope/src/web/app.py
magus0219/icloud-photo-downloader
6334530d971cf61089d031de99a38f204c201837
[ "MIT" ]
null
null
null
artascope/src/web/app.py
magus0219/icloud-photo-downloader
6334530d971cf61089d031de99a38f204c201837
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Created by magus0219[magus0219@gmail.com] on 2020/3/23 from types import FunctionType from flask import ( Flask, redirect, url_for, ) import artascope.src.web.lib.filter as module_filter from artascope.src.web.lib.content_processor import inject_version d...
23.113636
66
0.67355
131
1,017
5.038168
0.496183
0.10303
0.090909
0.054545
0
0
0
0
0
0
0
0.021684
0.229105
1,017
43
67
23.651163
0.820153
0.184857
0
0
0
0
0.029233
0
0
0
0
0
0
1
0.071429
false
0
0.25
0.035714
0.392857
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f4584d9b2545719be7d26d0474bfda0fc16fc902
2,251
py
Python
tests/common/test_op/scatter_nd.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
1
2020-08-31T02:43:43.000Z
2020-08-31T02:43:43.000Z
tests/common/test_op/scatter_nd.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
tests/common/test_op/scatter_nd.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # 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...
37.516667
105
0.676588
331
2,251
4.537764
0.407855
0.039947
0.01731
0.021305
0.082557
0.054594
0
0
0
0
0
0.019263
0.215904
2,251
59
106
38.152542
0.831728
0.436251
0
0
0
0
0.102395
0
0
0
0
0
0
1
0.086957
false
0
0.086957
0.043478
0.26087
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
f458c5e01d9e2170ec0f7c2f7180c5b33bb75bc9
16,446
py
Python
spc/backend_utils.py
adamnew123456/spc
8809d1817f66cf8266f145aa0c2474b32dc1087a
[ "MIT" ]
1
2017-10-15T19:55:48.000Z
2017-10-15T19:55:48.000Z
spc/backend_utils.py
adamnew123456/spc
8809d1817f66cf8266f145aa0c2474b32dc1087a
[ "MIT" ]
null
null
null
spc/backend_utils.py
adamnew123456/spc
8809d1817f66cf8266f145aa0c2474b32dc1087a
[ "MIT" ]
null
null
null
""" Utility functions and classes shared by multiple backends """ from collections import namedtuple import logging from . import symbols from . import types LOGGER = logging.getLogger('spc.backend_utils') # NameContexts encapsulate both the function stack (which holds values) and # the symbol table context (which b...
34.2625
93
0.623921
2,060
16,446
4.786893
0.195146
0.018457
0.021904
0.012778
0.366596
0.308488
0.229186
0.151303
0.137511
0.112767
0
0.004124
0.292229
16,446
479
94
34.334029
0.843041
0.310167
0
0.229358
0
0
0.040722
0
0
0
0
0
0
1
0.211009
false
0.004587
0.018349
0
0.40367
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
f45a0afb4a750100d6616bb61de6015d31db9869
25
py
Python
heareval/__init__.py
neuralaudio/hear-eval-kit
f92119592954544dfb417f8e9aea21eadb4a65d0
[ "Apache-2.0" ]
24
2021-07-26T21:21:46.000Z
2022-03-30T08:10:13.000Z
heareval/__init__.py
neuralaudio/hear-eval-kit
f92119592954544dfb417f8e9aea21eadb4a65d0
[ "Apache-2.0" ]
196
2021-07-26T17:58:23.000Z
2022-01-26T17:40:25.000Z
heareval/__init__.py
neuralaudio/hear-eval-kit
f92119592954544dfb417f8e9aea21eadb4a65d0
[ "Apache-2.0" ]
3
2021-08-10T13:12:53.000Z
2022-03-19T05:00:50.000Z
__version__ = "2021.0.6"
12.5
24
0.68
4
25
3.25
1
0
0
0
0
0
0
0
0
0
0
0.272727
0.12
25
1
25
25
0.318182
0
0
0
0
0
0.32
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
1
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
5
f45c36a2a7c87d236af65ffb124e4f77205e7048
744
py
Python
recommender_engine/similarity_measure/__init__.py
tranlyvu/recommender
4985c355d54ee22ba48f4891077fd7e12bd21b47
[ "Apache-2.0" ]
8
2019-03-14T07:53:51.000Z
2021-06-22T06:19:32.000Z
recommender_engine/similarity_measure/__init__.py
tranlyvu/recommender-engine
4985c355d54ee22ba48f4891077fd7e12bd21b47
[ "Apache-2.0" ]
3
2018-01-16T06:48:55.000Z
2020-05-04T01:43:14.000Z
recommender_engine/similarity_measure/__init__.py
tranlyvu/recommender-engine
4985c355d54ee22ba48f4891077fd7e12bd21b47
[ "Apache-2.0" ]
1
2019-03-14T07:53:59.000Z
2019-03-14T07:53:59.000Z
""" recommender_engine ----- recommender_engine is a recommendation application using either item-based or user-based approaches :copyright: (c) 2016 - 2019 by Tran Ly Vu. All Rights Reserved. :license: Apache License 2.0 """ from .cosine import cosine from .euclidean_distance import euclidean_distance from .p...
33.818182
100
0.766129
94
744
5.62766
0.5
0.056711
0.075614
0.068053
0.177694
0.177694
0.177694
0.177694
0.177694
0.177694
0
0.031008
0.133065
744
21
101
35.428571
0.789147
0.30914
0
0
0
0
0.439216
0.101961
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f45caefa61ce261896189f11de67dd4621b4cff1
44
py
Python
code/abc057_a_02.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
3
2019-08-16T16:55:48.000Z
2021-04-11T10:21:40.000Z
code/abc057_a_02.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
code/abc057_a_02.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
a,b=map(int,input().split()) print((a+b)%24)
22
28
0.613636
10
44
2.7
0.8
0.148148
0
0
0
0
0
0
0
0
0
0.046512
0.022727
44
2
29
22
0.581395
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
f45d781494a8e177d3301348e5cd3f98b7503c8a
1,925
py
Python
8/8_9.py
kopsh/python_cookbook
298c092cd20404a0755e2170776c44a04e8648ad
[ "CNRI-Python" ]
null
null
null
8/8_9.py
kopsh/python_cookbook
298c092cd20404a0755e2170776c44a04e8648ad
[ "CNRI-Python" ]
null
null
null
8/8_9.py
kopsh/python_cookbook
298c092cd20404a0755e2170776c44a04e8648ad
[ "CNRI-Python" ]
null
null
null
class CheckType: r""" 8.9 创建新的类或实例属性 使用描述器,实现参数类型检查 >>> @ParamAssert(a=int, b=list) ... class A: ... def __init__(self, a, b): ... self.a = a ... self.b = b >>> a = A(1, []) """ def __init__(self, name, expected_type): self.name = name sel...
25.666667
106
0.535584
229
1,925
4.19214
0.279476
0.083333
0.057292
0.0625
0.361458
0.320833
0.258333
0.189583
0.189583
0.1
0
0.006284
0.338701
1,925
75
107
25.666667
0.74784
0.156364
0
0.27907
0
0
0.05642
0
0
0
0
0
0.023256
1
0.209302
false
0
0.023256
0
0.488372
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
f45dfb481b367182927b34141a1df143252d871f
7,306
py
Python
test/examples/test_simple_gp_regression.py
ediphy-dwild/gpytorch
559c78a6446237ed7cc8e1cc7cf4ed8bf31a3c8a
[ "MIT" ]
null
null
null
test/examples/test_simple_gp_regression.py
ediphy-dwild/gpytorch
559c78a6446237ed7cc8e1cc7cf4ed8bf31a3c8a
[ "MIT" ]
null
null
null
test/examples/test_simple_gp_regression.py
ediphy-dwild/gpytorch
559c78a6446237ed7cc8e1cc7cf4ed8bf31a3c8a
[ "MIT" ]
null
null
null
import math import torch import unittest import gpytorch from torch import optim from torch.autograd import Variable from gpytorch.kernels import RBFKernel from gpytorch.means import ConstantMean from gpytorch.likelihoods import GaussianLikelihood from gpytorch.random_variables import GaussianRandomVariable # Simple ...
38.861702
88
0.634684
861
7,306
5.147503
0.190476
0.05528
0.051895
0.017599
0.680054
0.641245
0.604919
0.556859
0.536101
0.490523
0
0.016205
0.273611
7,306
187
89
39.069519
0.818918
0.116343
0
0.5
0
0
0.001244
0
0
0
0
0
0.051471
1
0.044118
false
0
0.073529
0
0.139706
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
f45ec536c2f2748641c051d8785db2394218cb3f
4,264
py
Python
samples/RiskManagement/Verification/customer-match-denied-parties-list.py
snavinch/cybersource-rest-samples-python
adb7a6b4b55dff6ac833295192d6677b53003c16
[ "MIT" ]
21
2019-01-22T17:48:32.000Z
2022-02-07T17:40:58.000Z
samples/RiskManagement/Verification/customer-match-denied-parties-list.py
broadpay/cybersource-rest-samples-python
f7af6f58c70ea3bf725d34929b40ee4b5fd4d77c
[ "MIT" ]
10
2018-12-03T22:45:17.000Z
2021-04-19T20:40:14.000Z
samples/RiskManagement/Verification/customer-match-denied-parties-list.py
broadpay/cybersource-rest-samples-python
f7af6f58c70ea3bf725d34929b40ee4b5fd4d77c
[ "MIT" ]
29
2018-11-09T11:44:53.000Z
2022-03-18T08:56:46.000Z
from CyberSource import * import os import json from importlib.machinery import SourceFileLoader config_file = os.path.join(os.getcwd(), "data", "Configuration.py") configuration = SourceFileLoader("module.name", config_file).load_module() # To delete None values in Input Request Json body def del_none(d): for ke...
38.414414
97
0.754221
290
4,264
10.793103
0.565517
0.006709
0.012141
0.016613
0.019169
0
0
0
0
0
0
0.013537
0.185741
4,264
110
98
38.763636
0.887961
0.011257
0
0
0
0
0.083294
0.010441
0
0
0
0
0
1
0.022222
false
0
0.044444
0
0.088889
0.033333
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f45ec6261b1911d698e1ee71b90cc7668913450f
936
py
Python
SimulatePi.py
Lucchese-Anthony/MonteCarloSimulation
45a625b88dab6658b43b472d49d82aaeb1e847bd
[ "CC0-1.0" ]
null
null
null
SimulatePi.py
Lucchese-Anthony/MonteCarloSimulation
45a625b88dab6658b43b472d49d82aaeb1e847bd
[ "CC0-1.0" ]
null
null
null
SimulatePi.py
Lucchese-Anthony/MonteCarloSimulation
45a625b88dab6658b43b472d49d82aaeb1e847bd
[ "CC0-1.0" ]
null
null
null
import numpy as np import random import math import matplotlib.pyplot as plt import matplotlib.animation as animation from matplotlib import style angle = np.linspace( 0 , 2 * np.pi , 150) radius = 1 x = radius * np.cos(angle) y = radius * np.sin(angle) #prints the circle style.use('fivethirtyeight') fig = plt.f...
21.272727
55
0.628205
137
936
4.284672
0.459854
0.017036
0.035775
0.034072
0.078365
0.078365
0
0
0
0
0
0.024828
0.225427
936
43
56
21.767442
0.784828
0.018162
0
0
0
0
0.027233
0
0
0
0
0
0
0
null
null
0
0.176471
null
null
0.058824
0
0
0
null
0
0
0
0
0
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
f45faefa310c1d7891d6abffc0a5f0a804569172
219
py
Python
run.py
aarvanitii/adminWebsite
cf9a07c287571ebbc9954326806b578f6d19a11b
[ "MIT" ]
null
null
null
run.py
aarvanitii/adminWebsite
cf9a07c287571ebbc9954326806b578f6d19a11b
[ "MIT" ]
null
null
null
run.py
aarvanitii/adminWebsite
cf9a07c287571ebbc9954326806b578f6d19a11b
[ "MIT" ]
null
null
null
""" This is where the web application starts running """ from app.index import create_app app = create_app() if __name__ == "__main__": app.secret_key = 'mysecret' app.run(port=8080, host="0.0.0.0", debug=True)
24.333333
50
0.694064
35
219
4.028571
0.742857
0.042553
0.042553
0
0
0
0
0
0
0
0
0.043478
0.159817
219
9
50
24.333333
0.722826
0.219178
0
0
0
0
0.140244
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f45fea1b8823dbd01877ae9035e910e81d5b7faa
267
py
Python
tareas/3/GarciaFigueroaAlberto-GarciaEdgar/Proceso.py
jorgelmp/sistop-2022-1
5c3b7e5215247533446aa006affe6cc64a48d989
[ "CC-BY-4.0" ]
6
2021-08-30T19:11:57.000Z
2021-09-05T01:30:59.000Z
tareas/3/GarciaFigueroaAlberto-GarciaEdgar/Proceso.py
jorgelmp/sistop-2022-1
5c3b7e5215247533446aa006affe6cc64a48d989
[ "CC-BY-4.0" ]
13
2021-09-07T22:24:47.000Z
2021-11-23T05:26:38.000Z
tareas/3/GarciaFigueroaAlberto-GarciaEdgar/Proceso.py
jorgelmp/sistop-2022-1
5c3b7e5215247533446aa006affe6cc64a48d989
[ "CC-BY-4.0" ]
33
2021-09-01T00:44:27.000Z
2022-02-09T06:17:55.000Z
class Proceso: def __init__(self,tiempo_de_llegada,t,id): self.t=t self.tiempo_de_llegada=tiempo_de_llegada self.id=id self.inicio=0 self.fin=0 self.T=0 self.E=0 self.P=0 self.tRestantes = t
22.25
48
0.565543
41
267
3.439024
0.390244
0.177305
0.319149
0.269504
0
0
0
0
0
0
0
0.028409
0.340824
267
11
49
24.272727
0.772727
0
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.181818
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f460edaf40609072f5da235373227615b76ded70
804
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/smallest-greater-multiple-made-of-two-digits.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/smallest-greater-multiple-made-of-two-digits.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/smallest-greater-multiple-made-of-two-digits.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: sum(O(l * 2^l) for l in range(1, 11)) = O(20 * 2^10) = O(1) # Space: O(1) class Solution(object): def findInteger(self, k, digit1, digit2): """ :type k: int :type digit1: int :type digit2: int :rtype: int """ MAX_NUM_OF_DIGITS = 10 INT_MAX = ...
28.714286
69
0.452736
108
804
3.296296
0.37963
0.101124
0.033708
0.078652
0
0
0
0
0
0
0
0.087912
0.43408
804
27
70
29.777778
0.694505
0.174129
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4647df8f083e67396d2554f67110e5d8f963972
7,875
py
Python
aldryn_people/tests/test_plugins.py
compoundpartners/js-people
a3744c3880f6626e677034a693f337c927baf886
[ "BSD-3-Clause" ]
null
null
null
aldryn_people/tests/test_plugins.py
compoundpartners/js-people
a3744c3880f6626e677034a693f337c927baf886
[ "BSD-3-Clause" ]
1
2019-01-15T16:06:44.000Z
2019-01-15T16:06:44.000Z
aldryn_people/tests/test_plugins.py
compoundpartners/js-people
a3744c3880f6626e677034a693f337c927baf886
[ "BSD-3-Clause" ]
1
2019-01-09T11:53:59.000Z
2019-01-09T11:53:59.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals try: from django.core.urlresolvers import reverse except ImportError: # Django 2.0 from django.urls import reverse from django.utils.translation import force_text from cms import api from cms.utils.i18n import force_language from aldryn_peop...
38.985149
80
0.657143
939
7,875
5.315229
0.172524
0.043278
0.078141
0.046283
0.587257
0.564616
0.523542
0.499499
0.48307
0.48307
0
0.004715
0.245841
7,875
201
81
39.179104
0.835663
0.139937
0
0.492958
0
0
0.019073
0
0
0
0
0
0.161972
1
0.077465
false
0.007042
0.091549
0
0.190141
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
f464a115da93371471e70429639150e5a6c40508
661
py
Python
turbo_transformers/python/tests/__init__.py
xcnick/TurboTransformers
48b6ba09af2219616c6b97cc5c09222408e080c2
[ "BSD-3-Clause" ]
1,147
2020-04-24T06:45:50.000Z
2022-03-30T15:33:16.000Z
turbo_transformers/python/tests/__init__.py
xcnick/TurboTransformers
48b6ba09af2219616c6b97cc5c09222408e080c2
[ "BSD-3-Clause" ]
140
2020-04-25T10:54:15.000Z
2022-03-11T08:13:11.000Z
turbo_transformers/python/tests/__init__.py
xcnick/TurboTransformers
48b6ba09af2219616c6b97cc5c09222408e080c2
[ "BSD-3-Clause" ]
151
2020-04-24T06:49:01.000Z
2022-03-21T13:48:54.000Z
# Copyright (C) 2020 THL A29 Limited, a Tencent company. # All rights reserved. # Licensed under the BSD 3-Clause License (the "License"); you may # not use this file except in compliance with the License. You may # obtain a copy of the License at # https://opensource.org/licenses/BSD-3-Clause # Unless required by appl...
50.846154
69
0.774584
104
661
4.923077
0.692308
0.117188
0.039063
0.0625
0
0
0
0
0
0
0
0.014493
0.164902
661
12
70
55.083333
0.913043
0.962179
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
f465aa8f0880334955fcdd358466dab059344d4b
355
py
Python
generate_joke.py
audreymychan/djsmile
8dc5d6337f1b32db8bf3dfbf13315ec25049ebb5
[ "MIT" ]
5
2019-05-30T20:15:34.000Z
2020-04-16T08:21:16.000Z
generate_joke.py
audreymychan/djsmile
8dc5d6337f1b32db8bf3dfbf13315ec25049ebb5
[ "MIT" ]
5
2021-08-25T14:43:34.000Z
2022-02-10T00:14:09.000Z
generate_joke.py
audreymychan/djsmile
8dc5d6337f1b32db8bf3dfbf13315ec25049ebb5
[ "MIT" ]
null
null
null
# This script contains the get_joke() function to generate a new dad joke import requests def get_joke(): """Return new joke string from icanhazdadjoke.com.""" url = "https://icanhazdadjoke.com/" response = requests.get(url, headers={'Accept': 'application/json'}) raw_joke = response.json() joke ...
27.307692
73
0.687324
47
355
5.106383
0.595745
0.058333
0
0
0
0
0
0
0
0
0
0
0.185915
355
12
74
29.583333
0.83045
0.338028
0
0
1
0
0.231441
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f4677aa07e0ad3e8da44d44b35bfb9d27f0006a2
136
py
Python
bot/tests/test_triggers/__init__.py
elihschiff/Rubber-Duck-Python
24dea3b64a8a46368cd8dd995c800375f355b55e
[ "MIT" ]
7
2020-07-07T20:58:14.000Z
2021-12-23T02:51:20.000Z
bot/tests/test_triggers/__init__.py
elihschiff/Rubber-Duck-Python
24dea3b64a8a46368cd8dd995c800375f355b55e
[ "MIT" ]
null
null
null
bot/tests/test_triggers/__init__.py
elihschiff/Rubber-Duck-Python
24dea3b64a8a46368cd8dd995c800375f355b55e
[ "MIT" ]
1
2020-03-29T13:36:43.000Z
2020-03-29T13:36:43.000Z
from .test_commands import all_commands all_triggers = all_commands from .test_quack import TestQuack all_triggers.append(TestQuack)
17
39
0.845588
19
136
5.736842
0.473684
0.146789
0
0
0
0
0
0
0
0
0
0
0.110294
136
7
40
19.428571
0.900826
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
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
0
0
1
0
0
0
0
3
f467e6d9c07196905aa29d2a65e967cb8686b8d6
445
py
Python
src/main/scripts/crassus_deployer_lambda.py
Scout24/crassus
8e3d5ff073181cabaf0e764c3d8be18fc7d27992
[ "Apache-2.0" ]
null
null
null
src/main/scripts/crassus_deployer_lambda.py
Scout24/crassus
8e3d5ff073181cabaf0e764c3d8be18fc7d27992
[ "Apache-2.0" ]
null
null
null
src/main/scripts/crassus_deployer_lambda.py
Scout24/crassus
8e3d5ff073181cabaf0e764c3d8be18fc7d27992
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from crassus import Crassus from crassus.output_converter import OutputConverter def handler(event, context): crassus = Crassus(event, context) crassus.deploy() def cfn_output_converter(event, context): """ Convert an AWS CloudFormation output message to our def...
24.722222
63
0.759551
50
445
6.56
0.5
0.182927
0.115854
0
0
0
0
0
0
0
0
0
0.173034
445
17
64
26.176471
0.891304
0.182022
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.333333
0
0.555556
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
1
0
0
1
0
0
0
0
2
f4680fe37289f7c11ee4bd2ba12292268d591a53
1,960
py
Python
Exareme-Docker/src/exareme/exareme-tools/madis/src/lib/pyreadline/clipboard/__init__.py
tchamabe1979/exareme
462983e4feec7808e1fd447d02901502588a8879
[ "MIT" ]
null
null
null
Exareme-Docker/src/exareme/exareme-tools/madis/src/lib/pyreadline/clipboard/__init__.py
tchamabe1979/exareme
462983e4feec7808e1fd447d02901502588a8879
[ "MIT" ]
null
null
null
Exareme-Docker/src/exareme/exareme-tools/madis/src/lib/pyreadline/clipboard/__init__.py
tchamabe1979/exareme
462983e4feec7808e1fd447d02901502588a8879
[ "MIT" ]
null
null
null
import sys success = False in_ironpython = "IronPython" in sys.version if in_ironpython: try: from ironpython_clipboard import GetClipboardText, SetClipboardText success = True except ImportError: pass else: try: from win32_clipboard import GetClipboardText, SetClipboardTex...
24.810127
79
0.558673
249
1,960
4.301205
0.293173
0.022409
0.014006
0.019608
0.239029
0.140056
0.140056
0.140056
0
0
0
0.001554
0.343367
1,960
78
80
25.128205
0.830614
0.078571
0
0.311475
0
0
0.026786
0
0
0
0
0
0
1
0.098361
false
0.016393
0.081967
0
0.311475
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
f4689432e90e3326c569ffdf5beb1c42f606d0c9
17,634
py
Python
mjrl/utils/train_agent.py
YujieLu10/tslam
1341dbecdf02ee6b1b6cdd1a538272fffdea6ffd
[ "Apache-2.0" ]
null
null
null
mjrl/utils/train_agent.py
YujieLu10/tslam
1341dbecdf02ee6b1b6cdd1a538272fffdea6ffd
[ "Apache-2.0" ]
null
null
null
mjrl/utils/train_agent.py
YujieLu10/tslam
1341dbecdf02ee6b1b6cdd1a538272fffdea6ffd
[ "Apache-2.0" ]
null
null
null
import logging logging.disable(logging.CRITICAL) import math from tabulate import tabulate from mjrl.utils.make_train_plots import make_train_plots from mjrl.utils.gym_env import GymEnv from mjrl.samplers.core import sample_paths import numpy as np import torch import pickle import imageio import time as timer import o...
46.898936
260
0.60304
2,365
17,634
4.249894
0.157717
0.017909
0.017909
0.022286
0.441847
0.40195
0.353199
0.318575
0.280171
0.269127
0
0.012919
0.258138
17,634
375
261
47.024
0.755389
0.089826
0
0.217391
0
0.016722
0.134997
0.073782
0
0
0
0
0.010033
1
0.010033
false
0
0.060201
0
0.083612
0.036789
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f4691a885e026834c8813dea028eee2eea8dcb79
4,499
py
Python
src/tests/plugins/banktransfer/test_refund_export.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/plugins/banktransfer/test_refund_export.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/plugins/banktransfer/test_refund_export.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import json from datetime import timedelta from decimal import Decimal import pytest from django.utils.timezone import now from pretix.base.models import Event, Order, OrderRefund, Organizer, Team, User from pretix.plugins.banktransfer.models import RefundExport from pretix.plugins.banktransfer.views import ( _ro...
33.080882
100
0.608357
506
4,499
5.280632
0.278656
0.033683
0.022455
0.049401
0.528817
0.508234
0.5
0.490644
0.471183
0.471183
0
0.081645
0.243165
4,499
135
101
33.325926
0.703084
0
0
0.308333
0
0
0.269838
0.134919
0
0
0
0
0.091667
1
0.033333
false
0.016667
0.066667
0
0.108333
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
f469f8b898acc53c702a295cba9f7c500ecfacd0
872
py
Python
datawinners/alldata/urls.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/alldata/urls.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/alldata/urls.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 from django.conf.urls.defaults import patterns, url from datawinners.alldata.views import get_entity_list_by_type from datawinners.alldata.views import smart_phone_instruction from datawinners.alldata.views import index, reports from datawinners.alldata.views import failed_s...
48.444444
114
0.751147
111
872
5.693694
0.387387
0.079114
0.166139
0.170886
0.414557
0.14557
0.14557
0
0
0
0
0.005096
0.099771
872
17
115
51.294118
0.8
0.047018
0
0
0
0
0.310012
0.248492
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
f469fb9c0617beca4380191f4e87136c8e35c588
4,804
py
Python
NewLifeUtils/LoggerModule.py
NewLife1324/NewLifeUtils-Dev
d955ad801da879d2888506853b0d0141c15dfafc
[ "MIT" ]
2
2020-12-12T17:45:34.000Z
2020-12-16T15:00:05.000Z
NewLifeUtils/LoggerModule.py
NewLife1324/NewLifeUtils
d955ad801da879d2888506853b0d0141c15dfafc
[ "MIT" ]
null
null
null
NewLifeUtils/LoggerModule.py
NewLife1324/NewLifeUtils
d955ad801da879d2888506853b0d0141c15dfafc
[ "MIT" ]
null
null
null
from NewLifeUtils.ColorModule import ACC, MCC from NewLifeUtils.UtilsModule import hex_to_rgb from NewLifeUtils.FileModule import DataStorage, LogFile from NewLifeUtils.StringUtilModule import remove_csi from datetime import datetime import sys class Formatter(dict): def __init__(self, *args, date_format="%d-%m-%...
39.056911
164
0.580766
575
4,804
4.652174
0.217391
0.031402
0.042617
0.046729
0.238505
0.133084
0.110654
0.110654
0.110654
0.110654
0
0.020011
0.251041
4,804
123
165
39.056911
0.723457
0
0
0.0625
0
0.017857
0.214776
0.053902
0
0
0
0
0
1
0.0625
false
0
0.053571
0.008929
0.241071
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
f46ac6dc3031a12623e226f71b58aeded4ff617c
440
py
Python
config/api_urls.py
elcolie/battleship
71b0a963c5b24ae243a193749813fec321d5f4d8
[ "MIT" ]
null
null
null
config/api_urls.py
elcolie/battleship
71b0a963c5b24ae243a193749813fec321d5f4d8
[ "MIT" ]
3
2018-04-22T04:40:25.000Z
2020-06-05T19:10:08.000Z
config/api_urls.py
elcolie/battleship
71b0a963c5b24ae243a193749813fec321d5f4d8
[ "MIT" ]
null
null
null
from rest_framework import routers from boards.api.viewsets import BoardViewSet from fleets.api.viewsets import FleetViewSet from missiles.api.viewsets import MissileViewSet app_name = 'api' router = routers.DefaultRouter() router.register(r'boards', BoardViewSet, base_name='board') router.register(r'fleets', FleetV...
29.333333
65
0.811364
56
440
6.285714
0.446429
0.09375
0.144886
0
0
0
0
0
0
0
0
0
0.086364
440
14
66
31.428571
0.875622
0
0
0
0
0
0.090909
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f46b0b539cef945ee6aa318ff4cb5a94326430db
6,290
py
Python
mealpy/evolutionary_based/MA.py
Alhassan20/mealpy
7ed365c5c495ad1c1e066662c90159b3d5e9b8e3
[ "MIT" ]
1
2021-08-07T16:30:48.000Z
2021-08-07T16:30:48.000Z
mealpy/evolutionary_based/MA.py
Alhassan20/mealpy
7ed365c5c495ad1c1e066662c90159b3d5e9b8e3
[ "MIT" ]
null
null
null
mealpy/evolutionary_based/MA.py
Alhassan20/mealpy
7ed365c5c495ad1c1e066662c90159b3d5e9b8e3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # ------------------------------------------------------------------------------------------------------% # Created by "Thieu Nguyen" at 14:22, 11/04/2020 % # ...
42.214765
134
0.550397
744
6,290
4.419355
0.25672
0.019161
0.032847
0.025547
0.233273
0.133212
0.055961
0.037713
0.037713
0.037713
0
0.028833
0.321781
6,290
148
135
42.5
0.741913
0.296184
0
0.125
0
0
0.001187
0
0
0
0
0
0
1
0.090909
false
0
0.034091
0
0.261364
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f46c203558ba08eaf57d58a68abbbd1315976d22
16,106
py
Python
src/estimagic/estimation/estimate_ml.py
OpenSourceEconomics/estimagic
85163b4cdc601d60d654c6ca1f42b9db17a130a3
[ "MIT" ]
83
2019-09-26T04:44:03.000Z
2022-03-17T20:24:02.000Z
src/estimagic/estimation/estimate_ml.py
OpenSourceEconomics/estimagic
85163b4cdc601d60d654c6ca1f42b9db17a130a3
[ "MIT" ]
243
2019-06-25T18:15:53.000Z
2022-03-26T09:17:44.000Z
src/estimagic/estimation/estimate_ml.py
OpenSourceEconomics/estimagic
85163b4cdc601d60d654c6ca1f42b9db17a130a3
[ "MIT" ]
23
2019-07-03T11:16:55.000Z
2022-03-07T00:57:38.000Z
from estimagic.inference.ml_covs import cov_cluster_robust from estimagic.inference.ml_covs import cov_hessian from estimagic.inference.ml_covs import cov_jacobian from estimagic.inference.ml_covs import cov_robust from estimagic.inference.ml_covs import cov_strata_robust from estimagic.inference.shared import calculat...
47.934524
88
0.626537
1,841
16,106
5.318848
0.204237
0.019914
0.022467
0.018382
0.231618
0.201389
0.186172
0.141034
0.08701
0.070466
0
0.001297
0.234323
16,106
335
89
48.077612
0.792734
0.551782
0
0.087719
0
0
0.111242
0.003094
0
0
0
0
0
1
0.011696
false
0
0.087719
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f46ca3af523c02675160a6c57c283a2d49c86f50
6,503
py
Python
neural_architecture_search_appendix_a.py
NunoEdgarGFlowHub/neural_architecture_search_with_reinforcement_learning_appendix_a
67e4876d428e5155f5526ee02875b0a89a52305d
[ "MIT" ]
68
2017-01-31T06:35:53.000Z
2021-02-24T09:39:55.000Z
neural_architecture_search_appendix_a.py
NunoEdgarGFlowHub/neural_architecture_search_with_reinforcement_learning_appendix_a
67e4876d428e5155f5526ee02875b0a89a52305d
[ "MIT" ]
3
2017-05-14T13:41:39.000Z
2020-04-21T04:23:50.000Z
neural_architecture_search_appendix_a.py
NunoEdgarGFlowHub/neural_architecture_search_with_reinforcement_learning_appendix_a
67e4876d428e5155f5526ee02875b0a89a52305d
[ "MIT" ]
15
2017-03-16T03:04:46.000Z
2018-07-05T15:07:39.000Z
import six import chainer import numpy as np import chainer.links as L import chainer.functions as F import nutszebra_chainer import functools from collections import defaultdict class Conv(nutszebra_chainer.Model): def __init__(self, in_channel, out_channel, filter_size=(3, 3), stride=(1, 1), pad=(1, 1)): ...
42.227273
138
0.531755
1,011
6,503
3.288823
0.138477
0.090226
0.118195
0.137143
0.503158
0.438195
0.393083
0.377744
0.351579
0.350376
0
0.080375
0.311241
6,503
153
139
42.503268
0.661978
0.015685
0
0.192
0
0
0.004704
0
0
0
0
0
0
1
0.144
false
0
0.064
0.048
0.328
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
f46d4201935576f7c5b0f071b01e8b9a5b4caddc
2,945
py
Python
test/test_proportions_delta.py
quizlet/abracadabra
eda599bd02f14b96efdc521f53132d93c9100ede
[ "MIT" ]
24
2020-06-12T16:12:32.000Z
2021-09-01T12:25:38.000Z
test/test_proportions_delta.py
quizlet/abracadabra
eda599bd02f14b96efdc521f53132d93c9100ede
[ "MIT" ]
20
2020-06-12T06:26:08.000Z
2022-03-12T00:57:51.000Z
test/test_proportions_delta.py
quizlet/abracadabra
eda599bd02f14b96efdc521f53132d93c9100ede
[ "MIT" ]
4
2020-06-14T12:14:11.000Z
2021-05-28T15:36:44.000Z
import pytest from abra import Experiment, HypothesisTest def test_large_proportions_delta_expermiment(proportions_data_large): exp = Experiment(proportions_data_large, name='proportions-test') # run 'A/A' test test_aa = HypothesisTest( metric='metric', control='A', variation='A', ...
29.45
80
0.69236
352
2,945
5.482955
0.127841
0.058031
0.103627
0.119689
0.846632
0.829534
0.785492
0.785492
0.760622
0.760622
0
0.000855
0.206112
2,945
100
81
29.45
0.824636
0.040068
0
0.684932
0
0
0.111466
0
0
0
0
0
0.136986
1
0.082192
false
0
0.027397
0
0.109589
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
f46d89c9f6b67abfd2563de23f0ea1549928a68e
1,441
py
Python
src/bootils/plugins/core/jsw.py
Build-The-Web/bootils
8ee88f4d0583352f58fbb89c018e7caef8f07ce3
[ "Apache-2.0" ]
3
2015-03-25T23:00:58.000Z
2018-01-03T15:50:41.000Z
src/bootils/plugins/core/jsw.py
Build-The-Web/bootils
8ee88f4d0583352f58fbb89c018e7caef8f07ce3
[ "Apache-2.0" ]
8
2015-04-10T14:53:20.000Z
2015-12-18T09:59:58.000Z
src/bootils/plugins/core/jsw.py
Build-The-Web/bootils
8ee88f4d0583352f58fbb89c018e7caef8f07ce3
[ "Apache-2.0" ]
2
2015-09-10T13:01:09.000Z
2018-03-04T20:46:09.000Z
# -*- coding: utf-8 -*- # pylint: disable= """ Tanuki Java Service Wrapper runtime environment. Debian JSW paths (Wheezy 3.5.3; Jessie 3.5.22):: /usr/sbin/wrapper – ELF executable /usr/share/wrapper/daemon.sh /usr/share/wrapper/make-wrapper-init.sh /usr/share/wrapper/wrapper.conf "...
35.146341
74
0.700208
198
1,441
5.060606
0.621212
0.05988
0.04491
0.047904
0.083832
0.083832
0
0
0
0
0
0.015517
0.195003
1,441
40
75
36.025
0.846552
0.70923
0
0
0
0
0.047222
0
0
0
0
0.025
0
1
0.25
false
0
0.25
0
0.875
0.25
0
0
0
null
0
0
0
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
1
0
0
0
0
0
0
0
2
f46df9cfbed7221c6dfc035138710969c22cfd18
1,992
py
Python
MachineLearning/hw1/models/LinearRegression.py
ChoKyuWon/SchoolProjects
71a5decefc85ae941ba2d537c4507ba8e615cc34
[ "MIT" ]
null
null
null
MachineLearning/hw1/models/LinearRegression.py
ChoKyuWon/SchoolProjects
71a5decefc85ae941ba2d537c4507ba8e615cc34
[ "MIT" ]
null
null
null
MachineLearning/hw1/models/LinearRegression.py
ChoKyuWon/SchoolProjects
71a5decefc85ae941ba2d537c4507ba8e615cc34
[ "MIT" ]
null
null
null
import numpy as np class LinearRegression: def __init__(self, num_features): self.num_features = num_features self.W = np.zeros((self.num_features, 1)) def train(self, x, y, epochs, batch_size, lr, optim): final_loss = None # loss of final epoch # Training should b...
33.2
89
0.449799
236
1,992
3.690678
0.334746
0.082664
0.086108
0.037887
0.091848
0.052813
0
0
0
0
0
0.006265
0.358936
1,992
59
90
33.762712
0.675803
0.293675
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.027778
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f46e88c174121a507ecd5ff0eff0efa5c6c1e776
1,655
py
Python
apps/bc_scraper/actions/schedule.py
aurmeneta/ramos-uc
364ab3c5a55032ab7ffc08665a2da4c5ff04ae58
[ "MIT" ]
7
2021-07-14T18:13:35.000Z
2021-11-21T20:10:54.000Z
apps/bc_scraper/actions/schedule.py
aurmeneta/ramos-uc
364ab3c5a55032ab7ffc08665a2da4c5ff04ae58
[ "MIT" ]
57
2021-07-10T01:31:56.000Z
2022-01-14T02:02:58.000Z
apps/bc_scraper/actions/schedule.py
aurmeneta/ramos-uc
364ab3c5a55032ab7ffc08665a2da4c5ff04ae58
[ "MIT" ]
4
2021-07-23T16:51:55.000Z
2021-08-31T02:41:41.000Z
from copy import copy DEFAULT_SCHEDULE = {} for day in "lmwjvs": for mod in "12345678": DEFAULT_SCHEDULE[day + mod] = "'FREE'" def process_schedule(text_sc): """For a given schedule text in BC format, returns the SQL queries for inserting the full schedule and schedule info. Those queries have t...
33.77551
87
0.583686
208
1,655
4.509615
0.360577
0.140725
0.072495
0.046908
0.168444
0.108742
0
0
0
0
0
0.012058
0.248338
1,655
48
88
34.479167
0.741961
0.140181
0
0
0
0
0.169044
0
0
0
0
0
0
1
0.029412
false
0
0.029412
0
0.088235
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
f46f4f4b92656a15af396d51e27d17942b2af4aa
9,739
py
Python
openstack_dashboard/dashboards/admin/volumes/views.py
NunoEdgarGFlowHub/horizon
73a0bbd43ea78ac5337f7d00977ec5f32452067e
[ "Apache-2.0" ]
1
2018-04-17T02:32:05.000Z
2018-04-17T02:32:05.000Z
openstack_dashboard/dashboards/admin/volumes/views.py
NunoEdgarGFlowHub/horizon
73a0bbd43ea78ac5337f7d00977ec5f32452067e
[ "Apache-2.0" ]
3
2021-01-21T14:27:55.000Z
2021-06-10T23:08:49.000Z
openstack_dashboard/dashboards/admin/volumes/views.py
Surfndez/horizon
a56765b6b3dbc09fd467b83a57bea2433ae3909e
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Nebula, 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 agree...
38.34252
78
0.652736
1,122
9,739
5.442068
0.191622
0.039306
0.03734
0.029479
0.464297
0.381756
0.347036
0.310023
0.284966
0.24566
0
0.00137
0.250539
9,739
253
79
38.494071
0.835183
0.080193
0
0.398964
0
0
0.142026
0.065585
0
0
0
0
0
1
0.082902
false
0
0.07772
0.005181
0.466321
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
f46f5e7244355f200cf15f2877d74e3a5f0c0027
26
py
Python
tests/__init__.py
flowolf/yessssms
438928967aca38d3d2bb07799d3723757e928553
[ "MIT" ]
6
2015-02-17T09:51:11.000Z
2021-01-05T12:39:26.000Z
tests/__init__.py
flowolf/yessssms
438928967aca38d3d2bb07799d3723757e928553
[ "MIT" ]
1
2019-09-19T20:07:22.000Z
2019-09-24T09:24:04.000Z
tests/__init__.py
flowolf/yessssms
438928967aca38d3d2bb07799d3723757e928553
[ "MIT" ]
2
2017-05-06T09:14:19.000Z
2020-03-04T20:43:33.000Z
"""Tests for YesssSMS."""
13
25
0.615385
3
26
5.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.115385
26
1
26
26
0.695652
0.730769
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
f4710b19edd2c97dbafb4bd7d15c47788db38366
677
py
Python
bldr/dep/env.py
bldr-cmd/bldr-cmd
300750fbccc2987efd23f69b7b2d76d8563e2995
[ "Apache-2.0" ]
null
null
null
bldr/dep/env.py
bldr-cmd/bldr-cmd
300750fbccc2987efd23f69b7b2d76d8563e2995
[ "Apache-2.0" ]
null
null
null
bldr/dep/env.py
bldr-cmd/bldr-cmd
300750fbccc2987efd23f69b7b2d76d8563e2995
[ "Apache-2.0" ]
null
null
null
# This is used by Environment to populate its env # Due to circular dependencies it cannot reference other parts of bldr import toml def default(dotbldr_path: str) -> dict: dep = { 'config': toml.load(f"{dotbldr_path}/dependency.toml"), 'lock': toml.load(f"{dotbldr_path}/dependency.lock.toml") ...
37.611111
72
0.703102
103
677
4.456311
0.398058
0.167756
0.104575
0.191721
0.453159
0.444444
0.287582
0.287582
0
0
0
0
0.175775
677
18
73
37.611111
0.822581
0.171344
0
0
0
0
0.254025
0.232558
0
0
0
0
0
1
0.230769
false
0
0.076923
0
0.538462
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
1
0
0
0
0
1
0
0
3
f471777a68cf3b70989f0f48f2b4ea4d759a30a8
5,382
py
Python
rasa-sample/actions.py
ijufumi/demo-python
b48bdebde172ca581a48346a77b12c30ff202e73
[ "MIT" ]
null
null
null
rasa-sample/actions.py
ijufumi/demo-python
b48bdebde172ca581a48346a77b12c30ff202e73
[ "MIT" ]
null
null
null
rasa-sample/actions.py
ijufumi/demo-python
b48bdebde172ca581a48346a77b12c30ff202e73
[ "MIT" ]
null
null
null
import re from typing import Any, Text, Dict, List from rasa_sdk import Action, Tracker from rasa_sdk.executor import CollectingDispatcher from rasa_sdk.events import SlotSet import lark_module class ActionHelloWorld(Action): state_map = {} def name(self) -> Text: return "action_hello_world" d...
35.642384
120
0.556856
544
5,382
5.306985
0.176471
0.067544
0.099065
0.072047
0.603395
0.57222
0.537236
0.437825
0.437825
0.421198
0
0.01129
0.308807
5,382
150
121
35.88
0.764785
0.004274
0
0.491379
0
0
0.162218
0
0
0
0
0
0
1
0.086207
false
0
0.051724
0.043103
0.284483
0.086207
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f471a2c4554505f4474a4ceb98a24f55991c2cdc
1,557
py
Python
parsers/politico.py
plympton/newsdiffs
2a055850bda850b9b6c28c989512d4e4b3e9b64e
[ "MIT" ]
null
null
null
parsers/politico.py
plympton/newsdiffs
2a055850bda850b9b6c28c989512d4e4b3e9b64e
[ "MIT" ]
null
null
null
parsers/politico.py
plympton/newsdiffs
2a055850bda850b9b6c28c989512d4e4b3e9b64e
[ "MIT" ]
null
null
null
from baseparser import BaseParser, grab_url, logger # Different versions of BeautifulSoup have different properties. # Some work with one site, some with another. # This is BeautifulSoup 3.2. from BeautifulSoup import BeautifulSoup # This is BeautifulSoup 4 import bs4 class PoliticoParser(BaseParser): domains = ...
35.386364
80
0.620424
196
1,557
4.852041
0.540816
0.02103
0.044164
0.042061
0
0
0
0
0
0
0
0.013664
0.247913
1,557
43
81
36.209302
0.798463
0.163776
0
0
0
0
0.132819
0.016216
0.035714
0
0
0
0
1
0.035714
false
0
0.107143
0
0.321429
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f472e924139d73818eedf6b97de856c2ca049e7a
6,535
py
Python
integration-tests/bats/server_multiclient_test.py
fairhopeweb/dolt
276b85b7b1287f883640ef3fcacb0bdb112749b2
[ "Apache-2.0" ]
2
2021-03-09T07:32:40.000Z
2021-06-11T21:41:30.000Z
integration-tests/bats/server_multiclient_test.py
albertusortiz/dolt
38fc4fcb0357a56eb97abdb25296f45571a5418f
[ "Apache-2.0" ]
null
null
null
integration-tests/bats/server_multiclient_test.py
albertusortiz/dolt
38fc4fcb0357a56eb97abdb25296f45571a5418f
[ "Apache-2.0" ]
1
2021-08-06T13:05:57.000Z
2021-08-06T13:05:57.000Z
import os import sys from queue import Queue from threading import Thread from helper.pytest import DoltConnection # Utility functions def print_err(e): print(e, file=sys.stderr) def query(dc, query_str): return dc.query(query_str, False) def query_with_expected_error(dc, non_error_msg , query_str): ...
32.839196
140
0.680643
984
6,535
4.303862
0.197154
0.029752
0.01889
0.034711
0.320897
0.274616
0.212987
0.189138
0.150649
0.141677
0
0.016885
0.19342
6,535
198
141
33.005051
0.786568
0.096557
0
0.258993
0
0.028777
0.25594
0.046164
0
0
0
0
0
1
0.136691
false
0.007194
0.035971
0.014388
0.194245
0.028777
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f47301fb50cbf2affb241d7c61d027660a0014ae
24,598
py
Python
messenger/client/messenger.py
marik348/python-messenger
6c1916b0df439cd997cb6e9376221fe587c3f1c1
[ "MIT" ]
2
2021-05-24T08:44:51.000Z
2022-03-17T10:41:48.000Z
messenger/client/messenger.py
marik348/python-messenger
6c1916b0df439cd997cb6e9376221fe587c3f1c1
[ "MIT" ]
1
2020-11-28T12:08:25.000Z
2020-11-28T12:08:25.000Z
messenger/client/messenger.py
marik348/python-messegner
6c1916b0df439cd997cb6e9376221fe587c3f1c1
[ "MIT" ]
1
2021-05-24T08:50:42.000Z
2021-05-24T08:50:42.000Z
from requests import get, post, exceptions from datetime import datetime from PyQt5 import QtWidgets, QtCore from PyQt5.QtWidgets import QMessageBox from PyQt5.QtGui import QFont from qtwidgets import PasswordEdit from client_commands import (help_client, online, status, myself, reg, role, ban, unban) from client_con...
38.982567
120
0.622693
2,858
24,598
5.187544
0.138209
0.034804
0.034129
0.041076
0.462701
0.415756
0.361122
0.334345
0.32153
0.271887
0
0.008887
0.277218
24,598
630
121
39.044444
0.825018
0.186275
0
0.429293
0
0
0.112184
0.011809
0
0
0
0
0
1
0.065657
false
0.113636
0.030303
0
0.179293
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
f475a7baedbb00d2706f41a680754762b1e5e2d7
6,599
py
Python
oscar/lib/python2.7/site-packages/prompt_toolkit/utils.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/prompt_toolkit/utils.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/prompt_toolkit/utils.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import inspect import os import signal import sys import threading import weakref from wcwidth import wcwidth from six.moves import range __all__ = ( 'Event', 'DummyContext', 'get_cwidth', 'suspend_to_background_supported', 'is_conemu_ansi'...
27.381743
88
0.575542
772
6,599
4.76943
0.331606
0.010864
0.017382
0.015209
0.015209
0
0
0
0
0
0
0.007738
0.334142
6,599
240
89
27.495833
0.830223
0.340052
0
0.114035
0
0
0.068948
0.008035
0
0
0
0
0.061404
1
0.140351
false
0.017544
0.078947
0
0.359649
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
f476ce15c4cf3ddf393197690eec2e823de61189
92,209
py
Python
lmdb/cffi.py
hirnimeshrampuresoftware/py-lmdb
9aa7560f8e1a89b437fb3fed7ea36f5888b7a963
[ "OLDAP-2.8" ]
185
2019-06-18T15:58:49.000Z
2022-03-09T09:42:57.000Z
lmdb/cffi.py
hirnimeshrampuresoftware/py-lmdb
9aa7560f8e1a89b437fb3fed7ea36f5888b7a963
[ "OLDAP-2.8" ]
114
2019-06-15T04:19:04.000Z
2022-03-30T06:34:44.000Z
lmdb/cffi.py
hirnimeshrampuresoftware/py-lmdb
9aa7560f8e1a89b437fb3fed7ea36f5888b7a963
[ "OLDAP-2.8" ]
32
2019-07-03T23:56:58.000Z
2022-02-12T04:46:16.000Z
# # Copyright 2013 The py-lmdb authors, all rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted only as authorized by the OpenLDAP # Public License. # # A copy of this license is available in the file LICENSE in the # top-level directory of the distribut...
37.728723
105
0.596298
11,551
92,209
4.570513
0.104233
0.016366
0.011138
0.013922
0.387525
0.349983
0.332386
0.307024
0.282381
0.265636
0
0.017764
0.305849
92,209
2,443
106
37.744167
0.807052
0.472405
0
0.290688
0
0
0.258397
0.023818
0
0
0
0
0
1
0.08094
false
0.001741
0.013055
0.005222
0.228895
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
f477633c1badf20c6b9aa7cdc1d086ce3dd6b193
6,425
py
Python
.virtual_documents/00_core.ipynb.py
AtomScott/image_folder_datasets
935580929abc9d8ec9eeaf944a0d3c670a09d04d
[ "Apache-2.0" ]
null
null
null
.virtual_documents/00_core.ipynb.py
AtomScott/image_folder_datasets
935580929abc9d8ec9eeaf944a0d3c670a09d04d
[ "Apache-2.0" ]
null
null
null
.virtual_documents/00_core.ipynb.py
AtomScott/image_folder_datasets
935580929abc9d8ec9eeaf944a0d3c670a09d04d
[ "Apache-2.0" ]
null
null
null
# default_exp core #hide from nbdev.showdoc import * from fastcore.test import * # export import os import torch from torch import nn from torch.nn import functional as F from torch.utils.data import DataLoader import warnings import torchvision from torchvision.datasets import MNIST, ImageFolder from torchvision...
32.286432
127
0.651518
803
6,425
5.048568
0.28269
0.017267
0.006167
0.00444
0.361618
0.344845
0.316724
0.260977
0.24223
0.21263
0
0.021994
0.242802
6,425
198
128
32.449495
0.811305
0.104591
0
0.23622
0
0
0.069134
0.023045
0
0
0
0.005051
0.015748
1
0.125984
false
0.015748
0.11811
0.023622
0.314961
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
f477a30d49ec339fb9956b3d20c8d92ea00908ad
641
py
Python
src/modules/iam/module.py
pgorecki/python-ddd
0073ccce35c651be263f5d7d3d63f9a49bc0b78a
[ "MIT" ]
10
2022-03-16T19:26:51.000Z
2022-03-31T23:50:51.000Z
src/modules/iam/module.py
pgorecki/python-ddd
0073ccce35c651be263f5d7d3d63f9a49bc0b78a
[ "MIT" ]
null
null
null
src/modules/iam/module.py
pgorecki/python-ddd
0073ccce35c651be263f5d7d3d63f9a49bc0b78a
[ "MIT" ]
2
2022-03-16T19:26:54.000Z
2022-03-27T13:21:02.000Z
from seedwork.application.modules import BusinessModule from modules.iam.application.services import AuthenticationService class IdentityAndAccessModule(BusinessModule): def __init__(self, authentication_service: AuthenticationService): self.authentication_service = authentication_service # @staticm...
35.611111
94
0.730109
56
641
8.196429
0.589286
0.228758
0.108932
0
0
0
0
0
0
0
0
0
0.199688
641
17
95
37.705882
0.894737
0.446178
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
f477fec40612fa1a5fd9ffbd050a890ebec79d19
2,030
py
Python
test_scripts/pyfora2/containerTests.py
ufora/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
571
2015-11-05T20:07:07.000Z
2022-01-24T22:31:09.000Z
test_scripts/pyfora2/containerTests.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
218
2015-11-05T20:37:55.000Z
2021-05-30T03:53:50.000Z
test_scripts/pyfora2/containerTests.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
40
2015-11-07T21:42:19.000Z
2021-05-23T03:48:19.000Z
# Copyright 2015 Ufora 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 i...
33.833333
76
0.733005
227
2,030
6.515419
0.475771
0.052062
0.040568
0.056795
0.125761
0
0
0
0
0
0
0.011607
0.193596
2,030
59
77
34.40678
0.891875
0.278325
0
0.085714
0
0
0.035912
0
0
0
0
0
0
1
0.085714
false
0
0.257143
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4782d553047c0d6c83eb8c3ac341a236af78e5e
597
py
Python
src/utils/torch_common.py
quochungto/SIIM-COVID19-Detection
88bc10d7b01d277d223c4dddd4c223a782616611
[ "MIT" ]
null
null
null
src/utils/torch_common.py
quochungto/SIIM-COVID19-Detection
88bc10d7b01d277d223c4dddd4c223a782616611
[ "MIT" ]
null
null
null
src/utils/torch_common.py
quochungto/SIIM-COVID19-Detection
88bc10d7b01d277d223c4dddd4c223a782616611
[ "MIT" ]
null
null
null
import os import gc import random import numpy as np import torch def seed_everything(seed): os.environ['PYTHONHASHSEED'] = str(seed) random.seed(seed) np.random.seed(seed) torch.manual_seed(seed) torch.cuda.manual_seed(seed) torch.backends.cudnn.deterministic = True torch.backends.cudnn.be...
21.321429
59
0.673367
80
597
4.9375
0.5625
0.081013
0.098734
0.096203
0
0
0
0
0
0
0
0.008565
0.217755
597
27
60
22.111111
0.837259
0.127303
0
0
0
0
0.027944
0
0
0
0
0
0
1
0.105263
false
0
0.263158
0
0.368421
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
f4793bd8d4530ee80fabe88563d6a3ddbecb48d2
6,713
py
Python
recipes/freeimage/all/conanfile.py
marsven/conan-center-index
d8bb4ad617cee02d8664e8341fa32cdf702e4284
[ "MIT" ]
null
null
null
recipes/freeimage/all/conanfile.py
marsven/conan-center-index
d8bb4ad617cee02d8664e8341fa32cdf702e4284
[ "MIT" ]
null
null
null
recipes/freeimage/all/conanfile.py
marsven/conan-center-index
d8bb4ad617cee02d8664e8341fa32cdf702e4284
[ "MIT" ]
null
null
null
from conans import ConanFile, CMake, tools import os import shutil required_conan_version = ">=1.43.0" class FreeImageConan(ConanFile): name = "freeimage" description = "Open Source library project for developers who would like to support popular graphics image formats"\ "like PNG, BMP, JPE...
40.439759
120
0.619097
791
6,713
5.078382
0.219975
0.093104
0.10829
0.076176
0.379885
0.188449
0.156585
0.147623
0.127209
0.048793
0
0.014162
0.242663
6,713
165
121
40.684848
0.775964
0
0
0.156463
0
0
0.216148
0.003575
0
0
0
0
0
1
0.081633
false
0
0.020408
0.013605
0.217687
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
f47944bb4b7b60683bb6b4d4d72854dfc4c98c2a
110,180
py
Python
src/google/appengine/datastore/datastore_query.py
myelin/appengine-python-standard
2a99acd114f7cdd66fbad9bfd185384eef847c84
[ "Apache-2.0" ]
null
null
null
src/google/appengine/datastore/datastore_query.py
myelin/appengine-python-standard
2a99acd114f7cdd66fbad9bfd185384eef847c84
[ "Apache-2.0" ]
null
null
null
src/google/appengine/datastore/datastore_query.py
myelin/appengine-python-standard
2a99acd114f7cdd66fbad9bfd185384eef847c84
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 Google LLC # # 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...
32.482311
81
0.690634
14,487
110,180
4.991648
0.064748
0.019291
0.033009
0.026385
0.433955
0.362184
0.289653
0.244033
0.222543
0.191222
0
0.003428
0.232274
110,180
3,391
82
32.49189
0.851468
0.297205
0
0.351882
0
0
0.05479
0.00705
0
0
0
0
0.001637
1
0.118385
false
0.000546
0.010366
0.027278
0.278232
0.000546
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f479e4c7564b46ceb9cbf0369fdeb3cac10260f7
4,274
py
Python
tests/Metrics/test_recall.py
Neklaustares-tPtwP/torchflare
7af6b01ef7c26f0277a041619081f6df4eb1e42c
[ "Apache-2.0" ]
1
2021-09-14T08:38:05.000Z
2021-09-14T08:38:05.000Z
tests/Metrics/test_recall.py
weidao-Shi/torchflare
3c55b5a0761f2e85dd6da95767c6ec03f0f5baad
[ "Apache-2.0" ]
null
null
null
tests/Metrics/test_recall.py
weidao-Shi/torchflare
3c55b5a0761f2e85dd6da95767c6ec03f0f5baad
[ "Apache-2.0" ]
1
2021-08-06T19:24:43.000Z
2021-08-06T19:24:43.000Z
# flake8: noqa import warnings import pytest import torch from sklearn.exceptions import UndefinedMetricWarning from sklearn.metrics import recall_score from torchflare.metrics.recall_meter import Recall from torchflare.metrics.meters import _BaseInputHandler torch.manual_seed(42) def test_binary_inputs(): def...
33.920635
111
0.654422
536
4,274
5.050373
0.141791
0.077577
0.046546
0.069819
0.878833
0.878833
0.877724
0.85556
0.85556
0.846694
0
0.022175
0.229761
4,274
125
112
34.192
0.800122
0.002808
0
0.614458
0
0
0.017371
0
0
0
0
0
0.108434
1
0.072289
false
0
0.084337
0
0.156627
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
f47a1ea7f8990d7f8f0d9190441ddb6344e10412
1,785
py
Python
parsing/tests/test_utils.py
davesque/parsing.py
ff8b20e53b94e79571971ef23f0e5091e2786566
[ "MIT" ]
1
2020-11-14T13:06:42.000Z
2020-11-14T13:06:42.000Z
parsing/tests/test_utils.py
davesque/parsing.py
ff8b20e53b94e79571971ef23f0e5091e2786566
[ "MIT" ]
null
null
null
parsing/tests/test_utils.py
davesque/parsing.py
ff8b20e53b94e79571971ef23f0e5091e2786566
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import unittest from ..utils import compose, flatten, truncate, join, unary, equals class TestEquals(unittest.TestCase): def test_it_should_return_a_function_that_compares_against_x(self): self.assertTrue(equals(234)(234)) self.assertFalse(equals(234)(123)...
30.775862
87
0.652101
223
1,785
4.982063
0.336323
0.162016
0.10261
0.124212
0.225023
0.178218
0
0
0
0
0
0.038765
0.219608
1,785
57
88
31.315789
0.758794
0
0
0.04878
0
0
0.061064
0.017927
0
0
0
0
0.341463
1
0.146341
false
0
0.073171
0
0.365854
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
f47b6c51761fb432f29fb2e6eb1f0ea2e885172e
1,807
py
Python
Array/Final450/Move_Negative_Nums_To_One_End/relative_order_matters/move_negative_nums_to_one_end--insertion_sort_modified.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Array/Final450/Move_Negative_Nums_To_One_End/relative_order_matters/move_negative_nums_to_one_end--insertion_sort_modified.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Array/Final450/Move_Negative_Nums_To_One_End/relative_order_matters/move_negative_nums_to_one_end--insertion_sort_modified.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
from Utils.Array import input_array # Time : O(n2) # Space : O(1) Constant space """ Ill be having 2 pointers here one of them will move through the array looking for -ve numbers to operate on and another will be pointing to the correct location where i can put the -ve elements, after i find them also this same...
34.09434
105
0.646375
301
1,807
3.757475
0.415282
0.035367
0.04244
0.056587
0.091954
0
0
0
0
0
0
0.036378
0.285003
1,807
52
106
34.75
0.839009
0.203652
0
0
0
0
0.012862
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.117647
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f47c09e34304fe10a016d16f624d1fb84ab59f99
2,786
py
Python
python_test/test_epoll/test_epoll.py
zhtsh/test-examples
ed5a45bf8546a9bd7fc35e38f9679be385d0d9e6
[ "Apache-2.0" ]
null
null
null
python_test/test_epoll/test_epoll.py
zhtsh/test-examples
ed5a45bf8546a9bd7fc35e38f9679be385d0d9e6
[ "Apache-2.0" ]
null
null
null
python_test/test_epoll/test_epoll.py
zhtsh/test-examples
ed5a45bf8546a9bd7fc35e38f9679be385d0d9e6
[ "Apache-2.0" ]
null
null
null
# coding=utf8 import socket import select from datetime import datetime from datetime import timedelta EOL = b'\n\n' response = b'HTTP/1.0 200 OK\nDate: Mon, 1 Jan 1996 01:01:01 GMT\n' response += b'Content-Type: text/plain\nContent-Length: 13\n\n' response += b'Hello, world!\n' # 创建套接字对象并绑定监听端口 servers...
38.164384
79
0.561378
260
2,786
5.996154
0.4
0.076331
0.019243
0.014112
0.105837
0.105837
0.105837
0.071841
0.071841
0
0
0.021253
0.34135
2,786
72
80
38.694444
0.828338
0.145011
0
0.240741
0
0.018519
0.055314
0.01176
0
0
0
0
0
1
0
false
0
0.074074
0
0.074074
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f47cd9858ae9886cfca8b27e46c09a635662d571
2,771
py
Python
20.2-Donut/Donut2.py
Kehvarl/AdventOfCode2019
f72cfeefdfbde365bc9a5b722d5875d556379cf2
[ "MIT" ]
1
2020-09-27T23:02:46.000Z
2020-09-27T23:02:46.000Z
20.2-Donut/Donut2.py
Kehvarl/AdventOfCode2019
f72cfeefdfbde365bc9a5b722d5875d556379cf2
[ "MIT" ]
null
null
null
20.2-Donut/Donut2.py
Kehvarl/AdventOfCode2019
f72cfeefdfbde365bc9a5b722d5875d556379cf2
[ "MIT" ]
1
2019-12-09T17:10:48.000Z
2019-12-09T17:10:48.000Z
import collections from pprint import pprint example1 = open("input.txt", "r").read() # grid = [[val for val in line] for line in example1.split("\n")] grid = example1.split("\n") length = 0 for line in grid: length = max(len(line), length) out = [] for line in grid: out.append(line[::-1].zfill(length)[::-1...
24.741071
93
0.498015
425
2,771
3.103529
0.223529
0.030326
0.018196
0.02047
0.052312
0.052312
0.043215
0
0
0
0
0.021906
0.341032
2,771
111
94
24.963964
0.700438
0.067124
0
0.051282
0
0
0.010089
0
0
0
0
0
0
1
0.012821
false
0
0.025641
0
0.064103
0.064103
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f47e72619d39a8c165d31a3169ddc7283ecd466a
845
py
Python
OR_Client_Library/openrefine_client/tests/test_history.py
idaks/OpenRefine-Provenance-Tools
cc469c3eb8e56c8b0f4616cc501546db3c4176ea
[ "MIT" ]
null
null
null
OR_Client_Library/openrefine_client/tests/test_history.py
idaks/OpenRefine-Provenance-Tools
cc469c3eb8e56c8b0f4616cc501546db3c4176ea
[ "MIT" ]
null
null
null
OR_Client_Library/openrefine_client/tests/test_history.py
idaks/OpenRefine-Provenance-Tools
cc469c3eb8e56c8b0f4616cc501546db3c4176ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ test_history.py """ # Copyright (c) 2011 Paul Makepeace, Real Programmers. All rights reserved. import unittest from OR_Client_Library.openrefine_client.google.refine.history import * class HistoryTest(unittest.TestCase): def test_init(self): response = { u"code": ...
26.40625
75
0.60355
95
845
5.231579
0.568421
0.090543
0.120724
0.088531
0.080483
0.080483
0
0
0
0
0
0.095847
0.259172
845
31
76
27.258065
0.698083
0.130178
0
0
0
0
0.190083
0
0
0
0
0
0.157895
1
0.052632
false
0
0.105263
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f47f72a41b188aa9caae89718d01a31bf276031b
6,160
py
Python
tests/batch/test_get_batch.py
Remmeauth/remme-core-cli
94cc09fe9d2e718b45273dde68d6c672c4773f6a
[ "MIT" ]
null
null
null
tests/batch/test_get_batch.py
Remmeauth/remme-core-cli
94cc09fe9d2e718b45273dde68d6c672c4773f6a
[ "MIT" ]
94
2019-03-27T09:34:28.000Z
2019-08-27T05:32:33.000Z
tests/batch/test_get_batch.py
Remmeauth/remme-core-cli
94cc09fe9d2e718b45273dde68d6c672c4773f6a
[ "MIT" ]
6
2019-06-06T15:16:38.000Z
2020-02-24T12:55:55.000Z
""" Provide tests for command line interface's get batch command. """ import json import pytest from click.testing import CliRunner from cli.constants import ( DEV_BRANCH_NODE_IP_ADDRESS_FOR_TESTING, FAILED_EXIT_FROM_COMMAND_CODE, PASSED_EXIT_FROM_COMMAND_CODE, ) from cli.entrypoint import cli from cli.ut...
34.606742
118
0.63961
537
6,160
7.013035
0.242086
0.040892
0.027881
0.035316
0.348115
0.294211
0.263675
0.237918
0.237918
0.187201
0
0.148123
0.27776
6,160
177
119
34.80226
0.698359
0.099513
0
0.507813
0
0
0.347171
0.239713
0
0
0
0
0.078125
1
0.039063
false
0.03125
0.046875
0
0.085938
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
f480097de648b87f17c2df8fc143686ff51cd136
364
py
Python
experiments/scripts/preprocess_dataset.py
pbielak/graph-barlow-twins
f8e20134afed4f17ffcecf8f48764df362ffdcad
[ "MIT" ]
9
2021-06-11T13:23:50.000Z
2022-03-23T19:45:54.000Z
experiments/scripts/preprocess_dataset.py
pbielak/graph-barlow-twins
f8e20134afed4f17ffcecf8f48764df362ffdcad
[ "MIT" ]
2
2021-09-22T13:58:39.000Z
2021-11-23T02:26:50.000Z
experiments/scripts/preprocess_dataset.py
pbielak/graph-barlow-twins
f8e20134afed4f17ffcecf8f48764df362ffdcad
[ "MIT" ]
2
2021-06-10T06:05:47.000Z
2021-09-27T15:13:23.000Z
import sys from gssl.datasets import load_dataset from gssl.inductive.datasets import load_ppi from gssl.utils import seed def main(): seed() # Read dataset name dataset_name = sys.argv[1] # Load dataset if dataset_name == "PPI": load_ppi() else: load_dataset(name=dataset_na...
15.826087
44
0.662088
49
364
4.612245
0.387755
0.243363
0.159292
0.19469
0
0
0
0
0
0
0
0.00365
0.247253
364
22
45
16.545455
0.821168
0.082418
0
0
0
0
0.033233
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.384615
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
f48259ce6371a22b92ea0a936d7be4886d4013dc
4,030
py
Python
agro_site/orders/migrations/0001_initial.py
LukoninDmitryPy/agro_site-2
eab7694d42104774e5ce6db05a79f11215db6ae3
[ "MIT" ]
null
null
null
agro_site/orders/migrations/0001_initial.py
LukoninDmitryPy/agro_site-2
eab7694d42104774e5ce6db05a79f11215db6ae3
[ "MIT" ]
null
null
null
agro_site/orders/migrations/0001_initial.py
LukoninDmitryPy/agro_site-2
eab7694d42104774e5ce6db05a79f11215db6ae3
[ "MIT" ]
1
2022-03-13T11:32:48.000Z
2022-03-13T11:32:48.000Z
# Generated by Django 2.2.16 on 2022-04-12 13:28 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.db.models.expressions import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('sales...
52.337662
205
0.6134
419
4,030
5.732697
0.307876
0.054954
0.058285
0.073272
0.374271
0.345545
0.345545
0.318068
0.318068
0.318068
0
0.011408
0.23871
4,030
76
206
53.026316
0.771512
0.011414
0
0.333333
1
0
0.133099
0.005274
0
0
0
0
0
1
0
false
0
0.072464
0
0.130435
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
f482b268cafb6a5a7b275bd6f15025933187f73e
881
py
Python
app/forms.py
FakeYou/flask-microblog
021b786417a2ae1aaa957661beb25d381a7efdb2
[ "MIT" ]
null
null
null
app/forms.py
FakeYou/flask-microblog
021b786417a2ae1aaa957661beb25d381a7efdb2
[ "MIT" ]
null
null
null
app/forms.py
FakeYou/flask-microblog
021b786417a2ae1aaa957661beb25d381a7efdb2
[ "MIT" ]
null
null
null
from flask.ext.wtf import Form from wtforms import StringField, BooleanField, PasswordField from wtforms.validators import InputRequired, Email, EqualTo, Length class LoginForm(Form): nickname = StringField('nickname', validators=[InputRequired()]) password = PasswordField('password', validators=[InputRequired...
48.944444
104
0.704881
80
881
7.7375
0.4
0.22294
0.074313
0.100162
0.342488
0.174475
0
0
0
0
0
0.004098
0.169126
881
18
105
48.944444
0.84153
0
0
0.133333
0
0
0.106576
0
0
0
0
0
0
1
0
false
0.333333
0.2
0
0.933333
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
f482d9773506167246440d9307b62395f61caa1a
2,353
py
Python
ais3-pre-exam-2022-writeup/Misc/JeetQode/chall/problems/astmath.py
Jimmy01240397/balsn-2021-writeup
91b71dfbddc1c214552280b12979a82ee1c3cb7e
[ "MIT" ]
null
null
null
ais3-pre-exam-2022-writeup/Misc/JeetQode/chall/problems/astmath.py
Jimmy01240397/balsn-2021-writeup
91b71dfbddc1c214552280b12979a82ee1c3cb7e
[ "MIT" ]
null
null
null
ais3-pre-exam-2022-writeup/Misc/JeetQode/chall/problems/astmath.py
Jimmy01240397/balsn-2021-writeup
91b71dfbddc1c214552280b12979a82ee1c3cb7e
[ "MIT" ]
null
null
null
from problem import Problem from typing import Any, Tuple from random import randint import ast import json def gen_num(): return str(randint(1, 9)) def gen_op(): return "+-*/"[randint(0, 3)] def gen_expr(depth): if randint(0, depth) == 0: l = gen_expr(depth + 1) r = gen_expr(depth + 1...
37.349206
800
0.592435
344
2,353
3.866279
0.258721
0.105263
0.075188
0.120301
0.394737
0.394737
0.322556
0.286466
0.224812
0.224812
0
0.050674
0.211645
2,353
62
801
37.951613
0.666307
0
0
0.104167
0
0.041667
0.557161
0
0
0
0.023799
0
0
1
0.166667
false
0
0.104167
0.125
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
f4838193c2db95eaa11b6561ddf47a01a31acc59
690
py
Python
pyllusion/movement/movement_circles.py
RebeccaHirst/Pyllusion
9944076e38bced0eabb49c607482b71809150bdb
[ "MIT" ]
null
null
null
pyllusion/movement/movement_circles.py
RebeccaHirst/Pyllusion
9944076e38bced0eabb49c607482b71809150bdb
[ "MIT" ]
null
null
null
pyllusion/movement/movement_circles.py
RebeccaHirst/Pyllusion
9944076e38bced0eabb49c607482b71809150bdb
[ "MIT" ]
null
null
null
import numpy as np from .movement_matrix import movement_matrix from ..image import image_circles def movement_circles(n=50, duration=2, fps=30, width=500, height=500, **kwargs): """ >>> import pyllusion as ill >>> >>> images = ill.movement_circles(n=50, duration=4, fps=30, color="black", size=0.05) ...
27.6
89
0.631884
101
690
4.188119
0.445545
0.066194
0.07565
0.085106
0.122931
0
0
0
0
0
0
0.038961
0.218841
690
24
90
28.75
0.745826
0.282609
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.416667
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
f484180dc11ca61b16fecb37c23ed96a63de8738
6,853
py
Python
sce.py
hzwfl2/Semantic-consistent-Embedding
d3712cc6f27febbf654e1eb8c43c0b48376a9be1
[ "MIT" ]
2
2021-12-22T07:39:30.000Z
2022-01-02T14:45:39.000Z
sce.py
hch-xmu/Semantic-consistent-Embedding
2e408267095079d70daff6b391209aabb3d9acd3
[ "MIT" ]
null
null
null
sce.py
hch-xmu/Semantic-consistent-Embedding
2e408267095079d70daff6b391209aabb3d9acd3
[ "MIT" ]
3
2021-12-16T12:56:10.000Z
2022-01-18T02:03:31.000Z
#%% import matplotlib.pyplot as plt import numpy as np import pandas as pd import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import accuracy_score from sklearn.naive_bayes import GaussianNB f...
33.758621
168
0.618707
954
6,853
4.232704
0.220126
0.010896
0.020802
0.011887
0.116147
0.072808
0.053492
0.027241
0.027241
0
0
0.031585
0.223844
6,853
203
169
33.758621
0.72758
0.002773
0
0.013333
0
0
0.040906
0.013736
0
0
0
0
0.006667
1
0.073333
false
0
0.1
0.006667
0.246667
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f484cdb74eddcab3519034cf17a9751d9384ce4d
1,876
py
Python
graphsage/partition_predict.py
colirain/GraphSAGE
a63145ff18f87cb69340c7b457c34839e9124086
[ "MIT" ]
null
null
null
graphsage/partition_predict.py
colirain/GraphSAGE
a63145ff18f87cb69340c7b457c34839e9124086
[ "MIT" ]
null
null
null
graphsage/partition_predict.py
colirain/GraphSAGE
a63145ff18f87cb69340c7b457c34839e9124086
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from graphsage.models import FCPartition from graphsage.partition_train import construct_placeholders from graphsage.utils import load_graph_data, load_embedded_data, load_embedded_idmap flags = tf.app.flags FLAGS = flags.FLAGS # flags.DEFINE_integer('dim_1', ...
30.754098
95
0.678038
254
1,876
4.744094
0.334646
0.082158
0.039834
0.033195
0.121992
0.087137
0
0
0
0
0
0.009908
0.192964
1,876
61
96
30.754098
0.785997
0.299041
0
0
0
0
0.041935
0
0
0
0
0
0
1
0.060606
false
0
0.151515
0
0.212121
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f484e0eafc21497bc2d0dc913be6480e2eceab78
13,307
py
Python
scripts/generate_XML_files/DS1/annotatedsen_to_xml.py
AmmarQaseem/CPI-Pipeline-test
3866883c54d7bd77753ee4b72997949bdcf76359
[ "PostgreSQL", "ISC", "Intel" ]
null
null
null
scripts/generate_XML_files/DS1/annotatedsen_to_xml.py
AmmarQaseem/CPI-Pipeline-test
3866883c54d7bd77753ee4b72997949bdcf76359
[ "PostgreSQL", "ISC", "Intel" ]
null
null
null
scripts/generate_XML_files/DS1/annotatedsen_to_xml.py
AmmarQaseem/CPI-Pipeline-test
3866883c54d7bd77753ee4b72997949bdcf76359
[ "PostgreSQL", "ISC", "Intel" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ Copyright (c) 2015, Elham Abbasian <e_abbasian@yahoo.com>, Kersten Doering <kersten.doering@gmail.com> This parser reads annotated sentences (output from get_relations.py) in a tab-separated format to generate a unified XML format (Tikk et al., 2010. A compreh...
58.364035
425
0.618622
1,814
13,307
4.409592
0.211687
0.048756
0.031629
0.016502
0.292787
0.24303
0.230404
0.217652
0.204651
0.185523
0
0.022917
0.252348
13,307
227
426
58.621145
0.781084
0.362441
0
0.307018
0
0
0.182658
0.02854
0.017544
0
0
0.008811
0
1
0
false
0
0.035088
0
0.035088
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
f484e4f5510b4a5e4e942079f6f30e54e25d0b89
488
py
Python
tests/test_add_contact.py
SergeyDorokhov/python_training
e15e561fe7ad055048643adcfc88b3f2d55530ca
[ "Apache-2.0" ]
null
null
null
tests/test_add_contact.py
SergeyDorokhov/python_training
e15e561fe7ad055048643adcfc88b3f2d55530ca
[ "Apache-2.0" ]
null
null
null
tests/test_add_contact.py
SergeyDorokhov/python_training
e15e561fe7ad055048643adcfc88b3f2d55530ca
[ "Apache-2.0" ]
null
null
null
def test_add_contact(app, db, json_contacts, check_ui): contact = json_contacts list_before = db.get_contact_list() contact.id_contact = app.contact.get_next_id(list_before) app.contact.create(contact) assert len(list_before) + 1 == len(db.get_contact_list()) list_after = db.get_contact_list() ...
44.363636
67
0.727459
72
488
4.597222
0.319444
0.151057
0.108761
0.145015
0.120846
0
0
0
0
0
0
0.002439
0.159836
488
11
67
44.363636
0.804878
0
0
0
0
0
0
0
0
0
0
0
0.272727
1
0.090909
false
0
0
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
f485580fbee3d8993b0b04b4d71777a8883725b7
1,182
py
Python
website/members/urls.py
eamanu/asoc_members
bf2e99e9c63c60a59bdfd10ca1812d78851cbde6
[ "MIT" ]
null
null
null
website/members/urls.py
eamanu/asoc_members
bf2e99e9c63c60a59bdfd10ca1812d78851cbde6
[ "MIT" ]
null
null
null
website/members/urls.py
eamanu/asoc_members
bf2e99e9c63c60a59bdfd10ca1812d78851cbde6
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.urls import path from members import views urlpatterns = [ path('solicitud-alta/', views.signup_initial, name='signup'), path('solicitud-alta/persona/', views.signup_form_person, name='signup_person'), path('solicitud-...
47.28
88
0.755499
147
1,182
5.857143
0.319728
0.111498
0.078978
0
0
0
0
0
0
0
0
0
0.102369
1,182
24
89
49.25
0.811499
0
0
0
0
0
0.334179
0.080372
0
0
0
0
0
1
0
false
0
0.210526
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f485c8b7834281c5e46b0be30ec91fef7f0a76cd
2,482
py
Python
Benchmarking/Keras/Tensorflow/TF_dataforcomparisongraphss.py
vais-ral/CCPi-ML
ca9baeb0dd5db3a97ac8ab9e33e03aeae42ebfa4
[ "Apache-2.0" ]
null
null
null
Benchmarking/Keras/Tensorflow/TF_dataforcomparisongraphss.py
vais-ral/CCPi-ML
ca9baeb0dd5db3a97ac8ab9e33e03aeae42ebfa4
[ "Apache-2.0" ]
null
null
null
Benchmarking/Keras/Tensorflow/TF_dataforcomparisongraphss.py
vais-ral/CCPi-ML
ca9baeb0dd5db3a97ac8ab9e33e03aeae42ebfa4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jul 18 14:04:03 2018 @author: zyv57124 """ import scipy.io as sio import tensorflow as tf from tensorflow import keras import numpy as np import matplotlib import matplotlib.pyplot as plt from tensorflow.python.training import gradient_descent from time import tim...
17.236111
144
0.580983
304
2,482
4.638158
0.440789
0.034043
0.034043
0.024113
0.048227
0.048227
0.048227
0
0
0
0
0.036885
0.213537
2,482
144
145
17.236111
0.685451
0.193392
0
0
0
0
0.046851
0.0267
0
0
0
0
0
1
0.081633
false
0
0.163265
0.020408
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f485d7305ea8da6e0bb04315c8cf68b15f093141
496
py
Python
Exercise_8.py
aurimas13/Python-stuff
a6e89e9f6088a6ab29da5b57830e4b7750427454
[ "MIT" ]
1
2021-06-30T09:31:52.000Z
2021-06-30T09:31:52.000Z
Exercise_8.py
aurimas13/Python-stuff
a6e89e9f6088a6ab29da5b57830e4b7750427454
[ "MIT" ]
null
null
null
Exercise_8.py
aurimas13/Python-stuff
a6e89e9f6088a6ab29da5b57830e4b7750427454
[ "MIT" ]
null
null
null
# Solution of Exercise 8 - Exercise_8.py # # Uploaded by Aurimas A. Nausedas on 11/23/20. # Updated by Aurimas A. Nausedas on 11/06/21. formatter = "%r %r %r %r" print formatter % (1, 2, 3, 4) print formatter % ("one", "two", "three", "four") print formatter % (True, False, False, True) print formatter % (formatter,...
27.555556
62
0.645161
75
496
4.253333
0.64
0.219436
0.253919
0.112853
0.137931
0.137931
0
0
0
0
0
0.045918
0.209677
496
17
63
29.176471
0.767857
0.256048
0
0
0
0
0.304945
0
0
0
0
0
0
0
null
null
0
0
null
null
0.454545
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
1
0
0
0
0
0
0
1
0
4
f485da5cf70dcae9f004e6210259cc3b9e4d5254
402
py
Python
Easy/two-numbers-sum/solution-1.py
MCFrank16/python-algo
dd48f6c5b9f4a941a18fc4620164c807c0e1d35e
[ "MIT" ]
null
null
null
Easy/two-numbers-sum/solution-1.py
MCFrank16/python-algo
dd48f6c5b9f4a941a18fc4620164c807c0e1d35e
[ "MIT" ]
null
null
null
Easy/two-numbers-sum/solution-1.py
MCFrank16/python-algo
dd48f6c5b9f4a941a18fc4620164c807c0e1d35e
[ "MIT" ]
null
null
null
# solution 1: Brute Force # time complexity: O(n^2) # space complexity: O(1) def twoNumberSum(arr, n): for i in range(len(arr) - 1): firstNum = arr[i] for j in range(i + 1, len(arr)): secondNum = arr[j] if firstNum + secondNum == n: return [first...
23.647059
45
0.524876
57
402
3.701754
0.54386
0.104265
0
0
0
0
0
0
0
0
0
0.059259
0.328358
402
16
46
25.125
0.722222
0.174129
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.333333
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
f488b9695ea3d93d4ce613f2ebb45a1be83ca949
1,631
py
Python
python/cac_tripplanner/destinations/migrations/0021_event.py
maurizi/cac-tripplanner
3f4f1f1edc9be9e52c74eb3e124b6697429a79d6
[ "Apache-2.0" ]
null
null
null
python/cac_tripplanner/destinations/migrations/0021_event.py
maurizi/cac-tripplanner
3f4f1f1edc9be9e52c74eb3e124b6697429a79d6
[ "Apache-2.0" ]
null
null
null
python/cac_tripplanner/destinations/migrations/0021_event.py
maurizi/cac-tripplanner
3f4f1f1edc9be9e52c74eb3e124b6697429a79d6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-28 17:32 from __future__ import unicode_literals import ckeditor.fields import destinations.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('destinati...
42.921053
171
0.624157
171
1,631
5.807018
0.538012
0.032226
0.028197
0.04431
0.21148
0.16717
0.16717
0.100705
0
0
0
0.041229
0.24157
1,631
37
172
44.081081
0.76152
0.041692
0
0
1
0
0.175641
0.030128
0
0
0
0
0
1
0
false
0
0.166667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f488b98251360b04f0d4a4065b27efc58a8ffeb9
8,448
py
Python
data_extraction/scripts/bnf_adr_extraction.py
elpidakon/CRESCENDDI
ab9e65621d331689f4aaeeb08902f29d90b7d1b9
[ "MIT" ]
null
null
null
data_extraction/scripts/bnf_adr_extraction.py
elpidakon/CRESCENDDI
ab9e65621d331689f4aaeeb08902f29d90b7d1b9
[ "MIT" ]
null
null
null
data_extraction/scripts/bnf_adr_extraction.py
elpidakon/CRESCENDDI
ab9e65621d331689f4aaeeb08902f29d90b7d1b9
[ "MIT" ]
null
null
null
# Kontsioti, Maskell, Dutta & Pirmohamed, A reference set of clinically relevant # adverse drug-drug interactions (2021) # Code to extract single-drug side effect data from the BNF website from bs4 import BeautifulSoup import urllib import os, csv import numpy as np import pandas as pd import re from tqdm i...
43.546392
147
0.68608
1,249
8,448
4.456365
0.196157
0.059828
0.034495
0.017607
0.416098
0.318721
0.268954
0.23392
0.208049
0.193676
0
0.009978
0.1933
8,448
193
148
43.772021
0.80675
0.289536
0
0.176991
0
0
0.172396
0.007292
0
0
0
0
0
1
0
false
0
0.061947
0
0.061947
0.061947
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f489d029eb3e215d049f6f2f3cc368f56d30226f
1,080
py
Python
core/forms.py
nicoknoll/howimetcorona
c55198118b2c31ee8b76c023b5a9fc4454cc1e08
[ "Apache-2.0" ]
1
2020-03-21T09:47:17.000Z
2020-03-21T09:47:17.000Z
core/forms.py
nicoknoll/howimetcorona
c55198118b2c31ee8b76c023b5a9fc4454cc1e08
[ "Apache-2.0" ]
5
2020-03-20T20:12:16.000Z
2021-09-22T18:46:48.000Z
core/forms.py
nicoknoll/howimetcorona
c55198118b2c31ee8b76c023b5a9fc4454cc1e08
[ "Apache-2.0" ]
null
null
null
from django import forms class BaseFileForm(forms.Form): # we try to minify the file to only submit the data points_file = forms.FileField( required=False, widget=forms.FileInput(attrs={'required': 'required'}), label="Location History File (.json)" ) points_data = forms.CharFi...
28.421053
77
0.662963
136
1,080
5.154412
0.470588
0.071327
0.064194
0.051355
0.068474
0
0
0
0
0
0
0.012806
0.20463
1,080
37
78
29.189189
0.80326
0.04537
0
0
0
0.04
0.174927
0.029155
0
0
0
0
0
1
0.04
false
0.04
0.04
0
0.48
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
f48be2ac89c37ef219c2ad00751eceeb8e3e514f
270
py
Python
bartender/drinks/generators.py
autiwg/bartender
1c26aefb777a01ce527745c543e60b11a972fe5d
[ "Unlicense", "MIT" ]
null
null
null
bartender/drinks/generators.py
autiwg/bartender
1c26aefb777a01ce527745c543e60b11a972fe5d
[ "Unlicense", "MIT" ]
null
null
null
bartender/drinks/generators.py
autiwg/bartender
1c26aefb777a01ce527745c543e60b11a972fe5d
[ "Unlicense", "MIT" ]
null
null
null
from django.utils import timezone from django.utils.text import slugify def generate_billed_document_path(instance, filename): cur_time = timezone.now() return f"{cur_time.strftime('%Y/%m')}/{slugify(instance.name)}-{cur_time.strftime('%d.%m.%Y %H:%M')}.csv"
30
109
0.725926
41
270
4.634146
0.634146
0.110526
0.157895
0
0
0
0
0
0
0
0
0
0.103704
270
8
110
33.75
0.785124
0
0
0
1
0.2
0.351852
0.303704
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
f48bfbdf82f8ea69c9578103bcb880d230cfe368
718
py
Python
papers/wdmerger_I/plots/sponge.py
AMReX-Astro/wdmerger
9f575efacc8d373b6d2961f731e30bf59ee15ffd
[ "MIT" ]
2
2019-01-23T21:12:02.000Z
2021-12-14T07:34:38.000Z
papers/wdmerger_I/plots/sponge.py
AMReX-Astro/wdmerger
9f575efacc8d373b6d2961f731e30bf59ee15ffd
[ "MIT" ]
1
2017-08-05T06:25:41.000Z
2017-08-05T06:25:41.000Z
papers/wdmerger_I/plots/sponge.py
AMReX-Astro/wdmerger
9f575efacc8d373b6d2961f731e30bf59ee15ffd
[ "MIT" ]
2
2018-12-25T01:05:59.000Z
2020-12-28T10:01:59.000Z
# This Python program is used to create a plot displaying the sponge # function we use in the CASTRO hydrodynamics for the wdmerger problem. import numpy as np import matplotlib.pyplot as plt def sponge(r): sp rs = 0.75 rt = 0.85 r = np.linspace(0.0, 1.0, 1000) f = np.zeros(len(r)) idx = np.where(r < rs) f[id...
18.894737
71
0.635097
145
718
3.124138
0.455172
0.022075
0.0883
0.09713
0.057395
0
0
0
0
0
0
0.072635
0.175487
718
37
72
19.405405
0.692568
0.190808
0
0
0
0
0.043253
0
0
0
0
0
0
1
0.043478
false
0
0.086957
0
0.130435
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
f48c4c17d15169f83e1e0f82eed8e69642feb9a8
753
py
Python
Python/110-1/Midterm Additional HW/005.py
JenFuChen/NKUST
bd80a449eddfdaf75709379d2e904ff70d409666
[ "MIT" ]
3
2021-11-07T17:33:54.000Z
2021-12-28T08:31:20.000Z
Python/110-1/Midterm Additional HW/005.py
JenFuChen/NKUST
bd80a449eddfdaf75709379d2e904ff70d409666
[ "MIT" ]
null
null
null
Python/110-1/Midterm Additional HW/005.py
JenFuChen/NKUST
bd80a449eddfdaf75709379d2e904ff70d409666
[ "MIT" ]
null
null
null
# 005 印出菱形 while(1): level = int(input()) if(level <= 0): break L = 2*level-1 mid = int((L - 1) / 2) inspa = mid * 2 - 1 for i in range(L): spa = level - i - 1 if spa >= 0: print(" " * spa, end='') print('*', end='') if spa < 0...
25.965517
44
0.332005
91
753
2.747253
0.252747
0.192
0.176
0.156
0.292
0.292
0.176
0.176
0.176
0
0
0.051813
0.487384
753
28
45
26.892857
0.595855
0.010624
0
0.307692
0
0
0.011189
0
0
0
0
0
0
1
0
false
0
0
0
0
0.346154
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f48c7224abe2e2f0a451d9341ea395ac8a419de0
1,978
py
Python
dynamo/plot/pseudotime.py
davisidarta/dynamo-release
0dbd769f52ea07f3cdaa8fb31022ceb89938c382
[ "BSD-3-Clause" ]
null
null
null
dynamo/plot/pseudotime.py
davisidarta/dynamo-release
0dbd769f52ea07f3cdaa8fb31022ceb89938c382
[ "BSD-3-Clause" ]
null
null
null
dynamo/plot/pseudotime.py
davisidarta/dynamo-release
0dbd769f52ea07f3cdaa8fb31022ceb89938c382
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from ..tools.utils import update_dict from .utils import save_fig def plot_direct_graph(adata, layout=None, figsize=[6, 4], save_show_or_return='show', save_kwargs={}, ): df_mat = adata...
28.257143
86
0.532356
230
1,978
4.4
0.504348
0.031621
0.039526
0.063241
0.063241
0
0
0
0
0
0
0.010196
0.35541
1,978
69
87
28.666667
0.783529
0.128918
0
0
0
0
0.098657
0
0
0
0
0
0
1
0.018519
false
0
0.092593
0
0.12963
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
f48d18e383286d35c87dd89bd5701bc78cbbbad7
4,327
py
Python
ocean_lib/web3_internal/utils.py
joshualyguessennd/ocean.py
23274698df4aae078d53b12d768c721af16f6e80
[ "Apache-2.0" ]
null
null
null
ocean_lib/web3_internal/utils.py
joshualyguessennd/ocean.py
23274698df4aae078d53b12d768c721af16f6e80
[ "Apache-2.0" ]
1
2021-02-16T18:31:53.000Z
2021-02-16T18:31:53.000Z
ocean_lib/web3_internal/utils.py
joshualyguessennd/ocean.py
23274698df4aae078d53b12d768c721af16f6e80
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 import json import logging import os from collections import namedtuple import eth_account import eth_keys import eth_utils from eth_keys import KeyAPI from eth_utils import big_endian_to_int from ocean_lib.web3_internal.web3_provider i...
29.040268
95
0.697712
592
4,327
4.890203
0.271959
0.031088
0.017271
0.02418
0.097064
0.064594
0.042832
0.026252
0.026252
0
0
0.021178
0.203374
4,327
148
96
29.236486
0.818683
0.181419
0
0
0
0
0.126254
0.034808
0
0
0
0
0.036585
1
0.109756
false
0.036585
0.146341
0.012195
0.378049
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
f48e4de60f001ef56a4fbd661495b8d069dc740f
192
py
Python
autofront/__init__.py
JimmyLamothe/autofront
d179e54411f5d53046a5fa52b4430e09b01ebaca
[ "BSD-3-Clause" ]
1
2020-11-16T22:18:03.000Z
2020-11-16T22:18:03.000Z
autofront/__init__.py
JimmyLamothe/autofront
d179e54411f5d53046a5fa52b4430e09b01ebaca
[ "BSD-3-Clause" ]
null
null
null
autofront/__init__.py
JimmyLamothe/autofront
d179e54411f5d53046a5fa52b4430e09b01ebaca
[ "BSD-3-Clause" ]
null
null
null
import autofront.autofront as autofront import autofront.utilities as utilities initialize = autofront.initialize add = autofront.add run = autofront.run get_display = utilities.get_display
21.333333
39
0.833333
24
192
6.583333
0.375
0.189873
0
0
0
0
0
0
0
0
0
0
0.114583
192
8
40
24
0.929412
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
f48e86cd3da483fb8b0fe253866faf1ceee934c8
8,444
py
Python
src/main.py
ketsonroberto/PBDO
cdc1c5275bc17753be5c06a216f92391b6f1f1ab
[ "MIT" ]
null
null
null
src/main.py
ketsonroberto/PBDO
cdc1c5275bc17753be5c06a216f92391b6f1f1ab
[ "MIT" ]
null
null
null
src/main.py
ketsonroberto/PBDO
cdc1c5275bc17753be5c06a216f92391b6f1f1ab
[ "MIT" ]
null
null
null
# THIS IS A FILE TO TEST THE CODE. DO NOT USE IT AS PART OF THE CODE. import matplotlib.pyplot as plt import numpy as np from StochasticMechanics import Stochastic from scipy.optimize import minimize from Performance import PerformanceOpt from Hazards import Stationary from Building import * from BuildingProperties im...
30.157143
114
0.620441
1,376
8,444
3.679506
0.227471
0.027652
0.027652
0.012443
0.245309
0.196721
0.156627
0.121865
0.095398
0.095398
0
0.052365
0.206182
8,444
279
115
30.265233
0.702969
0.363809
0
0.061224
0
0
0.005922
0
0
0
0
0
0
1
0
false
0
0.132653
0
0.132653
0.040816
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f48e9c0665ea9a8d85811305b04f10d8aba4b991
777
py
Python
categorical_embedder/embedders/core/aux/custom_object_handler.py
erelcan/categorical-embedder
376b8779500af2aa459c879f8e525f2ef25d6b31
[ "Apache-2.0" ]
3
2020-12-19T10:52:58.000Z
2021-06-08T09:06:44.000Z
categorical_embedder/embedders/core/aux/custom_object_handler.py
erelcan/categorical-embedder
376b8779500af2aa459c879f8e525f2ef25d6b31
[ "Apache-2.0" ]
null
null
null
categorical_embedder/embedders/core/aux/custom_object_handler.py
erelcan/categorical-embedder
376b8779500af2aa459c879f8e525f2ef25d6b31
[ "Apache-2.0" ]
null
null
null
from categorical_embedder.embedders.core.aux.custom_layers import get_custom_layer_class from categorical_embedder.embedders.core.aux.loss_factory import get_loss_function def prepare_custom_objects(custom_object_info): custom_objects = {} custom_objects.update(_prepare_custom_layers(custom_object_info["layer...
35.318182
88
0.804376
107
777
5.336449
0.271028
0.126095
0.112084
0.112084
0.248687
0.136602
0
0
0
0
0
0
0.119691
777
21
89
37
0.834795
0
0
0
0
0
0.05148
0
0
0
0
0
0
1
0.2
false
0
0.133333
0.066667
0.533333
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
f48f23b7a5506d60b9ac1a5607df61a337660101
10,406
py
Python
osprofiler/cmd/shell.py
charliebr30/osprofiler
cffca4e29e373e3f09f2ffdd458761183a851569
[ "Apache-2.0" ]
null
null
null
osprofiler/cmd/shell.py
charliebr30/osprofiler
cffca4e29e373e3f09f2ffdd458761183a851569
[ "Apache-2.0" ]
1
2017-04-15T22:16:06.000Z
2017-04-15T22:16:06.000Z
osprofiler/cmd/shell.py
shwsun/osprofiler
46d29fc5ab8a4068217e399883f39cdd443a7500
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
42.129555
79
0.548818
1,126
10,406
4.867673
0.221137
0.035577
0.080642
0.065864
0.369823
0.24813
0.090312
0.031381
0.01642
0.01642
0
0.003449
0.35912
10,406
246
80
42.300813
0.818414
0.104939
0
0.05814
0
0
0.279328
0.044813
0
0
0
0.004065
0
1
0.040698
false
0.034884
0.052326
0
0.122093
0.005814
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f48f3252e9a2f94d57cf6c129396083ea3b2d577
3,695
py
Python
bmt/util.py
patrickkwang/bmt-lite
bf97f6155702a8eb38daf5a45df34b0ce1cb1a4b
[ "MIT" ]
null
null
null
bmt/util.py
patrickkwang/bmt-lite
bf97f6155702a8eb38daf5a45df34b0ce1cb1a4b
[ "MIT" ]
null
null
null
bmt/util.py
patrickkwang/bmt-lite
bf97f6155702a8eb38daf5a45df34b0ce1cb1a4b
[ "MIT" ]
null
null
null
"""Utilities.""" from functools import wraps import re from typing import Callable, List, Optional, TypeVar, Union from .data import ( all_classes, all_slots, ) def pascal_to_snake(s: str, sep: str = "_") -> str: """Convert Pascal case to snake case. Assumes that a) all words are either all-lowercas...
27.781955
83
0.558863
448
3,695
4.537946
0.310268
0.011805
0.005903
0.01033
0.092966
0.074766
0.026562
0.026562
0.026562
0.026562
0
0.002324
0.301218
3,695
132
84
27.992424
0.78505
0.256834
0
0.1375
0
0
0.068399
0.030951
0
0
0
0
0
1
0.125
false
0
0.05
0
0.3875
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
f48f57744939caba5685c9a4b651a9c481a371aa
657
py
Python
src/py_to_json/__init__.py
jlevitt/py-to-json
26bb68926f5ada601e965f42980e438c9718be73
[ "MIT" ]
null
null
null
src/py_to_json/__init__.py
jlevitt/py-to-json
26bb68926f5ada601e965f42980e438c9718be73
[ "MIT" ]
null
null
null
src/py_to_json/__init__.py
jlevitt/py-to-json
26bb68926f5ada601e965f42980e438c9718be73
[ "MIT" ]
null
null
null
# # OMNIVORE CONFIDENTIAL # __________________ # # [2013] - [2019] Omnivore Technologies # All Rights Reserved. # # NOTICE: All information contained herein is, and remains # the property of Omnivore Technologies and its suppliers, # if any. The intellectual and technical concepts contained # herein are proprietary...
36.5
73
0.78691
85
657
5.870588
0.658824
0.160321
0.092184
0.104208
0.140281
0
0
0
0
0
0
0.014545
0.162861
657
17
74
38.647059
0.892727
0.946728
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
be2e1617c4a15afe6886703b261c4b500fdae5e3
7,960
py
Python
sktime/utils/time_series.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
1
2020-09-11T06:26:08.000Z
2020-09-11T06:26:08.000Z
sktime/utils/time_series.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
2
2020-04-20T12:26:42.000Z
2020-04-22T17:09:14.000Z
sktime/utils/time_series.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
1
2022-02-14T18:19:01.000Z
2022-02-14T18:19:01.000Z
__author__ = ["Markus Löning"] __all__ = [ "compute_relative_to_n_timepoints", "time_series_slope", "fit_trend", "remove_trend", "add_trend" ] import numpy as np from sklearn.utils import check_array from sktime.utils.validation.forecasting import check_time_index def compute_relative_to_n_timep...
29.157509
79
0.593593
1,083
7,960
4.226223
0.184672
0.045226
0.02447
0.019664
0.471488
0.426917
0.396329
0.354381
0.347389
0.309591
0
0.009079
0.308166
7,960
272
80
29.264706
0.822045
0.415578
0
0.366071
0
0
0.195489
0.014333
0
0
0
0
0
1
0.044643
false
0.017857
0.026786
0
0.133929
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
be2e7ef040dc5a54cf6259bfaf5348f1c97d85ac
2,061
py
Python
prog_vae/prog_encoder/prog_encoder.py
Hanjun-Dai/sdvae
bd26ea949c496419634fd2cf4802fc8e19a9194c
[ "MIT" ]
70
2018-02-24T07:50:59.000Z
2021-12-27T02:42:37.000Z
prog_vae/prog_encoder/prog_encoder.py
Hanjun-Dai/sdvae
bd26ea949c496419634fd2cf4802fc8e19a9194c
[ "MIT" ]
7
2018-05-31T00:50:19.000Z
2021-09-28T11:58:22.000Z
prog_vae/prog_encoder/prog_encoder.py
Hanjun-Dai/sdvae
bd26ea949c496419634fd2cf4802fc8e19a9194c
[ "MIT" ]
19
2019-01-11T10:56:00.000Z
2022-03-23T23:09:39.000Z
#!/usr/bin/env python from __future__ import print_function import os import sys import csv import numpy as np import math import random from collections import defaultdict import torch from torch.autograd import Variable from torch.nn.parameter import Parameter import torch.nn as nn import torch.nn.functional as F i...
30.308824
91
0.6623
324
2,061
3.935185
0.305556
0.098824
0.028235
0.021961
0.216471
0.152157
0.152157
0.103529
0
0
0
0.027586
0.226104
2,061
67
92
30.761194
0.771787
0.031053
0
0
0
0
0.022055
0
0
0
0
0
0
1
0.038462
false
0.019231
0.346154
0
0.423077
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
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
be30c6f12931ff680481e45af1a532c7eab58cb2
1,089
py
Python
pyvmu/messages.py
JosephRedfern/VarienseVMU
e27c05a83124e024cd049b10f7d682f7f41a5c73
[ "MIT" ]
5
2017-10-23T13:13:09.000Z
2018-05-07T14:38:47.000Z
pyvmu/messages.py
JosephRedfern/VarienseVMU
e27c05a83124e024cd049b10f7d682f7f41a5c73
[ "MIT" ]
2
2018-04-18T08:15:52.000Z
2018-05-17T11:32:47.000Z
pyvmu/messages.py
JosephRedfern/VarienseVMU
e27c05a83124e024cd049b10f7d682f7f41a5c73
[ "MIT" ]
3
2017-09-06T18:05:21.000Z
2018-11-21T13:08:16.000Z
from collections import namedtuple Accelerometer = namedtuple('Accelerometer', ["timestamp", "x", "y", "z"]) Magnetometer = namedtuple('Magnetometer', ['timestamp', 'x', 'y', 'z']) Gyroscope = namedtuple('Gyroscope', ['timestamp', 'x', 'y', 'z']) Euler = namedtuple('Euler', ['timestamp', 'x', 'y', 'z']) Quaternion = ...
45.375
73
0.486685
73
1,089
7.082192
0.328767
0.019342
0.029014
0.092843
0
0
0
0
0
0
0
0
0.371901
1,089
23
74
47.347826
0.755848
0
0
0
0
0
0.337006
0.101928
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be313f1e475a00f009ff53d9286703681a5859de
2,847
py
Python
scripts/Caesar-Cipher/CaesarCipher.py
Pythobit/python-projects
1a6ee3f0f417846626dfa021af49c999771a0199
[ "MIT" ]
2
2021-10-19T06:17:33.000Z
2021-10-19T06:17:37.000Z
scripts/Caesar-Cipher/CaesarCipher.py
Pythobit/Python-Projects
1a6ee3f0f417846626dfa021af49c999771a0199
[ "MIT" ]
4
2021-10-19T06:04:36.000Z
2021-10-19T11:42:57.000Z
scripts/Caesar-Cipher/CaesarCipher.py
Pythobit/Python-Projects
1a6ee3f0f417846626dfa021af49c999771a0199
[ "MIT" ]
1
2021-10-19T06:55:26.000Z
2021-10-19T06:55:26.000Z
from __future__ import print_function import os import string import argparse try: maketrans = string.maketrans # python2 except AttributeError: maketrans = str.maketrans # python3 def caeser_cipher(string_: str, offset: int, decode: bool, file_: string) -> None: """Caeser Cipher implementation, reads ...
30.945652
88
0.663505
341
2,847
5.346041
0.375367
0.036204
0.032913
0.027427
0.039495
0
0
0
0
0
0
0.005034
0.232525
2,847
91
89
31.285714
0.829291
0.184053
0
0.032258
0
0
0.121854
0
0
0
0
0
0
1
0.032258
false
0
0.064516
0
0.112903
0.048387
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
be31bc2fba335d1b861c92be573990bfd80133fd
8,217
py
Python
onadata/libs/permissions.py
BuildAMovement/whistler-kobocat
7f61dd0761bb0aa5b27c909bcff8c29453d3311d
[ "BSD-2-Clause" ]
38
2017-02-28T05:39:40.000Z
2019-01-16T04:39:04.000Z
onadata/libs/permissions.py
BuildAMovement/whistler-kobocat
7f61dd0761bb0aa5b27c909bcff8c29453d3311d
[ "BSD-2-Clause" ]
20
2017-04-27T09:14:27.000Z
2019-01-17T06:35:52.000Z
onadata/libs/permissions.py
BuildAMovement/whistler-kobocat
7f61dd0761bb0aa5b27c909bcff8c29453d3311d
[ "BSD-2-Clause" ]
5
2017-02-22T12:25:19.000Z
2019-01-15T11:16:40.000Z
from collections import defaultdict from django.contrib.contenttypes.models import ContentType from guardian.shortcuts import ( assign_perm, remove_perm, get_perms, get_users_with_perms) from onadata.apps.api.models import OrganizationProfile from onadata.apps.main.models.user_profile import UserProfi...
31.848837
77
0.69271
933
8,217
5.745981
0.150054
0.052229
0.028726
0.06883
0.415035
0.342846
0.271218
0.225145
0.216937
0.194926
0
0.000156
0.222344
8,217
257
78
31.972763
0.838811
0.086285
0
0.350785
0
0
0.06298
0.019016
0
0
0
0
0
1
0.041885
false
0
0.036649
0
0.230366
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
be330b0c9754c05467f2b02c3762c1390226f3d3
10,078
py
Python
lanelines.py
gauborg/lane-finding-gborgaonkar
466313a0da7c245e25f0987afa953300501d5322
[ "MIT" ]
null
null
null
lanelines.py
gauborg/lane-finding-gborgaonkar
466313a0da7c245e25f0987afa953300501d5322
[ "MIT" ]
null
null
null
lanelines.py
gauborg/lane-finding-gborgaonkar
466313a0da7c245e25f0987afa953300501d5322
[ "MIT" ]
null
null
null
# Self-Driving Car Engineer Nanodegree # # ## Project: **Finding Lane Lines on the Road** # ## Import Packages #importing some useful packages import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np import cv2 import math import moviepy image = mpimg.imread('test_images/solidWhiteRight...
36.514493
137
0.682675
1,498
10,078
4.489319
0.269025
0.010409
0.006543
0.008327
0.099033
0.071078
0.018141
0.013086
0.013086
0.013086
0
0.023149
0.224152
10,078
275
138
36.647273
0.836936
0.503671
0
0.04
0
0
0.070414
0.047932
0
0
0
0.003636
0
1
0.09
false
0.01
0.1
0
0.27
0.01
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
be3353aec22fa60209490a5516f7d6ee7289c13d
1,873
py
Python
zict/zip.py
phobson/zict
666c7cd9fd4667cc8831a35cf958fd51788acd3e
[ "BSD-3-Clause" ]
null
null
null
zict/zip.py
phobson/zict
666c7cd9fd4667cc8831a35cf958fd51788acd3e
[ "BSD-3-Clause" ]
null
null
null
zict/zip.py
phobson/zict
666c7cd9fd4667cc8831a35cf958fd51788acd3e
[ "BSD-3-Clause" ]
null
null
null
try: from collections.abc import MutableMapping except ImportError: from collections import MutableMapping import zipfile class Zip(MutableMapping): """Mutable Mapping interface to a Zip file Keys must be strings, values must be bytes Parameters ---------- filename: string mode: stri...
24.324675
88
0.595302
234
1,873
4.606838
0.34188
0.103896
0.033395
0.052876
0.06679
0.06679
0.06679
0.06679
0.06679
0
0
0.004415
0.274426
1,873
76
89
24.644737
0.788815
0.200214
0
0
0
0
0.038221
0
0
0
0
0
0
1
0.325581
false
0
0.093023
0.162791
0.627907
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
be357d6f3c1ddf5962bf29bb44f0430102e3f1c8
7,741
py
Python
neutron_lbaas/drivers/driver_mixins.py
containers-kraken/neutron-lbaas
43fbc34cc90512e33202bc4187ccf712dda6a782
[ "Apache-2.0" ]
null
null
null
neutron_lbaas/drivers/driver_mixins.py
containers-kraken/neutron-lbaas
43fbc34cc90512e33202bc4187ccf712dda6a782
[ "Apache-2.0" ]
null
null
null
neutron_lbaas/drivers/driver_mixins.py
containers-kraken/neutron-lbaas
43fbc34cc90512e33202bc4187ccf712dda6a782
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 A10 Networks # # 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...
42.070652
79
0.628472
949
7,741
4.955743
0.239199
0.025516
0.03636
0.026791
0.456304
0.366575
0.277908
0.251967
0.243036
0.243036
0
0.004631
0.302674
7,741
183
80
42.300546
0.866617
0.301511
0
0.361111
0
0
0.099424
0.004031
0
0
0
0
0
1
0.092593
false
0.055556
0.064815
0
0.212963
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
be365df64e401dd1c966469e8ae1e80392fa4b62
1,207
py
Python
Lib/hTools2/modules/ftp.py
miguelsousa/hTools2
eab400677c1b21bb2519a7354a142e167c2b39ba
[ "BSD-3-Clause" ]
null
null
null
Lib/hTools2/modules/ftp.py
miguelsousa/hTools2
eab400677c1b21bb2519a7354a142e167c2b39ba
[ "BSD-3-Clause" ]
null
null
null
Lib/hTools2/modules/ftp.py
miguelsousa/hTools2
eab400677c1b21bb2519a7354a142e167c2b39ba
[ "BSD-3-Clause" ]
null
null
null
# [h] hTools2.modules.ftp """Tools to connect to a FTP server, upload files etc.""" # This module uses the `ftplib` library to handle FTP connection and upload. # http://docs.python.org/library/ftplib.html import os from ftplib import FTP def connect_to_server(url, login, password, folder, verbose=False): """Co...
30.175
161
0.6686
168
1,207
4.77381
0.458333
0.064838
0.014963
0.029925
0.054863
0
0
0
0
0
0
0.002101
0.211268
1,207
39
162
30.948718
0.840336
0.147473
0
0.125
0
0
0.025048
0
0
0
0
0
0
0
null
null
0.125
0.125
null
null
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
be368e6b255149306c28292dd49ca28ab1a75535
553
py
Python
network/pytorch2onnx.py
MRsoymilk/toy-car
5bd51bf231781a17e1d7acb4654c3d4b6adbed41
[ "MIT" ]
null
null
null
network/pytorch2onnx.py
MRsoymilk/toy-car
5bd51bf231781a17e1d7acb4654c3d4b6adbed41
[ "MIT" ]
null
null
null
network/pytorch2onnx.py
MRsoymilk/toy-car
5bd51bf231781a17e1d7acb4654c3d4b6adbed41
[ "MIT" ]
null
null
null
import Net import configparser import torch from PIL import Image config = configparser.ConfigParser() config.read('./config.ini') MODEL = config.get("Network", "Model") transformations = Net.transformations net = Net.Net() net.eval() net.load_state_dict(torch.load(MODEL)) image = Image.open("./html/rwby.jpg") imag...
19.068966
49
0.703436
72
553
5.347222
0.541667
0.046753
0.046753
0
0
0
0
0
0
0
0
0.002079
0.130199
553
28
50
19.75
0.798337
0
0
0
0
0
0.106691
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
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
be385b749f1c26b913c643d471ca79a2fd89e72b
724
py
Python
var/spack/repos/builtin/packages/r-gridextra/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/r-gridextra/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/r-gridextra/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RGridextra(RPackage): """Miscellaneous Functions for "Grid" Graphics. Provides a numb...
34.47619
95
0.754144
85
724
6.411765
0.8
0.044037
0
0
0
0
0
0
0
0
0
0.169903
0.146409
724
20
96
36.2
0.711974
0.524862
0
0
0
0
0.495413
0.391437
0
0
0
0
0
1
0
false
0
0.166667
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
be387cca53cfcab985ce1dca7b42033320d21418
2,707
py
Python
tuframework/training/network_training/competitions_with_custom_Trainers/MMS/nnUNetTrainerV2_MMS.py
Magnety/tuFramework
b31cb34d476ef306b52da955021f93c91c14ddf4
[ "Apache-2.0" ]
null
null
null
tuframework/training/network_training/competitions_with_custom_Trainers/MMS/nnUNetTrainerV2_MMS.py
Magnety/tuFramework
b31cb34d476ef306b52da955021f93c91c14ddf4
[ "Apache-2.0" ]
null
null
null
tuframework/training/network_training/competitions_with_custom_Trainers/MMS/nnUNetTrainerV2_MMS.py
Magnety/tuFramework
b31cb34d476ef306b52da955021f93c91c14ddf4
[ "Apache-2.0" ]
null
null
null
import torch from tuframework.network_architecture.generic_UNet import Generic_UNet from tuframework.network_architecture.initialization import InitWeights_He from tuframework.training.network_training.tuframework_variants.data_augmentation.tuframeworkTrainerV2_insaneDA import \ tuframeworkTrainerV2_insaneDA from t...
44.377049
120
0.663465
345
2,707
4.828986
0.33913
0.062425
0.085834
0.132653
0.235294
0.186074
0.084034
0.084034
0
0
0
0.021047
0.24529
2,707
60
121
45.116667
0.79442
0
0
0
0
0
0.121451
0.078864
0
0
0
0
0
1
0.044444
false
0
0.133333
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
be3baf27f812f65c9b958afcfa252dbaf8d5e093
3,088
py
Python
ansible/playbooks/roles/repository/files/download-requirements/src/command/yum.py
romsok24/epiphany
f058984939561fc8d51288765976118ae12e6c32
[ "Apache-2.0" ]
null
null
null
ansible/playbooks/roles/repository/files/download-requirements/src/command/yum.py
romsok24/epiphany
f058984939561fc8d51288765976118ae12e6c32
[ "Apache-2.0" ]
null
null
null
ansible/playbooks/roles/repository/files/download-requirements/src/command/yum.py
romsok24/epiphany
f058984939561fc8d51288765976118ae12e6c32
[ "Apache-2.0" ]
null
null
null
from typing import List from src.command.command import Command class Yum(Command): """ Interface for `yum` """ def __init__(self, retries: int): super().__init__('yum', retries) def update(self, enablerepo: str, package: str = None, disablerepo...
27.81982
66
0.51943
346
3,088
4.508671
0.254335
0.063462
0.038462
0.04359
0.291667
0.260897
0.228846
0.198077
0.175641
0.175641
0
0.001019
0.364313
3,088
110
67
28.072727
0.793683
0.152526
0
0.196721
0
0
0.077391
0.02107
0
0
0
0
0
1
0.163934
false
0
0.032787
0
0.311475
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
be3e44160e188056687e999ee1b846a80b373896
1,819
py
Python
build/generate_confirmed_cases_by_counties.py
jtagcat/koroonakaart
16a6eb24a19b286589b063742b03a123315feefc
[ "CC0-1.0", "MIT" ]
1
2021-12-20T23:05:58.000Z
2021-12-20T23:05:58.000Z
build/generate_confirmed_cases_by_counties.py
jtagcat/koroonakaart
16a6eb24a19b286589b063742b03a123315feefc
[ "CC0-1.0", "MIT" ]
null
null
null
build/generate_confirmed_cases_by_counties.py
jtagcat/koroonakaart
16a6eb24a19b286589b063742b03a123315feefc
[ "CC0-1.0", "MIT" ]
1
2021-12-20T23:05:47.000Z
2021-12-20T23:05:47.000Z
from build.chart_data_functions import get_confirmed_cases_by_county from build.chart_data_functions import get_county_by_day from build.constants import CONFIRMED_CASES_BY_COUNTIES_PATH from build.constants import COUNTY_MAPPING from build.constants import COUNTY_POPULATION from build.constants import DATE_SETTINGS fr...
30.316667
87
0.774601
248
1,819
5.33871
0.302419
0.095166
0.095166
0.126888
0.239426
0.054381
0.054381
0
0
0
0
0.001318
0.166025
1,819
59
88
30.830508
0.871457
0.077515
0
0
0
0
0.128743
0.016766
0
0
0
0
0
1
0.02439
false
0
0.365854
0
0.390244
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