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
2303c12f29a6425e84e0cb167fa4aeec452cc24f
631
py
Python
page/migrations/0002_content.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
1
2020-03-19T09:44:16.000Z
2020-03-19T09:44:16.000Z
page/migrations/0002_content.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
43
2020-02-22T09:32:27.000Z
2022-03-22T11:24:51.000Z
page/migrations/0002_content.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
3
2020-03-06T13:27:12.000Z
2022-02-07T09:01:07.000Z
# Generated by Django 2.2.10 on 2020-11-04 21:03 from django.db import migrations, models import versatileimagefield.fields class Migration(migrations.Migration): dependencies = [("page", "0001_initial")] operations = [ migrations.AddField( model_name="page", name="in_menu", field=model...
27.434783
87
0.621236
65
631
5.938462
0.646154
0.129534
0.119171
0.139896
0.181347
0.181347
0
0
0
0
0
0.042918
0.26149
631
22
88
28.681818
0.785408
0.0729
0
0.3125
1
0
0.090909
0
0
0
0
0
0
1
0
false
0
0.125
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
2303e49d1f09a0bf00bd3670ca1c02617f432466
931
py
Python
main.py
iiithf/ias-device
7bb90d241b0cf2d3b10b63b86b700a955ea78126
[ "BSD-3-Clause" ]
null
null
null
main.py
iiithf/ias-device
7bb90d241b0cf2d3b10b63b86b700a955ea78126
[ "BSD-3-Clause" ]
null
null
null
main.py
iiithf/ias-device
7bb90d241b0cf2d3b10b63b86b700a955ea78126
[ "BSD-3-Clause" ]
null
null
null
def parse_addr(addr): i = addr.find(':') host = '' if i<0 else addr[0:i] port = int(addr if i<0 else addr[i+1:]) return (host, port) class RequestHandler(BaseHTTPRequestHandler): def body(self): size = int(self.headers.get('Content-Length')) return self.rfile.read(size) def send(self, code, bod...
25.861111
59
0.662728
138
931
4.398551
0.42029
0.052718
0.01318
0.026359
0.131796
0
0
0
0
0
0
0.010638
0.192266
931
35
60
26.6
0.796543
0
0
0.074074
0
0
0.059203
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.407407
0
0
0
0
null
0
0
0
0
0
0
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
23142604d4391afe196b5e9dd71f3cb5055a5df9
3,209
py
Python
nanome_matryx/menus/CreationsMenu.py
nanome-ai/plugin-matryx
4030afd81348610e16c0787a74fca29aea601f33
[ "MIT" ]
null
null
null
nanome_matryx/menus/CreationsMenu.py
nanome-ai/plugin-matryx
4030afd81348610e16c0787a74fca29aea601f33
[ "MIT" ]
null
null
null
nanome_matryx/menus/CreationsMenu.py
nanome-ai/plugin-matryx
4030afd81348610e16c0787a74fca29aea601f33
[ "MIT" ]
null
null
null
from functools import partial import nanome import utils from nanome.util import Logs class CreationsMenu(): def __init__(self, plugin, fth_menu, on_close): self._plugin = plugin menu = nanome.ui.Menu.io.from_json('menus/json/my_creations.json') menu.register_closed_callback(on_close) ...
40.620253
96
0.682456
415
3,209
4.918072
0.221687
0.064674
0.062714
0.062714
0.33023
0.319451
0.21852
0.118569
0.086232
0
0
0.00429
0.200997
3,209
79
97
40.620253
0.791732
0.008414
0
0.070175
0
0
0.072619
0.016347
0
0
0
0.012658
0
1
0.087719
false
0
0.070175
0
0.175439
0
0
0
0
null
0
0
0
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
231f9d5356e744fb4ddec38b4427d0a0e9510ad2
3,259
py
Python
reader/management/commands/train_data.py
AymaneZizi/dailyreader
b50035d9d11dcb4a5cd1810ebce356e6f7b2ca8d
[ "MIT" ]
null
null
null
reader/management/commands/train_data.py
AymaneZizi/dailyreader
b50035d9d11dcb4a5cd1810ebce356e6f7b2ca8d
[ "MIT" ]
null
null
null
reader/management/commands/train_data.py
AymaneZizi/dailyreader
b50035d9d11dcb4a5cd1810ebce356e6f7b2ca8d
[ "MIT" ]
1
2019-07-10T10:32:09.000Z
2019-07-10T10:32:09.000Z
from reader.models import * from django.core.management.base import BaseCommand, CommandError import os from topia.termextract import extract import naive_bayes_classifier from constants.app_constants import * def get_pcategory(category_name,pcategory_objects): other_category = None category = None for el...
33.947917
104
0.604787
308
3,259
6.201299
0.272727
0.062827
0.056545
0.025131
0.113089
0.081675
0
0
0
0
0
0.00227
0.324026
3,259
95
105
34.305263
0.86473
0.023627
0
0.057971
0
0
0.017621
0.008811
0
0
0
0
0
0
null
null
0
0.086957
null
null
0.028986
0
0
0
null
0
0
0
0
0
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
2328e6767110279b96edf560f4d2c638cf228f0c
367
py
Python
setup.py
alella/browserhist
78f0deb1a47834609a0d19a00e0a0136f0e81c53
[ "MIT" ]
1
2021-02-10T15:18:40.000Z
2021-02-10T15:18:40.000Z
setup.py
alella/lib-xps.browserhist-python
78f0deb1a47834609a0d19a00e0a0136f0e81c53
[ "MIT" ]
null
null
null
setup.py
alella/lib-xps.browserhist-python
78f0deb1a47834609a0d19a00e0a0136f0e81c53
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="browserhist", version="0.4.1", author="Ashoka Lella", packages=find_packages(), install_requires=[ "elasticsearch", "python-dateutil", "click", "coloredlogs" ], entry_points={ 'console_scripts':...
20.388889
64
0.599455
34
367
6.323529
0.794118
0.111628
0
0
0
0
0
0
0
0
0
0.011111
0.264305
367
17
65
21.588235
0.785185
0
0
0
0
0
0.326975
0
0
0
0
0
0
1
0
true
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
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
232d9909b43fab93113715dad16668dc5a50bb8f
2,714
py
Python
src/genie/libs/parser/iosxe/tests/ShowPlatformHardwareQfpActiveFeatureAppqoe/cli/equal/175_golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowPlatformHardwareQfpActiveFeatureAppqoe/cli/equal/175_golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowPlatformHardwareQfpActiveFeatureAppqoe/cli/equal/175_golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
null
null
null
expected_output = { "feature":{ "appqoe":{ "global":{ "ip_non_tcp_pkts":9485, "not_enabled":0, "cft_handle_pkt":0, "sdvt_divert_req_fail":41, "sn_data_pkts_processed":0, "sdvt_global_stats":{ ...
33.506173
65
0.291083
142
2,714
5.183099
0.612676
0.036685
0.057065
0.048913
0.089674
0.089674
0.089674
0
0
0
0
0.175845
0.618644
2,714
80
66
33.925
0.535266
0
0
0.133333
0
0
0.225866
0.07185
0
0
0.002211
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
23344495c4e87d7871493933dde9bceea4007923
6,275
py
Python
spider/douban.py
yhfyhf/wang_fm
250c053256a6337c7b07a56f4b859c648b4d9a16
[ "MIT" ]
30
2015-01-14T16:07:44.000Z
2020-11-20T14:20:05.000Z
spider/douban.py
yhfyhf/wang_fm
250c053256a6337c7b07a56f4b859c648b4d9a16
[ "MIT" ]
2
2015-04-03T01:56:29.000Z
2017-10-03T03:29:44.000Z
spider/douban.py
yhfyhf/wang_fm
250c053256a6337c7b07a56f4b859c648b4d9a16
[ "MIT" ]
17
2015-01-01T07:20:28.000Z
2020-11-20T14:20:22.000Z
#!/usr/bin/env python # encoding: utf-8 ''' Ref: https://github.com/zonyitoo/doubanfm-qt/wiki/%E8%B1%86%E7%93%A3FM-API ''' import json import random import traceback import requests import requests.exceptions from model.channel import get_channel, add_channel, update_channel from model.music import get_music, add_music...
35.055866
102
0.555219
716
6,275
4.641061
0.227654
0.037918
0.048149
0.030093
0.381884
0.331628
0.30635
0.243756
0.243756
0.224496
0
0.007848
0.32988
6,275
178
103
35.252809
0.782402
0.166056
0
0.36
0
0
0.090854
0
0
0
0
0.005618
0.024
0
null
null
0.016
0.064
null
null
0.064
0
0
0
null
0
0
0
0
0
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
2342e7e111f2c6f1c6299c0e0b6ee15fad6fe8c7
1,936
py
Python
screenpy/actions/see.py
perrygoy/screenpy
862c0d7e5ff9f1265e520ab383c04ddbd4d060eb
[ "MIT" ]
39
2019-03-22T15:18:23.000Z
2022-02-23T17:32:03.000Z
screenpy/actions/see.py
perrygoy/screenpy
862c0d7e5ff9f1265e520ab383c04ddbd4d060eb
[ "MIT" ]
63
2019-07-17T06:25:19.000Z
2022-01-13T07:03:53.000Z
screenpy/actions/see.py
bandophahita/screenpy
db0f3ef91a891b9d095016d83fa4b589620808ce
[ "MIT" ]
15
2019-07-09T11:02:56.000Z
2021-12-24T07:43:56.000Z
""" Make an assertion using a Question and a Resolution. """ from typing import Any, Union from hamcrest import assert_that from screenpy import Actor from screenpy.pacing import beat from screenpy.protocols import Answerable from screenpy.resolutions import BaseResolution from screenpy.speech_tools import get_addit...
33.37931
83
0.677686
241
1,936
5.302905
0.381743
0.065728
0.030516
0.037559
0.078247
0.078247
0
0
0
0
0
0.000668
0.227273
1,936
57
84
33.964912
0.85361
0.343492
0
0
0
0
0.102819
0.038972
0
0
0
0
0.074074
1
0.148148
false
0
0.259259
0
0.518519
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
23435a8108a5b734bdf421019b848e527b2e0c2d
3,012
py
Python
src/files_sort_out/files_sort_out.py
AndriiOshtuk/files_sort_out
7bb4516596650cf877b285e3570a2d02ad33d7f5
[ "Apache-2.0" ]
null
null
null
src/files_sort_out/files_sort_out.py
AndriiOshtuk/files_sort_out
7bb4516596650cf877b285e3570a2d02ad33d7f5
[ "Apache-2.0" ]
null
null
null
src/files_sort_out/files_sort_out.py
AndriiOshtuk/files_sort_out
7bb4516596650cf877b285e3570a2d02ad33d7f5
[ "Apache-2.0" ]
null
null
null
import shelve import shutil import time from pathlib import Path import click db_filename = "files_sort_out.db" @click.group() def cli() -> None: """File Sort a tool to organize images on a path. To get started, run collect: $ files_sort_out collect To show collected image folders: $ fil...
21.669065
90
0.583333
414
3,012
4.094203
0.297101
0.053097
0.049558
0.042478
0.159292
0.081416
0.081416
0.081416
0.044838
0
0
0.005605
0.289177
3,012
139
91
21.669065
0.786081
0.188247
0
0.220779
0
0
0.138091
0.010557
0
0
0
0
0
1
0.103896
false
0.077922
0.064935
0
0.181818
0.038961
0
0
0
null
0
0
0
0
0
0
0
0
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
2346132b9b6362c7f39615b24af4ac81ca8bf54c
2,323
py
Python
web/urls.py
odinje/yactff
d55ece2905ca49114f7ec15bbcd354cacb49b973
[ "MIT" ]
1
2017-12-25T23:17:57.000Z
2017-12-25T23:17:57.000Z
web/urls.py
odinje/yactff
d55ece2905ca49114f7ec15bbcd354cacb49b973
[ "MIT" ]
1
2018-09-24T18:28:46.000Z
2018-09-24T18:28:46.000Z
web/urls.py
odinje/yactff
d55ece2905ca49114f7ec15bbcd354cacb49b973
[ "MIT" ]
null
null
null
from django.urls import re_path, path from django.contrib.auth import views as auth_views from web import views from django.conf import settings from web.forms import LoginForm LoginForm.signup_open = settings.SIGNUP_OPEN urlpatterns = [ path("", views.page, name="index"), path("challenges/", views.challenges...
59.564103
185
0.705123
342
2,323
4.619883
0.222222
0.04557
0.018987
0.022785
0.086076
0.058228
0.058228
0.058228
0.058228
0.058228
0
0.016137
0.092983
2,323
38
186
61.131579
0.733745
0.031855
0
0
0
0.060606
0.395907
0.158363
0
0
0
0
0
1
0
false
0.060606
0.151515
0
0.151515
0
0
0
0
null
0
0
0
0
0
0
0
0
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
23492ab52cb4e98fbb9ee8129c5e5edb83efda78
12,489
py
Python
footmark/ram/ram.py
konstantin-kornienko/footmark
0421bfb30d94f252a56c5d80a8696d37331b60b9
[ "Apache-2.0" ]
18
2017-04-29T10:11:41.000Z
2021-11-18T03:44:22.000Z
footmark/ram/ram.py
KvistA-ELS/footmark
487a864fc756d03b237ae46b23b67cc68ca72527
[ "Apache-2.0" ]
25
2017-06-01T09:35:57.000Z
2021-06-24T08:09:26.000Z
footmark/ram/ram.py
KvistA-ELS/footmark
487a864fc756d03b237ae46b23b67cc68ca72527
[ "Apache-2.0" ]
47
2017-05-05T08:02:59.000Z
2021-07-05T12:44:56.000Z
""" Represents an VPC Security Group """ from footmark.ram.ramobject import TaggedRAMObject class User(TaggedRAMObject): def __init__(self, connection=None): super(User, self).__init__(connection) def __repr__(self): return 'Ram:%s' % self.id def __getattr__(self, name): if name ...
34.983193
205
0.59132
1,478
12,489
4.696888
0.056157
0.053011
0.057044
0.036301
0.748776
0.723999
0.6828
0.566551
0.551714
0.539038
0
0
0.299864
12,489
356
206
35.081461
0.793916
0.015534
0
0.62543
0
0
0.089806
0.008468
0
0
0
0
0
1
0.168385
false
0.017182
0.003436
0.044674
0.357388
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
235353a24bc3f1216337454a23ad20be31e9f4f9
326
py
Python
Project Code/windows_connector.py
nsusas3/SU19CSE299S08G02NSU
e75971a92478307622dba138523f5d6c336a5106
[ "MIT" ]
null
null
null
Project Code/windows_connector.py
nsusas3/SU19CSE299S08G02NSU
e75971a92478307622dba138523f5d6c336a5106
[ "MIT" ]
2
2019-06-29T08:55:05.000Z
2019-06-29T09:02:42.000Z
Project Code/windows_connector.py
nsusas3/SU19CSE299S08G02NSU
e75971a92478307622dba138523f5d6c336a5106
[ "MIT" ]
null
null
null
import socket host = "192.168.0.103" port_windows = 7899 while True: try: socket_windows = socket.socket() socket_windows.connect((host, port_windows)) temp = socket_windows.recv(1024).decode() if temp: print(temp) continue except Exception: con...
19.176471
52
0.59816
37
326
5.135135
0.621622
0.205263
0
0
0
0
0
0
0
0
0
0.08
0.309816
326
16
53
20.375
0.764444
0
0
0.153846
0
0
0.039877
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.076923
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
236f233289547c6c2abbd47f5ec18d73542c7d28
1,283
py
Python
tests/unit/test_typehinting.py
timothygebhard/hsr4hci
0b38c26fac2fee9e564a9ab981fca715d5577e1e
[ "BSD-3-Clause" ]
1
2022-03-24T04:33:06.000Z
2022-03-24T04:33:06.000Z
tests/unit/test_typehinting.py
timothygebhard/hsr4hci
0b38c26fac2fee9e564a9ab981fca715d5577e1e
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_typehinting.py
timothygebhard/hsr4hci
0b38c26fac2fee9e564a9ab981fca715d5577e1e
[ "BSD-3-Clause" ]
null
null
null
""" Tests for typehinting.py """ # ----------------------------------------------------------------------------- # IMPORTS # ----------------------------------------------------------------------------- import pytest from hsr4hci.typehinting import ( BaseLinearModel, BaseLinearModelCV, RegressorModel, ) ...
25.66
79
0.516758
103
1,283
6.262136
0.339806
0.083721
0.069767
0.12093
0.59845
0.510078
0.510078
0.342636
0.342636
0.342636
0
0.003724
0.162899
1,283
49
80
26.183673
0.596834
0.411535
0
0.333333
0
0
0.138329
0
0
0
0
0
0.166667
1
0.166667
true
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
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
2371083c83bd42c0f85bbdc8e2d8d3c1ac266fce
10,948
py
Python
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_json_generic.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_json_generic.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_json_generic.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019 Fortinet, Inc. # # This program 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 Lic...
28
140
0.606047
1,235
10,948
5.252632
0.280162
0.049175
0.022044
0.032372
0.362725
0.312009
0.273162
0.273162
0.24156
0.24156
0
0.012198
0.288637
10,948
390
141
28.071795
0.82075
0.062386
0
0.445122
0
0
0.693238
0.067129
0
0
0
0
0
1
0.015244
false
0.009146
0.021341
0.003049
0.045732
0.003049
0
0
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
2383d18367d91ecbd8935cefbf6ec271f40b2c94
4,859
py
Python
tests/test_config.py
artur-shaik/wallabag-client
6c03a3beebcf27f51076e0eb11bb99f618f8daa3
[ "MIT" ]
16
2020-09-30T23:08:45.000Z
2022-03-30T02:34:17.000Z
tests/test_config.py
artur-shaik/wallabag-client
6c03a3beebcf27f51076e0eb11bb99f618f8daa3
[ "MIT" ]
15
2020-11-05T09:22:38.000Z
2022-03-11T16:56:18.000Z
tests/test_config.py
artur-shaik/wallabag-client
6c03a3beebcf27f51076e0eb11bb99f618f8daa3
[ "MIT" ]
1
2021-04-02T11:00:57.000Z
2021-04-02T11:00:57.000Z
import os import tempfile import pathlib import pytest from wallabag.config import Configs, Options, Sections from xdg.BaseDirectory import xdg_config_home as XDG_CONFIG_HOME class TestConfigs(): configs = None def teardown_method(self, method): os.close(self.fd) os.remove(self.path) ...
32.831081
79
0.590245
538
4,859
5.135688
0.198885
0.087586
0.05067
0.039088
0.447702
0.3384
0.234166
0.154542
0.154542
0.121245
0
0.01202
0.298004
4,859
147
80
33.054422
0.798006
0
0
0.252174
0
0
0.144063
0.011731
0
0
0
0
0.121739
1
0.182609
false
0.078261
0.052174
0.034783
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
88b84edd1b1f9a8746061b89dcbe123a92aecaa2
255
py
Python
src/estructura-flask/apiflaskdemo/project/auth/__init__.py
PythonistaMX/py231
734f5972948f7d23d581ec54ee7af581eca651ce
[ "MIT" ]
3
2020-05-05T23:38:45.000Z
2021-11-05T01:03:38.000Z
apiflaskdemo/project/auth/__init__.py
PythonistaMX/api-testing-demo
80443851e921506e0b259960867a5c1fa6c15402
[ "MIT" ]
null
null
null
apiflaskdemo/project/auth/__init__.py
PythonistaMX/api-testing-demo
80443851e921506e0b259960867a5c1fa6c15402
[ "MIT" ]
4
2020-10-20T01:15:23.000Z
2022-02-08T02:27:35.000Z
from functools import wraps from flask import g, abort def login_required(view): @wraps(view) def wrapped_view(*args, **kwargs): if g.user is None: return abort(403) return view(*args,**kwargs) return wrapped_view
25.5
38
0.647059
35
255
4.628571
0.571429
0.135802
0.17284
0
0
0
0
0
0
0
0
0.015873
0.258824
255
10
39
25.5
0.84127
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
88c37b48df74aebe5ba7f55216344de7852bde6a
3,046
py
Python
InjectionLog/migrations/0001_initial.py
JKesslerPhD/FIPInjectionLogger
f6ad4956552409a75ef75287b764bcd1863781b1
[ "Apache-2.0" ]
1
2020-12-01T19:08:42.000Z
2020-12-01T19:08:42.000Z
InjectionLog/migrations/0001_initial.py
JKesslerPhD/FIPInjectionLogger
f6ad4956552409a75ef75287b764bcd1863781b1
[ "Apache-2.0" ]
49
2020-07-15T16:56:30.000Z
2021-12-27T21:38:10.000Z
InjectionLog/migrations/0001_initial.py
JKesslerPhD/FIPInjectionLogger
f6ad4956552409a75ef75287b764bcd1863781b1
[ "Apache-2.0" ]
1
2021-11-15T20:20:42.000Z
2021-11-15T20:20:42.000Z
# Generated by Django 3.0.6 on 2020-05-25 00:02 import datetime 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)...
45.462687
130
0.605384
308
3,046
5.824675
0.301948
0.035674
0.054627
0.085842
0.540691
0.450948
0.450948
0.450948
0.378484
0.378484
0
0.013753
0.260013
3,046
66
131
46.151515
0.782165
0.014773
0
0.440678
1
0
0.105702
0.008336
0
0
0
0
0
1
0
false
0
0.067797
0
0.135593
0
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
88c604ebf0044d8b08c2660e4f9cb83332b03922
193
py
Python
gettingdata/PrintRegexLinesOfFile.py
arunma/Python_DataScience
2f23de4517a761f373ef3cd3e708e46e84c62719
[ "Apache-2.0" ]
1
2018-01-21T06:43:16.000Z
2018-01-21T06:43:16.000Z
gettingdata/PrintRegexLinesOfFile.py
arunma/Python_DataScience
2f23de4517a761f373ef3cd3e708e46e84c62719
[ "Apache-2.0" ]
null
null
null
gettingdata/PrintRegexLinesOfFile.py
arunma/Python_DataScience
2f23de4517a761f373ef3cd3e708e46e84c62719
[ "Apache-2.0" ]
null
null
null
import sys,re file_name=sys.argv[1] with open (file_name, 'r') as f: for line in f: if re.match("^#", line): print(line) #python PrintRegexLinesOfFile.py RegexMatch.py
21.444444
46
0.632124
30
193
4
0.733333
0.133333
0
0
0
0
0
0
0
0
0
0.006757
0.233161
193
9
46
21.444444
0.804054
0.233161
0
0
0
0
0.02027
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
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
88c6106b03eb1632c5378375407f004b4a784f29
824
py
Python
python/Array/152_maximum_product_subarray.py
Jan-zou/LeetCode
921614780b5dfae1504c803965118fcfb2a8afd4
[ "MIT" ]
null
null
null
python/Array/152_maximum_product_subarray.py
Jan-zou/LeetCode
921614780b5dfae1504c803965118fcfb2a8afd4
[ "MIT" ]
null
null
null
python/Array/152_maximum_product_subarray.py
Jan-zou/LeetCode
921614780b5dfae1504c803965118fcfb2a8afd4
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- ''' Description: Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4], the contiguous subarray [2,3] has the largest product = 6. Tags: Array, Dynamic Programming ...
29.428571
112
0.617718
121
824
4.033058
0.520661
0.081967
0.086066
0.081967
0.077869
0.077869
0.077869
0
0
0
0
0.024233
0.248786
824
27
113
30.518519
0.764136
0.081311
0
0
0
0
0.029056
0
0
0
0
0
0
0
null
null
0
0
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
88c648312391c2b32f327693717a9de39cb9de8a
259
py
Python
desafio15.py
lucasmc64/Curso_de_Python_CeV
aed942828913ff405941a7d86fb65ddcc79c414d
[ "MIT" ]
1
2021-02-19T05:13:32.000Z
2021-02-19T05:13:32.000Z
desafio15.py
lucasmc64/python_cev
aed942828913ff405941a7d86fb65ddcc79c414d
[ "MIT" ]
null
null
null
desafio15.py
lucasmc64/python_cev
aed942828913ff405941a7d86fb65ddcc79c414d
[ "MIT" ]
null
null
null
print('{} DESAFIO 15 {}'.format('='*10, '='*10)) dias = int(input('Por quantos dias o carro foi alugado? ')) km = float(input('Quantos kilômetros foram rodados? ')) pdias = dias * 60 pkm = km * 0.15 print('O total a pagar é de R${:.2f}!'.format(pdias + pkm))
37
59
0.629344
42
259
3.880952
0.714286
0
0
0
0
0
0
0
0
0
0
0.055046
0.158301
259
6
60
43.166667
0.692661
0
0
0
0
0
0.46332
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
88c919b61df303755d30b7c48d124bbbf6018a04
2,347
py
Python
day18/python/jamhocken/solution.py
jamhocken/aoc-2020
b1f9e04177afaf7e7c15fdc7bf7bc76f27a029f6
[ "MIT" ]
16
2020-11-21T16:11:07.000Z
2021-12-06T10:02:25.000Z
day18/python/jamhocken/solution.py
jamhocken/aoc-2020
b1f9e04177afaf7e7c15fdc7bf7bc76f27a029f6
[ "MIT" ]
38
2020-11-26T05:53:35.000Z
2021-11-22T17:01:58.000Z
day18/python/jamhocken/solution.py
jamhocken/aoc-2020
b1f9e04177afaf7e7c15fdc7bf7bc76f27a029f6
[ "MIT" ]
41
2020-11-21T16:11:10.000Z
2021-12-07T13:36:07.000Z
import math def process_input(file_contents): lines_stripped = [line.strip() for line in file_contents] lines_stripped = [line.replace(" ","") for line in lines_stripped] return lines_stripped def find_opening_par(input_string): position = input_string.rfind(")") counter = 1 while counter > ...
32.597222
134
0.647635
322
2,347
4.459627
0.201863
0.222145
0.112813
0.131616
0.545961
0.357242
0.357242
0.308496
0.288301
0.288301
0
0.013326
0.232637
2,347
71
135
33.056338
0.784009
0
0
0.132075
0
0
0.067775
0
0
0
0
0
0
1
0.09434
false
0
0.018868
0
0.207547
0.037736
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
88caa226d9e3ca0c1f7e1715d41041d81adb55ad
271
py
Python
campaign/migrations/0011_merge_0010_alter_donor_id_0010_donor_display_name.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
null
null
null
campaign/migrations/0011_merge_0010_alter_donor_id_0010_donor_display_name.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
21
2019-02-14T02:47:34.000Z
2022-01-23T02:22:54.000Z
campaign/migrations/0011_merge_0010_alter_donor_id_0010_donor_display_name.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-24 16:58 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('campaign', '0010_alter_donor_id'), ('campaign', '0010_donor_display_name'), ] operations = [ ]
18.066667
48
0.645756
33
271
5.121212
0.818182
0.142012
0
0
0
0
0
0
0
0
0
0.110577
0.232472
271
14
49
19.357143
0.701923
0.166052
0
0
1
0
0.258929
0.102679
0
0
0
0
0
1
0
false
0
0.125
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
88cf0c642c5fa5a599002fcf7dd3f264b23f77f3
35,449
py
Python
squiggler/hmm.py
JohnUrban/squiggler
3ae5a1d0568d99bf914ce02a576a41f2e121686a
[ "MIT" ]
1
2017-04-03T19:49:47.000Z
2017-04-03T19:49:47.000Z
squiggler/hmm.py
JohnUrban/squiggler
3ae5a1d0568d99bf914ce02a576a41f2e121686a
[ "MIT" ]
null
null
null
squiggler/hmm.py
JohnUrban/squiggler
3ae5a1d0568d99bf914ce02a576a41f2e121686a
[ "MIT" ]
null
null
null
import numpy as np ##from sklearn import hmm from scipy.stats import norm import nwalign as nw from collections import defaultdict import itertools import time from model_tools import get_stored_model, read_model_f5, read_model_tsv onemers = [''.join(e) for e in itertools.product("ACGT")] dimers = [''.join(e) for e in ...
39.652125
170
0.595165
4,980
35,449
4.121687
0.114659
0.035077
0.022411
0.016613
0.658774
0.610007
0.572201
0.549839
0.522459
0.500926
0
0.042414
0.256425
35,449
893
171
39.696529
0.736295
0.346836
0
0.396484
0
0
0.05003
0
0
0
0
0
0
0
null
null
0.013672
0.013672
null
null
0.060547
0
0
0
null
0
0
0
0
0
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
88cf3ec1dfb02421eb381363bad6abb6def55424
14,222
py
Python
apps/postgres.py
abiolarasheed/fabobjects
f11f4670cc5744f08d90ec3d8212e184921e45f2
[ "MIT" ]
null
null
null
apps/postgres.py
abiolarasheed/fabobjects
f11f4670cc5744f08d90ec3d8212e184921e45f2
[ "MIT" ]
null
null
null
apps/postgres.py
abiolarasheed/fabobjects
f11f4670cc5744f08d90ec3d8212e184921e45f2
[ "MIT" ]
1
2018-12-17T16:32:14.000Z
2018-12-17T16:32:14.000Z
# coding: utf-8 from __future__ import unicode_literals import getpass import os import sys from fabric.api import hide from fabric.api import settings from apps.base import BaseApp from fabobjects.utils import server_host_manager, random_password PG_VERSION = "9.5" GIS_VERSION = "2.2" HBA_TEXT = ( "local al...
35.733668
101
0.59633
1,774
14,222
4.537768
0.165727
0.02795
0.048571
0.054658
0.263106
0.207578
0.139752
0.116149
0.078012
0.035776
0
0.012889
0.285333
14,222
397
102
35.823678
0.779122
0.068978
0
0.212418
0
0.003268
0.212
0.02133
0
0
0
0
0
1
0.091503
false
0.094771
0.026144
0.006536
0.189542
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
88d7b1eb0d08bd7c0f6ad5c09e4e2f4993c3303c
1,472
py
Python
evosolve/operator/mutation/restricted_mixing.py
piotr-rarus/linkage-learning
d6ca8c452588e50dacf92cca88142c91f7169e63
[ "MIT" ]
null
null
null
evosolve/operator/mutation/restricted_mixing.py
piotr-rarus/linkage-learning
d6ca8c452588e50dacf92cca88142c91f7169e63
[ "MIT" ]
1
2021-06-10T12:58:53.000Z
2021-06-10T12:58:53.000Z
evosolve/operator/mutation/restricted_mixing.py
piotr-rarus/linkage-learning
d6ca8c452588e50dacf92cca88142c91f7169e63
[ "MIT" ]
null
null
null
from typing import List, Tuple import numpy as np from evobench.benchmark import Benchmark # from evobench.linkage import DependencyStructureMatrix from evobench.model import Population, Solution from ..operator import Operator class RestrictedMixing(Operator): def __init__(self, benchmark: Benchmark): ...
28.862745
74
0.644701
158
1,472
5.867089
0.35443
0.058252
0.064725
0.0863
0.166127
0.088457
0.088457
0.088457
0.088457
0
0
0.001864
0.27106
1,472
50
75
29.44
0.862069
0.122962
0
0.068966
0
0
0
0
0
0
0
0.02
0.034483
1
0.068966
false
0
0.172414
0
0.310345
0
0
0
0
null
0
0
0
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
88d8c025d6553276759f4e894fa0b18c1be44900
204
py
Python
src/SurveyDataViewer/settings/development.py
UCHIC/SurveyDataViewer
6027ea075a5c11c7686304eb9dd169664cee5c58
[ "BSD-3-Clause" ]
10
2015-01-20T17:04:47.000Z
2020-10-24T02:16:00.000Z
src/SurveyDataViewer/settings/development.py
UCHIC/SurveyDataViewer
6027ea075a5c11c7686304eb9dd169664cee5c58
[ "BSD-3-Clause" ]
65
2015-01-16T19:17:18.000Z
2018-02-12T23:03:11.000Z
src/SurveyDataViewer/settings/development.py
UCHIC/SurveyDataViewer
6027ea075a5c11c7686304eb9dd169664cee5c58
[ "BSD-3-Clause" ]
2
2019-07-08T20:57:14.000Z
2020-06-02T13:29:25.000Z
__author__ = 'Juan' from SurveyDataViewer.settings.base import * DEBUG = True TEMPLATE_DEBUG = True STATIC_URL = '/static/' SITE_URL = '' MEDIA_ROOT = data["media_files_dir"] MEDIA_URL = '/surveydata/'
18.545455
44
0.740196
26
204
5.384615
0.730769
0.128571
0
0
0
0
0
0
0
0
0
0
0.132353
204
11
45
18.545455
0.79096
0
0
0
0
0
0.190244
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
88e1123bb4a29efc0038664339d7f77cdda8fb13
1,174
py
Python
jiraexport/issuestream.py
nicwaller/jira-text
bb5d9867ecfe8ff48e4b18d123a61eec3c67a936
[ "MIT" ]
null
null
null
jiraexport/issuestream.py
nicwaller/jira-text
bb5d9867ecfe8ff48e4b18d123a61eec3c67a936
[ "MIT" ]
null
null
null
jiraexport/issuestream.py
nicwaller/jira-text
bb5d9867ecfe8ff48e4b18d123a61eec3c67a936
[ "MIT" ]
null
null
null
"""Fetch JIRA issues from database Defines a schema using SQLalchemy """ from __future__ import absolute_import from __future__ import print_function import logging import sqlalchemy from sqlalchemy.orm import sessionmaker from . import jiraschema def get_issues(user, password, host="localhost", database="jira"): ...
32.611111
108
0.707836
153
1,174
5.326797
0.594771
0.02454
0.034356
0.066258
0
0
0
0
0
0
0
0.001065
0.20017
1,174
35
109
33.542857
0.86688
0.239353
0
0
0
0
0.132955
0.045455
0
0
0
0
0
1
0.05
false
0.1
0.3
0
0.35
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
88e3fca38d207226845970b2b0c31f8a7dbd9585
1,775
py
Python
cqu_jxgl/cli.py
zombie110year/cqu_jxgl
e6294b8a0863cc93da46a38193cccb8c22b36437
[ "MIT" ]
null
null
null
cqu_jxgl/cli.py
zombie110year/cqu_jxgl
e6294b8a0863cc93da46a38193cccb8c22b36437
[ "MIT" ]
null
null
null
cqu_jxgl/cli.py
zombie110year/cqu_jxgl
e6294b8a0863cc93da46a38193cccb8c22b36437
[ "MIT" ]
null
null
null
import re from datetime import datetime from getpass import getpass from sys import argv from . import __version__ from .data.time import 沙坪坝校区作息时间, 虎溪校区作息时间 from .app import App class CommandParser: def __init__(self): self.username = input("用户名: ").strip() self.password = getpass("密码: ").strip(...
26.893939
69
0.534085
209
1,775
4.492823
0.382775
0.01278
0.025559
0.027689
0.042599
0.042599
0.042599
0.042599
0
0
0
0.021577
0.321127
1,775
65
70
27.307692
0.757676
0
0
0.053571
0
0.017857
0.140282
0.04169
0
0
0
0
0.017857
1
0.107143
false
0.053571
0.125
0
0.303571
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
88e92c37f1e2adfa2578b0433c16d0ea9de114aa
17,193
py
Python
apps/salt/salt_api.py
cc0411/oms
a9b570ed6cff05a43f7458b11712fb7290e50cc7
[ "Apache-2.0" ]
null
null
null
apps/salt/salt_api.py
cc0411/oms
a9b570ed6cff05a43f7458b11712fb7290e50cc7
[ "Apache-2.0" ]
8
2021-02-08T20:26:51.000Z
2022-03-11T23:31:40.000Z
apps/salt/salt_api.py
cc0411/oms
a9b570ed6cff05a43f7458b11712fb7290e50cc7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf import settings import time import copy import requests import logging # Create your views here. logger = logging.getLogger('devoms.views') # 封装salt-api的调用 class SaltAPI(object): # 给获取token的几个参数设置默认值,这样如果真突然出现调用另一个salt-api的情况,直接把对应参数传入一样适用哈哈 # 第一个参数session是为了给with as传...
46.342318
118
0.639446
2,122
17,193
5.017436
0.155042
0.045083
0.059829
0.087442
0.565887
0.509627
0.482014
0.440969
0.294073
0.253874
0
0.016699
0.195428
17,193
370
119
46.467568
0.752982
0.230908
0
0.218884
0
0
0.226481
0.017416
0
0
0
0
0
1
0.223176
false
0.012876
0.021459
0
0.467811
0
0
0
0
null
0
0
0
0
0
0
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
88f56460384f95bd99d6f4cf322a5c9447ccbd9e
432
py
Python
python/latex_plots.py
kjetil-lye/phd_thesis_standalone_plots
e35c683f800f2ef856ea374dfcde4599b8d5d5aa
[ "MIT" ]
null
null
null
python/latex_plots.py
kjetil-lye/phd_thesis_standalone_plots
e35c683f800f2ef856ea374dfcde4599b8d5d5aa
[ "MIT" ]
null
null
null
python/latex_plots.py
kjetil-lye/phd_thesis_standalone_plots
e35c683f800f2ef856ea374dfcde4599b8d5d5aa
[ "MIT" ]
null
null
null
import matplotlib matplotlib.rcParams['savefig.dpi'] = 600 # see https://stackoverflow.com/a/46262952 (for norm symbol) # and https://stackoverflow.com/a/23856968 matplotlib.rcParams['text.usetex'] = True matplotlib.rcParams['text.latex.preamble'] = [ r'\usepackage{amsmath}', r'\usepackage{amsfonts}', r'\u...
30.857143
60
0.726852
56
432
5.607143
0.607143
0.171975
0.133758
0.140127
0
0
0
0
0
0
0
0.048969
0.101852
432
13
61
33.230769
0.760309
0.229167
0
0
0
0
0.348485
0.063636
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
88f666e907b75131d4aaef2e462b2e25faf45f3f
972
py
Python
core/utils/nagisa.py
darakudou/setlist_forecast
21bcad5b86be84223ae9c643552cdcb9d58bb9c2
[ "MIT" ]
null
null
null
core/utils/nagisa.py
darakudou/setlist_forecast
21bcad5b86be84223ae9c643552cdcb9d58bb9c2
[ "MIT" ]
null
null
null
core/utils/nagisa.py
darakudou/setlist_forecast
21bcad5b86be84223ae9c643552cdcb9d58bb9c2
[ "MIT" ]
null
null
null
import nagisa from core.models import Music class Nagisa(): def __init__(self, idol): self.musics = Music.objects.filter(artist=idol).values("id", "identifications_title") self.overide_nagisa = nagisa.Tagger( single_word_list=list(self.musics.values_list("identifications_title", fl...
31.354839
94
0.654321
118
972
5.186441
0.449153
0.130719
0.071895
0
0
0
0
0
0
0
0
0
0.23251
972
30
95
32.4
0.820375
0.024691
0
0
0
0
0.115222
0.066596
0
0
0
0.033333
0
1
0.15
false
0
0.1
0.05
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
1
0
0
0
0
0
0
0
0
0
0
1
000018aa51a165832a1eda726a4d0aa4ebe46cbb
1,759
py
Python
amftrack/pipeline/functions/post_processing/global_plate.py
Cocopyth/MscThesis
60162bc779a3a668e7447b60bb9a4b2a616b8093
[ "MIT" ]
1
2021-06-10T02:51:53.000Z
2021-06-10T02:51:53.000Z
amftrack/pipeline/functions/post_processing/global_plate.py
Cocopyth/MscThesis
60162bc779a3a668e7447b60bb9a4b2a616b8093
[ "MIT" ]
null
null
null
amftrack/pipeline/functions/post_processing/global_plate.py
Cocopyth/MscThesis
60162bc779a3a668e7447b60bb9a4b2a616b8093
[ "MIT" ]
null
null
null
import networkx as nx def num_hypha(exp,args): return("num_hypha",len(exp.hyphaes)) def prop_lost_tracks_junction(exp,args): lost = 0 tracked = 0 lapse = args[0] # for node in exp.nodes: # t0 = node.ts()[0] # if node.degree(t0) >=3 and t0 + lapse < exp.ts: # ...
33.188679
73
0.532121
243
1,759
3.703704
0.209877
0.053333
0.053333
0.066667
0.626667
0.626667
0.626667
0.557778
0.557778
0.557778
0
0.020548
0.335986
1,759
53
74
33.188679
0.75
0.243889
0
0.545455
0
0
0.101266
0.053797
0
0
0
0
0
1
0.181818
false
0
0.030303
0.121212
0.212121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
000135e95136e82da051dbec4e574366e3ed2f67
3,665
py
Python
pysplit/member.py
polynomialchaos/pysplit
a62d151e99d843fab038f37df975fd4043e33205
[ "MIT" ]
null
null
null
pysplit/member.py
polynomialchaos/pysplit
a62d151e99d843fab038f37df975fd4043e33205
[ "MIT" ]
null
null
null
pysplit/member.py
polynomialchaos/pysplit
a62d151e99d843fab038f37df975fd4043e33205
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2021 Florian # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publ...
33.623853
101
0.657572
453
3,665
5.273731
0.331126
0.036836
0.040184
0.062788
0.223943
0.194642
0.132692
0.132692
0.104646
0.058602
0
0.001842
0.259209
3,665
108
102
33.935185
0.878085
0.562074
0
0
0
0
0.014147
0
0
0
0
0
0
1
0.294118
false
0
0.029412
0.029412
0.441176
0
0
0
0
null
0
0
0
0
0
0
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
000e97ff3206efa0986aefbe1a8064f5277eba34
1,027
py
Python
setup.py
kazuki/pyramid-oas3
fdadfc02b9551e235aa2d91582b6fe005da99025
[ "MIT" ]
2
2017-12-08T10:15:54.000Z
2019-04-26T06:43:22.000Z
setup.py
kazuki/pyramid-oas3
fdadfc02b9551e235aa2d91582b6fe005da99025
[ "MIT" ]
1
2018-12-04T06:38:49.000Z
2019-01-23T15:21:19.000Z
setup.py
kazuki/pyramid-oas3
fdadfc02b9551e235aa2d91582b6fe005da99025
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup def _load_lines(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as f: return [l.strip() for l in f.readlines()] setup( name='pyramid_oas3', version='0.1.5', description='OpenAPI 3.0 ...
30.205882
71
0.644596
124
1,027
5.201613
0.620968
0.068217
0.155039
0.16124
0
0
0
0
0
0
0
0.021871
0.198637
1,027
33
72
31.121212
0.761847
0.040896
0
0
0
0
0.461851
0.070193
0
0
0
0
0
1
0.038462
false
0
0.076923
0
0.153846
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
001617eca9769ee381ea7cfecd2c20132d0e2b16
6,280
py
Python
postal_code_api/migrations/0002_auto_20161008_1707.py
xecgr/postal_code_api
6d0049a1018a51a0d6ba7a66114091a188f4a4ee
[ "Apache-2.0" ]
null
null
null
postal_code_api/migrations/0002_auto_20161008_1707.py
xecgr/postal_code_api
6d0049a1018a51a0d6ba7a66114091a188f4a4ee
[ "Apache-2.0" ]
null
null
null
postal_code_api/migrations/0002_auto_20161008_1707.py
xecgr/postal_code_api
6d0049a1018a51a0d6ba7a66114091a188f4a4ee
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-10-06 04:40 from __future__ import unicode_literals from django.db import migrations def create_locations(apps, schema_editor): country_model = apps.get_model("postal_code_api", "Country") region_model = apps.get_model("postal_code_api", "Region")...
35.885714
89
0.375637
657
6,280
3.459665
0.383562
0.048394
0.049274
0.029916
0.218214
0.147822
0.119666
0.060713
0.060713
0.060713
0
0.036476
0.432484
6,280
174
90
36.091954
0.601291
0.031051
0
0.037037
1
0
0.213322
0
0
0
0
0
0
1
0.012346
false
0
0.012346
0
0.04321
0
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
00166a65968fc6c63ebcd82e52c73612378b6fe9
332
py
Python
my_flask_web/Config.py
s123600g/FlaskDemoNotes
466580ea712fcc9a4c9acff2b5960c06c397f291
[ "MIT" ]
null
null
null
my_flask_web/Config.py
s123600g/FlaskDemoNotes
466580ea712fcc9a4c9acff2b5960c06c397f291
[ "MIT" ]
null
null
null
my_flask_web/Config.py
s123600g/FlaskDemoNotes
466580ea712fcc9a4c9acff2b5960c06c397f291
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class BaseConfig(): # Flask 主要目錄設置 static_url_path = '' static_folder = '' template_folder = '' class DevelopermentConfig(BaseConfig): DEBUG = True SECRET_KEY = "flask1A556j/33X *~X2l!fgN]HelloWorlD/,?RT" # 環境模式參數設置 config = { 'developermentConfig': Developerme...
15.809524
60
0.650602
31
332
6.806452
0.806452
0
0
0
0
0
0
0
0
0
0
0.030651
0.213855
332
20
61
16.6
0.777778
0.129518
0
0
0
0
0.210526
0.087719
0
0
0
0
0
1
0
false
0
0
0
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
001a02e1b540d6361e9f64fced5c59b5d233d494
3,315
py
Python
emma/interface/management/commands/set_copyright.py
djangowebstudio/emma
afbdaa5c02b4164687356755fddba307eb682ef4
[ "BSD-3-Clause" ]
null
null
null
emma/interface/management/commands/set_copyright.py
djangowebstudio/emma
afbdaa5c02b4164687356755fddba307eb682ef4
[ "BSD-3-Clause" ]
null
null
null
emma/interface/management/commands/set_copyright.py
djangowebstudio/emma
afbdaa5c02b4164687356755fddba307eb682ef4
[ "BSD-3-Clause" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError, NoArgsCommand from emma.interface.models import * import os, sys from optparse import make_option class Command(BaseCommand): help = """ Set all copyrights to a certain value. Will optionally filter on category and / or directory. """ ...
39
123
0.495626
309
3,315
5.220065
0.320388
0.030998
0.034718
0.044637
0.296342
0.241785
0.203348
0.17359
0.114073
0.064476
0
0
0.394268
3,315
85
124
39
0.803287
0
0
0.220588
0
0
0.189988
0.013571
0
0
0
0
0
0
null
null
0
0.058824
null
null
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
001cff5d2aeed3af8f080dac19d765127a71f4e4
408
py
Python
devilry/apps/core/migrations/0036_auto_20170523_1748.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
29
2015-01-18T22:56:23.000Z
2020-11-10T21:28:27.000Z
devilry/apps/core/migrations/0036_auto_20170523_1748.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
786
2015-01-06T16:10:18.000Z
2022-03-16T11:10:50.000Z
devilry/apps/core/migrations/0036_auto_20170523_1748.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
15
2015-04-06T06:18:43.000Z
2021-02-24T12:28:30.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2017-05-23 17:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0035_auto_20170523_1747'), ] operations = [ migrations.AlterField( model_name='periodtag', ...
19.428571
50
0.583333
45
408
5.177778
0.822222
0
0
0
0
0
0
0
0
0
0
0.109966
0.286765
408
20
51
20.4
0.690722
0.164216
0
0
1
0
0.115385
0.068047
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
0021082607d005dd06a6c3d22985fdcf55cd7639
1,961
py
Python
scripts/analysis/scheduling_duration_cdf.py
Container-Projects/firmament
d0de5258f0805f8d17b45d70c0a8e6d6a67617c0
[ "Apache-2.0", "OpenSSL" ]
287
2016-05-13T17:45:48.000Z
2022-01-23T00:26:20.000Z
scripts/analysis/scheduling_duration_cdf.py
Container-Projects/firmament
d0de5258f0805f8d17b45d70c0a8e6d6a67617c0
[ "Apache-2.0", "OpenSSL" ]
33
2016-05-13T11:40:21.000Z
2020-11-16T17:57:17.000Z
scripts/analysis/scheduling_duration_cdf.py
Container-Projects/firmament
d0de5258f0805f8d17b45d70c0a8e6d6a67617c0
[ "Apache-2.0", "OpenSSL" ]
64
2016-05-26T06:35:39.000Z
2021-09-27T12:02:44.000Z
#!/usr/bin/python import sys, re from datetime import datetime import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt if len(sys.argv) < 2: print "usage: scheduling_duration_cdf.py <log file 0> <label 0> " \ "<log file 1> <label 1> ..." sys.exit(1) durations = {} for i in range(1, len(sy...
25.467532
79
0.604793
279
1,961
4.172043
0.369176
0.041237
0.041237
0.0189
0.386598
0.359107
0.242268
0.242268
0.242268
0.146048
0
0.020833
0.241203
1,961
76
80
25.802632
0.761425
0.045385
0
0.303571
0
0.017857
0.203852
0.043339
0
0
0
0
0
0
null
null
0.017857
0.071429
null
null
0.053571
0
0
0
null
0
0
0
0
0
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
002574a349b66011ca03ff61233bf1bf90db002f
489
py
Python
result/models.py
thesaihan/ytu-su-voting
72116cf303572f19eae15d3e7c46412c60c52953
[ "MIT" ]
null
null
null
result/models.py
thesaihan/ytu-su-voting
72116cf303572f19eae15d3e7c46412c60c52953
[ "MIT" ]
1
2019-12-14T16:18:45.000Z
2019-12-14T16:18:45.000Z
result/models.py
thesaihan/ytu-su-voting
72116cf303572f19eae15d3e7c46412c60c52953
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Candidate(models.Model): id = models.IntegerField(primary_key=True) cand_no = models.IntegerField(blank=True, null=True) cand_type = models.CharField(max_length=1, blank=True, null=True) name = models.CharField(max_length=150, blank=True, n...
30.5625
69
0.695297
68
489
4.823529
0.514706
0.082317
0.118902
0.155488
0
0
0
0
0
0
0
0.010101
0.190184
489
16
70
30.5625
0.818182
0.04908
0
0
0
0
0.025862
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0.090909
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
0026df36fee36baaf1386ed7f20fe16ec99ef038
3,466
py
Python
micropython/term_server.py
al177/blinkencard
481aae0bdf2183379dc79111a8a60ec7f1517a24
[ "MIT" ]
2
2021-03-30T16:20:13.000Z
2022-01-30T20:43:17.000Z
micropython/term_server.py
al177/blinkencard
481aae0bdf2183379dc79111a8a60ec7f1517a24
[ "MIT" ]
null
null
null
micropython/term_server.py
al177/blinkencard
481aae0bdf2183379dc79111a8a60ec7f1517a24
[ "MIT" ]
1
2020-10-19T21:02:14.000Z
2020-10-19T21:02:14.000Z
from machine import UART import sys import select import socket import iceboot import gc def go(): """ Stupid telnet to serial terminal for Blinkencard """ uart=UART(2, rx=16, tx=17, timeout=1) uart.init(9600) s = socket.socket() s.bind(socket.getaddrinfo('0.0.0.0', 5000)[0][-1]) s.li...
35.010101
94
0.399019
329
3,466
4.106383
0.410334
0.053294
0.029608
0.032568
0.062176
0.062176
0.062176
0.062176
0.062176
0
0
0.041104
0.529717
3,466
98
95
35.367347
0.78773
0.088863
0
0.202703
0
0
0.041826
0
0
0
0.00894
0
0
1
0.013514
false
0
0.081081
0
0.094595
0.040541
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
002a1100b5f227bf2df514a85802d51704275ce1
891
py
Python
Sliding-Window/Fruits-Into-Baskets.py
umerkhan95/teaching-python
36f2bd6f740c5d0e6afb6c02163b2f11133cb883
[ "MIT" ]
null
null
null
Sliding-Window/Fruits-Into-Baskets.py
umerkhan95/teaching-python
36f2bd6f740c5d0e6afb6c02163b2f11133cb883
[ "MIT" ]
null
null
null
Sliding-Window/Fruits-Into-Baskets.py
umerkhan95/teaching-python
36f2bd6f740c5d0e6afb6c02163b2f11133cb883
[ "MIT" ]
null
null
null
def fruits_into_baskets(fruits): window_start = 0 max_length = 0 fruit_frequency = {} # In this loop, we extend the range [window_start, window_end] for window_end in range(len(fruits)): right_fruit = fruits[window_end] if right_fruit not in fruit_frequency: fruit_freque...
37.125
91
0.648709
119
891
4.588235
0.327731
0.230769
0.098901
0.126374
0
0
0
0
0
0
0
0.015699
0.285073
891
23
92
38.73913
0.841444
0.218855
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.117647
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
00426cd318d5d30e4220b3f1031b8cd72448e7d7
3,546
py
Python
mir3/modules/unsupervised/detection/threshold/tests.py
pymir3/pymir3
c1bcca66a5ef1ff0ebd6373e3820e72dee6b0b70
[ "MIT" ]
12
2015-08-03T12:41:11.000Z
2020-08-18T07:55:23.000Z
mir3/modules/unsupervised/detection/threshold/tests.py
pymir3/pymir3
c1bcca66a5ef1ff0ebd6373e3820e72dee6b0b70
[ "MIT" ]
1
2015-05-27T18:47:20.000Z
2015-05-27T18:47:20.000Z
mir3/modules/unsupervised/detection/threshold/tests.py
pymir3/pymir3
c1bcca66a5ef1ff0ebd6373e3820e72dee6b0b70
[ "MIT" ]
3
2016-03-18T03:30:02.000Z
2018-07-05T02:29:16.000Z
import numpy import mir3.data.linear_decomposition as ld import mir3.module class Tests(mir3.module.Module): def get_help(self): return """computes the values at which the threshold should be tested""" def build_arguments(self, parser): parser.add_argument('-n','--number-values', default=10,...
39.842697
80
0.537225
378
3,546
4.973545
0.383598
0.046809
0.021277
0.01117
0.047872
0.047872
0.047872
0.037234
0.037234
0.037234
0
0.005495
0.384095
3,546
88
81
40.295455
0.855311
0.104061
0
0
0
0
0.154775
0
0
0
0
0
0
0
null
null
0
0.061224
null
null
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
004622adaba07a8e0924082e3710d19b9d6d6298
1,599
py
Python
observations/r/capm.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
observations/r/capm.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
observations/r/capm.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def capm(path): """Stock Market Data monthly observations from 1960–01...
23.865672
75
0.687305
222
1,599
4.828829
0.576577
0.048507
0.044776
0.04291
0.041045
0
0
0
0
0
0
0.017227
0.237649
1,599
66
76
24.227273
0.860541
0.483427
0
0
0
0
0.085603
0
0
0
0
0
0
1
0.045455
false
0
0.409091
0
0.5
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
004cb6d98cd0f693a1bd080d41ca474703291b13
1,315
py
Python
Medium/0018. 4Sum/0018. 4Sum_still_slow.py
FlyProbe/LeetCode-Solutions
4489722573ecc2d4358ba5120e2af3d7407bb3b1
[ "Apache-2.0" ]
1
2019-07-25T06:43:35.000Z
2019-07-25T06:43:35.000Z
Medium/0018. 4Sum/0018. 4Sum_still_slow.py
FlyProbe/LeetCode-Solutions
4489722573ecc2d4358ba5120e2af3d7407bb3b1
[ "Apache-2.0" ]
null
null
null
Medium/0018. 4Sum/0018. 4Sum_still_slow.py
FlyProbe/LeetCode-Solutions
4489722573ecc2d4358ba5120e2af3d7407bb3b1
[ "Apache-2.0" ]
null
null
null
class Solution: def fourSum(self, nums: List[int], target: int) -> List[List[int]]: l = len(nums) res = set() # 用set来处理重复的组合 nums.sort() pre_i = None for i in range(l-3): if nums[i] == pre_i: # 跳过重复的固定数字 continue ...
31.309524
74
0.323194
141
1,315
2.971631
0.283688
0.071599
0.085919
0.095465
0.21957
0.21957
0.21957
0.21957
0.124105
0
0
0.019264
0.565779
1,315
41
75
32.073171
0.714536
0.2
0
0.193548
0
0
0
0
0
0
0
0
0
1
0.032258
false
0
0
0
0.096774
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
0051533aca83a0c1402eb803766682667f96df71
285
py
Python
holobot/discord/sdk/servers/models/member_data.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
1
2021-05-24T00:17:46.000Z
2021-05-24T00:17:46.000Z
holobot/discord/sdk/servers/models/member_data.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
41
2021-03-24T22:50:09.000Z
2021-12-17T12:15:13.000Z
holobot/discord/sdk/servers/models/member_data.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Optional @dataclass class MemberData: user_id: str avatar_url: str name: str nick_name: Optional[str] @property def display_name(self) -> str: return self.nick_name if self.nick_name else self.name
20.357143
62
0.715789
40
285
4.95
0.55
0.121212
0.121212
0
0
0
0
0
0
0
0
0
0.224561
285
13
63
21.923077
0.895928
0
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0.090909
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
cc3e0bfa6fd0b0e787a1a3c41f717f735da2fd39
2,053
py
Python
torchnlp/samplers/noisy_sorted_sampler.py
MPetrochuk/PyTorch-NLP
d7814a297811c9b0dfb285fe0475098b86f3d348
[ "BSD-3-Clause" ]
2,125
2018-03-17T23:31:03.000Z
2022-03-31T12:20:14.000Z
torchnlp/samplers/noisy_sorted_sampler.py
zhengmingzhang/PyTorch-NLP
34a98b5fa5d2e13761546b94770aed12388528f2
[ "BSD-3-Clause" ]
109
2018-03-21T00:38:51.000Z
2021-12-24T08:34:55.000Z
torchnlp/samplers/noisy_sorted_sampler.py
zhengmingzhang/PyTorch-NLP
34a98b5fa5d2e13761546b94770aed12388528f2
[ "BSD-3-Clause" ]
270
2018-03-18T16:47:01.000Z
2022-03-17T08:01:58.000Z
import random from torch.utils.data.sampler import Sampler from torchnlp.utils import identity def _uniform_noise(_): return random.uniform(-1, 1) class NoisySortedSampler(Sampler): """ Samples elements sequentially with noise. **Background** ``NoisySortedSampler`` is similar to a ``BucketIt...
34.216667
132
0.650755
261
2,053
4.950192
0.452107
0.049536
0.021672
0.02322
0
0
0
0
0
0
0
0.031471
0.241598
2,053
59
133
34.79661
0.79833
0.591817
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.15
0.1
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
cc4bc99dccb8f1016b48efa811e9f69172e1553b
12,585
py
Python
KalmanMachine/Kalman4LogisticReg.py
marc-h-lambert/L-RVGA
e7cd0c9745c87fb68828f28b1856a9616da933b1
[ "CC0-1.0" ]
null
null
null
KalmanMachine/Kalman4LogisticReg.py
marc-h-lambert/L-RVGA
e7cd0c9745c87fb68828f28b1856a9616da933b1
[ "CC0-1.0" ]
null
null
null
KalmanMachine/Kalman4LogisticReg.py
marc-h-lambert/L-RVGA
e7cd0c9745c87fb68828f28b1856a9616da933b1
[ "CC0-1.0" ]
null
null
null
################################################################################### # THE KALMAN MACHINE LIBRARY # # Code supported by Marc Lambert # ####################################################################...
37.792793
197
0.565912
1,700
12,585
4.094118
0.192353
0.042241
0.025862
0.02069
0.406897
0.34842
0.305029
0.266379
0.249425
0.244828
0
0.029409
0.278586
12,585
333
198
37.792793
0.737196
0.256257
0
0.326425
0
0
0.024831
0
0
0
0
0
0
1
0.124352
false
0.051813
0.046632
0.020725
0.26943
0.025907
0
0
0
null
0
0
0
0
0
0
0
0
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
cc52fba0207e773e683d7ea50dd08934dee8e989
961
py
Python
pdc/apps/common/serializers.py
hluk/product-definition-center
af79f73c30fa5f5709ba03d584b7a49b83166b81
[ "MIT" ]
18
2015-12-15T17:56:18.000Z
2021-04-10T13:49:48.000Z
pdc/apps/common/serializers.py
hluk/product-definition-center
af79f73c30fa5f5709ba03d584b7a49b83166b81
[ "MIT" ]
303
2015-11-18T07:37:06.000Z
2021-05-26T12:34:01.000Z
pdc/apps/common/serializers.py
hluk/product-definition-center
af79f73c30fa5f5709ba03d584b7a49b83166b81
[ "MIT" ]
27
2015-11-19T20:33:54.000Z
2021-03-25T08:15:28.000Z
# # Copyright (c) 2015 Red Hat # Licensed under The MIT License (MIT) # http://opensource.org/licenses/MIT # from rest_framework import serializers from contrib.drf_introspection.serializers import StrictSerializerMixin from .models import Label, Arch, SigKey class LabelSerializer(StrictSerializerMixin, ...
25.289474
73
0.677419
85
961
7.623529
0.552941
0.148148
0.064815
0
0
0
0
0
0
0
0
0.005405
0.229969
961
37
74
25.972973
0.87027
0.120708
0
0.263158
0
0
0.052121
0
0
0
0
0
0
1
0
false
0
0.157895
0
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
cc591e09ad49fb6fa2057c4b5ee39ab954791c68
816
py
Python
src/app.py
tdmalone/bitbucket-approvals-to-jira
331d02129c5a3a2f120f2d27080d3087329ef811
[ "MIT" ]
null
null
null
src/app.py
tdmalone/bitbucket-approvals-to-jira
331d02129c5a3a2f120f2d27080d3087329ef811
[ "MIT" ]
null
null
null
src/app.py
tdmalone/bitbucket-approvals-to-jira
331d02129c5a3a2f120f2d27080d3087329ef811
[ "MIT" ]
null
null
null
# get PR details from incoming approve webhook # quit if all approvers have not approved # look for ticket ID in branch name # look up ticket for any other unapproved PRs (if not possible thru Jira API, use bitbucket API - will have to spread across every repo in the team, though!) - quit if any # make a request to an ...
48
199
0.745098
142
816
4.239437
0.669014
0.019934
0
0
0
0
0
0
0
0
0
0
0.193627
816
16
200
51
0.914894
0.707108
0
0
0
0
0.107759
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
cc5d12470939f36e2f036cea8437477f133ed48b
1,729
py
Python
tobiko/openstack/stacks/_ubuntu.py
4383/tobiko
f8e6916db890021fa17ddbfc5e6007a25093c8cb
[ "Apache-2.0" ]
null
null
null
tobiko/openstack/stacks/_ubuntu.py
4383/tobiko
f8e6916db890021fa17ddbfc5e6007a25093c8cb
[ "Apache-2.0" ]
null
null
null
tobiko/openstack/stacks/_ubuntu.py
4383/tobiko
f8e6916db890021fa17ddbfc5e6007a25093c8cb
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Red Hat # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
35.285714
78
0.765182
230
1,729
5.630435
0.478261
0.054054
0.086486
0.048649
0.047876
0.047876
0.047876
0
0
0
0
0.009689
0.164257
1,729
48
79
36.020833
0.886505
0.387507
0
0
0
0
0.089166
0.030681
0
0
0
0
0
1
0
false
0.045455
0.227273
0
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
cc60d18f461a61f0ee345a39b26f4fdf4befad76
669
py
Python
slack_bot/bot.py
dietrichsimon/slack-bot
f5589d447feb452f6f94e23d495fbde8ec5c2460
[ "MIT" ]
null
null
null
slack_bot/bot.py
dietrichsimon/slack-bot
f5589d447feb452f6f94e23d495fbde8ec5c2460
[ "MIT" ]
null
null
null
slack_bot/bot.py
dietrichsimon/slack-bot
f5589d447feb452f6f94e23d495fbde8ec5c2460
[ "MIT" ]
null
null
null
import logging import sqlalchemy as db import pandas as pd from slack import WebClient import config # establish connection to postgres database try: engine = db.create_engine("postgres://postgres:1234@postgresdb:5432") except: logging.critical('Could not establish connection to postgres database.') initializ...
26.76
76
0.757848
93
669
5.387097
0.602151
0.075848
0.083832
0.115768
0.147705
0
0
0
0
0
0
0.015679
0.142003
669
24
77
27.875
0.857143
0.149477
0
0
0
0
0.279646
0.070796
0
0
0
0
0
0
null
null
0
0.294118
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
cc636ff2a0b1df2c2f8e3d0b100be2a805966614
12,313
py
Python
dist/Basilisk/fswAlgorithms/inertial3DSpin/inertial3DSpin.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
null
null
null
dist/Basilisk/fswAlgorithms/inertial3DSpin/inertial3DSpin.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
1
2019-03-13T20:52:22.000Z
2019-03-13T20:52:22.000Z
dist/Basilisk/fswAlgorithms/inertial3DSpin/inertial3DSpin.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info >= (2, 7, 0): def swig_im...
42.458621
153
0.764964
1,294
12,313
6.717156
0.155332
0.129084
0.021514
0.018408
0.377013
0.254027
0.173263
0.146802
0.087437
0.075702
0
0.017661
0.15845
12,313
289
154
42.605536
0.821174
0.023958
0
0.280335
1
0
0.060376
0
0
0
0
0
0
1
0.117155
false
0.012552
0.087866
0.075314
0.39749
0
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
cc64824477cabd54e2c489c1184b5262c183128e
2,189
py
Python
Source/Squiddy/src/tema-android-adapter-3.2-sma/AndroidAdapter/screencapture.py
samini/gort-public
fed7d1d884753f3e3b412a9afb476ae1e1f563c4
[ "Apache-2.0" ]
1
2015-01-28T16:23:44.000Z
2015-01-28T16:23:44.000Z
Source/Squiddy/src/tema-android-adapter-3.2-sma/AndroidAdapter/screencapture.py
samini/gort-public
fed7d1d884753f3e3b412a9afb476ae1e1f563c4
[ "Apache-2.0" ]
1
2017-04-24T12:10:29.000Z
2017-04-24T12:10:29.000Z
Source/Squiddy/src/tema-android-adapter-3.2-sma/AndroidAdapter/screencapture.py
samini/gort-public
fed7d1d884753f3e3b412a9afb476ae1e1f563c4
[ "Apache-2.0" ]
1
2015-01-28T16:41:47.000Z
2015-01-28T16:41:47.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2006-2010 Tampere University of Technology # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the ...
44.673469
153
0.762449
321
2,189
5.161994
0.52648
0.053108
0.03621
0.054315
0.041038
0
0
0
0
0
0
0.010383
0.164002
2,189
48
154
45.604167
0.895082
0.503426
0
0
0
0
0.290155
0.085492
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.142857
0
0
0
null
0
0
0
0
0
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
cc6678c84551603e013215933ecbdbb1cb7876f1
234
py
Python
dynamic_programming/fibonacci_modified.py
laanak08/algorithms
deffbb4fa43ff6a670f29284ca57ac8c8579c858
[ "MIT" ]
null
null
null
dynamic_programming/fibonacci_modified.py
laanak08/algorithms
deffbb4fa43ff6a670f29284ca57ac8c8579c858
[ "MIT" ]
null
null
null
dynamic_programming/fibonacci_modified.py
laanak08/algorithms
deffbb4fa43ff6a670f29284ca57ac8c8579c858
[ "MIT" ]
null
null
null
def main(): A,B,N = raw_input().split(" ") print T(int(A),int(B),int(N)) def T(A,B,N): if N == 1: return A elif N == 2: return B else: return ( T(A,B,(N-1)) ** 2 ) + T(A,B,(N-2)) main()
19.5
51
0.418803
45
234
2.155556
0.377778
0.082474
0.123711
0.123711
0
0
0
0
0
0
0
0.032468
0.34188
234
12
52
19.5
0.597403
0
0
0
0
0
0.004255
0
0
0
0
0
0
0
null
null
0
0
null
null
0.090909
0
0
0
null
0
0
0
0
0
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
cc6769f59fa740d3fd4adb3dbea9d837891c84bc
619
py
Python
care/facility/migrations/0190_auto_20201001_1134.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
189
2020-03-17T17:18:58.000Z
2022-02-22T09:49:45.000Z
care/facility/migrations/0190_auto_20201001_1134.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
598
2020-03-19T21:22:09.000Z
2022-03-30T05:08:37.000Z
care/facility/migrations/0190_auto_20201001_1134.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
159
2020-03-19T18:45:56.000Z
2022-03-17T13:23:12.000Z
# Generated by Django 2.2.11 on 2020-10-01 06:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('facility', '0189_auto_20200929_1258'), ] operations = [ migrations.AlterField( model_name='shiftingrequest', name='...
32.578947
272
0.61874
66
619
5.742424
0.80303
0
0
0
0
0
0
0
0
0
0
0.107438
0.218094
619
18
273
34.388889
0.67562
0.074313
0
0
1
0
0.304729
0.04028
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
cc6862ba0df45af40840ac4eb00a3c250f1bd741
1,427
py
Python
nuplan/planning/metrics/evaluation_metrics/common/ego_lat_jerk.py
motional/nuplan-devkit
e39029e788b17f47f2fcadb774098ef8fbdd0d67
[ "Apache-2.0" ]
128
2021-12-06T15:41:14.000Z
2022-03-29T13:16:32.000Z
nuplan/planning/metrics/evaluation_metrics/common/ego_lat_jerk.py
motional/nuplan-devkit
e39029e788b17f47f2fcadb774098ef8fbdd0d67
[ "Apache-2.0" ]
28
2021-12-11T08:11:31.000Z
2022-03-25T02:35:43.000Z
nuplan/planning/metrics/evaluation_metrics/common/ego_lat_jerk.py
motional/nuplan-devkit
e39029e788b17f47f2fcadb774098ef8fbdd0d67
[ "Apache-2.0" ]
14
2021-12-11T04:12:26.000Z
2022-03-24T06:38:30.000Z
from typing import List from nuplan.planning.metrics.evaluation_metrics.base.within_bound_metric_base import WithinBoundMetricBase from nuplan.planning.metrics.metric_result import MetricStatistics from nuplan.planning.metrics.utils.state_extractors import extract_ego_jerk from nuplan.planning.scenario_builder.abstrac...
40.771429
106
0.723196
148
1,427
6.756757
0.432432
0.05
0.09
0.075
0
0
0
0
0
0
0
0
0.203924
1,427
34
107
41.970588
0.880282
0.21794
0
0
0
0
0.045898
0.044922
0
0
0
0
0
1
0.117647
false
0
0.352941
0
0.588235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
cc6dce3617dac2bf966338511a5c351adb6ef9ef
2,011
py
Python
backend/FlaskAPI/mf_insert_table_data.py
steruel/CovalentMFFPrototype
275ade0fa0a2ce3c80ed3aaac3a861dd0e273622
[ "MIT" ]
null
null
null
backend/FlaskAPI/mf_insert_table_data.py
steruel/CovalentMFFPrototype
275ade0fa0a2ce3c80ed3aaac3a861dd0e273622
[ "MIT" ]
null
null
null
backend/FlaskAPI/mf_insert_table_data.py
steruel/CovalentMFFPrototype
275ade0fa0a2ce3c80ed3aaac3a861dd0e273622
[ "MIT" ]
null
null
null
# coding: utf-8 # In[1]: ##Includes from flask import request, url_for from flask_api import FlaskAPI, status, exceptions from flask_cors import CORS, cross_origin from flask import Blueprint, render_template, abort import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.rea...
25.1375
142
0.732471
280
2,011
5.007143
0.392857
0.051355
0.083452
0.10913
0.164051
0.088445
0.067047
0.067047
0.067047
0
0
0.008571
0.129786
2,011
79
143
25.455696
0.792571
0.183491
0
0.042553
0
0
0.16946
0.070143
0
0
0
0
0
0
null
null
0
0.191489
null
null
0.148936
0
0
0
null
0
0
0
0
0
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
cc86125a4ea53d2d1577cfcfdd051d1f3ed3a18c
2,130
py
Python
zongheng/zongheng_lib/machine.py
meetbill/zongheng
b6fa35464070fd82c802242c1150050630eb404e
[ "MIT" ]
null
null
null
zongheng/zongheng_lib/machine.py
meetbill/zongheng
b6fa35464070fd82c802242c1150050630eb404e
[ "MIT" ]
null
null
null
zongheng/zongheng_lib/machine.py
meetbill/zongheng
b6fa35464070fd82c802242c1150050630eb404e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import g def show_machines(): ml = load_machine_list() for m in ml: print m def load_machine_list(skip_ban=True): client = g.mongo_client() db = client.cap cursor = db.machines.find() results = [] ban_list = load_banned_machine_list()...
26.296296
72
0.592958
284
2,130
4.225352
0.260563
0.100833
0.06
0.09
0.286667
0.261667
0.261667
0.261667
0.261667
0.135
0
0.005195
0.276995
2,130
80
73
26.625
0.774026
0.025822
0
0.338462
0
0
0.045635
0
0
0
0
0
0
0
null
null
0
0.015385
null
null
0.015385
0
0
0
null
0
0
0
0
0
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
cc90001de3e6ee41f3ee56be763fbd97beccf8ba
1,336
py
Python
chapter 3/sampleCode6.py
DTAIEB/Thoughtful-Data-Science
8b80e8f3e33b6fdc6672ecee1f27e0b983b28241
[ "Apache-2.0" ]
15
2018-06-01T19:18:32.000Z
2021-11-28T03:31:35.000Z
chapter 3/sampleCode6.py
chshychen/Thoughtful-Data-Science
8b80e8f3e33b6fdc6672ecee1f27e0b983b28241
[ "Apache-2.0" ]
1
2018-12-17T02:01:42.000Z
2018-12-17T02:01:42.000Z
chapter 3/sampleCode6.py
chshychen/Thoughtful-Data-Science
8b80e8f3e33b6fdc6672ecee1f27e0b983b28241
[ "Apache-2.0" ]
10
2018-09-16T06:06:57.000Z
2021-06-29T05:49:18.000Z
[[GitHubTracking]] @route(query="*") @templateArgs def do_search(self, query): self.first_url = "https://api.github.com/search/repositories?q={}".format(query) self.prev_url = None self.next_url = None self.last_url = None response = requests.get(self.first_url) if not response.ok: ...
34.25641
87
0.605539
187
1,336
4.181818
0.352941
0.044757
0.035806
0.046036
0.267263
0.113811
0.088235
0.088235
0
0
0
0.001817
0.175898
1,336
38
88
35.157895
0.708447
0
0
0
0
0.111111
0.65494
0.267964
0
0
0
0
0
1
0.027778
false
0
0
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cc912d25989f0922fc799279b540ac65c9f087be
6,809
py
Python
Evaluation/pairwise_distance.py
DigitalPhonetics/SpeechRepresentationFinetuning
11d7130919888d0a27de61f5075e72f4a024673b
[ "Apache-2.0" ]
1
2022-03-24T19:48:58.000Z
2022-03-24T19:48:58.000Z
Evaluation/pairwise_distance.py
DigitalPhonetics/SpeechRepresentationFinetuning
11d7130919888d0a27de61f5075e72f4a024673b
[ "Apache-2.0" ]
null
null
null
Evaluation/pairwise_distance.py
DigitalPhonetics/SpeechRepresentationFinetuning
11d7130919888d0a27de61f5075e72f4a024673b
[ "Apache-2.0" ]
null
null
null
# Average Pariwsie Distance: import argparse import pickle import pandas as pd from scipy.spatial import distance parser = argparse.ArgumentParser( description="Average Pariwsie Distance Evaluation (Quality Analysis)" ) parser.add_argument("embed_type", type=str, metavar="N", help="") parser.add_argument("label...
35.463542
133
0.643854
850
6,809
4.835294
0.211765
0.054745
0.034793
0.030657
0.296107
0.231873
0.20146
0.134307
0.078832
0.078832
0
0.004031
0.271259
6,809
191
134
35.649215
0.824264
0.225143
0
0.1
0
0
0.073047
0
0
0
0
0.010471
0
1
0.041667
false
0
0.033333
0
0.116667
0.025
0
0
0
null
0
0
0
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
cc9446be73c5c332495f3b3b5c0a5176bedf0b4a
2,601
py
Python
views/__init__.py
nakpisang/dicoding
f5b4e2ce1295e85c4619a43e7b6b7958d5493b56
[ "MIT" ]
null
null
null
views/__init__.py
nakpisang/dicoding
f5b4e2ce1295e85c4619a43e7b6b7958d5493b56
[ "MIT" ]
null
null
null
views/__init__.py
nakpisang/dicoding
f5b4e2ce1295e85c4619a43e7b6b7958d5493b56
[ "MIT" ]
null
null
null
from PIL import Image from flask import Flask, Blueprint, render_template, request, jsonify, redirect, url_for, g, session from torch_mtcnn import detect_faces from flask_bootstrap import Bootstrap from util import is_same, ModelLoaded base = Blueprint('base', __name__, template_folder='templates') THRESHOLD = 1.5 # ...
28.9
100
0.638985
349
2,601
4.598854
0.280802
0.033645
0.034891
0.042368
0.165109
0.140187
0.042368
0.042368
0
0
0
0.006823
0.211073
2,601
89
101
29.224719
0.775341
0.010381
0
0.030303
0
0
0.104629
0
0
0
0
0
0
1
0.121212
false
0.121212
0.075758
0.045455
0.333333
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
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
cc94db93c9a1204b9d40f7ed6f178eda4b9aeda3
1,576
py
Python
product_search_python/tests/run_unittests.py
sp4350/Test
fc8c05e05bc57219e423316dd30d55c3eb4df979
[ "Apache-2.0" ]
34
2015-01-16T20:14:32.000Z
2021-10-09T17:36:05.000Z
product_search_python/tests/run_unittests.py
sp4350/Test
fc8c05e05bc57219e423316dd30d55c3eb4df979
[ "Apache-2.0" ]
3
2015-03-18T17:58:21.000Z
2019-05-24T06:27:10.000Z
product_search_python/tests/run_unittests.py
sp4350/Test
fc8c05e05bc57219e423316dd30d55c3eb4df979
[ "Apache-2.0" ]
55
2015-01-04T13:38:50.000Z
2021-10-09T17:35:58.000Z
#!/usr/bin/env python2.7 # # Copyright 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
30.901961
76
0.708122
226
1,576
4.787611
0.544248
0.055453
0.030499
0.04159
0.03512
0
0
0
0
0
0
0.013567
0.204949
1,576
50
77
31.52
0.84996
0.362944
0
0
0
0
0.200202
0
0
0
0
0
0
0
null
null
0
0.214286
null
null
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
cca06053bada8df02ed0092e6deb6aa1bafb6822
179
py
Python
constants.py
Sinica-SLAM/COSPRO-mix
0cdb73be27502f3eb4770398b3c7ede552efe759
[ "MIT" ]
5
2019-11-26T19:26:44.000Z
2020-12-05T18:08:27.000Z
constants.py
Sinica-SLAM/COSPRO-mix
0cdb73be27502f3eb4770398b3c7ede552efe759
[ "MIT" ]
9
2020-01-12T19:15:08.000Z
2021-06-02T00:53:26.000Z
constants.py
Sinica-SLAM/COSPRO-mix
0cdb73be27502f3eb4770398b3c7ede552efe759
[ "MIT" ]
1
2020-01-12T19:54:48.000Z
2020-01-12T19:54:48.000Z
NUM_BANDS = 4 SNR_THRESH = -6. PRE_NOISE_SECONDS = 2.0 SAMPLERATE = 16000 MAX_SAMPLE_AMP = 0.95 MIN_SNR_DB = -3. MAX_SNR_DB = 6. PRE_NOISE_SAMPLES = PRE_NOISE_SECONDS * SAMPLERATE
22.375
50
0.77095
33
179
3.757576
0.636364
0.193548
0.145161
0
0
0
0
0
0
0
0
0.090909
0.139665
179
8
50
22.375
0.714286
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cca2af2fa85e71c97f358b96df96dd89f75d395d
483
py
Python
tests.py
ctcampbell/veracode-python
519706785c4ab18c3392cd64fd79d7894adde10e
[ "BSD-3-Clause" ]
13
2019-03-16T03:11:50.000Z
2021-03-16T13:02:45.000Z
tests.py
ctcampbell/veracode-python
519706785c4ab18c3392cd64fd79d7894adde10e
[ "BSD-3-Clause" ]
6
2020-01-14T21:45:55.000Z
2022-03-03T17:56:43.000Z
tests.py
ctcampbell/veracode-python
519706785c4ab18c3392cd64fd79d7894adde10e
[ "BSD-3-Clause" ]
10
2020-01-20T13:34:55.000Z
2021-09-28T21:21:22.000Z
if __name__ == '__main__': import doctest from veracode import application, sandbox, build from veracode.exceptions import * try: doctest.testmod(application, raise_on_error=True) doctest.testmod(sandbox, raise_on_error=True) doctest.testmod(build, raise_on_error=True) excep...
26.833333
57
0.681159
55
483
5.709091
0.509091
0.133758
0.11465
0.152866
0.191083
0.191083
0
0
0
0
0
0
0.229814
483
17
58
28.411765
0.844086
0.10352
0
0
0
0
0.055684
0
0
0
0
0
0
1
0
false
0.076923
0.230769
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
cca56ba8782fa040cff62f15cc0d76a1011970d7
402
py
Python
examples/connect.py
adrienverge/aiocouch
c75d6c8ef322947f8b4e8a2b329e68bb03be6b83
[ "BSD-3-Clause" ]
null
null
null
examples/connect.py
adrienverge/aiocouch
c75d6c8ef322947f8b4e8a2b329e68bb03be6b83
[ "BSD-3-Clause" ]
null
null
null
examples/connect.py
adrienverge/aiocouch
c75d6c8ef322947f8b4e8a2b329e68bb03be6b83
[ "BSD-3-Clause" ]
null
null
null
import asyncio from aiocouch import CouchDB async def main_with(): async with CouchDB( "http://localhost:5984", user="admin", password="admin" ) as couchdb: database = await couchdb["config"] async for doc in database.docs(["db-hta"]): print(doc) if __name__ == "__main...
20.1
63
0.639303
50
402
4.86
0.68
0.065844
0
0
0
0
0
0
0
0
0
0.013029
0.236318
402
19
64
21.157895
0.778502
0
0
0
0
0
0.126866
0
0
0
0
0
0
1
0
false
0.083333
0.166667
0
0.166667
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
ccad40a597f680c11c2489ee3dd53936474c6c60
1,686
py
Python
sso/user/migrations/0033_serviceemailaddress.py
uktrade/staff-sso
c23da74415befdaed60649a9a940b1ba8331581e
[ "MIT" ]
7
2018-07-30T16:18:52.000Z
2022-03-21T12:58:20.000Z
sso/user/migrations/0033_serviceemailaddress.py
uktrade/staff-sso
c23da74415befdaed60649a9a940b1ba8331581e
[ "MIT" ]
55
2017-06-26T12:49:01.000Z
2022-03-09T15:48:49.000Z
sso/user/migrations/0033_serviceemailaddress.py
uktrade/staff-sso
c23da74415befdaed60649a9a940b1ba8331581e
[ "MIT" ]
1
2020-05-28T07:17:26.000Z
2020-05-28T07:17:26.000Z
# Generated by Django 2.2.13 on 2020-07-07 17:18 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ( "samlidp", "0003_samlapplication_allow_access_by_email_suffix_squashed_0004_auto_20200420_1246", ...
30.654545
97
0.434164
121
1,686
5.826446
0.512397
0.056738
0.079433
0.124823
0.310638
0.310638
0.310638
0.310638
0.310638
0.235461
0
0.044893
0.47153
1,686
54
98
31.222222
0.746352
0.027284
0
0.354167
1
0
0.171551
0.078144
0
0
0
0
0
1
0
false
0
0.041667
0
0.104167
0
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
ccb249d9a00a527d4b7dca3b444427909f3d2bdc
2,888
py
Python
docs/source/conf.py
steven-lang/SPFlow
be7492d4229857454b4e23596be7ba71d7af5960
[ "Apache-2.0" ]
199
2018-11-13T10:37:45.000Z
2022-02-06T17:07:28.000Z
docs/source/conf.py
steven-lang/SPFlow
be7492d4229857454b4e23596be7ba71d7af5960
[ "Apache-2.0" ]
46
2018-11-30T13:40:38.000Z
2022-01-22T21:05:07.000Z
docs/source/conf.py
steven-lang/SPFlow
be7492d4229857454b4e23596be7ba71d7af5960
[ "Apache-2.0" ]
78
2018-11-13T10:37:48.000Z
2022-03-14T21:34:13.000Z
# -- Path setup -------------------------------------------------------------- import os import sys sys.path.insert(0, os.path.abspath("../../src")) import sphinx_gallery # -- Project information ----------------------------------------------------- project = "SPFlow" copyright = "2020, Alejandro Molina, Antonio Verg...
30.083333
119
0.66482
329
2,888
5.568389
0.489362
0.049127
0.034935
0.039301
0.150655
0.08952
0.08952
0.08952
0.08952
0.08952
0
0.002398
0.133657
2,888
95
120
30.4
0.729816
0.230263
0
0.03125
0
0
0.371946
0.072398
0
0
0
0.010526
0
1
0.015625
false
0
0.0625
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ccb56e13be6ac2f4cab04e7dfb4e9f01eaf104d5
462
py
Python
scoreserver/scoreserver/highscore/views.py
petraszd/pyweek-14
14507cec732d3078c7feb3396efefaa26c7153bf
[ "MIT" ]
null
null
null
scoreserver/scoreserver/highscore/views.py
petraszd/pyweek-14
14507cec732d3078c7feb3396efefaa26c7153bf
[ "MIT" ]
null
null
null
scoreserver/scoreserver/highscore/views.py
petraszd/pyweek-14
14507cec732d3078c7feb3396efefaa26c7153bf
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.core import serializers from scoreserver.highscore.models import HighScore from scoreserver.highscore.forms import HighScoreForm def top10(request): top = HighScore.objects.order_by('-score')[:10] return HttpResponse(serializers.serialize('json', top)) def s...
25.666667
59
0.753247
57
462
6.070175
0.561404
0.057803
0.138728
0
0
0
0
0
0
0
0
0.015267
0.149351
462
17
60
27.176471
0.86514
0
0
0
0
0
0.021645
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ccb7effd6f362106af269725debffc96ab2eae60
2,672
py
Python
mid_software/HoneywellInterface.py
bluthen/isadore_electronics
c207be3bacd1fe360d70753410896610e23f216b
[ "Apache-2.0" ]
null
null
null
mid_software/HoneywellInterface.py
bluthen/isadore_electronics
c207be3bacd1fe360d70753410896610e23f216b
[ "Apache-2.0" ]
null
null
null
mid_software/HoneywellInterface.py
bluthen/isadore_electronics
c207be3bacd1fe360d70753410896610e23f216b
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2019 Dan Elliott, Russell Valentine # # 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 appl...
33.822785
107
0.739147
370
2,672
5.267568
0.464865
0.030785
0.041047
0.023089
0.062596
0
0
0
0
0
0
0.031648
0.148578
2,672
78
108
34.25641
0.825055
0.351048
0
0
0
0
0.007034
0
0
0
0.017585
0.012821
0
1
0.181818
false
0
0.068182
0.090909
0.477273
0
0
0
0
null
0
0
0
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
ccb9bc6a2e0686fa273a35cc3eb37d2f0dbf5e67
1,292
py
Python
wotd-tomorrow.py
mwbetrg/englishdb
3cbeb0aa62e906e9a654a0699330c90f678e3e6e
[ "CC0-1.0" ]
null
null
null
wotd-tomorrow.py
mwbetrg/englishdb
3cbeb0aa62e906e9a654a0699330c90f678e3e6e
[ "CC0-1.0" ]
null
null
null
wotd-tomorrow.py
mwbetrg/englishdb
3cbeb0aa62e906e9a654a0699330c90f678e3e6e
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python #Created : Sat 25 Jul 2015 09:46:47 PM UTC #Last Modified : Sat 25 Jul 2015 10:00:25 PM UTC import os import sys #qpy:2 #qpy:console import site from peewee import * import datetime #database = SqliteDatabase('english-notes-exercises.sqlite', **{}) database = SqliteDatabase('/storage/extSdCard/en...
22.275862
94
0.667183
170
1,292
5.052941
0.435294
0.136205
0.178114
0.090803
0.337602
0.168801
0.168801
0.104773
0.104773
0
0
0.024952
0.193498
1,292
57
95
22.666667
0.799424
0.143189
0
0.333333
0
0
0.080073
0.053685
0
0
0
0
0
0
null
null
0
0.138889
null
null
0.027778
0
0
0
null
0
0
0
0
0
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
ccc621f6647d1a55259947b024a909282f5a3a10
213
py
Python
tests/rep/gcd.py
GillesArcas/cws
8a060529f9baa29b979089fe15b2199f65ef2ded
[ "MIT" ]
13
2018-10-27T23:59:50.000Z
2020-10-07T04:48:17.000Z
tests/rep/gcd.py
GillesArcas/cws
8a060529f9baa29b979089fe15b2199f65ef2ded
[ "MIT" ]
null
null
null
tests/rep/gcd.py
GillesArcas/cws
8a060529f9baa29b979089fe15b2199f65ef2ded
[ "MIT" ]
2
2018-03-20T22:57:10.000Z
2018-10-28T17:00:08.000Z
# greatest common divisor def gcd(a, b): c = 1 while c != 0: c = a % b if c == 0: return b else: a = b b = c a = 8136 b = 492 print(gcd(a, b))
14.2
25
0.370892
33
213
2.393939
0.515152
0.101266
0.126582
0
0
0
0
0
0
0
0
0.097087
0.516432
213
14
26
15.214286
0.669903
0.107981
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.166667
0.083333
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
cccafc8034e06f7a4a9ff6052bce090f23b05e56
810
py
Python
incidentes/migraciones2/0002_auto_20181020_0802.py
Alvaruz/ATMS
962a1967e1654efe4d448891deb7881fa3addf85
[ "MIT" ]
null
null
null
incidentes/migraciones2/0002_auto_20181020_0802.py
Alvaruz/ATMS
962a1967e1654efe4d448891deb7881fa3addf85
[ "MIT" ]
null
null
null
incidentes/migraciones2/0002_auto_20181020_0802.py
Alvaruz/ATMS
962a1967e1654efe4d448891deb7881fa3addf85
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2018-10-20 11:02 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('incidentes', '0001_initial'), ] operations = [ migrations.CreateModel( name='Categoria', ...
28.928571
114
0.588889
80
810
5.875
0.6625
0.051064
0.059574
0.093617
0
0
0
0
0
0
0
0.036082
0.281481
810
27
115
30
0.771478
0.055556
0
0.095238
1
0
0.114024
0
0
0
0
0
0
1
0
false
0
0.095238
0
0.238095
0
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
ccceeb296b1c6e13b42950ebcc6188fe66771b23
564
py
Python
set_1/p1_6.py
PedroBernini/ipl-2021
048e19b89cb20d172b0b617ae89f7afa206dd770
[ "MIT" ]
null
null
null
set_1/p1_6.py
PedroBernini/ipl-2021
048e19b89cb20d172b0b617ae89f7afa206dd770
[ "MIT" ]
null
null
null
set_1/p1_6.py
PedroBernini/ipl-2021
048e19b89cb20d172b0b617ae89f7afa206dd770
[ "MIT" ]
null
null
null
# Programa para aproximar o valor de π. p_d = 151 def isValidCell(cell, pd): return (cell[0] ** 2 + cell[1] ** 2) ** 0.5 <= pd / 2 def getNumberValidCells(pd): validCells = 0 limit = int(pd / 2) for j in range(limit, -(limit + 1), -1): for i in range(-limit, limit + 1): if isValid...
26.857143
60
0.618794
76
564
4.552632
0.460526
0.017341
0.069364
0.098266
0.104046
0
0
0
0
0
0
0.042654
0.251773
564
21
61
26.857143
0.777251
0.065603
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0.133333
0.4
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
aea18dc76905600d67ea212779cda3df006e78cd
650
py
Python
power/coding-challenges/hour-of-python/gerund-slicing.py
TuxedoMeow/Hello-World
143d3aad30b800b8b97fe6860c4b1b21128783d2
[ "MIT" ]
null
null
null
power/coding-challenges/hour-of-python/gerund-slicing.py
TuxedoMeow/Hello-World
143d3aad30b800b8b97fe6860c4b1b21128783d2
[ "MIT" ]
null
null
null
power/coding-challenges/hour-of-python/gerund-slicing.py
TuxedoMeow/Hello-World
143d3aad30b800b8b97fe6860c4b1b21128783d2
[ "MIT" ]
null
null
null
""" Make a function gerund_infinitive that, given a string ending in "ing", returns the rest of the string prefixed with "to ". If the string doesn't end in "ing", return "That's not a gerund!" >>>> gerund_infinitive("building") to build >>>> gerund_infinitive("build") That's not a gerund! """ def gerund_infinitive(s...
25
71
0.68
98
650
4.44898
0.418367
0.220183
0.073395
0.082569
0.188073
0.188073
0
0
0
0
0
0.003781
0.186154
650
26
72
25
0.820416
0.584615
0
0
0
0
0.173333
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
0.285714
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
aea3537fbb819efbd0888e08d207529fcab19bc1
1,034
py
Python
fxwebgen/utils.py
tiliado/fxwebgen
5d1c5120b27fc13b6b45ee4e0017771271c3c3e0
[ "BSD-2-Clause" ]
null
null
null
fxwebgen/utils.py
tiliado/fxwebgen
5d1c5120b27fc13b6b45ee4e0017771271c3c3e0
[ "BSD-2-Clause" ]
13
2018-08-06T15:25:50.000Z
2019-04-14T14:09:22.000Z
fxwebgen/utils.py
tiliado/fxwebgen
5d1c5120b27fc13b6b45ee4e0017771271c3c3e0
[ "BSD-2-Clause" ]
null
null
null
import os from argparse import HelpFormatter from typing import Optional def file_mtime(path: str) -> float: try: return os.path.getmtime(path) except OSError: return -1 def abspath(base_path: Optional[str], path: str) -> str: assert path, f'Path must be specified.' assert base_path ...
28.722222
107
0.660542
144
1,034
4.659722
0.395833
0.083458
0.035768
0
0
0
0
0
0
0
0
0.00125
0.226306
1,034
35
108
29.542857
0.8375
0.029014
0
0
0
0
0.065868
0
0
0
0
0
0.076923
1
0.153846
false
0
0.115385
0.038462
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
aea49bf8b7b82a1b4a3c9a79d425545c79d032d4
907
py
Python
month01/day11/exercise03.py
Amiao-miao/all-codes
ec50036d42d40086cac5fddf6baf4de18ac91e55
[ "Apache-2.0" ]
1
2021-02-02T02:17:37.000Z
2021-02-02T02:17:37.000Z
month01/day11/exercise03.py
Amiao-miao/all-codes
ec50036d42d40086cac5fddf6baf4de18ac91e55
[ "Apache-2.0" ]
null
null
null
month01/day11/exercise03.py
Amiao-miao/all-codes
ec50036d42d40086cac5fddf6baf4de18ac91e55
[ "Apache-2.0" ]
null
null
null
""" 练习1:以面向对象思想,描述下列情景. 小明请保洁打扫卫生 """ #小明每次雇佣新保洁 """ class Client: def __init__(self, name=""): self.name=name def engage(self): print("雇佣") cleaner=Cleaner() cleaner.clean() class Cleaner: def clean(self): print("打扫") xiaoming=Client("小明") xiaoming.engage() """ #...
14.868852
32
0.578831
101
907
5.039604
0.217822
0.094303
0.082515
0.10609
0.717092
0.664047
0.664047
0.664047
0.664047
0.589391
0
0.001495
0.262404
907
60
33
15.116667
0.759342
0.067255
0
0
0
0
0.021739
0
0
0
0
0
0
1
0.25
false
0
0
0
0.416667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
aea8c94fb31d75971f9fee73302c8f8730e33eab
959
py
Python
jumping_numbers.py
zuhi/Programming
f5f5c598add7a0fee3c81077b7d8365468718012
[ "MIT" ]
null
null
null
jumping_numbers.py
zuhi/Programming
f5f5c598add7a0fee3c81077b7d8365468718012
[ "MIT" ]
null
null
null
jumping_numbers.py
zuhi/Programming
f5f5c598add7a0fee3c81077b7d8365468718012
[ "MIT" ]
null
null
null
#A number is called as a Jumping Number if all adjacent digits in it differ by 1. #The difference between ‘9’ and ‘0’ is not considered as 1. All single digit numbers are considered as Jumping Numbers. #For example 7, 8987 and 4343456 are Jumping numbers but 796 and 89098 are not. #Given a positive number x, print all...
25.918919
122
0.593326
163
959
3.460123
0.435583
0.074468
0.031915
0.039007
0
0
0
0
0
0
0
0.070254
0.302398
959
36
123
26.638889
0.772795
0.35245
0
0.068966
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.034483
0
0
0
null
0
0
0
0
0
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
aeb2840572a2269f0e7b3c544991b77030373cd4
1,029
py
Python
July21/EssentialPython/classesandobjects/calc.py
pythonbykhaja/intesivepython
d3074f35bf36a04d4d1d9b4ff4631733d40b5817
[ "Apache-2.0" ]
2
2021-05-29T18:21:50.000Z
2021-07-24T13:03:30.000Z
July21/EssentialPython/classesandobjects/calc.py
pythonbykhaja/intesivepython
d3074f35bf36a04d4d1d9b4ff4631733d40b5817
[ "Apache-2.0" ]
null
null
null
July21/EssentialPython/classesandobjects/calc.py
pythonbykhaja/intesivepython
d3074f35bf36a04d4d1d9b4ff4631733d40b5817
[ "Apache-2.0" ]
2
2021-05-25T10:19:54.000Z
2021-09-21T12:20:48.000Z
class Calculator: def __init__(self) -> None: self.memory = list() def add(self, *args): result = 0 for number in args: result += number self.append_to_memory(result) return result def multiply(self, *args): result = 1 for number in args:...
22.369565
38
0.589893
134
1,029
4.395522
0.253731
0.067912
0.118846
0.122241
0.470289
0.470289
0.470289
0.470289
0.455008
0.455008
0
0.033473
0.303207
1,029
46
39
22.369565
0.788006
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0
0.027778
0.388889
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
aeb77d43ce9311e9a2186c3c62c15c770e3abcc7
2,324
py
Python
aranyapythonpb/rpcpb/edgedevice_pb2_grpc.py
arhat-dev/aranya-proto
edaa0fc66ec4e7a09da37bdf9d9daa77c77a3195
[ "Apache-2.0" ]
null
null
null
aranyapythonpb/rpcpb/edgedevice_pb2_grpc.py
arhat-dev/aranya-proto
edaa0fc66ec4e7a09da37bdf9d9daa77c77a3195
[ "Apache-2.0" ]
5
2020-10-10T15:37:52.000Z
2020-12-18T21:03:25.000Z
aranyapythonpb/rpcpb/edgedevice_pb2_grpc.py
arhat-dev/aranya-proto
edaa0fc66ec4e7a09da37bdf9d9daa77c77a3195
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc import proto_pb2 as proto__pb2 class EdgeDeviceStub(object): """Missing associated documentation comment in .proto file.""" def __init__(self, channel...
34.686567
99
0.657917
232
2,324
6.344828
0.396552
0.043478
0.081522
0.100543
0.146739
0.146739
0.146739
0.11413
0.077446
0
0
0.00464
0.258176
2,324
66
100
35.212121
0.849188
0.197074
0
0
1
0
0.062465
0.025428
0
0
0
0
0
1
0.095238
false
0
0.047619
0.02381
0.238095
0
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
aeb77e9c2b6056607932518122748345322c648e
226
py
Python
Source/game_data.py
JFiedler23/PyInvaders
15686b1069f6877ff8affe997c18cbf02be01d9c
[ "MIT" ]
null
null
null
Source/game_data.py
JFiedler23/PyInvaders
15686b1069f6877ff8affe997c18cbf02be01d9c
[ "MIT" ]
null
null
null
Source/game_data.py
JFiedler23/PyInvaders
15686b1069f6877ff8affe997c18cbf02be01d9c
[ "MIT" ]
null
null
null
class GameData: def __init__(self, score=0, curr_level=1, alien_speed=850, alien_y=40): self.score = score self.curr_level = curr_level self.alien_speed = alien_speed self.alien_y = alien_y
32.285714
75
0.663717
34
226
4.029412
0.441176
0.19708
0
0
0
0
0
0
0
0
0
0.041176
0.247788
226
6
76
37.666667
0.764706
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
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
aecb102f022916db574b7be202e95d8dd5c29629
3,943
py
Python
src/runner.py
tandriamil/bcs-aes256-ctr
92ee1bf4088047a521be3e17849d2002f86ef83f
[ "MIT" ]
null
null
null
src/runner.py
tandriamil/bcs-aes256-ctr
92ee1bf4088047a521be3e17849d2002f86ef83f
[ "MIT" ]
null
null
null
src/runner.py
tandriamil/bcs-aes256-ctr
92ee1bf4088047a521be3e17849d2002f86ef83f
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Script for generating the data set (128b, 256b, 1kB, 1MB, 100MB, 1GB). Context : Projet BCS - Master 2 SSI - Istic (Univ. Rennes1) Authors : Andriamilanto Tompoariniaina and Genevey-metat Christophe This script also executes the time measurement into 4 contexts => Sequential encryption => S...
26.286667
72
0.648998
473
3,943
5.249471
0.338266
0.050745
0.020942
0.028997
0.383407
0.339509
0.339509
0.339509
0.324607
0.290777
0
0.023248
0.247274
3,943
149
73
26.463087
0.813342
0.233071
0
0.271739
0
0
0.198927
0.016773
0
0
0
0
0
1
0.054348
false
0.065217
0.054348
0
0.119565
0.065217
0
0
0
null
0
0
0
0
0
0
0
0
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
aecb1cc348f4fa766ede95f585feb238de13480e
323
py
Python
src/sentry/api/bases/incident.py
overquota/sentry
2cb3a3e40ca0b7ca3308deb0d1d9c436ce8aaeb8
[ "BSD-3-Clause" ]
1
2019-08-28T11:03:13.000Z
2019-08-28T11:03:13.000Z
src/sentry/api/bases/incident.py
overquota/sentry
2cb3a3e40ca0b7ca3308deb0d1d9c436ce8aaeb8
[ "BSD-3-Clause" ]
null
null
null
src/sentry/api/bases/incident.py
overquota/sentry
2cb3a3e40ca0b7ca3308deb0d1d9c436ce8aaeb8
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from sentry.api.bases.organization import OrganizationPermission class IncidentPermission(OrganizationPermission): scope_map = { 'GET': ['org:read', 'org:write', 'org:admin'], 'POST': ['org:write', 'org:admin'], 'PUT': ['org:write', 'org:admin'], ...
26.916667
64
0.656347
34
323
6.058824
0.588235
0.116505
0.160194
0.23301
0
0
0
0
0
0
0
0
0.182663
323
11
65
29.363636
0.780303
0
0
0
0
0
0.22291
0
0
0
0
0
0
1
0
false
0
0.25
0
0.5
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
aecd75ddea8a72cd29fdf698b2c06283b6425ae0
3,339
py
Python
tests/scrubber/sensitive_string_scrubber_test.py
cgruber/make-open-easy
b433ba61d2f7b32d06eb7df8db38ba545827ad5e
[ "Apache-2.0" ]
5
2016-05-08T00:55:46.000Z
2020-03-14T06:57:30.000Z
tests/scrubber/sensitive_string_scrubber_test.py
cgruber/make-open-easy
b433ba61d2f7b32d06eb7df8db38ba545827ad5e
[ "Apache-2.0" ]
null
null
null
tests/scrubber/sensitive_string_scrubber_test.py
cgruber/make-open-easy
b433ba61d2f7b32d06eb7df8db38ba545827ad5e
[ "Apache-2.0" ]
10
2015-06-08T21:15:13.000Z
2021-10-16T15:06:01.000Z
#!/usr/bin/env python # Copyright 2009 Google Inc. All Rights Reserved. """Tests for finding sensitive strings.""" __author__ = 'nicksantos@google.com (Nick Santos)' from google.apputils import resources from google.apputils import basetest from moe import config_utils from moe.scrubber import sensitive_string_scru...
35.147368
78
0.723869
384
3,339
6.171875
0.291667
0.120253
0.12827
0.070886
0.41097
0.329958
0.291983
0.251055
0.251055
0.251055
0
0.007815
0.156933
3,339
94
79
35.521277
0.834103
0.069182
0
0.09375
0
0
0.273875
0.07899
0
0
0
0
0.546875
1
0.171875
false
0
0.078125
0
0.28125
0
0
0
0
null
0
0
0
0
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
aece2bdfc042a4232c54ab81699535275fdda1c5
299
py
Python
constants.py
Kaoline/ShinobiTool
c417b254808356978613ef7227771f6da1b6ebd4
[ "MIT" ]
null
null
null
constants.py
Kaoline/ShinobiTool
c417b254808356978613ef7227771f6da1b6ebd4
[ "MIT" ]
5
2018-03-15T22:49:18.000Z
2018-05-15T03:25:58.000Z
constants.py
Kaoline/ShinobiTool
c417b254808356978613ef7227771f6da1b6ebd4
[ "MIT" ]
null
null
null
# file --constants.py-- waiting_message = "Opération en cours... Ça peut être long, et ça bloque la fenêtre." default_search_file = "Shinobis.txt" default_receivers_file = "Destinataires.txt" default_moles_file = "Ennemis.txt" default_message_file = "Message.txt" default_config_file = "Config.txt"
37.375
85
0.779264
42
299
5.285714
0.595238
0.18018
0
0
0
0
0
0
0
0
0
0
0.107023
299
8
86
37.375
0.831461
0.070234
0
0
0
0
0.454874
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aed0a8057be813c387172316ecc568aac02b9b8b
2,979
py
Python
src/bleanser/modules/firefox.py
karlicoss/bleanser
fb0fb8b41769086723cb5b9854ebc93012bce279
[ "MIT" ]
13
2021-01-30T05:50:38.000Z
2022-02-11T09:27:42.000Z
src/bleanser/modules/firefox.py
karlicoss/bleanser
fb0fb8b41769086723cb5b9854ebc93012bce279
[ "MIT" ]
null
null
null
src/bleanser/modules/firefox.py
karlicoss/bleanser
fb0fb8b41769086723cb5b9854ebc93012bce279
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from pathlib import Path from sqlite3 import Connection from bleanser.core import logger from bleanser.core.utils import get_tables from bleanser.core.sqlite import SqliteNormaliser, Tool class Normaliser(SqliteNormaliser): DELETE_DOMINATED = True MULTIWAY = True def __init__(sel...
38.192308
123
0.605237
342
2,979
5.090643
0.511696
0.032165
0.03676
0.025273
0.067777
0.044802
0.044802
0
0
0
0
0.004327
0.301779
2,979
77
124
38.688312
0.832692
0.299094
0
0.038462
0
0
0.211315
0.033849
0
0
0
0.012987
0.038462
1
0.057692
false
0
0.115385
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
aed2f8223f76f5f3ee0ba6a87ac53e82ca453e7f
7,016
py
Python
HarTex/cmds/censor.py
HTG-YT/hartex-discord.py
71affb588df014b3eb5c85f3f7a332cff6a379dc
[ "MIT" ]
4
2020-11-14T19:06:00.000Z
2022-01-15T05:52:39.000Z
HarTex/cmds/censor.py
HTG-YT/hartex-discord.py
71affb588df014b3eb5c85f3f7a332cff6a379dc
[ "MIT" ]
null
null
null
HarTex/cmds/censor.py
HTG-YT/hartex-discord.py
71affb588df014b3eb5c85f3f7a332cff6a379dc
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import re import yaml from better_profanity import profanity from core.classes import * def is_zalgo_nickname_enabled(guild_id): with open(f'configurations/{guild_id}_config.yaml', 'r') as zalgo_prevention_enabled: accessor = yaml.safe_load(zalgo_prevent...
29.855319
114
0.616733
779
7,016
5.30552
0.125802
0.049117
0.021776
0.05565
0.523349
0.417372
0.36632
0.309218
0.295185
0.281878
0
0.004389
0.28549
7,016
234
115
29.982906
0.820068
0
0
0.359477
0
0
0.144954
0.059721
0
0
0
0
0
1
0.071895
false
0.058824
0.039216
0
0.189542
0
0
0
0
null
0
0
0
0
0
0
0
0
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
aed3e7c243bb6597c123a8e1add521f93b99012e
916
py
Python
day2/passValidator.py
IvantheDugtrio/adventofcode2020
7d0867c36087a553c6639246ca437ec2b598915c
[ "MIT" ]
null
null
null
day2/passValidator.py
IvantheDugtrio/adventofcode2020
7d0867c36087a553c6639246ca437ec2b598915c
[ "MIT" ]
null
null
null
day2/passValidator.py
IvantheDugtrio/adventofcode2020
7d0867c36087a553c6639246ca437ec2b598915c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys validCount = 0 lineCount = 0 with open(sys.argv[1],'r') as fp: for line in fp: lineCount+=1 criteria = line.split(": ")[0] password = line.split(": ")[1].strip() keyChar = criteria.split(" ")[1] keyRange = criteria.split(" ")[0] minK...
33.925926
68
0.568777
102
916
5.107843
0.411765
0.06142
0.06142
0.095969
0
0
0
0
0
0
0
0.028788
0.279476
916
26
69
35.230769
0.760606
0.162664
0
0
0
0
0.080158
0
0
0
0
0
0
1
0
false
0.368421
0.052632
0
0.052632
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
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
aeda1597ff85d65a31a9e718c3338d309d642f33
1,989
py
Python
src/sendresults.py
ldolberg/the_port_ors_hdx
620c5e4df5d2f3a4f2e162d44e2e2941e143179d
[ "Apache-2.0" ]
null
null
null
src/sendresults.py
ldolberg/the_port_ors_hdx
620c5e4df5d2f3a4f2e162d44e2e2941e143179d
[ "Apache-2.0" ]
null
null
null
src/sendresults.py
ldolberg/the_port_ors_hdx
620c5e4df5d2f3a4f2e162d44e2e2941e143179d
[ "Apache-2.0" ]
null
null
null
import pandas as pd import json def return_jsonlist(district,lat,lon,tag,json_list): # -- open 'Nepal_F_Tagged.csv' new_df = pd.read_csv('../data/Nepal/Nepal_F_Tagged.csv') total, percentage = total_percent_from_district_tag(district, tag, df) # -- get district from order_districts # -- use get_co...
37.528302
181
0.560583
224
1,989
4.839286
0.40625
0.04428
0.02214
0.027675
0.073801
0.073801
0.073801
0.073801
0
0
0
0.002201
0.314731
1,989
52
182
38.25
0.793103
0
0
0.068966
0
0
0.099711
0.023121
0
0
0
0
0
0
null
null
0
0.068966
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
aedab57e7f9d62ccae086660bfe781321b33b1b3
3,781
py
Python
coviddata.py
Paul567/MBCovidVaxTracker
6a99c0428227e0f1ffe9bd30dd7b332aa651db33
[ "MIT" ]
null
null
null
coviddata.py
Paul567/MBCovidVaxTracker
6a99c0428227e0f1ffe9bd30dd7b332aa651db33
[ "MIT" ]
null
null
null
coviddata.py
Paul567/MBCovidVaxTracker
6a99c0428227e0f1ffe9bd30dd7b332aa651db33
[ "MIT" ]
null
null
null
import requests import json class CovidData: __data = [{}] __province = '' __population = -1 def __init__(self, province): self.__province = province.upper() reports = json.loads( requests.get( 'https://api.covid19tracker.ca/reports/province/' + ...
28.428571
87
0.587411
397
3,781
5.241814
0.176322
0.095147
0.107641
0.086497
0.363287
0.257568
0.114368
0.042287
0
0
0
0.005652
0.298069
3,781
132
88
28.643939
0.778448
0
0
0.203704
0
0
0.251587
0.065344
0
0
0
0
0
1
0.175926
false
0
0.018519
0.148148
0.398148
0.12963
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
aef67aa6f36b437d1c47ac8b84a20cdd196ccfe0
683
py
Python
racing_models/dronet_NASNetMobileAPI.py
gengliangyu2008/Intelligent-Navigation-Systems
b978ea48d8e8f5fe61a272c74741a9693eb1a997
[ "MIT" ]
null
null
null
racing_models/dronet_NASNetMobileAPI.py
gengliangyu2008/Intelligent-Navigation-Systems
b978ea48d8e8f5fe61a272c74741a9693eb1a997
[ "MIT" ]
null
null
null
racing_models/dronet_NASNetMobileAPI.py
gengliangyu2008/Intelligent-Navigation-Systems
b978ea48d8e8f5fe61a272c74741a9693eb1a997
[ "MIT" ]
null
null
null
from tensorflow.keras import Model from tensorflow.python.keras.applications import NASNetMobile class Dronet(Model): def __init__(self, num_outputs, include_top=True): super(Dronet, self).__init__() self.include_top = include_top self.create_model(num_outputs) def call(self, img): ...
32.52381
126
0.698389
87
683
5.229885
0.413793
0.10989
0.061538
0.092308
0
0
0
0
0
0
0
0.012915
0.206442
683
21
127
32.52381
0.826568
0.007321
0
0
0
0
0.125554
0
0
0
0
0
0
1
0.214286
false
0
0.142857
0
0.5
0.142857
0
0
0
null
0
0
0
0
0
0
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
aef6f58c8b775a7bd82e30648083c9377413253f
1,115
py
Python
any_all.py
VladimirsHisamutdinovs/Advanced_Python_Operations
509c219f70adcbe9b3dedd71bff819494bab9c83
[ "Apache-2.0" ]
null
null
null
any_all.py
VladimirsHisamutdinovs/Advanced_Python_Operations
509c219f70adcbe9b3dedd71bff819494bab9c83
[ "Apache-2.0" ]
null
null
null
any_all.py
VladimirsHisamutdinovs/Advanced_Python_Operations
509c219f70adcbe9b3dedd71bff819494bab9c83
[ "Apache-2.0" ]
null
null
null
def valid_rgb(rgb): #check if rgb input tuple is within 0-255 for val in rgb: if not 0 <= val <= 255: return False return True # print(valid_rgb((255, 100, 255))) # print(valid_rgb((255, 100, 256))) def valid_rgb(rgb): #check if rgb input tuple is within 0-255 v...
22.3
47
0.567713
159
1,115
3.886792
0.188679
0.116505
0.126214
0.15534
0.699029
0.68123
0.68123
0.622977
0.622977
0.622977
0
0.104849
0.315695
1,115
50
48
22.3
0.705111
0.293274
0
0.586207
0
0
0.05472
0
0
0
0
0
0
1
0.172414
false
0
0
0.068966
0.413793
0.137931
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
aef93964626f642a2b597ffb5eafc0b08177f431
156
py
Python
records/fib_rec.py
Aniket-Wali/Measure-Of-Document-Similarities-MODS-
d6632082bdd114edbb072e0ffaa0397804e40dce
[ "MIT" ]
null
null
null
records/fib_rec.py
Aniket-Wali/Measure-Of-Document-Similarities-MODS-
d6632082bdd114edbb072e0ffaa0397804e40dce
[ "MIT" ]
null
null
null
records/fib_rec.py
Aniket-Wali/Measure-Of-Document-Similarities-MODS-
d6632082bdd114edbb072e0ffaa0397804e40dce
[ "MIT" ]
null
null
null
@profile def nthfib(n): if n <= 0: return 0 elif n == 1: return 1 else: return nthfib(n-1) + nthfib(n-2) for i in range(1,11): print(nthfib(i))
12
34
0.596154
31
156
3
0.548387
0.225806
0
0
0
0
0
0
0
0
0
0.07563
0.237179
156
12
35
13
0.705882
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
0
0.4
0.1
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
aef9b2f279feade95072a848ba9cf1a71ed9c612
348
py
Python
download_model.py
kylebarz/udacity-item-classifier
e1c6b9bbee4cf796614736c93f0b688ea0f72f64
[ "MIT" ]
null
null
null
download_model.py
kylebarz/udacity-item-classifier
e1c6b9bbee4cf796614736c93f0b688ea0f72f64
[ "MIT" ]
4
2021-06-08T20:59:16.000Z
2022-03-12T00:16:24.000Z
download_model.py
kylebarz/udacity-item-classifier
e1c6b9bbee4cf796614736c93f0b688ea0f72f64
[ "MIT" ]
null
null
null
from io import BytesIO from urllib.request import urlopen from zipfile import ZipFile download_url = 'https://productid.azurewebsites.net/static/model_download/checkpoint-19.zip' with urlopen(download_url) as zipresp: with ZipFile(BytesIO(zipresp.read())) as zfile: zfile.extractall('model/') prin...
34.8
93
0.758621
45
348
5.8
0.6
0.084291
0
0
0
0
0
0
0
0
0
0.006689
0.140805
348
10
94
34.8
0.866221
0
0
0
0
0
0.305882
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
aefb0c917de9b4594e09a37b2a9e912908ebe7d2
1,298
py
Python
dynamite.py
coolioasjulio/Rock-Paper-Scissors-Royale
a75dfdb6bbc62c1a6bc493252f79b97f2aecc325
[ "MIT" ]
null
null
null
dynamite.py
coolioasjulio/Rock-Paper-Scissors-Royale
a75dfdb6bbc62c1a6bc493252f79b97f2aecc325
[ "MIT" ]
null
null
null
dynamite.py
coolioasjulio/Rock-Paper-Scissors-Royale
a75dfdb6bbc62c1a6bc493252f79b97f2aecc325
[ "MIT" ]
null
null
null
# RPS Bot import trutheyfalseybot as tfb name = 'dynamite' class RPSBot(object): name = name def __init__(self): self.bot = tfb.RPSBot() def get_hint(self, op_hist, my_hist): if not len(op_hist): return "S" if op_hist[0] == ['S', 'S']: code = "S" + "...
40.5625
151
0.540062
193
1,298
3.378238
0.259067
0.138037
0.082822
0.115031
0.662577
0.622699
0.622699
0.622699
0.54908
0.54908
0
0.017582
0.298921
1,298
32
152
40.5625
0.698901
0.025424
0
0.444444
0
0
0.026128
0
0.074074
0
0
0
0
1
0.111111
false
0
0.111111
0
0.518519
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
4e0dcb3e733dbdb1813c93a151b9557591236bdc
8,943
py
Python
astro_fixer.py
boada/scripts
3b25d6214b9f176cd6a1725284560ef4bb2a0a28
[ "MIT" ]
null
null
null
astro_fixer.py
boada/scripts
3b25d6214b9f176cd6a1725284560ef4bb2a0a28
[ "MIT" ]
null
null
null
astro_fixer.py
boada/scripts
3b25d6214b9f176cd6a1725284560ef4bb2a0a28
[ "MIT" ]
null
null
null
import subprocess import os def hms2decimal(RAString, delimiter): """Converts a delimited string of Hours:Minutes:Seconds format into decimal degrees. @type RAString: string @param RAString: coordinate string in H:M:S format @type delimiter: string @param delimiter: delimiter character in RASt...
28.034483
79
0.556525
1,183
8,943
4.200338
0.16399
0.03381
0.01932
0.01932
0.510566
0.472328
0.430066
0.36929
0.349165
0.339304
0
0.058493
0.304149
8,943
318
80
28.122642
0.739997
0.053226
0
0.343434
0
0
0.06119
0
0
0
0
0
0
0
null
null
0
0.010101
null
null
0.065657
0
0
0
null
0
0
0
0
0
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
4e0e6c1db06e5cacecd106d877357e75467baa5d
361
py
Python
basiccomfundamental/List2.py
KApilBD/python
9b5c11418c396fcdb10d9615d5d28c3ccdea7b14
[ "MIT" ]
null
null
null
basiccomfundamental/List2.py
KApilBD/python
9b5c11418c396fcdb10d9615d5d28c3ccdea7b14
[ "MIT" ]
null
null
null
basiccomfundamental/List2.py
KApilBD/python
9b5c11418c396fcdb10d9615d5d28c3ccdea7b14
[ "MIT" ]
null
null
null
aList = [0,1,2,3,4,5] bList = aList aList[2] = 'hello' print(aList == bList) print(aList is bList) print(aList) print(bList) cList = [6,5,4,3,2] dList = [] for num in cList: dList.append(num) print(cList == dList) #validate the contain only print(cList is dList) #validate address cLis...
13.37037
49
0.617729
57
361
3.912281
0.421053
0.134529
0.134529
0
0
0
0
0
0
0
0
0.054348
0.235457
361
26
50
13.884615
0.753623
0.113573
0
0
0
0
0.017123
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
4e1772725cdbc15b8dfaf72307ecc2c23c1b5495
3,328
py
Python
atalaia/explore.py
vallantin/atalaia
de9ac37ffb9f36cd3bd4503f823aeaee8bdbc982
[ "Apache-2.0" ]
null
null
null
atalaia/explore.py
vallantin/atalaia
de9ac37ffb9f36cd3bd4503f823aeaee8bdbc982
[ "Apache-2.0" ]
null
null
null
atalaia/explore.py
vallantin/atalaia
de9ac37ffb9f36cd3bd4503f823aeaee8bdbc982
[ "Apache-2.0" ]
1
2021-07-20T15:17:15.000Z
2021-07-20T15:17:15.000Z
# TODOS #-------------------------------------- # imports import matplotlib.pyplot as plt from atalaia.atalaia import Atalaia import numpy as np import networkx as nx class Explore: """Explore is used for text exploratory tasks. """ def __init__(self, language:str): """ Parameters ...
33.616162
127
0.59976
361
3,328
5.423823
0.307479
0.057201
0.033197
0.08427
0.235955
0.235955
0.235955
0.235955
0.202247
0.202247
0
0.012495
0.302584
3,328
98
128
33.959184
0.831107
0.234375
0
0.130435
0
0
0.01551
0
0
0
0
0.010204
0
1
0.130435
false
0
0.086957
0
0.326087
0
0
0
0
null
0
0
0
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
4e1e01f5fc19e283c3e43e88e39b93124edff2e7
902
py
Python
utils.py
yiluzhu/gomoku
4e67dad3c78d5b6f30cb1967691ac4a57e298c01
[ "MIT" ]
1
2020-10-14T12:56:09.000Z
2020-10-14T12:56:09.000Z
utils.py
yiluzhu/gomoku
4e67dad3c78d5b6f30cb1967691ac4a57e298c01
[ "MIT" ]
null
null
null
utils.py
yiluzhu/gomoku
4e67dad3c78d5b6f30cb1967691ac4a57e298c01
[ "MIT" ]
null
null
null
from constants import P2P_PIXELS, PIECE_RADIUS_PIXELS, BOARD_SIZE def index_to_pixel(x): """Given a point index, return the corresponding pixel. The Index can be either row or column""" return P2P_PIXELS + P2P_PIXELS * x def pixels_to_indices(pixel_x, pixel_y): """Given a point pixels, go throu...
42.952381
133
0.690687
133
902
4.473684
0.466165
0.094118
0.060504
0.053782
0
0
0
0
0
0
0
0.008746
0.239468
902
20
134
45.1
0.858601
0.398004
0
0
0
0
0
0
0
0
0
0.05
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
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
4e1f5947ad24b40cd5b4110c750626c5d5a7f76a
1,592
py
Python
run_novalid.py
zerebom/santander
9cdc8b07a2685973e296e50100e4a9be065ef928
[ "MIT" ]
null
null
null
run_novalid.py
zerebom/santander
9cdc8b07a2685973e296e50100e4a9be065ef928
[ "MIT" ]
null
null
null
run_novalid.py
zerebom/santander
9cdc8b07a2685973e296e50100e4a9be065ef928
[ "MIT" ]
null
null
null
from scripts.data_augumation import augmation from sklearn.model_selection import KFold, StratifiedKFold from models.lgbm import train_and_predict_novalid from logs.logger import log_best from utils import load_datasets, load_target from sklearn.model_selection import train_test_split import pandas as pd import ...
26.098361
80
0.746859
239
1,592
4.76569
0.393305
0.035119
0.042142
0.065847
0.14223
0.115013
0.0518
0.045654
0.045654
0.045654
0
0.003626
0.133794
1,592
60
81
26.533333
0.822335
0.052764
0
0
0
0.02381
0.135135
0.10395
0
0
0
0
0
1
0
false
0
0.357143
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1