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
76962d61c1b2f04adb932837a27a2b230613e67b
1,281
py
Python
machine.py
matias-pierobon/fod
4b75ad1c7aabed319d5ad8f28a982a21e2577e96
[ "MIT" ]
null
null
null
machine.py
matias-pierobon/fod
4b75ad1c7aabed319d5ad8f28a982a21e2577e96
[ "MIT" ]
null
null
null
machine.py
matias-pierobon/fod
4b75ad1c7aabed319d5ad8f28a982a21e2577e96
[ "MIT" ]
null
null
null
def run(file): variables = {} def get(var): if(var.isdigit()): return int(var) return variables[var] def assing(var, value): variables[var] = get(value) return variables[var] def invert(var): variables[var] = -variables[var] retu...
26.142857
47
0.492584
138
1,281
4.572464
0.355072
0.171157
0.114105
0.133122
0.07607
0
0
0
0
0
0
0.012484
0.374707
1,281
49
48
26.142857
0.775281
0.070258
0
0.108108
0
0
0.014322
0
0
0
0
0
0
1
0.216216
false
0
0
0.027027
0.486486
0.027027
0
0
0
null
0
0
0
0
0
0
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
76982843fcdf40f516a1d553572bab00942a874e
2,237
py
Python
packs/jmx/actions/invoke_method.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
164
2015-01-17T16:08:33.000Z
2021-08-03T02:34:07.000Z
packs/jmx/actions/invoke_method.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
442
2015-01-01T11:19:01.000Z
2017-09-06T23:26:17.000Z
packs/jmx/actions/invoke_method.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
202
2015-01-13T00:37:40.000Z
2020-11-07T11:30:10.000Z
import os import re from st2common.util.shell import run_command from st2actions.runners.pythonrunner import Action __all__ = [ 'JAR_PATH' ] CURRENT_DIR = os.path.dirname(os.path.abspath(__file__)) JAR_PATH = os.path.join(CURRENT_DIR, '../extern/cmdline-jmxclient/cmdline-jmxclient-0.10.3.jar') JAR_PATH = os.path...
29.051948
96
0.562807
233
2,237
5.283262
0.334764
0.028432
0.048741
0.04143
0.240455
0.240455
0.240455
0.240455
0.240455
0.240455
0
0.00466
0.328565
2,237
76
97
29.434211
0.814913
0
0
0.172414
0
0
0.137684
0.025034
0
0
0
0
0
1
0.034483
false
0.103448
0.068966
0
0.155172
0
0
0
0
null
0
0
0
0
0
0
0
0
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
76996a8bebd3236bad2a5cc6cba5877e502dfbe4
3,086
py
Python
software/multifluids_icferst/examples/water_collapse/plot_data.py
msc-acse/acse-9-independent-research-project-Wade003
cfcba990d52ccf535171cf54c0a91b184db6f276
[ "MIT" ]
2
2020-05-11T02:39:46.000Z
2020-05-11T03:08:38.000Z
software/multifluids_icferst/examples/water_collapse/plot_data.py
msc-acse/acse-9-independent-research-project-Wade003
cfcba990d52ccf535171cf54c0a91b184db6f276
[ "MIT" ]
null
null
null
software/multifluids_icferst/examples/water_collapse/plot_data.py
msc-acse/acse-9-independent-research-project-Wade003
cfcba990d52ccf535171cf54c0a91b184db6f276
[ "MIT" ]
2
2020-05-21T22:50:19.000Z
2020-10-28T17:16:31.000Z
#!/usr/bin/env python import vtk import glob import sys import os import vtktools import operator import numpy import pylab import fluidity_tools # first extract the water gauge data from the vtus def get_water_depths(filelist, xarray, delta): results = [] for f in filelist: try: os.stat(f) except: ...
30.254902
144
0.666883
451
3,086
4.527716
0.312639
0.023996
0.03428
0.021548
0.370225
0.318315
0.274241
0.274241
0.274241
0.222331
0
0.023646
0.150356
3,086
101
145
30.554455
0.755149
0.071614
0
0.246753
0
0
0.133963
0.027282
0
0
0
0
0
0
null
null
0
0.116883
null
null
0.012987
0
0
0
null
0
0
0
0
0
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
76a153b7ecf0b0ce0d8e5a7be52c3ea73908a1c5
3,168
py
Python
src/particle_filter.py
junprog/dense-checker
a2c0950839eb6a557111978f2abd02ff98fb3a14
[ "MIT" ]
null
null
null
src/particle_filter.py
junprog/dense-checker
a2c0950839eb6a557111978f2abd02ff98fb3a14
[ "MIT" ]
null
null
null
src/particle_filter.py
junprog/dense-checker
a2c0950839eb6a557111978f2abd02ff98fb3a14
[ "MIT" ]
null
null
null
import sys # sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages') import cv2 import numpy as np class ParicleFilter(object): def __init__(self, particles_num): self.img_w = 640 self.img_h = 480 self.particles_num = particles_num self.particles = np.empty([2, self.particle...
38.634146
139
0.584912
444
3,168
4.04955
0.20045
0.202447
0.097887
0.03337
0.395996
0.343715
0.270857
0.25584
0.25584
0.155729
0
0.033795
0.271465
3,168
82
139
38.634146
0.745234
0.044823
0
0.171875
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.046875
0.015625
0.265625
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
76a3c6bdde6052cbc8269962bab8e2ebf4caf0fb
870
py
Python
LaNuitDeLInfo2021/home/migrations/0003_auto_20211202_1907.py
RobinHCK/LaNuitDeLInfo2021
2f145f6e1fb65b57ce0f50a735c78d4a93bd2335
[ "MIT" ]
null
null
null
LaNuitDeLInfo2021/home/migrations/0003_auto_20211202_1907.py
RobinHCK/LaNuitDeLInfo2021
2f145f6e1fb65b57ce0f50a735c78d4a93bd2335
[ "MIT" ]
null
null
null
LaNuitDeLInfo2021/home/migrations/0003_auto_20211202_1907.py
RobinHCK/LaNuitDeLInfo2021
2f145f6e1fb65b57ce0f50a735c78d4a93bd2335
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-12-02 18:07 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('home', '0002_auto_20211202_1848'), ] operations = [ migrations.RemoveField( model_name='rescue'...
30
150
0.617241
100
870
5.22
0.47
0.061303
0.08046
0.126437
0.509579
0.509579
0.509579
0.35249
0.35249
0.35249
0
0.04784
0.255172
870
28
151
31.071429
0.757716
0.051724
0
0.363636
1
0
0.125152
0.027947
0
0
0
0
0
1
0
false
0
0.090909
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
76ad80301804f2c1831a2e029fe4e5a2daa3210f
1,959
py
Python
init_site.py
iBobbyTS/Basket
825e79f7f48bea347f1c6217fa66f007afb18961
[ "Apache-2.0" ]
null
null
null
init_site.py
iBobbyTS/Basket
825e79f7f48bea347f1c6217fa66f007afb18961
[ "Apache-2.0" ]
null
null
null
init_site.py
iBobbyTS/Basket
825e79f7f48bea347f1c6217fa66f007afb18961
[ "Apache-2.0" ]
null
null
null
import sqlite3 conn = sqlite3.connect('db.sqlite3') c = conn.cursor() cmds = [ # Admin ''' CREATE TABLE Accounts ( Username TEXT PRIMARY KEY NOT NULL, Type INT NOT NULL, SHA1Password TEXT NOT NULL ); ''', # Teacher "INSERT INTO Accounts VALUES ...
27.985714
108
0.558448
185
1,959
5.913514
0.372973
0.115174
0.070384
0.077697
0.205667
0.128885
0.107861
0
0
0
0
0.097733
0.347116
1,959
69
109
28.391304
0.757623
0.05462
0
0
0
0
0.652616
0.255814
0
0
0
0
0
1
0
false
0
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
76adfbe932b264c0aca1397d7d7102f2074e50c5
1,337
py
Python
python_modules/dagster/dagster/core/execution/validate_run_config.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/execution/validate_run_config.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/execution/validate_run_config.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
1
2021-09-26T07:29:17.000Z
2021-09-26T07:29:17.000Z
from typing import Any, Dict, Optional from dagster import check from dagster.core.definitions import PipelineDefinition from dagster.core.system_config.objects import ResolvedRunConfig def validate_run_config( pipeline_def: PipelineDefinition, run_config: Optional[Dict[str, Any]] = None, mode: Optional[...
40.515152
97
0.747943
176
1,337
5.534091
0.352273
0.092402
0.041068
0.065708
0.216632
0.147844
0.092402
0
0
0
0
0
0.177263
1,337
32
98
41.78125
0.885455
0.442782
0
0
0
0
0.037249
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
76b28b1926fb129838a72deb253fc62eaca69b1a
6,738
py
Python
figures/tasks.py
TheMOOCAgency/figures
4f991ed32626c25b4d67300c9b8019a36c5db297
[ "MIT" ]
1
2020-07-27T19:50:53.000Z
2020-07-27T19:50:53.000Z
figures/tasks.py
TheMOOCAgency/figures
4f991ed32626c25b4d67300c9b8019a36c5db297
[ "MIT" ]
3
2020-06-05T21:19:02.000Z
2022-02-10T18:09:04.000Z
figures/tasks.py
TheMOOCAgency/figures
4f991ed32626c25b4d67300c9b8019a36c5db297
[ "MIT" ]
null
null
null
''' Figures Celery tasks. Initially this module contains tasks for the ETL pipeline. ''' import datetime import time from django.contrib.sites.models import Site from django.utils.timezone import utc from celery import chord from celery.app import shared_task from celery.utils.log import get_task_logger from opened...
35.650794
91
0.684773
874
6,738
5.062929
0.254005
0.055367
0.024859
0.031638
0.272994
0.230508
0.171299
0.16113
0.144859
0.108475
0
0.000389
0.237459
6,738
188
92
35.840426
0.860841
0.286435
0
0.264151
0
0
0.129951
0.059944
0
0
0
0.021277
0
1
0.04717
false
0
0.141509
0
0.207547
0
0
0
0
null
0
0
0
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
76b2d1dae7153f0b4994f0e54d9df01ca2081654
1,133
py
Python
scripts/tcp_server.py
taoyimin/omnicontrol
f3418990b310cb35ab0fa316188b789d79f23c23
[ "Apache-2.0" ]
null
null
null
scripts/tcp_server.py
taoyimin/omnicontrol
f3418990b310cb35ab0fa316188b789d79f23c23
[ "Apache-2.0" ]
null
null
null
scripts/tcp_server.py
taoyimin/omnicontrol
f3418990b310cb35ab0fa316188b789d79f23c23
[ "Apache-2.0" ]
1
2019-06-18T02:30:45.000Z
2019-06-18T02:30:45.000Z
import socket import time import threading class TcpServer (threading.Thread): def __init__(self, port): threading.Thread.__init__(self) self.addr = ('', port) self.thread = threading.Thread() self.server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.server.settim...
24.630435
71
0.540159
120
1,133
4.95
0.441667
0.10101
0.047138
0
0
0
0
0
0
0
0
0.01752
0.345102
1,133
46
72
24.630435
0.783019
0.026478
0
0
0
0
0.029064
0
0
0
0
0
0
0
null
null
0.028571
0.085714
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
76b722f1d5f65eda7ae95c18f59b79c36969bbf0
2,094
py
Python
chapter6_operation_management/paramater_based_pattern/src/configurations.py
sudabon/ml-system-in-actions
4fb1b3e53e4ed7c36e82f7d4b5570e3959aef525
[ "MIT" ]
133
2021-04-24T09:57:58.000Z
2022-03-29T06:23:56.000Z
chapter6_operation_management/paramater_based_pattern/src/configurations.py
sudabon/ml-system-in-actions
4fb1b3e53e4ed7c36e82f7d4b5570e3959aef525
[ "MIT" ]
6
2021-04-24T09:58:40.000Z
2021-11-19T04:04:40.000Z
chapter6_operation_management/paramater_based_pattern/src/configurations.py
sudabon/ml-system-in-actions
4fb1b3e53e4ed7c36e82f7d4b5570e3959aef525
[ "MIT" ]
40
2021-05-21T23:32:40.000Z
2022-03-30T00:33:08.000Z
import os from logging import getLogger from src.constants import CONSTANTS, IRIS, PLATFORM_ENUM logger = getLogger(__name__) class PlatformConfigurations: platform = os.getenv("PLATFORM", PLATFORM_ENUM.DOCKER.value) if not PLATFORM_ENUM.has_value(platform): raise ValueError(f"PLATFORM must be one o...
38.072727
108
0.737345
248
2,094
5.858871
0.330645
0.055059
0.037853
0.041294
0.092911
0.092911
0.092911
0.092911
0.092911
0.092911
0
0.005574
0.143266
2,094
54
109
38.777778
0.804348
0
0
0
0
0
0.36533
0.229226
0
0
0
0
0
1
0
false
0
0.075
0
0.525
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
76baca11d273b7304088a9df33ccc13875c8e493
197
py
Python
lvcommons/test.py
lvercelli/lvcommons
536b74703f5e42b5812782fcf680ffa9431e01be
[ "MIT" ]
2
2016-02-01T08:35:12.000Z
2016-03-19T11:22:24.000Z
lvcommons/test.py
lvercelli/lvcommons
536b74703f5e42b5812782fcf680ffa9431e01be
[ "MIT" ]
null
null
null
lvcommons/test.py
lvercelli/lvcommons
536b74703f5e42b5812782fcf680ffa9431e01be
[ "MIT" ]
null
null
null
#!/usr/bin/env python v = {'a': 1, 'b': 2, 'c': 3, 'arc': 4} def edit(d): d['a'] = 10 print(v) edit(v) print(v) x = filter(lambda k: k.startswith('a'), v) print(next(x)) print(v.items())
11.588235
42
0.522843
39
197
2.641026
0.641026
0.174757
0
0
0
0
0
0
0
0
0
0.037736
0.192893
197
17
43
11.588235
0.610063
0.101523
0
0.222222
0
0
0.045198
0
0
0
0
0
0
1
0.111111
false
0
0
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
76befd4bae884de5c9d7783bf1f7dd5904a2dbac
2,554
py
Python
fabfile.py
larrycai/costa-ci
53f6bc1f0355423a3bd90b5fa971192a3c42501e
[ "MIT" ]
null
null
null
fabfile.py
larrycai/costa-ci
53f6bc1f0355423a3bd90b5fa971192a3c42501e
[ "MIT" ]
null
null
null
fabfile.py
larrycai/costa-ci
53f6bc1f0355423a3bd90b5fa971192a3c42501e
[ "MIT" ]
null
null
null
from fabric.api import * from fabric.contrib.files import sed import sys import time import os #from fabric.api import local # env.hosts.extend([ "10.0.1.6", "10.0.1.7","10.0.1.8", "10.0.1.10", # "10.0.1.11", "10.0.1.12","10.0.1.14", "10.0.1.15" ]) #env.hosts = ["10.0.1.8"] # env.roledefs = { # 'test' : [...
28.377778
120
0.653876
379
2,554
4.340369
0.39314
0.020061
0.026748
0.012158
0.032827
0.032827
0
0
0
0
0
0.04569
0.168755
2,554
90
121
28.377778
0.729157
0.235709
0
0.064516
0
0.016129
0.231201
0.029742
0
0
0
0
0
0
null
null
0
0.080645
null
null
0.048387
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
76c1a39b6b4d6b8151c09e00f1211d71b1c6e31f
644
py
Python
instance/example_config.py
wj1796/back
0e486fa8a7b27c633600c49643f798ec215d3c7a
[ "MIT" ]
12
2019-10-16T00:40:27.000Z
2022-01-30T15:03:10.000Z
instance/example_config.py
wj1796/back
0e486fa8a7b27c633600c49643f798ec215d3c7a
[ "MIT" ]
null
null
null
instance/example_config.py
wj1796/back
0e486fa8a7b27c633600c49643f798ec215d3c7a
[ "MIT" ]
7
2019-10-16T09:23:07.000Z
2021-06-30T10:58:42.000Z
# Sample config file # This is just a sample config file. # flask-quickstart assumes your config file is named 'config.py'. # Rename this file or create a new one # There are no name restrictions. # You can choose whatever name you like, just change the same in # the 'Production' class in flask-quickstart/config.py # ...
33.894737
67
0.771739
102
644
4.803922
0.568627
0.122449
0.104082
0.093878
0.102041
0
0
0
0
0
0
0
0.149068
644
18
68
35.777778
0.894161
0.812112
0
0
0
0
0.366972
0.275229
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
76c59d96a3027ab694c7774a8f4ac85c541d76c6
1,285
py
Python
remote_mouse.py
navyzal/PointTracking_Gesture
8210aa83dcbe35db62d2578f430d3397c8cfe10d
[ "Apache-2.0" ]
null
null
null
remote_mouse.py
navyzal/PointTracking_Gesture
8210aa83dcbe35db62d2578f430d3397c8cfe10d
[ "Apache-2.0" ]
null
null
null
remote_mouse.py
navyzal/PointTracking_Gesture
8210aa83dcbe35db62d2578f430d3397c8cfe10d
[ "Apache-2.0" ]
null
null
null
from pynput.mouse import Button, Controller class RemoteMouse: def __init__(self): self.mouse = Controller() def getPosition(self): return self.mouse.position def setPos(self, xPos, yPos): self.mouse.position = (xPos, yPos) def movePos(self, xPos, yPos): self.mouse.mo...
26.22449
65
0.6
169
1,285
4.402367
0.248521
0.169355
0.114247
0.072581
0.258065
0.169355
0.094086
0.094086
0
0
0
0.026882
0.276265
1,285
49
66
26.22449
0.773118
0
0
0.157895
0
0
0.014774
0
0
0
0
0
0
1
0.210526
false
0
0.026316
0.026316
0.289474
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
76c6afc1c08e94116d41d85fe79e1934c6d3ccca
1,145
py
Python
Offer_book_problems/021reOrderArr.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
Offer_book_problems/021reOrderArr.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
Offer_book_problems/021reOrderArr.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Editor: Zhao Xinlu School: BUPT Date: 2018-01-29 Function: 调整数组顺序使奇数位于偶数前面 """ def ReOrderArray1(lists): """ 新创建一个数组 时空复杂度均为O(n) :param lists: :return: """ if len(lists) == 0: return [] newlist = [] for i in range(0, len(lists)): if li...
20.087719
65
0.510917
141
1,145
4.092199
0.390071
0.069324
0.055459
0.062392
0.214905
0.214905
0.214905
0.214905
0.10052
0.10052
0
0.045455
0.346725
1,145
57
66
20.087719
0.725936
0.041921
0
0.285714
0
0
0.009423
0
0
0
0
0
0
0
null
null
0
0
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
76cc1be84bd2731e4c42196e9ef38016dbed8230
1,627
py
Python
update_db.py
watty62/mp3_checker
429f61b6eb9310e442ee3213312eee0f7f01c527
[ "MIT" ]
null
null
null
update_db.py
watty62/mp3_checker
429f61b6eb9310e442ee3213312eee0f7f01c527
[ "MIT" ]
null
null
null
update_db.py
watty62/mp3_checker
429f61b6eb9310e442ee3213312eee0f7f01c527
[ "MIT" ]
null
null
null
import sqlite3 conn = sqlite3.connect('myjazzalbums.sqlite') cur = conn.cursor() # Make some fresh tables using executescript() cur.executescript(''' DROP TABLE IF EXISTS Artist; DROP TABLE IF EXISTS Album; CREATE TABLE Artist ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, name TEXT UNIQUE ); C...
22.287671
72
0.596189
196
1,627
4.887755
0.428571
0.041754
0.022965
0.035491
0.152401
0.152401
0.093946
0.093946
0
0
0
0.011285
0.291948
1,627
72
73
22.597222
0.820313
0.114935
0
0.085106
0
0
0.365035
0
0
0
0
0
0
0
null
null
0.021277
0.021277
null
null
0.042553
0
0
0
null
0
0
0
0
0
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
4f22ddb892c3cac7efc217d3946ec45a4b986bab
770
py
Python
fraction_class.py
suyog-nerkar-webonise/Python-Learning
5468cae2b52589163b3cbc5baa3217311d1ed589
[ "MIT" ]
null
null
null
fraction_class.py
suyog-nerkar-webonise/Python-Learning
5468cae2b52589163b3cbc5baa3217311d1ed589
[ "MIT" ]
null
null
null
fraction_class.py
suyog-nerkar-webonise/Python-Learning
5468cae2b52589163b3cbc5baa3217311d1ed589
[ "MIT" ]
null
null
null
import math class Fraction : def __init__(self, top, bottom) : self.num = top self.denom = bottom def __str__(self) : return "Fraction = "+str(self.num)+"/"+str(self.denom) def __add__(self, fr2) : self.num = self.num*fr2.denom + self.denom*fr2.num self.denom =...
19.25
76
0.533766
102
770
3.911765
0.294118
0.180451
0.082707
0.085213
0
0
0
0
0
0
0
0.025243
0.331169
770
39
77
19.74359
0.749515
0
0
0
0
0
0.031169
0
0
0
0
0
0
1
0.208333
false
0
0.041667
0.041667
0.416667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4f29a520d80c82cef340bb60bf450d4c0c775350
3,530
py
Python
relaton_bib/bib_item_locality.py
relaton/relaton-bib-py
03b601d9a5482e6142b90d6b6cca5a05879452c8
[ "BSD-3-Clause" ]
null
null
null
relaton_bib/bib_item_locality.py
relaton/relaton-bib-py
03b601d9a5482e6142b90d6b6cca5a05879452c8
[ "BSD-3-Clause" ]
7
2021-08-18T04:02:25.000Z
2022-01-28T19:22:42.000Z
relaton_bib/bib_item_locality.py
relaton/relaton-bib-py
03b601d9a5482e6142b90d6b6cca5a05879452c8
[ "BSD-3-Clause" ]
null
null
null
import re import logging import xml.etree.ElementTree as ET from dataclasses import dataclass from enum import Enum from typing import List from .localized_string import LocalizedString class BibItemLocalityType(str, Enum): SECTION = "section" CLAUSE = "clause" PART = "part" PARAGRAPH = "paragraph" ...
28.24
78
0.630312
403
3,530
5.369727
0.272953
0.090111
0.062384
0.027726
0.381238
0.316081
0.288355
0.197782
0.197782
0.160813
0
0.001903
0.255807
3,530
124
79
28.467742
0.82185
0.071105
0
0.227273
0
0
0.12837
0.019914
0
0
0
0.008065
0
1
0.090909
false
0
0.079545
0.011364
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
4f35f4f936366fad1664d5806cbc13b291e844c1
1,818
py
Python
tpdatasrc/tpgamefiles/scr/Spell290 - Magic Stone.py
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
69
2015-05-05T14:09:25.000Z
2022-02-15T06:13:04.000Z
tpdatasrc/tpgamefiles/scr/Spell290 - Magic Stone.py
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
457
2015-05-01T22:07:45.000Z
2022-03-31T02:19:10.000Z
tpdatasrc/tpgamefiles/scr/Spell290 - Magic Stone.py
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
25
2016-02-04T21:19:53.000Z
2021-11-15T23:14:51.000Z
from toee import * def OnBeginSpellCast( spell ): print "Magic Stone OnBeginSpellCast" print "spell.target_list=", spell.target_list print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level game.particles( "sp-transmutation-conjure", spell.caster ) def OnSpellEffect( spell ): print "Magic Stone...
31.894737
160
0.766227
246
1,818
5.434959
0.317073
0.065819
0.067315
0.059835
0.336574
0.29469
0.29469
0.255797
0.191473
0.191473
0
0.01967
0.133113
1,818
57
161
31.894737
0.82868
0.035204
0
0.166667
0
0
0.172571
0.013714
0
0
0
0
0
0
null
null
0
0.027778
null
null
0.222222
0
0
0
null
0
0
0
0
0
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
4f37372e7ae690bb4929ce3eaddda3a416a801df
353
py
Python
problem0069/test_69.py
SimonZoo/LeetCode
98c51ef4312f530d1d5a71b10b4d55307ca58e6d
[ "Unlicense" ]
null
null
null
problem0069/test_69.py
SimonZoo/LeetCode
98c51ef4312f530d1d5a71b10b4d55307ca58e6d
[ "Unlicense" ]
2
2019-01-08T11:00:45.000Z
2019-01-10T11:45:35.000Z
problem0069/test_69.py
SimonZoo/LeetCode
98c51ef4312f530d1d5a71b10b4d55307ca58e6d
[ "Unlicense" ]
null
null
null
import unittest from .sqrtx import Solution class TestSqrt(unittest.TestCase): def test_1(self): s = Solution() input_n = 4 output = 2 self.assertEqual(s.mySqrt(input_n), output) def test_2(self): s = Solution() input_n = 8 output = 2 self.asser...
22.0625
51
0.594901
46
353
4.434783
0.456522
0.117647
0.127451
0.176471
0.588235
0.401961
0.401961
0.401961
0.401961
0
0
0.02449
0.305949
353
16
52
22.0625
0.808163
0
0
0.461538
0
0
0
0
0
0
0
0
0.153846
1
0.153846
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4f37c90f88ad17873fdd144057bd12d2aa028457
4,372
py
Python
World Finals/jurisdiction-restrictions.py
enigma-pattern/GoogleCodeJam-2018
4b4f6b5bda68eccd92f0b31cde693462aba1282f
[ "MIT" ]
42
2018-04-08T02:33:46.000Z
2021-05-29T10:19:33.000Z
World Finals/jurisdiction-restrictions.py
enigma-pattern/GoogleCodeJam-2018
4b4f6b5bda68eccd92f0b31cde693462aba1282f
[ "MIT" ]
1
2021-05-05T10:32:33.000Z
2021-05-05T12:05:53.000Z
World Finals/jurisdiction-restrictions.py
enigma-pattern/GoogleCodeJam-2018
4b4f6b5bda68eccd92f0b31cde693462aba1282f
[ "MIT" ]
16
2018-04-15T18:56:25.000Z
2021-07-22T22:38:03.000Z
# Copyright (c) 2019 kamyu. All rights reserved. # # Google Code Jam 2018 World Finals - Problem A. Jurisdiction Restrictions # https://codingcompetitions.withgoogle.com/codejam/round/0000000000007766/000000000004dbbd # # Time: O(S^6 * log(R * C)), pass in PyPy2 but Python2, # by using bett...
33.630769
111
0.460887
673
4,372
2.940565
0.20208
0.052552
0.018191
0.036382
0.197069
0.13239
0.103082
0.076806
0.03335
0
0
0.033456
0.377859
4,372
129
112
33.891473
0.694118
0.143641
0
0.165049
0
0
0.004025
0
0
0
0
0
0
0
null
null
0
0.009709
null
null
0.009709
0
0
0
null
0
0
0
0
0
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
4f3fa4f8b36f17b0e661b0d8d03301a21b9e2f11
890
py
Python
services/migrations/0003_auto_20210513_0929.py
samshultz/techbitsdata
753309cbfee7bfa9a08804786f29b37f2b058436
[ "BSD-3-Clause" ]
null
null
null
services/migrations/0003_auto_20210513_0929.py
samshultz/techbitsdata
753309cbfee7bfa9a08804786f29b37f2b058436
[ "BSD-3-Clause" ]
null
null
null
services/migrations/0003_auto_20210513_0929.py
samshultz/techbitsdata
753309cbfee7bfa9a08804786f29b37f2b058436
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.2.2 on 2021-05-13 09:29 import ckeditor.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('services', '0002_service_slug'), ] operations = [ migrations.RenameField( model_name='service', ...
25.428571
74
0.564045
85
890
5.741176
0.564706
0.07377
0.131148
0.122951
0.336066
0.336066
0.180328
0
0
0
0
0.036424
0.321348
890
34
75
26.176471
0.771523
0.050562
0
0.428571
1
0
0.132859
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4f53fc82f08505463656edd01d1aab02802cc7f2
2,844
py
Python
recipes/tinyspline/all/conanfile.py
hoxnox/conan-center-index
5ecea3b63ebfe08dc672c5cbbb5a277d5e47f0f9
[ "MIT" ]
null
null
null
recipes/tinyspline/all/conanfile.py
hoxnox/conan-center-index
5ecea3b63ebfe08dc672c5cbbb5a277d5e47f0f9
[ "MIT" ]
2
2021-07-12T11:40:14.000Z
2022-03-04T13:15:54.000Z
recipes/tinyspline/all/conanfile.py
hoxnox/conan-center-index
5ecea3b63ebfe08dc672c5cbbb5a277d5e47f0f9
[ "MIT" ]
null
null
null
import os from conans import ConanFile, CMake, tools class TinysplineConan(ConanFile): name = "tinyspline" description = "Library for interpolating, transforming, and querying " \ "arbitrary NURBS, B-Splines, and Bezier curves." license = "MIT" topics = ("conan", "tinyspline ", "nurb...
35.111111
80
0.631505
315
2,844
5.501587
0.320635
0.083093
0.126947
0.190421
0.311021
0.212926
0
0
0
0
0
0
0.240858
2,844
80
81
35.55
0.802686
0
0
0.086957
0
0
0.219761
0.074543
0
0
0
0
0
1
0.115942
false
0
0.028986
0.014493
0.376812
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
4f57080ce99799b61ff49514fb6ebe77c5fa69d8
556
py
Python
discourse/discourse/migrations/0011_comment_who_liked.py
GonnaFlyMethod/discourse-django-vue
e323fc38c970a97788620a176f94bf3f2c830a60
[ "MIT" ]
null
null
null
discourse/discourse/migrations/0011_comment_who_liked.py
GonnaFlyMethod/discourse-django-vue
e323fc38c970a97788620a176f94bf3f2c830a60
[ "MIT" ]
null
null
null
discourse/discourse/migrations/0011_comment_who_liked.py
GonnaFlyMethod/discourse-django-vue
e323fc38c970a97788620a176f94bf3f2c830a60
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-05 19:10 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('discourse', '0010_remove_comment_who_liked'), ] ...
26.47619
110
0.670863
65
556
5.523077
0.661538
0.066852
0.089136
0.116992
0
0
0
0
0
0
0
0.044186
0.226619
556
20
111
27.8
0.790698
0.080935
0
0
1
0
0.127701
0.056974
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4f5713d6c0ec5b13875de81301207e3338eae08b
417
py
Python
src/openreviewapp/testsettings.py
gandalfar/openreview
f0cad22f91e413fa22984576678c90588b7b65ac
[ "Apache-2.0" ]
null
null
null
src/openreviewapp/testsettings.py
gandalfar/openreview
f0cad22f91e413fa22984576678c90588b7b65ac
[ "Apache-2.0" ]
null
null
null
src/openreviewapp/testsettings.py
gandalfar/openreview
f0cad22f91e413fa22984576678c90588b7b65ac
[ "Apache-2.0" ]
null
null
null
import sys DEBUG = True TESTING = "pytest" in sys.modules DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql_psycopg2", "NAME": "github_actions", "USER": "postgres", "PASSWORD": "postgres", "HOST": "127.0.0.1", "PORT": "5432", "autocommit": ...
21.947368
81
0.577938
47
417
5.06383
0.893617
0
0
0
0
0
0
0
0
0
0
0.085443
0.242206
417
18
82
23.166667
0.667722
0
0
0
0
0.066667
0.479616
0.2494
0
0
0
0
0
1
0
false
0.066667
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
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
4f57a4766a8d5878f9102b49d9c21055e745f4ca
769
py
Python
src/coindesk/urls.py
argon1223/GDSC-Group5
0eda2709da383778e38f2d04019fe6a1b9451716
[ "MIT" ]
null
null
null
src/coindesk/urls.py
argon1223/GDSC-Group5
0eda2709da383778e38f2d04019fe6a1b9451716
[ "MIT" ]
null
null
null
src/coindesk/urls.py
argon1223/GDSC-Group5
0eda2709da383778e38f2d04019fe6a1b9451716
[ "MIT" ]
2
2021-05-16T06:23:17.000Z
2021-09-14T09:32:58.000Z
from os import name from django.contrib import admin from django.urls import path from django.conf import settings from django.conf.urls.static import static from homepage.views import home_page from schedule.views import schedule_page from subscription.views import subscription, add_subscription_button_onclick, delete...
40.473684
112
0.781534
100
769
5.81
0.31
0.068847
0.172117
0.096386
0
0
0
0
0
0
0
0
0.111834
769
18
113
42.722222
0.850659
0
0
0
0
0
0.107932
0.036411
0
0
0
0
0
1
0
false
0
0.470588
0
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4f5c4170b1751248f0d9d047d329a18f58225dae
1,359
py
Python
scripts/attack_plotter.py
chris-wood/fib-performance
f21773610d6e6447b8f0418922b9d8813495aee8
[ "MIT" ]
null
null
null
scripts/attack_plotter.py
chris-wood/fib-performance
f21773610d6e6447b8f0418922b9d8813495aee8
[ "MIT" ]
null
null
null
scripts/attack_plotter.py
chris-wood/fib-performance
f21773610d6e6447b8f0418922b9d8813495aee8
[ "MIT" ]
1
2021-08-28T08:53:43.000Z
2021-08-28T08:53:43.000Z
import sys import math import numpy as np import matplotlib.pyplot as plt indices = [int(data.split(",")[0]) for data in open(sys.argv[1]).readlines()] app_times = [float(data.split(",")[1]) for data in open(sys.argv[1]).readlines()] net_times = [float(data.split(",")[1]) for data in open(sys.argv[2]).readlines()] # ...
33.975
133
0.680648
223
1,359
4.058296
0.394619
0.027624
0.029834
0.043094
0.300552
0.300552
0.300552
0.300552
0.256354
0.088398
0
0.019377
0.126564
1,359
39
134
34.846154
0.74305
0.498896
0
0
0
0
0.101208
0
0
0
0
0
0
0
null
null
0
0.235294
null
null
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4f6c61cecefeba54f4ea6229f32442b460dc9ac0
4,042
py
Python
backend/bomberbot/views.py
somarae8/bomberbot_finalproject
732df88487087e067ba3048cda6d92a0fe63586a
[ "MIT" ]
2
2020-11-03T17:37:20.000Z
2020-11-03T19:34:25.000Z
backend/bomberbot/views.py
somarae8/bomberbot_finalproject
732df88487087e067ba3048cda6d92a0fe63586a
[ "MIT" ]
null
null
null
backend/bomberbot/views.py
somarae8/bomberbot_finalproject
732df88487087e067ba3048cda6d92a0fe63586a
[ "MIT" ]
1
2020-11-03T16:48:58.000Z
2020-11-03T16:48:58.000Z
"""General views""" from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.shortcuts import render, redirect from django.db.utils import IntegrityError from django.contrib.auth.models import User from django.http import HttpResponse from bomber...
37.082569
91
0.630876
486
4,042
5.205761
0.230453
0.052174
0.052569
0.049407
0.278656
0.231621
0.170751
0.071146
0.028459
0
0
0
0.275111
4,042
108
92
37.425926
0.863481
0.240722
0
0.238806
0
0
0.143098
0.007071
0
0
0
0
0
1
0.059701
false
0.119403
0.104478
0
0.328358
0
0
0
0
null
0
0
0
0
0
0
0
0
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
4f6c909a6a7c53d61427aaf21956f1785b0f30c1
804
py
Python
passbook/sources/oauth/api.py
fossabot/passbook
cba17f6659404445ac3025f11657d89368cc8b4f
[ "MIT" ]
null
null
null
passbook/sources/oauth/api.py
fossabot/passbook
cba17f6659404445ac3025f11657d89368cc8b4f
[ "MIT" ]
null
null
null
passbook/sources/oauth/api.py
fossabot/passbook
cba17f6659404445ac3025f11657d89368cc8b4f
[ "MIT" ]
null
null
null
"""OAuth Source Serializer""" from rest_framework.serializers import ModelSerializer from rest_framework.viewsets import ModelViewSet from passbook.admin.forms.source import SOURCE_SERIALIZER_FIELDS from passbook.sources.oauth.models import OAuthSource class OAuthSourceSerializer(ModelSerializer): """OAuth Sourc...
26.8
64
0.686567
73
804
7.342466
0.520548
0.119403
0.078358
0
0
0
0
0
0
0
0
0
0.232587
804
29
65
27.724138
0.86872
0.077114
0
0
0
0
0.139118
0
0
0
0
0
0
1
0
false
0.105263
0.210526
0
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4f76c013ef50533fe54d59fbe3e19b1c48bdca17
5,167
py
Python
pysnmp-with-texts/BIANCA-BRICK-MIBSYS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/BIANCA-BRICK-MIBSYS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/BIANCA-BRICK-MIBSYS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module BIANCA-BRICK-MIBSYS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BIANCA-BRICK-MIBSYS-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:38:22 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 ...
109.93617
477
0.768144
622
5,167
6.379421
0.282958
0.008569
0.084677
0.014113
0.44254
0.243952
0.218246
0.198337
0.192792
0.180696
0
0.057897
0.090768
5,167
46
478
112.326087
0.786718
0.065802
0
0
0
0.076923
0.271274
0.023454
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4f76dbcd13e8158b14a8abcb81bb90ad8365dd46
2,212
py
Python
tests/platforms/test_iguazio.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
null
null
null
tests/platforms/test_iguazio.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
null
null
null
tests/platforms/test_iguazio.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
1
2021-05-05T14:19:46.000Z
2021-05-05T14:19:46.000Z
import os from http import HTTPStatus from unittest.mock import Mock import requests from mlrun.platforms import add_or_refresh_credentials def test_add_or_refresh_credentials_iguazio_2_8_success(monkeypatch): username = "username" password = "password" control_session = "control_session" api_url = ...
33.515152
84
0.714738
270
2,212
5.474074
0.248148
0.08931
0.040595
0.077808
0.354533
0.32747
0.32747
0.273342
0.161028
0.161028
0
0.010181
0.200723
2,212
65
85
34.030769
0.825792
0
0
0.24
0
0.04
0.116184
0
0
0
0
0
0.1
1
0.12
false
0.06
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4f7b5660a36fc2f6dee70fa1ca4350d0555fbe8f
3,563
py
Python
matchzoo/run_submit_jobs_batch_prf.py
alexanderblnf/NeuralResponseRankingMTL
948d2f5377d9649398780273c6863a72655ce432
[ "MIT" ]
71
2018-04-18T05:17:54.000Z
2021-08-06T07:54:25.000Z
matchzoo/run_submit_jobs_batch_prf.py
KobeDeShow/NeuralResponseRanking
171b15ecd48b78479beb9598fc7e152dec9f779c
[ "MIT" ]
6
2018-10-16T08:33:19.000Z
2020-11-10T07:44:04.000Z
matchzoo/run_submit_jobs_batch_prf.py
KobeDeShow/NeuralResponseRanking
171b15ecd48b78479beb9598fc7e152dec9f779c
[ "MIT" ]
16
2018-08-03T09:44:56.000Z
2020-08-25T14:02:42.000Z
import os def run_command(command, job_name, output_file, error_file, partition, num_task, time, mem_per_cpu, gpu_num): bash_file_lines = "#!/bin/bash\n#\n" bash_file_lines += '#SBATCH --job-name=' + job_name + '\n' bash_file_lines += '#SBATCH --output=' + output_file + '\n' bash_file_lines += '#SBATC...
49.486111
134
0.598091
464
3,563
4.185345
0.256466
0.065911
0.087024
0.072091
0.390834
0.251287
0.194645
0.15551
0.15551
0.08033
0
0.022667
0.257087
3,563
71
135
50.183099
0.710994
0.015436
0
0
0
0
0.261292
0.070612
0.016667
0
0
0
0
0
null
null
0
0.016667
null
null
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4f7bfbbb4f9b0d5f91ccbb08ada7578fade04b7b
615
py
Python
tests/accounts/test_models.py
yezz123/Django-Authentication
3f207660950370aeaf8377f062d4767a0f48fa8c
[ "MIT" ]
10
2021-08-30T08:37:12.000Z
2021-11-12T01:33:06.000Z
tests/accounts/test_models.py
yezz123/Django-Authentication
3f207660950370aeaf8377f062d4767a0f48fa8c
[ "MIT" ]
null
null
null
tests/accounts/test_models.py
yezz123/Django-Authentication
3f207660950370aeaf8377f062d4767a0f48fa8c
[ "MIT" ]
null
null
null
import pytest from django.contrib.auth import get_user_model pytestmark = pytest.mark.django_db class TestUser: def test_create_user(self, user): assert len(user.username) > 0 assert len(user.email) > 0 assert user.is_staff is False assert user.is_active def test___str__(sel...
24.6
48
0.682927
87
615
4.563218
0.344828
0.13602
0.11335
0.128463
0.110831
0
0
0
0
0
0
0.008621
0.245528
615
24
49
25.625
0.846983
0
0
0
0
0
0
0
0
0
0
0
0.588235
1
0.176471
false
0
0.117647
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
4f7d76a68f24eca315ec14312dbd59518905285f
2,908
py
Python
tests/functional_tests/0006_set_test.py
jamesog/iocage
a22bb44ace4e5a00feae8609cb8462682a3ff4ee
[ "BSD-2-Clause" ]
null
null
null
tests/functional_tests/0006_set_test.py
jamesog/iocage
a22bb44ace4e5a00feae8609cb8462682a3ff4ee
[ "BSD-2-Clause" ]
null
null
null
tests/functional_tests/0006_set_test.py
jamesog/iocage
a22bb44ace4e5a00feae8609cb8462682a3ff4ee
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2014-2018, iocage # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted providing that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and th...
31.268817
80
0.755846
420
2,908
5.011905
0.4
0.042755
0.042755
0.054632
0.301663
0.27886
0.248931
0.168646
0.134442
0.118765
0
0.009163
0.174347
2,908
92
81
31.608696
0.867555
0.488308
0
0.27907
0
0
0.068493
0
0
0
0
0.01087
0.023256
1
0.116279
false
0
0.023256
0
0.139535
0
0
0
0
null
0
0
0
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
4f85311dbee6ff57037f426ae157aabb176d53b0
349
py
Python
apps/api/views.py
alexandermiss/filterappdemo
f5f2ca0c6a8534ebb893d1ff614890f3f12ca795
[ "MIT" ]
null
null
null
apps/api/views.py
alexandermiss/filterappdemo
f5f2ca0c6a8534ebb893d1ff614890f3f12ca795
[ "MIT" ]
null
null
null
apps/api/views.py
alexandermiss/filterappdemo
f5f2ca0c6a8534ebb893d1ff614890f3f12ca795
[ "MIT" ]
null
null
null
from rest_framework import generics from django_filters.rest_framework import DjangoFilterBackend from apps.api.serializers import ProductSerializer from apps.catalog.models import Product class ProductListApiView(generics.ListAPIView): queryset = Product.objects.all() serializer_class = ProductSerializer ...
26.846154
61
0.816619
38
349
7.368421
0.657895
0.092857
0.135714
0
0
0
0
0
0
0
0
0
0.123209
349
12
62
29.083333
0.915033
0
0
0
0
0
0.011461
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4f8839bebbd0d8ba5a763f0709e80a7a4c368b40
9,438
py
Python
sdk/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/models/_edge_order_management_client_enums.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2
2021-09-07T18:30:33.000Z
2021-11-23T02:50:57.000Z
sdk/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/models/_edge_order_management_client_enums.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
4
2021-10-06T16:39:52.000Z
2021-11-18T18:33:37.000Z
sdk/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/models/_edge_order_management_client_enums.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1
2016-04-19T22:15:47.000Z
2016-04-19T22:15:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
30.843137
102
0.675673
991
9,438
6.312815
0.321897
0.05195
0.138107
0.149616
0.256234
0.159687
0.106618
0.067455
0.057545
0.044118
0
0.00054
0.214664
9,438
305
103
30.944262
0.843497
0.4306
0
0.094828
0
0
0.148915
0.004299
0
0
0
0
0
1
0.017241
false
0
0.017241
0.008621
0.974138
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
4f8f1022c474c5339f7b578d857c10d9906d31db
13,755
py
Python
mob_site_hunter_hnoob.py
noobprogammier/fuzzscrap
cbbd44c10c7d1a63fd1212ea951fec2f58d08830
[ "MIT" ]
3
2021-06-25T14:26:12.000Z
2021-08-01T20:43:20.000Z
mob_site_hunter_hnoob.py
noobprogammier/fuzzscrap
cbbd44c10c7d1a63fd1212ea951fec2f58d08830
[ "MIT" ]
null
null
null
mob_site_hunter_hnoob.py
noobprogammier/fuzzscrap
cbbd44c10c7d1a63fd1212ea951fec2f58d08830
[ "MIT" ]
null
null
null
import socket import argparse import time from threading import Thread import os import threading import requests import ctypes from bs4 import BeautifulSoup import re import urllib3 from scapy.all import * import base64 urllib3.disable_warnings() def check_admin_rights(): if ctypes.windll.shell32.IsUs...
33.87931
234
0.586114
1,822
13,755
4.367728
0.220088
0.009048
0.010555
0.013571
0.250942
0.213873
0.17517
0.141493
0.135838
0.127293
0
0.021155
0.237077
13,755
406
235
33.87931
0.737183
0.040931
0
0.298153
0
0.013193
0.265439
0.032759
0.002639
0
0
0
0
1
0.058047
false
0.055409
0.034301
0
0.139842
0.131926
0
0
0
null
0
0
0
0
0
0
0
0
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
4f8fd9d01f83c98ea32a5f2758a079e36aa88418
985
py
Python
tests/files.py
michaeldimchuk/pyvial
54569a984c979eccdb9e9ec911cdbfc350d2c19f
[ "Apache-2.0" ]
null
null
null
tests/files.py
michaeldimchuk/pyvial
54569a984c979eccdb9e9ec911cdbfc350d2c19f
[ "Apache-2.0" ]
null
null
null
tests/files.py
michaeldimchuk/pyvial
54569a984c979eccdb9e9ec911cdbfc350d2c19f
[ "Apache-2.0" ]
null
null
null
import json import os from typing import Any, Callable, Mapping, TextIO, cast from vial.types import T def read(path: str) -> T: if path.startswith("/"): raise ValueError(f"Path may not start with '/': {path}") return _get_file(os.path.join(_find_root(), path)) def _get_file(path: str) -> T: if...
24.625
83
0.638579
142
985
4.309859
0.380282
0.029412
0.026144
0.03268
0
0
0
0
0
0
0
0.003846
0.208122
985
39
84
25.25641
0.780769
0
0
0
0
0
0.095431
0.02335
0
0
0
0
0
1
0.230769
false
0
0.153846
0.076923
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4f8fe7372c3dd1462b2ac8805587b360d1ada384
4,515
py
Python
backend/Communities/models.py
Fowerus/drf-blog
61f792ee73022d26129ca24a11113b28323c0de5
[ "MIT" ]
5
2021-03-21T06:51:44.000Z
2021-04-19T12:29:52.000Z
backend/Communities/models.py
Fowerus/drf-soc-net
61f792ee73022d26129ca24a11113b28323c0de5
[ "MIT" ]
null
null
null
backend/Communities/models.py
Fowerus/drf-soc-net
61f792ee73022d26129ca24a11113b28323c0de5
[ "MIT" ]
null
null
null
from django.conf import settings from django.db import models class CommunityCategory(models.Model): name = models.CharField(max_length = 150, unique = True, verbose_name = 'name') date_creating = models.DateTimeField(auto_now_add = True, verbose_name = 'date_creating') is_active = models.BooleanField(defa...
36.12
168
0.737099
560
4,515
5.660714
0.148214
0.135331
0.052997
0.059621
0.679811
0.611041
0.548896
0.507886
0.5
0.483912
0
0.005922
0.139756
4,515
125
169
36.12
0.810247
0
0
0.4375
0
0.05
0.191098
0.018822
0
0
0
0
0
1
0.0875
false
0
0.025
0.0875
0.725
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
4f90fd06c3e45e2074a6192e6f222cb7f7caca62
1,284
py
Python
artificial_detection/models/language_model.py
MaratSaidov/artificial-text-detection
74b2100294232ec361db84fdc3a24fdeba1fce49
[ "MIT" ]
12
2021-11-15T08:59:46.000Z
2022-03-06T15:42:24.000Z
artificial_detection/models/language_model.py
MaratSaidov/artificial-text-detection
74b2100294232ec361db84fdc3a24fdeba1fce49
[ "MIT" ]
2
2021-11-14T15:50:00.000Z
2021-11-20T12:17:29.000Z
artificial_detection/models/language_model.py
MaratSaidov/artificial-text-detection
74b2100294232ec361db84fdc3a24fdeba1fce49
[ "MIT" ]
null
null
null
from typing import Any, Optional, List from transformers import pipeline class LanguageModel: """ TODO-Doc """ def __init__(self, model_name: Optional[str] = None, generator: Any = None) -> None: """ Parameters ---------- model_name : str One of possible m...
29.181818
112
0.584891
148
1,284
4.817568
0.432432
0.063114
0.054698
0.072931
0.089762
0.089762
0
0
0
0
0
0.012415
0.309969
1,284
43
113
29.860465
0.792325
0.13162
0
0
0
0
0.116486
0.07305
0
0
0
0.069767
0
1
0.086957
false
0
0.086957
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
4f9308f15624f9dd8fc3e91be4baef19fbc77a2f
421
py
Python
setup.py
UiO-CS/tf-wavelets
11da39282acc70f38b16330c3473ac43fdfb4353
[ "MIT" ]
45
2018-09-11T10:12:44.000Z
2022-01-12T04:21:08.000Z
setup.py
UiO-CS/tf-wavelets
11da39282acc70f38b16330c3473ac43fdfb4353
[ "MIT" ]
7
2019-03-02T12:57:07.000Z
2021-07-24T04:16:30.000Z
setup.py
UiO-CS/tf-wavelets
11da39282acc70f38b16330c3473ac43fdfb4353
[ "MIT" ]
12
2019-03-03T14:59:26.000Z
2022-01-14T19:59:08.000Z
from setuptools import setup # Install python package setup( name="tfwavelets", version=0.1, author="Kristian Monsen Haug, Mathias Lohne", author_email="mathialo@ifi.uio.no", license="MIT", description="TensorFlow implementation of descrete wavelets", url="https://github.com/UiO-CS/tf-wavel...
28.066667
65
0.698337
50
421
5.82
0.86
0
0
0
0
0
0
0
0
0
0
0.005682
0.163895
421
14
66
30.071429
0.821023
0.052257
0
0
0
0
0.440806
0
0
0
0
0
0
1
0
true
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
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
4f95e648f52bd222e506a8b2f3ba60ab078b8727
1,368
py
Python
main_app/views.py
MaximTiberiu/NotesApp
759a95d5962a600c6bc909fdda97a7b17a333c07
[ "MIT" ]
null
null
null
main_app/views.py
MaximTiberiu/NotesApp
759a95d5962a600c6bc909fdda97a7b17a333c07
[ "MIT" ]
null
null
null
main_app/views.py
MaximTiberiu/NotesApp
759a95d5962a600c6bc909fdda97a7b17a333c07
[ "MIT" ]
null
null
null
from django.contrib.auth.mixins import LoginRequiredMixin from django.urls import reverse from django.views.generic import ListView, CreateView, UpdateView, DeleteView from main_app.forms import NewNoteForm from main_app.models import Note class ListNotesView(LoginRequiredMixin, ListView): model = Note templ...
26.823529
82
0.734649
171
1,368
5.678363
0.321637
0.064882
0.065911
0.07827
0.501545
0.501545
0.443872
0.443872
0.443872
0.345005
0
0
0.176901
1,368
50
83
27.36
0.862345
0
0
0.545455
0
0
0.118421
0.070175
0
0
0
0
0
1
0.181818
false
0
0.151515
0.121212
0.939394
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
4f967c973756922bfa83ac0c2a5f880e536ba317
2,427
py
Python
decorators.py
liqiwudao/job
de95c56627336060234755ab8bbe0510ed112573
[ "Apache-2.0" ]
1
2017-06-10T04:14:34.000Z
2017-06-10T04:14:34.000Z
decorators.py
liqiwudao/job
de95c56627336060234755ab8bbe0510ed112573
[ "Apache-2.0" ]
null
null
null
decorators.py
liqiwudao/job
de95c56627336060234755ab8bbe0510ed112573
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import json import functools from flask import request, redirect, session, url_for from models.auth import AuthApi from models.account import Account # from utils.auth import NationaldayAuth from api.utils import success, failure, bad_request def backup_auth(f): @functools.wraps(f) d...
24.765306
96
0.540997
292
2,427
4.339041
0.212329
0.056827
0.069455
0.050513
0.576164
0.490923
0.471981
0.450671
0.450671
0.378848
0
0.010487
0.332097
2,427
97
97
25.020619
0.771129
0.328389
0
0.75
0
0
0.04
0
0
0
0
0
0
1
0.115385
false
0.038462
0.115385
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4f9708e0d911a53ce4b8d2d4bb031b108e2b3644
410
py
Python
101-200/111-120/116-populateNextPointers/populateNextPointers-elegant.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
101-200/111-120/116-populateNextPointers/populateNextPointers-elegant.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
101-200/111-120/116-populateNextPointers/populateNextPointers-elegant.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
class Solution: # @param root, a tree link node # @return nothing def connect(self, root): if root: head = root while head.left: p = head while p: p.left.next = p.right if p.next: ...
29.285714
50
0.397561
45
410
3.622222
0.444444
0.092025
0.122699
0
0
0
0
0
0
0
0
0
0.526829
410
14
51
29.285714
0.840206
0.109756
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4f9bc7c2d6a482b10fefefc11a8724551fd58cc8
1,656
py
Python
flaskblog/config.py
kdm951027/SeatsApp
eed8541d94d806eb85f63c369e339d0cf80f6675
[ "Apache-2.0" ]
1
2019-08-23T21:44:13.000Z
2019-08-23T21:44:13.000Z
flaskblog/config.py
kdm951027/SeatsApp
eed8541d94d806eb85f63c369e339d0cf80f6675
[ "Apache-2.0" ]
5
2021-03-19T02:50:29.000Z
2022-03-11T23:56:31.000Z
flaskblog/config.py
kdm951027/SeatsApp
eed8541d94d806eb85f63c369e339d0cf80f6675
[ "Apache-2.0" ]
null
null
null
import os class Config: SECRET_KEY = 'a13695295bf263db50f3481d0d63bddc' SQLALCHEMY_DATABASE_URI = 'sqlite:///site.db' MAIL_SERVER = 'smtp.gmail.com' MAIL_PORT = 587 MAIL_USE_TLS = True MAIL_USERNAME = os.environ.get('MAIL_USERNAME') MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD') # DAT...
38.511628
117
0.671498
184
1,656
5.771739
0.418478
0.135593
0.158192
0.073446
0.247646
0.216573
0.216573
0.131827
0.131827
0.131827
0
0.046636
0.210145
1,656
42
118
39.428571
0.765291
0.695048
0
0
0
0
0.190987
0.06867
0
0
0
0
0
1
0
false
0.111111
0.111111
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4fafcd7faac6c4f4025afb0c828e1e5b4f1293f5
759
py
Python
python-modules/rbtools/rbtools.py
wrobelda/craft-blueprints-kde
366f460cecd5baebdf3a695696767c8c0e5e7c7e
[ "BSD-2-Clause" ]
14
2017-09-04T09:01:03.000Z
2022-01-04T20:09:00.000Z
python-modules/rbtools/rbtools.py
wrobelda/craft-blueprints-kde
366f460cecd5baebdf3a695696767c8c0e5e7c7e
[ "BSD-2-Clause" ]
14
2017-12-15T08:11:22.000Z
2020-12-29T19:11:13.000Z
python-modules/rbtools/rbtools.py
wrobelda/craft-blueprints-kde
366f460cecd5baebdf3a695696767c8c0e5e7c7e
[ "BSD-2-Clause" ]
19
2017-09-05T19:16:21.000Z
2020-10-18T12:46:06.000Z
# -*- coding: utf-8 -*- import info from Package.PipPackageBase import * class subinfo(info.infoclass): def setDependencies(self): self.runtimeDependencies["dev-utils/python2"] = None def setTargets(self): self.svnTargets['master'] = '' self.description = "Review Board Tools." ...
29.192308
65
0.642951
80
759
6
0.625
0.05
0.041667
0
0
0
0
0
0
0
0
0.008432
0.218709
759
25
66
30.36
0.801012
0.027668
0
0
0
0
0.115489
0
0
0
0
0
0
1
0.222222
false
0
0.111111
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
96c58abf52b0359fa8a7e8f15c46c0bb9d94b765
4,418
py
Python
src/methods/Adam_bashforth_por_euler_aprimorado.py
Confucioo/Metodos_Batata
7b62a32b80d92ec9b60201a00e35a00205cc7596
[ "MIT" ]
null
null
null
src/methods/Adam_bashforth_por_euler_aprimorado.py
Confucioo/Metodos_Batata
7b62a32b80d92ec9b60201a00e35a00205cc7596
[ "MIT" ]
null
null
null
src/methods/Adam_bashforth_por_euler_aprimorado.py
Confucioo/Metodos_Batata
7b62a32b80d92ec9b60201a00e35a00205cc7596
[ "MIT" ]
null
null
null
from mpmath import * from sympy import * def k_1(func, k, n, f, t0): for i in range(k, n+1): k0 = func.subs([(y,f[0]),(t,t0)]) y_prox = f[0] + h* k0 f[0] = y_prox print (str(i) + ' ' + str(y_prox)) t0=t0+h def k_2(func, k, n, f, t0): for i in range(k, n+...
28.688312
115
0.417157
854
4,418
2.117096
0.107728
0.051438
0.149336
0.154867
0.688606
0.668695
0.560288
0.428097
0.262168
0.262168
0
0.14187
0.312359
4,418
153
116
28.875817
0.453259
0
0
0.336
0
0
0.009848
0
0
0
0
0
0
1
0.056
false
0
0.016
0
0.072
0.088
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
96c97ae8f577bd75e7e69f0cb59b575b91602cf1
680
py
Python
ScaleLayer.py
vi2enne/Neural-Network-Pruning
4ae3159474ef4833245a2f16146a603435dbc6eb
[ "MIT" ]
1
2022-03-24T20:54:16.000Z
2022-03-24T20:54:16.000Z
ScaleLayer.py
vi2enne/Neural-Network-Pruning
4ae3159474ef4833245a2f16146a603435dbc6eb
[ "MIT" ]
null
null
null
ScaleLayer.py
vi2enne/Neural-Network-Pruning
4ae3159474ef4833245a2f16146a603435dbc6eb
[ "MIT" ]
1
2022-03-24T20:54:24.000Z
2022-03-24T20:54:24.000Z
import numpy as np import torch import torch.nn as nn class ScaleLayer(nn.Module): def __init__(self, size, init_value=1.0, dim=4): super(ScaleLayer, self).__init__() self.scale = nn.Parameter(init_value*torch.ones(size)) self.dim = dim def forward(self, input): #print 'input s...
34
105
0.641176
99
680
4.282828
0.353535
0.084906
0.127358
0.134434
0.318396
0.318396
0.318396
0.318396
0
0
0
0.022305
0.208824
680
19
106
35.789474
0.765799
0.189706
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.230769
0
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
96ce0bb283301bb09524e7b554a047f0a3311cfb
1,398
py
Python
PyFlow/Nodes/retriggerableDelay.py
ZeroCool940711/PyFlow-1
cc11f788b72d9a47196d5039b24e81121891823c
[ "MIT" ]
7
2018-06-24T15:55:00.000Z
2021-07-13T08:11:25.000Z
PyFlow/Nodes/retriggerableDelay.py
ZeroCool940711/PyFlow-1
cc11f788b72d9a47196d5039b24e81121891823c
[ "MIT" ]
32
2019-02-18T20:47:46.000Z
2019-05-30T12:51:10.000Z
PyFlow/Nodes/retriggerableDelay.py
ZeroCool940711/PyFlow-1
cc11f788b72d9a47196d5039b24e81121891823c
[ "MIT" ]
5
2019-02-19T23:26:21.000Z
2020-12-23T00:32:59.000Z
from ..Core.AbstractGraph import * from ..Core.Settings import * from ..Core import Node from Qt.QtCore import QTimer class retriggerableDelay(Node, NodeBase): def __init__(self, name, graph): super(retriggerableDelay, self).__init__(name, graph) self.inp0 = self.addInputPin('in0', DataTypes.Exec,...
27.411765
89
0.633763
154
1,398
5.701299
0.402597
0.071754
0.044419
0.045558
0.107062
0
0
0
0
0
0
0.011342
0.243205
1,398
50
90
27.96
0.818526
0
0
0.225
0
0
0.053648
0
0
0
0
0
0
1
0.225
false
0
0.1
0.1
0.45
0
0
0
0
null
0
0
0
0
0
0
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
96cf966a4d8b55b79e4ed0c72786f3aa253f8973
3,630
py
Python
podman/tests/unit/containers/test_containers.py
ngaller/podman-py
2a9d757c4f5f53fd6e3cd4c89d794d40058ed423
[ "Apache-2.0" ]
null
null
null
podman/tests/unit/containers/test_containers.py
ngaller/podman-py
2a9d757c4f5f53fd6e3cd4c89d794d40058ed423
[ "Apache-2.0" ]
null
null
null
podman/tests/unit/containers/test_containers.py
ngaller/podman-py
2a9d757c4f5f53fd6e3cd4c89d794d40058ed423
[ "Apache-2.0" ]
null
null
null
"""podman.containers unit tests""" import unittest import urllib.parse from unittest import mock import podman.containers import podman.errors import podman.system class TestContainers(unittest.TestCase): """Test the containers calls.""" def setUp(self): super().setUp() self.request = mock....
34.903846
91
0.615978
429
3,630
5.062937
0.151515
0.077348
0.038674
0.06768
0.707643
0.686464
0.686464
0.649632
0.64825
0.646869
0
0.007721
0.250689
3,630
103
92
35.242718
0.790809
0.052893
0
0.463415
0
0
0.080189
0
0
0
0
0
0.170732
1
0.097561
false
0
0.073171
0
0.182927
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
96d3891dd1dd4c7b4e68f80119deca6d242b9c04
6,468
py
Python
fastapi/account/controllers/account.py
ilDug/docker-utils
6580e916a8c2c0d91f2e3da52a9d839507569bb7
[ "MIT" ]
null
null
null
fastapi/account/controllers/account.py
ilDug/docker-utils
6580e916a8c2c0d91f2e3da52a9d839507569bb7
[ "MIT" ]
null
null
null
fastapi/account/controllers/account.py
ilDug/docker-utils
6580e916a8c2c0d91f2e3da52a9d839507569bb7
[ "MIT" ]
null
null
null
import uuid import hashlib import bcrypt import json from string import Template from datetime import datetime from fastapi import HTTPException from fastapi.encoders import jsonable_encoder from pydantic import IPvAnyAddress from pymongo import MongoClient from bson import json_util from core.models import MongoMode...
36.96
110
0.548237
675
6,468
5.145185
0.321481
0.057011
0.030233
0.027642
0.184855
0.174489
0.141664
0.141664
0.117478
0.093867
0
0.014833
0.374613
6,468
174
111
37.172414
0.843758
0.082096
0
0.180451
0
0
0.123417
0.006078
0
0
0
0
0
1
0.037594
false
0.097744
0.12782
0
0.225564
0.007519
0
0
0
null
0
0
0
0
0
0
0
0
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
96d4bd42aa1716a17c47e30baeeaad0d928884d2
11,782
py
Python
weiboTopicSpider/cnselenium.py
syc961126/-
dd79c24928362bf3f825b2795665a0a8b9982066
[ "MIT" ]
3
2020-05-05T10:48:19.000Z
2020-05-21T02:57:16.000Z
weiboTopicSpider/cnselenium.py
syc961126/-
dd79c24928362bf3f825b2795665a0a8b9982066
[ "MIT" ]
null
null
null
weiboTopicSpider/cnselenium.py
syc961126/-
dd79c24928362bf3f825b2795665a0a8b9982066
[ "MIT" ]
1
2020-11-16T15:45:53.000Z
2020-11-16T15:45:53.000Z
import json import re import sys import time import traceback from datetime import timedelta, datetime from random import randint import xlrd from lxml import etree from selenium import webdriver from selenium.webdriver.common.keys import Keys import os #import excelSave as save from weibo_user_mysql import Weibo # d...
38.37785
666
0.589713
1,342
11,782
4.981371
0.282414
0.034555
0.0181
0.016754
0.427823
0.375617
0.341062
0.296185
0.296185
0.284518
0
0.054079
0.256069
11,782
306
667
38.503268
0.708614
0.781446
0
0.039216
0
0
0.105355
0.048759
0
0
0
0
0
1
0.019608
false
0.058824
0.27451
0
0.333333
0.039216
0
0
0
null
0
0
0
0
0
0
0
0
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
96db9aeae7dd448d72ab483bd9a2e7e9c7740f50
3,559
py
Python
codes/models.py
overfit-ir/corona-twitter
bb32ac5cacf7c048f39417ec32b64e37499f9f5b
[ "MIT" ]
null
null
null
codes/models.py
overfit-ir/corona-twitter
bb32ac5cacf7c048f39417ec32b64e37499f9f5b
[ "MIT" ]
null
null
null
codes/models.py
overfit-ir/corona-twitter
bb32ac5cacf7c048f39417ec32b64e37499f9f5b
[ "MIT" ]
null
null
null
from peewee import * import datetime DATABASE = 'tweepee.db' database = PostgresqlDatabase('socialyticsDB') #SqliteDatabase(DATABASE) #pipe = redis_client.pipeline() class BaseModel(Model): class Meta: database = database # @classmethod # def bulk_create_from_json(cls): ...
34.892157
137
0.670413
414
3,559
5.591787
0.359903
0.020734
0.067387
0.064795
0.10108
0.067387
0.042333
0.042333
0
0
0
0.002836
0.207362
3,559
101
138
35.237624
0.817795
0.254566
0
0.033333
0
0
0.098286
0
0
0
0
0
0
0
null
null
0.016667
0.033333
null
null
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
96df712cf62a0dad2962862242799f797829c73e
2,606
py
Python
app/models.py
ThanlonSmith/computer-bysj
760005980f1fb8f83ca369ae40061ec38f5058ef
[ "Apache-2.0" ]
1
2019-10-20T16:22:49.000Z
2019-10-20T16:22:49.000Z
app/models.py
ThanlonSmith/computer-bysj
760005980f1fb8f83ca369ae40061ec38f5058ef
[ "Apache-2.0" ]
1
2021-09-29T17:42:36.000Z
2021-09-29T17:42:36.000Z
app/models.py
ThanlonSmith/computer-bysj
760005980f1fb8f83ca369ae40061ec38f5058ef
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2019/11/6 下午2:57 # @Author : Thanlon # @Wechat:18512152005 # @Email : thanlon@sina.com # @File : models.py # @Software: PyCharm from datetime import datetime from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String, Text, DateTime...
31.02381
91
0.712203
315
2,606
5.730159
0.422222
0.046537
0.041551
0.033241
0.240443
0.21385
0.21385
0.21385
0.137396
0.137396
0
0.034846
0.163085
2,606
83
92
31.39759
0.792756
0.194167
0
0.102041
0
0.020408
0.072841
0.033767
0
0
0
0
0
1
0.061224
false
0.020408
0.102041
0
0.693878
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
96f37f8d7672d2d3e62a597f78f77a6c393c4cb5
1,351
py
Python
python/character/character.py
SalihTuncer/DungeonCrawlerPy
27f149ba51d2588ec027a9fd8722401b1c5b6628
[ "MIT" ]
null
null
null
python/character/character.py
SalihTuncer/DungeonCrawlerPy
27f149ba51d2588ec027a9fd8722401b1c5b6628
[ "MIT" ]
null
null
null
python/character/character.py
SalihTuncer/DungeonCrawlerPy
27f149ba51d2588ec027a9fd8722401b1c5b6628
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import Dict import random as r class Character(ABC): # basic attributes of the Characters in the game __attributes = {} # equipment __equipment = {} def __init__(self) -> None: super().__init__() self.generate_attributes() @abst...
27.571429
61
0.566247
156
1,351
4.634615
0.365385
0.174274
0.070539
0.035961
0.171508
0.171508
0.171508
0.107884
0.107884
0.107884
0
0.008772
0.324944
1,351
48
62
28.145833
0.783991
0.041451
0
0.057143
0
0
0.01161
0
0
0
0
0
0
1
0.228571
false
0.028571
0.085714
0.085714
0.485714
0
0
0
0
null
0
0
0
0
0
0
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
96f95637a2a9f73469b6c7c55fa3350e0c70af88
320
py
Python
tests/test_features/test_bitvector.py
rldotai/flib
695e875f708b0b71c9b005fdf85c066e4ffb7c0f
[ "BSD-3-Clause" ]
1
2017-02-01T00:34:23.000Z
2017-02-01T00:34:23.000Z
tests/test_features/test_bitvector.py
rldotai/flib
695e875f708b0b71c9b005fdf85c066e4ffb7c0f
[ "BSD-3-Clause" ]
null
null
null
tests/test_features/test_bitvector.py
rldotai/flib
695e875f708b0b71c9b005fdf85c066e4ffb7c0f
[ "BSD-3-Clause" ]
null
null
null
import pytest import numpy as np import flib from flib import Int2Bin def test_Int2Bin(): integers = np.array([i for i in range(256)]) length = 10 func = Int2Bin(length) # individual outputs output = [func(i) for i in integers] # over all the integers at once out_array = func(integers)
18.823529
48
0.671875
48
320
4.4375
0.604167
0.037559
0.046948
0.065728
0
0
0
0
0
0
0
0.033333
0.25
320
17
49
18.823529
0.854167
0.15
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.4
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8c0382d59fe9406f6684fca509146b00bc5ab1c2
3,419
py
Python
sdk/python/pulumi_gcp/compute/region_instance_group_manager.py
vrutkovs/pulumi-gcp
ced632feea265d95a38c7ae02826deaae77fb358
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/compute/region_instance_group_manager.py
vrutkovs/pulumi-gcp
ced632feea265d95a38c7ae02826deaae77fb358
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/compute/region_instance_group_manager.py
vrutkovs/pulumi-gcp
ced632feea265d95a38c7ae02826deaae77fb358
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi import pulumi.runtime from .. import utilities, tables class RegionInstanceGroupManager(pulumi.CustomResource): """ ...
42.7375
362
0.721264
390
3,419
5.810256
0.366667
0.028685
0.035305
0.01677
0.103266
0.045896
0
0
0
0
0
0.000362
0.191576
3,419
79
363
43.278481
0.819465
0.262357
0
0
1
0
0.211461
0.053269
0
0
0
0
0
1
0.069767
false
0
0.069767
0.046512
0.209302
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8c09c3872ec3d9c5ed1580be1883d66e6d3418f3
1,076
py
Python
backend/account/urls.py
NishantTheProgrammer/ChatThings
11461aab1debae971079a86323701f948d4fe21d
[ "MIT" ]
7
2021-01-31T16:44:11.000Z
2021-03-02T10:50:04.000Z
backend/account/urls.py
NishantTheProgrammer/ChatThingsWeb
11461aab1debae971079a86323701f948d4fe21d
[ "MIT" ]
null
null
null
backend/account/urls.py
NishantTheProgrammer/ChatThingsWeb
11461aab1debae971079a86323701f948d4fe21d
[ "MIT" ]
1
2020-11-12T18:26:47.000Z
2020-11-12T18:26:47.000Z
# from django.contrib import admin # from django.urls import path, include # from rest_framework.authtoken.views import obtain_auth_token # from .views import LoginView, RegisterView, LogoutView # urlpatterns = [ # path('login/', LoginView.as_view()), # path('register/', RegisterView.as_view()), # path(...
37.103448
111
0.744424
121
1,076
6.454545
0.347107
0.069142
0.06402
0.051216
0.163892
0.102433
0.102433
0
0
0
0
0
0.120818
1,076
29
112
37.103448
0.825581
0.335502
0
0
0
0
0.167614
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8c0ae55eff9d5e07c791aa54853a8c642e7cc066
2,741
py
Python
sem1/fp/Simulare/Tests/UnittestService.py
itsbratu/bachelor
b3bcae07fc8297fb0557a4bf752b20c6104c2563
[ "MIT" ]
null
null
null
sem1/fp/Simulare/Tests/UnittestService.py
itsbratu/bachelor
b3bcae07fc8297fb0557a4bf752b20c6104c2563
[ "MIT" ]
null
null
null
sem1/fp/Simulare/Tests/UnittestService.py
itsbratu/bachelor
b3bcae07fc8297fb0557a4bf752b20c6104c2563
[ "MIT" ]
null
null
null
""" Python file where we store our class that tests our PicturaService in app """ import unittest import warnings from Repository.Repository import PicturaRepository from Service.Service import PicturaService from Exceptions.Exceptii import InvalidSubstring , InvalidCamera class UnittestService(unittest.TestCase): ...
38.605634
90
0.648304
304
2,741
5.789474
0.322368
0.119318
0.092045
0.071023
0.278409
0.172727
0
0
0
0
0
0.022675
0.211602
2,741
70
91
39.157143
0.791763
0.026633
0
0.096154
0
0
0.134962
0
0
0
0
0
0.403846
1
0.115385
false
0
0.096154
0
0.230769
0
0
0
0
null
0
0
0
0
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
8c10960a1c152d3bb4b5e1a26cd36f5cb1eea5a4
1,371
py
Python
10_1_merge_sorted_files.py
ChuckChen2020/ElementsOfProgrammingInterviews
635817bab6cddb397c45aa4b57c07a74b5ddb0a8
[ "MIT" ]
null
null
null
10_1_merge_sorted_files.py
ChuckChen2020/ElementsOfProgrammingInterviews
635817bab6cddb397c45aa4b57c07a74b5ddb0a8
[ "MIT" ]
null
null
null
10_1_merge_sorted_files.py
ChuckChen2020/ElementsOfProgrammingInterviews
635817bab6cddb397c45aa4b57c07a74b5ddb0a8
[ "MIT" ]
null
null
null
import heapq from functools import reduce def merge_sorted_arrays(sorted_arrays): result = [] min_heap = [(array[0], row, 0) for row, array in enumerate(sorted_arrays)] heapq.heapify(min_heap) while min_heap: val, row, col = heapq.heappop(min_heap) if col < len(sorted_arrays[row]) - 1...
30.466667
78
0.664478
189
1,371
4.502646
0.280423
0.211516
0.099882
0.070505
0.159812
0.159812
0.084606
0.084606
0
0
0
0.013321
0.233406
1,371
44
79
31.159091
0.796384
0
0
0.176471
0
0
0.005835
0
0
0
0
0
0
1
0.088235
false
0
0.058824
0.029412
0.235294
0.029412
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
8c113506944b2695cf1d430cc613d76d985122ce
858
py
Python
classes/sort_elephants.py
kashifali-m398/advanced_python
988f407e986403b3238c9d1ea30b7d6fddf88c84
[ "MIT" ]
1
2021-01-04T18:33:08.000Z
2021-01-04T18:33:08.000Z
classes/sort_elephants.py
kashifali-m398/advanced_python
988f407e986403b3238c9d1ea30b7d6fddf88c84
[ "MIT" ]
null
null
null
classes/sort_elephants.py
kashifali-m398/advanced_python
988f407e986403b3238c9d1ea30b7d6fddf88c84
[ "MIT" ]
null
null
null
""" Sort elephants by trunk sizes. """ from pprint import pprint class Elephant: def __init__(self, name, trunk_size): self.name = name self.trunk_size = trunk_size def __str__(self): return "This is Elephant {} with a trunk of size {})".format(self.name, self.trunk_size...
20.926829
97
0.601399
105
858
4.695238
0.457143
0.127789
0.105477
0.103448
0.121704
0.121704
0.121704
0
0
0
0
0.015699
0.257576
858
40
98
21.45
0.758242
0.059441
0
0.083333
0
0
0.181818
0
0
0
0
0
0
1
0.166667
false
0
0.041667
0.125
0.375
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
8c12a22f790517eee76e298ccd8d7bcdc9a17e5e
14,835
py
Python
src/pyprobe/probe.py
dittert/pyprobe
1b0d0e403645ed204332c70c8a89e094f860023a
[ "Apache-2.0" ]
null
null
null
src/pyprobe/probe.py
dittert/pyprobe
1b0d0e403645ed204332c70c8a89e094f860023a
[ "Apache-2.0" ]
null
null
null
src/pyprobe/probe.py
dittert/pyprobe
1b0d0e403645ed204332c70c8a89e094f860023a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2.7 # coding=utf-8 # Copyright 2014 Dirk Dittert # # 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 b...
36.182927
117
0.644287
1,688
14,835
5.489336
0.226896
0.032376
0.031081
0.027196
0.260846
0.201597
0.167278
0.142348
0.129937
0.096158
0
0.004219
0.264981
14,835
409
118
36.271394
0.845561
0.069498
0
0.325733
0
0
0.131719
0.008522
0
0
0
0
0
0
null
null
0.016287
0.104235
null
null
0.074919
0
0
0
null
0
0
0
0
0
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
8c137b06c6e47df18e7db5f1f1573dbedcf062f5
3,177
py
Python
preacher/app/cli/option.py
lasta/preacher
5e50f8eb930fac72a788e7614eb5a85903f7bde6
[ "MIT" ]
null
null
null
preacher/app/cli/option.py
lasta/preacher
5e50f8eb930fac72a788e7614eb5a85903f7bde6
[ "MIT" ]
null
null
null
preacher/app/cli/option.py
lasta/preacher
5e50f8eb930fac72a788e7614eb5a85903f7bde6
[ "MIT" ]
null
null
null
"""CLI Options.""" import logging import re import shlex from concurrent.futures import ( Executor, ProcessPoolExecutor, ThreadPoolExecutor, ) from enum import IntEnum from typing import Callable, Iterable, Mapping, Optional, Tuple, Union from click import ( Choice, Context, BadParameter, ...
23.887218
77
0.680201
385
3,177
5.438961
0.298701
0.028653
0.037249
0.036294
0.291786
0.276504
0.26361
0.26361
0.26361
0.26361
0
0.001604
0.214983
3,177
132
78
24.068182
0.838011
0.003777
0
0.239583
0
0
0.040203
0
0
0
0
0
0
1
0.125
false
0
0.114583
0.072917
0.520833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8c19f04e10029cbdd0bef8e9030bbabede1fb474
10,482
py
Python
iriusrisk-python-client-lib/iriusrisk_python_client_lib/models/component.py
iriusrisk/iriusrisk-python-client-lib
4912706cd1e5c0bc555dbc7da02fb64cbeab3b18
[ "Apache-2.0" ]
null
null
null
iriusrisk-python-client-lib/iriusrisk_python_client_lib/models/component.py
iriusrisk/iriusrisk-python-client-lib
4912706cd1e5c0bc555dbc7da02fb64cbeab3b18
[ "Apache-2.0" ]
null
null
null
iriusrisk-python-client-lib/iriusrisk_python_client_lib/models/component.py
iriusrisk/iriusrisk-python-client-lib
4912706cd1e5c0bc555dbc7da02fb64cbeab3b18
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ IriusRisk API Products API # noqa: E501 OpenAPI spec version: 1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class Component(object): """NOTE: This class is auto generated by the swagger code g...
25.817734
206
0.563728
1,187
10,482
4.882056
0.113732
0.049698
0.124245
0.118033
0.396549
0.324763
0.306471
0.133046
0.08145
0.054185
0
0.019732
0.337626
10,482
405
207
25.881481
0.814922
0.356611
0
0.08
1
0
0.074841
0.016101
0
0
0
0
0
1
0.171429
false
0
0.017143
0
0.308571
0.011429
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
8c1aa0b87190415357f1a733ef544afd2955153f
432
py
Python
openbook_auth/migrations/0018_auto_20190204_1325.py
TamaraAbells/okuna-api
f87d8e80d2f182c01dbce68155ded0078ee707e4
[ "MIT" ]
164
2019-07-29T17:59:06.000Z
2022-03-19T21:36:01.000Z
openbook_auth/migrations/0018_auto_20190204_1325.py
TamaraAbells/okuna-api
f87d8e80d2f182c01dbce68155ded0078ee707e4
[ "MIT" ]
188
2019-03-16T09:53:25.000Z
2019-07-25T14:57:24.000Z
openbook_auth/migrations/0018_auto_20190204_1325.py
TamaraAbells/okuna-api
f87d8e80d2f182c01dbce68155ded0078ee707e4
[ "MIT" ]
80
2019-08-03T17:49:08.000Z
2022-02-28T16:56:33.000Z
# Generated by Django 2.1.5 on 2019-02-04 12:25 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('openbook_common', '0012_auto_20190202_1320'), ('openbook_auth', '0017_auto_20190201_1727'), ] operations = [ migrations.AlterUniqueTogether(...
22.736842
56
0.62963
44
432
5.954545
0.863636
0
0
0
0
0
0
0
0
0
0
0.145062
0.25
432
18
57
24
0.66358
0.104167
0
0
1
0
0.277922
0.119481
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
8c2ba43cd5863e190ef759c4f8f4aade5a8953c5
351
py
Python
petstagram/petstagram/common/migrations/0002_rename_text_comment_comment.py
PetkoAndreev/Python-Web-Petstagram
d363ca900e64b7bba228f7f7603ddcaf7186f61e
[ "MIT" ]
1
2021-05-27T07:57:43.000Z
2021-05-27T07:57:43.000Z
petstagram/petstagram/common/migrations/0002_rename_text_comment_comment.py
PetkoAndreev/Python-Web-Basics
76719cd18bd96ac422fe8d8b1a12807a1d015bb5
[ "MIT" ]
null
null
null
petstagram/petstagram/common/migrations/0002_rename_text_comment_comment.py
PetkoAndreev/Python-Web-Basics
76719cd18bd96ac422fe8d8b1a12807a1d015bb5
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-06-22 08:30 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('common', '0001_initial'), ] operations = [ migrations.RenameField( model_name='comment', old_name='text', new_na...
18.473684
47
0.569801
37
351
5.297297
0.783784
0.112245
0
0
0
0
0
0
0
0
0
0.078838
0.31339
351
18
48
19.5
0.73444
0.128205
0
0
1
0
0.118421
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8c2ecc2dae9b99a693a17b8bfac5221b830b7eed
244
py
Python
examples/trigger.py
muffleo/qittle
6658e11eae9e6d83bcf0e930803c2f41abd3f4a0
[ "MIT" ]
2
2020-09-15T19:48:13.000Z
2020-09-16T10:26:17.000Z
examples/trigger.py
cyanlabs-org/qittle
6658e11eae9e6d83bcf0e930803c2f41abd3f4a0
[ "MIT" ]
2
2021-05-04T17:15:28.000Z
2021-05-04T17:20:09.000Z
examples/trigger.py
cyanlabs-org/qittle
6658e11eae9e6d83bcf0e930803c2f41abd3f4a0
[ "MIT" ]
null
null
null
import asyncio import os from qittle.api import API api = API(os.getenv("QIWI_TOKEN")) async def main(): response = await api.hook.trigger() # Call API method.. print(response.response) # ..and print response asyncio.run(main())
17.428571
60
0.696721
35
244
4.828571
0.6
0.071006
0
0
0
0
0
0
0
0
0
0
0.17623
244
13
61
18.769231
0.840796
0.155738
0
0
0
0
0.049261
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8c31138dac71ba403f727368ec698d659c9472d2
724
py
Python
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/core/decorator/oetag.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/core/decorator/oetag.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/core/decorator/oetag.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# # Copyright (C) 2016 Intel Corporation # # SPDX-License-Identifier: MIT # from . import OETestFilter, registerDecorator from oeqa.core.utils.misc import strToList def _tagFilter(tags, filters): return False if set(tags) & set(filters) else True @registerDecorator class OETestTag(OETestFilter): attrs = ('oe...
25.857143
58
0.64779
81
724
5.765432
0.506173
0.057816
0
0
0
0
0
0
0
0
0
0.007246
0.237569
724
27
59
26.814815
0.838768
0.089779
0
0
0
0
0.045942
0
0
0
0
0
0
1
0.176471
false
0
0.117647
0.058824
0.588235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8c33ecfe3f55df381df1a406b4068e178a118a17
582
py
Python
1300/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
1300/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
1300/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
# 1300. 转变数组后最接近目标值的数组和 # # 20200810 # huao from typing import List class Solution: def findBestValue(self, arr: List[int], target: int) -> int: arr.sort() length = len(arr) if length == 1: return min(arr[0], target) avg = target / length if avg > arr[0]: ...
24.25
64
0.530928
67
582
4.61194
0.402985
0.23301
0.174757
0
0
0
0
0
0
0
0
0.05305
0.352234
582
23
65
25.304348
0.766578
0.060137
0
0.125
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.5
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8c3e6ba8c655f63748527b7f042cf8b6964d7839
9,833
py
Python
cassiopeia/type/dto/team.py
BubblegumDiscord/LoLTrivia
70070dc2e8c59d7210d8b30ad2525bafaee4bba7
[ "MIT" ]
null
null
null
cassiopeia/type/dto/team.py
BubblegumDiscord/LoLTrivia
70070dc2e8c59d7210d8b30ad2525bafaee4bba7
[ "MIT" ]
null
null
null
cassiopeia/type/dto/team.py
BubblegumDiscord/LoLTrivia
70070dc2e8c59d7210d8b30ad2525bafaee4bba7
[ "MIT" ]
1
2018-05-06T15:49:33.000Z
2018-05-06T15:49:33.000Z
import cassiopeia.type.dto.common import cassiopeia.type.core.common if cassiopeia.type.dto.common.sqlalchemy_imported: import sqlalchemy import sqlalchemy.orm @cassiopeia.type.core.common.inheritdocs class Team(cassiopeia.type.dto.common.CassiopeiaDto): """ Args: createDate (int): date that...
44.695455
157
0.698261
1,026
9,833
6.58577
0.137427
0.092349
0.150067
0.078141
0.419269
0.320852
0.248335
0.106852
0.074441
0.074441
0
0.005394
0.189261
9,833
219
158
44.899543
0.842198
0.16587
0
0.189781
0
0
0.087176
0.0259
0
0
0
0
0
1
0.087591
false
0.029197
0.036496
0
0.554745
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8c48662d10e30d3142c9cb9c35d1f59b8f72086f
1,223
py
Python
chapter14/examples/example04.py
YordanIH/Intro_to_CS_w_Python
eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a
[ "MIT" ]
null
null
null
chapter14/examples/example04.py
YordanIH/Intro_to_CS_w_Python
eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a
[ "MIT" ]
null
null
null
chapter14/examples/example04.py
YordanIH/Intro_to_CS_w_Python
eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a
[ "MIT" ]
null
null
null
>>> from member import Member >>> from member import Faculty >>> from member import Student >>> paul = Faculty('Paul Gries', 'Ajax', 'pgries@cs.toronto.edu', '1234') >>> paul.name 'Paul Gries' >>> paul.email 'pgries@cs.toronto.edu' >>> paul.faculty_number '1234' >>> jen = Student('Jen Campbell', 'Toronto', 'campbell@cs...
24.959184
79
0.630417
154
1,223
4.88961
0.253247
0.131474
0.175299
0.143426
0.366534
0.334661
0.329349
0.207171
0
0
0
0.035363
0.167621
1,223
49
80
24.959184
0.704322
0
0
0.181818
0
0
0.371202
0.253633
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8c4cbcdd929f8bfa47b343e3e1852bac70aee2bb
544
py
Python
wrangling_data/replacing_values.py
gusxpander/learn-pandas
3371c4a99f219a03c64fb8de4d2c1cedbebca229
[ "Apache-2.0" ]
null
null
null
wrangling_data/replacing_values.py
gusxpander/learn-pandas
3371c4a99f219a03c64fb8de4d2c1cedbebca229
[ "Apache-2.0" ]
null
null
null
wrangling_data/replacing_values.py
gusxpander/learn-pandas
3371c4a99f219a03c64fb8de4d2c1cedbebca229
[ "Apache-2.0" ]
null
null
null
import pandas as pd url = 'https://tinyurl.com//titanic-csv' dataframe = pd.read_csv(url) # Repalce 'female' for 'Woman' and show print(dataframe['Sex'].replace('female','Woman').head(2)) # Replace 'female' for 'Woman' and 'male' for 'Man' print(dataframe['Sex'].replace(['female','Woman'],['male','Man']).head(5)) ...
28.631579
74
0.693015
85
544
4.423529
0.470588
0.148936
0.074468
0.090426
0.367021
0.367021
0.180851
0
0
0
0
0.020833
0.117647
544
18
75
30.222222
0.7625
0.365809
0
0
0
0
0.230089
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.571429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
8c5d3e5d14696974bd83845fbe1fe9f93adbe9e9
1,815
py
Python
examples/trackers/3D/ecg_3d_tracker.py
TiNezlobinsky/Finitewave
b29621f56cada26256be120b2fbbe84970758683
[ "MIT" ]
null
null
null
examples/trackers/3D/ecg_3d_tracker.py
TiNezlobinsky/Finitewave
b29621f56cada26256be120b2fbbe84970758683
[ "MIT" ]
null
null
null
examples/trackers/3D/ecg_3d_tracker.py
TiNezlobinsky/Finitewave
b29621f56cada26256be120b2fbbe84970758683
[ "MIT" ]
2
2021-10-05T13:38:56.000Z
2022-03-05T15:58:08.000Z
# # Use the Period3DTracker to measure wave period (e.g spiral wave). # from finitewave.cpuwave3D.tissue.cardiac_tissue_3d import CardiacTissue3D from finitewave.cpuwave3D.model.aliev_panfilov_3d import AlievPanfilov3D from finitewave.cpuwave3D.model.tp06_3d import TP063D from finitewave.cpuwave3D.stimulation.stim_vo...
31.293103
85
0.798347
265
1,815
5.309434
0.358491
0.083156
0.098081
0.039801
0.052594
0
0
0
0
0
0
0.044099
0.112948
1,815
57
86
31.842105
0.829814
0.238567
0
0
0
0
0.003652
0
0
0
0
0
0
1
0
false
0
0.322581
0
0.322581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8c62cac2629e9d4f41b49db7fd1be4d641c57e95
1,543
py
Python
server/src/game/levelGenerator/orientationDictionary.py
Jobegiar99/Garden-Palooza
694acaf42a56f3ecfb2fa3912e3777ad44e3126e
[ "MIT" ]
1
2021-08-02T23:33:50.000Z
2021-08-02T23:33:50.000Z
server/src/game/levelGenerator/orientationDictionary.py
Jobegiar99/Garden-Palooza
694acaf42a56f3ecfb2fa3912e3777ad44e3126e
[ "MIT" ]
61
2021-08-03T00:13:24.000Z
2021-08-20T17:38:36.000Z
server/src/game/levelGenerator/orientationDictionary.py
Jobegiar99/Garden-Palooza
694acaf42a56f3ecfb2fa3912e3777ad44e3126e
[ "MIT" ]
1
2021-08-22T03:32:42.000Z
2021-08-22T03:32:42.000Z
class OrientationDictionary: def __init__(self, spriteIndexes): up = [[[0, 1, 0], [0, 1, 0], [0, 0, 0]], [[0, 1, 0], [1, 1, 1], [0, 0, 0]]] down = [[[0, 0, 0], [0, 1, 0], [0, 1, 0]], [[0, 0, 0], [1, 1, 1], [0, 1, 0]]] left = [[[0, 0, 0], [1, 1, 0], [0, 0, 0]], [[0, 1, 0], [1, 1, 0], [0, 1,...
35.068182
86
0.435515
202
1,543
3.306931
0.138614
0.173653
0.143713
0.083832
0.215569
0.200599
0.194611
0.079341
0.068862
0.02994
0
0.148713
0.320156
1,543
43
87
35.883721
0.488084
0
0
0
0
0
0
0
0
0
0
0
0
1
0.033333
false
0
0
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8c65517f9dccfba07223aa854ffecfbaf50e74db
4,128
py
Python
Scripts/Models.py
utkuc/476_573_MyRecipes
3c14dcc26288417437cb19a74de730f7e19bc0c3
[ "MIT" ]
null
null
null
Scripts/Models.py
utkuc/476_573_MyRecipes
3c14dcc26288417437cb19a74de730f7e19bc0c3
[ "MIT" ]
null
null
null
Scripts/Models.py
utkuc/476_573_MyRecipes
3c14dcc26288417437cb19a74de730f7e19bc0c3
[ "MIT" ]
null
null
null
from datetime import datetime from app import db from sqlalchemy.schema import Sequence # id_seq is required for auto id generation(cx_Oracle) id_seq = Sequence('id_seq') ingredientList = db.Table('Ingredient_List', db.Column('Ingredient_name', db.String(255), db.ForeignKey('INGREDIENT.name...
39.692308
130
0.625242
505
4,128
4.992079
0.2
0.120587
0.134867
0.101547
0.428798
0.341134
0.262991
0.262991
0.236811
0.236811
0
0.016812
0.221899
4,128
103
131
40.07767
0.768057
0.012597
0
0.166667
0
0
0.114875
0.005155
0
0
0
0
0
1
0.011905
false
0.011905
0.035714
0.011905
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
4fb23deb0a7b25fe3d038c723a41690230d3cb00
2,084
py
Python
project/openldap.py
mmesiti/cogs3
c48cd48629570f418b93aec73de49bc2fb59edc2
[ "MIT" ]
null
null
null
project/openldap.py
mmesiti/cogs3
c48cd48629570f418b93aec73de49bc2fb59edc2
[ "MIT" ]
null
null
null
project/openldap.py
mmesiti/cogs3
c48cd48629570f418b93aec73de49bc2fb59edc2
[ "MIT" ]
null
null
null
from openldap.api import project_api from openldap.api import project_membership_api from project.models import SystemAllocationRequest from project.models import ProjectUserMembership def update_openldap_project(allocation): """ Ensure project status updates are propagated to OpenLDAP. """ deactivate...
40.076923
112
0.761516
202
2,084
7.60396
0.237624
0.210286
0.052083
0.050781
0.211589
0.132161
0.132161
0.084635
0.084635
0
0
0
0.181862
2,084
52
113
40.076923
0.90088
0.081574
0
0
0
0
0
0
0
0
0
0
0
1
0.081081
false
0
0.108108
0
0.189189
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4fb39c1aae8cda2e648d06dd3e581dcf6a7f1c7f
1,933
py
Python
tests/conftest.py
Granitosaurus/xonsh
3796c4ba3b2e857a02760b260b5a911b148a511d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/conftest.py
Granitosaurus/xonsh
3796c4ba3b2e857a02760b260b5a911b148a511d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/conftest.py
Granitosaurus/xonsh
3796c4ba3b2e857a02760b260b5a911b148a511d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import builtins import pytest from tools import DummyShell, sp, XonshBlockError import xonsh.built_ins from xonsh.built_ins import ensure_list_of_strs from xonsh.execer import Execer import glob @pytest.fixture def xonsh_execer(monkeypatch): """Initiate the Execer with a mocked nop `load_builtins`""" monkeypa...
33.327586
87
0.768236
236
1,933
5.622881
0.258475
0.264506
0.144687
0.048229
0.091183
0.043708
0
0
0
0
0
0
0.170202
1,933
57
88
33.912281
0.827307
0.05225
0
0
0
0
0.007139
0
0
0
0
0
0
1
0.039216
false
0
0.137255
0
0.196078
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4fb5851e916ea541ff6a8046b520ffa5dfd15ea0
12,100
py
Python
biomine/variant/variant.py
NagaComBio/BioMine
dca65800ef96accf361e5699c4dffa78d8d89938
[ "MIT" ]
null
null
null
biomine/variant/variant.py
NagaComBio/BioMine
dca65800ef96accf361e5699c4dffa78d8d89938
[ "MIT" ]
null
null
null
biomine/variant/variant.py
NagaComBio/BioMine
dca65800ef96accf361e5699c4dffa78d8d89938
[ "MIT" ]
2
2019-12-12T14:49:18.000Z
2019-12-19T17:53:10.000Z
#1-based closed coordinate system #https://wiki.nci.nih.gov/display/TCGA/Mutation+Annotation+Format+%28MAF%29+Specification class variant(object): NULL = "." def __init__(self , **kwargs): self.gene = kwargs.get('gene',"") self.chromosome = kwargs.get('chromosome',None) if self.chromosome: self.cleanChromoso...
30.788804
127
0.638512
1,519
12,100
5.060566
0.14154
0.067647
0.011708
0.013659
0.195785
0.149343
0.123845
0.120723
0.091843
0.067517
0
0.012677
0.211157
12,100
392
128
30.867347
0.792666
0.103306
0
0.298246
0
0
0.043242
0.004178
0
0
0
0.002551
0
0
null
null
0
0
null
null
0.070175
0
0
0
null
0
0
0
0
0
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
4fb7f4a548955229d011287fa13c65a1f2678b34
713
py
Python
src/clearcode/migrations/0001_initial.py
FiniteStateInc/clearcode-toolkit
521c3a2ab9d9fa6d7b9059227c6af9d09b031c33
[ "Apache-2.0" ]
7
2020-06-22T15:35:23.000Z
2020-10-14T14:37:35.000Z
src/clearcode/migrations/0001_initial.py
FiniteStateInc/clearcode-toolkit
521c3a2ab9d9fa6d7b9059227c6af9d09b031c33
[ "Apache-2.0" ]
8
2020-06-25T06:58:15.000Z
2022-01-06T18:08:00.000Z
src/clearcode/migrations/0001_initial.py
nexB/clearcode-toolk
77e00c4bec330f523bda4b0d61e70276295680db
[ "Apache-2.0" ]
3
2020-07-20T16:28:38.000Z
2020-12-21T20:26:27.000Z
# Generated by Django 3.0.4 on 2020-03-06 18:14 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='CDitem', fields=[ ('path', models.CharField...
31
170
0.628331
82
713
5.365854
0.756098
0.054545
0
0
0
0
0
0
0
0
0
0.036122
0.262272
713
22
171
32.409091
0.80038
0.063114
0
0
1
0
0.25976
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4fbffcafb20df963863a90632d1e90f68f6bd13a
679
py
Python
src/analytics/models.py
AnmolMoza/Project-Engage
41d35c215f3a92cc8952a8fe0b5ba7dee44f3d4e
[ "bzip2-1.0.6" ]
null
null
null
src/analytics/models.py
AnmolMoza/Project-Engage
41d35c215f3a92cc8952a8fe0b5ba7dee44f3d4e
[ "bzip2-1.0.6" ]
null
null
null
src/analytics/models.py
AnmolMoza/Project-Engage
41d35c215f3a92cc8952a8fe0b5ba7dee44f3d4e
[ "bzip2-1.0.6" ]
null
null
null
from django.db import models # Create your models here. from shortener.models import ShorURL class ClickEventManager(models.Manager): def create_event(self,ShorInstance): if isinstance(ShorInstance,ShorURL): obj, created = self.get_or_create(shor_url=ShorInstance) obj.count += 1 obj.save() return obj.c...
28.291667
70
0.759941
88
679
5.715909
0.568182
0.027833
0.091451
0.10338
0
0
0
0
0
0
0
0.003413
0.136966
679
24
71
28.291667
0.854949
0.035346
0
0
0
0
0.004587
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0.055556
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
4fbffd8367890dd0f3d21ee7a28e196456616da8
3,395
py
Python
examples/reentry_vehicle_tracking/main_00_reentry_01.py
AshivDhondea/PyTrackingToolbox
817dca19335aa03808a5b4ff25cdce612c3ada0d
[ "MIT" ]
3
2019-11-12T23:07:16.000Z
2022-01-23T23:18:06.000Z
examples/reentry_vehicle_tracking/main_00_reentry_01.py
AshivDhondea/PyTrackingToolbox
817dca19335aa03808a5b4ff25cdce612c3ada0d
[ "MIT" ]
null
null
null
examples/reentry_vehicle_tracking/main_00_reentry_01.py
AshivDhondea/PyTrackingToolbox
817dca19335aa03808a5b4ff25cdce612c3ada0d
[ "MIT" ]
2
2019-11-05T14:41:24.000Z
2020-06-30T02:57:56.000Z
# -*- coding: utf-8 -*- """ Created on Wed Feb 07 12:22:55 2018 Reentry vehicle tracking @author: Ashiv Dhondea """ # --------------------------------------------------------------------------## ## Include necessary libraries import numpy as np # Importing what's needed for nice plots. import matplotlib.p...
37.722222
86
0.584978
535
3,395
3.661682
0.385047
0.01123
0.050026
0.006126
0.169985
0.168453
0.105156
0.105156
0.030628
0.030628
0
0.071693
0.12489
3,395
90
87
37.722222
0.587681
0.278056
0
0
0
0
0.178844
0.02286
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.018182
0
0
0
null
0
0
0
0
0
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
4fc4b82e06e5fee2012d81b638d3aa7b94ffd1a0
2,434
py
Python
examples/data_from_csv/data_from_csv.py
bpptkg/komapy
a33fce5f4fbfacf085fd1f8043a57564be192a8d
[ "MIT" ]
null
null
null
examples/data_from_csv/data_from_csv.py
bpptkg/komapy
a33fce5f4fbfacf085fd1f8043a57564be192a8d
[ "MIT" ]
null
null
null
examples/data_from_csv/data_from_csv.py
bpptkg/komapy
a33fce5f4fbfacf085fd1f8043a57564be192a8d
[ "MIT" ]
null
null
null
import os from komapy import Chart CSV_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'rb2.csv') chart = Chart({ 'title': 'Grafik EDM RB2', 'rc_params': { 'font.size': 11, 'font.sans-serif': ['Helvetica'] }, 'layout': { 'options': { 'figsize': [12,...
30.049383
78
0.233361
120
2,434
4.616667
0.716667
0.032491
0
0
0
0
0
0
0
0
0
0.035963
0.64585
2,434
80
79
30.425
0.606729
0
0
0.093333
0
0
0.185368
0.011919
0
0
0
0
0
1
0
false
0
0.026667
0
0.026667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4fcea1e902a698e6f01c53e20f84bbbf5fc65082
502
py
Python
programming_for_biology/for_loops/product.py
jnferner/programming-for-biology
d895a20a9591888616af2bae2e2d87feebf6d60a
[ "MIT" ]
null
null
null
programming_for_biology/for_loops/product.py
jnferner/programming-for-biology
d895a20a9591888616af2bae2e2d87feebf6d60a
[ "MIT" ]
null
null
null
programming_for_biology/for_loops/product.py
jnferner/programming-for-biology
d895a20a9591888616af2bae2e2d87feebf6d60a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from functools import reduce from operator import mul def get_product(numbers: list) -> int: return reduce(mul, numbers, 1) def get_product_from_needle_on(numbers: list, needle: int) -> int: index = numbers.index(needle) return get_product(numbers[index:]) if __name__ == "__main...
26.421053
73
0.679283
80
502
4.025
0.4125
0.15528
0.158385
0.124224
0.180124
0.180124
0
0
0
0
0
0.043584
0.177291
502
18
74
27.888889
0.736077
0.041833
0
0
0
0
0.204167
0.120833
0
0
0
0
0
1
0.181818
false
0
0.181818
0.090909
0.545455
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4fd4c25e591f6595bb0810e7a27c7ed7b1da7276
2,980
py
Python
binders/difido-pytest/Automation/difido/remote_utils.py
hengoldburd/difido-reports
153d20fc9291f19c990284fa3c8d5ed882415152
[ "Apache-2.0" ]
42
2016-05-30T07:00:31.000Z
2021-08-08T21:21:37.000Z
binders/difido-pytest/Automation/difido/remote_utils.py
hengoldburd/difido-reports
153d20fc9291f19c990284fa3c8d5ed882415152
[ "Apache-2.0" ]
165
2016-06-02T15:48:03.000Z
2022-03-30T06:11:34.000Z
binders/difido-pytest/Automation/difido/remote_utils.py
hengoldburd/difido-reports
153d20fc9291f19c990284fa3c8d5ed882415152
[ "Apache-2.0" ]
35
2016-06-06T04:24:50.000Z
2022-03-16T15:57:59.000Z
''' Created on Aug 10, 2017 @author: Itai Agmon ''' import json from configuration import Conf from http import client import requests conf = Conf("remote") def prepare_remote_execution(details): res = send_request(method="POST", url="http://" + conf.get_string("host") + ":" + str(conf.get_int("port")) + "/api...
38.701299
233
0.64396
395
2,980
4.716456
0.270886
0.052603
0.048846
0.063875
0.398282
0.317767
0.29737
0.266237
0.266237
0.211487
0
0.01417
0.171141
2,980
76
234
39.210526
0.740081
0.11745
0
0.142857
0
0
0.190057
0.034799
0
0
0
0
0
1
0.214286
false
0.02381
0.095238
0.02381
0.428571
0.047619
0
0
0
null
0
0
0
0
0
0
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
4fd8ac56f1864619e44c33d83afe7dd9cd8452a7
6,969
py
Python
elasticmagic/index.py
kvasnevskyi/elasticmagic
55e790ca3453fb331167ed7841e5a69edec5ccfb
[ "Apache-2.0" ]
null
null
null
elasticmagic/index.py
kvasnevskyi/elasticmagic
55e790ca3453fb331167ed7841e5a69edec5ccfb
[ "Apache-2.0" ]
null
null
null
elasticmagic/index.py
kvasnevskyi/elasticmagic
55e790ca3453fb331167ed7841e5a69edec5ccfb
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from abc import ABCMeta from .compat import with_metaclass from .document import DynamicDocument from .util import to_camel_case class BaseIndex(with_metaclass(ABCMeta)): def __init__(self, cluster, name): self._cluster = cluster self._name = name ...
33.830097
79
0.62118
800
6,969
5.13125
0.12875
0.07162
0.082826
0.089647
0.479172
0.402436
0.315225
0.230207
0.215591
0.185627
0
0
0.281102
6,969
205
80
33.995122
0.819361
0.016932
0
0.184524
0
0
0.004247
0
0
0
0
0
0
1
0.14881
false
0
0.029762
0.130952
0.345238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
4fdc423a1fc7fad35fe62efe8efaaca3179edaf9
1,608
py
Python
snappy_wrappers/wrappers/erds/wrapper.py
PotatoThrone/snappy-pipeline
31200eba84bff8e459e9e210d6d95e2984627f5c
[ "MIT" ]
5
2021-02-26T10:39:56.000Z
2021-12-23T07:53:26.000Z
snappy_wrappers/wrappers/erds/wrapper.py
PotatoThrone/snappy-pipeline
31200eba84bff8e459e9e210d6d95e2984627f5c
[ "MIT" ]
93
2021-02-22T11:23:59.000Z
2022-03-31T09:58:39.000Z
snappy_wrappers/wrappers/erds/wrapper.py
PotatoThrone/snappy-pipeline
31200eba84bff8e459e9e210d6d95e2984627f5c
[ "MIT" ]
3
2021-02-22T11:44:59.000Z
2021-06-21T19:33:53.000Z
# -*- coding: utf-8 -*- """Wrapper for running ERDS call step """ from snakemake.shell import shell __author__ = "Manuel Holtgrewe" __email__ = "manuel.holtgrewe@bihealth.de" shell( r""" # ----------------------------------------------------------------------------- # Redirect stderr to log file by default and e...
28.210526
89
0.617537
204
1,608
4.789216
0.539216
0.107472
0.128966
0.106448
0.190379
0.092119
0.092119
0.092119
0
0
0
0.005831
0.146766
1,608
56
90
28.714286
0.706268
0.035448
0
0
0
0
0.341085
0.217054
0
0
0
0.017857
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
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
4fe107620e9cc7f5f8875d7a3b607e97cc2da259
1,215
py
Python
onnxmltools/convert/coreml/shape_calculators/neural_network/Upsample.py
szha/onnxmltools
b04d05bda625cbc006955ce0a220277739a95825
[ "MIT" ]
3
2019-02-27T21:03:43.000Z
2020-04-07T22:16:50.000Z
onnxmltools/convert/coreml/shape_calculators/neural_network/Upsample.py
szha/onnxmltools
b04d05bda625cbc006955ce0a220277739a95825
[ "MIT" ]
null
null
null
onnxmltools/convert/coreml/shape_calculators/neural_network/Upsample.py
szha/onnxmltools
b04d05bda625cbc006955ce0a220277739a95825
[ "MIT" ]
2
2020-10-01T09:24:55.000Z
2021-04-17T13:57:31.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import co...
39.193548
108
0.672428
143
1,215
5.426573
0.440559
0.051546
0.06701
0.097938
0.128866
0
0
0
0
0
0
0.009302
0.115226
1,215
30
109
40.5
0.712558
0.307819
0
0
0
0
0.009792
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4fe86de695a8cd19c9041174e1272a6ca8a001f6
6,816
py
Python
core/data_utils.py
BioImageInformatics/histo_seg
ed2118852c247ef43d79b22e65870af9e5d344b5
[ "Unlicense" ]
2
2018-02-05T01:04:04.000Z
2019-10-17T19:09:35.000Z
core/data_utils.py
BioImageInformatics/histo_seg
ed2118852c247ef43d79b22e65870af9e5d344b5
[ "Unlicense" ]
2
2018-01-03T19:56:16.000Z
2018-01-03T19:56:49.000Z
core/data_utils.py
BioImageInformatics/histo_seg
ed2118852c247ef43d79b22e65870af9e5d344b5
[ "Unlicense" ]
null
null
null
""" data_utils.py utility functions for read/write """ from openslide import OpenSlide import cv2 import numpy as np import time import sys import os import shutil module_dir, module_name = os.path.split(__file__) sys.path.insert(0, module_dir) import colorNormalization as cnorm def move_slide(slide, srcdir='not_...
31.266055
86
0.599619
858
6,816
4.59324
0.254079
0.026643
0.020299
0.031972
0.263131
0.205024
0.181172
0.149454
0.118498
0.118498
0
0.020155
0.279343
6,816
217
87
31.410138
0.782166
0.165493
0
0.204545
0
0
0.112702
0
0
0
0
0.004608
0
0
null
null
0
0.060606
null
null
0.136364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4fee87493b507e6c77289aef84a428908557a812
1,985
py
Python
server/plugins/machinedetailsecurity/scripts/machinedetailsecurity.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
2
2019-11-01T20:50:35.000Z
2021-01-13T22:02:55.000Z
server/plugins/machinedetailsecurity/scripts/machinedetailsecurity.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
null
null
null
server/plugins/machinedetailsecurity/scripts/machinedetailsecurity.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import subprocess import sys sys.path.append('/usr/local/munki') from munkilib import FoundationPlist from munkilib import munkicommon import os import platform from distutils.version import LooseVersion def mac_version(): v = platform.mac_ver()[0][:-2] return v def get_status(cmd, checkstr...
24.8125
74
0.640806
244
1,985
5.106557
0.393443
0.050562
0.038523
0.044944
0.103531
0.032103
0
0
0
0
0
0.003922
0.229219
1,985
79
75
25.126582
0.810458
0.039295
0
0.064516
0
0
0.195801
0.029396
0
0
0
0
0
0
null
null
0
0.112903
null
null
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4ff047cb6dd5e96ba44da03b3425d2910626f887
2,085
py
Python
test/smoketest/util.py
cdosco/Colorado-RLA
4443924aff5d2ab26c40f55089cae356d1c94289
[ "RSA-MD" ]
23
2017-07-05T22:43:29.000Z
2022-01-25T18:59:37.000Z
test/smoketest/util.py
cdosco/Colorado-RLA
4443924aff5d2ab26c40f55089cae356d1c94289
[ "RSA-MD" ]
603
2017-07-07T04:03:37.000Z
2020-08-07T11:57:57.000Z
test/smoketest/util.py
cdosco/Colorado-RLA
4443924aff5d2ab26c40f55089cae356d1c94289
[ "RSA-MD" ]
6
2017-07-06T14:02:43.000Z
2018-06-14T20:19:00.000Z
#!/usr/bin/env python """ Utility functions for testing ColoradoRLA. For testing, convert CVRs for ballots to be audited into aCVRs for automatic entry. Implement publish_ballots_to_audit, or at least a stub. get_cvrs(): Get all cvrs """ from __future__ import print_function import sys import logging import json i...
27.8
114
0.631175
288
2,085
4.388889
0.440972
0.056962
0.077532
0.049842
0.061709
0.061709
0.061709
0.061709
0.061709
0
0
0.018088
0.257554
2,085
74
115
28.175676
0.79845
0.260911
0
0
0
0
0.157354
0
0
0
0
0.027027
0
1
0.055556
false
0
0.166667
0
0.277778
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
1
0
0
0
0
0
0
0
0
0
0
1
4fff2013ef77ee702929bb8bcc61d0dadf24f5ae
2,968
py
Python
client/apps/city_issues/models/users.py
slash26/DevOps
0fe118e234157a58da009fe9b14a527bc5dbe7f7
[ "MIT" ]
null
null
null
client/apps/city_issues/models/users.py
slash26/DevOps
0fe118e234157a58da009fe9b14a527bc5dbe7f7
[ "MIT" ]
null
null
null
client/apps/city_issues/models/users.py
slash26/DevOps
0fe118e234157a58da009fe9b14a527bc5dbe7f7
[ "MIT" ]
null
null
null
""" Django models """ from __future__ import unicode_literals import datetime from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.hashers import make_password from django.db import models from passlib.handlers.django import django_bcrypt from city_issues.user_managers import ...
23.744
72
0.612534
342
2,968
5.131579
0.292398
0.054701
0.041026
0.048433
0.233048
0.104843
0.031909
0
0
0
0
0.005806
0.303571
2,968
124
73
23.935484
0.843251
0.046496
0
0.340909
0
0
0.014645
0
0
0
0
0
0
1
0.136364
false
0.147727
0.079545
0.068182
0.488636
0
0
0
0
null
0
0
0
0
0
0
0
0
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
8b0e05bdce2091701643b883fc4fea032580c967
353
py
Python
python/template.py
param108/MazeRunner
ea05ee994517bb0498fbf6c2832c2bb391decc57
[ "MIT" ]
null
null
null
python/template.py
param108/MazeRunner
ea05ee994517bb0498fbf6c2832c2bb391decc57
[ "MIT" ]
null
null
null
python/template.py
param108/MazeRunner
ea05ee994517bb0498fbf6c2832c2bb391decc57
[ "MIT" ]
null
null
null
import httplib import json import commands # to be used with whats_next # if whats_next() == WALL: # <avoid the wall> WALL="WALL" BLANK="BLANK" HERO="HERO" X="X" def f(): commands.FORWARD() def r(): commands.TURN_RIGHT() def l(): commands.TURN_LEFT() def whats_next(): commands.WHATS_NEXT()...
10.69697
28
0.651558
52
353
4.307692
0.576923
0.160714
0
0
0
0
0
0
0
0
0
0
0.215297
353
32
29
11.03125
0.808664
0.280453
0
0
0
0
0.05668
0
0
0
0
0
0
1
0.266667
false
0
0.2
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8b0fd9f69e5dae7ea94d1d53334acb1fe93ee27f
4,856
py
Python
tests/test_routes.py
asvetlov/sanic
49d004736a2eca36abc75d7ca637e23c58c61104
[ "MIT" ]
null
null
null
tests/test_routes.py
asvetlov/sanic
49d004736a2eca36abc75d7ca637e23c58c61104
[ "MIT" ]
null
null
null
tests/test_routes.py
asvetlov/sanic
49d004736a2eca36abc75d7ca637e23c58c61104
[ "MIT" ]
1
2020-02-02T15:45:40.000Z
2020-02-02T15:45:40.000Z
import pytest from sanic import Sanic from sanic.response import text from sanic.router import RouteExists from sanic.utils import sanic_endpoint_test # ------------------------------------------------------------ # # UTF-8 # ------------------------------------------------------------ # def test_static_routes(): ...
26.828729
79
0.640651
592
4,856
5.094595
0.130068
0.090517
0.118369
0.185676
0.769562
0.651194
0.590186
0.532493
0.480106
0.450928
0
0.025437
0.198517
4,856
180
80
26.977778
0.749486
0.026565
0
0.521368
0
0
0.158475
0.069915
0
0
0
0
0.213675
1
0.076923
false
0.034188
0.042735
0
0.196581
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
8b0ff699bdbe581143c520df83161fdec14100bd
1,288
py
Python
mne/preprocessing/nirs/tests/test_temporal_derivative_distribution_repair.py
slew/mne-python
720a95c7599d933526b5db7fae823e4349176a01
[ "BSD-3-Clause" ]
null
null
null
mne/preprocessing/nirs/tests/test_temporal_derivative_distribution_repair.py
slew/mne-python
720a95c7599d933526b5db7fae823e4349176a01
[ "BSD-3-Clause" ]
null
null
null
mne/preprocessing/nirs/tests/test_temporal_derivative_distribution_repair.py
slew/mne-python
720a95c7599d933526b5db7fae823e4349176a01
[ "BSD-3-Clause" ]
null
null
null
# Authors: Robert Luke <mail@robertluke.net> # # License: BSD (3-clause) import os.path as op import pytest import numpy as np from numpy.testing import assert_allclose from mne.datasets.testing import data_path from mne.io import read_raw_nirx from mne.preprocessing.nirs import optical_density, tddr from mne.datase...
31.414634
68
0.708075
198
1,288
4.39899
0.424242
0.072331
0.045924
0.037887
0.132032
0.106774
0.106774
0.106774
0.106774
0.075775
0
0.028355
0.178571
1,288
40
69
32.2
0.794896
0.204193
0
0
0
0
0.035573
0
0
0
0
0
0.2
1
0.04
false
0
0.32
0
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8b124bac76a1f9f85e585fcda86e6fa2bc63bfce
407
py
Python
coursesApp/migrations/0007_courses_cover.py
glen-s-abraham/Elearning-platform
3122cfcef9dd920fffb474da2a63c475fe08c27b
[ "MIT" ]
null
null
null
coursesApp/migrations/0007_courses_cover.py
glen-s-abraham/Elearning-platform
3122cfcef9dd920fffb474da2a63c475fe08c27b
[ "MIT" ]
null
null
null
coursesApp/migrations/0007_courses_cover.py
glen-s-abraham/Elearning-platform
3122cfcef9dd920fffb474da2a63c475fe08c27b
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-10-03 06:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('coursesApp', '0006_delete_references'), ] operations = [ migrations.AddField( model_name='courses', name='cover', ...
21.421053
71
0.604423
43
407
5.627907
0.813953
0
0
0
0
0
0
0
0
0
0
0.064407
0.275184
407
18
72
22.611111
0.755932
0.110565
0
0
1
0
0.144444
0.061111
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
8b20ef2bdefa9ac9ad3cbe62d56e73c608bfe30a
1,558
py
Python
wav2mel.py
jonathan-hsu123/AdaSpeech2
5b3736522e9855dcbf4c313df950b674510769a6
[ "MIT" ]
4
2022-03-27T16:29:00.000Z
2022-03-28T07:50:00.000Z
wav2mel.py
jonathan-hsu123/AdaSpeech2
5b3736522e9855dcbf4c313df950b674510769a6
[ "MIT" ]
null
null
null
wav2mel.py
jonathan-hsu123/AdaSpeech2
5b3736522e9855dcbf4c313df950b674510769a6
[ "MIT" ]
2
2022-03-27T14:48:40.000Z
2022-03-29T06:57:47.000Z
from utils.stft import TacotronSTFT from utils.util import read_wav_np from dataset.audio_processing import pitch import os import glob import tqdm import torch import argparse from utils.stft import TacotronSTFT from utils.util import read_wav_np from dataset.audio_processing import pitch from utils.hparams import HPa...
31.795918
85
0.686778
242
1,558
4.235537
0.384298
0.054634
0.038049
0.05561
0.187317
0.187317
0.187317
0.187317
0.187317
0.187317
0
0.00716
0.193196
1,558
49
86
31.795918
0.808274
0.060334
0
0.136364
0
0
0.05963
0.028787
0
0
0
0
0
1
0.045455
false
0
0.340909
0
0.386364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8b21b171e2997fc503e573bf52fdd72b33df5b94
7,025
py
Python
nsfw/nsfw.py
cookiezeater/Sweet-Cogs
ae6efd6467ea1c02a1e99bffddc5e94e2f2ae1ed
[ "Unlicense" ]
null
null
null
nsfw/nsfw.py
cookiezeater/Sweet-Cogs
ae6efd6467ea1c02a1e99bffddc5e94e2f2ae1ed
[ "Unlicense" ]
null
null
null
nsfw/nsfw.py
cookiezeater/Sweet-Cogs
ae6efd6467ea1c02a1e99bffddc5e94e2f2ae1ed
[ "Unlicense" ]
null
null
null
import discord from discord.ext import commands import aiohttp from bs4 import BeautifulSoup import random import urllib class Nsfw: """Nsfw commands.""" def __init__(self, bot): self.bot = bot @commands.group(pass_context=True) async def nsfw(self, ctx): """Nsfw Commands""" ...
37.367021
103
0.538078
854
7,025
4.400468
0.144028
0.055881
0.089409
0.111762
0.676424
0.655668
0.655668
0.648483
0.625067
0.616019
0
0.004113
0.307758
7,025
187
104
37.566845
0.768661
0.001993
0
0.647436
0
0
0.173208
0
0
0
0
0
0
1
0.012821
false
0.012821
0.038462
0
0.057692
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
8b2738050ed909ea1f172cbd29a12d234e4ded70
528
py
Python
head-first-python/vsearch.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
2
2019-05-24T20:10:16.000Z
2020-07-11T06:06:43.000Z
head-first-python/vsearch.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
null
null
null
head-first-python/vsearch.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
21
2019-03-11T20:25:05.000Z
2022-02-28T13:53:10.000Z
def search4vowels(phrase: str) -> set: """Выводит гласные, найденные в указанной фразе.""" vowels = set('aeiou') return vowels.intersection(set(phrase)) def search4letters(phrase: str, letters: str) -> set: """ Выводит множество символов, найденных в указанной фразе, по переданному паттерну. ...
31.058824
64
0.69697
59
528
6.237288
0.576271
0.154891
0.070652
0
0
0
0
0
0
0
0
0.011211
0.155303
528
16
65
33
0.813901
0.24053
0
0
0
0
0.172872
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0.375
0
0
0
null
0
0
0
0
0
0
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
8b2dc6e92a2faca473b3d3ed98c7856cd9e85bd7
848
py
Python
pixelpuncher/player/migrations/0006_auto_20151228_0324.py
ej2/pixelpuncher
8dd31090252c00772932c78ea21438d1e979f722
[ "BSD-3-Clause" ]
null
null
null
pixelpuncher/player/migrations/0006_auto_20151228_0324.py
ej2/pixelpuncher
8dd31090252c00772932c78ea21438d1e979f722
[ "BSD-3-Clause" ]
null
null
null
pixelpuncher/player/migrations/0006_auto_20151228_0324.py
ej2/pixelpuncher
8dd31090252c00772932c78ea21438d1e979f722
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2015-12-28 03:24 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('item', '0002_auto_20151228_0220'), ('player', '0005_au...
30.285714
138
0.629717
98
848
5.27551
0.510204
0.061896
0.081238
0.12766
0.514507
0.514507
0.371373
0.371373
0.371373
0.371373
0
0.072197
0.232311
848
27
139
31.407407
0.721966
0.076651
0
0.4
1
0
0.125641
0.058974
0
0
0
0
0
1
0
false
0
0.15
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8b3106b5632c63c303bef667a89f25d8d62e7ea5
10,814
py
Python
qiling/qiling/os/posix/syscall/mman.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
2
2021-05-05T12:03:01.000Z
2021-06-04T14:27:15.000Z
qiling/qiling/os/posix/syscall/mman.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
null
null
null
qiling/qiling/os/posix/syscall/mman.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
2
2021-05-05T12:03:09.000Z
2021-06-04T14:27:21.000Z
#!/usr/bin/env python3 # # Cross Platform and Multi Architecture Advanced Binary Emulation Framework # from unicorn import ( UC_PROT_ALL, UC_PROT_EXEC, UC_PROT_NONE, UC_PROT_READ, UC_PROT_WRITE, ) from qiling.const import * from qiling.os.linux.thread import * from qiling.const import * from qili...
39.467153
159
0.639634
1,655
10,814
3.934743
0.105136
0.052826
0.044533
0.02027
0.758139
0.703163
0.666462
0.607647
0.572328
0.552211
0
0.062949
0.227298
10,814
273
160
39.611722
0.716371
0.067135
0
0.481481
0
0.047619
0.09416
0
0
0
0.030791
0.003663
0
1
0.031746
false
0.005291
0.042328
0
0.10582
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