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
7340e2ed735c34bf4441bf796759a517ee89ee90
5,377
py
Python
src/clustar/fit.py
clustar/Clustar
83e155feffc10c4bf172f8ec769fb3c5ffe1d579
[ "MIT" ]
4
2021-02-24T17:27:25.000Z
2021-06-28T04:45:32.000Z
src/clustar/fit.py
clustar/Clustar
83e155feffc10c4bf172f8ec769fb3c5ffe1d579
[ "MIT" ]
3
2021-04-05T14:53:26.000Z
2021-06-27T20:17:14.000Z
src/clustar/fit.py
clustar/Clustar
83e155feffc10c4bf172f8ec769fb3c5ffe1d579
[ "MIT" ]
1
2021-02-15T16:13:05.000Z
2021-02-15T16:13:05.000Z
""" Clustar module for fitting-related methods. This module is designed for the 'ClustarData' object. All listed methods take an input parameter of a 'ClustarData' object and return a 'ClustarData' object after processing the method. As a result, all changes are localized within the 'ClustarData' object. Visit <https...
29.382514
78
0.563139
659
5,377
4.532625
0.248862
0.040174
0.0385
0.056913
0.325075
0.278875
0.261466
0.233344
0.176431
0.176431
0
0.010165
0.323043
5,377
182
79
29.543956
0.81044
0.254045
0
0.123596
0
0
0
0
0
0
0
0
0
1
0.05618
false
0
0.044944
0
0.157303
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
73411a436e5f2edebb124c6122419fcdeef298b3
970
py
Python
tests/wizard/namedwizardtests/urls.py
felixxm/django-formtools
ba62c6fa14edbd4197bda8ed0d23eb006ebebeba
[ "BSD-3-Clause" ]
null
null
null
tests/wizard/namedwizardtests/urls.py
felixxm/django-formtools
ba62c6fa14edbd4197bda8ed0d23eb006ebebeba
[ "BSD-3-Clause" ]
null
null
null
tests/wizard/namedwizardtests/urls.py
felixxm/django-formtools
ba62c6fa14edbd4197bda8ed0d23eb006ebebeba
[ "BSD-3-Clause" ]
1
2019-11-04T22:52:19.000Z
2019-11-04T22:52:19.000Z
from django.conf.urls import url from .forms import ( CookieContactWizard, Page1, Page2, Page3, Page4, SessionContactWizard, ) def get_named_session_wizard(): return SessionContactWizard.as_view( [('form1', Page1), ('form2', Page2), ('form3', Page3), ('form4', Page4)], url_name='nwiz_session'...
32.333333
90
0.670103
120
970
5.066667
0.283333
0.105263
0.098684
0.103618
0.417763
0.417763
0.417763
0.1875
0.1875
0.1875
0
0.02445
0.156701
970
29
91
33.448276
0.718826
0
0
0.090909
0
0
0.245361
0.056701
0
0
0
0
0
1
0.090909
false
0
0.090909
0.090909
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
73418fc41479ed48faa479be47ae0461c5d41885
907
py
Python
setup.py
ajayp10/derive_event_pm4py
d1fd16c65081348b617dc0697b372a294c91023a
[ "MIT" ]
null
null
null
setup.py
ajayp10/derive_event_pm4py
d1fd16c65081348b617dc0697b372a294c91023a
[ "MIT" ]
null
null
null
setup.py
ajayp10/derive_event_pm4py
d1fd16c65081348b617dc0697b372a294c91023a
[ "MIT" ]
null
null
null
import pathlib from setuptools import setup CURRENT_PATH = pathlib.Path(__file__).parent README = (CURRENT_PATH/"README.md").read_text() setup( name="derive_event_pm4py", version="1.0.1", description="It derives new events based on rules provided as inputs.", long_description=README, long_descrip...
28.34375
75
0.651599
105
907
5.409524
0.685714
0.077465
0.056338
0.091549
0
0
0
0
0
0
0
0.01669
0.207277
907
32
76
28.34375
0.773296
0
0
0.068966
0
0
0.407489
0.061674
0
0
0
0
0
1
0
false
0
0.068966
0
0.068966
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
73441d4a3b24e3d3313825da48a3c91f2e8b65de
1,123
py
Python
setup.py
meisanggou/ldapuser
45a9e5eba8bbf173ce2ec87f9a32cff8db549e7c
[ "MIT" ]
null
null
null
setup.py
meisanggou/ldapuser
45a9e5eba8bbf173ce2ec87f9a32cff8db549e7c
[ "MIT" ]
null
null
null
setup.py
meisanggou/ldapuser
45a9e5eba8bbf173ce2ec87f9a32cff8db549e7c
[ "MIT" ]
null
null
null
#! /usr/bin/env python # coding: utf-8 # __author__ = 'meisanggou' try: from setuptools import setup except ImportError: from distutils.core import setup import sys if sys.version_info <= (2, 7): sys.stderr.write("ERROR: ldap-user requires Python Version 2.7 or above.\n") sys.stderr.write("Your Pyt...
25.522727
81
0.685663
148
1,123
5.047297
0.47973
0.064257
0.037483
0.064257
0.074967
0
0
0
0
0
0
0.009761
0.178985
1,123
43
82
26.116279
0.800434
0.055209
0
0
0
0
0.294896
0.039698
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7347c43851f55966f151bfafefba0299301f676e
1,430
py
Python
manage.py
jessekl/twiliochallenge
2bba8bc2e0928880f1e2abe6b53b96dbc67ef34f
[ "MIT" ]
null
null
null
manage.py
jessekl/twiliochallenge
2bba8bc2e0928880f1e2abe6b53b96dbc67ef34f
[ "MIT" ]
null
null
null
manage.py
jessekl/twiliochallenge
2bba8bc2e0928880f1e2abe6b53b96dbc67ef34f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ manage ~~~~~~ Flask-Script Manager """ import os from flask.ext.script import Manager from flask.ext.migrate import MigrateCommand from fbone import create_app from fbone.extensions import db from fbone.utils import PROJECT_PATH, MALE from fbone.modules.user import User, ADMI...
23.442623
94
0.692308
180
1,430
5.344444
0.45
0.056133
0.070686
0.04158
0
0
0
0
0
0
0
0.005932
0.174825
1,430
60
95
23.833333
0.809322
0.065734
0
0.052632
0
0
0.103369
0
0
0
0
0
0
1
0.052632
false
0.026316
0.263158
0
0.342105
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
7347cda8008de4de3e2356287a34d7f4b9da7478
444
py
Python
llvmsqlite_util/benchmarking/micro/aggregate.py
KowalskiThomas/LLVMSQLite
a36b85dfadf44b0a4008d9f01ebd79d5ca2cace4
[ "blessing" ]
null
null
null
llvmsqlite_util/benchmarking/micro/aggregate.py
KowalskiThomas/LLVMSQLite
a36b85dfadf44b0a4008d9f01ebd79d5ca2cace4
[ "blessing" ]
null
null
null
llvmsqlite_util/benchmarking/micro/aggregate.py
KowalskiThomas/LLVMSQLite
a36b85dfadf44b0a4008d9f01ebd79d5ca2cace4
[ "blessing" ]
null
null
null
import os sql_files = [x for x in os.listdir(".") if x.endswith("sql")] sql_files = list(sorted(sql_files, key = lambda x : int(x.split('.')[0]))) result = "" for i, f in enumerate(sql_files): i = i + 1 i = f.replace(".sql", "") with open(f) as sql: result += f"--- Query {i}\n" result += s...
26.117647
74
0.554054
73
444
3.315068
0.465753
0.132231
0
0
0
0
0
0
0
0
0
0.005865
0.231982
444
17
75
26.117647
0.703812
0
0
0
0
0
0.092135
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
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
73486adc08d97e3620d3c9533949d0a3a23b6c00
2,882
py
Python
demos/crane/main.py
Starli8ht/KivyMD
5a3425d4e39e8615a0ba8b879db1eb5d7bfb3b49
[ "MIT" ]
null
null
null
demos/crane/main.py
Starli8ht/KivyMD
5a3425d4e39e8615a0ba8b879db1eb5d7bfb3b49
[ "MIT" ]
null
null
null
demos/crane/main.py
Starli8ht/KivyMD
5a3425d4e39e8615a0ba8b879db1eb5d7bfb3b49
[ "MIT" ]
null
null
null
""" MDCrane demo ============= .. seealso:: `Material Design spec, Crane <https://material.io/design/material-studies/crane.html#>` Crane is a travel app that helps users find and book travel, lodging, and restaurant options that match their input preferences. """ import os import sys from pathlib i...
29.408163
77
0.519084
312
2,882
4.637821
0.445513
0.077402
0.134762
0.12716
0.069109
0.034554
0
0
0
0
0
0.036547
0.344899
2,882
97
78
29.71134
0.729873
0.105829
0
0.188406
0
0
0.258466
0.079408
0
0
0
0
0
1
0.028986
false
0.014493
0.101449
0
0.15942
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
7349101381b3dbb9e23adbac5458b1fa8f012f0b
8,368
py
Python
tasks/lgutil/graph_net.py
HimmelStein/lg-flask
562adfe16c3dd718faf694b8233586422d035e17
[ "MIT" ]
null
null
null
tasks/lgutil/graph_net.py
HimmelStein/lg-flask
562adfe16c3dd718faf694b8233586422d035e17
[ "MIT" ]
null
null
null
tasks/lgutil/graph_net.py
HimmelStein/lg-flask
562adfe16c3dd718faf694b8233586422d035e17
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from nltk.parse import DependencyGraph from collections import defaultdict import random import sys import copy from json import dumps from pprint import pprint try: from .lg_graph import LgGraph except: sys.path.append("/Users/tdong/git/lg-flask/tasks/lgutil") from .lg_graph import...
34.866667
113
0.518164
902
8,368
4.651885
0.170732
0.066492
0.032174
0.020257
0.385605
0.285272
0.254766
0.219495
0.200191
0.184461
0
0.006269
0.370937
8,368
239
114
35.012552
0.790843
0.196224
0
0.223684
0
0
0.055791
0.005955
0
0
0
0
0
1
0.098684
false
0
0.059211
0.006579
0.210526
0.032895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7349161371152ef9656dab45ddf6d709b3bf142a
5,517
py
Python
utils/transformations/char_level/char_dces_substitute.py
Yzx835/AISafety
eb09551814898c7f6d86641b47faf7845c948640
[ "MIT" ]
null
null
null
utils/transformations/char_level/char_dces_substitute.py
Yzx835/AISafety
eb09551814898c7f6d86641b47faf7845c948640
[ "MIT" ]
null
null
null
utils/transformations/char_level/char_dces_substitute.py
Yzx835/AISafety
eb09551814898c7f6d86641b47faf7845c948640
[ "MIT" ]
null
null
null
# !/usr/bin/env python # coding=UTF-8 """ @Author: WEN Hao @LastEditors: WEN Hao @Description: @Date: 2021-09-24 @LastEditTime: 2022-04-17 源自OpenAttack的DCESSubstitute """ import random from typing import NoReturn, List, Any, Optional import numpy as np from utils.transformations.base import CharSubstitute from uti...
23.576923
84
0.518035
551
5,517
5.030853
0.399274
0.023088
0.014069
0.012266
0.103896
0.103896
0.070707
0.048341
0.048341
0.048341
0
0.01311
0.35019
5,517
233
85
23.678112
0.760112
0.029001
0
0.070652
0
0
0.124271
0.008648
0
0
0
0
0
1
0.032609
false
0
0.032609
0.016304
0.11413
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
734bd8fdc6b5e208d672c4c4eac90f446f5043c6
6,220
py
Python
src/dctm/datasets.py
spotify-research/dctm
e813aca23c3f54bc55ace5b3342aaec5cc7dad60
[ "Apache-2.0" ]
11
2020-08-11T10:18:48.000Z
2021-12-23T15:34:46.000Z
src/dctm/datasets.py
spotify-research/dctm
e813aca23c3f54bc55ace5b3342aaec5cc7dad60
[ "Apache-2.0" ]
null
null
null
src/dctm/datasets.py
spotify-research/dctm
e813aca23c3f54bc55ace5b3342aaec5cc7dad60
[ "Apache-2.0" ]
2
2020-09-02T23:02:11.000Z
2020-11-17T05:16:29.000Z
# # Copyright 2020 Spotify AB # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.910053
79
0.635852
898
6,220
4.265033
0.268374
0.018277
0.009399
0.010966
0.201567
0.146214
0.12376
0.092428
0.051697
0.051697
0
0.00848
0.222669
6,220
188
80
33.085106
0.783661
0.174437
0
0.10084
0
0
0.029818
0
0
0
0
0
0
1
0.058824
false
0
0.084034
0.008403
0.193277
0.008403
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
734e2605b9fe6651d724a46a3b07b21d5d438537
4,010
py
Python
torchreid/optim/sam.py
opencv/deep-person-reid
ccc305614e968d4b64cc7d4b6664eb42267e6250
[ "MIT" ]
1
2020-07-07T19:22:17.000Z
2020-07-07T19:22:17.000Z
torchreid/optim/sam.py
opencv/deep-person-reid
ccc305614e968d4b64cc7d4b6664eb42267e6250
[ "MIT" ]
1
2020-06-04T15:22:09.000Z
2020-06-04T15:22:09.000Z
torchreid/optim/sam.py
opencv/deep-person-reid
ccc305614e968d4b64cc7d4b6664eb42267e6250
[ "MIT" ]
4
2020-07-02T09:23:11.000Z
2020-08-21T08:24:13.000Z
# Copyright 2020 Google Research # SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # ''' Imported from: https://github.com/google-research/sam ''' import torch class SAM(torch.optim.Optimizer): def __init__(self, params, base_optimizer, rho...
37.830189
131
0.56783
533
4,010
4.136961
0.333959
0.036281
0.047619
0.025397
0.273469
0.260771
0.213152
0.18322
0.160544
0.160544
0
0.012758
0.335411
4,010
105
132
38.190476
0.814634
0.223192
0
0.333333
0
0
0.06939
0
0
0
0
0
0.014493
1
0.101449
false
0
0.014493
0
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
735158944908fbafce88d97668526717a22003eb
11,958
py
Python
src/konfiger_stream.py
konfiger/konfiger-python
294fb2fed8a46f7e242825fc0b723b0ff7132c8c
[ "MIT" ]
4
2019-09-25T02:18:43.000Z
2020-01-21T19:16:05.000Z
src/konfiger_stream.py
keyvaluedb/key-value-db-python
294fb2fed8a46f7e242825fc0b723b0ff7132c8c
[ "MIT" ]
null
null
null
src/konfiger_stream.py
keyvaluedb/key-value-db-python
294fb2fed8a46f7e242825fc0b723b0ff7132c8c
[ "MIT" ]
null
null
null
""" The MIT License Copyright 2020 Adewale Azeez <azeezadewale98@gmail.com>. """ import os.path from .konfiger_util import type_of, is_string, is_char, is_bool, escape_string, un_escape_string def file_stream(file_path, delimiter = '=', separator = '\n', err_tolerance = False): return KonfigerStream(file...
45.816092
150
0.511373
1,256
11,958
4.645701
0.101115
0.041131
0.082262
0.037875
0.642502
0.507626
0.449015
0.394173
0.342416
0.311225
0
0.007192
0.407008
11,958
260
151
45.992308
0.815682
0.006021
0
0.469027
0
0
0.087077
0
0
0
0
0
0
1
0.075221
false
0
0.00885
0.030973
0.159292
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
735211327e137e292f3ce5c7750409c77a35d0dd
2,674
py
Python
matematik.py
Drummersbrother/math_for_school
5eaa22320298d59b770e68b9640b34a525875132
[ "MIT" ]
null
null
null
matematik.py
Drummersbrother/math_for_school
5eaa22320298d59b770e68b9640b34a525875132
[ "MIT" ]
null
null
null
matematik.py
Drummersbrother/math_for_school
5eaa22320298d59b770e68b9640b34a525875132
[ "MIT" ]
null
null
null
import math import numpy as np import collections import scipy.stats as sst import matplotlib.pyplot as plt def plot(*args, **kwargs): plt.plot(*args, **kwargs) plt.show() def linregshow(x, y, col: str="r"): linregresult = sst.linregress(list(zip(x, y))) plot(x, y, col, x, [(val * linregresult.slope) ...
33.848101
139
0.628646
402
2,674
4.134328
0.340796
0.037906
0.042118
0.040915
0.136582
0.058965
0.032491
0
0
0
0
0.011426
0.247195
2,674
78
140
34.282051
0.814208
0.313388
0
0.211538
0
0
0.000561
0
0
0
0
0
0
1
0.192308
false
0
0.096154
0
0.480769
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
7352cdca72cd11a42b689b908ad454fb587ad295
5,362
py
Python
docly/ioutils/__init__.py
autosoft-dev/docly
0bd6216b8a9735e9fa76bffd4ffea6cec6cc4a01
[ "MIT" ]
29
2020-12-31T08:27:32.000Z
2022-02-15T08:48:51.000Z
docly/ioutils/__init__.py
autosoft-dev/docly
0bd6216b8a9735e9fa76bffd4ffea6cec6cc4a01
[ "MIT" ]
4
2020-12-30T18:18:54.000Z
2021-08-03T14:42:35.000Z
docly/ioutils/__init__.py
autosoft-dev/docly
0bd6216b8a9735e9fa76bffd4ffea6cec6cc4a01
[ "MIT" ]
2
2022-01-04T17:58:22.000Z
2022-02-05T13:04:14.000Z
import os from pathlib import Path import requests import shutil import sys from distutils.version import LooseVersion import time from tqdm import tqdm from docly.parser import parser as py_parser from docly.tokenizers import tokenize_code_string from docly import __version__ # from c2nl.objects import Code UPDATE_...
31.356725
82
0.610966
722
5,362
4.33518
0.282548
0.030671
0.022364
0.010543
0.154633
0.092013
0.079872
0.079872
0.079872
0.064537
0
0.010291
0.275084
5,362
171
83
31.356725
0.794958
0.12514
0
0.227642
0
0
0.063149
0
0
0
0
0
0.01626
1
0.073171
false
0
0.089431
0
0.308943
0.01626
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
735414eb5a0cf25ba65326dd7cc3a0b2acaea272
2,978
py
Python
scripts/preprocess_for_prediction.py
jmueller95/deepgrind
1fdca224a5256b820fa817a529e79b70c8808d65
[ "Apache-2.0" ]
null
null
null
scripts/preprocess_for_prediction.py
jmueller95/deepgrind
1fdca224a5256b820fa817a529e79b70c8808d65
[ "Apache-2.0" ]
null
null
null
scripts/preprocess_for_prediction.py
jmueller95/deepgrind
1fdca224a5256b820fa817a529e79b70c8808d65
[ "Apache-2.0" ]
null
null
null
import pandas as pd import utils def check_msms_model_name(converter): def wrapper(*args, **kwargs): if kwargs['style'] not in ["pdeep", "prosit"]: raise Exception("MSMS model must be 'pdeep' or 'prosit'") converter(*args, **kwargs) return wrapper @check_msms_model_name...
46.53125
131
0.624244
384
2,978
4.669271
0.296875
0.046849
0.033463
0.030117
0.528165
0.438929
0.422197
0.387619
0.341885
0.341885
0
0.014369
0.252183
2,978
63
132
47.269841
0.79075
0.121222
0
0.3125
0
0
0.155477
0.008245
0
0
0
0
0
1
0.104167
false
0
0.041667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7354ded194b9ee5cde59d94c66a6556bf76f8b32
1,497
py
Python
GettingStarted/gettingstarted.py
rohitp934/roadtoadatascientist
50724b63c2692659cdd48e9ed20e856c231695fd
[ "MIT" ]
null
null
null
GettingStarted/gettingstarted.py
rohitp934/roadtoadatascientist
50724b63c2692659cdd48e9ed20e856c231695fd
[ "MIT" ]
null
null
null
GettingStarted/gettingstarted.py
rohitp934/roadtoadatascientist
50724b63c2692659cdd48e9ed20e856c231695fd
[ "MIT" ]
null
null
null
#importing necessary modules from sklearn.linear_model import Perceptron from sklearn.neighbors import KNeighborsClassifier from sklearn.metrics import accuracy_score import numpy as np # Data and labels Xtrain = [[182, 80, 34], [176, 70, 33], [161, 60, 28], [154, 55, 27], [166, 63, 30], [189, 90, 36], [175, 63, 28], ...
38.384615
174
0.676687
223
1,497
4.479821
0.497758
0.072072
0.064064
0.06006
0.132132
0.092092
0.092092
0.092092
0.092092
0
0
0.126761
0.146293
1,497
38
175
39.394737
0.65493
0.153641
0
0
0
0
0.184127
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.136364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7356af2b787834d2216080e3079e961a0d62871f
909
py
Python
libs/optimizers.py
bxtkezhan/AILabs
6328aa65a3ce5f450389a5a848b641ba36f0e9c5
[ "MIT" ]
null
null
null
libs/optimizers.py
bxtkezhan/AILabs
6328aa65a3ce5f450389a5a848b641ba36f0e9c5
[ "MIT" ]
null
null
null
libs/optimizers.py
bxtkezhan/AILabs
6328aa65a3ce5f450389a5a848b641ba36f0e9c5
[ "MIT" ]
null
null
null
import numpy as np class SGD: def __init__(self, lr=0.01, momentum=0.0, decay=0.0, nesterov=False, maximum=None, minimum=None): self.lr = lr self.momentum = momentum self.decay = decay self.nesterov = nesterov self.idx = None self.maximum = maximum ...
31.344828
72
0.563256
117
909
4.282051
0.350427
0.107784
0.07984
0.051896
0
0
0
0
0
0
0
0.014682
0.325633
909
28
73
32.464286
0.80261
0
0
0
0
0
0.042904
0
0
0
0
0
0
1
0.083333
false
0.041667
0.041667
0
0.208333
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
735716881d6460c9c4e13489b7256920b070c665
122,809
py
Python
pennylane/transforms/qcut.py
therooler/pennylane
88a8a5960a2ffd218a12f85ace632021eef2abf5
[ "Apache-2.0" ]
null
null
null
pennylane/transforms/qcut.py
therooler/pennylane
88a8a5960a2ffd218a12f85ace632021eef2abf5
[ "Apache-2.0" ]
null
null
null
pennylane/transforms/qcut.py
therooler/pennylane
88a8a5960a2ffd218a12f85ace632021eef2abf5
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Xanadu Quantum Technologies 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 a...
38.741009
117
0.629905
16,711
122,809
4.598109
0.076058
0.006247
0.013717
0.006091
0.533115
0.481435
0.439048
0.407345
0.371504
0.34925
0
0.01481
0.267668
122,809
3,169
118
38.753234
0.821242
0.563224
0
0.275428
0
0
0.087768
0.00978
0
0
0
0.000316
0.0045
1
0.045905
false
0.0009
0.027903
0
0.125113
0.0009
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
735938898c03a603b4b3dd0bb3da69ebc37d8938
10,903
py
Python
fish_dashboard/scrapyd/scrapyd_service.py
SylvanasSun/FishFishJump
696212d242d8d572f3f1b43925f3d8ab8acc6a2d
[ "MIT" ]
60
2018-03-09T07:06:10.000Z
2021-11-18T15:53:04.000Z
fish_dashboard/scrapyd/scrapyd_service.py
qiubaiying/FishFishJump
696212d242d8d572f3f1b43925f3d8ab8acc6a2d
[ "MIT" ]
1
2018-04-03T11:05:54.000Z
2018-04-03T20:06:41.000Z
fish_dashboard/scrapyd/scrapyd_service.py
qiubaiying/FishFishJump
696212d242d8d572f3f1b43925f3d8ab8acc6a2d
[ "MIT" ]
8
2018-03-12T03:07:00.000Z
2021-06-11T05:16:11.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from fish_core.utils.common_utils import format_dict_to_str, get_current_date, list_to_str, str_to_list from fish_dashboard.scrapyd.model import ScrapydStatusVO, JobListDO, JobStatus, JobPriority, ProjectListVO, SpiderListVO from fish_dashboard.scrapyd.scrapyd_db import Sql...
46.199153
120
0.604879
1,234
10,903
4.986224
0.123177
0.105477
0.035105
0.027304
0.436047
0.3608
0.335446
0.317244
0.251747
0.218593
0
0.003852
0.309456
10,903
235
121
46.395745
0.813388
0.055489
0
0.238889
0
0
0.090962
0.00225
0
0
0
0
0
1
0.072222
false
0.005556
0.016667
0.005556
0.194444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7359bba7e09630706e6e5d4a81fb814a396993e5
1,750
py
Python
apps/shared/storage.py
bensternthal/affiliates
e234b0ab925b33d71cb5ded3d51dccbcbb0e59c1
[ "BSD-3-Clause" ]
null
null
null
apps/shared/storage.py
bensternthal/affiliates
e234b0ab925b33d71cb5ded3d51dccbcbb0e59c1
[ "BSD-3-Clause" ]
null
null
null
apps/shared/storage.py
bensternthal/affiliates
e234b0ab925b33d71cb5ded3d51dccbcbb0e59c1
[ "BSD-3-Clause" ]
null
null
null
import os from tempfile import mkstemp from django.conf import settings from django.core.files import locks from django.core.files.move import file_move_safe from django.core.files.storage import FileSystemStorage from django.utils.text import get_valid_filename class OverwritingStorage(FileSystemStorage): """ ...
32.407407
79
0.652571
222
1,750
4.995496
0.418919
0.054103
0.050496
0.06853
0.093778
0
0
0
0
0
0
0.003125
0.268571
1,750
53
80
33.018868
0.863281
0.162286
0
0.060606
0
0
0.036594
0
0
0
0
0
0
1
0.060606
false
0
0.212121
0.030303
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
735a0631d562698eec79867185c8831049a8bf3f
3,783
py
Python
bin/dupeFinder.py
kebman/dupe-finder-py
3ac23da711577466043b5032a4022516f4ccef95
[ "BSD-3-Clause" ]
1
2018-02-17T09:00:48.000Z
2018-02-17T09:00:48.000Z
bin/dupeFinder.py
kebman/dupe-finder-py
3ac23da711577466043b5032a4022516f4ccef95
[ "BSD-3-Clause" ]
null
null
null
bin/dupeFinder.py
kebman/dupe-finder-py
3ac23da711577466043b5032a4022516f4ccef95
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2 import os import hashlib import datetime import sqlite3 from sqlite3 import Error def sha256(fname): """Return sha256 hash from input file (fname). :param fname: :return: Sha256 hash digest in hexadecimal""" hash_sha256 = hashlib.sha256() with open(fname, "rb") as f: for chunk in iter(lam...
29.787402
111
0.694422
505
3,783
5.128713
0.318812
0.027027
0.012355
0.03861
0.158687
0.158687
0.127027
0.127027
0.127027
0.079923
0
0.014143
0.177637
3,783
126
112
30.02381
0.818386
0.359239
0
0.082192
0
0
0.135572
0
0
0
0
0
0
1
0.123288
false
0
0.068493
0
0.315068
0.013699
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
735afc924941206a74f98559fb49787e7b5af8e7
309
py
Python
Python/factorialIterative.py
Ricardoengithub/Factorial
0c45201bbe1ad94bf0d090381eb662cf2a281fda
[ "MIT" ]
null
null
null
Python/factorialIterative.py
Ricardoengithub/Factorial
0c45201bbe1ad94bf0d090381eb662cf2a281fda
[ "MIT" ]
null
null
null
Python/factorialIterative.py
Ricardoengithub/Factorial
0c45201bbe1ad94bf0d090381eb662cf2a281fda
[ "MIT" ]
null
null
null
def factorial(n): fact = 1 for i in range(2,n+1): fact*= i return fact def main(): n = int(input("Enter a number: ")) if n >= 0: print(f"Factorial: {factorial(n)}") else: print(f"Choose another number") if __name__ == "__main__": main()
15.45
43
0.501618
42
309
3.5
0.595238
0.136054
0
0
0
0
0
0
0
0
0
0.019901
0.349515
309
19
44
16.263158
0.711443
0
0
0
0
0
0.226537
0
0
0
0
0
0
1
0.153846
false
0
0
0
0.230769
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
735c291e6927c7998102106ab071603c6808076b
5,919
py
Python
code_old/sort.py
benwoo1110/A-List-of-Sorts-v2
2d404bda6c6ddc689e705cad6966f2a656ddac2f
[ "MIT" ]
6
2020-06-29T01:57:44.000Z
2022-01-14T09:00:03.000Z
code_old/sort.py
benwoo1110/A-List-of-Sorts-v2
2d404bda6c6ddc689e705cad6966f2a656ddac2f
[ "MIT" ]
null
null
null
code_old/sort.py
benwoo1110/A-List-of-Sorts-v2
2d404bda6c6ddc689e705cad6966f2a656ddac2f
[ "MIT" ]
1
2021-03-26T04:30:37.000Z
2021-03-26T04:30:37.000Z
###################################### # Import and initialize the librarys # ##################################### from code.pygame_objects import * from code.algorithm.bubblesort import bubblesort from code.algorithm.insertionsort import insertionsort from code.algorithm.bogosort import bogosort from code.algorithm.m...
31.994595
112
0.487751
597
5,919
4.730318
0.274707
0.053116
0.048159
0.009915
0.393768
0.319405
0.266289
0.247167
0.219547
0.121813
0
0.050481
0.367461
5,919
185
113
31.994595
0.703793
0.038351
0
0.303226
0
0
0.098905
0
0
0
0
0
0
1
0.006452
false
0
0.058065
0
0.070968
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
735e36175591a886d021d1f42c7e0f23a0bc609d
489
py
Python
catkin_ws/src/tutorials/scripts/number_sub.py
vipulkumbhar/AuE893Spring19_VipulKumbhar
f741d5299b2804fd541b2bba64b8a4fba8521f33
[ "MIT" ]
3
2020-12-04T22:00:12.000Z
2022-02-09T15:53:14.000Z
catkin_ws/src/tutorials/scripts/number_sub.py
vipulkumbhar/AuE893Spring19_VipulKumbhar
f741d5299b2804fd541b2bba64b8a4fba8521f33
[ "MIT" ]
1
2020-04-15T19:58:30.000Z
2020-04-15T19:58:30.000Z
catkin_ws/src/tutorials/scripts/number_sub.py
vipulkumbhar/AuE893Spring19_VipulKumbhar
f741d5299b2804fd541b2bba64b8a4fba8521f33
[ "MIT" ]
1
2020-05-21T21:59:21.000Z
2020-05-21T21:59:21.000Z
#!/usr/bin/env python import rospy from std_msgs.msg import Int64 counter = 0 pub = None def callback_number(msg): global counter counter += msg.data new_msg = Int64() new_msg.data = counter pub.publish(new_msg) rospy.loginfo(counter) if __name__ == '__main__': rospy.init_node('...
18.807692
66
0.666667
65
489
4.738462
0.553846
0.058442
0
0
0
0
0
0
0
0
0
0.028721
0.216769
489
25
67
19.56
0.775457
0.0409
0
0
0
0
0.090323
0
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
735e8db4e1d5d21ba03d9d6374f1111bc5cde6f4
806
py
Python
setup.py
eddo888/perdy
616473e9bde3ad58dc1ebf054fb78a7cc48c3adf
[ "MIT" ]
null
null
null
setup.py
eddo888/perdy
616473e9bde3ad58dc1ebf054fb78a7cc48c3adf
[ "MIT" ]
null
null
null
setup.py
eddo888/perdy
616473e9bde3ad58dc1ebf054fb78a7cc48c3adf
[ "MIT" ]
null
null
null
#!/usr/bin/env python import codecs from os import path from setuptools import setup pwd = path.abspath(path.dirname(__file__)) with codecs.open(path.join(pwd, 'README.md'), 'r', encoding='utf8') as input: long_description = input.read() version='1.7' setup( name='Perdy', version=version, license='MIT', ...
19.190476
77
0.682382
105
806
5.114286
0.666667
0.111732
0.070764
0.111732
0.108007
0.108007
0
0
0
0
0
0.017266
0.137717
806
41
78
19.658537
0.755396
0.024814
0
0.085714
0
0
0.3125
0
0
0
0
0
0
1
0
false
0
0.085714
0
0.085714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
736056399bf64b21d6f7dca419596b81048da99f
2,658
py
Python
utils/slack_send.py
IntelliGrape/pennypincher
d0d503eb8a480bf28f308ff52834170cca5a53d7
[ "MIT" ]
null
null
null
utils/slack_send.py
IntelliGrape/pennypincher
d0d503eb8a480bf28f308ff52834170cca5a53d7
[ "MIT" ]
null
null
null
utils/slack_send.py
IntelliGrape/pennypincher
d0d503eb8a480bf28f308ff52834170cca5a53d7
[ "MIT" ]
null
null
null
from tabulate import tabulate from slack.errors import SlackApiError import sys import logging import slack class Slackalert: """To send cost report on slack.""" def __init__(self, channel=None, slack_token=None): self.channel = channel self.slack_token = slack_token logging.basicConfi...
45.050847
122
0.598947
304
2,658
5.065789
0.375
0.085714
0.051948
0.046753
0.109091
0.031169
0
0
0
0
0
0.003175
0.288939
2,658
58
123
45.827586
0.81164
0.086907
0
0.045455
0
0
0.152946
0.037695
0
0
0
0
0.045455
1
0.068182
false
0
0.113636
0
0.227273
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7361d838090b7ba746e73857fad1d1b69e7ce317
852
py
Python
anno_gen/modify_filesprocessed.py
KevinQian97/diva_toolbox
de83de7f7602665c92dca943ab2a0b4c1b2fdfde
[ "Apache-2.0" ]
null
null
null
anno_gen/modify_filesprocessed.py
KevinQian97/diva_toolbox
de83de7f7602665c92dca943ab2a0b4c1b2fdfde
[ "Apache-2.0" ]
null
null
null
anno_gen/modify_filesprocessed.py
KevinQian97/diva_toolbox
de83de7f7602665c92dca943ab2a0b4c1b2fdfde
[ "Apache-2.0" ]
1
2021-09-29T04:10:10.000Z
2021-09-29T04:10:10.000Z
import json import os def get_file_index(filesProcessed): new_dict = {} for f in filesProcessed: new_dict[f]={"framerate": 30.0, "selected": {"0": 1, "9000": 0}} return new_dict ref = json.load(open("/home/lijun/downloads/kf1_meta/references/kf1_all.json","r")) files = ref["filesProcessed"] print...
32.769231
107
0.738263
137
852
4.386861
0.408759
0.039933
0.064892
0.104825
0.489185
0.489185
0.409318
0.409318
0.409318
0.312812
0
0.022251
0.103286
852
25
108
34.08
0.764398
0
0
0.105263
0
0
0.400235
0.336854
0
0
0
0
0
1
0.052632
false
0
0.105263
0
0.210526
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
73622863ce396d64c3c5ebe2afec91bcbe2b4043
2,561
py
Python
monotone_bipartition/search.py
mvcisback/monotone-bipartition
c92262fac14258ed25619681ebcb0f8734044d22
[ "MIT" ]
1
2017-05-17T22:47:33.000Z
2017-05-17T22:47:33.000Z
monotone_bipartition/search.py
mvcisback/multidim-threshold
c92262fac14258ed25619681ebcb0f8734044d22
[ "MIT" ]
10
2019-04-01T17:05:14.000Z
2020-05-01T17:23:18.000Z
monotone_bipartition/search.py
mvcisback/monotone-bipartition
c92262fac14258ed25619681ebcb0f8734044d22
[ "MIT" ]
4
2017-02-03T01:30:03.000Z
2018-04-25T22:28:23.000Z
from enum import Enum, auto import funcy as fn import numpy as np from monotone_bipartition import rectangles as mdtr from monotone_bipartition import refine EPS = 1e-4 class SearchResultType(Enum): TRIVIALLY_FALSE = auto() TRIVIALLY_TRUE = auto() NON_TRIVIAL = auto() def diagonal_convex_comb(r): ...
28.775281
77
0.636861
363
2,561
4.369146
0.330579
0.069357
0.098361
0.088272
0.163934
0
0
0
0
0
0
0.007407
0.262007
2,561
88
78
29.102273
0.831746
0.114018
0
0.064516
0
0
0
0
0
0
0
0
0.016129
1
0.064516
false
0
0.080645
0
0.322581
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
7363b08e9959a774b4c96272382532b62b203a94
2,069
py
Python
tests/test_heart_forest.py
RainingComputers/pykitml
1c3e50cebcdb6c4da63979ef9a812b44d23a4857
[ "MIT" ]
34
2020-03-06T07:53:43.000Z
2022-03-13T06:12:29.000Z
tests/test_heart_forest.py
RainingComputers/pykitml
1c3e50cebcdb6c4da63979ef9a812b44d23a4857
[ "MIT" ]
6
2021-06-08T22:43:23.000Z
2022-03-08T13:57:33.000Z
tests/test_heart_forest.py
RainingComputers/pykitml
1c3e50cebcdb6c4da63979ef9a812b44d23a4857
[ "MIT" ]
1
2020-11-30T21:20:32.000Z
2020-11-30T21:20:32.000Z
from pykitml.testing import pktest_graph, pktest_nograph @pktest_graph def test_heart_forest(): import os.path import numpy as np import pykitml as pk from pykitml.datasets import heartdisease # Download the dataset if(not os.path.exists('heartdisease.pkl')): heartdisease.get() # Lo...
29.140845
88
0.685839
258
2,069
5.267442
0.403101
0.089036
0.169978
0.027962
0.173657
0.173657
0.111847
0.111847
0.111847
0.111847
0
0.02952
0.214113
2,069
71
89
29.140845
0.806273
0.165781
0
0.15
0
0
0.133762
0.031542
0
0
0
0
0.05
1
0.05
false
0.025
0.2
0
0.25
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
736486ab642c356a4d5f9aa4e677a035c93276d3
25,682
py
Python
pdf_audit.py
marctjones/perception
9a9fe4e5cef6a2aa66544066d8c03e0e9c3b0528
[ "MIT" ]
null
null
null
pdf_audit.py
marctjones/perception
9a9fe4e5cef6a2aa66544066d8c03e0e9c3b0528
[ "MIT" ]
null
null
null
pdf_audit.py
marctjones/perception
9a9fe4e5cef6a2aa66544066d8c03e0e9c3b0528
[ "MIT" ]
null
null
null
from globals import Globals import os import subprocess import datetime as dt from urllib import \ request as request # urlopen from io import \ StringIO, BytesIO import string import requests import re import csv import threading import utils as utils import time import datetime as datetime import multiproces...
43.825939
133
0.50035
2,895
25,682
4.156131
0.115717
0.035406
0.070229
0.035655
0.487035
0.422789
0.379987
0.368019
0.310422
0.262301
0
0.016161
0.371155
25,682
585
134
43.900855
0.728854
0.037614
0
0.370526
0
0
0.066541
0.001835
0
0
0
0.003419
0
1
0.012632
false
0.012632
0.052632
0
0.069474
0.069474
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7df6fe1ea2b65847f447c2f9cd2b5b13e71d4aef
14,020
py
Python
edb/edgeql/tracer.py
hyperdrivetech/edgedb
6d84d607889eca771e902f28c2329e388fd172b0
[ "Apache-2.0" ]
null
null
null
edb/edgeql/tracer.py
hyperdrivetech/edgedb
6d84d607889eca771e902f28c2329e388fd172b0
[ "Apache-2.0" ]
null
null
null
edb/edgeql/tracer.py
hyperdrivetech/edgedb
6d84d607889eca771e902f28c2329e388fd172b0
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2015-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
27.984032
78
0.604922
1,765
14,020
4.733711
0.141643
0.043088
0.047397
0.080431
0.489288
0.407421
0.337882
0.307361
0.262597
0.245841
0
0.001298
0.285592
14,020
500
79
28.04
0.832867
0.077817
0
0.469565
0
0
0.023185
0.013648
0
0
0
0
0
1
0.13913
false
0.008696
0.017391
0.023188
0.237681
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
7df78eabcc3fb72c6b36049cdb0e6b3517bdbd8a
2,950
py
Python
code.py
surojitnath/olympic-hero
aee1ddf291bf5097fa7fd5442483fbbe87ec001f
[ "MIT" ]
null
null
null
code.py
surojitnath/olympic-hero
aee1ddf291bf5097fa7fd5442483fbbe87ec001f
[ "MIT" ]
null
null
null
code.py
surojitnath/olympic-hero
aee1ddf291bf5097fa7fd5442483fbbe87ec001f
[ "MIT" ]
null
null
null
# -------------- #Importing header files import pandas as pd import numpy as np import matplotlib.pyplot as plt #Path of the file data=pd.read_csv(path) data.rename(columns={'Total':'Total_Medals'},inplace =True) data.head(10) #Code starts here # -------------- try: data['Better_Event'] = np.where(...
27.570093
109
0.694915
425
2,950
4.503529
0.218824
0.057471
0.061129
0.039707
0.272727
0.14838
0.101358
0.101358
0.054336
0.054336
0
0.015391
0.118983
2,950
106
110
27.830189
0.721047
0.103729
0
0.101695
0
0
0.271513
0
0
0
0
0
0
1
0.016949
false
0.016949
0.050847
0
0.084746
0.186441
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7df8cceb59a2bcfb8715aedd4215b42ada0971fd
7,096
py
Python
planes/kissSlope/kissSlopeWing2.py
alexpGH/blenderCadCamTools
1db2a750ed227d46e174350a2e37c4951c669867
[ "MIT" ]
3
2020-12-28T11:58:26.000Z
2021-05-31T03:03:04.000Z
planes/kissSlope/kissSlopeWing2.py
alexpGH/blenderCadCamTools
1db2a750ed227d46e174350a2e37c4951c669867
[ "MIT" ]
null
null
null
planes/kissSlope/kissSlopeWing2.py
alexpGH/blenderCadCamTools
1db2a750ed227d46e174350a2e37c4951c669867
[ "MIT" ]
null
null
null
import bpy import math import numpy as np #=== add scripts dir to path import sys import os #=== define path of scripts dir libDir=bpy.path.abspath("//../../scripts/") # version1: relative to current file #libDir="/where/you/placed/blenderCadCam/scripts/" #version 2: usa an absolute path if not libDir in sys.path: ...
29.322314
140
0.567644
835
7,096
4.802395
0.350898
0.01596
0.017955
0.014963
0.205486
0.195262
0.108978
0.085536
0.069576
0.069576
0
0.05007
0.192221
7,096
241
141
29.443983
0.649512
0.400085
0
0.145833
0
0
0.083095
0.005014
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
7dfb769eb03d5be318cb102a630728947e956816
9,382
py
Python
miping/training/features.py
mclgoerg/MiningPersonalityInGerman
4c5811a0f72100b7afef9695475a6de9251444b7
[ "Apache-2.0" ]
1
2020-09-11T01:11:19.000Z
2020-09-11T01:11:19.000Z
miping/training/features.py
mclgoerg/MiningPersonalityInGerman
4c5811a0f72100b7afef9695475a6de9251444b7
[ "Apache-2.0" ]
null
null
null
miping/training/features.py
mclgoerg/MiningPersonalityInGerman
4c5811a0f72100b7afef9695475a6de9251444b7
[ "Apache-2.0" ]
2
2020-08-12T15:57:06.000Z
2020-12-17T18:11:03.000Z
import numpy as np from sklearn.preprocessing import FunctionTransformer from sklearn.pipeline import Pipeline from sklearn.pipeline import FeatureUnion from sklearn.preprocessing import StandardScaler from ..models.profile import Profile from ..interfaces.helper import Helper from ..interfaces.glove import GloVe fro...
32.351724
77
0.588361
947
9,382
5.783527
0.284055
0.011503
0.012416
0.010955
0.219828
0.198284
0.185868
0.14497
0.14497
0.117948
0
0.006076
0.350885
9,382
289
78
32.463668
0.893268
0.412918
0
0.280992
0
0
0.030485
0
0
0
0
0
0
1
0.049587
false
0
0.07438
0.008264
0.181818
0.016529
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7dfc55af75328775b1d9e9abc358301541231f7c
1,383
py
Python
tests/unit/test_serializers.py
launchpadrecruits/placebo
7b6db70a341d935a2e250b76d1ea47e56e8c9d92
[ "Apache-2.0" ]
1
2019-06-10T13:52:41.000Z
2019-06-10T13:52:41.000Z
tests/unit/test_serializers.py
launchpadrecruits/placebo
7b6db70a341d935a2e250b76d1ea47e56e8c9d92
[ "Apache-2.0" ]
1
2018-10-01T13:11:50.000Z
2018-10-01T13:11:50.000Z
tests/unit/test_serializers.py
launchpadrecruits/lpr-placebo
7b6db70a341d935a2e250b76d1ea47e56e8c9d92
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Mitch Garnaat # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
33.731707
187
0.707158
187
1,383
5.13369
0.57754
0.0625
0.027083
0.033333
0
0
0
0
0
0
0
0.024583
0.176428
1,383
40
188
34.575
0.818262
0.400578
0
0
0
0.055556
0.247853
0
0
0
0
0
0.111111
1
0.111111
false
0
0.222222
0
0.388889
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
7dfc5fe7b48790825f5784ca8956028cbaaac9a8
1,267
py
Python
Chapter11/web_03.py
vabyte/Modern-Python-Standard-Library-Cookbook
4f53e3ab7b61aca1cca9343e7421e170280cd5b5
[ "MIT" ]
84
2018-08-09T09:30:03.000Z
2022-01-04T23:20:38.000Z
Chapter11/web_03.py
jiro74/Modern-Python-Standard-Library-Cookbook
4f53e3ab7b61aca1cca9343e7421e170280cd5b5
[ "MIT" ]
1
2019-11-04T18:57:40.000Z
2020-09-07T08:52:25.000Z
Chapter11/web_03.py
jiro74/Modern-Python-Standard-Library-Cookbook
4f53e3ab7b61aca1cca9343e7421e170280cd5b5
[ "MIT" ]
33
2018-09-26T11:05:55.000Z
2022-03-15T10:31:10.000Z
import urllib.request import urllib.parse import json def http_request(url, query=None, method=None, headers={}, data=None): """Perform an HTTP request and return the associated response.""" parts = vars(urllib.parse.urlparse(url)) if query: parts['query'] = urllib.parse.urlencode(query) url ...
31.675
75
0.594317
156
1,267
4.698718
0.410256
0.075034
0.070941
0.092769
0.241473
0.241473
0.206003
0.160982
0.160982
0.160982
0
0.003175
0.254144
1,267
40
76
31.675
0.772487
0.046567
0
0.1
0
0
0.14547
0
0
0
0
0
0
1
0.033333
false
0
0.1
0
0.166667
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b400a722c717d6322475d075e5e6ca07343e213f
2,195
py
Python
src/fasttick.py
JevinJ/Bittrex-Notify
ea1057fa2fd59d191893eb7a4c31f35db789ba29
[ "MIT" ]
12
2017-08-15T08:40:44.000Z
2018-01-30T20:55:20.000Z
src/fasttick.py
alimogh/BittrexNotify
ea1057fa2fd59d191893eb7a4c31f35db789ba29
[ "MIT" ]
5
2017-08-30T15:46:03.000Z
2018-02-16T09:18:27.000Z
src/fasttick.py
alimogh/BittrexNotify
ea1057fa2fd59d191893eb7a4c31f35db789ba29
[ "MIT" ]
3
2017-08-28T17:58:03.000Z
2017-12-05T02:05:18.000Z
import config import misc def heartbeat(): """ Processes data from Bittrex into a simpler dictionary, calls the save function on it, deletes the oldest saved dictionary(if it's out of lookback range), and finally creates a list of the best coins to be used in tkinter listboxes. :return: A list...
45.729167
99
0.615034
285
2,195
4.557895
0.34386
0.053888
0.050038
0.039261
0.195535
0.160893
0.040031
0.040031
0
0
0
0.010385
0.254214
2,195
48
100
45.729167
0.78314
0.199544
0
0
0
0
0.104408
0
0
0
0
0
0
1
0.030303
false
0
0.060606
0
0.121212
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
b401775f5af0e9b7b7978646db33631b271d516f
4,351
py
Python
scripts/build_folding_map.py
tsieprawski/md4c
9d99b1262de3353f0530ac6b31d8c6934003b61f
[ "MIT" ]
475
2016-11-27T18:37:51.000Z
2022-03-30T19:46:29.000Z
scripts/build_folding_map.py
tsieprawski/md4c
9d99b1262de3353f0530ac6b31d8c6934003b61f
[ "MIT" ]
173
2016-12-05T01:38:37.000Z
2022-01-14T10:06:30.000Z
scripts/build_folding_map.py
tsieprawski/md4c
9d99b1262de3353f0530ac6b31d8c6934003b61f
[ "MIT" ]
110
2016-11-29T20:02:16.000Z
2022-03-30T23:51:58.000Z
#!/usr/bin/env python3 import os import sys import textwrap self_path = os.path.dirname(os.path.realpath(__file__)); f = open(self_path + "/unicode/CaseFolding.txt", "r") status_list = [ "C", "F" ] folding_list = [ dict(), dict(), dict() ] # Filter the foldings for "full" folding. for line in f: comment_off =...
35.958678
107
0.6302
565
4,351
4.741593
0.290265
0.058231
0.056738
0.03882
0.322135
0.322135
0.286301
0.211646
0.181784
0.156402
0
0.045081
0.245461
4,351
120
108
36.258333
0.770941
0.214893
0
0.164384
0
0
0.057505
0.007078
0
0
0
0
0.013699
1
0.027397
false
0
0.041096
0.013699
0.123288
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
b402736fe41a1923f5e1f2be2b9ac727b56303ec
6,644
py
Python
Codigo/pruebas/Jose_Gonzalez/Solucion_PruebaTipoPiso.py
JoaquinRodriguez2006/RoboCup_Junior_Material
04f295010272fb8287c8f214bf69f1a61ee2b7cf
[ "MIT" ]
null
null
null
Codigo/pruebas/Jose_Gonzalez/Solucion_PruebaTipoPiso.py
JoaquinRodriguez2006/RoboCup_Junior_Material
04f295010272fb8287c8f214bf69f1a61ee2b7cf
[ "MIT" ]
null
null
null
Codigo/pruebas/Jose_Gonzalez/Solucion_PruebaTipoPiso.py
JoaquinRodriguez2006/RoboCup_Junior_Material
04f295010272fb8287c8f214bf69f1a61ee2b7cf
[ "MIT" ]
1
2022-03-19T22:57:33.000Z
2022-03-19T22:57:33.000Z
from controller import Robot from controller import Motor from controller import PositionSensor from controller import Robot, DistanceSensor, GPS, Camera, Receiver, Emitter import cv2 import numpy as np import math import time robot = Robot() timeStep = 32 tile_size = 0.12 speed = 6.28 media_baldoza = 0.06 estado = 1 ...
28.033755
124
0.615593
836
6,644
4.814593
0.273923
0.038758
0.006211
0.007453
0.214161
0.183354
0.156025
0.130932
0.098634
0.066335
0
0.051387
0.26189
6,644
236
125
28.152542
0.769372
0.17053
0
0.278481
0
0
0.054822
0
0
0
0
0
0
1
0.06962
false
0
0.050633
0
0.14557
0.050633
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b4040d06558b8483134d9ca3f4c2ab385bbdc016
3,393
py
Python
venv/lib/python3.6/site-packages/cligj/__init__.py
booklover98/A-_pathfinding
09afebfc953ce9773bc4fc781eb6d0496caccfba
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/cligj/__init__.py
booklover98/A-_pathfinding
09afebfc953ce9773bc4fc781eb6d0496caccfba
[ "MIT" ]
7
2021-06-04T23:45:15.000Z
2022-03-12T00:44:14.000Z
virtual/Lib/site-packages/cligj/__init__.py
owenabrams/bluemoonkampala
8801df64e91683a2641f2cd4bcbe03ebc7f40828
[ "MIT" ]
null
null
null
# cligj # Shared arguments and options. import click from .features import normalize_feature_inputs # Arguments. # Multiple input files. files_in_arg = click.argument( 'files', nargs=-1, type=click.Path(resolve_path=True), required=True, metavar="INPUTS...") # Multiple files, last of which is...
24.586957
78
0.660183
403
3,393
5.444169
0.307692
0.070191
0.070191
0.028715
0.168186
0.168186
0.109389
0.072926
0.072926
0.072926
0
0.002978
0.20837
3,393
137
79
24.766423
0.81385
0.134394
0
0.294737
0
0.010526
0.360835
0.01609
0
0
0.001369
0
0
1
0.031579
false
0
0.021053
0.031579
0.084211
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
b404133dc455d3af035e0832fd933c69627e3b05
2,031
py
Python
setup.py
ELC/testnbdev
571400a9308ba91f05f6fabad5d3f79fd4417ab1
[ "Apache-2.0" ]
1
2021-02-19T15:34:58.000Z
2021-02-19T15:34:58.000Z
setup.py
ELC/testnbdev
571400a9308ba91f05f6fabad5d3f79fd4417ab1
[ "Apache-2.0" ]
2
2021-09-28T05:49:28.000Z
2022-02-26T10:24:52.000Z
setup.py
ELC/nbdev_template
571400a9308ba91f05f6fabad5d3f79fd4417ab1
[ "Apache-2.0" ]
null
null
null
from pkg_resources import parse_version from configparser import ConfigParser import setuptools assert parse_version(setuptools.__version__)>=parse_version('36.2') # note: all settings are in settings.ini; edit there, not here config = ConfigParser(delimiters=['=']) config.read('settings.ini') config = config['DEFAULT...
39.823529
116
0.681438
267
2,031
5.033708
0.419476
0.033482
0.017857
0
0
0
0
0
0
0
0
0.03
0.162974
2,031
50
117
40.62
0.760588
0.029542
0
0
0
0.02439
0.333333
0
0
0
0
0
0.04878
1
0
false
0
0.073171
0
0.073171
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
b40507b05e0b887443fd6d70a1bf0020514bacc1
3,730
py
Python
amaascore/tools/generate_party.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
null
null
null
amaascore/tools/generate_party.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
8
2017-06-06T09:42:41.000Z
2018-01-16T10:16:16.000Z
amaascore/tools/generate_party.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
8
2017-01-18T04:14:01.000Z
2017-12-01T08:03:10.000Z
from __future__ import absolute_import, division, print_function, unicode_literals from amaasutils.random_utils import random_string, random_decimal import random from amaascore.core.reference import Reference from amaascore.parties.asset_manager import AssetManager from amaascore.parties.broker import Broker from am...
44.404762
113
0.746917
476
3,730
5.55042
0.201681
0.11355
0.084784
0.047691
0.425057
0.384936
0.375095
0.362226
0.298637
0.239591
0
0.012468
0.161394
3,730
83
114
44.939759
0.832161
0.033244
0
0.095238
0
0
0.038301
0
0
0
0
0
0
1
0.126984
false
0
0.142857
0.015873
0.396825
0.015873
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b405b1ef752a1702183bea0b47a0bc6616babde1
9,291
py
Python
fitgrid/utils/lmer.py
vishalbelsare/fitgrid
0197e7a3fc2c937da03d768b5c91220eebe54a22
[ "BSD-3-Clause" ]
10
2020-02-01T22:58:32.000Z
2022-03-29T11:31:00.000Z
fitgrid/utils/lmer.py
vishalbelsare/fitgrid
0197e7a3fc2c937da03d768b5c91220eebe54a22
[ "BSD-3-Clause" ]
161
2018-09-11T16:41:30.000Z
2021-08-03T19:26:23.000Z
fitgrid/utils/lmer.py
vishalbelsare/fitgrid
0197e7a3fc2c937da03d768b5c91220eebe54a22
[ "BSD-3-Clause" ]
4
2019-02-27T08:11:31.000Z
2021-07-21T20:50:36.000Z
# -*- coding: utf-8 -*- """User functions to streamline working with selected pymer4 LMER fit attributes from lme4::lmer and lmerTest for ``fitgrid.lmer`` grids. """ import functools import re import warnings import numpy as np import pandas as pd import matplotlib as mpl from matplotlib import pyplot as plt import f...
32.486014
103
0.633839
1,212
9,291
4.741749
0.279703
0.029233
0.016704
0.02088
0.095876
0.052375
0.037237
0.026449
0.026449
0.026449
0
0.008295
0.260359
9,291
285
104
32.6
0.827998
0.423313
0
0
0
0
0.079
0.005756
0
0
0
0
0.046875
1
0.03125
false
0
0.070313
0
0.117188
0.007813
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b405ca5c19bd60bffd27ebed33907aa4cbf83da9
2,055
py
Python
pyesasky/jupyter_server.py
pierfra-ro/pyesasky
a9342efcaa5cca088ed9a5afa2c98d3e9aa4bd0f
[ "BSD-3-Clause" ]
13
2019-05-30T19:57:37.000Z
2021-09-10T09:43:49.000Z
pyesasky/jupyter_server.py
pierfra-ro/pyesasky
a9342efcaa5cca088ed9a5afa2c98d3e9aa4bd0f
[ "BSD-3-Clause" ]
21
2019-06-21T18:55:25.000Z
2022-02-27T14:48:13.000Z
pyesasky/jupyter_server.py
pierfra-ro/pyesasky
a9342efcaa5cca088ed9a5afa2c98d3e9aa4bd0f
[ "BSD-3-Clause" ]
8
2019-05-30T12:20:48.000Z
2022-03-04T04:01:20.000Z
import os import json from hashlib import md5 from tornado import web from notebook.utils import url_path_join from notebook.base.handlers import IPythonHandler __all__ = ['load_jupyter_server_extension'] STATIC_DIR = os.path.join(os.path.dirname(__file__), 'nbextension', 'static'); CONFIG = os.path.expanduser('~/.py...
27.77027
79
0.620925
269
2,055
4.609665
0.33829
0.053226
0.03871
0.026613
0.268548
0.227419
0.108065
0.108065
0.108065
0.108065
0
0.006579
0.260341
2,055
73
80
28.150685
0.809211
0.078832
0
0.304348
0
0
0.076801
0.01536
0
0
0
0
0
1
0.065217
false
0
0.130435
0
0.23913
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
b407548d1539781a310dd11a278698c4338d7000
13,006
py
Python
xarray/backends/npy_io.py
martinResearch/xarray
e921d1bfa4785b10310f8b5d46a1efacba7e1cc9
[ "Apache-2.0" ]
null
null
null
xarray/backends/npy_io.py
martinResearch/xarray
e921d1bfa4785b10310f8b5d46a1efacba7e1cc9
[ "Apache-2.0" ]
null
null
null
xarray/backends/npy_io.py
martinResearch/xarray
e921d1bfa4785b10310f8b5d46a1efacba7e1cc9
[ "Apache-2.0" ]
null
null
null
import numpy as np import xarray as xr import pandas as pd import sys import json import os import datetime from xarray.core.utils import ( decode_numpy_dict_values, either_dict_or_kwargs, ensure_us_time_resolution, ) from numpy.compat import ( asbytes, asstr, asunicode, bytes, basestring, os_fspath,...
39.531915
267
0.541827
1,608
13,006
4.221393
0.19403
0.017236
0.019446
0.024308
0.398792
0.383029
0.357101
0.326017
0.326017
0.316588
0
0.018621
0.33523
13,006
328
268
39.652439
0.766482
0.075581
0
0.414545
0
0
0.059553
0
0
0
0
0.003049
0.036364
1
0.054545
false
0
0.058182
0.010909
0.167273
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
b408eeeaec183c35458c8ea0619e1ec8dfb285b7
14,222
py
Python
applications/popart/bert/bert_data/squad_dataset.py
Alwaysproblem/examples-1
9754fa63ed1931489a21ac1f5b299f945e369a5c
[ "MIT" ]
null
null
null
applications/popart/bert/bert_data/squad_dataset.py
Alwaysproblem/examples-1
9754fa63ed1931489a21ac1f5b299f945e369a5c
[ "MIT" ]
null
null
null
applications/popart/bert/bert_data/squad_dataset.py
Alwaysproblem/examples-1
9754fa63ed1931489a21ac1f5b299f945e369a5c
[ "MIT" ]
null
null
null
# Copyright (c) 2019 Graphcore Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
36.84456
141
0.592181
1,599
14,222
5.014384
0.210757
0.045398
0.016463
0.009978
0.221003
0.185333
0.141681
0.097281
0.049638
0.049638
0
0.009854
0.33638
14,222
385
142
36.94026
0.839691
0.114822
0
0.255814
0
0
0.039222
0.009646
0
0
0
0.002597
0
1
0.046512
false
0
0.046512
0.006645
0.13289
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
b4091bea05e2b9f2e78f9f40870c9ac7e8a9cac3
15,755
py
Python
eval.py
dawnchen123/VS-Net
21aa8873e32351716302934887f6a08e7d568ea2
[ "Apache-2.0" ]
55
2021-04-17T08:15:06.000Z
2022-03-30T02:38:27.000Z
eval.py
dawnchen123/VS-Net
21aa8873e32351716302934887f6a08e7d568ea2
[ "Apache-2.0" ]
3
2021-05-30T03:29:01.000Z
2022-03-03T00:47:33.000Z
eval.py
dawnchen123/VS-Net
21aa8873e32351716302934887f6a08e7d568ea2
[ "Apache-2.0" ]
11
2021-07-01T15:15:23.000Z
2022-02-12T06:47:26.000Z
import os import cv2 import time import json import random import inspect import argparse import numpy as np from tqdm import tqdm from dataloaders import make_data_loader from models.sync_batchnorm.replicate import patch_replication_callback from models.vs_net import * from utils.loss import loss_dict from utils.lr_s...
45.403458
124
0.548588
1,719
15,755
4.77836
0.186155
0.017896
0.020453
0.029218
0.187728
0.136109
0.119795
0.060872
0.034819
0.034819
0
0.014318
0.335068
15,755
346
125
45.534682
0.769759
0.025325
0
0.070423
0
0
0.124535
0.013432
0
0
0.000782
0
0.003521
1
0.010563
false
0
0.077465
0
0.091549
0.052817
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b40a24b1b84590432a339ee0e8fac4f84e897ac1
2,692
py
Python
data/__init__.py
Joaomlg/multilayer-perceptron-mnist
0454c4970c3a06a37ac7c20787a1bdf1cda7da0f
[ "MIT" ]
13
2021-05-15T04:22:04.000Z
2022-03-29T10:55:32.000Z
data/__init__.py
Joaomlg/multilayer-perceptron-mnist
0454c4970c3a06a37ac7c20787a1bdf1cda7da0f
[ "MIT" ]
null
null
null
data/__init__.py
Joaomlg/multilayer-perceptron-mnist
0454c4970c3a06a37ac7c20787a1bdf1cda7da0f
[ "MIT" ]
4
2021-05-18T07:48:52.000Z
2021-07-10T10:11:41.000Z
import numpy as np import gzip import pickle import os import urllib.request class MNIST: host = 'http://yann.lecun.com/exdb/mnist/' filenames = { 'train': ('train-images-idx3-ubyte.gz', 'train-labels-idx1-ubyte.gz'), 'test': ('t10k-images-idx3-ubyte.gz', 't10k-labels-idx1-ubyte.gz'), } dataset_filen...
32.829268
110
0.686478
374
2,692
4.796791
0.275401
0.036789
0.070234
0.06243
0.280379
0.280379
0.280379
0.225753
0.200111
0.149387
0
0.014966
0.180906
2,692
81
111
33.234568
0.798639
0
0
0.033898
0
0.016949
0.140045
0.03789
0
0
0
0
0
1
0.135593
false
0
0.084746
0.050847
0.40678
0.084746
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b40bc88be7d9975ca6ad22574a73918dc37e3371
11,368
py
Python
push_exp/main_CrouchSimulationForCOT.py
snumrl/DeepPushRecovery
dceb7f3114d4314cf3be875f43723255819e12a3
[ "Apache-2.0" ]
null
null
null
push_exp/main_CrouchSimulationForCOT.py
snumrl/DeepPushRecovery
dceb7f3114d4314cf3be875f43723255819e12a3
[ "Apache-2.0" ]
null
null
null
push_exp/main_CrouchSimulationForCOT.py
snumrl/DeepPushRecovery
dceb7f3114d4314cf3be875f43723255819e12a3
[ "Apache-2.0" ]
1
2021-07-26T15:08:58.000Z
2021-07-26T15:08:58.000Z
import os import numpy as np import time import multiprocessing as mp import csv import socket import datetime import math import glob from pypushexp import PushSim # # input - [recorded item] # [weight] : 48 # [height] : 160 # [crouch_angle] (deg) # [step_length_ratio] # [halfcycle_duration_rati...
34.344411
139
0.598522
1,382
11,368
4.603473
0.193922
0.03458
0.028293
0.037724
0.283401
0.240962
0.17856
0.149638
0.130462
0.100597
0
0.048716
0.228976
11,368
330
140
34.448485
0.677125
0.283515
0
0.116022
0
0
0.069608
0.009695
0
0
0
0
0
1
0.033149
false
0.005525
0.066298
0.005525
0.110497
0.19337
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b40e2538e7eca239f3b41df3368718122f54c302
10,744
py
Python
gorilla/config/_config.py
sunjiahao1999/gorilla-core
bf43e3a49c7f79834ae969db38edd50f17ef5288
[ "MIT" ]
4
2021-07-28T04:50:26.000Z
2021-09-23T12:59:01.000Z
gorilla/config/_config.py
sunjiahao1999/gorilla-core
bf43e3a49c7f79834ae969db38edd50f17ef5288
[ "MIT" ]
null
null
null
gorilla/config/_config.py
sunjiahao1999/gorilla-core
bf43e3a49c7f79834ae969db38edd50f17ef5288
[ "MIT" ]
2
2021-08-05T04:01:12.000Z
2021-12-25T02:17:03.000Z
# Copyright (c) Open-MMLab. All rights reserved. import os import json import tempfile import warnings from typing import Optional from argparse import Namespace from addict import Dict from ..utils import check_file BASE_KEY = "_base_" RESERVED_KEYS = ["filename", "text"] class ConfigDict(Dict): r"""ConfigDic...
34.770227
112
0.560964
1,346
10,744
4.273403
0.19688
0.065716
0.021036
0.011474
0.133693
0.107093
0.072323
0.050765
0.037552
0.025035
0
0.005157
0.332185
10,744
308
113
34.883117
0.796516
0.278295
0
0.128342
0
0
0.096463
0.003715
0
0
0
0
0.016043
1
0.101604
false
0
0.053476
0.032086
0.245989
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
b40e4f7e84bc53160bafd291d5c8ea6b4b1f43bd
2,643
py
Python
Kaspa/modules/extension_modules/spotify_module/spotifyModuleEn.py
karim-awad/kaspa
701d935dd215bfd9a4810a4430973b33fecec257
[ "MIT" ]
null
null
null
Kaspa/modules/extension_modules/spotify_module/spotifyModuleEn.py
karim-awad/kaspa
701d935dd215bfd9a4810a4430973b33fecec257
[ "MIT" ]
null
null
null
Kaspa/modules/extension_modules/spotify_module/spotifyModuleEn.py
karim-awad/kaspa
701d935dd215bfd9a4810a4430973b33fecec257
[ "MIT" ]
null
null
null
from Kaspa.modules.abstract_modules.abstractSubmodule import AbstractSubmodule from Kaspa.modules.exceptions.impossibleActionError import ImpossibleActionError from Kaspa.config import Config class SpotifyModuleEn(AbstractSubmodule): module_name = "Spotify" language = "en" key_regexes = dict() def ...
36.205479
99
0.596292
277
2,643
5.512635
0.310469
0.047151
0.082515
0.085134
0.258022
0.24165
0.108055
0.108055
0.108055
0
0
0.001584
0.28339
2,643
72
100
36.708333
0.804646
0.029512
0
0.245614
0
0
0.130706
0.025751
0
0
0
0
0
1
0.105263
false
0.017544
0.052632
0
0.350877
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
b40e9592fe62c2017e79612d2b201dbc82a4fb4e
2,768
py
Python
screenshot-server/app/main.py
martindines/ScreenshotServer
21d1529157f4625cd26196000c4a30342ab4d713
[ "MIT" ]
1
2019-12-31T18:43:08.000Z
2019-12-31T18:43:08.000Z
screenshot-server/app/main.py
martindines/ScreenshotServer
21d1529157f4625cd26196000c4a30342ab4d713
[ "MIT" ]
1
2019-12-31T19:35:24.000Z
2019-12-31T19:35:24.000Z
screenshot-server/app/main.py
martindines/ScreenshotServer
21d1529157f4625cd26196000c4a30342ab4d713
[ "MIT" ]
null
null
null
import os import sys import pathlib from utilities import get_random_hash from flask import Flask, flash, request, redirect, url_for, send_from_directory, jsonify, Response UPLOAD_FOLDER = os.environ.get('UPLOAD_FOLDER') if os.environ.get('UPLOAD_FOLDER') else '/tmp' ALLOWED_EXTENSIONS = {'txt', 'pdf', 'png', 'jpg', '...
24.936937
98
0.610549
321
2,768
5.096573
0.28972
0.055623
0.085575
0.076406
0.207213
0.119193
0.119193
0
0
0
0
0.000504
0.283237
2,768
110
99
25.163636
0.824093
0.044798
0
0.256098
0
0
0.095112
0
0
0
0
0
0
1
0.097561
false
0
0.060976
0.02439
0.353659
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
b410813c6c4297c46c6ca2597443a122ba6dda59
4,308
py
Python
test/unit/tools/test_basisconstructors.py
colibri-coruscans/pyGSTi
da54f4abf668a28476030528f81afa46a1fbba33
[ "Apache-2.0" ]
73
2016-01-28T05:02:05.000Z
2022-03-30T07:46:33.000Z
test/unit/tools/test_basisconstructors.py
colibri-coruscans/pyGSTi
da54f4abf668a28476030528f81afa46a1fbba33
[ "Apache-2.0" ]
113
2016-02-25T15:32:18.000Z
2022-03-31T13:18:13.000Z
test/unit/tools/test_basisconstructors.py
colibri-coruscans/pyGSTi
da54f4abf668a28476030528f81afa46a1fbba33
[ "Apache-2.0" ]
41
2016-03-15T19:32:07.000Z
2022-02-16T10:22:05.000Z
import numpy as np import pygsti.baseobjs.basisconstructors as bc from ..util import BaseCase class BasisConstructorsTester(BaseCase): def test_GellMann(self): id2x2 = np.array([[1, 0], [0, 1]]) sigmax = np.array([[0, 1], [1, 0]]) sigmay = np.array([[0, -1.0j], [1.0j, 0]]) sigmaz ...
40.261682
109
0.597957
597
4,308
4.226131
0.236181
0.160523
0.042806
0.052319
0.390805
0.309948
0.301229
0.252477
0.252477
0.252477
0
0.038841
0.270891
4,308
106
110
40.641509
0.764406
0.129294
0
0.164557
0
0
0.018484
0
0
0
0
0.009434
0.329114
1
0.075949
false
0
0.037975
0
0.126582
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
b415f8911ff14da18af621c103440493a6703472
1,281
py
Python
Practical/Easy/HSV color wheel/colorwheel.py
saintwithataint/Pro-g-rammingChallenges4
3f720a375b89ee289237819c2dc89226634b7a5b
[ "Apache-2.0" ]
1
2022-03-16T16:47:22.000Z
2022-03-16T16:47:22.000Z
Practical/Easy/HSV color wheel/colorwheel.py
saintwithataint/Pro-g-rammingChallenges4
3f720a375b89ee289237819c2dc89226634b7a5b
[ "Apache-2.0" ]
null
null
null
Practical/Easy/HSV color wheel/colorwheel.py
saintwithataint/Pro-g-rammingChallenges4
3f720a375b89ee289237819c2dc89226634b7a5b
[ "Apache-2.0" ]
2
2022-02-02T18:02:03.000Z
2022-03-16T16:47:34.000Z
import colour import matplotlib.pyplot as plt import numpy as np COLOUR_STYLE = colour.plotting.colour_style() COLOUR_STYLE.update( { "figure.figsize": (11, 11), "legend.framealpha": colour.plotting.COLOUR_STYLE_CONSTANTS.opacity.low, } ) plt.style.use(COLOUR_STYLE) plt.style.use("dark_backgrou...
26.6875
80
0.640125
185
1,281
4.335135
0.389189
0.149626
0.067332
0.089776
0.158354
0.077307
0.077307
0
0
0
0
0.02544
0.202186
1,281
47
81
27.255319
0.759296
0
0
0.055556
0
0
0.065574
0
0
0
0
0
0
1
0.027778
false
0
0.083333
0
0.138889
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
b4162ac39dacfccdd55b041dd156a4ebc43907ba
40,090
py
Python
kojen/smgen.py
kohjaen/kojen
e61855e48617e691d1fa0ddac4fdabac6b6a1eff
[ "MIT" ]
3
2020-07-12T08:17:42.000Z
2022-02-11T15:44:49.000Z
kojen/smgen.py
kohjaen/kojen
e61855e48617e691d1fa0ddac4fdabac6b6a1eff
[ "MIT" ]
null
null
null
kojen/smgen.py
kohjaen/kojen
e61855e48617e691d1fa0ddac4fdabac6b6a1eff
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'eugene' ''' MIT License Copyright (c) 2015 Eugene Grobbelaar (email : koh.jaen@yahoo.de) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to d...
50.301129
200
0.60464
4,375
40,090
5.092571
0.125486
0.009874
0.019255
0.019075
0.526077
0.453232
0.401436
0.362074
0.308348
0.287208
0
0.005151
0.288102
40,090
796
201
50.364322
0.775508
0.091145
0
0.328794
0
0
0.074303
0.024747
0
0
0
0.001256
0
1
0.044747
false
0
0.023346
0.003891
0.122568
0.013619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b419bda7c8455defc3ecb61092c5f3412e12801a
1,744
py
Python
roku/discovery.py
metagrapher/python-roku
0cd209ec94531e7c4c29ca7f6a41a6199374c206
[ "BSD-3-Clause" ]
null
null
null
roku/discovery.py
metagrapher/python-roku
0cd209ec94531e7c4c29ca7f6a41a6199374c206
[ "BSD-3-Clause" ]
null
null
null
roku/discovery.py
metagrapher/python-roku
0cd209ec94531e7c4c29ca7f6a41a6199374c206
[ "BSD-3-Clause" ]
null
null
null
""" Code adapted from Dan Krause. https://gist.github.com/dankrause/6000248 http://github.com/dankrause """ import socket from http.client import HTTPResponse from io import BytesIO ST_DIAL = 'urn:dial-multiscreen-org:service:dial:1' ST_ECP = 'roku:ecp' class _FakeSocket(BytesIO): def makefile(self, *args, **kw)...
26.830769
79
0.598624
204
1,744
4.990196
0.5
0.066798
0.035363
0
0
0
0
0
0
0
0
0.032407
0.256881
1,744
64
80
27.25
0.753086
0.056766
0
0
0
0
0.119731
0.039096
0
0
0
0
0
1
0.095238
false
0
0.071429
0.047619
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
b41db3bb0788a43b8d82ec7b22eb82e644666c44
2,141
py
Python
Softmax.py
tranbamanh229289/Machine-and-Data-mining-
b43a3815b74365e6e5b05b49bb92f3db4606ffca
[ "Apache-2.0" ]
null
null
null
Softmax.py
tranbamanh229289/Machine-and-Data-mining-
b43a3815b74365e6e5b05b49bb92f3db4606ffca
[ "Apache-2.0" ]
null
null
null
Softmax.py
tranbamanh229289/Machine-and-Data-mining-
b43a3815b74365e6e5b05b49bb92f3db4606ffca
[ "Apache-2.0" ]
null
null
null
import Common import pandas as pd import numpy as np import matplotlib.pyplot as plt RATIO = 0.8 EPOCHS = 500 LEARN_RATE = 0.01 INDENTIFICATION_RATE = 0.6 # Read training data X_train, Y_train, X_test, Y_test,scale_train,scale_test = Common.process(RATIO) def preprocessing (X_train,Y_train ,X_test ,Y_test): X_tra...
29.328767
80
0.652032
379
2,141
3.511873
0.23219
0.052592
0.036063
0.060105
0.261458
0.220887
0.192337
0.150263
0.121713
0.08565
0
0.025862
0.187296
2,141
72
81
29.736111
0.73908
0.014946
0
0.035088
0
0
0.014245
0
0
0
0
0
0
1
0.105263
false
0
0.070175
0
0.263158
0.035088
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b41f08666a2d2b54abb8df40e1f44d9b70d9644a
7,784
py
Python
demo/trace_model.py
furkankirac/maskrcnn-benchmark
a348dc36600e577c3ba569320f3a6a8e15986f72
[ "MIT" ]
null
null
null
demo/trace_model.py
furkankirac/maskrcnn-benchmark
a348dc36600e577c3ba569320f3a6a8e15986f72
[ "MIT" ]
null
null
null
demo/trace_model.py
furkankirac/maskrcnn-benchmark
a348dc36600e577c3ba569320f3a6a8e15986f72
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from __future__ import division import os import numpy from io import BytesIO from matplotlib import pyplot import requests import torch from PIL import Image from maskrcnn_benchmark.config import cfg from predictor import COCODemo from maskrcnn...
41.185185
163
0.654034
1,128
7,784
4.338652
0.254433
0.017981
0.015938
0.025746
0.311402
0.235799
0.190029
0.174499
0.147936
0.090723
0
0.04002
0.213515
7,784
188
164
41.404255
0.759392
0.16277
0
0.160305
0
0
0.037893
0.00801
0
0
0
0.005319
0.015267
1
0.053435
false
0
0.083969
0
0.19084
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
b425096bf56f11b8a01b6bd3c09874f67758b609
5,767
py
Python
FictionTools/amitools/amitools/binfmt/elf/BinFmtELF.py
polluks/Puddle-BuildTools
c1762d53a33002b62d8cffe3db129505a387bec3
[ "BSD-2-Clause" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
FictionTools/amitools/amitools/binfmt/elf/BinFmtELF.py
polluks/Puddle-BuildTools
c1762d53a33002b62d8cffe3db129505a387bec3
[ "BSD-2-Clause" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
FictionTools/amitools/amitools/binfmt/elf/BinFmtELF.py
polluks/Puddle-BuildTools
c1762d53a33002b62d8cffe3db129505a387bec3
[ "BSD-2-Clause" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
from amitools.binfmt.BinImage import * from .ELFFile import * from .ELF import * from .ELFReader import ELFReader from .DwarfDebugLine import DwarfDebugLine class BinFmtELF: """Handle Amiga m68k binaries in ELF format (usually from AROS)""" def is_image(self, path): """check if a given file is a supp...
31.686813
85
0.521415
717
5,767
3.97629
0.23152
0.022799
0.031568
0.025254
0.112241
0.042792
0.042792
0.042792
0.023851
0
0
0.004339
0.400555
5,767
181
86
31.861878
0.820364
0.128143
0
0.085938
0
0
0.009445
0
0
0
0
0
0
1
0.0625
false
0
0.046875
0
0.179688
0.023438
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b425e1b4a3766b7202ee32581542acc01753bfbd
11,532
py
Python
recordtransform.py
Andresfgomez970/Managing-.wav-files-in-python
2bf344a3217efe9dc15349ef4be14f2e5cb53ace
[ "MIT" ]
null
null
null
recordtransform.py
Andresfgomez970/Managing-.wav-files-in-python
2bf344a3217efe9dc15349ef4be14f2e5cb53ace
[ "MIT" ]
null
null
null
recordtransform.py
Andresfgomez970/Managing-.wav-files-in-python
2bf344a3217efe9dc15349ef4be14f2e5cb53ace
[ "MIT" ]
null
null
null
import pyaudio import wave import matplotlib.pyplot as plt import numpy as np import matplotlib.pylab as plt from scipy.io import wavfile import cmath as cm from scipy.fftpack import fft from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter fro...
31.508197
129
0.644034
1,703
11,532
4.300646
0.177921
0.0639
0.03823
0.036046
0.507646
0.493446
0.466958
0.435145
0.417122
0.408656
0
0.035542
0.209504
11,532
365
130
31.594521
0.767881
0.119667
0
0.4
0
0.003846
0.085289
0.006591
0
0
0
0
0
1
0.046154
false
0
0.05
0
0.111538
0.023077
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b4266c4983e7f09a613d7773116f8f267c2d1a3a
2,994
py
Python
AllSidesScraper/allsides.py
Epicrider/polibalance
88a0adf54d09baeac3dcad36ce119640d6aa990b
[ "MIT" ]
null
null
null
AllSidesScraper/allsides.py
Epicrider/polibalance
88a0adf54d09baeac3dcad36ce119640d6aa990b
[ "MIT" ]
null
null
null
AllSidesScraper/allsides.py
Epicrider/polibalance
88a0adf54d09baeac3dcad36ce119640d6aa990b
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests from communityFeedback import * from time import sleep from rich.progress import track import json page = [ 'https://www.allsides.com/media-bias/media-bias-ratings', ] def table(full_table): # The main table print('Web scraper is parsing the table!') for...
32.193548
94
0.59352
380
2,994
4.531579
0.357895
0.073171
0.052265
0.033101
0.2741
0.148664
0.148664
0.148664
0.148664
0.148664
0
0.005048
0.272211
2,994
92
95
32.543478
0.785223
0.115564
0
0.246154
0
0
0.189302
0.011002
0
0
0
0
0
1
0.061538
false
0.046154
0.092308
0
0.184615
0.030769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b42826894cb5a72b4000d0d8ef3a13b2f541b2b5
3,271
py
Python
aot/meta_triggers/metatrigger_treasure.py
jaycheungchunman/age-of-triggers
f2a75685a0b0cc9e26132d4f52b6ed2c4798f6b4
[ "MIT" ]
null
null
null
aot/meta_triggers/metatrigger_treasure.py
jaycheungchunman/age-of-triggers
f2a75685a0b0cc9e26132d4f52b6ed2c4798f6b4
[ "MIT" ]
null
null
null
aot/meta_triggers/metatrigger_treasure.py
jaycheungchunman/age-of-triggers
f2a75685a0b0cc9e26132d4f52b6ed2c4798f6b4
[ "MIT" ]
null
null
null
from aot import * from aot.model.trigger import * from aot.model.condition import * from aot.model.effect import * from aot.meta_triggers.metatrigger import MetaTrigger from aot.model.enums.resource import EnumResource from aot.model.enums.player import PlayerEnum from aot.model.enums.unit import UnitConstant, UnitType...
45.430556
101
0.551819
390
3,271
4.451282
0.207692
0.067396
0.09735
0.02765
0.40265
0.375576
0.345622
0.330069
0.330069
0.330069
0
0.016408
0.329257
3,271
71
102
46.070423
0.77484
0
0
0.262295
0
0
0.029655
0.01284
0
0
0
0
0
1
0.081967
false
0
0.131148
0
0.278689
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
b4283b91c4a94a15dbf38eab20ef16e0e0641f20
2,625
py
Python
agent/lm_agent/server_interfaces/lsdyna.py
omnivector-solutions/license-manager
9eb1e4569d692aef83a2388096e7413bc010be61
[ "MIT" ]
2
2020-11-15T22:54:39.000Z
2022-02-15T07:58:55.000Z
agent/lm_agent/server_interfaces/lsdyna.py
omnivector-solutions/license-manager
9eb1e4569d692aef83a2388096e7413bc010be61
[ "MIT" ]
2
2022-02-18T19:36:45.000Z
2022-03-16T23:07:44.000Z
agent/lm_agent/server_interfaces/lsdyna.py
omnivector-solutions/license-manager
9eb1e4569d692aef83a2388096e7413bc010be61
[ "MIT" ]
null
null
null
"""LS-Dyna license server interface.""" import typing from lm_agent.config import settings from lm_agent.exceptions import LicenseManagerBadServerOutput from lm_agent.parsing import lsdyna from lm_agent.server_interfaces.license_server_interface import LicenseReportItem, LicenseServerInterface from lm_agent.server_int...
38.602941
105
0.694476
326
2,625
5.383436
0.315951
0.066667
0.031339
0.043305
0.05698
0
0
0
0
0
0
0.000497
0.232762
2,625
67
106
39.179104
0.870904
0.184762
0
0
0
0
0.067762
0.011294
0
0
0
0
0
1
0.051282
false
0
0.153846
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b428942d04da784eb0b105b8727b2b0340163593
2,634
py
Python
examples/gan/gan_embeddings.py
ojmakhura/DIGITS
f34e62c245054b51ea51fcb8949d2ca777f162d1
[ "BSD-3-Clause" ]
null
null
null
examples/gan/gan_embeddings.py
ojmakhura/DIGITS
f34e62c245054b51ea51fcb8949d2ca777f162d1
[ "BSD-3-Clause" ]
null
null
null
examples/gan/gan_embeddings.py
ojmakhura/DIGITS
f34e62c245054b51ea51fcb8949d2ca777f162d1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. import argparse import os import pickle import shutil import numpy as np import PIL.Image import tensorflow as tf from tensorflow.contrib.tensorboard.plugins import projector TB_DIR = os.path.join(os.getcwd(), "gan-tb") SPRITE_IMA...
29.595506
88
0.678056
345
2,634
4.93913
0.388406
0.02054
0.025822
0.02993
0.017606
0
0
0
0
0
0
0.004363
0.216781
2,634
88
89
29.931818
0.821619
0.085042
0
0
0
0
0.056203
0
0
0
0
0
0
1
0.033333
false
0
0.133333
0
0.183333
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b42bc72a01713bbb619aec869a9dad62431b9ce2
4,613
py
Python
pyxtal/miscellaneous/from_ase_molecule.py
ubikpt/PyXtal
32da046a2bde542279824d6377aea116b679a2e7
[ "MIT" ]
127
2018-09-21T22:27:17.000Z
2022-03-30T21:11:49.000Z
pyxtal/miscellaneous/from_ase_molecule.py
ubikpt/PyXtal
32da046a2bde542279824d6377aea116b679a2e7
[ "MIT" ]
171
2018-08-06T07:10:24.000Z
2022-03-29T00:59:53.000Z
pyxtal/miscellaneous/from_ase_molecule.py
ubikpt/PyXtal
32da046a2bde542279824d6377aea116b679a2e7
[ "MIT" ]
50
2018-08-12T22:50:46.000Z
2022-03-23T07:52:47.000Z
from pyxtal.molecule import * from ase.build import molecule from pymatgen.core import Molecule def get_ase_mol(molname): """convert ase molecule to pymatgen style""" ase_mol = molecule(molname) pos = ase_mol.get_positions() symbols = ase_mol.get_chemical_symbols() return Molecule(symbols, pos) ...
36.904
82
0.506829
502
4,613
4.557769
0.239044
0.021416
0.061189
0.085664
0.633741
0.620192
0.553759
0.553759
0.510052
0.510052
0
0.015939
0.374377
4,613
124
83
37.201613
0.776854
0.122697
0
0.617021
0
0
0.099826
0
0
0
0
0
0
1
0.010638
false
0
0.031915
0
0.053191
0.095745
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b42d69d014401c8b0ab94e331591c7f7f7c7c313
2,650
py
Python
my_project/evolution_forces.py
Abhigyan-Mishra/Quantum-Animation
675ac367461f6f2b3e0cee3a99db9e1541567e7a
[ "MIT" ]
null
null
null
my_project/evolution_forces.py
Abhigyan-Mishra/Quantum-Animation
675ac367461f6f2b3e0cee3a99db9e1541567e7a
[ "MIT" ]
null
null
null
my_project/evolution_forces.py
Abhigyan-Mishra/Quantum-Animation
675ac367461f6f2b3e0cee3a99db9e1541567e7a
[ "MIT" ]
null
null
null
from manimlib.imports import * """ TODO: [ ] fix arrow head size auto scale according to size? have a default size, but, if the arrow size is too short, then shrink the head [ ] slide the point according to the gradient """ class ParaboloidPlot(SpecialThreeDScene): CONFIG = { "three_d_axes_config": { "num_...
24.311927
80
0.669057
404
2,650
4.183168
0.324257
0.047337
0.044379
0.04497
0.125444
0.119527
0.119527
0
0
0
0
0.033718
0.183019
2,650
108
81
24.537037
0.746882
0.09283
0
0.102564
0
0
0.145463
0.036024
0
0
0
0.009259
0
1
0.064103
false
0
0.012821
0
0.102564
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
b42dd19edf20cbabd2658c3670786d63ec526613
13,056
py
Python
tests/python/tensor_graph/test/test_internal/performance/build_time_resnet.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
22
2022-03-18T07:29:31.000Z
2022-03-23T14:54:32.000Z
tests/python/tensor_graph/test/test_internal/performance/build_time_resnet.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
null
null
null
tests/python/tensor_graph/test/test_internal/performance/build_time_resnet.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
2
2022-03-18T08:26:34.000Z
2022-03-20T06:02:48.000Z
import tvm import sys import time import numpy as np from tvm.tensor_graph.testing.models import resnet from tvm.tensor_graph.core import ForwardGraph, BackwardGraph, compute, \ GraphTensor, GraphOp, PyTIRGraph from tvm.tensor_graph.nn import CELoss, SGD from tvm.tensor_graph.core.schedul...
32.157635
137
0.644455
1,745
13,056
4.624069
0.140401
0.027761
0.017722
0.024538
0.444913
0.411575
0.399058
0.373528
0.36981
0.36981
0
0.015096
0.203431
13,056
406
138
32.157635
0.760769
0.203661
0
0.317797
0
0
0.09936
0.043567
0
0
0
0
0.004237
1
0.012712
false
0
0.063559
0
0.076271
0.169492
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b42f2c192af4e02268e2e461bdd471fe5bb67342
2,300
py
Python
Python3/src/basicExample.py
emanuelen5/XPlaneConnect
0d462ac306bc802a3b269227d3b98d2507abcd40
[ "Unlicense" ]
457
2015-01-02T14:21:11.000Z
2022-03-27T02:56:47.000Z
Python3/src/basicExample.py
fseconomy/XPlaneConnect
11a5f350bd6888873d293bf3c9f59b0fba1331c1
[ "Unlicense" ]
211
2015-03-24T16:41:33.000Z
2022-03-27T18:36:11.000Z
Python3/src/basicExample.py
fseconomy/XPlaneConnect
11a5f350bd6888873d293bf3c9f59b0fba1331c1
[ "Unlicense" ]
258
2015-01-01T17:02:27.000Z
2022-03-31T19:36:03.000Z
from time import sleep import xpc def ex(): print("X-Plane Connect example script") print("Setting up simulation") with xpc.XPlaneConnect() as client: # Verify connection try: # If X-Plane does not respond to the request, a timeout error # will be raised. ...
31.944444
81
0.541304
282
2,300
4.358156
0.460993
0.017901
0.058584
0.04882
0.127746
0.095199
0.063466
0.063466
0.063466
0.063466
0
0.084621
0.352609
2,300
72
82
31.944444
0.740766
0.242609
0
0
0
0
0.20081
0.022569
0
0
0
0
0
1
0.021739
false
0
0.043478
0
0.086957
0.304348
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b42fa4f8536cb94842b8b435241c9e24e5dca076
27,419
py
Python
venv/lib/python3.6/site-packages/pelican/readers.py
RyanHelgoth/CMPUT404-Lab5
82424bf5a9b80ff186bd69d224457c8b70a3bdf3
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.6/site-packages/pelican/readers.py
RyanHelgoth/CMPUT404-Lab5
82424bf5a9b80ff186bd69d224457c8b70a3bdf3
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.6/site-packages/pelican/readers.py
RyanHelgoth/CMPUT404-Lab5
82424bf5a9b80ff186bd69d224457c8b70a3bdf3
[ "Apache-2.0" ]
null
null
null
import datetime import logging import os import re from collections import OrderedDict from html import escape from html.parser import HTMLParser from io import StringIO import docutils import docutils.core import docutils.io from docutils.parsers.rst.languages import get_language as get_docutils_lang from docutils.wr...
36.607477
79
0.581276
3,053
27,419
5.050442
0.171962
0.019457
0.010896
0.006356
0.18354
0.123225
0.087749
0.052468
0.041896
0.027109
0
0.002463
0.318721
27,419
748
80
36.656417
0.822966
0.171305
0
0.186408
0
0
0.095391
0.005006
0
0
0
0
0
1
0.081553
false
0.003884
0.042718
0.005825
0.213592
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
b4314fe64ec815899c36c9b326b930ecd497d54b
4,017
py
Python
xmuda/models/CP_v5.py
anhquancao/xmuda-extend
4b670ec2f6766e3a624e81dbe5d97b209c1c4f76
[ "Apache-2.0" ]
null
null
null
xmuda/models/CP_v5.py
anhquancao/xmuda-extend
4b670ec2f6766e3a624e81dbe5d97b209c1c4f76
[ "Apache-2.0" ]
null
null
null
xmuda/models/CP_v5.py
anhquancao/xmuda-extend
4b670ec2f6766e3a624e81dbe5d97b209c1c4f76
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from xmuda.models.DDR import Bottleneck3D from xmuda.models.LMSCNet import SegmentationHead, ASPP import numpy as np from xmuda.models.modules import Process, Upsample, Downsample import math from xmuda.data.utils.preprocess import create_voxel_position...
40.17
134
0.638536
566
4,017
4.298587
0.206714
0.075627
0.064118
0.039046
0.235923
0.193999
0.157008
0.115906
0.081381
0.081381
0
0.047009
0.242718
4,017
99
135
40.575758
0.752794
0.054767
0
0
0
0
0.005291
0
0
0
0
0
0
1
0.053333
false
0
0.12
0
0.226667
0.013333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b432caf11213235d03484242de9f5514f01637df
10,511
py
Python
gala/potential/potential/tests/helpers.py
ltlancas/gala
2621bb599d67e74a85446abf72d5930ef70ca181
[ "MIT" ]
1
2021-10-14T03:36:15.000Z
2021-10-14T03:36:15.000Z
gala/potential/potential/tests/helpers.py
ltlancas/gala
2621bb599d67e74a85446abf72d5930ef70ca181
[ "MIT" ]
null
null
null
gala/potential/potential/tests/helpers.py
ltlancas/gala
2621bb599d67e74a85446abf72d5930ef70ca181
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import division, print_function # Standard library import time # Third-party import matplotlib.pyplot as plt import numpy as np from scipy.misc import derivative from astropy.extern.six.moves import cPickle as pickle import pytest # Project from ..io import load from ..core import C...
38.785978
113
0.560936
1,399
10,511
4.117941
0.178699
0.139906
0.047735
0.041659
0.489672
0.457386
0.415032
0.386044
0.3272
0.293873
0
0.027514
0.298069
10,511
270
114
38.92963
0.753321
0.067358
0
0.196891
0
0
0.027595
0
0
0
0
0.003704
0.098446
1
0.098446
false
0.010363
0.062176
0
0.212435
0.015544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b4343b1a76985ec5d57d6a76843b7a4f2ed671b3
9,677
py
Python
main.py
ailzy/Reinforcement-learning-in-portfolio-management-
6d850bf52637482636ed8336480343e0e4cef1bd
[ "MIT" ]
null
null
null
main.py
ailzy/Reinforcement-learning-in-portfolio-management-
6d850bf52637482636ed8336480343e0e4cef1bd
[ "MIT" ]
null
null
null
main.py
ailzy/Reinforcement-learning-in-portfolio-management-
6d850bf52637482636ed8336480343e0e4cef1bd
[ "MIT" ]
1
2019-05-13T00:54:08.000Z
2019-05-13T00:54:08.000Z
# -*- coding: utf-8 -*- from argparse import ArgumentParser import json import time import pandas as pd import tensorflow as tf import numpy as np import math from decimal import Decimal import matplotlib.pyplot as plt from agents.ornstein_uhlenbeck import OrnsteinUhlenbeckActionNoise eps=10e-8 epochs=0...
36.516981
190
0.602563
1,210
9,677
4.65124
0.177686
0.020789
0.015991
0.007996
0.280384
0.261549
0.238984
0.233298
0.222637
0.222637
0
0.010395
0.244497
9,677
265
191
36.516981
0.759404
0.00217
0
0.171296
0
0
0.130338
0.024811
0
0
0
0
0
1
0.064815
false
0
0.083333
0.00463
0.171296
0.12037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b43620ea470685e6e28c7e7bc58a0b84c3272e13
7,365
py
Python
packages/structural_dhcp_mriqc/structural_dhcp_mriqc/utils/fs2gif.py
amakropoulos/structural-pipeline-measures
70e22f9ad94cc57e72e510576cfc3129da83f7fc
[ "Apache-2.0" ]
2
2017-09-11T15:25:14.000Z
2019-09-27T17:08:31.000Z
packages/structural_dhcp_mriqc/structural_dhcp_mriqc/utils/fs2gif.py
amakropoulos/structural-pipeline-measures
70e22f9ad94cc57e72e510576cfc3129da83f7fc
[ "Apache-2.0" ]
6
2019-08-22T06:29:45.000Z
2021-09-19T18:59:46.000Z
packages/structural_dhcp_mriqc/structural_dhcp_mriqc/utils/fs2gif.py
amakropoulos/structural-pipeline-measures
70e22f9ad94cc57e72e510576cfc3129da83f7fc
[ "Apache-2.0" ]
1
2018-02-12T14:38:33.000Z
2018-02-12T14:38:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: oesteban # @Date: 2016-03-16 11:28:27 # @Last Modified by: oesteban # @Last Modified time: 2016-04-04 13:50:50 """ Batch export freesurfer results to animated gifs """ from __future__ import absolute_import from __future__ import division from __future__ im...
39.810811
118
0.567549
955
7,365
4.223037
0.236649
0.069427
0.040912
0.025291
0.48723
0.467642
0.425738
0.397719
0.397719
0.369204
0
0.017905
0.287169
7,365
184
119
40.027174
0.750286
0.06463
0
0.305556
0
0
0.177645
0
0
0
0
0
0
1
0.006944
false
0.006944
0.118056
0
0.125
0.006944
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b4366804d5c82535ca7d92caff9e07608cd7136b
10,751
py
Python
DE_DataBase.py
almirjgomes/DE_DataBaseConnect
2a369d77498c4c6c42b7447871472e5c4320b2ff
[ "MIT" ]
null
null
null
DE_DataBase.py
almirjgomes/DE_DataBaseConnect
2a369d77498c4c6c42b7447871472e5c4320b2ff
[ "MIT" ]
null
null
null
DE_DataBase.py
almirjgomes/DE_DataBaseConnect
2a369d77498c4c6c42b7447871472e5c4320b2ff
[ "MIT" ]
null
null
null
import os import sqlite3 as sq3 import cx_Oracle as ora import pandas as pd import psycopg2 as ps2 import mysql.connector as mysql import sqlalchemy # Reponsabilidades desta classe: # Apenas se conectar a uma das bases de dados abaixo especificadas # Bases conhecidas: SQLITE, ORACLE, MYSQL, POSTGRES class DATABASE: ...
40.878327
167
0.474467
1,036
10,751
4.799228
0.190154
0.062751
0.035398
0.037611
0.565366
0.526348
0.470636
0.444489
0.428801
0.408085
0
0.002138
0.39094
10,751
262
168
41.034351
0.757178
0.138871
0
0.446809
0
0.005319
0.202346
0.045943
0
0
0
0
0
1
0.037234
false
0.047872
0.037234
0
0.111702
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
b4379f94d32e1eef87fdbc70ab371bde034c9874
1,735
py
Python
coretemp.py
InScene/dht22-mqtt-daemon
9a73715f4074f11222d1a6b263c12c897fadf0de
[ "MIT" ]
null
null
null
coretemp.py
InScene/dht22-mqtt-daemon
9a73715f4074f11222d1a6b263c12c897fadf0de
[ "MIT" ]
null
null
null
coretemp.py
InScene/dht22-mqtt-daemon
9a73715f4074f11222d1a6b263c12c897fadf0de
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import paho.mqtt.client as mqtt import time import Adafruit_DHT from configparser import ConfigParser import json config = ConfigParser(delimiters=('=', )) config.read('config.ini') sensor_type = config['sensor'].get('type', 'dht22').lower() if sensor_type == 'dht22': sensor = Adafruit_DH...
30.438596
79
0.688184
221
1,735
5.303167
0.438914
0.051195
0.044369
0
0
0
0
0
0
0
0
0.027529
0.162536
1,735
56
80
30.982143
0.779078
0.057061
0
0.04878
0
0
0.205018
0
0
0
0
0
0
1
0.02439
false
0.04878
0.121951
0
0.146341
0.073171
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b437d795dd924c40c4d023f3c55940133611431e
663
py
Python
mythril/support/support_utils.py
step21/mythril
d26a68e5473a57bd38091e1a5cad96a2b4e2c2ab
[ "MIT" ]
null
null
null
mythril/support/support_utils.py
step21/mythril
d26a68e5473a57bd38091e1a5cad96a2b4e2c2ab
[ "MIT" ]
21
2019-04-12T17:54:51.000Z
2021-11-04T18:47:45.000Z
mythril/support/support_utils.py
step21/mythril
d26a68e5473a57bd38091e1a5cad96a2b4e2c2ab
[ "MIT" ]
1
2021-09-06T03:14:58.000Z
2021-09-06T03:14:58.000Z
"""This module contains utility functions for the Mythril support package.""" from typing import Dict class Singleton(type): """A metaclass type implementing the singleton pattern.""" _instances = {} # type: Dict def __call__(cls, *args, **kwargs): """Delegate the call to an existing resource o...
28.826087
81
0.627451
84
663
4.809524
0.630952
0.089109
0.111386
0
0
0
0
0
0
0
0
0
0.273002
663
22
82
30.136364
0.838174
0.475113
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.714286
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
b437ff845481fd16be2f8fc1d410e6c3c3a17c1d
554
py
Python
tests/functions/list/test_lists_map.py
sukovanej/mplisp
a3faf8c06936bcc5cde59899abf41a1b379090f5
[ "MIT" ]
null
null
null
tests/functions/list/test_lists_map.py
sukovanej/mplisp
a3faf8c06936bcc5cde59899abf41a1b379090f5
[ "MIT" ]
null
null
null
tests/functions/list/test_lists_map.py
sukovanej/mplisp
a3faf8c06936bcc5cde59899abf41a1b379090f5
[ "MIT" ]
null
null
null
import unittest import mplisp.evaluator as evaluator class TestListMap(unittest.TestCase): def map_test(self): input1 = """ (map (lambda (x) (* 2 x)) (list 1 2 3)) """ output1 = list(evaluator.evaluate(input1)) self.assertEqual(output1[0], [2, 4, 6]) def map_test_2(...
22.16
50
0.534296
71
554
4.126761
0.394366
0.040956
0.068259
0.075085
0.464164
0.382253
0.382253
0.382253
0
0
0
0.070681
0.310469
554
24
51
23.083333
0.696335
0
0
0.352941
0
0
0.283394
0
0
0
0
0
0.117647
1
0.117647
false
0
0.176471
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b4387eea371c6bde1ade7a6d0d94c1c04a7c6258
1,210
py
Python
malpickle/main.py
erose1337/malpickle
3c708426d5f5e33d3e232d77cbbfca0a955d6ebf
[ "MIT" ]
null
null
null
malpickle/main.py
erose1337/malpickle
3c708426d5f5e33d3e232d77cbbfca0a955d6ebf
[ "MIT" ]
null
null
null
malpickle/main.py
erose1337/malpickle
3c708426d5f5e33d3e232d77cbbfca0a955d6ebf
[ "MIT" ]
null
null
null
import argparse from __init__ import insert_code def main(): parser = argparse.ArgumentParser(description="Inject code into pickle files") parser.add_argument("pickle_file", help="The pickle file to inject code into") parser.add_argument("code_file", help="The shell script to inject") #parser.add_argu...
31.842105
121
0.680165
164
1,210
4.737805
0.390244
0.11583
0.065637
0.048906
0
0
0
0
0
0
0
0.00516
0.199174
1,210
37
122
32.702703
0.796698
0.155372
0
0
0
0
0.128684
0
0
0
0.003929
0
0.04
1
0.08
false
0
0.12
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
b43894ad3119624561e61e4cdbc634a63ac5df12
1,923
py
Python
src/redis_lock/django_cache.py
suligap/python-redis-lock
369e95bb5e26284ef0944e551f93d9f2596e5345
[ "BSD-2-Clause" ]
null
null
null
src/redis_lock/django_cache.py
suligap/python-redis-lock
369e95bb5e26284ef0944e551f93d9f2596e5345
[ "BSD-2-Clause" ]
null
null
null
src/redis_lock/django_cache.py
suligap/python-redis-lock
369e95bb5e26284ef0944e551f93d9f2596e5345
[ "BSD-2-Clause" ]
null
null
null
from django.core.cache.backends.base import DEFAULT_TIMEOUT from django_redis.cache import RedisCache as PlainRedisCache from redis_lock import Lock from redis_lock import reset_all class RedisCache(PlainRedisCache): @property def __client(self): try: return self.client.get_client() ...
33.155172
92
0.598024
249
1,923
4.497992
0.353414
0.042857
0.01875
0.033929
0.123214
0.089286
0.089286
0.089286
0.089286
0.089286
0
0
0.327093
1,923
57
93
33.736842
0.865533
0.185647
0
0.2
0
0
0.098535
0.022636
0
0
0
0
0
1
0.114286
false
0
0.114286
0.028571
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b438f353825f2b371f64bd83071ca8831b7f58ce
3,510
py
Python
nets/facenet.py
QiongWang-l/llfr
00f62f03dd2964add1ff1b007292d06afff708f4
[ "MIT" ]
null
null
null
nets/facenet.py
QiongWang-l/llfr
00f62f03dd2964add1ff1b007292d06afff708f4
[ "MIT" ]
null
null
null
nets/facenet.py
QiongWang-l/llfr
00f62f03dd2964add1ff1b007292d06afff708f4
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.nn import functional as F from torchvision.models.utils import load_state_dict_from_url from nets.inception_resnetv1 import InceptionResnetV1 from nets.mobilenet import MobileNetV1 class mobilenet(nn.Module): def __init__(self, pretrained): super(mobilenet, s...
37.340426
189
0.61396
465
3,510
4.432258
0.249462
0.029112
0.069869
0.085395
0.440078
0.325085
0.320233
0.24163
0.24163
0.24163
0
0.026275
0.273504
3,510
93
190
37.741935
0.781961
0
0
0.304878
0
0.02439
0.098576
0
0
0
0
0
0
1
0.097561
false
0
0.073171
0
0.268293
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
b439fd956c9d132bc84b304fc1984cd145eb18b5
2,260
py
Python
minify/migrations/0004_auto__del_unique_urlminify_short_url__add_unique_urlminify_short_url_s.py
djsan15/url-minifier
00ff087dadc7e14015cc5640e135f8454afd11dc
[ "MIT" ]
null
null
null
minify/migrations/0004_auto__del_unique_urlminify_short_url__add_unique_urlminify_short_url_s.py
djsan15/url-minifier
00ff087dadc7e14015cc5640e135f8454afd11dc
[ "MIT" ]
null
null
null
minify/migrations/0004_auto__del_unique_urlminify_short_url__add_unique_urlminify_short_url_s.py
djsan15/url-minifier
00ff087dadc7e14015cc5640e135f8454afd11dc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Removing unique constraint on 'URLMinify', fields ['short_url'] db.dele...
52.55814
217
0.615487
267
2,260
5.003745
0.235955
0.101796
0.083832
0.11976
0.700599
0.684132
0.684132
0.684132
0.545659
0.545659
0
0.006494
0.182301
2,260
43
218
52.55814
0.71645
0.138496
0
0.071429
0
0
0.485067
0.156025
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.321429
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
b43cafc5d4e3e3709f5f5f9476d5698dfa194510
1,182
py
Python
Validation/EcalRecHits/test/EcalTBValidationData_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
Validation/EcalRecHits/test/EcalTBValidationData_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
Validation/EcalRecHits/test/EcalTBValidationData_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms process = cms.Process("h4ValidData") # initialize MessageLogger process.load("FWCore.MessageLogger.MessageLogger_cfi") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring...
36.9375
73
0.756345
107
1,182
8.317757
0.523364
0.101124
0.057303
0
0
0
0
0
0
0
0
0.02488
0.115905
1,182
31
74
38.129032
0.826794
0.021151
0
0
0
0
0.266898
0.193241
0
0
0
0
0
1
0
false
0
0.04
0
0.04
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
b43dc0c04bfb765d1057fbf1d173d5c4374ca965
1,948
py
Python
database/domains.py
changyc9928/Genshin-Discord-Bot
be64481f43755c0031b469e79271ec7f0753cb0a
[ "MIT" ]
null
null
null
database/domains.py
changyc9928/Genshin-Discord-Bot
be64481f43755c0031b469e79271ec7f0753cb0a
[ "MIT" ]
null
null
null
database/domains.py
changyc9928/Genshin-Discord-Bot
be64481f43755c0031b469e79271ec7f0753cb0a
[ "MIT" ]
null
null
null
import asyncio from query_graphql import query_artifact_domains, query_weapon_materials_book class Domains: leylines = { "Blossom of Revelation": "Character EXP Materials", "Blossom of Wealth": "Mora" } weapon_domains = {} talent_domains = {} artifact_domains = {} trounce_doma...
34.785714
98
0.627823
199
1,948
6.025126
0.527638
0.070058
0.050042
0.040033
0.06005
0
0
0
0
0
0
0.001417
0.275667
1,948
55
99
35.418182
0.848335
0
0
0
0
0
0.39117
0
0
0
0
0
0
1
0
false
0
0.040816
0
0.183673
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
b43f15ecbdb1d9b59ec1324ee2719d330bd46baf
3,637
py
Python
src/app/drivers/pycolator/splitmerge.py
husensofteng/msstitch
a917ed24fbc8b018b3f2bbec31e852aa76cc715c
[ "MIT" ]
null
null
null
src/app/drivers/pycolator/splitmerge.py
husensofteng/msstitch
a917ed24fbc8b018b3f2bbec31e852aa76cc715c
[ "MIT" ]
null
null
null
src/app/drivers/pycolator/splitmerge.py
husensofteng/msstitch
a917ed24fbc8b018b3f2bbec31e852aa76cc715c
[ "MIT" ]
null
null
null
from app.drivers.pycolator import base from app.actions.pycolator import splitmerge as preparation from app.readers import pycolator as readers from app.drivers.options import pycolator_options class SplitDriver(base.PycolatorDriver): outfile = None def run(self): self.set_filter_types() for ...
36.37
79
0.668958
435
3,637
5.452874
0.344828
0.022766
0.023609
0.030354
0.180438
0.140809
0.095278
0.095278
0.095278
0.095278
0
0.001081
0.236734
3,637
99
80
36.737374
0.853386
0.17157
0
0.230769
0
0
0.12026
0
0
0
0
0
0
1
0.184615
false
0
0.061538
0
0.430769
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
b4430cd61e95dcd15b900c13c175b1309fa0cc87
4,955
py
Python
src/workers/correct.py
brainsqueeze/Image_correction
db19088fb101ce760601416d19622d46d76f482c
[ "MIT" ]
10
2017-08-31T06:16:56.000Z
2022-03-12T19:44:50.000Z
src/workers/correct.py
brainsqueeze/Image_correction
db19088fb101ce760601416d19622d46d76f482c
[ "MIT" ]
2
2018-06-01T09:27:07.000Z
2018-07-23T01:43:16.000Z
src/workers/correct.py
brainsqueeze/Image_correction
db19088fb101ce760601416d19622d46d76f482c
[ "MIT" ]
3
2018-10-24T04:59:10.000Z
2021-09-03T10:37:35.000Z
# __author__ = 'Dave' import cv2 from skimage import io from skimage.transform import probabilistic_hough_line import matplotlib.pyplot as plt import os import warnings import random import numpy as np warnings.filterwarnings('ignore', category=RuntimeWarning) class CorrectImage(object): def __init__(self): ...
32.598684
105
0.559435
613
4,955
4.450245
0.327896
0.023094
0.016496
0.008798
0.157258
0.108504
0.089443
0.089443
0.066716
0.032991
0
0.0263
0.332392
4,955
151
106
32.81457
0.798368
0.278507
0
0.121951
0
0
0.038029
0
0
0
0.001217
0
0
1
0.121951
false
0.012195
0.097561
0
0.292683
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
b443c0485b44fdad4aad919722875c535cf37d83
2,469
py
Python
plot_scripts/CC_timeline_plot.py
idunnam/Thesis
a567a25aa037c949de285158804a6ee396fc0e6c
[ "MIT" ]
null
null
null
plot_scripts/CC_timeline_plot.py
idunnam/Thesis
a567a25aa037c949de285158804a6ee396fc0e6c
[ "MIT" ]
1
2022-01-28T13:12:26.000Z
2022-01-28T13:12:26.000Z
plot_scripts/CC_timeline_plot.py
idunnam/Thesis
a567a25aa037c949de285158804a6ee396fc0e6c
[ "MIT" ]
null
null
null
""" This code is used for plotting induvidual timelines of seasonal CC for each CMIP5 and CMIP6 model """ import matplotlib.pyplot as plt import xarray as xr import numpy as np import seaborn as sns import pandas as pd #=== Import SEB Anomalies ==== #from seasonal_SEB_components import * ACCESS = xr.open_dataset('/p...
46.584906
97
0.722155
425
2,469
4.042353
0.211765
0.038417
0.083236
0.134459
0.542491
0.518044
0.484284
0.484284
0.188591
0.100116
0
0.088441
0.074929
2,469
52
98
47.480769
0.663748
0.068854
0
0
0
0
0.350087
0.209353
0
0
0
0
0
1
0
false
0
0.128205
0
0.128205
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
b444a932576d7caabe2a8eb3dc47c1e354d4d5e3
3,867
py
Python
scripts/prepare-kernel-headers.py
sonicyang/mctest
39c26c43e9fcf1fd94322effad4ca211d495339a
[ "BSD-2-Clause" ]
4
2017-05-22T07:05:33.000Z
2020-10-22T02:34:48.000Z
scripts/prepare-kernel-headers.py
sonicyang/mctest
39c26c43e9fcf1fd94322effad4ca211d495339a
[ "BSD-2-Clause" ]
null
null
null
scripts/prepare-kernel-headers.py
sonicyang/mctest
39c26c43e9fcf1fd94322effad4ca211d495339a
[ "BSD-2-Clause" ]
2
2020-02-19T13:23:16.000Z
2020-12-08T02:26:16.000Z
import os import subprocess import errno import shutil import re import sys kernel_path = '' install_path = '' patch_rules = [] arch = '' def mkdir_p(path): try: os.makedirs(path) except OSError as exc: if exc.errno == errno.EEXIST and os.path.isdir(path): pass else: ...
27.820144
82
0.60693
514
3,867
4.363813
0.31323
0.028087
0.046812
0.022737
0.188587
0.138654
0.094516
0.094516
0.04815
0
0
0.005994
0.266615
3,867
138
83
28.021739
0.784908
0.143264
0
0.153846
0
0
0.143942
0.034619
0
0
0
0.007246
0.010989
1
0.087912
false
0.010989
0.065934
0
0.21978
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
b446c92bc9ef0b8ec976811e71bda60bd2a8e30d
18,912
py
Python
model/loss.py
Daipuwei/YOLO-tf2
1b2e7133c99507573f419c8a367a8dba4abeae5b
[ "MIT" ]
null
null
null
model/loss.py
Daipuwei/YOLO-tf2
1b2e7133c99507573f419c8a367a8dba4abeae5b
[ "MIT" ]
null
null
null
model/loss.py
Daipuwei/YOLO-tf2
1b2e7133c99507573f419c8a367a8dba4abeae5b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021/9/18 下午11:19 # @Author : DaiPuWei # @Email : 771830171@qq.com # @File : loss.py # @Software: PyCharm """ 这是YOLO模型的损失函数的定义脚本,目前目标分类损失支持smooth Label; 目标定位损失支持均方差损失、GIOU Loss、DIOU Loss和CIOU Loss; """ import math import tensorflow as tf from tensorflow.keras import ...
46.239609
123
0.519882
2,483
18,912
3.673782
0.141361
0.038917
0.020719
0.024995
0.477856
0.450121
0.419645
0.372945
0.358036
0.329095
0
0.039161
0.264118
18,912
409
124
46.239609
0.616297
0.273583
0
0.453744
0
0
0.012783
0
0
0
0
0
0
1
0.030837
false
0
0.013216
0
0.079295
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
b4470139b4eff5eadddd95183f7509c2d7a4cf79
59,405
py
Python
electrum_vtc/tests/test_lnpeer.py
samdisk11/electrum
4fffb4328a1764b5cd969b5c733e67bced2548a0
[ "MIT" ]
null
null
null
electrum_vtc/tests/test_lnpeer.py
samdisk11/electrum
4fffb4328a1764b5cd969b5c733e67bced2548a0
[ "MIT" ]
2
2022-01-11T17:19:40.000Z
2022-01-14T16:32:23.000Z
electrum_vtc/tests/test_lnpeer.py
samdisk11/electrum
4fffb4328a1764b5cd969b5c733e67bced2548a0
[ "MIT" ]
2
2022-01-13T05:04:16.000Z
2022-01-14T11:48:39.000Z
import asyncio import tempfile from decimal import Decimal import os from contextlib import contextmanager from collections import defaultdict import logging import concurrent from concurrent import futures import unittest from typing import Iterable, NamedTuple, Tuple, List, Dict from aiorpcx import TaskGroup, timeou...
46.775591
138
0.647908
7,195
59,405
5.064906
0.095761
0.025355
0.022227
0.014489
0.591131
0.54171
0.49668
0.468278
0.447615
0.430355
0
0.020125
0.258076
59,405
1,269
139
46.812451
0.806711
0.062486
0
0.426945
0
0
0.04121
0.008844
0
0
0
0
0.088235
1
0.05408
false
0.006641
0.038899
0.013283
0.16129
0.002846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b44863efc63447d4fc28f184aca9628762468a02
637
py
Python
eth_tester/normalization/common.py
PabloLefort/eth-tester
9a795cff7da3916062884e9c1e690545741e60c5
[ "MIT" ]
215
2018-05-17T19:09:07.000Z
2021-03-05T18:10:15.000Z
eth_tester/normalization/common.py
PabloLefort/eth-tester
9a795cff7da3916062884e9c1e690545741e60c5
[ "MIT" ]
1
2021-03-25T21:51:01.000Z
2021-03-25T21:51:01.000Z
eth_tester/normalization/common.py
PabloLefort/eth-tester
9a795cff7da3916062884e9c1e690545741e60c5
[ "MIT" ]
1
2019-02-27T21:29:16.000Z
2019-02-27T21:29:16.000Z
from cytoolz.functoolz import ( curry, ) from eth_utils import ( to_dict, to_tuple, ) @curry @to_dict def normalize_dict(value, normalizers): for key, item in value.items(): normalizer = normalizers[key] yield key, normalizer(item) @curry @to_tuple def normalize_array(value, normali...
17.694444
71
0.657771
83
637
4.927711
0.46988
0.08802
0.05379
0
0
0
0
0
0
0
0
0
0.251177
637
35
72
18.2
0.857442
0.119309
0
0.125
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.083333
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b44950222260e5d85816513148e16767252becb1
9,124
py
Python
Incident-Response/Tools/grr/grr/client/grr_response_client/vfs_handlers/ntfs.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
1
2021-07-24T17:22:50.000Z
2021-07-24T17:22:50.000Z
Incident-Response/Tools/grr/grr/client/grr_response_client/vfs_handlers/ntfs.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-28T03:40:31.000Z
2022-02-28T03:40:52.000Z
Incident-Response/Tools/grr/grr/client/grr_response_client/vfs_handlers/ntfs.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-25T08:34:51.000Z
2022-03-16T17:29:44.000Z
#!/usr/bin/env python """Virtual filesystem module based on pyfsntfs.""" import stat from typing import Any, Callable, Dict, Iterable, Optional, Text, Type import pyfsntfs from grr_response_client import client_utils from grr_response_client.vfs_handlers import base as vfs_base from grr_response_core.lib import rdfv...
36.790323
137
0.694432
1,220
9,124
5.013934
0.22541
0.047409
0.025176
0.009809
0.26549
0.185222
0.151872
0.114108
0.052967
0.052967
0
0.005317
0.216681
9,124
247
138
36.939271
0.850567
0.171306
0
0.165714
0
0
0.020218
0
0
0
0.00266
0
0
1
0.057143
false
0
0.051429
0.011429
0.165714
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
b4498ac05bf8ea7aa023efd2ecbb1bd7c7b56fb2
1,158
py
Python
src/unicon/plugins/iosxe/cat9k/__init__.py
nielsvanhooy/unicon.plugins
3416fd8223f070cbb67a2cbe604e3c5d13584318
[ "Apache-2.0" ]
null
null
null
src/unicon/plugins/iosxe/cat9k/__init__.py
nielsvanhooy/unicon.plugins
3416fd8223f070cbb67a2cbe604e3c5d13584318
[ "Apache-2.0" ]
null
null
null
src/unicon/plugins/iosxe/cat9k/__init__.py
nielsvanhooy/unicon.plugins
3416fd8223f070cbb67a2cbe604e3c5d13584318
[ "Apache-2.0" ]
null
null
null
""" cat9k IOS-XE connection implementation. """ __author__ = "Rob Trotter <rlt@cisco.com>" from unicon.plugins.iosxe import ( IosXESingleRpConnection, IosXEDualRPConnection, IosXEServiceList, HAIosXEServiceList) from .statemachine import IosXECat9kSingleRpStateMachine, IosXECat9kDualRpStateMachine fr...
26.930233
86
0.768566
91
1,158
9.483516
0.494505
0.03708
0.025492
0.03708
0.076477
0.076477
0.076477
0.076477
0
0
0
0.016512
0.163212
1,158
42
87
27.571429
0.874097
0.033679
0
0.285714
0
0
0.033303
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.642857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b449d07b5e029400778e8d16d3a55f2ee36130ff
18,334
py
Python
midterm/yolo_utils.py
ClarkBrun/emotic
ea4c1d846ac8aa18a902c0e68fb6e5dc5e1ae2d1
[ "MIT" ]
null
null
null
midterm/yolo_utils.py
ClarkBrun/emotic
ea4c1d846ac8aa18a902c0e68fb6e5dc5e1ae2d1
[ "MIT" ]
null
null
null
midterm/yolo_utils.py
ClarkBrun/emotic
ea4c1d846ac8aa18a902c0e68fb6e5dc5e1ae2d1
[ "MIT" ]
null
null
null
import cv2 import numpy as np import os import torch import torch.nn as nn import torch.nn.functional as F def to_cpu(tensor): return tensor.detach().cpu() def xywh2xyxy(x): ''' Convert bounding box from [x, y, w, h] to [x1, y1, x2, y2] :param x: bounding boxes array :return: Converted bounding box array '...
37.038384
115
0.678412
2,856
18,334
4.139006
0.146359
0.025125
0.013197
0.012943
0.200575
0.128669
0.106336
0.068691
0.04179
0.04179
0
0.027365
0.17083
18,334
495
116
37.038384
0.75023
0.153376
0
0.106849
0
0.00274
0.054789
0.002993
0
0
0
0
0
1
0.052055
false
0
0.016438
0.00274
0.115068
0.00274
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b44ac7b8e26906825e3b89cdfb277cf731bbe790
5,557
py
Python
pytracking-master/ltr/train_settings/bbreg/atom.py
wsumel/AMMC
ef101878b4a97f07984186ea09146348c0526fa6
[ "Apache-2.0" ]
3
2021-12-02T11:34:37.000Z
2021-12-19T09:30:10.000Z
pytracking-master/ltr/train_settings/bbreg/atom.py
wsumel/AMMC
ef101878b4a97f07984186ea09146348c0526fa6
[ "Apache-2.0" ]
null
null
null
pytracking-master/ltr/train_settings/bbreg/atom.py
wsumel/AMMC
ef101878b4a97f07984186ea09146348c0526fa6
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn import torch.optim as optim from ltr.dataset import Lasot, TrackingNet, MSCOCOSeq, Got10k from ltr.data import processing, sampler, LTRLoader import ltr.models.bbreg.atom as atom_models from ltr import actors from ltr.trainers import LTRTrainer import ltr.data.transforms as tfm def run(settings)...
55.57
133
0.638114
646
5,557
5.26935
0.270898
0.035253
0.029965
0.021152
0.411575
0.384548
0.331669
0.331669
0.331669
0.291422
0
0.032807
0.281447
5,557
99
134
56.131313
0.819684
0.182653
0
0.225806
0
0
0.038947
0
0
0
0
0
0
1
0.016129
false
0
0.129032
0
0.145161
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b44b2dc4ce40901657329bbb40489909361c416f
281
py
Python
exercise 8.6.py
tuyanyang/python_exercise
c1027c2451d7f3c0fd00152a5430386d930ef9ef
[ "Apache-2.0" ]
null
null
null
exercise 8.6.py
tuyanyang/python_exercise
c1027c2451d7f3c0fd00152a5430386d930ef9ef
[ "Apache-2.0" ]
null
null
null
exercise 8.6.py
tuyanyang/python_exercise
c1027c2451d7f3c0fd00152a5430386d930ef9ef
[ "Apache-2.0" ]
null
null
null
nums = list() while True: nStr = input('Enter a number: ') try: if nStr == 'done': break n = float(nStr) nums.append(n) except: print('Invalid input') continue print('Maximum: ',max(nums)) print('Minimum: ',min(nums))
21.615385
36
0.519573
33
281
4.424242
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.327402
281
13
37
21.615385
0.772487
0
0
0
0
0
0.180851
0
0
0
0
0
0
1
0
false
0
0
0
0
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b44cdf1520f9983049c66891c92f13dc5a062fff
5,899
py
Python
gui/activity_list.py
keremkoseoglu/Kifu
bed7a15f71e2345c654b1adab07a5edecdbae342
[ "MIT" ]
null
null
null
gui/activity_list.py
keremkoseoglu/Kifu
bed7a15f71e2345c654b1adab07a5edecdbae342
[ "MIT" ]
82
2020-06-25T09:45:01.000Z
2022-03-31T09:35:31.000Z
gui/activity_list.py
keremkoseoglu/Kifu
bed7a15f71e2345c654b1adab07a5edecdbae342
[ "MIT" ]
null
null
null
""" Activity list window """ import tkinter import tkinter.ttk from model import activity, invoice from model.activity import Activity from model.company import Company from gui.activity import ActivityWindow from gui.activity_split import ActivitySplit from gui.invoice import InvoiceWindow from gui.popup_file import p...
34.098266
97
0.66418
678
5,899
5.411504
0.188791
0.034887
0.051513
0.031344
0.289725
0.257291
0.216135
0.216135
0.216135
0.216135
0
0.005403
0.246991
5,899
172
98
34.296512
0.820576
0.016613
0
0.224806
0
0
0.034399
0
0
0
0
0
0
1
0.069767
false
0
0.093023
0
0.255814
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
b44e0121e131edfd41c92b9e516f42e320c6b70f
3,551
py
Python
src/cactus/shared/commonTest.py
thiagogenez/cactus
910234eb8bafca33e6a219079c8d988b6f43bc59
[ "MIT-0" ]
209
2016-11-12T14:16:50.000Z
2022-03-30T04:44:11.000Z
src/cactus/shared/commonTest.py
thiagogenez/cactus
910234eb8bafca33e6a219079c8d988b6f43bc59
[ "MIT-0" ]
468
2016-11-06T01:16:43.000Z
2022-03-31T16:24:37.000Z
src/cactus/shared/commonTest.py
thiagogenez/cactus
910234eb8bafca33e6a219079c8d988b6f43bc59
[ "MIT-0" ]
75
2017-03-09T22:19:27.000Z
2022-03-14T22:03:33.000Z
import os import shutil import unittest from base64 import b64encode from sonLib.bioio import TestStatus from sonLib.bioio import getTempFile from sonLib.bioio import getTempDirectory from sonLib.bioio import system from toil.job import Job from toil.common import Toil from cactus.shared.common import cactus_call, Chi...
34.475728
84
0.619825
399
3,551
5.426065
0.365915
0.030485
0.027714
0.038799
0.189376
0.174596
0.149654
0.149654
0.067436
0.067436
0
0.008124
0.272036
3,551
102
85
34.813725
0.8294
0.103351
0
0.162162
0
0
0.042573
0
0
0
0
0
0.054054
1
0.121622
false
0
0.148649
0
0.310811
0.013514
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b44e0a41d16e0ba8bfc1be48250cce3e7506e1d1
7,185
py
Python
porespy/networks/__getnet__.py
hfathian/porespy
8747e675ba8e6410d8448492c70f6911e0eb816a
[ "MIT" ]
3
2020-09-02T20:02:55.000Z
2021-07-09T03:50:49.000Z
porespy/networks/__getnet__.py
hfathian/porespy
8747e675ba8e6410d8448492c70f6911e0eb816a
[ "MIT" ]
null
null
null
porespy/networks/__getnet__.py
hfathian/porespy
8747e675ba8e6410d8448492c70f6911e0eb816a
[ "MIT" ]
null
null
null
import sys import numpy as np import openpnm as op from tqdm import tqdm import scipy.ndimage as spim from porespy.tools import extend_slice import openpnm.models.geometry as op_gm def regions_to_network(im, dt=None, voxel_size=1): r""" Analyzes an image that has been partitioned into pore regions and extract...
43.545455
83
0.622825
1,094
7,185
3.929616
0.235832
0.043964
0.030705
0.029309
0.168876
0.114445
0.109793
0.057223
0.057223
0.057223
0
0.016648
0.239248
7,185
164
84
43.810976
0.76985
0.200835
0
0.033333
0
0
0.141057
0.078779
0
0
0
0
0
1
0.008333
false
0
0.066667
0
0.083333
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b44f498d26d9dd58f69d6d12b6ff289ae252ed43
2,076
py
Python
examples/exp_example.py
physimals/avb
16663a935de35e4042c77000ea47abd7e5cd16ad
[ "Apache-2.0" ]
null
null
null
examples/exp_example.py
physimals/avb
16663a935de35e4042c77000ea47abd7e5cd16ad
[ "Apache-2.0" ]
null
null
null
examples/exp_example.py
physimals/avb
16663a935de35e4042c77000ea47abd7e5cd16ad
[ "Apache-2.0" ]
null
null
null
""" Example of usage of the AVB framework to infer a single exponential decay model. This uses the Python classes directly to infer the parameters for a single instance of noisy data constructed as a Numpy array. """ import sys import logging import numpy as np from vaby_avb import Avb import vaby # Uncomment line ...
33.483871
167
0.750482
335
2,076
4.552239
0.453731
0.03541
0.027541
0.019672
0.02623
0
0
0
0
0
0
0.015402
0.124277
2,076
61
168
34.032787
0.823432
0.489403
0
0
0
0
0.13913
0
0
0
0
0
0
1
0
false
0
0.178571
0
0.178571
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
0
0
0
0
0
0
0
0
0
0
1
0
b45067ac1c187f969ca36977c34f99d5b3112b27
3,965
py
Python
aws_marketplace/creating_marketplace_products/src/training_specification.py
jerrypeng7773/amazon-sagemaker-examples
c5ddecce1f739a345465b9a38b064983a129141d
[ "Apache-2.0" ]
2,610
2020-10-01T14:14:53.000Z
2022-03-31T18:02:31.000Z
aws_marketplace/creating_marketplace_products/src/training_specification.py
jerrypeng7773/amazon-sagemaker-examples
c5ddecce1f739a345465b9a38b064983a129141d
[ "Apache-2.0" ]
1,959
2020-09-30T20:22:42.000Z
2022-03-31T23:58:37.000Z
aws_marketplace/creating_marketplace_products/src/training_specification.py
jerrypeng7773/amazon-sagemaker-examples
c5ddecce1f739a345465b9a38b064983a129141d
[ "Apache-2.0" ]
2,052
2020-09-30T22:11:46.000Z
2022-03-31T23:02:51.000Z
import json class TrainingSpecification: template = """ { "TrainingSpecification": { "TrainingImage": "IMAGE_REPLACE_ME", "SupportedHyperParameters": [ { "Description": "Grow a tree with max_leaf_nodes in best-first fashion. Best nodes are defined as relative reduction in impu...
30.5
186
0.54174
371
3,965
5.493261
0.301887
0.044161
0.052993
0.07949
0.367517
0.27527
0.197252
0.158979
0.158979
0.158979
0
0.02618
0.364187
3,965
129
187
30.736434
0.782229
0
0
0.161017
0
0.008475
0.374275
0.066835
0
0
0
0
0
1
0.025424
false
0
0.008475
0.008475
0.076271
0.008475
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0