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
dcdd023a81feca70c98120ea168d3604a0c94976
416
py
Python
app/config.py
dogukangungordi/cinetify-Movie
85946010f4471cef0fb42873d50d59493372d060
[ "MIT" ]
null
null
null
app/config.py
dogukangungordi/cinetify-Movie
85946010f4471cef0fb42873d50d59493372d060
[ "MIT" ]
null
null
null
app/config.py
dogukangungordi/cinetify-Movie
85946010f4471cef0fb42873d50d59493372d060
[ "MIT" ]
null
null
null
import os TWO_WEEKS = 1209600 SECRET_KEY = os.getenv('SECRET_KEY', None) assert SECRET_KEY TOKEN_EXPIRES = TWO_WEEKS DATABASE_URL = os.getenv( 'DATABASE_URL', 'postgres://postgres@{0}:5432/postgres'.format(os.getenv('DB_PORT_5432_TCP_ADDR', None))) assert DATABASE_URL REDIS_HOST = os.getenv('REDIS_HOST', ...
23.111111
93
0.759615
63
416
4.68254
0.412698
0.162712
0.132203
0.115254
0.132203
0
0
0
0
0
0
0.053908
0.108173
416
17
94
24.470588
0.74124
0
0
0
0
0
0.307692
0.197115
0
0
0
0
0.181818
1
0
false
0.090909
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
dcdd6e685bb422c18bab7a2d6e2b60a9ba328309
597
py
Python
2020/day02/password_philosopy.py
rycmak/advent-of-code
2a3289516f4c1d0bc1d24a38d495a93edcb19e29
[ "MIT" ]
1
2021-03-03T01:40:09.000Z
2021-03-03T01:40:09.000Z
2020/day02/password_philosopy.py
rycmak/advent-of-code
2a3289516f4c1d0bc1d24a38d495a93edcb19e29
[ "MIT" ]
null
null
null
2020/day02/password_philosopy.py
rycmak/advent-of-code
2a3289516f4c1d0bc1d24a38d495a93edcb19e29
[ "MIT" ]
null
null
null
file = open("input.txt", "r") num_valid = 0 for line in file: # policy = part before colon policy = line.strip().split(":")[0] # get min/max number allowed for given letter min_max = policy.split(" ")[0] letter = policy.split(" ")[1] min = int(min_max.split("-")[0]) max = int(min_max.split("-")[1]) ...
28.428571
69
0.644891
90
597
4.211111
0.411111
0.063325
0.073879
0.073879
0
0
0
0
0
0
0
0.016529
0.18928
597
21
70
28.428571
0.766529
0.269682
0
0
0
0
0.101852
0
0
0
0
0
0
1
0
false
0.25
0
0
0
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
dce163daae46473015d3b2a1132e2c0325c306ae
669
py
Python
landmarkrest/field_predictor/field_models/TwoDigitYear.py
inferlink/landmark-rest
5bda40424bd1d62c64c9f4931855b4e341742b95
[ "BSD-4-Clause" ]
null
null
null
landmarkrest/field_predictor/field_models/TwoDigitYear.py
inferlink/landmark-rest
5bda40424bd1d62c64c9f4931855b4e341742b95
[ "BSD-4-Clause" ]
null
null
null
landmarkrest/field_predictor/field_models/TwoDigitYear.py
inferlink/landmark-rest
5bda40424bd1d62c64c9f4931855b4e341742b95
[ "BSD-4-Clause" ]
null
null
null
from BaseModel import BaseModel class TwoDigitYear(BaseModel): def __init__(self): super(TwoDigitYear, self).__init__() def generate_confidence(self, preceding_stripes, slot_values, following_stripes): # only care about ints for this model, so strip out anything that isn't valid_valu...
33.45
87
0.630792
91
669
4.461538
0.571429
0.073892
0.024631
0.034483
0
0
0
0
0
0
0
0.010163
0.264574
669
19
88
35.210526
0.815041
0.12855
0
0
1
0
0
0
0
0
0
0
0
1
0.2
false
0
0.1
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dce9859de967085bbcf63975cb47a3c6a5bf26ec
1,087
py
Python
monsterapi/migrations/0023_check.py
merenor/momeback
33195c43abd2757a361dfc5cb7e3cf56f6b57402
[ "MIT" ]
1
2018-11-05T13:08:48.000Z
2018-11-05T13:08:48.000Z
monsterapi/migrations/0023_check.py
merenor/momeback
33195c43abd2757a361dfc5cb7e3cf56f6b57402
[ "MIT" ]
null
null
null
monsterapi/migrations/0023_check.py
merenor/momeback
33195c43abd2757a361dfc5cb7e3cf56f6b57402
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-24 13:52 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('monsterapi', '0022_auto_20181123_2339'), ] operations = [ migrations.CreateMod...
40.259259
140
0.643054
122
1,087
5.647541
0.47541
0.058055
0.081277
0.127721
0.357039
0.357039
0.357039
0.357039
0.357039
0.357039
0
0.036385
0.216191
1,087
26
141
41.807692
0.7723
0.041398
0
0
1
0
0.122115
0.022115
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
dcec3b942ff3cfa0abdd8f17276dd930a550b6c9
936
py
Python
test cases/unittest_homophone_module.py
johnbumgarner/wordhoard
c71ad970505801ffe6d5c640c63f073c434b9a47
[ "MIT" ]
40
2020-10-21T19:49:51.000Z
2022-03-05T20:46:58.000Z
test cases/unittest_homophone_module.py
johnbumgarner/wordhoard
c71ad970505801ffe6d5c640c63f073c434b9a47
[ "MIT" ]
10
2021-08-15T13:56:03.000Z
2022-03-03T14:15:26.000Z
test cases/unittest_homophone_module.py
johnbumgarner/wordhoard
c71ad970505801ffe6d5c640c63f073c434b9a47
[ "MIT" ]
4
2020-12-30T15:22:07.000Z
2022-02-01T21:05:49.000Z
#!/usr/bin/env python3 """ This Python script is designed to perform unit testing of Wordhoard's Homophones module. """ __author__ = 'John Bumgarner' __date__ = 'September 20, 2020' __status__ = 'Quality Assurance' __license__ = 'MIT' __copyright__ = "Copyright (C) 2021 John Bumgarner" import unittest from wordhoard...
25.297297
86
0.690171
111
936
5.567568
0.585586
0.048544
0.058252
0.071197
0.07767
0.07767
0
0
0
0
0
0.015007
0.21688
936
36
87
26
0.828104
0.347222
0
0
0
0
0.178236
0
0
0
0
0
0.153846
1
0.153846
false
0.076923
0.153846
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
1
0
0
0
0
0
1
dcec6ff0d9def2fe9c68c69ed39626402f66ee06
3,492
py
Python
resist/types/models/message.py
an-dyy/Resist
db4526e2db78bbd8d16567ae3e3880cf2c64eda1
[ "MIT" ]
4
2022-03-05T21:54:14.000Z
2022-03-13T07:51:07.000Z
resist/types/models/message.py
an-dyy/Resist
db4526e2db78bbd8d16567ae3e3880cf2c64eda1
[ "MIT" ]
1
2022-03-09T20:15:09.000Z
2022-03-10T10:39:25.000Z
resist/types/models/message.py
an-dyy/Resist
db4526e2db78bbd8d16567ae3e3880cf2c64eda1
[ "MIT" ]
1
2022-03-09T10:58:54.000Z
2022-03-09T10:58:54.000Z
from __future__ import annotations from typing import Literal, TypedDict, Union, final from typing_extensions import NotRequired from .asset import AssetData class YoutubeLinkEmbedMetadata(TypedDict): type: Literal["YouTube"] id: str timestamp: NotRequired[str] class TwitchLinkEmbedMetadata(TypedDict...
23.436242
80
0.70189
339
3,492
7.153392
0.336283
0.098144
0.065979
0.01567
0.075052
0.036289
0
0
0
0
0
0
0.203322
3,492
148
81
23.594595
0.871675
0.091924
0
0.215686
0
0
0.092205
0.01711
0
0
0
0
0
1
0
false
0
0.039216
0
0.715686
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
dcf39fbfef9164b52a639bb7ce9ec336fdfee6b7
635
py
Python
datenight/urls.py
SarahJaine/date-night
fb63b68cfb115f52c5d3ec39f2e73454c5d63bb6
[ "MIT" ]
null
null
null
datenight/urls.py
SarahJaine/date-night
fb63b68cfb115f52c5d3ec39f2e73454c5d63bb6
[ "MIT" ]
null
null
null
datenight/urls.py
SarahJaine/date-night
fb63b68cfb115f52c5d3ec39f2e73454c5d63bb6
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import include, url from django.contrib import admin from datenight.views import HomePageView urlpatterns = [ # Examples: url(r'^$', HomePageView.as_view(), name='home'), # url(r'^blog/', include('blog.urls')), url(r'^admin/rq/', include('django...
27.608696
83
0.696063
83
635
5.192771
0.361446
0.046404
0.097448
0.083527
0
0
0
0
0
0
0
0
0.159055
635
22
84
28.863636
0.807116
0.074016
0
0.133333
0
0
0.082051
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
dcf4b8560b916ceca9700c2e7bf16bb6a53c4588
3,601
py
Python
src/python/nimbusml/internal/entrypoints/models_ovamodelcombiner.py
GalOshri/NimbusML
a2ba6f51b7c8cdd3c3316d5ecf4605621be3bd8d
[ "MIT" ]
2
2019-03-01T01:22:54.000Z
2019-07-10T19:57:38.000Z
src/python/nimbusml/internal/entrypoints/models_ovamodelcombiner.py
GalOshri/NimbusML
a2ba6f51b7c8cdd3c3316d5ecf4605621be3bd8d
[ "MIT" ]
null
null
null
src/python/nimbusml/internal/entrypoints/models_ovamodelcombiner.py
GalOshri/NimbusML
a2ba6f51b7c8cdd3c3316d5ecf4605621be3bd8d
[ "MIT" ]
null
null
null
# - Generated by tools/entrypoint_compiler.py: do not edit by hand """ Models.OvaModelCombiner """ from ..utils.entrypoints import EntryPoint from ..utils.utils import try_set, unlist def models_ovamodelcombiner( training_data, predictor_model=None, model_array=None, use_probabilitie...
31.867257
71
0.599833
401
3,601
5.182045
0.241895
0.028874
0.03898
0.057748
0.27334
0.214148
0.16795
0.139076
0.070741
0.070741
0
0
0.312969
3,601
112
72
32.151786
0.839935
0.212163
0
0.253012
1
0
0.068429
0.008327
0
0
0
0
0
1
0.012048
false
0
0.024096
0
0.048193
0
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
dcf7760ee0ea08cc59fe587411f1de19eb0c37fe
374
py
Python
web/game/migrations/0002_message_visible.py
ihsgnef/kuiperbowl
a0c3e346bc05ed149fdb34f12b872c983a40613e
[ "MIT" ]
null
null
null
web/game/migrations/0002_message_visible.py
ihsgnef/kuiperbowl
a0c3e346bc05ed149fdb34f12b872c983a40613e
[ "MIT" ]
5
2019-10-01T03:34:43.000Z
2020-05-26T14:28:40.000Z
web/game/migrations/0002_message_visible.py
jasmaa/quizbowl
282fe17217891266da96bcf1a9da4af5eff80fcc
[ "MIT" ]
1
2021-05-10T01:46:45.000Z
2021-05-10T01:46:45.000Z
# Generated by Django 2.2.7 on 2020-05-29 19:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('game', '0001_initial'), ] operations = [ migrations.AddField( model_name='message', name='visible', fiel...
19.684211
52
0.585561
39
374
5.564103
0.820513
0
0
0
0
0
0
0
0
0
0
0.072243
0.296791
374
18
53
20.777778
0.752852
0.120321
0
0
1
0
0.091743
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
0d058e1ee4a48662be58d98c65151d8e58a92c4b
430
py
Python
InterAutoTest_W/testcase/t_pytest/pytest_class.py
xuguoyan/pytest_api3
c83d8b1fbd2b061db9d6dee40068ac84ae81c708
[ "MIT" ]
7
2019-11-28T07:17:37.000Z
2020-10-28T08:24:09.000Z
InterAutoTest_W/testcase/t_pytest/pytest_class.py
xuguoyan/pytest_api3
c83d8b1fbd2b061db9d6dee40068ac84ae81c708
[ "MIT" ]
null
null
null
InterAutoTest_W/testcase/t_pytest/pytest_class.py
xuguoyan/pytest_api3
c83d8b1fbd2b061db9d6dee40068ac84ae81c708
[ "MIT" ]
7
2021-01-10T14:11:10.000Z
2022-02-28T12:41:04.000Z
#coding=utf-8 """ 1.定义类; 2.创建测试方法test开头 3.创建setup_class, teardown_class 4.运行查看结果 """ import pytest class TestClass(): def test_a(self): print('test_a') def test_b(self): print('test_b') def setup_class(self): print('------setup_class------') def teardown_class(self): ...
17.2
43
0.588372
55
430
4.254545
0.509091
0.153846
0.111111
0
0
0
0
0
0
0
0
0.014706
0.209302
430
25
44
17.2
0.673529
0.174419
0
0
0
0
0.247126
0.140805
0
0
0
0
0
1
0.333333
false
0
0.083333
0
0.5
0.333333
0
0
0
null
0
0
0
0
0
0
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
0d094d21102a554dd26ab1f57fd940c5c211f30e
1,469
py
Python
tests/test_cmd.py
mick88/poeditor-sync
2326b0ff6c0537b3d4ff729fd45b079e0789d2c7
[ "MIT" ]
6
2021-07-16T14:19:44.000Z
2022-03-10T10:27:39.000Z
tests/test_cmd.py
mick88/poeditor-sync
2326b0ff6c0537b3d4ff729fd45b079e0789d2c7
[ "MIT" ]
9
2021-07-10T15:57:52.000Z
2021-10-17T11:44:24.000Z
tests/test_cmd.py
mick88/poeditor-sync
2326b0ff6c0537b3d4ff729fd45b079e0789d2c7
[ "MIT" ]
null
null
null
from unittest import TestCase from click.testing import CliRunner, Result from poeditor_sync.cmd import poeditor class CmdReadOnlyTokenTest(TestCase): def setUp(self) -> None: super().setUp() self.runner = CliRunner(env={ 'POEDITOR_CONFIG_FILE': 'tests/test.yml', 'POEDITO...
36.725
122
0.684139
176
1,469
5.545455
0.267045
0.071721
0.092213
0.122951
0.57377
0.57377
0.543033
0.461066
0.418033
0.418033
0
0.024411
0.191287
1,469
39
123
37.666667
0.797138
0
0
0.241379
0
0
0.128659
0.03744
0
0
0
0
0.241379
1
0.241379
false
0
0.103448
0
0.37931
0
0
0
0
null
0
0
0
0
0
0
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
0d0cfb3214f9d822574bd483b912ab38da359e78
13,211
py
Python
Project_2/source/project_2.py
larsjbro/FYS4150
95ac4e09b5aad133b29c9aabb5be1302abdd8e65
[ "BSD-2-Clause" ]
null
null
null
Project_2/source/project_2.py
larsjbro/FYS4150
95ac4e09b5aad133b29c9aabb5be1302abdd8e65
[ "BSD-2-Clause" ]
null
null
null
Project_2/source/project_2.py
larsjbro/FYS4150
95ac4e09b5aad133b29c9aabb5be1302abdd8e65
[ "BSD-2-Clause" ]
null
null
null
''' Created on 14. sep. 2017 v2 @author: LJB ''' from __future__ import division, absolute_import from numba import jit, float64, int64, void import numpy as np import matplotlib.pyplot as plt import timeit _DPI = 250 _SIZE = 0.7 def figure_set_default_size(): F = plt.gcf() DefaultSize = [8 * _SIZE, 6 * _S...
32.379902
119
0.594202
1,963
13,211
3.885889
0.186449
0.015732
0.018091
0.013372
0.321185
0.289591
0.270713
0.258915
0.213818
0.188909
0
0.048291
0.264855
13,211
408
120
32.379902
0.737129
0.180229
0
0.17623
0
0.008197
0.087543
0.017181
0
0
0
0
0
0
null
null
0
0.028689
null
null
0.028689
0
0
0
null
0
0
0
0
0
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
0d0e450b602d94ac05485326e1145ffc9479645d
29,665
py
Python
mars/tensor/datasource/tests/test_datasource.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
2
2019-03-29T04:11:10.000Z
2020-07-08T10:19:54.000Z
mars/tensor/datasource/tests/test_datasource.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
null
null
null
mars/tensor/datasource/tests/test_datasource.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
38.228093
103
0.607821
4,114
29,665
4.32596
0.082158
0.133169
0.049559
0.048548
0.738551
0.685621
0.627072
0.590043
0.561331
0.522054
0
0.041376
0.247194
29,665
775
104
38.277419
0.755553
0.03789
0
0.524306
0
0
0.002982
0
0
0
0
0
0.486111
1
0.034722
false
0
0.046875
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
1
0
0
0
0
0
0
0
0
0
1
0d13f252a44ac30eabb61fd5ab7b47904eed9525
3,113
py
Python
astropy/wcs/tests/test_tabprm.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
4
2021-03-25T15:49:56.000Z
2021-12-15T09:10:04.000Z
astropy/wcs/tests/test_tabprm.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
astropy/wcs/tests/test_tabprm.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
3
2021-03-28T16:13:00.000Z
2021-07-16T10:27:25.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst from copy import deepcopy import pytest import numpy as np from astropy import wcs from . helper import SimModelTAB def test_wcsprm_tab_basic(tab_wcs_2di): assert len(tab_wcs_2di.wcs.tab) == 1 t = tab_wcs_2di.wcs.tab[0] assert tab_wcs_2d...
22.395683
63
0.641182
595
3,113
3.097479
0.142857
0.139989
0.209984
0.135648
0.674986
0.662507
0.640803
0.622355
0.595768
0.595768
0
0.069739
0.212335
3,113
138
64
22.557971
0.681892
0.019595
0
0.488636
0
0
0.010492
0
0
0
0
0
0.261364
1
0.159091
false
0
0.056818
0
0.215909
0.022727
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0d1a4439199c9ef84e882067c41f55f763548eaa
4,138
py
Python
src/permission/backends.py
dkopitsa/django-permission
0319ea3bf0993ca1bd7232e4d60c4b8ec635787d
[ "MIT" ]
234
2015-01-05T17:09:08.000Z
2021-11-15T09:52:43.000Z
src/permission/backends.py
dkopitsa/django-permission
0319ea3bf0993ca1bd7232e4d60c4b8ec635787d
[ "MIT" ]
54
2015-02-13T08:06:32.000Z
2021-05-19T14:07:03.000Z
src/permission/backends.py
dkopitsa/django-permission
0319ea3bf0993ca1bd7232e4d60c4b8ec635787d
[ "MIT" ]
35
2015-04-13T09:10:38.000Z
2022-02-15T01:43:03.000Z
# coding=utf-8 """ Logical permission backends module """ from permission.conf import settings from permission.utils.handlers import registry from permission.utils.permissions import perm_to_permission __all__ = ('PermissionBackend',) class PermissionBackend(object): """ A handler based permission backen...
33.918033
80
0.61479
444
4,138
5.578829
0.261261
0.029067
0.03149
0.066613
0.592652
0.572467
0.550666
0.512717
0.512717
0.464271
0
0.001059
0.31537
4,138
121
81
34.198347
0.873279
0.482117
0
0.410256
0
0
0.020673
0
0
0
0
0
0
1
0.076923
false
0.051282
0.076923
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
1
0
0
0
0
0
1
0d264d356130367d822124ae49b5e060a6d3d6dd
21,781
py
Python
ncov_ism/_visualization.py
z2e2/ncov_ism
14e3dcd7c568e21b437dfdb7d74353ed8bd93c8f
[ "BSD-3-Clause" ]
null
null
null
ncov_ism/_visualization.py
z2e2/ncov_ism
14e3dcd7c568e21b437dfdb7d74353ed8bd93c8f
[ "BSD-3-Clause" ]
null
null
null
ncov_ism/_visualization.py
z2e2/ncov_ism
14e3dcd7c568e21b437dfdb7d74353ed8bd93c8f
[ "BSD-3-Clause" ]
1
2020-08-04T23:59:26.000Z
2020-08-04T23:59:26.000Z
import logging import matplotlib import pickle matplotlib.use('Agg') import matplotlib.colors as mcolors import numpy as np import matplotlib.pyplot as plt plt.ioff() font = {# 'family' : 'serif', # Times (source: https://matplotlib.org/tutorials/introductory/customizing.html) 'family': 'sans-serif', # Helvetic...
36.301667
169
0.618567
2,849
21,781
4.486837
0.121095
0.048189
0.022373
0.013142
0.718376
0.687632
0.664007
0.642807
0.641242
0.628647
0
0.01507
0.262752
21,781
600
170
36.301667
0.780981
0.122263
0
0.622685
0
0
0.057781
0.004552
0
0
0
0
0
1
0.025463
false
0
0.013889
0
0.055556
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
0d269caf9870407b800e22ac3a36faa1d6165a79
656
py
Python
algDev/visualization/plot_indicators.py
ajmal017/ralph-usa
41a7f910da04cfa88f603313fad2ff44c82b9dd4
[ "Apache-2.0" ]
null
null
null
algDev/visualization/plot_indicators.py
ajmal017/ralph-usa
41a7f910da04cfa88f603313fad2ff44c82b9dd4
[ "Apache-2.0" ]
7
2021-03-10T10:08:30.000Z
2022-03-02T07:38:13.000Z
algDev/visualization/plot_indicators.py
ajmal017/ralph-usa
41a7f910da04cfa88f603313fad2ff44c82b9dd4
[ "Apache-2.0" ]
1
2020-04-17T19:15:06.000Z
2020-04-17T19:15:06.000Z
from models.indicators import Indicators import numpy as np import matplotlib.pyplot as plt def plot_prices(ax, prices, line_style): i = np.arange(len(prices)) ax.plot(ax, prices, line_style) return ax def plot_macd(ax, prices, slow_period, fast_period, line_style='k-'): macd = Indicators.macd(price...
26.24
78
0.692073
104
656
4.221154
0.259615
0.123007
0.061503
0.082005
0.446469
0.223235
0.113895
0
0
0
0
0.00738
0.17378
656
24
79
27.333333
0.802583
0
0
0.176471
0
0
0.006098
0
0
0
0
0
0
1
0.176471
false
0
0.176471
0
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0d273c1d1f4925a594d10dc698fbd7f793d46ab3
449
py
Python
tests/strings/test_basic.py
jaebradley/python_problems
24b8ecd49e3095f5c607906cb36019b9e865a20f
[ "MIT" ]
null
null
null
tests/strings/test_basic.py
jaebradley/python_problems
24b8ecd49e3095f5c607906cb36019b9e865a20f
[ "MIT" ]
5
2017-08-25T20:43:16.000Z
2019-10-18T16:49:43.000Z
tests/strings/test_basic.py
jaebradley/python_problems
24b8ecd49e3095f5c607906cb36019b9e865a20f
[ "MIT" ]
null
null
null
""" Unit Test for strings.basic problems """ from unittest import TestCase from strings.basic import alphabetize class TestAlphabetize(TestCase): """ Unit Test for alphabetize method """ def test_should_return_alphabet(self): """ Test alphabetize method using every uppercase and low...
22.45
99
0.714922
43
449
7.395349
0.651163
0.050314
0.069182
0
0
0
0
0
0
0
0
0
0.2049
449
19
100
23.631579
0.890756
0.309577
0
0
0
0
0.204545
0.204545
0
0
0
0
0.2
1
0.2
false
0
0.4
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
0d281e7eb3d40eae3e191f01e52cfee3344410ff
6,162
py
Python
Python3/HayStack_API.py
ConsensusGroup/Haystack
c2d0b8fb7b2064b05a5d256bb949dda9a0ef569d
[ "MIT" ]
1
2019-11-28T08:50:26.000Z
2019-11-28T08:50:26.000Z
Python3/HayStack_API.py
ConsensusGroup/Haystack
c2d0b8fb7b2064b05a5d256bb949dda9a0ef569d
[ "MIT" ]
3
2019-11-22T04:23:47.000Z
2019-11-30T07:11:24.000Z
Python3/HayStack_API.py
ConsensusGroup/Haystack
c2d0b8fb7b2064b05a5d256bb949dda9a0ef569d
[ "MIT" ]
3
2018-03-19T05:20:44.000Z
2019-11-22T00:56:31.000Z
#This script is going to be used API calls but first it will serve as a testing script. from IOTA_Module import * from Configuration_Module import * from Tools_Module import * from UserProfile_Module import * from Cryptography_Module import * from NodeFinder_Module import * from DynamicPublicLedger_Module import * imp...
35.618497
152
0.648815
737
6,162
5.242877
0.222524
0.03882
0.042702
0.037267
0.207816
0.175207
0.121118
0.112319
0.103261
0.083333
0
0.007091
0.244726
6,162
172
153
35.825581
0.823163
0.191334
0
0.184211
0
0
0.0526
0.004232
0
0
0
0
0
1
0.149123
false
0.078947
0.096491
0
0.385965
0.087719
0
0
0
null
0
0
0
0
0
0
0
0
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
0d2eef0e6b41c739ce4208807368ff89025b240e
358
py
Python
setup.py
Mr-TelegramBot/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
24
2018-10-05T13:04:30.000Z
2020-05-12T08:45:34.000Z
setup.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
3
2019-06-26T07:20:20.000Z
2021-05-24T13:06:56.000Z
setup.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
5
2018-10-05T14:29:28.000Z
2020-08-11T15:04:10.000Z
#!/usr/bin/env python from distutils.core import setup setup( name="python-tdlib", version="1.4.0", author="andrew-ld", license="MIT", url="https://github.com/andrew-ld/python-tdlib", packages=["py_tdlib", "py_tdlib.constructors", "py_tdlib.factory"], install_requires=["werkzeug", "simplej...
23.866667
71
0.656425
47
358
4.893617
0.723404
0.091304
0
0
0
0
0
0
0
0
0
0.016393
0.148045
358
14
72
25.571429
0.737705
0.055866
0
0
0
0
0.409496
0.062315
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0d3113fefbcc2c8c41ba544c0d489f999a22dfe6
4,752
py
Python
rhapsody_web/models.py
wbadart/rhapsody
433a376b4a3881d4b12bebbbbdf08194c62fa8a2
[ "MIT" ]
null
null
null
rhapsody_web/models.py
wbadart/rhapsody
433a376b4a3881d4b12bebbbbdf08194c62fa8a2
[ "MIT" ]
12
2018-03-21T02:26:45.000Z
2018-05-09T07:12:55.000Z
rhapsody_web/models.py
wbadart/rhapsody
433a376b4a3881d4b12bebbbbdf08194c62fa8a2
[ "MIT" ]
null
null
null
from itertools import chain from django.db import models from random import choices class Node(object): def neighbors(self): raise NotImplementedError def graph(self, depth=1): if not depth: return {self: set()} elif depth == 1: return {self: set(self.neighbors...
31.058824
77
0.666877
589
4,752
5.268251
0.242784
0.082179
0.098614
0.131486
0.33097
0.307444
0.222688
0.19884
0.175636
0.175636
0
0.012703
0.22138
4,752
152
78
31.263158
0.825946
0.129209
0
0.26
0
0
0.014078
0
0
0
0
0
0
1
0.09
false
0.04
0.03
0.04
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0d315a6eab2cc3aa2454ad8e379488130a26267e
1,076
py
Python
examples/kddcup2011/track1.py
zenogantner/MML-KDD
4c66101439d83bdcd15a464bf95c7ae74f1abbed
[ "BSD-3-Clause" ]
1
2021-03-07T15:29:48.000Z
2021-03-07T15:29:48.000Z
examples/kddcup2011/track1.py
zenogantner/MML-KDD
4c66101439d83bdcd15a464bf95c7ae74f1abbed
[ "BSD-3-Clause" ]
null
null
null
examples/kddcup2011/track1.py
zenogantner/MML-KDD
4c66101439d83bdcd15a464bf95c7ae74f1abbed
[ "BSD-3-Clause" ]
3
2015-03-17T20:22:48.000Z
2019-11-20T06:25:55.000Z
#!/usr/bin/env ipy import clr clr.AddReference("MyMediaLite.dll") clr.AddReference("MyMediaLiteExperimental.dll") from MyMediaLite import * train_file = "trainIdx1.firstLines.txt" validation_file = "validationIdx1.firstLines.txt" test_file = "testIdx1.firstLines.txt" # load the data training_data = IO.K...
29.888889
118
0.77974
132
1,076
6.25
0.454545
0.058182
0.058182
0.083636
0.065455
0
0
0
0
0
0
0.031217
0.106877
1,076
35
119
30.742857
0.827263
0.112454
0
0.086957
0
0
0.24
0.108421
0
0
0
0
0
0
null
null
0
0.086957
null
null
0.26087
0
0
0
null
0
0
0
0
0
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
0d315c941d5c258d24b3ce3f264e4496447f3b10
754
py
Python
resdk/resources/kb/mapping.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/resources/kb/mapping.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/resources/kb/mapping.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
"""KB mapping resource.""" from __future__ import absolute_import, division, print_function, unicode_literals from ..base import BaseResource class Mapping(BaseResource): """Knowledge base Mapping resource.""" endpoint = 'kb.mapping.admin' query_endpoint = 'kb.mapping.search' query_method = 'POST' ...
32.782609
98
0.676393
88
754
5.443182
0.5
0.056367
0.070981
0.066806
0.133612
0.133612
0.133612
0.133612
0
0
0
0
0.179045
754
22
99
34.272727
0.773829
0.147215
0
0
0
0
0.250399
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.916667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0d350e50046900dd997c091b0cd94feb9afe2441
9,510
py
Python
2_functions.py
codernayeem/python-cheat-sheet
ec6fe9f33e9175251df65899cef89f65219b9cb4
[ "MIT" ]
null
null
null
2_functions.py
codernayeem/python-cheat-sheet
ec6fe9f33e9175251df65899cef89f65219b9cb4
[ "MIT" ]
null
null
null
2_functions.py
codernayeem/python-cheat-sheet
ec6fe9f33e9175251df65899cef89f65219b9cb4
[ "MIT" ]
null
null
null
# Functions print("************* Function ***********") # Simple function without any arguments/parameters def say_welocme(): return print('Welocme') # Simple function with arguments/parameters def say_helo(name, age): print('Helo', name, age) # this function returns None say_helo('Nayeem', 18) #...
35.222222
161
0.674238
1,339
9,510
4.753547
0.283047
0.037706
0.016339
0.011312
0.209112
0.156167
0.100864
0.067871
0.055302
0.055302
0
0.012738
0.215773
9,510
269
162
35.35316
0.840708
0.652681
0
0.241379
0
0
0.221487
0
0
0
0
0
0
1
0.146552
false
0
0.034483
0.025862
0.232759
0.482759
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
0d3f74b53d1976c4b1197848cb8716e04cb65c67
2,535
py
Python
djangocms_html_tags/cms_plugins.py
radity/djangocms-html-tags
d9d8d8b2609685d896e05af8fc9e2271c1dc0c26
[ "MIT" ]
null
null
null
djangocms_html_tags/cms_plugins.py
radity/djangocms-html-tags
d9d8d8b2609685d896e05af8fc9e2271c1dc0c26
[ "MIT" ]
2
2019-02-17T22:15:40.000Z
2019-02-20T22:40:21.000Z
djangocms_html_tags/cms_plugins.py
radity/djangocms-html-tags
d9d8d8b2609685d896e05af8fc9e2271c1dc0c26
[ "MIT" ]
2
2019-02-01T09:03:52.000Z
2020-01-14T12:56:52.000Z
from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext_lazy as _ from djangocms_html_tags.forms import HTMLTextInputForm, HTMLFormForm, HTMLTextareaForm from djangocms_html_tags.models import HTMLTag, HTMLText from djangocms_html_tags.utils impor...
26.40625
89
0.740039
284
2,535
6.401408
0.302817
0.066007
0.09901
0.132013
0.051155
0
0
0
0
0
0
0.01131
0.162919
2,535
95
90
26.684211
0.845429
0
0
0.073529
0
0
0.092702
0.036686
0
0
0
0
0
1
0.029412
false
0
0.088235
0
0.823529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
0d40d5a5294c9c8290f11ed2656dfcbf8016ab4e
12,878
py
Python
qa327/frontend/sessions.py
rickyzhangca/CISC-327
e419caafa6ae3fe77aa411228b6b58b237fe6a61
[ "MIT" ]
null
null
null
qa327/frontend/sessions.py
rickyzhangca/CISC-327
e419caafa6ae3fe77aa411228b6b58b237fe6a61
[ "MIT" ]
39
2020-10-11T02:31:14.000Z
2020-12-15T20:18:56.000Z
qa327/frontend/sessions.py
rickyzhangca/CISC-327
e419caafa6ae3fe77aa411228b6b58b237fe6a61
[ "MIT" ]
1
2020-10-17T02:44:43.000Z
2020-10-17T02:44:43.000Z
import helpers import exceptions import datetime as dt ''' This is the sessions module: ''' ''' Base class with the basic structure of all frontend sessions. ''' class Session: # username is None when no one logged in. def __init__(self, username = None): self.username = username # return with t...
38.100592
218
0.650101
1,263
12,878
6.482977
0.168646
0.049829
0.064118
0.039692
0.582193
0.513312
0.459941
0.433195
0.37555
0.310454
0
0.000725
0.250427
12,878
338
219
38.100592
0.847509
0.051949
0
0.421739
0
0
0.132725
0.002131
0
0
0
0
0
1
0.173913
false
0.065217
0.013043
0.03913
0.291304
0.195652
0
0
0
null
0
0
0
0
0
0
0
0
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
0d42aee94bc382588eed7920090962df76b33a83
1,574
py
Python
PageObjectLibrary/loginpage_v2_using_composition.py
rama-bornfree/simple-pageobject
6a66a256867f7b1604005818b12e7c9f8dc6c027
[ "Apache-2.0" ]
null
null
null
PageObjectLibrary/loginpage_v2_using_composition.py
rama-bornfree/simple-pageobject
6a66a256867f7b1604005818b12e7c9f8dc6c027
[ "Apache-2.0" ]
null
null
null
PageObjectLibrary/loginpage_v2_using_composition.py
rama-bornfree/simple-pageobject
6a66a256867f7b1604005818b12e7c9f8dc6c027
[ "Apache-2.0" ]
null
null
null
from pageobject import PageObject from homepage import HomePage from locatormap import LocatorMap from robot.api import logger class LoginPage(): PAGE_TITLE = "Login - PageObjectLibrary Demo" PAGE_URL = "/login.html" # these are accessible via dot notaton with self.locator # (eg: self.locator.usernam...
32.122449
70
0.65629
192
1,574
5.21875
0.354167
0.065868
0.037924
0.051896
0.177645
0.121756
0.06986
0
0
0
0
0.005853
0.240152
1,574
49
71
32.122449
0.83194
0.151842
0
0.060606
0
0
0.12282
0
0
0
0
0
0
1
0.181818
false
0.090909
0.121212
0
0.484848
0
0
0
0
null
0
0
0
0
0
0
0
0
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
0d442d2358091616d21b759e490009907755740d
2,569
py
Python
reefbot-controller/bin/ButtonMapper.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
reefbot-controller/bin/ButtonMapper.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
reefbot-controller/bin/ButtonMapper.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
'''Maps buttons for the Reefbot control.''' import roslib; roslib.load_manifest('reefbot-controller') import rospy class JoystickButtons: DPAD_LR = 4 DPAD_UD = 5 ALOG_LEFT_UD = 1 ALOG_LEFT_LR = 0 ALOG_RIGHT_UD = 3 ALOG_RIGHT_LR = 2 BUTTON_1 = 0 BUTTON_2 = 1 BUTTON_3 = 2 BUTTON_4 = 3 BUTTON_...
32.935897
78
0.651615
319
2,569
5.050157
0.263323
0.044693
0.072626
0.049659
0.171322
0.074488
0.074488
0
0
0
0
0.023946
0.252238
2,569
77
79
33.363636
0.81468
0.105878
0
0
0
0
0.062528
0
0
0
0
0
0
1
0.12069
false
0
0.034483
0.017241
0.62069
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
0d475beab3b1cd6b2f3e149dfdb979b4179e340d
614
py
Python
FatherSon/HelloWorld2_source_code/listing_7-1.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2019-01-04T05:47:50.000Z
2019-01-04T05:47:50.000Z
FatherSon/HelloWorld2_source_code/listing_7-1.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
null
null
null
FatherSon/HelloWorld2_source_code/listing_7-1.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
null
null
null
# Listing_7-1.py # Copyright Warren & Carter Sande, 2013 # Released under MIT license http://www.opensource.org/licenses/mit-license.php # Version $version ---------------------------- # Using comparison operators num1 = float(raw_input("Enter the first number: ")) num2 = float(raw_input("Enter the second ...
34.111111
82
0.63355
87
614
4.436782
0.551724
0.062176
0.103627
0.11658
0.349741
0.183938
0.129534
0
0
0
0
0.050104
0.21987
614
17
83
36.117647
0.755741
0.40228
0
0
0
0
0.297376
0
0
0
0
0
0
0
null
null
0
0
null
null
0.4
0
0
0
null
0
0
0
0
0
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
0d492d307402409cd402271070306ff0cee7ae12
2,593
py
Python
read_testdata.py
veralily/MLKD-mission3-resentForIC
f652f80ad848fca321f912e9c1594517f1942e42
[ "MIT" ]
null
null
null
read_testdata.py
veralily/MLKD-mission3-resentForIC
f652f80ad848fca321f912e9c1594517f1942e42
[ "MIT" ]
null
null
null
read_testdata.py
veralily/MLKD-mission3-resentForIC
f652f80ad848fca321f912e9c1594517f1942e42
[ "MIT" ]
null
null
null
import skimage.io # bug. need to import this before tensorflow import skimage.transform # bug. need to import this before tensorflow from resnet_train import train from resnet import inference import tensorflow as tf import time import os import sys import re import numpy as np from image_processing import image_pre...
22.745614
74
0.600463
342
2,593
4.415205
0.283626
0.03245
0.031788
0.025828
0.046358
0.046358
0.046358
0
0
0
0
0.01084
0.288469
2,593
113
75
22.946903
0.807588
0.128037
0
0.15942
0
0
0.040924
0
0
0
0
0
0
0
null
null
0
0.15942
null
null
0.101449
0
0
0
null
0
0
0
0
0
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
0d4e981d336496f51c5ebd89178a51218846e23a
514
py
Python
visualize/preprocess.py
peitaosu/SpectralClustering
5c679ce0f9f2974fa7be2abe9caa1265dbbd4a2c
[ "MIT" ]
null
null
null
visualize/preprocess.py
peitaosu/SpectralClustering
5c679ce0f9f2974fa7be2abe9caa1265dbbd4a2c
[ "MIT" ]
null
null
null
visualize/preprocess.py
peitaosu/SpectralClustering
5c679ce0f9f2974fa7be2abe9caa1265dbbd4a2c
[ "MIT" ]
null
null
null
import os, sys class Preprocesser(): def __init__(self): self.data = { "X": [], "Y": [] } def process(self, input): if not os.path.isfile(input): print(input + " is not exists.") sys.exit(-1) with open(input) as in_file: ...
25.7
65
0.478599
63
514
3.809524
0.571429
0.133333
0.075
0.166667
0.175
0
0
0
0
0
0
0.009063
0.356031
514
19
66
27.052632
0.716012
0
0
0
0
0
0.044834
0
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.3125
0.0625
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
b495cef87e530613f2c8277610c653f49cd1a833
2,003
py
Python
library/aq6315.py
mjasperse/telepythic
fbf24a885cb195dc5cecf78e112b8ff4b993043d
[ "BSD-3-Clause" ]
2
2020-10-06T15:55:26.000Z
2021-04-01T04:09:01.000Z
library/aq6315.py
mjasperse/telepythic
fbf24a885cb195dc5cecf78e112b8ff4b993043d
[ "BSD-3-Clause" ]
null
null
null
library/aq6315.py
mjasperse/telepythic
fbf24a885cb195dc5cecf78e112b8ff4b993043d
[ "BSD-3-Clause" ]
null
null
null
""" AQ6315E DATA EXTRACTOR Extracts all visible traces from Ando AQ-6315E Optical Spectrum Analyser Usage: ./aq6315.py [filename] If specified, extracted data is saved to CSV called "filename" Relevant list of commands available at http://support.us.yokogawa.com/downloads/TMI/COMM/AQ6317B/AQ6317B%20R0101.pdf ...
32.306452
81
0.6665
313
2,003
4.252396
0.552716
0.012021
0.015026
0.009016
0
0
0
0
0
0
0
0.02986
0.214179
2,003
61
82
32.836066
0.815756
0.291063
0
0
0
0
0.098196
0
0
0
0
0
0.032258
0
null
null
0
0.16129
null
null
0.064516
0
0
0
null
0
0
0
0
0
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
b49ba128005050a703dec74a0221d62f301b5b8c
1,656
py
Python
plugins/vpn.py
alobbs/autome
faf4c836ccb896d03020aa0dbb2c1332ffc791a2
[ "MIT" ]
null
null
null
plugins/vpn.py
alobbs/autome
faf4c836ccb896d03020aa0dbb2c1332ffc791a2
[ "MIT" ]
null
null
null
plugins/vpn.py
alobbs/autome
faf4c836ccb896d03020aa0dbb2c1332ffc791a2
[ "MIT" ]
null
null
null
import os import plugin import pluginconf util = plugin.get("util") FILE_COUNTER = "~/.vpn_counter" FILE_VPN_SH = "~/.vpn_sh" EXPECT_SCRIPT = """#!/usr/bin/expect spawn {cmd} expect -exact "Enter Auth Username:" send -- "{user}\\n" expect -exact "Enter Auth Password:" send -- "{password}\\n" interact """ class V...
24.352941
84
0.577899
218
1,656
4.270642
0.366972
0.051557
0.029001
0.042965
0.077336
0
0
0
0
0
0
0.004205
0.282005
1,656
67
85
24.716418
0.778806
0.064614
0
0
0
0
0.194679
0.014925
0
0
0
0
0
1
0.093023
false
0.162791
0.069767
0
0.232558
0
0
0
0
null
0
0
0
0
0
0
0
0
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
b49bc707c55e530402f7bf7501d6b84e68f26a0e
7,321
py
Python
jasypt4py/generator.py
fareliner/jasypt4py
6ea7cdbb4ee1e3249cc9dcadfa3c54e603614458
[ "Apache-2.0" ]
7
2018-04-04T02:56:48.000Z
2021-09-23T01:34:57.000Z
jasypt4py/generator.py
fareliner/jasypt4py
6ea7cdbb4ee1e3249cc9dcadfa3c54e603614458
[ "Apache-2.0" ]
3
2018-07-31T08:56:56.000Z
2022-03-04T01:03:03.000Z
jasypt4py/generator.py
fareliner/jasypt4py
6ea7cdbb4ee1e3249cc9dcadfa3c54e603614458
[ "Apache-2.0" ]
4
2018-07-31T08:04:01.000Z
2021-07-07T01:55:34.000Z
# Make coding more python3-ish from __future__ import (absolute_import, division, print_function) from abc import ABCMeta, abstractmethod from Crypto import Random from jasypt4py.exceptions import ArgumentError class PBEParameterGenerator(object): __metaclass__ = ABCMeta @staticmethod def adjust(a, a_o...
30.377593
106
0.584483
970
7,321
4.207216
0.18866
0.02916
0.038226
0.016173
0.256065
0.190395
0.168096
0.157804
0.157804
0.12644
0
0.02943
0.32236
7,321
240
107
30.504167
0.793187
0.250785
0
0.161017
0
0
0.014501
0
0
0
0.005487
0
0
1
0.09322
false
0.118644
0.033898
0.016949
0.313559
0.008475
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b4a04bd98861d4add44fe78a70e2497100399370
1,176
py
Python
Ago-Dic-2020/Ejemplos/clase-2.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2020/Ejemplos/clase-2.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2020/Ejemplos/clase-2.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
# Importando librerías from numpy import array # Listas y arreglos a = array(['h', 101, 'l', 'l', 'o']) x = ['h', 101, 'l', 'l', 'o'] print(a) print(x) print("Tamaño: ", len(x)) # Condicionales if isinstance(x[1], int): x[1] = chr(x[1]) elif isinstance(x[1], str): pass else: raise TypeError("Tipo no sop...
17.294118
73
0.593537
220
1,176
3.172727
0.35
0.051576
0.034384
0.063037
0.17765
0.157593
0.120344
0.065903
0.065903
0
0
0.049784
0.214286
1,176
68
74
17.294118
0.705628
0.130102
0
0.204545
0
0
0.076847
0
0
0
0
0
0
1
0
false
0.022727
0.022727
0
0.022727
0.522727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
b4a0c7230303a692bcc4f7d71deebfb17b27263a
3,751
py
Python
constants.py
lanthony42/Snek
e463b58eeba32bd26279a57fd3a523f4fb773da7
[ "MIT" ]
null
null
null
constants.py
lanthony42/Snek
e463b58eeba32bd26279a57fd3a523f4fb773da7
[ "MIT" ]
null
null
null
constants.py
lanthony42/Snek
e463b58eeba32bd26279a57fd3a523f4fb773da7
[ "MIT" ]
null
null
null
import math SCREEN_WIDTH = 1400 SCREEN_HEIGHT = 800 TEXT = (5, 5) FPS = 60 BASE_SIZE = 10 EYE_SIZE = 4 PUPIL_SIZE = EYE_SIZE - 2 BASE_SPEED = 2 MIN_DISTANCE = 1 MAX_DISTANCE = MIN_DISTANCE + 3 SIZE_INC = 15 EYE_INC = SIZE_INC * 4 PUPIL_INC = SIZE_INC * 8 GROWTH_INC = SIZE_INC * 20 BOOST_MIN = 10 BOOST_FACTOR = 2 BOO...
22.327381
94
0.564916
531
3,751
3.787194
0.218456
0.059672
0.029836
0.059175
0.36002
0.3272
0.3272
0.292392
0.237693
0.184983
0
0.052857
0.31405
3,751
167
95
22.461078
0.728721
0
0
0.162791
0
0
0.025593
0.019728
0
0
0
0
0
1
0.178295
false
0
0.007752
0.108527
0.403101
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
b4a0edc51d50de306ea838cb4bc96583019d8526
831
py
Python
app/routers/auth.py
nicolunardi/travela-server
79537ed428c01bac90d078216c7513411b7695ad
[ "CNRI-Python" ]
null
null
null
app/routers/auth.py
nicolunardi/travela-server
79537ed428c01bac90d078216c7513411b7695ad
[ "CNRI-Python" ]
null
null
null
app/routers/auth.py
nicolunardi/travela-server
79537ed428c01bac90d078216c7513411b7695ad
[ "CNRI-Python" ]
null
null
null
from fastapi import APIRouter, Depends, status from fastapi.security import OAuth2PasswordRequestForm from sqlalchemy.orm import Session from app.controllers.authControllers import login_user, register_user from app.schemas.users import UserCreate from app.schemas.tokens import Token from app.config.database import get...
24.441176
69
0.749699
107
831
5.663551
0.392523
0.046205
0.046205
0.066007
0.20132
0.20132
0.112211
0
0
0
0
0.011348
0.151625
831
33
70
25.181818
0.848227
0
0
0.222222
0
0
0.027678
0
0
0
0
0
0
1
0
false
0.074074
0.259259
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
1
0
0
0
0
0
1
b4a6ed73413c10935d4c8fa52b9e4361216bd892
850
py
Python
beatsaver/entity/MapTestplay.py
jundoll/bs-api-py
1e12e1d68d6cbc4c8e25c0da961396854391be5b
[ "MIT" ]
null
null
null
beatsaver/entity/MapTestplay.py
jundoll/bs-api-py
1e12e1d68d6cbc4c8e25c0da961396854391be5b
[ "MIT" ]
null
null
null
beatsaver/entity/MapTestplay.py
jundoll/bs-api-py
1e12e1d68d6cbc4c8e25c0da961396854391be5b
[ "MIT" ]
null
null
null
# load modules from dataclasses import dataclass from typing import Union from ...beatsaver.entity import UserDetail # definition class @dataclass(frozen=True) class MapTestplay: createdAt: str feedback: str feedbackAt: str user: Union[UserDetail.UserDetail, None] video: str # definition funct...
21.25
54
0.628235
93
850
5.731183
0.430108
0.103189
0.067542
0.075047
0.101313
0.101313
0
0
0
0
0
0.001626
0.276471
850
39
55
21.794872
0.865041
0.057647
0
0.076923
0
0
0.045169
0
0
0
0
0
0
1
0.076923
false
0
0.115385
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b4c0a42efb0c3bbdc0fcf9baf9ae460765b29cd0
999
py
Python
setup.py
db48x/flask-digest
6a3138aef4baa1c1a129eb655c2644bf61387af1
[ "MIT" ]
8
2015-07-18T10:34:38.000Z
2019-11-04T01:50:15.000Z
setup.py
db48x/flask-digest
6a3138aef4baa1c1a129eb655c2644bf61387af1
[ "MIT" ]
1
2019-07-22T14:08:12.000Z
2020-05-10T16:36:36.000Z
setup.py
db48x/flask-digest
6a3138aef4baa1c1a129eb655c2644bf61387af1
[ "MIT" ]
3
2016-05-02T19:04:34.000Z
2021-07-01T10:58:31.000Z
from setuptools import setup, find_packages setup( name = 'Flask-Digest', version = '0.2.1', author = 'Victor Andrade de Almeida', author_email = 'vct.a.almeida@gmail.com', url = 'https://github.com/vctandrade/flask-digest', description = 'A RESTful authentication service for Flask applicatio...
31.21875
76
0.618619
99
999
6.191919
0.707071
0.039152
0.081566
0
0
0
0
0
0
0
0
0.013158
0.239239
999
31
77
32.225806
0.793421
0
0
0
0
0
0.52953
0.023023
0
0
0
0
0
1
0
true
0
0.038462
0
0.038462
0
0
0
0
null
0
0
0
0
0
0
0
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
b4c286e145a31477357b61710d97854704934bc6
7,816
py
Python
Testing/Python/TestLinearOrthotropicMaterial.py
Numerics88/vtkbone
5a6ab2870679e9e7ea51926c34911607b9d85235
[ "MIT" ]
3
2017-04-04T04:59:22.000Z
2022-03-13T11:22:40.000Z
Testing/Python/TestLinearOrthotropicMaterial.py
Numerics88/vtkbone
5a6ab2870679e9e7ea51926c34911607b9d85235
[ "MIT" ]
5
2017-04-06T19:46:39.000Z
2019-12-11T23:41:41.000Z
Testing/Python/TestLinearOrthotropicMaterial.py
Numerics88/vtkbone
5a6ab2870679e9e7ea51926c34911607b9d85235
[ "MIT" ]
2
2017-04-29T20:54:57.000Z
2017-04-29T22:28:10.000Z
from __future__ import division import sys import numpy from numpy.core import * import vtk from vtk.util.numpy_support import vtk_to_numpy, numpy_to_vtk import vtkbone import traceback import unittest class TestLinearOrthotropicMaterial (unittest.TestCase): def test_isotropic (self): material = vtkbone...
51.084967
195
0.714304
738
7,816
7.46748
0.108401
0.138813
0.112684
0.126293
0.794956
0.652695
0.509345
0.45636
0.45636
0.45636
0
0.047234
0.176561
7,816
152
196
51.421053
0.809043
0.01676
0
0.40625
0
0
0.001042
0
0
0
0
0
0.46875
1
0.03125
false
0
0.070313
0
0.109375
0
0
0
0
null
0
0
0
0
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
b4c33dadc7de5b116b0004a7e5d4f5eac3a9ab0a
2,297
py
Python
fashion/warehouse/fashion.core/xform/generateJinja2.py
braddillman/fashion
2588f3712a72e81f3cb7733e40b6c3751aa5ece2
[ "Apache-2.0" ]
1
2021-05-23T09:01:39.000Z
2021-05-23T09:01:39.000Z
fashion/warehouse/fashion.core/xform/generateJinja2.py
braddillman/fashion
2588f3712a72e81f3cb7733e40b6c3751aa5ece2
[ "Apache-2.0" ]
null
null
null
fashion/warehouse/fashion.core/xform/generateJinja2.py
braddillman/fashion
2588f3712a72e81f3cb7733e40b6c3751aa5ece2
[ "Apache-2.0" ]
null
null
null
''' Created on 2018-12-21 Copyright (c) 2018 Bradford Dillman Generate code from a model and a jinja2 template. ''' import logging from pathlib import Path from jinja2 import FileSystemLoader, Environment from jinja2.exceptions import TemplateNotFound from munch import munchify from fashion.mirror import Mirror ...
33.779412
94
0.62734
250
2,297
5.744
0.48
0.030641
0.013928
0.023677
0.089833
0.089833
0.089833
0
0
0
0
0.013174
0.272965
2,297
67
95
34.283582
0.846707
0.16761
0
0
1
0
0.09458
0.043571
0
0
0
0
0
1
0.078947
false
0
0.157895
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b4c4c46e92d0cc32c81af417d80cbffbc1577999
488
py
Python
Grokking-Algorithms/Selection_Sort.py
AzuLiu/Algorithms-by-Python
4c907725e3c55222642990827ca0aba302ab2a8c
[ "MIT" ]
1
2018-03-17T19:51:46.000Z
2018-03-17T19:51:46.000Z
Grokking-Algorithms/Selection_Sort.py
AzuLiu/Algorithms-by-Python
4c907725e3c55222642990827ca0aba302ab2a8c
[ "MIT" ]
null
null
null
Grokking-Algorithms/Selection_Sort.py
AzuLiu/Algorithms-by-Python
4c907725e3c55222642990827ca0aba302ab2a8c
[ "MIT" ]
null
null
null
def findSmallest(arr): smallest = arr[0] smallest_index = 0 for i in range(1, len(arr)): if arr[i] < smallest: smallest = arr[i] smallest_index = i return smallest_index def selection_sort(arr): newarr = [] for i in range(len(arr)): smallest...
24.4
47
0.581967
67
488
4.104478
0.38806
0.236364
0.043636
0.08
0
0
0
0
0
0
0
0.035398
0.305328
488
19
48
25.684211
0.775811
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0.0625
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
b4cefef49f2369f3f8e23dfe6b70e513930b24a7
2,229
py
Python
causal_world/intervention_actors/visual_actor.py
michaelfeil/CausalWorld
ff866159ef0ee9c407893ae204e93eb98dd68be2
[ "MIT" ]
2
2021-09-22T08:20:12.000Z
2021-11-16T14:20:45.000Z
causal_world/intervention_actors/visual_actor.py
michaelfeil/CausalWorld
ff866159ef0ee9c407893ae204e93eb98dd68be2
[ "MIT" ]
null
null
null
causal_world/intervention_actors/visual_actor.py
michaelfeil/CausalWorld
ff866159ef0ee9c407893ae204e93eb98dd68be2
[ "MIT" ]
null
null
null
from causal_world.intervention_actors.base_actor import \ BaseInterventionActorPolicy import numpy as np class VisualInterventionActorPolicy(BaseInterventionActorPolicy): def __init__(self, **kwargs): """ This intervention actor intervenes on all visual components of the robot, (i.e: ...
35.951613
87
0.599372
219
2,229
5.90411
0.388128
0.055684
0.139211
0.174014
0.249807
0.134571
0.074246
0.074246
0
0
0
0.002654
0.323912
2,229
61
88
36.540984
0.855342
0.30821
0
0
0
0
0.027206
0
0
0
0
0
0
1
0.153846
false
0
0.076923
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
b4d2816f6506147c7e1180e32379768ecd8e932b
945
py
Python
tppm/auth.py
timtumturutumtum/TraktPlaybackProgressManager
6b3b6f81a6de5c1b7f11d1b2ae34c1b1cc6a2b10
[ "MIT" ]
36
2017-08-06T13:47:21.000Z
2022-02-19T03:33:07.000Z
tppm/auth.py
timtumturutumtum/TraktPlaybackProgressManager
6b3b6f81a6de5c1b7f11d1b2ae34c1b1cc6a2b10
[ "MIT" ]
5
2018-07-20T13:01:35.000Z
2021-12-12T21:03:05.000Z
tppm/auth.py
timtumturutumtum/TraktPlaybackProgressManager
6b3b6f81a6de5c1b7f11d1b2ae34c1b1cc6a2b10
[ "MIT" ]
3
2018-11-20T13:16:37.000Z
2021-10-13T01:57:55.000Z
# coding: utf-8 """ Trakt Playback Manager """ from __future__ import absolute_import from __future__ import unicode_literals import io import json import os.path def save(path, data): with io.open(path, 'w', encoding='utf-8', newline='\n') as fh: # Must NOT use `json.dump` due to a Python 2 bug: ...
21
66
0.607407
125
945
4.496
0.536
0.021352
0.05694
0.049822
0.11032
0.11032
0.11032
0.11032
0
0
0
0.029326
0.278307
945
44
67
21.477273
0.794721
0.138624
0
0.275862
0
0
0.021118
0
0
0
0
0
0
1
0.103448
false
0.034483
0.172414
0
0.517241
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
b4da893de386e17a0bd776a5eb2220d68a53a7ab
710
py
Python
data-exporter/brix/settings.py
dzwiedziu-nkg/credo-api-tools
37adce8c858d2997b90ce7a1397e68dd281b8249
[ "MIT" ]
null
null
null
data-exporter/brix/settings.py
dzwiedziu-nkg/credo-api-tools
37adce8c858d2997b90ce7a1397e68dd281b8249
[ "MIT" ]
null
null
null
data-exporter/brix/settings.py
dzwiedziu-nkg/credo-api-tools
37adce8c858d2997b90ce7a1397e68dd281b8249
[ "MIT" ]
null
null
null
import csv DIR = 'credo-data-export/detections' CSV = 'credo-data-export/credocut.tsv' PLOT = 'credo-data-export/credocut.plot' JSON = 'credo-data-export/credocut.json' DEVICES = 'credo-data-export/device_mapping.json' PNG = 'credo-data-export/png' CREDOCUT = 10069 DELIMITER='\t' QUOTECHAR='"' QUOTING=csv.QUOTE_MINIM...
17.317073
49
0.623944
86
710
5.046512
0.581395
0.124424
0.207373
0.158986
0
0
0
0
0
0
0
0.010582
0.201408
710
40
50
17.75
0.75485
0
0
0
0
0
0.433803
0.250704
0
0
0
0
0
1
0
false
0
0.028571
0
0.028571
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b4db3df141a7dfd438923171f46933d4cbc0dace
13,456
py
Python
{{cookiecutter.project_name}}/core/vertebral.py
rzavarce/cookiecutter-vertebral
29a72b6bfb5c4ca76b1a36ee1e8ff9e0fedcb421
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/core/vertebral.py
rzavarce/cookiecutter-vertebral
29a72b6bfb5c4ca76b1a36ee1e8ff9e0fedcb421
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/core/vertebral.py
rzavarce/cookiecutter-vertebral
29a72b6bfb5c4ca76b1a36ee1e8ff9e0fedcb421
[ "MIT" ]
null
null
null
import re import json import logging import hmac import base64 import hashlib import jsonschema from uuid import uuid4 from aiohttp import web from pathlib import Path from yaml import safe_load from http import HTTPStatus from datetime import datetime, timezone from {{cookiecutter.project_name}}.routes import setup...
30.306306
80
0.56198
1,329
13,456
5.562077
0.222724
0.033415
0.029221
0.019481
0.243642
0.227679
0.210904
0.210363
0.185741
0.185741
0
0.002561
0.332565
13,456
443
81
30.374718
0.82051
0.002229
0
0.146789
0
0
0.104399
0.017324
0
0
0
0
0
0
null
null
0
0.077982
null
null
0.027523
0
0
0
null
0
0
0
0
0
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
b4df7dcc36490cc477f25560dc32bb1832158dd7
835
py
Python
example-query.py
ericwhyne/http-ricochet
bd8edb8591047e00a45727457fd09c089f591836
[ "BSD-3-Clause" ]
19
2015-05-06T16:45:50.000Z
2020-07-31T10:26:17.000Z
example-query.py
ericwhyne/http-ricochet
bd8edb8591047e00a45727457fd09c089f591836
[ "BSD-3-Clause" ]
2
2015-05-06T17:00:33.000Z
2015-07-29T19:51:58.000Z
example-query.py
ericwhyne/http-ricochet
bd8edb8591047e00a45727457fd09c089f591836
[ "BSD-3-Clause" ]
3
2015-05-06T23:16:00.000Z
2019-08-13T15:09:44.000Z
#!/usr/bin/python import urllib2 import random # A list of places we've deployed ricochet ricochet_servers = [ "http://127.0.0.1:8080/ricochet/ricochet?url=", "http://127.0.0.1:8080/ricochet/ricochet?url=" ] # We're identifying ourselves to ourself here, this will show up in the server logs (unless you've disabled th...
36.304348
114
0.747305
129
835
4.790698
0.596899
0.07767
0.02589
0.029126
0.106796
0.106796
0.106796
0.106796
0.106796
0
0
0.036885
0.123353
835
22
115
37.954545
0.807377
0.482635
0
0
0
0
0.340376
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b4e4e45949d2b3e2692bb5ce21125c0005114be5
780
py
Python
buildmsi.py
vivainio/pylauncher-import
584b7127bfcde114a55188f1edafdd768213e51e
[ "BSD-2-Clause" ]
null
null
null
buildmsi.py
vivainio/pylauncher-import
584b7127bfcde114a55188f1edafdd768213e51e
[ "BSD-2-Clause" ]
null
null
null
buildmsi.py
vivainio/pylauncher-import
584b7127bfcde114a55188f1edafdd768213e51e
[ "BSD-2-Clause" ]
1
2021-11-09T02:37:35.000Z
2021-11-09T02:37:35.000Z
import getpass import os import sys VER = '1.0.1.7' VERSION = 'Version=%s' % VER MANUFACTURER = 'Manufacturer=Vinay Sajip' X86 = 'Platform=x86' X64 = 'Platform=x64' TOWIN = 'ToWindows' def main(): signpwd = getpass.getpass('Password for signing:') import builddoc builddoc.main() os.envi...
32.5
94
0.635897
93
780
5.247312
0.354839
0.040984
0.098361
0.122951
0.434426
0.331967
0.229508
0.229508
0.229508
0.229508
0
0.031546
0.187179
780
24
95
32.5
0.73817
0
0
0
0
0
0.258575
0
0
0
0
0
0
1
0.047619
false
0.095238
0.238095
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b4e905f07ef9267e0151e885d12dea14423eaf4d
1,063
py
Python
source/miscellaneous/test_get_sub_dir_dates.py
youdar/usesul_functions
7cca9f8e241f2334f9eb0eab46d40b4c109e8518
[ "MIT" ]
null
null
null
source/miscellaneous/test_get_sub_dir_dates.py
youdar/usesul_functions
7cca9f8e241f2334f9eb0eab46d40b4c109e8518
[ "MIT" ]
null
null
null
source/miscellaneous/test_get_sub_dir_dates.py
youdar/usesul_functions
7cca9f8e241f2334f9eb0eab46d40b4c109e8518
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import division from get_sub_dir_dates import get_sub_dir_dates from get_table_hdfs_location import get_table_hdfs_location import unittest import sys __author__ = 'youval.dar' class CollectDates(unittest.TestCase): def test_get_sub_dir_dates(self): print sys._getfr...
27.25641
69
0.732832
152
1,063
4.736842
0.473684
0.033333
0.05
0.077778
0.186111
0.113889
0
0
0
0
0
0.004566
0.175917
1,063
38
70
27.973684
0.817352
0.111007
0
0
0
0
0.112162
0.043243
0
0
0
0
0
0
null
null
0
0.263158
null
null
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b4ee34ec8c2a387636b7c753e6e3f2ecebd11bb6
3,534
py
Python
hangman/ps3_hangman.py
kriyaaseela/Hangman
8733ced9f915890b74d53587e67c3b9b36815484
[ "MIT" ]
1
2016-11-13T20:13:06.000Z
2016-11-13T20:13:06.000Z
hangman/ps3_hangman.py
kriyaaseela/Hangman
8733ced9f915890b74d53587e67c3b9b36815484
[ "MIT" ]
null
null
null
hangman/ps3_hangman.py
kriyaaseela/Hangman
8733ced9f915890b74d53587e67c3b9b36815484
[ "MIT" ]
null
null
null
# Hangman game import random WORDLIST_FILENAME = "words.txt" def loadWords(): """ Returns a list of valid words. Words are strings of lowercase letters. Depending on the size of the word list, this function may take a while to finish. """ # inFile: file inFile = open(WORDLIST_FILE...
28.272
106
0.631862
411
3,534
5.425791
0.318735
0.075336
0.026906
0.030493
0.195516
0.15426
0.15426
0.15426
0.15426
0.15426
0
0.002698
0.265705
3,534
124
107
28.5
0.856647
0.342105
0
0.180328
0
0
0.166437
0.011954
0
0
0
0.032258
0
1
0.098361
false
0
0.016393
0
0.196721
0.180328
0
0
0
null
0
0
0
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
b4f0d8d809078663bd768dd9f4f542a1be3ac6fe
520
py
Python
src/utils/logger.py
hao-wang/Montage
d1c98ec7dbe20d0449f0d02694930cf1f69a5cea
[ "MIT" ]
65
2020-01-03T11:59:03.000Z
2022-03-19T07:10:47.000Z
src/utils/logger.py
hao-wang/Montage
d1c98ec7dbe20d0449f0d02694930cf1f69a5cea
[ "MIT" ]
5
2020-01-10T01:55:26.000Z
2020-09-23T10:44:00.000Z
src/utils/logger.py
hao-wang/Montage
d1c98ec7dbe20d0449f0d02694930cf1f69a5cea
[ "MIT" ]
10
2020-10-07T02:39:06.000Z
2021-06-04T07:06:54.000Z
class Colors: END = '\033[0m' ERROR = '\033[91m[ERROR] ' INFO = '\033[94m[INFO] ' WARN = '\033[93m[WARN] ' def get_color(msg_type): if msg_type == 'ERROR': return Colors.ERROR elif msg_type == 'INFO': return Colors.INFO elif msg_type == 'WARN': return Colors.WARN else: return Colors.END...
20.8
41
0.642308
82
520
3.914634
0.280488
0.174455
0.084112
0.121495
0.165109
0
0
0
0
0
0
0.045894
0.203846
520
24
42
21.666667
0.729469
0
0
0
0
0
0.126923
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.619048
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
b4f5a7efcd7626395f15699df12dd9127abee6af
187
py
Python
text/code/exact-string-matching/naive-forward.py
pmikolajczyk41/string-algorithms
faa7c7b3ab18a157a27e8c08081f2efebf8be900
[ "MIT" ]
1
2020-06-27T01:33:43.000Z
2020-06-27T01:33:43.000Z
text/code/exact-string-matching/naive-forward.py
TenGumis/string-algorithms
e57a9dc6150e92ab65cad4a5c1e68533b7166eb7
[ "MIT" ]
null
null
null
text/code/exact-string-matching/naive-forward.py
TenGumis/string-algorithms
e57a9dc6150e92ab65cad4a5c1e68533b7166eb7
[ "MIT" ]
null
null
null
def naive_string_matching(t, w, n, m): for i in range(n - m + 1): j = 0 while j < m and t[i + j + 1] == w[j + 1]: j = j + 1 if j == m: return True return False
23.375
45
0.475936
38
187
2.289474
0.552632
0.068966
0
0
0
0
0
0
0
0
0
0.042735
0.374332
187
8
46
23.375
0.700855
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b4f7eeae12122017454859c15609e21806fad1d5
3,003
py
Python
imgtools/modules/segmentation.py
bhklab/med-imagetools
0cce0ee6666d052d4f76a1b6dc5d088392d309f4
[ "Apache-2.0" ]
9
2021-12-14T19:53:57.000Z
2022-01-18T18:45:26.000Z
imgtools/modules/segmentation.py
bhklab/med-imagetools
0cce0ee6666d052d4f76a1b6dc5d088392d309f4
[ "Apache-2.0" ]
4
2021-12-05T02:54:00.000Z
2021-12-10T20:32:20.000Z
imgtools/modules/segmentation.py
bhklab/imgtools
0f0414533cb6667b68aa48541feb376226fd5515
[ "Apache-2.0" ]
1
2021-07-30T20:22:46.000Z
2021-07-30T20:22:46.000Z
from functools import wraps import numpy as np import SimpleITK as sitk from ..utils import array_to_image, image_to_array def accepts_segmentations(f): @wraps(f) def wrapper(img, *args, **kwargs): result = f(img, *args, **kwargs) if isinstance(img, Segmentation): result = sit...
35.75
99
0.628705
395
3,003
4.58481
0.265823
0.079514
0.072888
0.023192
0.079514
0.079514
0.079514
0.064053
0.028713
0
0
0.010032
0.26973
3,003
83
100
36.180723
0.815777
0.05661
0
0.126984
0
0
0.032885
0
0
0
0
0.012048
0
1
0.126984
false
0.015873
0.063492
0.015873
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
1
0
0
0
0
0
0
0
0
0
0
1
b4fe009337e782310f135a773be727eb38fed3e9
3,455
py
Python
leo/modes/kivy.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
1,550
2015-01-14T16:30:37.000Z
2022-03-31T08:55:58.000Z
leo/modes/kivy.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
2,009
2015-01-13T16:28:52.000Z
2022-03-31T18:21:48.000Z
leo/modes/kivy.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
200
2015-01-05T15:07:41.000Z
2022-03-07T17:05:01.000Z
# Leo colorizer control file for kivy mode. # This file is in the public domain. # Properties for kivy mode. properties = { "ignoreWhitespace": "false", "lineComment": "#", } # Attributes dict for kivy_main ruleset. kivy_main_attributes_dict = { "default": "null", "digit_re": "", "esc...
25.218978
75
0.546165
413
3,455
4.288136
0.27845
0.32524
0.037267
0.040655
0.458498
0.446076
0.400339
0.36646
0.36646
0.36646
0
0.035412
0.248046
3,455
136
76
25.404412
0.646266
0.116643
0
0.017857
0
0
0.120565
0
0
0
0
0
0
1
0.026786
false
0
0.008929
0.026786
0.0625
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
37058b29e2d2eb0d2cb3136d55f0713da2693a83
643
py
Python
hw_asr/augmentations/spectrogram_augmentations/SpecAug.py
isdevnull/asr_hw
9650506b80d4e38574b63390f79a6f01786b7d18
[ "MIT" ]
null
null
null
hw_asr/augmentations/spectrogram_augmentations/SpecAug.py
isdevnull/asr_hw
9650506b80d4e38574b63390f79a6f01786b7d18
[ "MIT" ]
null
null
null
hw_asr/augmentations/spectrogram_augmentations/SpecAug.py
isdevnull/asr_hw
9650506b80d4e38574b63390f79a6f01786b7d18
[ "MIT" ]
null
null
null
import torchaudio.transforms from torch import nn from hw_asr.augmentations.base import AugmentationBase from hw_asr.augmentations.random_apply import RandomApply class SpecAug(AugmentationBase): def __init__(self, freq_mask: int, time_mask: int, prob: float, *args, **kwargs): self.augmentation = nn.Sequ...
32.15
85
0.720062
74
643
6.027027
0.472973
0.134529
0.040359
0.098655
0
0
0
0
0
0
0
0
0.191291
643
19
86
33.842105
0.857692
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0.071429
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3708da2d53e985416aa3068357d2ebc357bc0355
7,558
py
Python
loom/group.py
probcomp/loom
825188eae76e7106a6959f6a18312b0aa3338f83
[ "BSD-3-Clause" ]
2
2019-10-25T17:57:22.000Z
2020-07-14T02:37:34.000Z
loom/group.py
probcomp/loom
825188eae76e7106a6959f6a18312b0aa3338f83
[ "BSD-3-Clause" ]
1
2019-12-13T03:08:05.000Z
2019-12-13T03:08:05.000Z
loom/group.py
probcomp/loom
825188eae76e7106a6959f6a18312b0aa3338f83
[ "BSD-3-Clause" ]
1
2020-06-22T11:23:43.000Z
2020-06-22T11:23:43.000Z
# Copyright (c) 2014, Salesforce.com, Inc. All rights reserved. # Copyright (c) 2015, Google, Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # - Redistributions of source code must retain the above copyright ...
36.162679
78
0.653744
957
7,558
5.086729
0.371996
0.011504
0.006574
0.009449
0.056697
0.027938
0.027938
0.027938
0.027938
0.027938
0
0.010626
0.22797
7,558
208
79
36.336538
0.82365
0.271897
0
0.036697
0
0
0.046034
0
0
0
0
0.004808
0
0
null
null
0
0.12844
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
370a96e1434086705b394298ea7d87edaa65f00a
4,309
py
Python
easyci/app/easyCI/tasksPool.py
9OMShitikov/anytask
71354543f467f6c824dfb194bf48ee76c391ff53
[ "MIT" ]
null
null
null
easyci/app/easyCI/tasksPool.py
9OMShitikov/anytask
71354543f467f6c824dfb194bf48ee76c391ff53
[ "MIT" ]
null
null
null
easyci/app/easyCI/tasksPool.py
9OMShitikov/anytask
71354543f467f6c824dfb194bf48ee76c391ff53
[ "MIT" ]
null
null
null
import json import requests import tempfile import shutil import subprocess import os import logging import urllib.request from multiprocessing import Pool import app.easyCI.docker as docker from contextlib import contextmanager LOG = logging.getLogger(__name__) CONFIG = "config.json" PASSWORDS = "passwords.json" MAX...
29.312925
116
0.601764
548
4,309
4.569343
0.260949
0.02516
0.017572
0.019169
0.144968
0.058307
0.03754
0.03754
0.03754
0.03754
0
0.004085
0.261546
4,309
146
117
29.513699
0.782841
0.00789
0
0.017857
0
0
0.131493
0.01942
0
0
0
0
0
1
0.080357
false
0.0625
0.098214
0.008929
0.3125
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
370bb514404727469781e53bb089355e3b933806
1,201
py
Python
polling_stations/apps/data_collection/management/commands/import_monmouthshire.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_collection/management/commands/import_monmouthshire.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_collection/management/commands/import_monmouthshire.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.gis.geos import Point from data_collection.management.commands import BaseShpStationsShpDistrictsImporter class Command(BaseShpStationsShpDistrictsImporter): srid = 27700 council_id = "W06000021" districts_name = "polling_district" stations_name = "polling_station.shp" election...
32.459459
83
0.613655
133
1,201
5.406015
0.609023
0.037552
0.041725
0.062587
0.061196
0
0
0
0
0
0
0.072893
0.268943
1,201
36
84
33.361111
0.746014
0
0
0
0
0
0.191878
0.030457
0
0
0
0
0
1
0.086957
false
0
0.130435
0.043478
0.565217
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
370fc257e4ad1d9ff8e001439c3aa8ae3d6aba1a
808
py
Python
lab-sessions/lab-3/ex3_gray_scale.py
DatacollectorVN/BME-Bio-Image-Processing-class
bc750f190398a1c29e2a8cd8092ced2072ce02e9
[ "MIT" ]
null
null
null
lab-sessions/lab-3/ex3_gray_scale.py
DatacollectorVN/BME-Bio-Image-Processing-class
bc750f190398a1c29e2a8cd8092ced2072ce02e9
[ "MIT" ]
null
null
null
lab-sessions/lab-3/ex3_gray_scale.py
DatacollectorVN/BME-Bio-Image-Processing-class
bc750f190398a1c29e2a8cd8092ced2072ce02e9
[ "MIT" ]
null
null
null
import cv2 import numpy as np import argparse def main(image_file_path): img = cv2.imread(image_file_path) img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) name_window_1 = "original" name_window_2 = "grayscale" while True: cv2.imshow(name_window_1, img) cv2.imshow(name_window_2, im...
27.862069
76
0.632426
104
808
4.596154
0.509615
0.131799
0.190377
0.07113
0
0
0
0
0
0
0
0.027257
0.273515
808
29
77
27.862069
0.787053
0.04703
0
0
0
0
0.085938
0
0
0
0
0
0
1
0.045455
false
0
0.136364
0
0.181818
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
371029d250aeabea72732a867201c7c53e2e6057
862
py
Python
project/tests/GUI/tools.py
RemuTeam/Remu
a7d100ff9002b1b1d27249f8adf510b5a89c09e3
[ "MIT" ]
2
2017-09-18T11:04:38.000Z
2017-09-25T17:23:21.000Z
project/tests/GUI/tools.py
RemuTeam/Remu
a7d100ff9002b1b1d27249f8adf510b5a89c09e3
[ "MIT" ]
26
2017-09-20T09:11:10.000Z
2017-12-11T12:21:56.000Z
project/tests/GUI/tools.py
RemuTeam/Remu
a7d100ff9002b1b1d27249f8adf510b5a89c09e3
[ "MIT" ]
null
null
null
from functools import partial from kivy.clock import Clock def to_task(s): s.press("//MenuButtonTitled[@name='LOGO']") s.assert_on_screen('activity') s.press('//StartNowButton') s.assert_on_screen('tasks') s.tap("//TestIntro//TestCarouselForwardButton") s.assert_on_screen("test", manager_sele...
24.628571
78
0.701856
103
862
5.68932
0.475728
0.035836
0.046075
0.076792
0
0
0
0
0
0
0
0.001379
0.158933
862
34
79
25.352941
0.806897
0
0
0
0
0
0.193961
0.155633
0
0
0
0
0.136364
1
0.318182
false
0
0.090909
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3710f1bb3487fa331fc10580553cc5631bd8c85e
808
py
Python
auctions/migrations/0020_bids_bidder_alter_list_date.py
AncientSoup/cs50w_commerce
fb4cb8a47279e562f1d4a859abbf44ea5a7d9891
[ "MIT" ]
1
2022-01-25T10:40:44.000Z
2022-01-25T10:40:44.000Z
auctions/migrations/0020_bids_bidder_alter_list_date.py
AncientSoup/cs50w_commerce
fb4cb8a47279e562f1d4a859abbf44ea5a7d9891
[ "MIT" ]
null
null
null
auctions/migrations/0020_bids_bidder_alter_list_date.py
AncientSoup/cs50w_commerce
fb4cb8a47279e562f1d4a859abbf44ea5a7d9891
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-02-12 11:07 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('auctions', '0019_alter_list_date_alte...
28.857143
133
0.653465
98
808
5.27551
0.581633
0.058027
0.054159
0.085106
0
0
0
0
0
0
0
0.058252
0.235149
808
27
134
29.925926
0.778317
0.055693
0
0.095238
1
0
0.082786
0.04862
0
0
0
0
0
1
0
false
0
0.238095
0
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
37164ce047902fb36b1255b04be946281d2676f6
2,583
py
Python
review/migrations/0004_auto_20170315_0930.py
kgdunn/peer-review-system
1fd5ac9d0f84d7637a86682e9e5fc068ac404afd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
review/migrations/0004_auto_20170315_0930.py
kgdunn/peer-review-system
1fd5ac9d0f84d7637a86682e9e5fc068ac404afd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
review/migrations/0004_auto_20170315_0930.py
kgdunn/peer-review-system
1fd5ac9d0f84d7637a86682e9e5fc068ac404afd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-15 08:30 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('review', '0003_auto_20170314_2217'), ] operations ...
47.833333
387
0.629113
302
2,583
5.268212
0.466887
0.025141
0.035198
0.055311
0.332495
0.311125
0.164048
0.140792
0.082967
0.082967
0
0.026194
0.246225
2,583
53
388
48.735849
0.79096
0.026326
0
0.434783
1
0.043478
0.303344
0.009156
0
0
0
0
0
1
0
false
0
0.065217
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
372f9e118f442669abaa10df5175221694562ac7
22,776
py
Python
pypy/module/_ssl/interp_ssl.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
pypy/module/_ssl/interp_ssl.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
null
null
null
pypy/module/_ssl/interp_ssl.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
from pypy.rpython.rctypes.tool import ctypes_platform from pypy.rpython.rctypes.tool.libc import libc import pypy.rpython.rctypes.implementation # this defines rctypes magic from pypy.interpreter.error import OperationError from pypy.interpreter.baseobjspace import W_Root, ObjSpace, Wrappable from pypy.interpreter.type...
38.472973
85
0.67514
3,160
22,776
4.539241
0.105696
0.047964
0.040156
0.016732
0.52705
0.415784
0.326896
0.252301
0.224484
0.203291
0
0.011976
0.237443
22,776
591
86
38.538071
0.813911
0.036881
0
0.277542
0
0
0.079422
0.011949
0
0
0
0
0.004237
0
null
null
0.002119
0.029661
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3730b8d9d97aea9d5b10c216bcc20f5a6594936c
1,084
py
Python
tests/test_easy_patient_name.py
taylordeatri/phc-sdk-py
8f3ec6ac44e50c7194f174fd0098de390886693d
[ "MIT" ]
1
2020-07-22T12:46:58.000Z
2020-07-22T12:46:58.000Z
tests/test_easy_patient_name.py
taylordeatri/phc-sdk-py
8f3ec6ac44e50c7194f174fd0098de390886693d
[ "MIT" ]
54
2019-10-09T16:19:04.000Z
2022-01-19T20:28:59.000Z
tests/test_easy_patient_name.py
taylordeatri/phc-sdk-py
8f3ec6ac44e50c7194f174fd0098de390886693d
[ "MIT" ]
2
2019-10-30T19:54:43.000Z
2020-12-03T18:57:15.000Z
from phc.easy.patients.name import expand_name_value def test_name(): assert expand_name_value( [{"text": "ARA251 LO", "given": ["ARA251"], "family": "LO"}] ) == {"name_given_0": "ARA251", "name_family": "LO"} def test_name_with_multiple_values(): # NOTE: Official names are preferred first and t...
27.794872
79
0.47048
98
1,084
4.989796
0.408163
0.110429
0.122699
0.147239
0.302658
0.208589
0.208589
0.208589
0.208589
0
0
0.017857
0.380074
1,084
38
80
28.526316
0.709821
0.084871
0
0.28125
0
0
0.308392
0
0
0
0
0
0.0625
1
0.0625
true
0
0.03125
0
0.09375
0
0
0
0
null
0
0
0
0
0
0
0
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
2e9e6bf6e35ae4a1dfdd7e51e95b5be403c30f21
7,126
py
Python
src/headtracking_network/live_training.py
NaviRice/HeadTracking
8227cc247425ecacd3e789dbbac11d3e5103d3e2
[ "MIT" ]
1
2019-10-24T14:29:00.000Z
2019-10-24T14:29:00.000Z
src/headtracking_network/live_training.py
NaviRice/HeadTracking
8227cc247425ecacd3e789dbbac11d3e5103d3e2
[ "MIT" ]
7
2017-11-28T23:58:40.000Z
2022-03-11T23:12:12.000Z
src/headtracking_network/live_training.py
NaviRice/HeadTracking
8227cc247425ecacd3e789dbbac11d3e5103d3e2
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import os import navirice_image_pb2 import cv2 import random import sys from navirice_generate_data import generate_bitmap_label from navirice_helpers import navirice_image_to_np from navirice_helpers import navirice_ir_to_np from navirice_helpers import map_depth_and_rgb fro...
33.772512
152
0.57648
986
7,126
3.932049
0.238337
0.033015
0.026825
0.010317
0.30668
0.222337
0.166108
0.150632
0.117617
0.083054
0
0.058975
0.293292
7,126
210
153
33.933333
0.710882
0.068201
0
0.171053
1
0
0.044175
0.01407
0
0
0.000605
0
0
1
0.046053
false
0
0.085526
0
0.177632
0.059211
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
2ea94d8d31634c3fa968dde28070a8a994acc38b
9,148
py
Python
zigpy_deconz_parser/commands/responses.py
zha-ng/zigpy-deconz-parser
9182b3578f20a145ccd46b0cfa002613c4cd38db
[ "Apache-2.0" ]
2
2020-02-06T00:00:10.000Z
2022-02-25T23:47:30.000Z
zigpy_deconz_parser/commands/responses.py
zha-ng/zigpy-deconz-parser
9182b3578f20a145ccd46b0cfa002613c4cd38db
[ "Apache-2.0" ]
2
2020-04-08T11:57:46.000Z
2020-05-13T13:32:03.000Z
zigpy_deconz_parser/commands/responses.py
zha-ng/zigpy-deconz-parser
9182b3578f20a145ccd46b0cfa002613c4cd38db
[ "Apache-2.0" ]
null
null
null
import attr import binascii import zigpy.types as t import zigpy_deconz.types as dt import zigpy_deconz_parser.types as pt @attr.s class Version(pt.Command): SCHEMA = (t.uint32_t, ) version = attr.ib(factory=SCHEMA[0]) def pretty_print(self, *args): self.print("Version: 0x{:08x}".format(self.ver...
35.049808
83
0.636314
1,288
9,148
4.395963
0.101708
0.055104
0.119392
0.171141
0.72236
0.633698
0.551572
0.520311
0.44154
0.39615
0
0.032565
0.207805
9,148
260
84
35.184615
0.748724
0.016506
0
0.423645
0
0
0.121438
0
0
0
0.001336
0
0
1
0.059113
false
0
0.024631
0
0.463054
0.330049
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
2eb1e585fcbec5ec479747784f42d3567bceb246
1,294
py
Python
submission_config.py
ege-k/nlp4nethack
8b8b45a2f0be09c5233b33a47f421906e9e4b561
[ "MIT" ]
null
null
null
submission_config.py
ege-k/nlp4nethack
8b8b45a2f0be09c5233b33a47f421906e9e4b561
[ "MIT" ]
null
null
null
submission_config.py
ege-k/nlp4nethack
8b8b45a2f0be09c5233b33a47f421906e9e4b561
[ "MIT" ]
null
null
null
from agents.custom_agent import CustomAgent from agents.torchbeast_agent import TorchBeastAgent from envs.wrappers import addtimelimitwrapper_fn ################################################ # Import your own agent code # # Set Submision_Agent to your agent # # Set NUM_PARALLEL_ENVI...
33.179487
74
0.663833
161
1,294
5.236025
0.515528
0.023725
0.02847
0
0
0
0
0
0
0
0
0.010956
0.224111
1,294
38
75
34.052632
0.828685
0.592736
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
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
2ec35e8658fe8c350dc2c624d8f6bcac6016d398
12,527
py
Python
plugin.video.220ro/default.py
keddyboys/keddy-repo
5c3420828e19f97222714e0e8518a95d58b3f637
[ "MIT" ]
1
2019-09-08T05:39:36.000Z
2019-09-08T05:39:36.000Z
plugin.video.220ro/default.py
keddyboys/keddy-repo
5c3420828e19f97222714e0e8518a95d58b3f637
[ "MIT" ]
1
2017-12-03T09:17:31.000Z
2019-01-13T08:48:40.000Z
plugin.video.220ro/default.py
keddyboys/keddy-repo
5c3420828e19f97222714e0e8518a95d58b3f637
[ "MIT" ]
null
null
null
import HTMLParser import os import re import sys import time import urllib import urllib2 import xbmc import xbmcaddon import xbmcgui import xbmcplugin __addon__ = xbmcaddon.Addon() __cwd__ = xbmc.translatePath(__addon__.getAddonInfo('path')).decode("utf-8") __resource__ = xbmc.translatePath(os.path.join(__c...
38.192073
246
0.58346
1,616
12,527
4.450495
0.169554
0.01168
0.016685
0.020022
0.511263
0.464683
0.415044
0.365545
0.331758
0.285595
0
0.024517
0.218568
12,527
327
247
38.308869
0.710185
0.050291
0
0.342308
0
0.026923
0.183371
0.045527
0
0
0
0
0
0
null
null
0.011538
0.042308
null
null
0.007692
0
0
0
null
0
0
0
0
0
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
2ec5499aa58ee90bddbc543db1bbb0895014d0e6
1,089
py
Python
conftest.py
Budapest-Quantum-Computing-Group/piquassoboost
fd384be8f59cfd20d62654cf86c89f69d3cf8b8c
[ "Apache-2.0" ]
4
2021-11-29T13:28:19.000Z
2021-12-21T22:57:09.000Z
conftest.py
Budapest-Quantum-Computing-Group/piquassoboost
fd384be8f59cfd20d62654cf86c89f69d3cf8b8c
[ "Apache-2.0" ]
11
2021-09-24T18:02:26.000Z
2022-01-27T18:51:47.000Z
conftest.py
Budapest-Quantum-Computing-Group/piquassoboost
fd384be8f59cfd20d62654cf86c89f69d3cf8b8c
[ "Apache-2.0" ]
1
2021-11-13T10:06:52.000Z
2021-11-13T10:06:52.000Z
# # Copyright 2021 Budapest Quantum Computing Group # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
33
87
0.724518
152
1,089
5.184211
0.684211
0.076142
0.032995
0.040609
0
0
0
0
0
0
0
0.010124
0.183655
1,089
32
88
34.03125
0.876265
0.674013
0
0
0
0
0.20178
0.15727
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2ec7a0b5bdeca4cd119b116e98c327c2a10981dd
799
py
Python
app/core/tests/test_models.py
Skyprince-gh/recipe-app-api
a4f0ead6ab546b1fea69c32caa3c269898c4086f
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
Skyprince-gh/recipe-app-api
a4f0ead6ab546b1fea69c32caa3c269898c4086f
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
Skyprince-gh/recipe-app-api
a4f0ead6ab546b1fea69c32caa3c269898c4086f
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model class ModelTests(TestCase): def test_create_user_with_emamil_successful(self): """Test creating a new user with an email is successful""" email = 'test@test.com' password = 'testpass123' user = get_user_model().objects....
47
129
0.768461
116
799
5.189655
0.474138
0.074751
0.059801
0.049834
0.202658
0.202658
0.202658
0.202658
0.202658
0.202658
0
0.004532
0.171464
799
17
130
47
0.904834
0.461827
0
0
0
0
0.056872
0
0
0
0
0
0.166667
1
0.083333
false
0.25
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2ecd9594ca823d5651d395e05b565a78030a392e
35,203
py
Python
cardinal_pythonlib/sphinxtools.py
bopopescu/pythonlib
9c2187d6092ba133342ca3374eb7c86f9d296c30
[ "Apache-2.0" ]
null
null
null
cardinal_pythonlib/sphinxtools.py
bopopescu/pythonlib
9c2187d6092ba133342ca3374eb7c86f9d296c30
[ "Apache-2.0" ]
null
null
null
cardinal_pythonlib/sphinxtools.py
bopopescu/pythonlib
9c2187d6092ba133342ca3374eb7c86f9d296c30
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # cardinal_pythonlib/sphinxtools.py """ =============================================================================== Original code copyright (C) 2009-2020 Rudolf Cardinal (rudolf@pobox.com). This file is part of cardinal_pythonlib. Licensed under the Apache License, Version 2.0 ...
37.81203
106
0.599068
3,953
35,203
5.122186
0.126233
0.022471
0.026274
0.019557
0.410658
0.345269
0.309018
0.2621
0.240024
0.207329
0
0.001306
0.304207
35,203
930
107
37.852688
0.825345
0.408346
0
0.348341
0
0
0.084642
0.025786
0
0
0
0.030108
0.042654
1
0.07346
false
0
0.028436
0.004739
0.182464
0
0
0
0
null
0
0
0
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
2ecd9c823bd13321a5aed037237d0b2d3b1ca359
481
py
Python
monsterapi/migrations/0005_monster_name.py
merenor/momeback
33195c43abd2757a361dfc5cb7e3cf56f6b57402
[ "MIT" ]
1
2018-11-05T13:08:48.000Z
2018-11-05T13:08:48.000Z
monsterapi/migrations/0005_monster_name.py
merenor/momeback
33195c43abd2757a361dfc5cb7e3cf56f6b57402
[ "MIT" ]
null
null
null
monsterapi/migrations/0005_monster_name.py
merenor/momeback
33195c43abd2757a361dfc5cb7e3cf56f6b57402
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-08 21:12 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('monsterapi', '0004_name'), ] operations = [ migrations.AddField( model_name='monster', ...
24.05
126
0.634096
56
481
5.392857
0.642857
0.07947
0.092715
0.145695
0
0
0
0
0
0
0
0.052055
0.241164
481
19
127
25.315789
0.775342
0.093555
0
0
1
0
0.103687
0
0
0
0
0
0
1
0
false
0
0.153846
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2ed00b75cde30c9fb64baa2e01095d04529cd5dc
2,398
py
Python
src/sentry/migrations/0028_user_reports.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
src/sentry/migrations/0028_user_reports.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
src/sentry/migrations/0028_user_reports.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.27 on 2020-01-23 19:07 from __future__ import unicode_literals import logging from django.db import migrations from sentry import eventstore from sentry.utils.query import RangeQuerySetWrapper from sentry.utils.snuba import ( SnubaError, QueryOutsideRetentio...
36.892308
94
0.708924
307
2,398
5.42671
0.501629
0.033013
0.018007
0.020408
0
0
0
0
0
0
0
0.015566
0.223103
2,398
64
95
37.46875
0.87869
0.410759
0
0
1
0
0.05942
0
0
0
0
0
0
1
0.030303
false
0
0.181818
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
2ed64ffbfe98feb2efc11a0c58fa360ff20cbac1
4,184
py
Python
redshift-dataapi/iac/app.py
InfrastructureHQ/AWS-CDK-Accelerators
a8a3f61040f4419a6c3485c8f4b8df6204a55940
[ "Apache-2.0" ]
null
null
null
redshift-dataapi/iac/app.py
InfrastructureHQ/AWS-CDK-Accelerators
a8a3f61040f4419a6c3485c8f4b8df6204a55940
[ "Apache-2.0" ]
null
null
null
redshift-dataapi/iac/app.py
InfrastructureHQ/AWS-CDK-Accelerators
a8a3f61040f4419a6c3485c8f4b8df6204a55940
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2021, SteelHead Industry Cloud, Inc. <info@steelheadhq.com>. # All Rights Reserved. * # # # Import Core Modules # For consistency with other languages, `cdk` is the preferred import name for the CDK's core module. from aws_cdk import core as cdk from aws_cdk.core import App, Stack...
24.757396
101
0.658461
459
4,184
5.938998
0.172113
0.074835
0.044021
0.064563
0.423331
0.399853
0.399853
0.399853
0.399853
0.399853
0
0.001207
0.207935
4,184
168
102
24.904762
0.821364
0.25717
0
0
0
0
0.062346
0.038556
0
0
0
0
0
1
0
false
0
0.315789
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
2ee996c7e56c15fda4c16fc6ca5f0fcf36384ef4
284
py
Python
default_settings.py
RobMilinski/Xero-Starter-Branched-Test
c82382e674b34c2336ee164f5a079d6becd1ed46
[ "MIT" ]
null
null
null
default_settings.py
RobMilinski/Xero-Starter-Branched-Test
c82382e674b34c2336ee164f5a079d6becd1ed46
[ "MIT" ]
null
null
null
default_settings.py
RobMilinski/Xero-Starter-Branched-Test
c82382e674b34c2336ee164f5a079d6becd1ed46
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os from os.path import dirname, join SECRET_KEY = os.urandom(16) # configure file based session SESSION_TYPE = "filesystem" SESSION_FILE_DIR = join(dirname(__file__), "cache") # configure flask app for local development ENV = "development"
23.666667
52
0.714789
38
284
5.131579
0.710526
0
0
0
0
0
0
0
0
0
0
0.012821
0.176056
284
11
53
25.818182
0.820513
0.323944
0
0
0
0
0.146893
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
2eea53e1e9eb945c94d4c33420b934da2fc613c6
5,610
py
Python
v0.2/crawl_tool.py
sivanWu0222/GetLinksFromSoBooks
9f429b5f8b359e4faf25381a7b59f5effd21b5ca
[ "Apache-2.0" ]
8
2019-02-09T05:00:50.000Z
2020-11-02T11:30:03.000Z
v0.2/crawl_tool.py
sivanWu0222/GetLinksFromSoBooks
9f429b5f8b359e4faf25381a7b59f5effd21b5ca
[ "Apache-2.0" ]
null
null
null
v0.2/crawl_tool.py
sivanWu0222/GetLinksFromSoBooks
9f429b5f8b359e4faf25381a7b59f5effd21b5ca
[ "Apache-2.0" ]
null
null
null
import requests from bs4 import BeautifulSoup import re from selenium import webdriver import model URL = "https://sobooks.cc" VERIFY_KEY = '2019777' def convert_to_beautifulsoup(data): """ 用于将传过来的data数据包装成BeautifulSoup对象 :param data: 对应网页的html内容数据 :return: 对应data的BeautifulSoup对象 """ bs = Bea...
26.842105
106
0.636364
662
5,610
5.114804
0.253776
0.024808
0.021264
0.038393
0.282339
0.203485
0.151506
0.103071
0.087123
0.055523
0
0.004721
0.24492
5,610
209
107
26.842105
0.794618
0.229768
0
0.152381
0
0.009524
0.077039
0.043915
0
0
0
0.004785
0
1
0.114286
false
0.057143
0.047619
0
0.285714
0.009524
0
0
0
null
0
0
0
0
0
0
0
0
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
2eebfa288fa7ac7e2d9bbee1fae33a9fe39c1ae3
620
py
Python
txter/migrations/0001_initial.py
KanataIZUMIKAWA/TXTer
6cbf67a229db30452e412883cd55584a204199a7
[ "MIT" ]
null
null
null
txter/migrations/0001_initial.py
KanataIZUMIKAWA/TXTer
6cbf67a229db30452e412883cd55584a204199a7
[ "MIT" ]
null
null
null
txter/migrations/0001_initial.py
KanataIZUMIKAWA/TXTer
6cbf67a229db30452e412883cd55584a204199a7
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-01-05 03:33 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Posts', fields=[ ('id', models.AutoField(au...
25.833333
114
0.564516
62
620
5.580645
0.758065
0
0
0
0
0
0
0
0
0
0
0.03908
0.298387
620
23
115
26.956522
0.756322
0.072581
0
0
1
0
0.04712
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.3125
0
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
2eee76235b6e429c851cf2af43ca0728c03365df
1,241
py
Python
arquivo.py
raphaelss/programagestalt
dabe073bda7d34a16368cdc881e9d1a7150263cc
[ "MIT" ]
null
null
null
arquivo.py
raphaelss/programagestalt
dabe073bda7d34a16368cdc881e9d1a7150263cc
[ "MIT" ]
null
null
null
arquivo.py
raphaelss/programagestalt
dabe073bda7d34a16368cdc881e9d1a7150263cc
[ "MIT" ]
null
null
null
import csv import re class Arquivo: def __init__(self, path): rp = re.compile("^ *(\d+) +(\d+)\n?$") self.alturas = [] self.duracoes = [] linecount = 1 with open(path) as f: for line in f: match = rp.match(line) if match: ...
26.404255
80
0.507655
141
1,241
4.382979
0.35461
0.106796
0.090615
0.048544
0.291262
0.291262
0.23301
0.23301
0.23301
0.23301
0
0.010127
0.363417
1,241
46
81
26.978261
0.772152
0
0
0.461538
0
0
0.031426
0
0
0
0
0
0
1
0.179487
false
0
0.051282
0.102564
0.435897
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
2ef2497a0bb99f58197f6f6252d8254c97895330
2,502
py
Python
train/tf/nlp/trainer/tf.py
charliemorning/mlws
8e9bad59ca9f5e774cc1ae7fe454ff3b8a8e1784
[ "MIT" ]
null
null
null
train/tf/nlp/trainer/tf.py
charliemorning/mlws
8e9bad59ca9f5e774cc1ae7fe454ff3b8a8e1784
[ "MIT" ]
null
null
null
train/tf/nlp/trainer/tf.py
charliemorning/mlws
8e9bad59ca9f5e774cc1ae7fe454ff3b8a8e1784
[ "MIT" ]
null
null
null
from models.torch.trainer import SupervisedNNModelTrainConfig, Trainer class KerasTrainer(Trainer): def __init__( self, train_config: SupervisedNNModelTrainConfig ): super(KerasTrainer, self).__init__(train_config) def fit(self, train_data, eval_data=None, callbacks=None,...
37.909091
113
0.643086
298
2,502
5.003356
0.197987
0.061033
0.060362
0.037559
0.361502
0.312542
0.312542
0.258216
0.132797
0.132797
0
0.000552
0.276179
2,502
65
114
38.492308
0.82275
0.010392
0
0.208333
0
0
0
0
0
0
0
0
0
1
0.25
false
0.041667
0.020833
0.020833
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
1
0
0
0
0
0
0
0
1
2efb047b94d6832acae0ceb75434aca43e199244
515
py
Python
good_spot/places/migrations/0028_fieldtype_is_shown_in_about_place.py
jasmine92122/NightClubBackend
7f59129b78baaba0e0c25de2b493033b858f1b00
[ "MIT" ]
null
null
null
good_spot/places/migrations/0028_fieldtype_is_shown_in_about_place.py
jasmine92122/NightClubBackend
7f59129b78baaba0e0c25de2b493033b858f1b00
[ "MIT" ]
5
2020-02-12T03:13:11.000Z
2022-01-13T01:41:14.000Z
good_spot/places/migrations/0028_fieldtype_is_shown_in_about_place.py
jasmine92122/NightClubBackend
7f59129b78baaba0e0c25de2b493033b858f1b00
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-29 18:33 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('places', '0027_auto_20171229_1606'), ] operations = [ migrations.AddField( ...
24.52381
97
0.646602
60
515
5.316667
0.8
0.043887
0.075235
0
0
0
0
0
0
0
0
0.084615
0.242718
515
20
98
25.75
0.733333
0.132039
0
0
1
0
0.198198
0.103604
0
0
0
0
0
1
0
false
0
0.153846
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2effa2910ab4cf2ceba74e75f327552e40cb5a00
10,926
py
Python
learning/pytorch/models/rnn_models.py
thomasehuang/Ithemal-Extension
821a875962a261de003c6da6e2d3e9b49918d68a
[ "MIT" ]
105
2019-08-05T21:27:33.000Z
2022-02-16T03:35:10.000Z
learning/pytorch/models/rnn_models.py
thomasehuang/Ithemal-Extension
821a875962a261de003c6da6e2d3e9b49918d68a
[ "MIT" ]
16
2019-08-06T21:12:11.000Z
2021-03-22T14:09:21.000Z
learning/pytorch/models/rnn_models.py
thomasehuang/Ithemal-Extension
821a875962a261de003c6da6e2d3e9b49918d68a
[ "MIT" ]
25
2019-08-11T22:41:57.000Z
2021-11-10T08:02:50.000Z
#this file contains models that I have tried out for different tasks, which are reusable #plus it has the training framework for those models given data - each model has its own data requirements import numpy as np import common_libs.utilities as ut import random import torch.nn as nn import torch.autograd as autograd...
34.358491
106
0.645158
1,372
10,926
4.943149
0.159621
0.066352
0.051607
0.023887
0.552197
0.483486
0.448393
0.418313
0.409614
0.383958
0
0.007126
0.267893
10,926
317
107
34.466877
0.84073
0.106718
0
0.505952
0
0
0.030209
0
0
0
0
0
0
0
null
null
0
0.047619
null
null
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2c00b39003b7029e872ee5035a075a953fa079f3
9,669
py
Python
ddsc/config.py
Duke-GCB/DukeDSClient
7f119a5ee2e674e8deaff1f080caed1953c5cc61
[ "MIT" ]
4
2020-06-18T12:30:13.000Z
2020-10-12T21:25:54.000Z
ddsc/config.py
Duke-GCB/DukeDSClient
7f119a5ee2e674e8deaff1f080caed1953c5cc61
[ "MIT" ]
239
2016-02-18T14:44:08.000Z
2022-03-11T14:38:56.000Z
ddsc/config.py
Duke-GCB/DukeDSClient
7f119a5ee2e674e8deaff1f080caed1953c5cc61
[ "MIT" ]
10
2016-02-22T15:01:28.000Z
2022-02-21T22:46:26.000Z
""" Global configuration for the utility based on config files and environment variables.""" import os import re import math import yaml import multiprocessing from ddsc.core.util import verify_file_private from ddsc.exceptions import DDSUserException try: from urllib.parse import urlparse except ImportError: ...
39.145749
114
0.664288
1,247
9,669
4.945469
0.2085
0.029188
0.03162
0.046214
0.243392
0.184855
0.111886
0.092427
0.067456
0.067456
0
0.007549
0.260213
9,669
246
115
39.304878
0.854606
0.361361
0
0.145038
0
0
0.076479
0.021825
0
0
0
0
0
1
0.175573
false
0
0.076336
0.015267
0.549618
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
2c0c6d4c1880f94e8964a089e665e4a8c770f8e9
616
py
Python
app/app/models/task.py
gooocho/fastapi_todo
b88177e651f1c6984a636262a4d686935b67ed6f
[ "MIT" ]
null
null
null
app/app/models/task.py
gooocho/fastapi_todo
b88177e651f1c6984a636262a4d686935b67ed6f
[ "MIT" ]
null
null
null
app/app/models/task.py
gooocho/fastapi_todo
b88177e651f1c6984a636262a4d686935b67ed6f
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String from sqlalchemy.orm import relationship from app.db.settings import Base from app.models.assignment import ModelAssignment class ModelTask(Base): __tablename__ = "tasks" id = Column(Integer, primary_key=True, index=True) title = Column(String, index=True) ...
26.782609
54
0.709416
69
616
6.173913
0.507246
0.105634
0.079812
0.098592
0
0
0
0
0
0
0
0
0.196429
616
22
55
28
0.860606
0
0
0
0
0
0.050325
0
0
0
0
0
0
1
0
false
0
0.235294
0
0.705882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
2c1092a7d5dfc15f1ac47f20c842e794dad8aa14
13,051
py
Python
src/ion.py
lksrmp/paw_structure
560a0a601a90114fd80f98096aa1f0e012121c69
[ "Apache-2.0" ]
null
null
null
src/ion.py
lksrmp/paw_structure
560a0a601a90114fd80f98096aa1f0e012121c69
[ "Apache-2.0" ]
2
2022-03-22T15:27:17.000Z
2022-03-30T14:16:26.000Z
src/ion.py
lksrmp/paw_structure
560a0a601a90114fd80f98096aa1f0e012121c69
[ "Apache-2.0" ]
null
null
null
""" paw_structure.ion ----------------- Ion complex detection using geometric :ref:`algorithm<Control_ION_algorithm>`. Main routine is :func:`.ion_find_parallel`. Dependencies: :py:mod:`functools` :py:mod:`miniutils` :py:mod:`numpy` :py:mod:`pandas` :mod:`.neighbor` :mod:`.utility` :class:...
46.610714
120
0.539192
1,598
13,051
4.357947
0.154568
0.039202
0.036186
0.040207
0.540063
0.517088
0.454049
0.428489
0.374067
0.374067
0
0.023986
0.223738
13,051
279
121
46.777778
0.663409
0.541185
0
0.098765
0
0
0.113885
0.024961
0
0
0
0.010753
0
1
0.049383
false
0
0.08642
0
0.185185
0.024691
0
0
0
null
0
0
0
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
2c14a991d87c2cf60960166a41fc56bf0090a775
11,475
py
Python
python/3D-rrt/pvtrace/Visualise.py
rapattack88/mcclanahoochie
6df72553ba954b52e949a6847a213b22f9e90157
[ "Apache-2.0" ]
1
2020-12-27T21:37:35.000Z
2020-12-27T21:37:35.000Z
python/3D-rrt/pvtrace/Visualise.py
rapattack88/mcclanahoochie
6df72553ba954b52e949a6847a213b22f9e90157
[ "Apache-2.0" ]
null
null
null
python/3D-rrt/pvtrace/Visualise.py
rapattack88/mcclanahoochie
6df72553ba954b52e949a6847a213b22f9e90157
[ "Apache-2.0" ]
null
null
null
# pvtrace is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # pvtrace is distributed in the hope that it will be useful, # but WITHOUT...
38.506711
218
0.573943
1,474
11,475
4.436906
0.187924
0.008869
0.005046
0.038226
0.379511
0.350153
0.321254
0.245719
0.181804
0.168043
0
0.037152
0.298649
11,475
297
219
38.636364
0.775472
0.103355
0
0.28877
0
0
0.037932
0
0
0
0
0
0
0
null
null
0
0.042781
null
null
0.074866
0
0
0
null
0
0
0
0
0
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
2c19cbf8d9bb1b9d43bac56824e10f5d3f24bc92
3,092
py
Python
hw1/deco.py
Tymeade/otus-python
b5ba2ab4f9c91abc97e6417a5600e4de1bcdb95c
[ "MIT" ]
null
null
null
hw1/deco.py
Tymeade/otus-python
b5ba2ab4f9c91abc97e6417a5600e4de1bcdb95c
[ "MIT" ]
null
null
null
hw1/deco.py
Tymeade/otus-python
b5ba2ab4f9c91abc97e6417a5600e4de1bcdb95c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from functools import update_wrapper, wraps def disable(func): """ Disable a decorator by re-assigning the decorator's name to this function. For example, to turn off memoization: >>> memo = disable """ return func def decorator(decorator_func...
20.342105
110
0.554334
411
3,092
3.961071
0.257908
0.014742
0.04914
0.035012
0.175061
0.14742
0.065111
0.04914
0
0
0
0.022664
0.300776
3,092
151
111
20.476821
0.730342
0.013583
0
0.276316
0
0
0.038023
0
0
0
0
0
0
0
null
null
0
0.013158
null
null
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2c1a887bbd2d5ae6437d92ebd5ad09e7ede709e9
1,048
py
Python
AprendeAyudando/forum/migrations/0001_initial.py
memoriasIT/AprendeAyudando
0a32f59d3606075abb99a74ce1983a6171aa34cd
[ "CC0-1.0" ]
1
2021-09-09T09:54:04.000Z
2021-09-09T09:54:04.000Z
AprendeAyudando/forum/migrations/0001_initial.py
memoriasIT/AprendeAyudando
0a32f59d3606075abb99a74ce1983a6171aa34cd
[ "CC0-1.0" ]
null
null
null
AprendeAyudando/forum/migrations/0001_initial.py
memoriasIT/AprendeAyudando
0a32f59d3606075abb99a74ce1983a6171aa34cd
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-28 23:37 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
33.806452
179
0.622137
113
1,048
5.584071
0.60177
0.038035
0.07607
0.099842
0.0729
0
0
0
0
0
0
0.023047
0.254771
1,048
30
180
34.933333
0.784891
0.042939
0
0
1
0
0.100899
0
0
0
0
0
0
1
0
false
0
0.130435
0
0.304348
0
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
2c1c0560ca30de9f1d31898b330aaa3130eb4feb
804
py
Python
clay/markdown_ext/jinja.py
TuxCoder/Clay
04f15b4d742b14d09df9049dd91cfa4386cba66e
[ "MIT" ]
null
null
null
clay/markdown_ext/jinja.py
TuxCoder/Clay
04f15b4d742b14d09df9049dd91cfa4386cba66e
[ "MIT" ]
null
null
null
clay/markdown_ext/jinja.py
TuxCoder/Clay
04f15b4d742b14d09df9049dd91cfa4386cba66e
[ "MIT" ]
null
null
null
# coding=utf-8 import os import jinja2 import jinja2.ext from .render import md_to_jinja MARKDOWN_EXTENSION = '.md' class MarkdownExtension(jinja2.ext.Extension): def preprocess(self, source, name, filename=None): if name is None or os.path.splitext(name)[1] != MARKDOWN_EXTENSION: return ...
27.724138
84
0.689055
105
804
5.095238
0.390476
0.072897
0.033645
0
0
0
0
0
0
0
0
0.007974
0.220149
804
28
85
28.714286
0.845295
0.014925
0
0
0
0
0.032911
0.029114
0
0
0
0
0
1
0.105263
false
0
0.210526
0
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2c22a320a2928428c08eb5053a706398b340f23f
2,235
py
Python
src/predict.py
ashishnegi2000/FinalYr_1
14fddaa7463141a19bb6c2a25003115847f63395
[ "MIT" ]
null
null
null
src/predict.py
ashishnegi2000/FinalYr_1
14fddaa7463141a19bb6c2a25003115847f63395
[ "MIT" ]
null
null
null
src/predict.py
ashishnegi2000/FinalYr_1
14fddaa7463141a19bb6c2a25003115847f63395
[ "MIT" ]
null
null
null
#Predictions performed by this module #dependencies import base64 import numpy as np import io from PIL import Image import keras from keras import backend as K from keras.models import Sequential from keras.models import load_model from keras.preprocessing.image import ImageDataGenerator, img_to_array from model imp...
27.592593
146
0.694407
295
2,235
5.155932
0.444068
0.039448
0.029586
0.027613
0.039448
0
0
0
0
0
0
0.016013
0.189709
2,235
81
147
27.592593
0.823854
0.175392
0
0
0
0
0.110117
0.057123
0
0
0
0
0
1
0.069767
false
0
0.348837
0.023256
0.488372
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
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2c22fe7b5968c4acadcc023580c5ccbb977f7642
11,875
py
Python
fair-data-model/scripts/rdfizer/rdfizer.py
longmanplus/beat-covid
fc5c88b191d7aa1e70cef8a055c25803b6d013a6
[ "MIT" ]
1
2021-11-09T23:26:49.000Z
2021-11-09T23:26:49.000Z
fair-data-model/scripts/rdfizer/rdfizer.py
longmanplus/beat-covid
fc5c88b191d7aa1e70cef8a055c25803b6d013a6
[ "MIT" ]
1
2021-07-08T01:25:55.000Z
2021-07-08T01:25:55.000Z
fair-data-model/scripts/rdfizer/rdfizer.py
longmanplus/beat-covid
fc5c88b191d7aa1e70cef8a055c25803b6d013a6
[ "MIT" ]
4
2020-11-16T06:31:58.000Z
2021-07-14T12:50:23.000Z
# @name: rdfizer.py # @description: Script to generate RDF data # @version: 1.0 # @date: 28-04-2021 # @author: Núria Queralt Rosinach # @email: n.queralt_rosinach@lumc.nl """Script to generate RDF data for Beat-COVID cytokine clinical measurements""" import sys, os from rdflib import Namespace, Graph, BNode, Literal ...
40.52901
120
0.655747
1,506
11,875
4.934927
0.169987
0.060549
0.025834
0.028122
0.39303
0.250538
0.142088
0.103606
0.067008
0.057051
0
0.046079
0.208674
11,875
292
121
40.667808
0.744812
0.176084
0
0.013245
1
0.006623
0.139472
0.061148
0
0
0
0
0
1
0.006623
false
0
0.019868
0
0.033113
0.006623
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
2c257b998065928806b35178c7ceda8c16c41579
508
py
Python
Stack/1249. Minimum Remove to Make Valid Parentheses.py
Into-Y0u/Github-Baby
5e4e6b02f49c2c99533289be9d49911006cad919
[ "MIT" ]
2
2022-01-25T04:30:26.000Z
2022-01-25T10:36:15.000Z
Stack/1249. Minimum Remove to Make Valid Parentheses.py
Into-Y0u/Leetcode-Baby
681ad4df01ee908f76d888aa4ccc10f04c03c56f
[ "MIT" ]
null
null
null
Stack/1249. Minimum Remove to Make Valid Parentheses.py
Into-Y0u/Leetcode-Baby
681ad4df01ee908f76d888aa4ccc10f04c03c56f
[ "MIT" ]
null
null
null
class Solution: def minRemoveToMakeValid(self, s: str) -> str: if not s : return "" s = list(s) st = [] for i,n in enumerate(s): if n == "(": st.append(i) elif n == ")" : if st : st.pop()...
21.166667
50
0.275591
44
508
3.181818
0.522727
0.042857
0
0
0
0
0
0
0
0
0
0
0.606299
508
23
51
22.086957
0.7
0
0
0
0
0
0.003937
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
2574c91dd0017e03291fbe071a3fc02152437d2a
193
py
Python
base_model/admin.py
kriwil/django-base-model
e6e989fce282200df3f6d114af27cfa4a618203f
[ "0BSD" ]
null
null
null
base_model/admin.py
kriwil/django-base-model
e6e989fce282200df3f6d114af27cfa4a618203f
[ "0BSD" ]
null
null
null
base_model/admin.py
kriwil/django-base-model
e6e989fce282200df3f6d114af27cfa4a618203f
[ "0BSD" ]
null
null
null
from django.contrib import admin class BaseModelAdmin(admin.ModelAdmin): exclude = ( 'created_time', 'modified_time', 'is_removed', 'removed_time', )
16.083333
39
0.601036
18
193
6.222222
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.295337
193
11
40
17.545455
0.823529
0
0
0
0
0
0.243523
0
0
0
0
0
0
1
0
false
0
0.125
0
0.375
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
2575c1d96c57160a201fba4b65403230c9c3cfc4
12,137
py
Python
quantization/Quantizelayer.py
fengxiaoshuai/CNN_model_optimizer
4c48420989ffe31a4075d36a5133fee0d999466a
[ "Apache-2.0" ]
null
null
null
quantization/Quantizelayer.py
fengxiaoshuai/CNN_model_optimizer
4c48420989ffe31a4075d36a5133fee0d999466a
[ "Apache-2.0" ]
1
2021-01-05T10:41:24.000Z
2021-01-05T10:41:24.000Z
quantization/Quantizelayer.py
fengxiaoshuai/CNN_model_optimizer
4c48420989ffe31a4075d36a5133fee0d999466a
[ "Apache-2.0" ]
1
2020-08-07T02:56:20.000Z
2020-08-07T02:56:20.000Z
from __future__ import division from __future__ import print_function import numpy as np import copy from scipy import stats class QuantizeLayer: def __init__(self, name="None", num_bin=2001): self.name = name self.min = 0.0 self.max = 0.0 self.edge = 0.0 self.num_bins = nu...
37.928125
110
0.596853
1,559
12,137
4.399615
0.10263
0.052486
0.031491
0.020994
0.716431
0.687855
0.664383
0.651115
0.633037
0.633037
0
0.017838
0.302546
12,137
320
111
37.928125
0.792439
0.094092
0
0.625
0
0
0.023672
0.006056
0
0
0
0
0.030172
1
0.038793
false
0
0.025862
0
0.094828
0.081897
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
2579c36b1d400b2989548b5ef20920bc5aa3d5ac
17,767
py
Python
ASV/ASV/nodes/averager.py
Southampton-Maritime-Robotics/Autonomous-Ship-and-Wavebuoys
bea27ac87b0e2991096da7f1b1c2197f1d620a51
[ "MIT" ]
4
2017-11-09T12:05:14.000Z
2021-06-25T05:59:15.000Z
ASV/ASV/nodes/averager.py
Southampton-Maritime-Robotics/Autonomous-Ship-and-Wavebuoys
bea27ac87b0e2991096da7f1b1c2197f1d620a51
[ "MIT" ]
null
null
null
ASV/ASV/nodes/averager.py
Southampton-Maritime-Robotics/Autonomous-Ship-and-Wavebuoys
bea27ac87b0e2991096da7f1b1c2197f1d620a51
[ "MIT" ]
1
2021-05-08T20:09:50.000Z
2021-05-08T20:09:50.000Z
#!/usr/bin/python ############################################################################## #averager.py # #This code has been created by Enrico Anderlini (ea3g09@soton.ac.uk) for #averaging the main readings required during the QinetiQ tests. These values #averaged over one minute will be published to an externa...
39.394678
139
0.585017
1,867
17,767
5.304767
0.124264
0.058158
0.059976
0.029079
0.617326
0.586228
0.583704
0.583704
0.583704
0.570376
0
0.01605
0.298644
17,767
450
140
39.482222
0.77875
0.113975
0
0.525773
0
0
0.020867
0
0
0
0
0
0
0
null
null
0
0.037801
null
null
0.051546
0
0
0
null
0
0
0
0
0
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
257fa21be7c52550321debef98c5629ed602cf83
3,412
py
Python
model.py
shivam13verma/han-chainer
ca1e34b1dcd8ecfdf55690de62b89c59c3699f82
[ "MIT" ]
null
null
null
model.py
shivam13verma/han-chainer
ca1e34b1dcd8ecfdf55690de62b89c59c3699f82
[ "MIT" ]
null
null
null
model.py
shivam13verma/han-chainer
ca1e34b1dcd8ecfdf55690de62b89c59c3699f82
[ "MIT" ]
null
null
null
from keras.models import Sequential from keras.layers import Dense, Activation model = Sequential() model.add(Embedding(vocabulary_size, embedding_dim, input_shape=(90582, 517))) model.add(GRU(512, return_sequences=True)) model.add(Dropout(0.2)) model.add(GRU(512, return_sequences=True)) model.add(Dropout(0.2)) mode...
37.086957
105
0.681125
520
3,412
4.303846
0.280769
0.039321
0.042449
0.032172
0.179625
0.165326
0.125112
0.072386
0.048257
0.048257
0
0.026144
0.148007
3,412
91
106
37.494505
0.743722
0.084115
0
0.09375
0
0
0.066174
0.00771
0
0
0
0
0.015625
0
null
null
0
0.03125
null
null
0.03125
0
0
0
null
0
0
0
0
0
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
258221159670850092053b3b46e03afa8f767d41
7,449
py
Python
simplivity/resources/external_stores.py
HewlettPackard/simplivity-python-sdk
03d8e92a02fe66e878ed22b37944e5a6ce991ef1
[ "Apache-2.0" ]
7
2020-02-28T09:03:09.000Z
2022-03-28T15:52:23.000Z
simplivity/resources/external_stores.py
HewlettPackard/simplivity-python-sdk
03d8e92a02fe66e878ed22b37944e5a6ce991ef1
[ "Apache-2.0" ]
47
2020-01-16T20:32:19.000Z
2020-08-27T04:43:00.000Z
simplivity/resources/external_stores.py
HewlettPackard/simplivity-python-sdk
03d8e92a02fe66e878ed22b37944e5a6ce991ef1
[ "Apache-2.0" ]
16
2020-01-10T14:15:17.000Z
2021-04-06T13:31:01.000Z
### # (C) Copyright [2019-2020] Hewlett Packard Enterprise Development LP # # 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 ...
44.873494
130
0.638475
853
7,449
5.445487
0.259086
0.069968
0.048224
0.042626
0.424973
0.389666
0.369645
0.325296
0.304629
0.270398
0
0.008536
0.292254
7,449
165
131
45.145455
0.872534
0.473218
0
0.214286
0
0
0.113097
0.038676
0
0
0
0
0
1
0.125
false
0.071429
0.035714
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
25858779947cdd6eff807639ff98f34b7425aeeb
1,285
py
Python
setup.py
bentettmar/nertivia4py
a9b758000632e40306bc610a6966cb8d0a643c20
[ "MIT" ]
3
2022-01-24T16:31:20.000Z
2022-02-03T22:44:51.000Z
setup.py
bentettmar/nertivia4py
a9b758000632e40306bc610a6966cb8d0a643c20
[ "MIT" ]
9
2022-03-05T19:01:48.000Z
2022-03-06T11:38:53.000Z
setup.py
bentettmar/nertivia4py
a9b758000632e40306bc610a6966cb8d0a643c20
[ "MIT" ]
null
null
null
from distutils.core import setup readme = """ # Nertivia4PY A Python wrapper for the Nertivia API. Support Nertivia server : https://nertivia.net/i/nertivia4py > ### Install > ``` > pip install nertivia4py > ``` > ### Example > ```python > import nertivia4py > > token = "TOKEN_HERE" > prefix = "...
25.196078
98
0.633463
141
1,285
5.70922
0.574468
0.040994
0.034783
0.042236
0.077019
0.077019
0.077019
0
0
0
0
0.014648
0.203113
1,285
50
99
25.7
0.771484
0
0
0.065217
0
0
0.709312
0.092308
0
0
0
0
0
1
0
false
0
0.043478
0
0.043478
0.021739
0
0
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
258626b69bb2d19543b8603f01ee4f2de96f5e1d
7,867
py
Python
scheduler/args.py
jian-yu/autotx
eed17a8881b6c3ee80d93d044abd2c67b150ccf1
[ "Apache-2.0" ]
1
2019-10-14T04:58:13.000Z
2019-10-14T04:58:13.000Z
scheduler/args.py
jian-yu/autotx
eed17a8881b6c3ee80d93d044abd2c67b150ccf1
[ "Apache-2.0" ]
1
2021-06-02T00:30:31.000Z
2021-06-02T00:30:31.000Z
scheduler/args.py
jian-yu/autotx
eed17a8881b6c3ee80d93d044abd2c67b150ccf1
[ "Apache-2.0" ]
1
2020-08-11T02:48:38.000Z
2020-08-11T02:48:38.000Z
class PoolArgs: def __init__(self, bankerBufCap, bankerMaxBufNumber, signerBufCap, signerBufMaxNumber, broadcasterBufCap, broadcasterMaxNumber, stakingBufCap, stakingMaxNumber, distributionBufCap, distributionMaxNumber, errorBufCap, errorMaxNumber): self.BankerBufCap = bankerBufCap self.BankerMaxBuf...
33.054622
237
0.643702
801
7,867
6.207241
0.109863
0.04103
0.033186
0.057924
0.522124
0.355591
0.355591
0.355591
0.342518
0.342518
0
0.003687
0.275963
7,867
237
238
33.194093
0.869206
0
0
0.484375
0
0
0.102072
0
0
0
0
0
0
1
0.166667
false
0
0
0.052083
0.536458
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
2586e81e4e9946ad1a836db00f8a88e5409f7e9b
871
py
Python
models/user.py
NeonWizard/php-mood-tracker
51f7945412d3077b81af29a229a9dbe66d2abdc2
[ "MIT" ]
null
null
null
models/user.py
NeonWizard/php-mood-tracker
51f7945412d3077b81af29a229a9dbe66d2abdc2
[ "MIT" ]
null
null
null
models/user.py
NeonWizard/php-mood-tracker
51f7945412d3077b81af29a229a9dbe66d2abdc2
[ "MIT" ]
null
null
null
class UserModel(Table): def __init__(self): self.tableName = "User" self.requiredFields = ['firstName', 'lastName', 'username', 'password'] self.optionalFields = ['email'] def check(self, data): for req in self.requiredFields: if req not in data: return False for opt in self.optionalFields: if o...
17.77551
102
0.639495
116
871
4.767241
0.387931
0.065099
0.03255
0.057866
0.101266
0.101266
0.101266
0.101266
0
0
0
0.005822
0.211251
871
48
103
18.145833
0.799127
0
0
0.388889
0
0
0.110218
0
0
0
0
0
0
1
0.138889
false
0.055556
0.027778
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
1
0
0
0
0
0
1
259148bec81d808f337cab94d5e80017025d5d2d
455
py
Python
src/gui/migrations/0014_feedback_childprotection.py
digitalfabrik/ish-goalkeeper
a500c7a628ef66897941dadc0addb0be01658e02
[ "MIT" ]
12
2021-10-30T12:57:26.000Z
2021-10-31T11:33:20.000Z
src/gui/migrations/0014_feedback_childprotection.py
digitalfabrik/ish-goalkeeper
a500c7a628ef66897941dadc0addb0be01658e02
[ "MIT" ]
53
2019-07-31T12:44:44.000Z
2021-10-21T12:40:29.000Z
src/gui/migrations/0014_feedback_childprotection.py
digitalfabrik/ish-goalkeeper
a500c7a628ef66897941dadc0addb0be01658e02
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2020-03-10 18:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gui', '0013_auto_20200310_1742'), ] operations = [ migrations.AddField( model_name='feedback', name='childprotection...
23.947368
114
0.63956
48
455
5.9375
0.833333
0
0
0
0
0
0
0
0
0
0
0.102639
0.250549
455
18
115
25.277778
0.733138
0.098901
0
0
1
0
0.20098
0.107843
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