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
f41f69d9bd477d8ca020434a878df0487997423d
1,860
py
Python
bin/memcached_stats.py
petervdb/testrep1
76b6eb3de2deb9596c055f252191e28587d5520c
[ "MIT" ]
1
2015-11-17T21:35:44.000Z
2015-11-17T21:35:44.000Z
bin/memcached_stats.py
petervdb/testrep1
76b6eb3de2deb9596c055f252191e28587d5520c
[ "MIT" ]
null
null
null
bin/memcached_stats.py
petervdb/testrep1
76b6eb3de2deb9596c055f252191e28587d5520c
[ "MIT" ]
null
null
null
#!/usr/bin/python # Only works with Python 2.7 import re, telnetlib, sys class MemcachedStats: _client = None _key_regex = re.compile(ur'ITEM (.*) \[(.*); (.*)\]') _slab_regex = re.compile(ur'STAT items:(.*):number') _stat_regex = re.compile(ur"STAT (.*) (.*)\r") def __init__(self, host='localh...
29.52381
80
0.601613
261
1,860
4.145594
0.321839
0.046211
0.038817
0.044362
0.177449
0.060998
0.060998
0.060998
0.060998
0
0
0.02123
0.265591
1,860
62
81
30
0.770864
0.023118
0
0
0
0
0.193939
0
0
0
0
0
0
0
null
null
0
0.042553
null
null
0.06383
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f420921f6957bd4778355194b2bf0fb6d1db9a76
1,470
py
Python
tests/v1/test_user_register.py
pjcalvo/screenshot-compare-service
ba246418e259c0ee70ad5cc1fe2618ea785aba93
[ "MIT" ]
null
null
null
tests/v1/test_user_register.py
pjcalvo/screenshot-compare-service
ba246418e259c0ee70ad5cc1fe2618ea785aba93
[ "MIT" ]
4
2021-06-08T20:48:52.000Z
2022-03-12T00:11:36.000Z
tests/v1/test_user_register.py
pjcalvo/screenshot-compare-service
ba246418e259c0ee70ad5cc1fe2618ea785aba93
[ "MIT" ]
null
null
null
import pytest from flask import url_for from api.blueprints.v1.resources.user_register import User class TestUserResource: def test_user_register_with_missing_user_data(self, client): res = client.post(url_for('v1.userregister')) assert res.status_code == 400 def test_user_register_with_miss...
44.545455
96
0.7
191
1,470
5.193717
0.272251
0.081653
0.078629
0.096774
0.689516
0.620968
0.590726
0.528226
0.525202
0.438508
0
0.018167
0.17619
1,470
32
97
45.9375
0.800991
0
0
0.16
0
0
0.214286
0
0
0
0
0
0.36
1
0.2
false
0.24
0.12
0
0.36
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f42532c7b2766781f9f7537bddcb33536ecb550e
37,180
py
Python
tests/managers/ordering_tests.py
caberos/softlayer-python
3815b29500f7326a9cbaa71c910438b916e95b26
[ "MIT" ]
null
null
null
tests/managers/ordering_tests.py
caberos/softlayer-python
3815b29500f7326a9cbaa71c910438b916e95b26
[ "MIT" ]
null
null
null
tests/managers/ordering_tests.py
caberos/softlayer-python
3815b29500f7326a9cbaa71c910438b916e95b26
[ "MIT" ]
null
null
null
""" SoftLayer.tests.managers.ordering_tests ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :license: MIT, see LICENSE for more details. """ import mock import SoftLayer from SoftLayer import exceptions from SoftLayer import fixtures from SoftLayer import testing class OrderingTests(testing.TestCase): def ...
44.052133
120
0.613529
3,838
37,180
5.626368
0.090933
0.047791
0.030564
0.01945
0.760628
0.721913
0.697647
0.646893
0.624479
0.590071
0
0.028699
0.268989
37,180
843
121
44.104389
0.765812
0.019338
0
0.527273
0
0
0.213396
0.060225
0
0
0
0
0.163636
1
0.10303
false
0
0.007576
0.001515
0.115152
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f42b09fa0883d9f8f00223eef065e6f29742a392
48,620
py
Python
sAdaptAlpha2_lastrun.py
A-H-Vu/sAdaptAlpha2
1fdd9280ccb77e3e4496be1d07494c294607b444
[ "MIT" ]
null
null
null
sAdaptAlpha2_lastrun.py
A-H-Vu/sAdaptAlpha2
1fdd9280ccb77e3e4496be1d07494c294607b444
[ "MIT" ]
null
null
null
sAdaptAlpha2_lastrun.py
A-H-Vu/sAdaptAlpha2
1fdd9280ccb77e3e4496be1d07494c294607b444
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This experiment was created using PsychoPy3 Experiment Builder (v2020.1.3), on June 30, 2020, at 18:19 If you publish work using this script the most relevant publication is: Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E, ...
42.912621
133
0.557836
4,899
48,620
5.518065
0.133905
0.003551
0.018644
0.002663
0.64203
0.606259
0.564347
0.51426
0.492694
0.471165
0
0.025444
0.346051
48,620
1,132
134
42.95053
0.824752
0.204134
0
0.577396
0
0
0.047533
0.005396
0
0
0
0
0
0
null
null
0
0.015971
null
null
0.034398
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f43779e574bd9e71240bd002e4dfaa386c40934e
718
py
Python
ubersmith/__init__.py
jasonkeene/python-ubersmith
0c594e2eb41066d1fe7860e3a6f04b14c14f6e6a
[ "MIT" ]
9
2015-07-24T20:19:09.000Z
2021-08-12T18:25:38.000Z
ubersmith/__init__.py
jasonkeene/python-ubersmith
0c594e2eb41066d1fe7860e3a6f04b14c14f6e6a
[ "MIT" ]
14
2015-02-22T19:40:29.000Z
2016-10-20T17:42:52.000Z
ubersmith/__init__.py
jasonkeene/python-ubersmith
0c594e2eb41066d1fe7860e3a6f04b14c14f6e6a
[ "MIT" ]
9
2015-05-01T14:03:50.000Z
2016-10-18T21:22:59.000Z
from ubersmith.api import RequestHandler, set_default_request_handler from ubersmith import ( api, exceptions, utils, calls, client, device, order, sales, support, uber, ) __all__ = [ # package modules 'api', 'exceptions', 'utils', # call classes 'calls',...
18.410256
69
0.629526
74
718
5.945946
0.527027
0.095455
0.077273
0.109091
0.15
0.15
0
0
0
0
0
0
0.261838
718
38
70
18.894737
0.830189
0.162953
0
0
0
0
0.101351
0
0
0
0
0
0
1
0.033333
false
0.066667
0.066667
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f4382e77c32338bd42057e002984e89f38178df8
7,422
py
Python
sympy/functions/elementary/tests/test_piecewise.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
2
2015-05-11T12:26:38.000Z
2016-08-19T00:11:03.000Z
sympy/functions/elementary/tests/test_piecewise.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
null
null
null
sympy/functions/elementary/tests/test_piecewise.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
null
null
null
from sympy import (diff, expand, Eq, Integral, integrate, Interval, lambdify, log, oo, Piecewise, piecewise_fold, symbols, pi, solve, Rational, Basic) from sympy.utilities.pytest import XFAIL, raises x,y = symbols('x,y') def test_piecewise(): # Test canonization assert P...
33.736364
83
0.513339
1,274
7,422
2.949765
0.085557
0.028206
0.049761
0.049761
0.497339
0.344598
0.262108
0.229111
0.200639
0.182278
0
0.077875
0.249124
7,422
219
84
33.890411
0.596447
0.036917
0
0.117284
0
0
0.007849
0.002943
0
0
0
0
0.469136
1
0.08642
false
0
0.018519
0
0.104938
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
f43c81b41395d366d90c40e6cb4a217f46d499c4
2,388
py
Python
chat_room/core/config.py
iashraful/chat-room
526b96669e38888a7f1cdea60c7a68b9a57dc190
[ "BSD-2-Clause" ]
null
null
null
chat_room/core/config.py
iashraful/chat-room
526b96669e38888a7f1cdea60c7a68b9a57dc190
[ "BSD-2-Clause" ]
null
null
null
chat_room/core/config.py
iashraful/chat-room
526b96669e38888a7f1cdea60c7a68b9a57dc190
[ "BSD-2-Clause" ]
null
null
null
import secrets from typing import List, Union from decouple import config from pydantic import BaseSettings, validator class Settings(BaseSettings): PROJECT_NAME: str = "Chat Room" API_V1_PREFIX: str = "/api/v1" SECRET_KEY: str = secrets.token_urlsafe(32) # CORS_ORIGINS is a JSON-formatted list of ori...
37.3125
232
0.629397
291
2,388
4.969072
0.42268
0.043568
0.016598
0.020747
0.100968
0.100968
0.056708
0
0
0
0
0.012366
0.221106
2,388
63
233
37.904762
0.765054
0.082077
0
0.041667
0
0.041667
0.279708
0.137569
0
0
0
0
0
1
0.041667
false
0.020833
0.083333
0
0.541667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f43d7774063b714eb70c5127c952fb3261aa6cbb
3,811
py
Python
python/sparktk/dicom/ops/filter_by_tags.py
lewisc/spark-tk
5548fc925b5c278263cbdebbd9e8c7593320c2f4
[ "ECL-2.0", "Apache-2.0" ]
34
2016-05-20T22:26:05.000Z
2022-01-21T12:55:13.000Z
python/sparktk/dicom/ops/filter_by_tags.py
aayushidwivedi01/spark-tk-old
fcf25f86498ac416cce77de0db4cf0aa503d20ac
[ "ECL-2.0", "Apache-2.0" ]
70
2016-06-28T01:11:21.000Z
2021-03-15T21:40:01.000Z
python/sparktk/dicom/ops/filter_by_tags.py
aayushidwivedi01/spark-tk-old
fcf25f86498ac416cce77de0db4cf0aa503d20ac
[ "ECL-2.0", "Apache-2.0" ]
34
2016-04-21T22:25:22.000Z
2020-10-06T09:23:43.000Z
# vim: set encoding=utf-8 # Copyright (c) 2016 Intel Corporation  # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # #       http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
40.115789
199
0.588297
470
3,811
4.695745
0.419149
0.04531
0.063435
0.010874
0.21024
0.193022
0.17807
0.17807
0.173992
0.173992
0
0.130825
0.239832
3,811
95
200
40.115789
0.630998
0.790344
0
0
0
0
0.181507
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f43d82a642757414693985a970003f19e4bb5a68
3,224
py
Python
PyInstaller/hooks/hook-matplotlib.backends.py
ravindrajeet27/pyinstaller
e2d61ecb4bf1fa4708b6db036929b6971fc641e8
[ "Apache-2.0" ]
12
2020-12-15T15:12:06.000Z
2022-03-18T16:17:42.000Z
PyInstaller/hooks/hook-matplotlib.backends.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
12
2020-02-15T04:04:55.000Z
2022-02-18T20:29:49.000Z
PyInstaller/hooks/hook-matplotlib.backends.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
10
2020-12-15T15:12:14.000Z
2022-02-09T21:02:17.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2013-2020, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
37.929412
94
0.688896
407
3,224
5.351351
0.398034
0.028926
0.018365
0.024793
0.084481
0.030303
0.030303
0.030303
0
0
0
0.004237
0.194789
3,224
84
95
38.380952
0.834746
0.42866
0
0.04878
0
0
0.535834
0.066069
0
0
0
0
0
1
0.02439
false
0
0.317073
0
0.365854
0.170732
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f442288e6a154b6040ccc08c7be068eb7e0bb33a
2,884
py
Python
2.Logistic Regression/1.Code - Using Theory/7.Donut_Problem.py
ananth-repos/machine-learning
a510dcf81fab9137c33f568e73d65262667b3973
[ "MIT" ]
null
null
null
2.Logistic Regression/1.Code - Using Theory/7.Donut_Problem.py
ananth-repos/machine-learning
a510dcf81fab9137c33f568e73d65262667b3973
[ "MIT" ]
null
null
null
2.Logistic Regression/1.Code - Using Theory/7.Donut_Problem.py
ananth-repos/machine-learning
a510dcf81fab9137c33f568e73d65262667b3973
[ "MIT" ]
null
null
null
# Donut problem using logistic regression # Code Flow: # 1. Import all relevant libraries. # 2. Generate sample data. # 3. Plot the data. # 4. Add bias term. # 5. Add radius as a feature. # 6. Generate random weights for initialization. # 7. Define sigmoid function. # 8. Calculate Y. ...
28
77
0.653606
493
2,884
3.799189
0.35497
0.051255
0.045382
0.019221
0.137747
0.067272
0.028831
0.028831
0.028831
0.028831
0
0.044531
0.197989
2,884
102
78
28.27451
0.76524
0.481969
0
0.045455
1
0
0.083679
0
0
0
0
0
0
1
0.045455
false
0
0.045455
0.045455
0.136364
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f4434c71babd454b12e7540082938d74be458d20
1,258
py
Python
internal/platform/json/mapping.py
julianVelandia/Eureka
b7cfea2d7fbc9f4dbb0d08f0b6dd547b6367602e
[ "MIT" ]
2
2022-01-29T17:56:42.000Z
2022-02-05T01:33:01.000Z
internal/platform/json/mapping.py
Turing-Core-Team/Eureka-v1.0
b7cfea2d7fbc9f4dbb0d08f0b6dd547b6367602e
[ "MIT" ]
null
null
null
internal/platform/json/mapping.py
Turing-Core-Team/Eureka-v1.0
b7cfea2d7fbc9f4dbb0d08f0b6dd547b6367602e
[ "MIT" ]
null
null
null
import json import os from typing import List from internal.information.core.query.get_config import GetConfig as QueryModel from internal.information.infrastructure.getpath.config.model.path import PathModel JSON_FILE = '.json' RELATIVE_PATH = 'Eureka\\internal\\platform\\defaultconfig\\' class JsonMapping: de...
29.952381
118
0.63911
148
1,258
5.175676
0.432432
0.065274
0.060052
0.046997
0.073107
0
0
0
0
0
0
0
0.256757
1,258
41
119
30.682927
0.819251
0.031002
0
0
0
0
0.050164
0.035362
0
0
0
0.02439
0
1
0.107143
false
0.035714
0.178571
0
0.392857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
f444cefefc08771d83ec88a3e46353addad654c0
794
py
Python
api/app/models.py
JsMelix/ToDoList_PM
6e0d19e60cf9e68a9a1287377e811cb425561a7a
[ "MIT" ]
null
null
null
api/app/models.py
JsMelix/ToDoList_PM
6e0d19e60cf9e68a9a1287377e811cb425561a7a
[ "MIT" ]
null
null
null
api/app/models.py
JsMelix/ToDoList_PM
6e0d19e60cf9e68a9a1287377e811cb425561a7a
[ "MIT" ]
2
2020-08-11T12:45:11.000Z
2020-08-13T12:53:04.000Z
from flask_login import UserMixin from .firestore_service import get_user class UserData: def __init__(self, username, password, email): self.username = username self.password = password self.email = email class UserModel(UserMixin): def __init__(self, user_data): """ ...
25.612903
54
0.595718
88
794
5.079545
0.306818
0.107383
0.049217
0.058166
0
0
0
0
0
0
0
0
0.31738
794
30
55
26.466667
0.824723
0.026448
0
0
0
0
0.01745
0
0
0
0
0
0
1
0.142857
false
0.190476
0.095238
0
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f4460b21f1b4c417169fd0e50631668295ef2e58
1,136
py
Python
notebook/list_transpose.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
174
2018-05-30T21:14:50.000Z
2022-03-25T07:59:37.000Z
notebook/list_transpose.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
5
2019-08-10T03:22:02.000Z
2021-07-12T20:31:17.000Z
notebook/list_transpose.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
53
2018-04-27T05:26:35.000Z
2022-03-25T07:59:37.000Z
import numpy as np import pandas as pd l_2d = [[0, 1, 2], [3, 4, 5]] arr_t = np.array(l_2d).T print(arr_t) print(type(arr_t)) # [[0 3] # [1 4] # [2 5]] # <class 'numpy.ndarray'> l_2d_t = np.array(l_2d).T.tolist() print(l_2d_t) print(type(l_2d_t)) # [[0, 3], [1, 4], [2, 5]] # <class 'list'> df_t = pd.DataFrame(l...
16
50
0.551056
251
1,136
2.290837
0.131474
0.125217
0.13913
0.055652
0.671304
0.591304
0.448696
0.323478
0.271304
0.271304
0
0.116953
0.179577
1,136
70
51
16.228571
0.5
0.34331
0
0.214286
0
0
0
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.678571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
f44bac9cf412377a49ec44d89be2d0e9cf2a5a5e
6,904
py
Python
ai_analysis/models/evaluations/evaluate_xgboost_models.py
Arlind1992/PolimiResearch
ed46b1b3fb8b6c1c86661cebaf7dcdfbeaca439c
[ "Apache-2.0" ]
null
null
null
ai_analysis/models/evaluations/evaluate_xgboost_models.py
Arlind1992/PolimiResearch
ed46b1b3fb8b6c1c86661cebaf7dcdfbeaca439c
[ "Apache-2.0" ]
null
null
null
ai_analysis/models/evaluations/evaluate_xgboost_models.py
Arlind1992/PolimiResearch
ed46b1b3fb8b6c1c86661cebaf7dcdfbeaca439c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Feb 19 11:11:30 2019 @author: arlind """ import itertools from statsmodels.tsa.statespace.sarimax import SARIMAX from sklearn.model_selection import TimeSeriesSplit as tss from sklearn.metrics import mean_squared_error import numpy import ai_analysis.c...
44.541935
218
0.678158
1,016
6,904
4.244094
0.195866
0.046382
0.042208
0.03154
0.383813
0.34346
0.266002
0.266002
0.236317
0.215445
0
0.025375
0.21799
6,904
155
219
44.541935
0.773291
0.02752
0
0.038095
0
0
0.013591
0
0
0
0
0
0
0
null
null
0
0.07619
null
null
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f44df311792e1f3709a0f075aa0ce6ad11a2f106
13,188
py
Python
babel_python/babel_python/rabbitmq.py
threathunterX/python_lib
e2d4052de04c82cb7bccd08042f28db824cab442
[ "Apache-2.0" ]
2
2019-03-17T04:03:08.000Z
2019-05-01T09:42:23.000Z
babel_python/babel_python/rabbitmq.py
threathunterX/python_lib
e2d4052de04c82cb7bccd08042f28db824cab442
[ "Apache-2.0" ]
null
null
null
babel_python/babel_python/rabbitmq.py
threathunterX/python_lib
e2d4052de04c82cb7bccd08042f28db824cab442
[ "Apache-2.0" ]
4
2019-06-24T05:47:24.000Z
2020-09-29T05:00:31.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*# # referencing code in pyspider from __future__ import absolute_import import time, logging import threading, Queue try: from urllib import parse as urlparse except ImportError: import urlparse import pika import pika.exceptions from threathunter_common.rabbitmq.r...
36.735376
138
0.600243
1,548
13,188
4.919897
0.178295
0.034664
0.020089
0.011817
0.280856
0.22072
0.190126
0.181723
0.16032
0.135373
0
0.008454
0.31832
13,188
358
139
36.837989
0.83871
0.021914
0
0.343874
0
0
0.021581
0.001995
0
0
0
0
0
0
null
null
0.011858
0.039526
null
null
0.007905
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f4513f053085f191594bed86c0ad423cba4191ba
418
py
Python
customers/migrations/0005_customer_lookup_id.py
Toruitas/django_react_graphql_crm
794b42db5edda3cb9042cc42b9234a62b5818af1
[ "MIT" ]
null
null
null
customers/migrations/0005_customer_lookup_id.py
Toruitas/django_react_graphql_crm
794b42db5edda3cb9042cc42b9234a62b5818af1
[ "MIT" ]
null
null
null
customers/migrations/0005_customer_lookup_id.py
Toruitas/django_react_graphql_crm
794b42db5edda3cb9042cc42b9234a62b5818af1
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-10 16:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('customers', '0004_customer_description'), ] operations = [ migrations.AddField( model_name='customer', name='lookup_...
22
75
0.614833
46
418
5.478261
0.804348
0
0
0
0
0
0
0
0
0
0
0.068852
0.270335
418
18
76
23.222222
0.757377
0.107656
0
0
1
0
0.137466
0.067385
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f454505ca6ff4b7f836b22c23c3a85c5684851b2
5,366
py
Python
cherrypy/_cpcompat.py
debrando/cherrypy
a92c5cc5d888b0aad327bce34e94da4a1f961e43
[ "BSD-3-Clause" ]
2
2019-03-04T15:17:49.000Z
2021-04-04T08:08:14.000Z
lib/cherrypy/_cpcompat.py
rrosajp/script.module.cherrypy
61ae795123755f3be43611e0f2667e85ef20c9d3
[ "BSD-3-Clause" ]
2
2019-11-16T13:20:55.000Z
2021-01-10T11:28:43.000Z
lib/cherrypy/_cpcompat.py
rrosajp/script.module.cherrypy
61ae795123755f3be43611e0f2667e85ef20c9d3
[ "BSD-3-Clause" ]
6
2020-05-22T15:25:34.000Z
2021-08-13T09:43:01.000Z
"""Compatibility code for using CherryPy with various versions of Python. To retain compatibility with older Python versions, this module provides a useful abstraction over the differences between Python versions, sometimes by preferring a newer idiom, sometimes an older one, and sometimes a custom one. In particular...
32.920245
79
0.677041
776
5,366
4.614691
0.262887
0.031276
0.020106
0.03714
0.378107
0.351299
0.330075
0.314437
0.314437
0.298799
0
0.020458
0.234812
5,366
162
80
33.123457
0.85168
0.476332
0
0.385714
0
0
0.068216
0
0
0
0
0
0.071429
1
0.171429
false
0
0.157143
0.042857
0.514286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f454e055ee7f7a58749c261f243a902cde2e1f81
354
py
Python
abtohexecutehoja.py
namitakarnatak/crispy-potato
67f3ebde3281cbf2073c45c2a2c7bb2d2311f338
[ "bzip2-1.0.6" ]
null
null
null
abtohexecutehoja.py
namitakarnatak/crispy-potato
67f3ebde3281cbf2073c45c2a2c7bb2d2311f338
[ "bzip2-1.0.6" ]
null
null
null
abtohexecutehoja.py
namitakarnatak/crispy-potato
67f3ebde3281cbf2073c45c2a2c7bb2d2311f338
[ "bzip2-1.0.6" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jan 15 07:07:42 2021 @author: a "1=4444444444444 import requests from bs4 import BeautifulSoup import requests url='https://www.myntra.com/dresses?f=Gender%3Amen%20women%2Cwomen' r=requests.get(url) htmlContent=r.content soup=BeautifulSoup(htmlContent,'htm...
18.631579
68
0.717514
50
354
5.08
0.8
0.110236
0
0
0
0
0
0
0
0
0
0.10596
0.146893
354
18
69
19.666667
0.735099
0
0
0.166667
0
0
0.230032
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f45597231a3d76f185854f46b60a2949d624c3b2
259
py
Python
persons/urls.py
felix-engelmann/badgecc
5bc0ced339f18737e24cc34935a87e96ae14a825
[ "MIT" ]
null
null
null
persons/urls.py
felix-engelmann/badgecc
5bc0ced339f18737e24cc34935a87e96ae14a825
[ "MIT" ]
null
null
null
persons/urls.py
felix-engelmann/badgecc
5bc0ced339f18737e24cc34935a87e96ae14a825
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url from persons import views urlpatterns = patterns('', url(r'^$', views.index , name="index"), url(r'^detail/(?P<id>\d+)/$', views.detail, name='detail'), url(r'^delete/$', views.delete, name='delete'), )
28.777778
63
0.637066
36
259
4.583333
0.5
0.072727
0
0
0
0
0
0
0
0
0
0
0.138996
259
9
64
28.777778
0.73991
0
0
0
0
0
0.188462
0.080769
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f459715dde45217fa890f13931ea4afbdefe3574
2,956
py
Python
sound/migrations/0001_initial.py
Jafte/RTTTM
1272ae1f1d5b34e1bffe7350d74aec9605bede5f
[ "MIT" ]
null
null
null
sound/migrations/0001_initial.py
Jafte/RTTTM
1272ae1f1d5b34e1bffe7350d74aec9605bede5f
[ "MIT" ]
null
null
null
sound/migrations/0001_initial.py
Jafte/RTTTM
1272ae1f1d5b34e1bffe7350d74aec9605bede5f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-18 16:16 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid_upload_path.storage class Migration(migrations.Migration): initial = True d...
52.785714
181
0.62889
331
2,956
5.44713
0.277946
0.091514
0.054354
0.085413
0.514698
0.501941
0.443705
0.401553
0.401553
0.372158
0
0.015178
0.219892
2,956
55
182
53.745455
0.766696
0.023004
0
0.319149
1
0
0.107799
0
0
0
0
0
0
1
0
false
0
0.106383
0
0.191489
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f4627f1276f6ebee155a348b6840f10e74efe635
430
py
Python
projects/migrations/0117_reportcolumn_preview.py
SuviVappula/kaavapino
0e3687c94afff10527c9bee9627fc30bd2dfab4f
[ "MIT" ]
null
null
null
projects/migrations/0117_reportcolumn_preview.py
SuviVappula/kaavapino
0e3687c94afff10527c9bee9627fc30bd2dfab4f
[ "MIT" ]
null
null
null
projects/migrations/0117_reportcolumn_preview.py
SuviVappula/kaavapino
0e3687c94afff10527c9bee9627fc30bd2dfab4f
[ "MIT" ]
null
null
null
# Generated by Django 2.2.13 on 2021-08-09 06:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('projects', '0116_reportcolumn_title'), ] operations = [ migrations.AddField( model_name='reportcolumn', name='previ...
22.631579
87
0.623256
45
430
5.866667
0.777778
0
0
0
0
0
0
0
0
0
0
0.063291
0.265116
430
18
88
23.888889
0.772152
0.106977
0
0
1
0
0.17801
0.060209
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f4667ae71e6e117ffd56aa675310075804fe2441
4,870
py
Python
rj_gameplay/rj_gameplay/tactic/nmark_tactic.py
RoboJackets/robocup-software
ae2920b8b98213e625d0565dd67005e7a8595fac
[ "Apache-2.0" ]
200
2015-01-26T01:45:34.000Z
2022-03-19T13:05:31.000Z
rj_gameplay/rj_gameplay/tactic/nmark_tactic.py
RoboJackets/robocup-software
ae2920b8b98213e625d0565dd67005e7a8595fac
[ "Apache-2.0" ]
1,254
2015-01-03T01:57:35.000Z
2022-03-16T06:32:21.000Z
rj_gameplay/rj_gameplay/tactic/nmark_tactic.py
RoboJackets/robocup-software
ae2920b8b98213e625d0565dd67005e7a8595fac
[ "Apache-2.0" ]
206
2015-01-21T02:03:18.000Z
2022-02-01T17:57:46.000Z
from dataclasses import dataclass from typing import List, Optional import stp.rc as rc import stp.tactic as tactic import stp.role as role import rj_gameplay.eval import rj_gameplay.skill as skills from rj_gameplay.skill import mark import stp.skill as skill import numpy as np import stp.global_parameters as globa...
34.055944
118
0.649692
674
4,870
4.513353
0.295252
0.046022
0.021696
0.03616
0.1167
0.067061
0.055227
0.03879
0.03879
0.03879
0
0.005941
0.274127
4,870
142
119
34.295775
0.854597
0.290349
0
0.189873
0
0
0.005961
0
0
0
0
0.014085
0
1
0.126582
false
0.025316
0.139241
0.012658
0.417722
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
f4693d132f8f9c235dcfd8b79bf2e1a3c4cc442d
6,693
py
Python
tests/aiohttp/test_aiohttp_errors.py
engsas/connexion
abb43a42fb62ef56cb1e0f06c2167cca2f5b9f96
[ "Apache-2.0" ]
1
2020-06-04T03:12:32.000Z
2020-06-04T03:12:32.000Z
tests/aiohttp/test_aiohttp_errors.py
engsas/connexion
abb43a42fb62ef56cb1e0f06c2167cca2f5b9f96
[ "Apache-2.0" ]
9
2021-04-09T01:19:23.000Z
2021-04-09T01:19:37.000Z
tests/aiohttp/test_aiohttp_errors.py
engsas/connexion
abb43a42fb62ef56cb1e0f06c2167cca2f5b9f96
[ "Apache-2.0" ]
3
2018-06-26T22:54:02.000Z
2019-04-03T20:54:17.000Z
import asyncio import pytest import aiohttp.test_utils from connexion import AioHttpApp from connexion.apis.aiohttp_api import HTTPStatus def is_valid_problem_json(json_body): return all(key in json_body for key in ["type", "title", "detail", "status"]) @pytest.fixture def aiohttp_app(problem_api_spec_dir): ...
47.807143
127
0.742417
882
6,693
5.390023
0.172336
0.041649
0.035759
0.034077
0.510517
0.476231
0.364114
0.261254
0.226756
0.226756
0
0.032523
0.163903
6,693
139
128
48.151079
0.817012
0.168385
0
0.113208
0
0
0.185018
0.067329
0
0
0
0.007194
0.5
1
0.075472
false
0.009434
0.04717
0.009434
0.141509
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
f469e3d696933296380067161e97533f81e46363
719
py
Python
apps/hosts/migrations/0004_auto_20170313_2114.py
yhgnice/toolsvb
35f9d27ee2439d134cab160a7cf930ea13a31d26
[ "Apache-2.0" ]
null
null
null
apps/hosts/migrations/0004_auto_20170313_2114.py
yhgnice/toolsvb
35f9d27ee2439d134cab160a7cf930ea13a31d26
[ "Apache-2.0" ]
null
null
null
apps/hosts/migrations/0004_auto_20170313_2114.py
yhgnice/toolsvb
35f9d27ee2439d134cab160a7cf930ea13a31d26
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2017-03-13 21:14 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('hosts', '0003_auto_20170309_1038'), ] operations = ...
27.653846
134
0.636996
81
719
5.432099
0.666667
0.054545
0.063636
0.1
0
0
0
0
0
0
0
0.069091
0.235049
719
25
135
28.76
0.730909
0.093185
0
0.111111
1
0
0.163328
0.035439
0
0
0
0
0
1
0
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f46daa8d0d55459b4ded2c6e9ee15bede70c1bea
299
py
Python
gnmi_tools/__version__.py
reismarcelo/gnmi_tools
282da4346b34643524fcdd646148739430e6a817
[ "MIT" ]
1
2020-02-10T19:13:37.000Z
2020-02-10T19:13:37.000Z
gnmi_tools/__version__.py
reismarcelo/gnmi_tools
282da4346b34643524fcdd646148739430e6a817
[ "MIT" ]
null
null
null
gnmi_tools/__version__.py
reismarcelo/gnmi_tools
282da4346b34643524fcdd646148739430e6a817
[ "MIT" ]
null
null
null
""" gnmi_tools - Basic GNMI operations on a device """ __copyright__ = "Copyright (c) 2020 Cisco Systems, Inc. and/or its affiliates" __version__ = "0.1" __author__ = "Marcelo Reis" __email__ = "mareis@cisco.com" __url__ = "https://github.com/reismarcelo/gnmi_hello"
29.9
81
0.658863
36
299
4.861111
0.861111
0
0
0
0
0
0
0
0
0
0
0.025751
0.220736
299
9
82
33.222222
0.725322
0.153846
0
0
0
0
0.54321
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f471746b0c14dc1a7827fcfe9f1337dc178a9aeb
9,895
py
Python
example/gan/dcgan.py
Liuxg16/BrainMatrix
0ec70edd4e12dd3719d20dd14d4e24438c60326f
[ "Apache-2.0" ]
null
null
null
example/gan/dcgan.py
Liuxg16/BrainMatrix
0ec70edd4e12dd3719d20dd14d4e24438c60326f
[ "Apache-2.0" ]
null
null
null
example/gan/dcgan.py
Liuxg16/BrainMatrix
0ec70edd4e12dd3719d20dd14d4e24438c60326f
[ "Apache-2.0" ]
null
null
null
import find_mxnet import mxnet as mx import numpy as np from sklearn.datasets import fetch_mldata import logging import cv2 from datetime import datetime def make_dcgan_sym(ngf, ndf, nc, no_bias=True, fix_gamma=True, eps=1e-5 + 1e-12): BatchNorm = mx.sym.CuDNNBatchNorm rand = mx.sym.Variable('rand') g1 = ...
34.841549
121
0.578878
1,418
9,895
3.904795
0.205219
0.022575
0.014448
0.021672
0.265126
0.214376
0.141412
0.141412
0.128409
0.112877
0
0.045229
0.246993
9,895
283
122
34.964664
0.697893
0.048004
0
0.167442
0
0
0.042859
0.002659
0
0
0
0
0.004651
0
null
null
0.004651
0.032558
null
null
0.018605
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f47beb92191eb9cb94865a1c5bfcbf2d0b967871
398
py
Python
apps/base/migrations/0013_pyproduct_bar_code.py
gvizquel/pyerp
c859f7293cabd1003f79112463cee93ac89fccba
[ "MIT" ]
1
2020-02-26T19:36:08.000Z
2020-02-26T19:36:08.000Z
apps/base/migrations/0013_pyproduct_bar_code.py
samsagaz/pyerp
db61bca307f73c13f4ad5a2ffb4531132ea5b605
[ "MIT" ]
11
2020-06-05T22:50:37.000Z
2022-02-10T09:05:56.000Z
apps/base/migrations/0013_pyproduct_bar_code.py
gvizquel/pyerp
c859f7293cabd1003f79112463cee93ac89fccba
[ "MIT" ]
2
2020-02-26T19:36:12.000Z
2020-03-16T16:30:57.000Z
# Generated by Django 2.2.4 on 2019-08-15 23:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('base', '0012_auto_20190815_2338'), ] operations = [ migrations.AddField( model_name='pyproduct', name='bar_code', ...
20.947368
62
0.603015
45
398
5.2
0.844444
0
0
0
0
0
0
0
0
0
0
0.115385
0.281407
398
18
63
22.111111
0.702797
0.113065
0
0
1
0
0.125356
0.065527
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f481d9d64068e638da04c95bd9879e1ff891e3bc
4,383
py
Python
pysport/horseracing/test_lattice.py
notbanker/pysport
fbeb1f1efa493aa26ffb58156b86ce2aee3482bf
[ "MIT" ]
null
null
null
pysport/horseracing/test_lattice.py
notbanker/pysport
fbeb1f1efa493aa26ffb58156b86ce2aee3482bf
[ "MIT" ]
null
null
null
pysport/horseracing/test_lattice.py
notbanker/pysport
fbeb1f1efa493aa26ffb58156b86ce2aee3482bf
[ "MIT" ]
null
null
null
from unittest import TestCase, main from .lattice import skew_normal_density, mean_of_density, densitiesPlot, winner_of_many, implicit_state_prices,\ sample_winner_of_many, densities_from_offsets, state_prices_from_offsets from .lattice_calibration import implied_ability PLOTS=False class ModuleTests( TestCase ):...
52.178571
170
0.623774
552
4,383
4.771739
0.182971
0.066819
0.059226
0.075171
0.462035
0.342065
0.252847
0.237282
0.237282
0.237282
0
0.03324
0.265572
4,383
83
171
52.807229
0.785026
0.009582
0
0.285714
0
0
0.027432
0
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.042857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
be307a912329293a4e45717603ab5222f7e6019c
2,603
py
Python
src/Products/PageTemplates/tests/test_viewpagetemplatefile.py
dek4nice/Zope
ec4765fc0007c4e78aafcbeef510077444f8551a
[ "ZPL-2.1" ]
1
2018-11-30T12:39:27.000Z
2018-11-30T12:39:27.000Z
src/Products/PageTemplates/tests/test_viewpagetemplatefile.py
dek4nice/Zope
ec4765fc0007c4e78aafcbeef510077444f8551a
[ "ZPL-2.1" ]
null
null
null
src/Products/PageTemplates/tests/test_viewpagetemplatefile.py
dek4nice/Zope
ec4765fc0007c4e78aafcbeef510077444f8551a
[ "ZPL-2.1" ]
1
2018-11-30T12:39:34.000Z
2018-11-30T12:39:34.000Z
import unittest from Products.Five import BrowserView from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from Testing.ZopeTestCase import ZopeTestCase class SimpleView(BrowserView): index = ViewPageTemplateFile('simple.pt') class ProcessingInstructionTestView(BrowserView): index = View...
28.604396
99
0.669612
275
2,603
6.28
0.349091
0.057904
0.041691
0.076433
0.159236
0.064852
0.064852
0.064852
0.064852
0.064852
0
0.001981
0.224357
2,603
90
100
28.922222
0.853393
0.020745
0
0.046154
0
0
0.087161
0.00903
0
0
0
0
0.169231
1
0.138462
false
0
0.107692
0.046154
0.507692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
be312ed43b704b81f6cce429f4dcdd7f7ee33f50
691
py
Python
pytype/tests/py2/test_anystr.py
OrBin/pytype
52bf1b5b03e6c3caf39bf0f187980970d70fd536
[ "Apache-2.0" ]
2
2019-07-25T12:53:02.000Z
2019-08-18T16:26:16.000Z
pytype/tests/py2/test_anystr.py
OrBin/pytype
52bf1b5b03e6c3caf39bf0f187980970d70fd536
[ "Apache-2.0" ]
null
null
null
pytype/tests/py2/test_anystr.py
OrBin/pytype
52bf1b5b03e6c3caf39bf0f187980970d70fd536
[ "Apache-2.0" ]
null
null
null
"""Tests for typing.AnyStr.""" from pytype import file_utils from pytype.tests import test_base class AnyStrTest(test_base.TargetPython27FeatureTest): """Tests for issues related to AnyStr.""" def testAnyStrFunctionImport(self): with file_utils.Tempdir() as d: d.create_file("a.pyi", """ from t...
25.592593
54
0.628075
82
691
5.121951
0.5
0.057143
0.07619
0.052381
0.080952
0
0
0
0
0
0
0.003802
0.238784
691
26
55
26.576923
0.794677
0.086831
0
0.222222
0
0
0.398387
0
0
0
0
0
0.055556
1
0.055556
false
0
0.333333
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
be31e1507e1497074190a0700aa893bc070c4e05
687
py
Python
amadeus/reference_data/urls/_checkin_links.py
e-vandenberg/amadeus-python
dd789e688a24b4220af9d5df2e4211731c28dec9
[ "MIT" ]
null
null
null
amadeus/reference_data/urls/_checkin_links.py
e-vandenberg/amadeus-python
dd789e688a24b4220af9d5df2e4211731c28dec9
[ "MIT" ]
null
null
null
amadeus/reference_data/urls/_checkin_links.py
e-vandenberg/amadeus-python
dd789e688a24b4220af9d5df2e4211731c28dec9
[ "MIT" ]
null
null
null
from amadeus.client.decorator import Decorator class CheckinLinks(Decorator, object): def get(self, **params): ''' Returns the checkin links for an airline, for the language of your choice .. code-block:: python amadeus.reference_data.urls.checkin_links.get(airline='1...
31.227273
76
0.631732
85
687
5.082353
0.588235
0.083333
0.078704
0.111111
0.134259
0
0
0
0
0
0
0.005894
0.259098
687
21
77
32.714286
0.842829
0.561863
0
0
0
0
0.167421
0.167421
0
0
0
0
0
1
0.2
false
0
0.2
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
be3f21e065f879385c6b9da831ab4f888d345556
346
py
Python
main.py
BBato/Python-Flask-Template
7370c6c6e99313d41a68d94a3b13f8746239caca
[ "MIT" ]
1
2022-01-21T08:09:25.000Z
2022-01-21T08:09:25.000Z
main.py
BBato/Python-Flask-Template
7370c6c6e99313d41a68d94a3b13f8746239caca
[ "MIT" ]
null
null
null
main.py
BBato/Python-Flask-Template
7370c6c6e99313d41a68d94a3b13f8746239caca
[ "MIT" ]
1
2022-01-21T08:09:26.000Z
2022-01-21T08:09:26.000Z
from flask import Flask, jsonify, request, render_template app = Flask(__name__) @app.route("/") def home(): return render_template("home.html") @app.route("/api/<data>") def api(data): return jsonify({"message": "Successfully received client request for "+data+"."}) if __name__ == "__main__": app.run...
20.352941
85
0.67052
48
346
4.541667
0.583333
0.027523
0.027523
0
0
0
0
0
0
0
0
0.02027
0.144509
346
16
86
21.625
0.716216
0
0
0
0
0
0.245665
0
0
0
0
0
0
1
0.2
false
0
0.1
0.2
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
be4081bb893594ef22ad04eb1124e6b5af446fd4
2,167
py
Python
setup.py
timgates42/icalendar
07e4ac2cff349bb76171e5ca4ab4313321b1729b
[ "BSD-2-Clause" ]
null
null
null
setup.py
timgates42/icalendar
07e4ac2cff349bb76171e5ca4ab4313321b1729b
[ "BSD-2-Clause" ]
null
null
null
setup.py
timgates42/icalendar
07e4ac2cff349bb76171e5ca4ab4313321b1729b
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import codecs import setuptools import re import ast _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('src/icalendar/__init__.py', 'rb') as f: version = str(ast.literal_eval(_version_re.search( f.read().decode('utf-8')).group(1))) shortdesc = 'iCalendar parser/genera...
31.867647
78
0.624365
235
2,167
5.629787
0.510638
0.157974
0.207861
0.117914
0.040816
0
0
0
0
0
0
0.017039
0.214582
2,167
67
79
32.343284
0.760282
0.009691
0
0
0
0.016949
0.474347
0.039646
0
0
0
0
0
1
0
false
0
0.067797
0
0.067797
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
be4638aca9875e14756fcabc4e2ea312050765cc
1,838
py
Python
examples/fib/threads.py
dramatis/dramatis
1a43a6be1d7e7e9fd2cde052430d6e84700dc822
[ "MIT" ]
5
2015-11-05T01:51:29.000Z
2019-04-16T09:09:19.000Z
examples/fib/threads.py
halorgium/dramatis
50b35c4e79c33e438cb9f5eeab51ab73119bd75d
[ "MIT" ]
null
null
null
examples/fib/threads.py
halorgium/dramatis
50b35c4e79c33e438cb9f5eeab51ab73119bd75d
[ "MIT" ]
1
2022-03-03T19:51:04.000Z
2022-03-03T19:51:04.000Z
#!/usr/bin/env python # cf. http://gee.cs.oswego.edu/dl/papers/fj.pdf import math import time import inspect import sys import os.path sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', 'lib' ) ] from logging import warning import threading from threading i...
22.975
118
0.553863
239
1,838
4.158996
0.301255
0.018109
0.045272
0.030181
0
0
0
0
0
0
0
0.015835
0.31284
1,838
79
119
23.265823
0.77118
0.035909
0
0.105263
0
0
0.021469
0
0
0
0
0
0
0
null
null
0.035088
0.140351
null
null
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
1
0
0
0
0
0
0
0
0
1
be47979867dc7d3bb23d48fb6bef8f44e6e727c6
2,313
py
Python
boards/device.py
carllocos/WARDuino-interactive
b0acd21baba4846d61d1152c7c90b84b4d9c8180
[ "MIT" ]
null
null
null
boards/device.py
carllocos/WARDuino-interactive
b0acd21baba4846d61d1152c7c90b84b4d9c8180
[ "MIT" ]
null
null
null
boards/device.py
carllocos/WARDuino-interactive
b0acd21baba4846d61d1152c7c90b84b4d9c8180
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Union, Any from interfaces import ASerial from boards import M5StickC from communication import Sockets, MCUSerial from boards import WOODManager class Device(WOODManager): def __init__(self, config: dict) -> Device: super().__init__() self.__...
25.7
55
0.590143
262
2,313
4.870229
0.21374
0.086207
0.028213
0.039969
0.076803
0
0
0
0
0
0
0.001267
0.317337
2,313
90
56
25.7
0.80684
0
0
0.25
0
0
0.019879
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0.138889
0.402778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
be4891935e88ba78a25a60cf5232dbbf60fbf334
1,790
py
Python
codes/a_config/d_matlab_parameters/parameters_matlab_double_pendulum_ddpg.py
linklab/link_rl
e3d3196dcd49fd71b45941e07fc0d8a27d1d8c99
[ "MIT" ]
null
null
null
codes/a_config/d_matlab_parameters/parameters_matlab_double_pendulum_ddpg.py
linklab/link_rl
e3d3196dcd49fd71b45941e07fc0d8a27d1d8c99
[ "MIT" ]
null
null
null
codes/a_config/d_matlab_parameters/parameters_matlab_double_pendulum_ddpg.py
linklab/link_rl
e3d3196dcd49fd71b45941e07fc0d8a27d1d8c99
[ "MIT" ]
1
2021-11-23T12:30:37.000Z
2021-11-23T12:30:37.000Z
import math from codes.a_config._rl_parameters.off_policy.parameter_ddpg import PARAMETERS_DDPG, \ DDPGActionType, DDPGActionSelectorType from codes.e_utils.names import * from codes.a_config.parameters_general import PARAMETERS_GENERAL, RIPEnvRewardType, RIPEpisodeTerminalCondition class PARAMETERS_DOUBLE_PENDU...
29.344262
111
0.776536
236
1,790
5.457627
0.550847
0.018634
0.015528
0.024845
0
0
0
0
0
0
0
0.07109
0.17486
1,790
60
112
29.833333
0.800948
0.075978
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.1
0
0.975
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
be49826fd3f8b48d9a3fc23f1755d69eb7da5fc5
2,867
py
Python
monitoreo/comunidad/models.py
shiminasai/plataforma_FADCANIC
14831525e4104da7f05ce87e59238f1e4193c184
[ "MIT" ]
null
null
null
monitoreo/comunidad/models.py
shiminasai/plataforma_FADCANIC
14831525e4104da7f05ce87e59238f1e4193c184
[ "MIT" ]
null
null
null
monitoreo/comunidad/models.py
shiminasai/plataforma_FADCANIC
14831525e4104da7f05ce87e59238f1e4193c184
[ "MIT" ]
2
2015-05-19T20:50:41.000Z
2015-05-19T20:51:04.000Z
# -*- coding: utf-8 -*- from django.db import models from sorl.thumbnail import ImageField from cambiaahora.utils import get_file_path from django.contrib.auth.models import User from ckeditor.fields import RichTextField from actividades.fadcanic.models import * from actividades.lugar.models import * from smart_selects...
39.273973
88
0.700732
309
2,867
6.407767
0.391586
0.190909
0.151515
0.157576
0.051515
0
0
0
0
0
0
0.020797
0.194977
2,867
72
89
39.819444
0.837088
0.039414
0
0.071429
0
0
0.117583
0.016382
0
0
0
0
0
1
0.035714
false
0
0.142857
0.035714
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
be4e147b6e8a69866835af58f96ad81b154471c4
703
py
Python
nsfw.py
HelloYeew/kasumi-public
516402a67994bd51fc80fecf45c51b2f9b933cbc
[ "MIT" ]
null
null
null
nsfw.py
HelloYeew/kasumi-public
516402a67994bd51fc80fecf45c51b2f9b933cbc
[ "MIT" ]
null
null
null
nsfw.py
HelloYeew/kasumi-public
516402a67994bd51fc80fecf45c51b2f9b933cbc
[ "MIT" ]
null
null
null
import pornhub from NHentai import NHentai def pornhub_search(word1, word2): keywords = [word1, word2] client = pornhub.PornHub(keywords) result = [] for video in client.getVideos(10, page=2): result.append(video["url"]) result.append(video["name"]) result.append(video["duratio...
25.107143
70
0.664296
81
703
5.716049
0.432099
0.12959
0.183585
0.095032
0
0
0
0
0
0
0
0.016245
0.211949
703
28
71
25.107143
0.819495
0
0
0.227273
0
0
0.053977
0
0
0
0
0
0
1
0.136364
false
0
0.090909
0
0.363636
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
be58503b060e57cb4324af5d432e6f83263939dc
4,148
py
Python
hpc/ase_scripts/mclib_Python/bam.py
McIntyre-Lab/BASE_2020
7bedbbb49e590af6da5bcba829b9d6e329f4d15f
[ "MIT" ]
1
2021-09-01T07:20:21.000Z
2021-09-01T07:20:21.000Z
hpc/ase_scripts/mclib_Python/bam.py
McIntyre-Lab/BASE_2020
7bedbbb49e590af6da5bcba829b9d6e329f4d15f
[ "MIT" ]
2
2021-06-27T18:44:36.000Z
2021-06-28T21:02:58.000Z
hpc/ase_scripts/mclib_Python/bam.py
McIntyre-Lab/BASE_2020
7bedbbb49e590af6da5bcba829b9d6e329f4d15f
[ "MIT" ]
1
2021-09-01T07:20:28.000Z
2021-09-01T07:20:28.000Z
import os.path from collections import defaultdict import numpy as np import pysam class Bam(object): def __init__(self, filename): """ Basic wrapper for pysam module, to allow the quick pulling of pileups for a certain region Arguments: ---------- filename = The full pat...
29.006993
81
0.573288
492
4,148
4.79065
0.333333
0.038184
0.022062
0.04073
0.17989
0.151888
0.123038
0.123038
0.123038
0.123038
0
0.006524
0.33486
4,148
142
82
29.211268
0.847771
0.047011
0
0.117647
0
0
0.025188
0
0
0
0
0
0
0
null
null
0.019608
0.078431
null
null
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
be591aee475f90da38c1a98d534076565f8c1572
438
py
Python
sharptable/formatters/formatter.py
peterbbryan/sharptable
bd09e22a9ebd597aba8c468821fcd2f3ddcd4013
[ "MIT" ]
null
null
null
sharptable/formatters/formatter.py
peterbbryan/sharptable
bd09e22a9ebd597aba8c468821fcd2f3ddcd4013
[ "MIT" ]
1
2021-06-20T03:26:51.000Z
2021-06-20T03:26:51.000Z
sharptable/formatters/formatter.py
peterbbryan/sharptable
bd09e22a9ebd597aba8c468821fcd2f3ddcd4013
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import TYPE_CHECKING if TYPE_CHECKING: from sharptable.tables import Table class Formatter(ABC): """ ABC for sharptable table types. """ @abstractmethod def apply(self, table: "Table") -> None: """ Apply transform to sharptable....
19.043478
54
0.630137
47
438
5.829787
0.574468
0.087591
0
0
0
0
0
0
0
0
0
0
0.294521
438
22
55
19.909091
0.886731
0.26484
0
0
0
0
0.018727
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
be5df7655291c69cedd860fbf15d03e045267556
2,272
py
Python
git_cache/global_settings.py
shinh/gitcache
930c8374cc028c985e72291a7e1f52acf137c776
[ "BSD-3-Clause" ]
5
2020-08-02T17:28:02.000Z
2022-03-18T11:49:37.000Z
git_cache/global_settings.py
shinh/gitcache
930c8374cc028c985e72291a7e1f52acf137c776
[ "BSD-3-Clause" ]
6
2021-11-29T09:01:53.000Z
2022-03-17T16:27:02.000Z
git_cache/global_settings.py
shinh/gitcache
930c8374cc028c985e72291a7e1f52acf137c776
[ "BSD-3-Clause" ]
2
2022-03-10T10:18:02.000Z
2022-03-26T09:48:14.000Z
# -*- coding: utf-8 -*- """ Module for handling the global settings of gitcache. The global settings can't be retrieved from the config.Config class as they are not known in advance or not customizable. Attributes: GITCACHE_DIR (str): The base directory for hosting all gitcache related information includi...
38.508475
96
0.565141
258
2,272
4.899225
0.379845
0.052215
0.050633
0.045095
0.278481
0.278481
0.242089
0.242089
0.242089
0.242089
0
0.003102
0.148768
2,272
58
97
39.172414
0.650465
0.833187
0
0
0
0
0.267956
0
0
0
0
0
0
1
0
false
0
0.166667
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
be637f43b90fade5d9f59a9b6a9c74ca79de6c12
1,299
py
Python
setup.py
mochodek/py-ccflex
fb33fcb5417cc53dc024cc1455ca92adbd9103f4
[ "Apache-2.0" ]
5
2018-12-15T11:08:40.000Z
2021-04-12T09:29:27.000Z
setup.py
mochodek/py-ccflex
fb33fcb5417cc53dc024cc1455ca92adbd9103f4
[ "Apache-2.0" ]
null
null
null
setup.py
mochodek/py-ccflex
fb33fcb5417cc53dc024cc1455ca92adbd9103f4
[ "Apache-2.0" ]
1
2020-10-21T04:26:58.000Z
2020-10-21T04:26:58.000Z
from setuptools import setup setup(name='pyccflex', version='0.2', description='Python Flexible Code Classifier', url='https://github.com/mochodek/py-ccflex', author='', author_email='', license='Apache-2.0', packages=['common', 'prepare'], install_requires=[ '...
29.522727
53
0.558891
127
1,299
5.409449
0.685039
0.048035
0.043668
0.066958
0.078603
0
0
0
0
0
0
0.005599
0.312548
1,299
43
54
30.209302
0.763718
0
0
0
0
0
0.491917
0.197845
0
0
0
0
0
1
0
true
0
0.02381
0
0.02381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
be643cec611e1b437e789fc077b22e3c28452f09
372
py
Python
classy_classification/examples/spacy_zero_shot_external.py
davidberenstein1957/classy-few-shot-classification
4b4a68e65d7d605119607f4b42d1a25ee67f25c5
[ "MIT" ]
28
2022-03-13T15:15:56.000Z
2022-03-31T18:40:20.000Z
classy_classification/examples/spacy_zero_shot_external.py
davidberenstein1957/classy-few-shot-classification
4b4a68e65d7d605119607f4b42d1a25ee67f25c5
[ "MIT" ]
2
2022-03-23T10:29:57.000Z
2022-03-24T09:36:50.000Z
classy_classification/examples/spacy_zero_shot_external.py
Pandora-Intelligence/classy-classification
4b4a68e65d7d605119607f4b42d1a25ee67f25c5
[ "MIT" ]
1
2022-03-07T11:16:53.000Z
2022-03-07T11:16:53.000Z
import spacy import classy_classification # noqa: F401 from .data import training_data, validation_data nlp = spacy.blank("en") nlp.add_pipe("text_categorizer", config={"data": list(training_data.keys()), "cat_type": "zero", "include_sent": True}) print([sent._.cats for sent in nlp(validation_data[0]).sents]) print...
33.818182
119
0.75
56
372
4.767857
0.589286
0.157303
0
0
0
0
0
0
0
0
0
0.011905
0.096774
372
10
120
37.2
0.782738
0.026882
0
0
0
0
0.127778
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
be66e32c052907dbdcbf58e6c0092ce058864999
1,835
py
Python
cloudrail/knowledge/context/aws/sagemaker/sagemaker_notebook_instance.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
cloudrail/knowledge/context/aws/sagemaker/sagemaker_notebook_instance.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
cloudrail/knowledge/context/aws/sagemaker/sagemaker_notebook_instance.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
from typing import List from cloudrail.knowledge.context.aws.kms.kms_key import KmsKey from cloudrail.knowledge.context.aws.service_name import AwsServiceName from cloudrail.knowledge.context.aws.aws_resource import AwsResource class SageMakerNotebookInstance(AwsResource): """ Attributes: nam...
33.981481
89
0.628883
230
1,835
4.817391
0.308696
0.043321
0.036101
0.07852
0.086643
0
0
0
0
0
0
0.002313
0.293188
1,835
53
90
34.622642
0.851966
0.188011
0
0
0
0
0.075246
0.036568
0
0
0
0
0
1
0.2
false
0
0.114286
0.142857
0.542857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
be6c12353569a32ebb75b6b3582c53d1f1eb84ef
2,100
py
Python
api_v3/migrations/0009_added_subscriber.py
DrWhax/id-backend
603abbf4193591932708313662da9b2811f6867a
[ "MIT" ]
null
null
null
api_v3/migrations/0009_added_subscriber.py
DrWhax/id-backend
603abbf4193591932708313662da9b2811f6867a
[ "MIT" ]
1
2021-06-10T23:43:34.000Z
2021-06-10T23:43:34.000Z
api_v3/migrations/0009_added_subscriber.py
DrWhax/id-backend
603abbf4193591932708313662da9b2811f6867a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-01-31 18:21 from __future__ import unicode_literals try: from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.contrib.contenttypes.models import ContentType from django.db import DEFAULT_DB_ALIA...
33.870968
129
0.652381
224
2,100
5.924107
0.495536
0.037679
0.03165
0.049736
0.149209
0.149209
0.087415
0.087415
0.087415
0.087415
0
0.026283
0.239048
2,100
61
130
34.42623
0.80413
0.05
0
0.26
1
0
0.090407
0.024108
0
0
0
0
0
1
0
false
0
0.16
0
0.22
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
be6f30624c517678829b746f901b6cea0f251a6c
6,148
py
Python
example/rnn/char-rnn.py
achao2013/mxnet-quantify
ae77c896da6db35530390e3cf8e524d553bba112
[ "Apache-2.0" ]
4
2017-04-03T11:51:32.000Z
2019-01-16T03:57:47.000Z
example/rnn/char-rnn.py
achao2013/mxnet-quantify
ae77c896da6db35530390e3cf8e524d553bba112
[ "Apache-2.0" ]
null
null
null
example/rnn/char-rnn.py
achao2013/mxnet-quantify
ae77c896da6db35530390e3cf8e524d553bba112
[ "Apache-2.0" ]
null
null
null
import mxnet as mx import numpy as np import random import bisect # set up logging import logging reload(logging) logging.basicConfig(format='%(asctime)s %(levelname)s:%(message)s', level=logging.DEBUG, datefmt='%I:%M:%S') from lstm import lstm_unroll, lstm_inference_symbol from bucket_io import BucketSentence...
32.702128
109
0.62866
873
6,148
4.292096
0.321879
0.016813
0.016013
0.011743
0.072058
0.063517
0.056579
0.056579
0.056579
0.056579
0
0.020076
0.27082
6,148
188
110
32.702128
0.815748
0.213565
0
0.045455
0
0
0.023644
0.005423
0
0
0
0
0.007576
0
null
null
0
0.068182
null
null
0.015152
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
be721b327181d2a1121a7869fe2874d6488c70d1
1,238
py
Python
frappe/core/doctype/version/test_version.py
snehapatil1/frappe
dd2c33e34ad120e6305a2fa230a72d23a7a03e98
[ "MIT" ]
1
2020-12-07T22:35:21.000Z
2020-12-07T22:35:21.000Z
frappe/core/doctype/version/test_version.py
snehapatil1/frappe
dd2c33e34ad120e6305a2fa230a72d23a7a03e98
[ "MIT" ]
11
2018-04-01T18:36:05.000Z
2018-10-04T07:56:07.000Z
frappe/core/doctype/version/test_version.py
snehapatil1/frappe
dd2c33e34ad120e6305a2fa230a72d23a7a03e98
[ "MIT" ]
3
2018-01-16T17:59:55.000Z
2019-09-24T16:02:10.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest, copy from frappe.test_runner import make_test_objects from frappe.core.doctype.version.version import get_diff class TestVersion(unittest.TestCase): def test_g...
30.195122
68
0.75525
201
1,238
4.39801
0.333333
0.033937
0.107466
0.061086
0.383484
0.271493
0.271493
0.144796
0.144796
0.144796
0
0.045788
0.117932
1,238
40
69
30.95
0.763736
0.066236
0
0.074074
0
0
0.08673
0
0
0
0
0
0.222222
1
0.148148
false
0
0.185185
0.111111
0.481481
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
be74cb96348dbaaf8329baae321c19d25bfd234c
9,613
py
Python
modules/utorrent.py
scambra/HTPC-Manager
1a1440db84ae1b6e7a2610c7f3bd5b6adf0aab1d
[ "MIT" ]
422
2015-01-08T14:08:08.000Z
2022-02-07T11:47:37.000Z
modules/utorrent.py
scambra/HTPC-Manager
1a1440db84ae1b6e7a2610c7f3bd5b6adf0aab1d
[ "MIT" ]
581
2015-01-01T08:07:16.000Z
2022-02-23T11:44:37.000Z
modules/utorrent.py
scambra/HTPC-Manager
1a1440db84ae1b6e7a2610c7f3bd5b6adf0aab1d
[ "MIT" ]
115
2015-01-08T14:41:00.000Z
2022-02-13T12:31:17.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'quentingerome' import requests from cherrypy.lib.auth2 import require, member_of import logging import htpc import cherrypy from HTMLParser import HTMLParser from htpc.helpers import striphttp logger = logging.getLogger('modules.utorrent') class AuthTok...
30.810897
186
0.576407
1,159
9,613
4.64107
0.220017
0.024168
0.046849
0.042759
0.279792
0.261201
0.220301
0.164529
0.106897
0.106897
0
0.009927
0.276917
9,613
311
187
30.909968
0.763919
0.019349
0
0.224215
0
0
0.170177
0.016741
0
0
0
0
0
0
null
null
0.040359
0.03139
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
be76fb255ff63b8627d37290d39d39de6381d660
1,131
py
Python
django/privat_gos_sait/product_category/views.py
Netromnik/python
630a9df63b1cade9af38de07bb9cd0c3b8694c93
[ "Apache-2.0" ]
null
null
null
django/privat_gos_sait/product_category/views.py
Netromnik/python
630a9df63b1cade9af38de07bb9cd0c3b8694c93
[ "Apache-2.0" ]
null
null
null
django/privat_gos_sait/product_category/views.py
Netromnik/python
630a9df63b1cade9af38de07bb9cd0c3b8694c93
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from django.views.generic.list import ListView from pattern_for.models import pattern_for as prod_list # Create your views here. from django.shortcuts import get_object_or_404 from .models import items_cat, name_cat class ArticleListView(ListView): model = items_cat queryset...
34.272727
99
0.730327
156
1,131
5.121795
0.384615
0.050063
0.05632
0.062578
0.162703
0.077597
0
0
0
0
0
0.004197
0.157383
1,131
32
100
35.34375
0.834208
0.077807
0
0
0
0
0.102021
0.076035
0
0
0
0
0
1
0.173913
false
0
0.217391
0
0.826087
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
be7739c71cd21a2b2175051bce3fd33da7727597
9,122
py
Python
gfootball/env/football_action_set.py
Tille1408/football
3c7b1990161832379a2b20de22da26127aab0b39
[ "Apache-2.0" ]
2
2021-10-31T01:06:15.000Z
2021-11-08T09:43:23.000Z
gfootball/env/football_action_set.py
Tille1408/football
3c7b1990161832379a2b20de22da26127aab0b39
[ "Apache-2.0" ]
1
2020-02-02T13:05:32.000Z
2020-02-02T13:05:32.000Z
gfootball/env/football_action_set.py
Tille1408/football
3c7b1990161832379a2b20de22da26127aab0b39
[ "Apache-2.0" ]
1
2020-07-19T23:55:51.000Z
2020-07-19T23:55:51.000Z
# coding=utf-8 # Copyright 2019 Google LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
38.817021
80
0.744245
1,145
9,122
5.48821
0.172052
0.103437
0.122215
0.059198
0.472629
0.295194
0.17282
0.114258
0.114258
0.114258
0
0.002139
0.180004
9,122
234
81
38.982906
0.837968
0.135277
0
0.02809
0
0
0.055633
0.002673
0
0
0
0
0.044944
1
0.078652
false
0.123596
0.033708
0.022472
0.202247
0.05618
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
be813e7f341fd061056e0b59b9da04eee3d14273
360
py
Python
Projects/Inventory/Inventory.py
nitrospam/APCSP2020
275f576036805d244c3244f3f3646951940c9575
[ "MIT" ]
null
null
null
Projects/Inventory/Inventory.py
nitrospam/APCSP2020
275f576036805d244c3244f3f3646951940c9575
[ "MIT" ]
null
null
null
Projects/Inventory/Inventory.py
nitrospam/APCSP2020
275f576036805d244c3244f3f3646951940c9575
[ "MIT" ]
null
null
null
start_inventory = 20 num_items = start_inventory while num_items > 0: print("We have " + str(num_items) + " items in inventory.") user_purchase = input("How many would you like to buy? ") if int(user_purchase) > num_items: print("Not Enough Stock") else: num_items = num_items...
30
64
0.644444
51
360
4.333333
0.588235
0.217195
0.135747
0
0
0
0
0
0
0
0
0.01107
0.247222
360
12
65
30
0.804428
0
0
0
0
0
0.24
0
0
0
0
0
0
1
0
false
0
0
0
0
0.3
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
be832b244dbbf8dae39692562ceff95badd64923
3,654
py
Python
api/dc/storage/views.py
klebed/esdc-ce
2c9e4591f344247d345a83880ba86777bb794460
[ "Apache-2.0" ]
97
2016-11-15T14:44:23.000Z
2022-03-13T18:09:15.000Z
api/dc/storage/views.py
klebed/esdc-ce
2c9e4591f344247d345a83880ba86777bb794460
[ "Apache-2.0" ]
334
2016-11-17T19:56:57.000Z
2022-03-18T10:45:53.000Z
api/dc/storage/views.py
klebed/esdc-ce
2c9e4591f344247d345a83880ba86777bb794460
[ "Apache-2.0" ]
33
2017-01-02T16:04:13.000Z
2022-02-07T19:20:24.000Z
from api.decorators import api_view, request_data from api.permissions import IsAdmin, IsSuperAdminOrReadOnly from api.dc.storage.api_views import DcStorageView __all__ = ('dc_storage_list', 'dc_storage') @api_view(('GET',)) @request_data(permissions=(IsAdmin, IsSuperAdminOrReadOnly)) def dc_storage_list(request, d...
35.134615
101
0.610837
421
3,654
5.249406
0.213777
0.061086
0.039819
0.043439
0.674208
0.626244
0.559276
0.559276
0.502262
0.450679
0
0.016661
0.26081
3,654
103
102
35.475728
0.801555
0.748221
0
0.166667
0
0
0.066775
0
0
0
0
0
0
1
0.166667
false
0
0.25
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
be885b8390b8a319ae157b944be59e6312cc589b
4,251
py
Python
tests/bundle/detector_dbchain.py
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
5
2019-10-14T01:06:57.000Z
2021-02-02T16:33:06.000Z
tests/bundle/detector_dbchain.py
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
null
null
null
tests/bundle/detector_dbchain.py
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
null
null
null
Broken, use expressions !/usr/bin/env python from load import ROOT as R R.GNAObject from gna.bundle import execute_bundles import numpy as N from matplotlib import pyplot as P from matplotlib.colors import LogNorm from mpl_tools.helpers import add_colorbar, plot_hist, savefig from gna.env import env import gna.constr...
26.240741
97
0.636791
571
4,251
4.642732
0.394046
0.033195
0.02716
0.014334
0.074689
0.021124
0.021124
0
0
0
0
0.034063
0.226535
4,251
161
98
26.403727
0.772202
0.05434
0
0.017857
0
0
0.127982
0.04514
0
0
0
0
0
0
null
null
0
0.151786
null
null
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
be8a21fe9aa360808314ebebe2bc6d26a77b0099
471
py
Python
chapter11/mysite/blog/models.py
NetworkRanger/python-core
f0aa2c4ce0665e559e85aef04c40c42164cd838a
[ "MIT" ]
1
2018-12-29T15:32:06.000Z
2018-12-29T15:32:06.000Z
chapter11/mysite/blog/models.py
NetworkRanger/python-core
f0aa2c4ce0665e559e85aef04c40c42164cd838a
[ "MIT" ]
null
null
null
chapter11/mysite/blog/models.py
NetworkRanger/python-core
f0aa2c4ce0665e559e85aef04c40c42164cd838a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: NetworkRanger # Date: 2019/8/11 1:51 PM # models.py from django.db import models from django import forms class BlogPost(models.Model): title = models.CharField(max_length=150) body = models.TextField() timestamp = models.DateTimeField() class Me...
22.428571
44
0.66242
57
471
5.45614
0.684211
0.064309
0
0
0
0
0
0
0
0
0
0.037534
0.208068
471
21
45
22.428571
0.796247
0.205945
0
0.166667
0
0
0.051351
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
be8c791db0dfb207cd3f7aaf08406a82457b5675
656
py
Python
_1_Python3_Codes/_4_PySerial_Exceptions.py
xanthium-enterprises/CrossPlatform-Serial-Port-Programming-using-Python-and-PySerial
a8ee902ac8e3fab0aafa844ab6b7a168b7fbedbe
[ "MIT" ]
7
2018-04-24T20:34:31.000Z
2022-03-11T05:06:28.000Z
_1_Python3_Codes/_4_PySerial_Exceptions.py
xanthium-enterprises/CrossPlatform-Serial-Port-Programming-using-Python-and-PySerial
a8ee902ac8e3fab0aafa844ab6b7a168b7fbedbe
[ "MIT" ]
null
null
null
_1_Python3_Codes/_4_PySerial_Exceptions.py
xanthium-enterprises/CrossPlatform-Serial-Port-Programming-using-Python-and-PySerial
a8ee902ac8e3fab0aafa844ab6b7a168b7fbedbe
[ "MIT" ]
6
2018-10-23T08:31:50.000Z
2022-02-21T19:30:03.000Z
# Serial Port exceptions # (c) www.xanthium.in import serial try: SerialObj = serial.Serial('COM17',9600) # open the Serial Port # /dev/ttyUSBx format on Linux # # Eg /dev/ttyUSB0 ...
29.818182
87
0.492378
60
656
5.383333
0.583333
0.123839
0.130031
0
0
0
0
0
0
0
0
0.021053
0.420732
656
21
88
31.238095
0.828947
0.286585
0
0
0
0
0.170306
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.444444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
be9001484a95d18238be22d5f36132bf25c1c4a4
546
py
Python
Supremacy/Qbit_original.py
teaguetomesh/quantum-circuit-generator
0225dc5dee7316d2d144e7b7722e8c7439b30c73
[ "MIT" ]
12
2019-10-30T20:51:04.000Z
2022-02-15T20:47:50.000Z
qcg/Supremacy/Qbit_original.py
weiT1993/helper_functions_weiT1993
88b3aec8024799dada7e2bc9d75ba5293c1bfec1
[ "MIT" ]
null
null
null
qcg/Supremacy/Qbit_original.py
weiT1993/helper_functions_weiT1993
88b3aec8024799dada7e2bc9d75ba5293c1bfec1
[ "MIT" ]
2
2020-10-05T16:10:25.000Z
2021-05-10T03:03:59.000Z
import random as rand class Qbit: def __init__(self, index, prev_1q_gate): self.index = index self.prev_1q_gate = prev_1q_gate self.gate_dict = {'T':('Y','X'), 'Y':('X','T'), 'X': ('T','Y')} def h(self): self.prev_1q_gate = 'H' return self.index def random_gate(se...
26
71
0.584249
86
546
3.406977
0.372093
0.102389
0.170648
0.143345
0
0
0
0
0
0
0
0.027638
0.271062
546
20
72
27.3
0.708543
0.086081
0
0
0
0
0.024194
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
be90f32b7da2a1d003c0ef1a0e2ed26c3f01b6c1
807
py
Python
creator/releases/migrations/0003_add_release_log.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
3
2019-05-04T02:07:28.000Z
2020-10-16T17:47:44.000Z
creator/releases/migrations/0003_add_release_log.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
604
2019-02-21T18:14:51.000Z
2022-02-10T08:13:54.000Z
creator/releases/migrations/0003_add_release_log.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.13 on 2020-11-05 01:57 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('jobs', '0001_move_jobs'), ('releases', '0002_add_release_events'), ] operations = [ migrations.Add...
31.038462
147
0.634449
94
807
5.308511
0.5
0.064128
0.084168
0.132265
0.38477
0.38477
0.38477
0.38477
0.38477
0.38477
0
0.038772
0.232962
807
25
148
32.28
0.767367
0.057001
0
0.210526
1
0
0.152833
0.030303
0
0
0
0
0
1
0
false
0
0.105263
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
be95f913bb96090ab5658b9d1c562e335e180ecc
2,207
py
Python
rbintegrations/asana/fields.py
reviewboard/rbintegrations
31b22a97579a736b985eb1614b0b44c1c2e02f6f
[ "MIT" ]
null
null
null
rbintegrations/asana/fields.py
reviewboard/rbintegrations
31b22a97579a736b985eb1614b0b44c1c2e02f6f
[ "MIT" ]
1
2019-01-18T21:42:57.000Z
2019-01-18T23:32:53.000Z
rbintegrations/asana/fields.py
reviewboard/rbintegrations
31b22a97579a736b985eb1614b0b44c1c2e02f6f
[ "MIT" ]
5
2016-12-07T17:18:10.000Z
2022-02-20T16:31:33.000Z
"""Review Request field definitions for Asana integration.""" from __future__ import unicode_literals from django.utils.translation import ugettext_lazy as _ from reviewboard.integrations.base import get_integration_manager from reviewboard.reviews.fields import BaseEditableField class AsanaField(BaseEditableField)...
30.232877
76
0.657907
252
2,207
5.599206
0.416667
0.073707
0.025514
0.045358
0.04961
0.04961
0.04961
0
0
0
0
0
0.279112
2,207
72
77
30.652778
0.886864
0.325782
0
0
0
0
0.06015
0.02782
0
0
0
0
0
1
0.107143
false
0
0.178571
0
0.607143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
be9a66612e35e159128e6cf79b065ea2da597d55
1,854
py
Python
salt/states/mongodb_database.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:21.000Z
2020-01-02T09:03:21.000Z
salt/states/mongodb_database.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
3
2015-03-31T14:44:05.000Z
2015-06-18T19:02:24.000Z
salt/states/mongodb_database.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:24.000Z
2020-01-02T09:03:24.000Z
# -*- coding: utf-8 -*- ''' Management of Mongodb databases Only deletion is supported, creation doesn't make sense and can be done using mongodb_user.present ''' from __future__ import absolute_import import salt.utils.versions def absent(name, user=None, password=None, host=None,...
25.75
99
0.588457
224
1,854
4.763393
0.383929
0.022493
0.059044
0.044986
0.178069
0.119963
0.067479
0
0
0
0
0.003127
0.31014
1,854
71
100
26.112676
0.831118
0.312298
0
0.166667
0
0
0.275544
0
0
0
0
0
0
1
0.033333
false
0.1
0.066667
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
1
0
0
0
0
0
1
be9d0485809b7770aab91e2612d85df526845608
2,824
py
Python
plot/effect_of_separability.py
garydoranjr/mikernels
9979631e57858eb21a5121c6e99cfa892c4944ad
[ "BSD-3-Clause" ]
null
null
null
plot/effect_of_separability.py
garydoranjr/mikernels
9979631e57858eb21a5121c6e99cfa892c4944ad
[ "BSD-3-Clause" ]
null
null
null
plot/effect_of_separability.py
garydoranjr/mikernels
9979631e57858eb21a5121c6e99cfa892c4944ad
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import numpy as np from scipy.stats import pearsonr import pylab as pl import matplotlib from matplotlib.backends.backend_pdf import PdfPages matplotlib.rcParams['ps.useafm'] = True matplotlib.rcParams['pdf.use14corefonts'] = True matplotlib.rcParams['text.usetex'] = True FONTSIZE = 20 KERNEL = '...
31.377778
98
0.63279
360
2,824
4.769444
0.325
0.034945
0.037274
0.034945
0.202679
0.202679
0.121142
0.052417
0
0
0
0.005685
0.252479
2,824
89
99
31.730337
0.807674
0.007082
0
0.093333
0
0
0.070282
0
0
0
0
0
0
0
null
null
0
0.08
null
null
0.053333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
be9e5583c857217e979807d0aff6e81bdbf5d429
1,815
py
Python
metaprogramming/practice_code/descriptor_rev.py
kmad1729/python_notes
8d94c504fcd9a1adf61788efc0fbe6e7513bbaf4
[ "Unlicense" ]
null
null
null
metaprogramming/practice_code/descriptor_rev.py
kmad1729/python_notes
8d94c504fcd9a1adf61788efc0fbe6e7513bbaf4
[ "Unlicense" ]
null
null
null
metaprogramming/practice_code/descriptor_rev.py
kmad1729/python_notes
8d94c504fcd9a1adf61788efc0fbe6e7513bbaf4
[ "Unlicense" ]
null
null
null
from inspect import Signature, Parameter class Descriptor: def __init__(self, name): self.name = name def __set__(self, instance, val): print("setting %s to %s" % (self.name, val)) instance.__dict__[self.name] = val def __delete(self, instance): print("deleting %s from ins...
25.208333
68
0.621488
223
1,815
4.748879
0.363229
0.045326
0.028329
0.050992
0.167139
0.101983
0.058546
0.058546
0.058546
0
0
0.007386
0.253994
1,815
71
69
25.56338
0.774742
0
0
0.134615
0
0
0.060606
0
0
0
0
0
0
1
0.153846
false
0.038462
0.019231
0.019231
0.596154
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bea0fe93bac16479cc1dac59f95f8b7b452a14dc
2,175
py
Python
RecoBTag/CTagging/python/charmTaggerProducer_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
RecoBTag/CTagging/python/charmTaggerProducer_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
RecoBTag/CTagging/python/charmTaggerProducer_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
import FWCore.ParameterSet.Config as cms from RecoBTag.CTagging.charmTagsComputerCvsL_cfi import * charmTagsComputerCvsB = charmTagsComputerCvsL.clone( weightFile = cms.FileInPath('RecoBTag/CTagging/data/c_vs_b_sklearn.weight.xml'), variables = c_vs_b_vars_vpset ) from Configuration.Eras.Modifier_phase1P...
41.826923
116
0.870805
171
2,175
11
0.321637
0.140351
0.035088
0.063796
0.492291
0.049973
0.049973
0.049973
0.049973
0
0
0.019062
0.05931
2,175
51
117
42.647059
0.900293
0.014253
0
0
0
0
0.041179
0.041179
0
0
0
0
0
1
0
false
0
0.09375
0
0.09375
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bea488eac57cc93ccf9aba9265560b928adc71a3
3,027
py
Python
locustfiles/inbox_test_1.py
NBISweden/LocalEGA-stress-tester
a9e85919b328ed332935a982a75b05cf192d99fb
[ "Apache-2.0" ]
null
null
null
locustfiles/inbox_test_1.py
NBISweden/LocalEGA-stress-tester
a9e85919b328ed332935a982a75b05cf192d99fb
[ "Apache-2.0" ]
1
2019-10-22T06:56:20.000Z
2019-10-22T06:56:20.000Z
locustfiles/inbox_test_1.py
NBISweden/LocalEGA-stress-tester
a9e85919b328ed332935a982a75b05cf192d99fb
[ "Apache-2.0" ]
null
null
null
"""Base Test Design for LocalEGA Inbox Scenario 1. For this test we are aiming to upload an encrypted file. Scenario 1: Upload an encrypted file and disconnect. """ import os import paramiko from ruamel.yaml import YAML from locust import Locust, TaskSet, task from common import log_format, CONFIG_PATH LOG = log_for...
35.197674
82
0.670301
401
3,027
4.935162
0.321696
0.014149
0.012127
0.022233
0.243052
0.199596
0.168267
0.141991
0.141991
0.141991
0
0.010522
0.215064
3,027
85
83
35.611765
0.822391
0.122564
0
0.140351
0
0
0.150192
0.02069
0
0
0
0
0
1
0.070175
false
0.070175
0.087719
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
bea9672d3a7fdcf9c8975f1f47d6b9d5ec91108a
1,311
py
Python
fake_news/preprocessor/nlp_preprocessor.py
ncrypt96/Fake-news
0688c97fc46d2304944935b589c0c61f7d7dbb8c
[ "MIT" ]
1
2020-12-21T16:28:14.000Z
2020-12-21T16:28:14.000Z
fake_news/preprocessor/nlp_preprocessor.py
ncrypt96/Fake-news
0688c97fc46d2304944935b589c0c61f7d7dbb8c
[ "MIT" ]
null
null
null
fake_news/preprocessor/nlp_preprocessor.py
ncrypt96/Fake-news
0688c97fc46d2304944935b589c0c61f7d7dbb8c
[ "MIT" ]
1
2020-02-09T08:52:29.000Z
2020-02-09T08:52:29.000Z
import nltk from nltk.corpus import stopwords from nltk.tokenize import word_tokenize import string from nltk.stem import WordNetLemmatizer class NlpPreprocessing: """ This class contains methods to pre process text to prepare them for NLP """ def __init__(self,text): """ :type text: st...
29.795455
115
0.662853
166
1,311
5.084337
0.409639
0.037915
0.085308
0.066351
0
0
0
0
0
0
0
0
0.281465
1,311
43
116
30.488372
0.895966
0.369947
0
0
0
0
0.009321
0
0
0
0
0
0
1
0.117647
false
0
0.294118
0
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bec1bfd4f3b5ac86a735614aaac6c06567940df0
631
py
Python
kloppy/domain/models/tracking.py
cedrickrause/kloppy
29a997e144c8abb5c18816e2d3e04288b818931d
[ "BSD-3-Clause" ]
5
2021-05-04T12:43:38.000Z
2021-07-04T10:25:35.000Z
kloppy/domain/models/tracking.py
cedrickrause/kloppy
29a997e144c8abb5c18816e2d3e04288b818931d
[ "BSD-3-Clause" ]
null
null
null
kloppy/domain/models/tracking.py
cedrickrause/kloppy
29a997e144c8abb5c18816e2d3e04288b818931d
[ "BSD-3-Clause" ]
null
null
null
from dataclasses import dataclass from typing import List, Dict from kloppy.domain.models.common import DatasetType from .common import Dataset, DataRecord, Player from .pitch import Point @dataclass class Frame(DataRecord): frame_id: int players_coordinates: Dict[Player, Point] ball_coordinates: Point ...
19.121212
52
0.736926
73
631
6.232877
0.493151
0.052747
0.083516
0
0
0
0
0
0
0
0
0
0.18859
631
32
53
19.71875
0.888672
0
0
0.190476
0
0
0.031696
0
0
0
0
0
0
1
0.095238
false
0
0.238095
0.095238
0.761905
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bec613e4b4ab071917dbb25a1bc8c06f3d262404
1,366
py
Python
tests/Google/verifyjwt_old.py
newgene/tornado_auth_orcid
81ad7a3fe0902323edfdd2c8b813ba77fc458da3
[ "Apache-2.0" ]
7
2015-05-09T08:45:44.000Z
2021-04-29T14:06:54.000Z
tests/Google/verifyjwt_old.py
newgene/tornado_auth_orcid
81ad7a3fe0902323edfdd2c8b813ba77fc458da3
[ "Apache-2.0" ]
null
null
null
tests/Google/verifyjwt_old.py
newgene/tornado_auth_orcid
81ad7a3fe0902323edfdd2c8b813ba77fc458da3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from ssl import PEM_cert_to_DER_cert import jwt from tornado.httpclient import AsyncHTTPClient from tornado.escape import to_unicode from Crypto.Util.asn1 import DerSequence from Crypto.PublicKey import RSA class GoogleIdToken: _GOOGLE_CERTS_URI = 'http...
29.695652
72
0.636896
172
1,366
4.831395
0.447674
0.025271
0.021661
0.028881
0.038508
0
0
0
0
0
0
0.005982
0.265739
1,366
45
73
30.355556
0.822532
0.057101
0
0
0
0
0.052181
0
0
0
0
0
0
1
0.117647
false
0.029412
0.235294
0.029412
0.558824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bec67deb39addeca99e866c9c77dced50ef3eba8
6,061
py
Python
pylearn2/datasets/csv_dataset.py
mehdidc/pylearn2
2a4c01d7453896c5130409cb342d68e83eade6fb
[ "BSD-3-Clause" ]
null
null
null
pylearn2/datasets/csv_dataset.py
mehdidc/pylearn2
2a4c01d7453896c5130409cb342d68e83eade6fb
[ "BSD-3-Clause" ]
null
null
null
pylearn2/datasets/csv_dataset.py
mehdidc/pylearn2
2a4c01d7453896c5130409cb342d68e83eade6fb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ A simple general csv dataset wrapper for pylearn2. Can do automatic one-hot encoding based on labels present in a file. """ __authors__ = "Zygmunt Zając" __copyright__ = "Copyright 2013, Zygmunt Zając" __credits__ = ["Zygmunt Zając", "Nicholas Dronen"] __license__ = "3-clause BSD" __maintain...
31.9
78
0.558489
749
6,061
4.364486
0.222964
0.057204
0.041297
0.046803
0.332823
0.311716
0.234628
0.190884
0.104619
0.044662
0
0.007213
0.359512
6,061
189
79
32.068783
0.834879
0.197492
0
0.117117
0
0
0.106433
0
0
0
0
0.010582
0.009009
1
0.027027
false
0
0.063063
0
0.117117
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
fe1ff2a8fb1c71e08e5561aa12175e46f11e541d
979
py
Python
prog_praxis/loopy_loops.py
genos/online_problems
324597e8b64d74ad96dbece551a8220a1b61e615
[ "MIT" ]
1
2020-07-17T13:15:21.000Z
2020-07-17T13:15:21.000Z
prog_praxis/loopy_loops.py
genos/online_problems
324597e8b64d74ad96dbece551a8220a1b61e615
[ "MIT" ]
null
null
null
prog_praxis/loopy_loops.py
genos/online_problems
324597e8b64d74ad96dbece551a8220a1b61e615
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function # If using Python2.x series, print is an expression (not a function) def l1(n): # Mapping print function over an xrange object map(print, xrange(1, n + 1)) return None def l2(n): # Stolen from scheme solution; use and to shortcircuit evaluation ...
19.979592
78
0.565884
150
979
3.66
0.433333
0.091075
0.071038
0.029144
0.196721
0.123862
0.076503
0
0
0
0
0.037037
0.3381
979
48
79
20.395833
0.810185
0.33095
0
0.566667
0
0
0
0
0
0
0
0
0.066667
1
0.233333
false
0
0.033333
0
0.5
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fe214745e0fc8140a912a3ce6ae003aeb57e1eb5
287
py
Python
examples/daylight.py
haarcuba/test_first
804ccd40699345423a44c90c62ced7fcb82f735b
[ "MIT" ]
3
2016-09-24T16:56:48.000Z
2020-01-08T14:15:19.000Z
examples/daylight.py
haarcuba/testix
9cd7975a4b0baf6cadfab8d9405f6d19defe8372
[ "MIT" ]
32
2019-05-03T20:08:47.000Z
2022-02-19T13:53:26.000Z
examples/daylight.py
haarcuba/test_first
804ccd40699345423a44c90c62ced7fcb82f735b
[ "MIT" ]
1
2021-08-23T10:30:51.000Z
2021-08-23T10:30:51.000Z
import datetime def _beforeDawn( hour ): EARLY = 5 return hour < EARLY def nextDaylightDate(): today = datetime.date.today() hour = datetime.datetime.today().hour if _beforeDawn( hour ): return today else: return today + datetime.timedelta( 1 )
20.5
46
0.641115
32
287
5.6875
0.46875
0.153846
0
0
0
0
0
0
0
0
0
0.009479
0.264808
287
13
47
22.076923
0.853081
0
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fe2a9185d5b56f0979d404112443ebdc31fdbe6d
1,227
py
Python
app/models.py
RemoteCodersAtWork/Personal-Workspace
4247d406c351c252f0a43a44feece1f16d017762
[ "MIT" ]
null
null
null
app/models.py
RemoteCodersAtWork/Personal-Workspace
4247d406c351c252f0a43a44feece1f16d017762
[ "MIT" ]
null
null
null
app/models.py
RemoteCodersAtWork/Personal-Workspace
4247d406c351c252f0a43a44feece1f16d017762
[ "MIT" ]
2
2020-11-23T07:19:03.000Z
2020-12-08T02:46:53.000Z
from app import db , login_manager from flask_login import UserMixin from datetime import datetime @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id)) class User(db.Model,UserMixin): __tablename__ = 'users' id = db.Column(db.Integer , primary_key = True) time = db.C...
43.821429
162
0.686227
170
1,227
4.8
0.5
0.058824
0.073529
0.078431
0.090686
0.090686
0.090686
0.090686
0
0
0
0.008205
0.205379
1,227
28
163
43.821429
0.828718
0
0
0
0
0
0.065076
0
0
0
0
0
0
1
0.142857
false
0.047619
0.142857
0.095238
0.809524
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fe30d44235aa770447049833a59b470365e896b6
1,851
py
Python
core/validators.py
UtopiaBe/rsa
b849a9da554155857828dc1b72d682d31b9e5ea9
[ "MIT" ]
6
2018-02-16T15:17:32.000Z
2022-02-23T00:35:53.000Z
core/validators.py
UtopiaBe/ReverseShellArchive
b849a9da554155857828dc1b72d682d31b9e5ea9
[ "MIT" ]
null
null
null
core/validators.py
UtopiaBe/ReverseShellArchive
b849a9da554155857828dc1b72d682d31b9e5ea9
[ "MIT" ]
null
null
null
#!/usr/bin/python import re def validateHost(ip, port, parser): # Check for correct Port address. # up to (65535). port_pattern = re.compile( "^0*(?:6553[0-5]|655[0-2]\d|65[0-4]\d{2}|6[0-4]\d{3}|[1-5]\d{4}|[1-9]\d{1,3}|\d)$") check_port = port_pattern.match(port) # Check for correct IP ad...
34.924528
117
0.54349
275
1,851
3.621818
0.265455
0.056225
0.01506
0.072289
0.420683
0.420683
0.385542
0.385542
0.385542
0.385542
0
0.086761
0.277688
1,851
52
118
35.596154
0.65819
0.103728
0
0.210526
0
0.157895
0.403998
0.114476
0
0
0
0
0
1
0.078947
false
0.052632
0.026316
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fe3243043b92a87fe067659dd72081ff1117ca09
1,861
py
Python
Section 7/Student Resources/Assignment Solution Scripts/assignment_tuples_01_basics.py
t12-hub/Python-Hands-On
951a42efaff56a5f5213bf1873b268c0b3c189c5
[ "MIT" ]
6
2021-01-23T16:40:57.000Z
2022-03-14T16:41:07.000Z
Section 7/Student Resources/Assignment Solution Scripts/assignment_tuples_01_basics.py
t12-hub/Python-Hands-On
951a42efaff56a5f5213bf1873b268c0b3c189c5
[ "MIT" ]
null
null
null
Section 7/Student Resources/Assignment Solution Scripts/assignment_tuples_01_basics.py
t12-hub/Python-Hands-On
951a42efaff56a5f5213bf1873b268c0b3c189c5
[ "MIT" ]
3
2021-01-11T14:27:12.000Z
2021-10-02T16:48:12.000Z
# Tuples # Assignment 1 tuple_numbers = (1, 2, 3, 4, 5) tuple_groceries = ('coconuts', 'bananas', 'onions', 'spinach', 'tomatoes', 'cilantro', 'milk') groceries_inventory = ('coconuts', 'tomatoes', 'onions', 'coconuts', 'bananas', 'onions', 'spinach', 'tomatoes', 'cilantro', 'milk', 'spinach', 'tomatoes', 'cilantro', ...
30.508197
179
0.720043
257
1,861
5.023346
0.272374
0.15182
0.065066
0.048799
0.298993
0.243222
0.074361
0
0
0
0
0.04893
0.12144
1,861
60
180
31.016667
0.740673
0.231596
0
0.263158
0
0
0.309591
0
0
0
0
0
0
1
0
false
0
0
0
0
0.736842
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
fe371b4b92499059229b0cda537741862fbd5e81
1,644
py
Python
tests/visualizer/visualizer_example5.py
anneriet/OpenQL
f47ded9c2ab3840c7c8e6709d2444ff1b010f5dc
[ "Apache-2.0" ]
null
null
null
tests/visualizer/visualizer_example5.py
anneriet/OpenQL
f47ded9c2ab3840c7c8e6709d2444ff1b010f5dc
[ "Apache-2.0" ]
null
null
null
tests/visualizer/visualizer_example5.py
anneriet/OpenQL
f47ded9c2ab3840c7c8e6709d2444ff1b010f5dc
[ "Apache-2.0" ]
null
null
null
from openql import openql as ql import os curdir = os.path.dirname(__file__) output_dir = os.path.join(curdir, 'visualizer_example_output') ql.set_option('output_dir', output_dir) ql.set_option('optimize', 'no') ql.set_option('scheduler', 'ASAP') #ql.set_option('log_level', 'LOG_DEBUG') ql.set_option('log_level', 'LO...
30.444444
114
0.694039
269
1,644
4.048327
0.29368
0.096419
0.080808
0.025712
0.268136
0.213039
0.104683
0.034894
0
0
0
0.02717
0.082117
1,644
54
115
30.444444
0.6945
0.037105
0
0.255319
0
0
0.315424
0.074589
0
0
0
0
0
1
0
false
0.170213
0.042553
0
0.042553
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fe3d6d15422588e3570b3e6f5a8c1062dd28afa9
6,554
py
Python
crown_maps/tfrecords.py
weecology/NEON_crown_maps
2da84d36ae5af44631a6d0489ccb29b212f83fd8
[ "MIT" ]
null
null
null
crown_maps/tfrecords.py
weecology/NEON_crown_maps
2da84d36ae5af44631a6d0489ccb29b212f83fd8
[ "MIT" ]
34
2020-01-30T05:44:47.000Z
2021-02-08T22:51:57.000Z
crown_maps/tfrecords.py
weecology/NEON_crown_maps
2da84d36ae5af44631a6d0489ccb29b212f83fd8
[ "MIT" ]
null
null
null
""" Module: tfrecords Tfrecords creation and reader for improved performance across multi-gpu There were a tradeoffs made in this repo. It would be natural to save the generated prepreprocessed image to tfrecord from the generator. This results in enormous (100x) files. """ import tensorflow as tf import os import cs...
32.127451
177
0.656393
842
6,554
4.973872
0.317102
0.036772
0.024833
0.012894
0.069007
0.047517
0.029608
0.029608
0.029608
0.029608
0
0.012205
0.249924
6,554
203
178
32.285714
0.839707
0.283949
0
0.079208
1
0
0.048866
0
0
0
0
0
0
1
0.049505
false
0.009901
0.108911
0
0.227723
0.019802
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe3f9395f9d8715da95e0c22e38dc053b919416e
3,953
py
Python
census1860.py
xXReneeXx/Census2Ged
bcc3b9c5c1b03178ffe61c5ec450ccb85772b655
[ "Xnet", "X11", "CECILL-B" ]
2
2020-12-03T05:46:11.000Z
2021-04-25T13:12:19.000Z
census1860.py
xXReneeXx/Census2Ged
bcc3b9c5c1b03178ffe61c5ec450ccb85772b655
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
census1860.py
xXReneeXx/Census2Ged
bcc3b9c5c1b03178ffe61c5ec450ccb85772b655
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
#imports import csv from func_defs import * def writeName1860 (c , g, config_dict, source_dict): idn = 0 with open(g, 'a') as the_file: with open(c) as csvfile: reader = csv.DictReader(csvfile) for row in reader: #print "0 @I(unique 3 digit nu...
46.505882
130
0.482671
393
3,953
4.715013
0.249364
0.086886
0.053967
0.086346
0.463573
0.452779
0.452779
0.452779
0.452779
0.452779
0
0.075255
0.405009
3,953
84
131
47.059524
0.712585
0.093094
0
0.571429
0
0
0.147858
0
0
0
0
0
0
1
0.015873
false
0.142857
0.031746
0
0.047619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fe4023aad1384dea1c26bee8818ca7261c3d4070
2,548
py
Python
robot.py
robotika/naio
e31f532284ce972d17cf8c327f6eece107556d11
[ "MIT" ]
null
null
null
robot.py
robotika/naio
e31f532284ce972d17cf8c327f6eece107556d11
[ "MIT" ]
4
2017-11-27T15:12:17.000Z
2017-12-12T05:07:39.000Z
robot.py
robotika/naio
e31f532284ce972d17cf8c327f6eece107556d11
[ "MIT" ]
null
null
null
# a robot with put/get items interface import struct MOTOR_ID = 0x01 ODOMETRY_ID = 0x06 LASER_ID = 0x07 GYRO_ID = 0x0A class Robot: def __init__(self, get, put, annot=None, term=LASER_ID): "provide input and output methods" self.get = get self.put = put self.term = term ...
26.268041
71
0.567896
353
2,548
3.923513
0.29745
0.051986
0.069314
0.069314
0.145126
0.036101
0
0
0
0
0
0.048611
0.321821
2,548
96
72
26.541667
0.752894
0.093799
0
0.058824
0
0
0.050351
0
0
0
0.027239
0
0.044118
1
0.205882
false
0
0.014706
0.014706
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fe42a9dc0601abc7809fdec7832a3c8993d57ef9
2,621
py
Python
honeybot/test.py
Zernerus/honeybot
af33d3a97a82f4ef41044f5788d1ac1260c7a84d
[ "MIT" ]
82
2016-11-11T02:51:18.000Z
2022-01-19T06:32:09.000Z
honeybot/test.py
Zernerus/honeybot
af33d3a97a82f4ef41044f5788d1ac1260c7a84d
[ "MIT" ]
112
2018-07-04T05:55:07.000Z
2021-01-10T04:40:44.000Z
honeybot/test.py
Zernerus/honeybot
af33d3a97a82f4ef41044f5788d1ac1260c7a84d
[ "MIT" ]
94
2016-11-12T12:23:16.000Z
2021-06-07T18:58:32.000Z
import unittest import configparser from main import Bot_core as Bot ''' ':appinv!c5e342c5@gateway/web/cgi-irc/kiwiirc.com/ip.200.200.22.200 PRIVMSG ##bottestingmu :ef' { 'prefix': 'appinv!c5e342c5@gateway/web/cgi-irc/kiwiirc.com/ip.200.200.22.200', 'command': 'PRIVMSG', 'address': '##bottestingmu', 'args': ['##bottest...
24.961905
106
0.571538
295
2,621
4.922034
0.230508
0.062672
0.17011
0.19697
0.43595
0.316804
0.223141
0.223141
0.183196
0.183196
0
0.036335
0.275467
2,621
104
107
25.201923
0.728278
0.007631
0
0.191176
0
0.029412
0.193192
0.067197
0
0
0
0
0.191176
1
0.191176
false
0
0.044118
0
0.25
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe44612c3d4cdb6ca6440aed10e55ff17bd4af7b
7,605
py
Python
simple-exercises/python-exercises/llrbb/redblacklite.py
mithi/algorithm-playground
ee35df7e343544b56c145b3912eca263c566d819
[ "MIT" ]
85
2017-12-19T19:51:51.000Z
2021-05-26T20:00:39.000Z
simple-exercises/python-exercises/llrbb/redblacklite.py
mithi/algorithm-playground
ee35df7e343544b56c145b3912eca263c566d819
[ "MIT" ]
1
2019-01-02T07:00:40.000Z
2019-01-02T07:00:40.000Z
simple-exercises/python-exercises/llrbb/redblacklite.py
mithi/algorithm-playground
ee35df7e343544b56c145b3912eca263c566d819
[ "MIT" ]
34
2018-03-29T11:51:53.000Z
2020-11-17T08:24:51.000Z
RED, BLACK = True, False class Node: def __init__(self, key, value, color, size): self.k = key self.v = value self.left, self.right = None, None self.color = color self.size = size @staticmethod def is_red(current): if current is None: return False...
32.5
82
0.590664
966
7,605
4.545549
0.062112
0.103849
0.047597
0.051013
0.667502
0.613983
0.53678
0.478934
0.436119
0.42496
0
0.00097
0.321893
7,605
234
83
32.5
0.850494
0.016568
0
0.441489
0
0
0
0
0
0
0
0
0.095745
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fe463a285ca1893539b5de88d893a2d199de25f2
1,522
py
Python
examples/models/image.py
kilfu0701/sqlalchemy-samples
0e8eb0f6694079b2e38d5f2aa8d023c25bc0c0ca
[ "MIT" ]
null
null
null
examples/models/image.py
kilfu0701/sqlalchemy-samples
0e8eb0f6694079b2e38d5f2aa8d023c25bc0c0ca
[ "MIT" ]
null
null
null
examples/models/image.py
kilfu0701/sqlalchemy-samples
0e8eb0f6694079b2e38d5f2aa8d023c25bc0c0ca
[ "MIT" ]
null
null
null
from enum import IntEnum from sqlalchemy import Integer, VARCHAR, BOOLEAN, TIMESTAMP, Column from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.sql import func from sqlalchemy.orm import validates Base = declarative_base() class ImageUseType(IntEnum): UseTypeGeneral = 1 UseTypeUserIcon ...
35.395349
114
0.691853
178
1,522
5.780899
0.426966
0.061224
0.073858
0.050535
0.120505
0.120505
0.120505
0.120505
0.120505
0.120505
0
0.014108
0.208279
1,522
42
115
36.238095
0.839834
0
0
0
0
0
0.022996
0
0
0
0
0
0
1
0.029412
false
0
0.147059
0
0.852941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fe4e4e808698eceb37f08b74691eb62337f7213b
1,168
py
Python
sql/SQLAlchemy_demo.py
garyhu1/first-python
01731d419a64aec9683b450d0e8e233f4b5cc9a7
[ "Apache-2.0" ]
1
2019-09-03T11:42:38.000Z
2019-09-03T11:42:38.000Z
sql/SQLAlchemy_demo.py
garyhu1/first-python
01731d419a64aec9683b450d0e8e233f4b5cc9a7
[ "Apache-2.0" ]
null
null
null
sql/SQLAlchemy_demo.py
garyhu1/first-python
01731d419a64aec9683b450d0e8e233f4b5cc9a7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- 'SQLAlchemy 操作数据库' __author__ = 'garyhu' from sqlalchemy import Column,Integer,String,DateTime,create_engine; from sqlalchemy.orm import sessionmaker; from sqlalchemy.ext.declarative import declarative_base; # 创建对象的基类: Base = declarative_base(); class User(Base): ...
23.836735
85
0.695205
133
1,168
5.962406
0.578947
0.081967
0.056747
0
0
0
0
0
0
0
0
0.020429
0.161815
1,168
48
86
24.333333
0.789581
0.160103
0
0
0
0
0.101215
0.057692
0
0
0
0
0
1
0
false
0.076923
0.115385
0
0.615385
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fe4f6a112359b2d533e0d5968d1870d04f5cd1aa
634
py
Python
api/api_personal_pay/util/redis.py
HJaycee/PersonalPay
8999e9322a7739f3f736f89d5c984e296b19aa79
[ "MIT" ]
71
2018-05-23T02:29:06.000Z
2022-02-28T16:37:54.000Z
api/api_personal_pay/util/redis.py
HJaycee/PersonalPay
8999e9322a7739f3f736f89d5c984e296b19aa79
[ "MIT" ]
4
2019-02-18T11:49:52.000Z
2021-01-27T03:00:22.000Z
api/api_personal_pay/util/redis.py
HJaycee/PersonalPay
8999e9322a7739f3f736f89d5c984e296b19aa79
[ "MIT" ]
26
2018-05-29T03:35:21.000Z
2022-02-28T16:37:53.000Z
import redis class Redis: @classmethod def setex(cls, name, time, value): r = redis.StrictRedis(host='127.0.0.1', port=6379, db=0) r.setex(name, time, value) @classmethod def get(cls, name): r = redis.StrictRedis(host='127.0.0.1', port=6379, db=0) value = r.get(name) ...
26.416667
64
0.583596
85
634
4.352941
0.388235
0.113514
0.137838
0.17027
0.351351
0.351351
0.351351
0.351351
0.351351
0.351351
0
0.075388
0.288644
634
23
65
27.565217
0.745011
0.096215
0
0.333333
0
0
0.047368
0
0
0
0
0
0
1
0.166667
false
0
0.055556
0
0.388889
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe519e597fbd4e3861af1f5bb9904bc6a04e98b9
658
py
Python
yah/_api_base/api_storage.py
sunsx0/yah
c073015dfa1fb2b5232c3ec4a9b9dbae571f7053
[ "MIT" ]
null
null
null
yah/_api_base/api_storage.py
sunsx0/yah
c073015dfa1fb2b5232c3ec4a9b9dbae571f7053
[ "MIT" ]
null
null
null
yah/_api_base/api_storage.py
sunsx0/yah
c073015dfa1fb2b5232c3ec4a9b9dbae571f7053
[ "MIT" ]
null
null
null
import typing import dataclasses as dc from .raw_client import RawClient T = typing.TypeVar('T') @dc.dataclass class ApiStorage: _client: RawClient _apis: typing.Dict[typing.Type[typing.Any], typing.Any] = dc.field(default_factory=dict) def get_api(self, api_type: typing.Type[T]) -> T: if not i...
23.5
92
0.682371
90
658
4.822222
0.4
0.112903
0.073733
0.069124
0
0
0
0
0
0
0
0
0.217325
658
27
93
24.37037
0.842718
0
0
0.105263
0
0
0.025836
0
0
0
0
0
0
1
0.052632
false
0
0.157895
0
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fe52ee1c1ab919a3692c594d9b187b18384930a0
1,850
py
Python
tools/sqlmap/lib/core/readlineng.py
glaudsonml/kurgan-ai
c0ad4450f9fb2004f35b8a0201bfe894e01adc8f
[ "Apache-2.0" ]
35
2017-05-22T14:42:01.000Z
2020-09-07T21:24:41.000Z
tools/sqlmap/lib/core/readlineng.py
tmaxter/kurgan-ai
c0ad4450f9fb2004f35b8a0201bfe894e01adc8f
[ "Apache-2.0" ]
null
null
null
tools/sqlmap/lib/core/readlineng.py
tmaxter/kurgan-ai
c0ad4450f9fb2004f35b8a0201bfe894e01adc8f
[ "Apache-2.0" ]
5
2017-12-19T03:36:54.000Z
2021-04-14T18:05:08.000Z
#!/usr/bin/env python """ Copyright (c) 2006-2016 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ from lib.core.data import logger from lib.core.settings import IS_WIN from lib.core.settings import PLATFORM _readline = None try: from readline import * import read...
28.030303
98
0.692432
238
1,850
5.260504
0.516807
0.047923
0.026358
0.030351
0.135783
0.095847
0.095847
0.095847
0.095847
0.095847
0
0.015449
0.23027
1,850
65
99
28.461538
0.863764
0.317297
0
0.421053
0
0
0.136327
0
0
0
0
0
0
1
0.026316
false
0.052632
0.263158
0
0.289474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fe53a7a4b61c77c907bf309b51ded083e4b6595f
425
py
Python
twilio/__init__.py
clearcare/twilio-python
4536bc1422af11098749de4a07aac38cd7f5aa30
[ "MIT" ]
1
2022-03-07T11:09:16.000Z
2022-03-07T11:09:16.000Z
twilio/__init__.py
clearcare/twilio-python
4536bc1422af11098749de4a07aac38cd7f5aa30
[ "MIT" ]
null
null
null
twilio/__init__.py
clearcare/twilio-python
4536bc1422af11098749de4a07aac38cd7f5aa30
[ "MIT" ]
null
null
null
__version_info__ = ('3', '5', '1') __version__ = '.'.join(__version_info__) class TwilioException(Exception): pass class TwilioRestException(TwilioException): def __init__(self, status, uri, msg="", code=None): self.uri = uri self.status = status self.msg = msg self.code = c...
22.368421
76
0.616471
52
425
4.615385
0.480769
0.125
0.108333
0
0
0
0
0
0
0
0
0.009288
0.24
425
18
77
23.611111
0.733746
0
0
0
0
0
0.063529
0
0
0
0
0
0
1
0.166667
false
0.083333
0
0.083333
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fe5e2253c0d857647c8a33e9bc7d5de2c66f2c3a
1,334
py
Python
config_example.py
Axelware/cd-bot
d9b704d50b86ea25238242ae67c93e447b24636e
[ "MIT" ]
1
2022-03-20T00:53:35.000Z
2022-03-20T00:53:35.000Z
config_example.py
Axelware/cd-bot
d9b704d50b86ea25238242ae67c93e447b24636e
[ "MIT" ]
1
2022-03-23T18:38:52.000Z
2022-03-23T22:24:53.000Z
config_example.py
Axelware/cd-bot
d9b704d50b86ea25238242ae67c93e447b24636e
[ "MIT" ]
null
null
null
# Future from __future__ import annotations # Local from cd.enums import Environment ENV: Environment = Environment.DEVELOPMENT IS_DEV: bool = ENV is Environment.DEVELOPMENT ########### # DISCORD # ########### DISCORD_TOKEN: str = "" DISCORD_PREFIX: str = "cb " if IS_DEV else "cd " DM_WEBHOOK_URL: str = "" GUILD_...
15.880952
87
0.544978
136
1,334
5.058824
0.448529
0.043605
0.075581
0.040698
0
0
0
0
0
0
0
0.014191
0.207646
1,334
83
88
16.072289
0.636708
0.053223
0
0.1
0
0
0.100273
0
0
0
0
0
0
1
0
true
0.05
0.05
0
0.05
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
fe624282a47b23b7ea4cb4ba8e1ebbd236cb1721
985
py
Python
examples_basic_usage/running_oas_covariance.py
OVVO-Financial/precise
ce744cadfca18f4ab77c68cc27bf8d712561127f
[ "MIT" ]
null
null
null
examples_basic_usage/running_oas_covariance.py
OVVO-Financial/precise
ce744cadfca18f4ab77c68cc27bf8d712561127f
[ "MIT" ]
null
null
null
examples_basic_usage/running_oas_covariance.py
OVVO-Financial/precise
ce744cadfca18f4ab77c68cc27bf8d712561127f
[ "MIT" ]
null
null
null
from precise.skatertools.syntheticdata.miscellaneous import create_correlated_dataset from precise.skaters.covariance.bufsk import buf_sk_oas_pcov_d0_n100 from precise.skaters.covariance.runemp import run_emp_pcov_d0 from precise.skaters.covarianceutil.statefunctions import oas from pprint import pprint # Basic exampl...
32.833333
85
0.720812
160
985
4.225
0.5
0.065089
0.079882
0.08284
0.053254
0.053254
0
0
0
0
0
0.027569
0.189848
985
29
86
33.965517
0.819549
0.323858
0
0
0
0
0.012232
0
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
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
1
0
0
0
0
1
fe62fccc7998acffe7b6aebc1396a5a5fb4215b3
3,263
py
Python
projects/tests.py
Code-and-Response/ISAC-SIMO-Repo-2
5b0cb0099e128dbacfdc53bf686ef2b069a51bc6
[ "PostgreSQL", "Apache-2.0" ]
5
2021-08-16T16:32:41.000Z
2022-02-22T03:47:49.000Z
projects/tests.py
Code-and-Response/ISAC-SIMO-Repo-2
5b0cb0099e128dbacfdc53bf686ef2b069a51bc6
[ "PostgreSQL", "Apache-2.0" ]
7
2021-04-12T14:48:48.000Z
2022-02-14T08:30:57.000Z
projects/tests.py
Code-and-Response/ISAC-SIMO-Repo-2
5b0cb0099e128dbacfdc53bf686ef2b069a51bc6
[ "PostgreSQL", "Apache-2.0" ]
1
2021-04-28T14:28:34.000Z
2021-04-28T14:28:34.000Z
from django.test import TestCase from django.urls import resolve, reverse from . import views from django.contrib.staticfiles import finders from .models import Projects from .forms import ProjectForm from django.core.files.uploadedfile import SimpleUploadedFile class TestProjectsUrl(TestCase): def test_project_...
37.079545
117
0.672387
373
3,263
5.713137
0.27882
0.042703
0.063351
0.092914
0.35007
0.286251
0
0
0
0
0
0.005031
0.208091
3,263
87
118
37.505747
0.819659
0
0
0.029851
0
0
0.12749
0
0
0
0
0
0.19403
1
0.208955
false
0
0.104478
0
0.358209
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fe63e7c5f456bb9c7f6464670afd75155156f322
467
py
Python
plotly/validators/scatter/_mode.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/scatter/_mode.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/scatter/_mode.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): def __init__(self, plotly_name='mode', parent_name='scatter', **kwargs): super(ModeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit...
29.1875
76
0.601713
44
467
5.954545
0.613636
0.114504
0.19084
0
0
0
0
0
0
0
0
0
0.27409
467
15
77
31.133333
0.772861
0
0
0
0
0
0.083512
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.25
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe6b0fa9926f0842442be49b31ada546f48b2b59
1,553
py
Python
ccp/client.py
prezi/changelog-client-python
434802940b1d96446db345400e3e12f7a96b50ae
[ "MIT" ]
null
null
null
ccp/client.py
prezi/changelog-client-python
434802940b1d96446db345400e3e12f7a96b50ae
[ "MIT" ]
null
null
null
ccp/client.py
prezi/changelog-client-python
434802940b1d96446db345400e3e12f7a96b50ae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ccp.client ~~~~~~~~~~~~ This module implements the Changelog API. :license: MIT, see LICENSE for more details. """ import requests import json from time import time from pkg_resources import get_distribution API_HOST = "localhost" API_PORT = 5000 SEVERITY = dict(INFO=1, NOTIFICATION=2,...
26.322034
81
0.574372
188
1,553
4.648936
0.5
0.036613
0.036613
0.043478
0.064073
0.064073
0.064073
0
0
0
0
0.010929
0.292981
1,553
58
82
26.775862
0.785064
0.013522
0
0
0
0
0.156139
0
0
0
0
0
0
0
null
null
0
0.105263
null
null
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
1
0
0
0
0
0
0
0
0
1
fe73e18817f0994709be573f1a83986123ef7a80
566
py
Python
var/spack/repos/builtin/packages/debbuild/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/debbuild/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/debbuild/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Debbuild(AutotoolsPackage): """Build deb packages from rpm specifications.""" homepag...
31.444444
97
0.745583
68
566
6.191176
0.794118
0.052257
0.066508
0.104513
0.142518
0
0
0
0
0
0
0.13963
0.139576
566
17
98
33.294118
0.724846
0.411661
0
0
0
0.166667
0.533951
0.197531
0
0
0
0
0
1
0
false
0
0.166667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fe785ffb42532f81a7b51b95e11ecba2b26d721b
3,183
py
Python
archiveit/hosts.py
jman005/ArchiveIt
f0aad52e0def13d4c16674d39caa20d2eca2d863
[ "BSD-2-Clause" ]
1
2019-12-03T01:00:24.000Z
2019-12-03T01:00:24.000Z
archiveit/hosts.py
jman005/ArchiveIt
f0aad52e0def13d4c16674d39caa20d2eca2d863
[ "BSD-2-Clause" ]
1
2021-09-24T23:08:45.000Z
2021-09-24T23:08:45.000Z
archiveit/hosts.py
jman005/ArchiveIt
f0aad52e0def13d4c16674d39caa20d2eca2d863
[ "BSD-2-Clause" ]
null
null
null
import requests from requests.exceptions import RequestException import ftplib from io import BytesIO import time import logging logger = logging.getLogger("archiveit.host") class HostException(Exception): pass class Host(): def __init__(self): pass def upload(self, file: bytes, name=None): ...
29.472222
94
0.56142
368
3,183
4.771739
0.32337
0.025626
0.028474
0.034169
0.375285
0.239749
0.180524
0.164009
0.164009
0.164009
0
0.012975
0.322023
3,183
107
95
29.747664
0.800741
0.06409
0
0.337662
0
0
0.177073
0
0
0
0.004094
0
0
1
0.103896
false
0.064935
0.077922
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fe7cfaca5c2d9476da6741e55c4c074bca82ca4d
6,258
py
Python
DemOpenGL/NeHe/lesson48/NeHeGL.py
ismaelxyz/graphic-concentration
2573ed7dc5df907bf5fe89704bf3f009cb083784
[ "MIT" ]
1
2021-08-22T01:59:27.000Z
2021-08-22T01:59:27.000Z
DemOpenGL/NeHe/lesson48/NeHeGL.py
ismaelxyz/graphic-concentration
2573ed7dc5df907bf5fe89704bf3f009cb083784
[ "MIT" ]
null
null
null
DemOpenGL/NeHe/lesson48/NeHeGL.py
ismaelxyz/graphic-concentration
2573ed7dc5df907bf5fe89704bf3f009cb083784
[ "MIT" ]
null
null
null
# /*********************************************** # * * # * Jeff Molofee's Revised OpenGL Basecode * # * Huge Thanks To Maxwell Sayles & Peter Puck * # * http://nehe.gamedev.net * # * 2001 * # * ...
35.556818
102
0.650048
856
6,258
4.719626
0.456776
0.00396
0.003713
0.00396
0.016089
0.001733
0
0
0
0
0
0.02253
0.262384
6,258
175
103
35.76
0.852686
0.67194
0
0.035714
0
0
0.037321
0
0
0
0
0
0
0
null
null
0
0.107143
null
null
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fe7f465210972af25385018c155221f40f8a5fad
1,251
py
Python
setup.py
fyilmazz/iyzipay-python
92247865276b21f1cc8e3e04c1f585d3c7124c07
[ "MIT" ]
null
null
null
setup.py
fyilmazz/iyzipay-python
92247865276b21f1cc8e3e04c1f585d3c7124c07
[ "MIT" ]
null
null
null
setup.py
fyilmazz/iyzipay-python
92247865276b21f1cc8e3e04c1f585d3c7124c07
[ "MIT" ]
null
null
null
import os from setuptools import find_packages, setup with open('README.md') as f: README = f.read() with open('LICENSE') as f: LICENSE = f.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) install_requires = [ 'requests >= 0....
29.093023
78
0.63789
146
1,251
5.376712
0.547945
0.145223
0.191083
0.132484
0
0
0
0
0
0
0
0.014257
0.215028
1,251
42
79
29.785714
0.785132
0.030376
0
0
0
0
0.461602
0
0
0
0
0
0
1
0
false
0
0.057143
0
0.057143
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe892fcbd75c1fca9627ccaced3be1e3e5e4a1fd
28,449
py
Python
zepid/graphics/graphics.py
CamDavidsonPilon/zepid
84d41fa7cba5db71bdd9745cf778adb4a6694556
[ "MIT" ]
2
2020-05-02T21:04:53.000Z
2020-06-01T14:33:05.000Z
zepid/graphics/graphics.py
CamDavidsonPilon/zepid
84d41fa7cba5db71bdd9745cf778adb4a6694556
[ "MIT" ]
null
null
null
zepid/graphics/graphics.py
CamDavidsonPilon/zepid
84d41fa7cba5db71bdd9745cf778adb4a6694556
[ "MIT" ]
3
2019-01-10T21:33:04.000Z
2020-12-21T18:32:50.000Z
""" Contains useful graphic generators. Currently, effect measure plots and functional form assessment plots are implemented. Uses matplotlib to generate graphics. Future inclusions include forest plots Contents: Functional form assessment- func_form_plot() Forest plot/ effect measure plot- EffectMeasurePlot() ...
46.409462
125
0.593237
3,760
28,449
4.408777
0.18484
0.017735
0.008687
0.013573
0.271159
0.228992
0.200881
0.192797
0.177716
0.164746
0
0.014299
0.294492
28,449
612
126
46.485294
0.811619
0.42121
0
0.194268
1
0
0.119373
0.011
0
0
0
0
0
1
0.028662
false
0.009554
0.035032
0
0.085987
0.038217
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe94f422abf98846d67ebe5765a5b5196266d8e2
2,658
py
Python
src/trans_e/add_inverse_relations.py
Kaleidophon/BARBarA
04ea739dd32c8b38c82111cf4761ebeef2d72689
[ "Unlicense" ]
null
null
null
src/trans_e/add_inverse_relations.py
Kaleidophon/BARBarA
04ea739dd32c8b38c82111cf4761ebeef2d72689
[ "Unlicense" ]
null
null
null
src/trans_e/add_inverse_relations.py
Kaleidophon/BARBarA
04ea739dd32c8b38c82111cf4761ebeef2d72689
[ "Unlicense" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ This script is used to add inverse relations to a *Freebase* relations dataset, e.g. */location/location/contains* and */location/location/containedby*. """ # STANDARD import argparse import codecs from collections import defaultdict def main(): """ The main function. ...
29.208791
103
0.723853
344
2,658
5.427326
0.325581
0.137118
0.03053
0.038565
0.097483
0.052491
0.052491
0.052491
0.052491
0.052491
0
0.007143
0.157261
2,658
91
104
29.208791
0.826339
0.029722
0
0.22449
0
0
0.08514
0
0
0
0
0
0
0
null
null
0
0.061224
null
null
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fe9c58cda671d200578d2db4276ba62d3f53072d
736
py
Python
CARDISYS - Heart Disease Prediction System/API/training.py
Tabish-Amin/data-science-portfolio
9ce9fd3194cb39ac1fd6a567f3671f5a4d6dcfb4
[ "MIT" ]
null
null
null
CARDISYS - Heart Disease Prediction System/API/training.py
Tabish-Amin/data-science-portfolio
9ce9fd3194cb39ac1fd6a567f3671f5a4d6dcfb4
[ "MIT" ]
null
null
null
CARDISYS - Heart Disease Prediction System/API/training.py
Tabish-Amin/data-science-portfolio
9ce9fd3194cb39ac1fd6a567f3671f5a4d6dcfb4
[ "MIT" ]
1
2021-03-04T10:37:56.000Z
2021-03-04T10:37:56.000Z
#Importing pandas library import pandas as pd #Importing numpy library import numpy as np #upload dataset data=pd.read_csv('Heart.csv') #Importing naive bayes model from sklearn.naive_bayes import GaussianNB #load model NaiveBayes=GaussianNB() #drop target column X = data.drop('target',axis=1) ...
19.891892
88
0.748641
114
736
4.701754
0.482456
0.061567
0.059701
0.05597
0
0
0
0
0
0
0
0.006515
0.165761
736
36
89
20.444444
0.86645
0.296196
0
0
0
0
0.078891
0
0
0
0
0
0
1
0
false
0
0.384615
0
0.384615
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fe9fb13ac696859a41f5594020f2c33c51bf69f8
8,902
py
Python
autocnet/graph/asynchronous_funcs.py
readthedocs-assistant/autocnet
579cccd0edc4cd870b5d9671165ebd830f1112b8
[ "CC0-1.0" ]
17
2016-11-21T17:07:18.000Z
2022-01-16T06:14:04.000Z
autocnet/graph/asynchronous_funcs.py
readthedocs-assistant/autocnet
579cccd0edc4cd870b5d9671165ebd830f1112b8
[ "CC0-1.0" ]
504
2015-12-17T18:46:11.000Z
2021-12-17T19:19:49.000Z
autocnet/graph/asynchronous_funcs.py
readthedocs-assistant/autocnet
579cccd0edc4cd870b5d9671165ebd830f1112b8
[ "CC0-1.0" ]
42
2015-12-09T15:30:15.000Z
2022-02-24T04:47:46.000Z
import json import time from sqlalchemy import insert from sqlalchemy.sql.expression import bindparam from autocnet.io.db.model import Points, Measures from autocnet.utils.serializers import object_hook from autocnet.transformation.spatial import reproject, og2oc def watch_insert_queue(queue, queue_name, counter_nam...
47.351064
113
0.602224
1,094
8,902
4.810786
0.23766
0.020901
0.01064
0.01064
0.67604
0.65742
0.634619
0.634619
0.634619
0.634619
0
0.001184
0.33588
8,902
187
114
47.604278
0.889039
0.504269
0
0.27027
0
0
0.079783
0.006649
0
0
0
0
0
1
0.027027
false
0
0.094595
0
0.121622
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fea095fdad397a465c29db8c18040ad92e840aee
1,051
py
Python
src/API.py
Hunte3r/barakis
208a3b073915493788197475ed8f54e2edb5feaa
[ "MIT" ]
2
2021-07-06T11:22:05.000Z
2022-01-29T09:47:16.000Z
src/API.py
Hunte3r/barakis
208a3b073915493788197475ed8f54e2edb5feaa
[ "MIT" ]
null
null
null
src/API.py
Hunte3r/barakis
208a3b073915493788197475ed8f54e2edb5feaa
[ "MIT" ]
3
2021-07-06T08:29:24.000Z
2021-10-03T10:28:18.000Z
import json from flask import Flask, jsonify, request from bot import add, remove, active app = Flask(__name__) @app.route("/") def hello(): return jsonify({'response': 'This is the Barakis API'}) @app.route("/start", methods=['POST']) def start(): response = json.loads(request.data) if add( r...
21.44898
59
0.594672
112
1,051
5.544643
0.321429
0.146538
0.236715
0.115942
0.539453
0.539453
0.394525
0.394525
0.394525
0.394525
0
0
0.23882
1,051
48
60
21.895833
0.77625
0
0
0.526316
0
0
0.159848
0
0
0
0
0
0
1
0.105263
false
0.026316
0.078947
0.026316
0.368421
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
feade1166b5dfc6fa20a2ea92474e0c86f3b4a71
4,141
py
Python
tests/pyfunc/test_spark.py
parkerzf/mlflow
58f70d522d439ab26f777dbd32de77f79c0235bc
[ "Apache-2.0" ]
12
2018-08-11T08:25:31.000Z
2018-08-28T23:41:23.000Z
tests/pyfunc/test_spark.py
kmader/mlflow
781ce394953c7857b19c84dc937964a806b62798
[ "Apache-2.0" ]
17
2018-08-11T00:26:26.000Z
2018-08-29T10:14:17.000Z
tests/pyfunc/test_spark.py
kmader/mlflow
781ce394953c7857b19c84dc937964a806b62798
[ "Apache-2.0" ]
3
2018-08-21T15:14:51.000Z
2019-11-06T23:25:32.000Z
from __future__ import print_function import os import shutil import sys import tempfile import unittest import pandas as pd import pyspark import pytest import sklearn.datasets from sklearn.neighbors import KNeighborsClassifier from mlflow.pyfunc import load_pyfunc, spark_udf from mlflow.pyfunc.spark_model_cache im...
43.135417
98
0.694035
555
4,141
4.996396
0.362162
0.031735
0.025965
0.010097
0.271186
0.239452
0.225027
0.225027
0.163
0.122611
0
0.016489
0.209128
4,141
95
99
43.589474
0.830229
0.188602
0
0.119403
0
0
0.054094
0.014943
0
0
0
0.010526
0.134328
1
0.089552
false
0
0.208955
0
0.343284
0.014925
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
feb42127883f9142d87edbda6b834a78e6cf3c55
808
py
Python
taiga/users/migrations/0023_json_to_jsonb.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
null
null
null
taiga/users/migrations/0023_json_to_jsonb.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
12
2019-11-25T14:08:32.000Z
2021-06-24T10:35:51.000Z
taiga/users/migrations/0023_json_to_jsonb.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-26 11:35 from __future__ import unicode_literals from django.db import migrations from django.contrib.postgres.fields import JSONField class Migration(migrations.Migration): dependencies = [ ('users', '0022_auto_20160629_1443'), ] ...
27.862069
115
0.534653
78
808
5.333333
0.679487
0.072115
0
0
0
0
0
0
0
0
0
0.07635
0.335396
808
28
116
28.857143
0.698324
0.084158
0
0.125
1
0
0.099366
0.048626
0
0
0
0
0
1
0
false
0
0.1875
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1