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
e2a3a5e193462cd9cfc3f8e77576ef311f0d6d70
1,050
py
Python
async_sched/client/request_schedules.py
justengel/async_sched
f980722d51d15025522b2265426b0188ff368418
[ "MIT" ]
1
2020-10-19T13:36:20.000Z
2020-10-19T13:36:20.000Z
async_sched/client/request_schedules.py
justengel/async_sched
f980722d51d15025522b2265426b0188ff368418
[ "MIT" ]
null
null
null
async_sched/client/request_schedules.py
justengel/async_sched
f980722d51d15025522b2265426b0188ff368418
[ "MIT" ]
null
null
null
""" module to run with the -m flag python -m async_sched.client.request_schedules """ import argparse from async_sched.client.client import request_schedules from async_sched.utils import DEFAULT_HOST, DEFAULT_PORT __all__ = ['NAME', 'get_argparse', 'main'] NAME = 'request_schedules' def get_argparse(host: str ...
26.25
117
0.70381
151
1,050
4.655629
0.357616
0.091038
0.059744
0.051209
0.196302
0.196302
0.102418
0.102418
0
0
0
0
0.175238
1,050
39
118
26.923077
0.811778
0.074286
0
0
0
0
0.139148
0
0
0
0
0
0
1
0.1
false
0
0.15
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2a4885ec926f3d640fc765abc70c06983834ccb
2,156
py
Python
sns/api/reddit/reddit.py
kylepw/panner
482ef8e8c1e8d9464d7dc8e4df5b5d9b58e83d35
[ "MIT" ]
2
2019-07-20T01:48:20.000Z
2019-11-15T06:50:54.000Z
sns/api/reddit/reddit.py
kylepw/panner
482ef8e8c1e8d9464d7dc8e4df5b5d9b58e83d35
[ "MIT" ]
5
2020-02-12T08:58:06.000Z
2021-09-22T17:56:42.000Z
sns/api/reddit/reddit.py
kylepw/panner
482ef8e8c1e8d9464d7dc8e4df5b5d9b58e83d35
[ "MIT" ]
null
null
null
from datetime import datetime import logging import os from praw import Reddit as PrawReddit from prawcore.exceptions import NotFound import pytz logger = logging.getLogger(__name__) class Reddit: def __init__(self, client_id=None, client_secret=None, user_agent=None): self.client_id = client_id or os.ge...
35.933333
84
0.621521
251
2,156
5.155378
0.334661
0.037094
0.027821
0.037094
0.140649
0.037094
0
0
0
0
0
0.000651
0.28757
2,156
59
85
36.542373
0.841797
0.057514
0
0.040816
0
0
0.062004
0
0
0
0
0
0
1
0.081633
false
0
0.122449
0
0.306122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2a8d2bec3d6270cbb856eb6bae1fa43dddb9949
1,736
py
Python
tests/test_lsp.py
WeixinYang/DatasetLoader
d6e800d6a9cca8809d7dab88a6a13a7916ef272d
[ "Apache-2.0" ]
1
2021-08-16T14:14:40.000Z
2021-08-16T14:14:40.000Z
tests/test_lsp.py
WeixinYang/DatasetLoader
d6e800d6a9cca8809d7dab88a6a13a7916ef272d
[ "Apache-2.0" ]
1
2020-10-12T20:56:21.000Z
2020-10-12T20:56:21.000Z
tests/test_lsp.py
WeixinYang/DatasetLoader
d6e800d6a9cca8809d7dab88a6a13a7916ef272d
[ "Apache-2.0" ]
1
2021-06-14T10:30:08.000Z
2021-06-14T10:30:08.000Z
import os.path import pytest from datasetloader import LSP from datasetloader import LSPExtended from . import DS_PATH class TestLSP(): def test_LSP(self): # test loading both, full sized and small images folders = ("lsp", "lsp_small") for ds in folders: lsp = LSP(os.path.joi...
41.333333
78
0.611751
215
1,736
4.837209
0.316279
0.074038
0.076923
0.092308
0.481731
0.396154
0.338462
0.338462
0.338462
0.259615
0
0.040253
0.270161
1,736
41
79
42.341463
0.780584
0.173387
0
0
0
0
0.139356
0.014706
0
0
0
0
0.344828
1
0.068966
false
0
0.172414
0
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2aefdb5d4c4918146034a0834daf3d3d9bd181b
1,173
py
Python
website/python/app.py
man-r/DimensionsLab
c94c3aec0d52326ad522a6fa41d43ec3bde87d74
[ "MIT" ]
null
null
null
website/python/app.py
man-r/DimensionsLab
c94c3aec0d52326ad522a6fa41d43ec3bde87d74
[ "MIT" ]
1
2022-03-24T06:13:52.000Z
2022-03-24T06:13:52.000Z
website/python/app.py
man-r/DimensionsLab
c94c3aec0d52326ad522a6fa41d43ec3bde87d74
[ "MIT" ]
null
null
null
from flask import Flask from flask_restful import Api, Resource, reqparse app = Flask(__name__) api = Api(app) users = [ { "name": "Nicholas", "age": 42, "occupation": "Network Engineer" }, { "name": "Elvin", "age": 32, "occupation": "Doctor" }, { ...
19.881356
66
0.58994
146
1,173
4.678082
0.40411
0.046852
0.039531
0.061493
0.1347
0.111274
0.111274
0.111274
0.111274
0.111274
0
0.023864
0.249787
1,173
59
67
19.881356
0.752273
0
0
0.083333
0
0
0.204429
0
0
0
0
0
0
1
0.0625
false
0
0.041667
0
0.229167
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2af09249eabdf6c6cfac1108013ff5630a16a85
371
py
Python
src/applications/reviews/urls.py
Alex-T13/sxw_data_conversion
ae70198960af1af004ad28b73d6e885c5afa74c2
[ "MIT" ]
null
null
null
src/applications/reviews/urls.py
Alex-T13/sxw_data_conversion
ae70198960af1af004ad28b73d6e885c5afa74c2
[ "MIT" ]
null
null
null
src/applications/reviews/urls.py
Alex-T13/sxw_data_conversion
ae70198960af1af004ad28b73d6e885c5afa74c2
[ "MIT" ]
null
null
null
from django.urls import path from applications.reviews import views urlpatterns = [ path('', views.AllPostView.as_view(), name='reviews'), path('add_post', views.AddPostView.as_view(), name='add_post'), path('post/<int:pk>', views.ShowPostView.as_view(), name='post'), path('update_post/<int:pk>', view...
33.727273
85
0.700809
50
371
5.04
0.42
0.095238
0.15873
0.111111
0
0
0
0
0
0
0
0
0.113208
371
10
86
37.1
0.765957
0
0
0
0
0
0.191375
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2af6e967078f9ead2d03be919925056b558ae89
13,207
py
Python
tests/tests_with_server_and_cached_results/test_planner/test_canvas.py
aquariumbio/trident
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
5
2019-01-21T11:12:05.000Z
2020-03-05T20:52:14.000Z
tests/tests_with_server_and_cached_results/test_planner/test_canvas.py
aquariumbio/pydent
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
28
2020-11-18T02:07:09.000Z
2021-06-08T15:49:41.000Z
tests/tests_with_server_and_cached_results/test_planner/test_canvas.py
aquariumbio/trident
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
2
2021-02-27T19:23:45.000Z
2021-09-14T10:29:07.000Z
import pytest from pydent.planner import Planner from pydent.planner import PlannerException from pydent.planner.utils import get_subgraphs def test_canvas_create(session): canvas = Planner(session) canvas.create() assert canvas.plan.id def test_raises_exception_wiring_with_no_afts(session): canvas...
31.595694
88
0.687211
1,728
13,207
5.05787
0.118056
0.024714
0.067277
0.073684
0.645538
0.595881
0.484668
0.423455
0.398627
0.384439
0
0.016307
0.192095
13,207
417
89
31.671463
0.802812
0.015446
0
0.424342
0
0
0.173665
0
0
0
0
0.002398
0.151316
1
0.085526
false
0.003289
0.013158
0
0.098684
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2b0056c08e76535e1062630476c66ecd0573a56
1,021
py
Python
icekit/plugins/image/migrations/0015_auto_20170310_2004.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
52
2016-09-13T03:50:58.000Z
2022-02-23T16:25:08.000Z
icekit/plugins/image/migrations/0015_auto_20170310_2004.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
304
2016-08-11T14:17:30.000Z
2020-07-22T13:35:18.000Z
icekit/plugins/image/migrations/0015_auto_20170310_2004.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
12
2016-09-21T18:46:35.000Z
2021-02-15T19:37:50.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('icekit_plugins_image', '0014_image_external_ref'), ] operations = [ migrations.RenameField( model_name='image', ...
34.033333
197
0.643487
116
1,021
5.456897
0.62931
0.042654
0.066351
0.082149
0.120063
0.120063
0
0
0
0
0
0.010596
0.260529
1,021
29
198
35.206897
0.827815
0.020568
0
0.347826
0
0.043478
0.340681
0.071142
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2b14a40b24c80800d570e25ab804585deb5e038
3,531
py
Python
b3j0f/conf/parser/resolver/base.py
b3j0f/configuration
18dd6d5d6560f9b202793739e2330a2181163511
[ "MIT" ]
3
2016-02-18T18:58:24.000Z
2017-03-14T08:40:01.000Z
b3j0f/conf/parser/resolver/base.py
b3j0f/configuration
18dd6d5d6560f9b202793739e2330a2181163511
[ "MIT" ]
1
2016-02-18T15:27:35.000Z
2016-04-02T10:36:43.000Z
b3j0f/conf/parser/resolver/base.py
b3j0f/configuration
18dd6d5d6560f9b202793739e2330a2181163511
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # -------------------------------------------------------------------- # The MIT License (MIT) # # Copyright (c) 2015 Jonathan Labéjof <jonathan.labejof@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation fi...
35.666667
79
0.704616
436
3,531
5.616972
0.479358
0.035933
0.010617
0.013067
0
0
0
0
0
0
0
0.003149
0.190598
3,531
98
80
36.030612
0.853744
0.74823
0
0
0
0
0.015584
0
0
0
0
0
0
1
0.095238
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2b187b27bc8c59eec3870b18d05e4350c4e270b
1,670
py
Python
statement_renamer/extractors/capitalone360.py
mkazin/StatementRenamer
ef03c71f0e627a15a4bba08e45bfa90ecacd28fc
[ "Apache-2.0" ]
null
null
null
statement_renamer/extractors/capitalone360.py
mkazin/StatementRenamer
ef03c71f0e627a15a4bba08e45bfa90ecacd28fc
[ "Apache-2.0" ]
15
2018-05-01T12:48:30.000Z
2021-05-14T02:52:48.000Z
statement_renamer/extractors/capitalone360.py
mkazin/StatementRenamer
ef03c71f0e627a15a4bba08e45bfa90ecacd28fc
[ "Apache-2.0" ]
1
2019-07-09T22:59:50.000Z
2019-07-09T22:59:50.000Z
from datetime import datetime from .extractor import DateExtractor, ExtractedData, ExtractorException class CapitalOne360ExtractorException(ExtractorException): def __init__(self, *args, **kwargs): ExtractorException.__init__(self, *args, **kwargs) class CapitalOne360DateExtractor(DateExtractor): ...
29.821429
83
0.592814
166
1,670
5.620482
0.385542
0.052519
0.025723
0.038585
0.096463
0.096463
0.096463
0.096463
0.096463
0
0
0.021386
0.3
1,670
55
84
30.363636
0.776732
0
0
0.052632
0
0
0.086228
0.038922
0
0
0
0
0
1
0.078947
false
0.026316
0.052632
0.026316
0.368421
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2b274a05a49e36d3f5f1623c359598acd291590
1,335
py
Python
setup.py
oeg-upm/ya2ro
799b59046c77a9277b92f2adfa1521d353dfe93d
[ "Apache-2.0" ]
1
2021-10-06T09:34:48.000Z
2021-10-06T09:34:48.000Z
setup.py
oeg-upm/ya2ro
799b59046c77a9277b92f2adfa1521d353dfe93d
[ "Apache-2.0" ]
30
2021-11-17T18:35:31.000Z
2022-03-28T10:46:45.000Z
setup.py
PavelAntonia/EELISA-research-object
799b59046c77a9277b92f2adfa1521d353dfe93d
[ "Apache-2.0" ]
1
2021-11-22T17:15:53.000Z
2021-11-22T17:15:53.000Z
from setuptools import find_packages, setup version = {} with open("src/ya2ro/ya2ro.py") as fp: exec(fp.read(), version) setup( name='ya2ro', author='Antonia Pavel', author_email='floriana.antonia.pavel@gmail.com', description='Tool to which you pass basic information of a project or a research ar...
37.083333
393
0.64794
175
1,335
4.851429
0.622857
0.035336
0.03298
0.040047
0.047114
0
0
0
0
0
0
0.02644
0.206742
1,335
35
394
38.142857
0.77526
0
0
0
0
0.030303
0.546816
0.02397
0
0
0
0
0
1
0
false
0.030303
0.030303
0
0.030303
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2b8e2b89a1d109f4bd53134df5660df9751af92
545
py
Python
actstream/tests/test_apps.py
kimbugp/django-activity-stream
4e53e62adf2b82cd01ab70a033839ab61b2d087b
[ "BSD-3-Clause" ]
1,489
2015-01-02T02:46:30.000Z
2022-03-30T07:32:45.000Z
actstream/tests/test_apps.py
kimbugp/django-activity-stream
4e53e62adf2b82cd01ab70a033839ab61b2d087b
[ "BSD-3-Clause" ]
277
2015-01-02T19:54:09.000Z
2022-03-28T12:07:20.000Z
actstream/tests/test_apps.py
kimbugp/django-activity-stream
4e53e62adf2b82cd01ab70a033839ab61b2d087b
[ "BSD-3-Clause" ]
345
2015-01-13T01:02:42.000Z
2022-03-21T09:39:26.000Z
from unittest import TestCase from django.apps.registry import apps class ActstreamConfigTestCase(TestCase): def test_data_field_is_added_to_action_class_only_once_even_if_app_is_loaded_again(self): actstream_config = apps.get_app_config('actstream') actstream_config.ready() actstream_co...
28.684211
93
0.702752
68
545
5.294118
0.558824
0.125
0.111111
0
0
0
0
0
0
0
0
0.002381
0.229358
545
18
94
30.277778
0.854762
0
0
0.153846
0
0
0.023853
0
0
0
0
0
0.076923
1
0.076923
false
0
0.230769
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c3378c740ae8e44f9721f70acf8526419bc1dcc
26,445
py
Python
viz_platform/dynamic_datasets/model/classes.py
alexanderzimmerman/smart-vp-server
3aa57b5fa32e90a8406684d0d0a2860e224d7916
[ "Apache-2.0" ]
null
null
null
viz_platform/dynamic_datasets/model/classes.py
alexanderzimmerman/smart-vp-server
3aa57b5fa32e90a8406684d0d0a2860e224d7916
[ "Apache-2.0" ]
null
null
null
viz_platform/dynamic_datasets/model/classes.py
alexanderzimmerman/smart-vp-server
3aa57b5fa32e90a8406684d0d0a2860e224d7916
[ "Apache-2.0" ]
null
null
null
import numpy as np import scipy import scipy.special import scipy.interpolate import pickle import sklearn import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import MySQLdb import sqlalchemy from sqlalchemy.ext.declarative import declarative_base import sqla...
49.615385
163
0.690187
3,100
26,445
5.775484
0.09129
0.035579
0.020331
0.029491
0.618968
0.529156
0.495588
0.461852
0.440684
0.416778
0
0.019792
0.180374
26,445
533
164
49.615385
0.806228
0.010739
0
0.450855
0
0
0.091525
0.008108
0
0
0
0
0
1
0.023504
false
0
0.036325
0
0.465812
0.00641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c3545b94818bca3c82a497be99bd356be44a3e7
7,592
py
Python
lokii/table.py
dorukerenaktas/lok
0fce198cfc3e5293a2666a66a5d1ee80b81fca48
[ "MIT" ]
1
2021-02-07T09:57:28.000Z
2021-02-07T09:57:28.000Z
lokii/table.py
dorukerenaktas/lokii
0fce198cfc3e5293a2666a66a5d1ee80b81fca48
[ "MIT" ]
null
null
null
lokii/table.py
dorukerenaktas/lokii
0fce198cfc3e5293a2666a66a5d1ee80b81fca48
[ "MIT" ]
null
null
null
import random from typing import Dict, Callable, List, Any, Optional import pandas as pd class Table: def __init__(self, name: str, outfile: str, index_cache_size: int, random_cache_size: int, debug: bool): """ D...
37.584158
107
0.601159
979
7,592
4.467824
0.180797
0.056013
0.093278
0.058299
0.386145
0.328304
0.328304
0.328304
0.318244
0.262003
0
0.00403
0.31362
7,592
201
108
37.771144
0.835348
0.221417
0
0.318966
0
0
0.066407
0
0
0
0
0
0
1
0.12069
false
0
0.025862
0.017241
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c36eb0bb22cd8a2ed48443d1c87d8de5ed364ca
13,428
py
Python
powerspectrum.py
ronniyjoseph/Beam-Perturbations
0122fed7e3018f2e188e12b62ad760e11f6eb158
[ "MIT" ]
null
null
null
powerspectrum.py
ronniyjoseph/Beam-Perturbations
0122fed7e3018f2e188e12b62ad760e11f6eb158
[ "MIT" ]
4
2019-06-25T02:02:56.000Z
2019-10-24T08:12:41.000Z
powerspectrum.py
ronniyjoseph/Beam-Perturbations
0122fed7e3018f2e188e12b62ad760e11f6eb158
[ "MIT" ]
null
null
null
import numpy import powerbox import matplotlib from matplotlib import pyplot import matplotlib.colors as colors from plottools import colorbar from generaltools import symlog_bounds from radiotelescope import beam_width """ This file is going to contain all relevant power spectrum functions, i.e data gridding, (freq...
44.611296
126
0.629803
1,624
13,428
4.886084
0.153941
0.042344
0.011342
0.035287
0.470951
0.427095
0.393321
0.362067
0.325646
0.284814
0
0.012316
0.26832
13,428
301
127
44.611296
0.795318
0.027703
0
0.232227
0
0
0.028948
0.002484
0
0
0
0
0
1
0.042654
false
0.004739
0.037915
0.014218
0.127962
0.033175
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c3a2df09b00838929b47a69b48dbd4d97a14392
3,089
py
Python
banditpylib/protocols/single_player.py
XiGYmax/banditpylib
07698a1c6b17720a8199dea76580546fe3dfb9be
[ "MIT" ]
null
null
null
banditpylib/protocols/single_player.py
XiGYmax/banditpylib
07698a1c6b17720a8199dea76580546fe3dfb9be
[ "MIT" ]
null
null
null
banditpylib/protocols/single_player.py
XiGYmax/banditpylib
07698a1c6b17720a8199dea76580546fe3dfb9be
[ "MIT" ]
null
null
null
from typing import List, Dict import numpy as np from absl import logging from banditpylib.bandits import Bandit from banditpylib.learners import Learner from .utils import Protocol class SinglePlayerProtocol(Protocol): """Single player protocol This protocol is used to simulate the ordinary single-player gam...
28.601852
79
0.672062
388
3,089
5.224227
0.311856
0.074988
0.044401
0.019734
0.049334
0.03256
0.03256
0
0
0
0
0.001313
0.260602
3,089
107
80
28.869159
0.886165
0.390418
0
0.04
0
0
0.033708
0.01236
0
0
0
0
0
1
0.08
false
0
0.12
0
0.26
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c3ba3a7de0cd2d1f09de245212daad861a07972
2,873
py
Python
3pxnet-inference/scripts/runValidation.py
SRavit1/3pxnet
1f81a2bdcbb97c42163e914b01dba4e6c73ade60
[ "MIT" ]
7
2020-12-11T16:06:03.000Z
2022-02-13T20:56:06.000Z
3pxnet-inference/scripts/runValidation.py
SRavit1/3pxnet
1f81a2bdcbb97c42163e914b01dba4e6c73ade60
[ "MIT" ]
4
2021-07-13T10:50:49.000Z
2021-08-13T16:06:20.000Z
3pxnet-inference/scripts/runValidation.py
SRavit1/3pxnet
1f81a2bdcbb97c42163e914b01dba4e6c73ade60
[ "MIT" ]
1
2021-07-06T03:41:55.000Z
2021-07-06T03:41:55.000Z
#!/usr/bin/env python ################################################################################ # MIT License # # Copyright (c) 2019 UCLA NanoCAD Laboratory # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "So...
34.614458
95
0.577445
334
2,873
4.907186
0.535928
0.053691
0.015863
0
0
0
0
0
0
0
0
0.006803
0.283676
2,873
82
96
35.036585
0.789602
0.485207
0
0
0
0
0.145121
0
0
0
0
0
0
1
0.090909
false
0.030303
0.030303
0
0.181818
0.121212
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c3c00e8f94657bbf831d69554620cc2f14d7279
978
py
Python
setup.py
nous-consulting/basecamp-next
33851de091056a33663c9370f564cf3d41fe868f
[ "MIT" ]
2
2015-03-28T21:50:36.000Z
2015-09-10T22:29:17.000Z
setup.py
GetBlimp/basecamp-next
f7ebdd3da97ee13cd5ca18f440506fbbc84e7800
[ "MIT" ]
null
null
null
setup.py
GetBlimp/basecamp-next
f7ebdd3da97ee13cd5ca18f440506fbbc84e7800
[ "MIT" ]
4
2015-04-14T16:18:26.000Z
2021-03-28T19:00:21.000Z
import os try: from setuptools import setup except ImportError: from distutils.core import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() required = ['requests>=1.0.0', 'requests-oauth2>=0.2.0'] setup( name='basecampx', version='0.1.8', ...
27.166667
70
0.641104
112
978
5.517857
0.705357
0.035599
0
0
0
0
0
0
0
0
0
0.016905
0.213701
978
35
71
27.942857
0.786736
0
0
0
0
0
0.408998
0.022495
0
0
0
0
0
1
0.032258
false
0
0.129032
0.032258
0.193548
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c3c2a730b5f9ebaec5a9cf2153e02f5e709d39e
2,602
py
Python
crop_align/crop_align_affectnet.py
AutoLV/NoisyFER
353ff60bad90dd346cd6a8fc54d7a6acd5897044
[ "MIT" ]
15
2020-11-09T16:35:08.000Z
2022-02-12T14:53:11.000Z
crop_align/crop_align_affectnet.py
AutoLV/NoisyFER
353ff60bad90dd346cd6a8fc54d7a6acd5897044
[ "MIT" ]
1
2021-07-21T03:33:46.000Z
2021-08-08T20:24:12.000Z
crop_align/crop_align_affectnet.py
AutoLV/NoisyFER
353ff60bad90dd346cd6a8fc54d7a6acd5897044
[ "MIT" ]
3
2021-03-30T10:21:52.000Z
2021-09-12T15:55:32.000Z
import sys rootPath = '/Users/siwei/Desktop/noisyFER' sys.path.append(rootPath) import os from tqdm import tqdm import cv2 import csv import numpy as np import argparse from crop_align.align import MyFaceAligner parser = argparse.ArgumentParser() parser.add_argument("--root", type=str, default='datasets/affectnet')...
35.162162
103
0.618755
359
2,602
4.300836
0.367688
0.05829
0.03886
0.040803
0.223446
0.146373
0.059585
0.059585
0.059585
0.059585
0
0.019309
0.243659
2,602
74
104
35.162162
0.765244
0.097233
0
0
0
0
0.161401
0.040991
0
0
0
0
0
1
0.037037
false
0
0.148148
0
0.203704
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
0
0
0
0
0
0
0
1
0
2c3c89d30724c38d60dae13286e13556b05ebcb3
640
py
Python
bot/cli.py
LukasForst/toggl-wire-bot
1a242ef281b3cb501f30a1acee9cda7fd2cb2a84
[ "MIT" ]
null
null
null
bot/cli.py
LukasForst/toggl-wire-bot
1a242ef281b3cb501f30a1acee9cda7fd2cb2a84
[ "MIT" ]
null
null
null
bot/cli.py
LukasForst/toggl-wire-bot
1a242ef281b3cb501f30a1acee9cda7fd2cb2a84
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse from Toggl.togglApi import getTogglReport if __name__ == '__main__': parser = argparse.ArgumentParser(description='Obtain report from Toggl.') parser.add_argument("--toggl-token", "-tt", help="Set Toggl token.") parser.add_argument("--toggl-workspace", "-w", help="S...
32
96
0.698438
83
640
5.204819
0.46988
0.083333
0.157407
0.101852
0
0
0
0
0
0
0
0
0.142188
640
19
97
33.684211
0.786885
0.03125
0
0
0
0
0.276252
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
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
0
0
0
0
0
0
0
0
1
0
2c3e24b4b6d91fcd05c76dfb86067fae1b3b498e
3,746
py
Python
a_storage/codec/codec_agroup.py
praefrontalis/Anfisa-Annotations
b4127c68e3696b75b2972f6759437034cc56f8e3
[ "Apache-2.0" ]
null
null
null
a_storage/codec/codec_agroup.py
praefrontalis/Anfisa-Annotations
b4127c68e3696b75b2972f6759437034cc56f8e3
[ "Apache-2.0" ]
3
2022-03-28T13:44:24.000Z
2022-03-28T13:53:57.000Z
a_storage/codec/codec_agroup.py
praefrontalis/Anfisa-Annotations
b4127c68e3696b75b2972f6759437034cc56f8e3
[ "Apache-2.0" ]
3
2019-02-18T17:05:06.000Z
2022-03-22T19:42:38.000Z
from ._codec_data import _CodecData #=============================================== class CodecAGroup(_CodecData): def __init__(self, master, parent, schema_instr, default_name): self.mGroupName = "?" _CodecData.__init__(self, master, parent, schema_instr, default_name) self.mGroup = self._...
38.618557
77
0.540577
422
3,746
4.592417
0.203791
0.057792
0.014448
0.022704
0.241486
0.134159
0.097007
0.070175
0.047472
0
0
0.00405
0.340897
3,746
96
78
39.020833
0.780883
0.012547
0
0.137931
0
0
0.037317
0
0
0
0
0
0.011494
1
0.103448
false
0
0.011494
0.034483
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c3ea335989982f0ae8f5847cf419f798c2e40fa
3,528
py
Python
app/customer/models/bottle_message.py
B-ROY/TESTGIT
40221cf254c90d37d21afb981635740aebf11949
[ "Apache-2.0" ]
2
2017-12-02T13:58:30.000Z
2018-08-02T17:07:59.000Z
app/customer/models/bottle_message.py
B-ROY/TESTGIT
40221cf254c90d37d21afb981635740aebf11949
[ "Apache-2.0" ]
null
null
null
app/customer/models/bottle_message.py
B-ROY/TESTGIT
40221cf254c90d37d21afb981635740aebf11949
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import random from mongoengine import * from base.settings import CHATPAMONGO import datetime connect(CHATPAMONGO.db, host=CHATPAMONGO.host, port=CHATPAMONGO.port, username=CHATPAMONGO.username, password=CHATPAMONGO.password) class BottleMessageText(Document): USER_TYPE = [ (0, "主...
23.837838
100
0.622166
426
3,528
4.894366
0.246479
0.086331
0.07482
0.086331
0.336691
0.177458
0.106475
0.040288
0
0
0
0.009277
0.266723
3,528
147
101
24
0.796676
0.016723
0
0.22
0
0
0.035673
0
0
0
0
0.006803
0
1
0.09
false
0.03
0.04
0.02
0.37
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c43035692fa6a7c9793606b200857a4997d78db
3,646
py
Python
names_generator/__init__.py
glentner/names_generator
c3526a90f3c0f8d2b388542dc3770baa4cc455fe
[ "Apache-2.0" ]
1
2020-12-03T08:52:58.000Z
2020-12-03T08:52:58.000Z
names_generator/__init__.py
glentner/names_generator
c3526a90f3c0f8d2b388542dc3770baa4cc455fe
[ "Apache-2.0" ]
null
null
null
names_generator/__init__.py
glentner/names_generator
c3526a90f3c0f8d2b388542dc3770baa4cc455fe
[ "Apache-2.0" ]
2
2021-01-16T08:52:33.000Z
2022-02-24T13:53:58.000Z
# This program is free software: you can redistribute it and/or modify it under the # terms of the Apache License (v2.0) as published by the Apache Software Foundation. # # This program is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or...
28.708661
93
0.694185
491
3,646
5.01833
0.356415
0.031656
0.035714
0.030438
0.08888
0.062094
0.062094
0.062094
0.062094
0.049919
0
0.004326
0.175809
3,646
126
94
28.936508
0.815641
0.302523
0
0.046154
0
0
0.232035
0.017664
0
0
0
0
0
1
0.138462
false
0
0.123077
0.061538
0.446154
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
0
0
0
0
0
0
0
0
1
0
2c431d85cef6b81fa14e9c6e9f5d7057ee4c9176
849
py
Python
cotd/plugins/motivationv2.py
5h4d0w4rt/cotd-telegram-bot
2185353047557aa0864d64d464597993d0b5eb02
[ "MIT" ]
1
2021-01-14T10:03:49.000Z
2021-01-14T10:03:49.000Z
cotd/plugins/motivationv2.py
5h4d0w4rt/cotd-telegram-bot
2185353047557aa0864d64d464597993d0b5eb02
[ "MIT" ]
2
2020-09-13T00:47:54.000Z
2021-09-25T16:14:35.000Z
cotd/plugins/motivationv2.py
5h4d0w4rt/cotd-telegram-bot
2185353047557aa0864d64d464597993d0b5eb02
[ "MIT" ]
1
2020-09-12T22:34:04.000Z
2020-09-12T22:34:04.000Z
import io import typing import uuid import ratelimit import telegram import telegram.ext from cotd.plugins.helpers import make_image from PIL import Image ONE_SECOND = 1 def motivation_inline( update: telegram.Update, context: telegram.ext.CallbackContext ) -> telegram.InlineQueryResultCachedPhoto: db = con...
24.257143
83
0.714959
107
849
5.485981
0.448598
0.0477
0.027257
0
0
0
0
0
0
0
0
0.004373
0.191991
849
34
84
24.970588
0.851312
0
0
0
0
0
0.040047
0
0
0
0
0
0
1
0.035714
false
0
0.285714
0
0.392857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c46ebea0fe0e050587aad5c5ac6a903aa168e9c
21,090
py
Python
renderSDK/Rayvision.py
wangshunhui/renderSDK
b512c43fd0111c114b6abc6398c4609b758436e4
[ "Apache-2.0" ]
2
2020-02-12T09:57:46.000Z
2020-04-03T07:40:07.000Z
renderSDK/Rayvision.py
wangshunhui/renderSDK
b512c43fd0111c114b6abc6398c4609b758436e4
[ "Apache-2.0" ]
null
null
null
renderSDK/Rayvision.py
wangshunhui/renderSDK
b512c43fd0111c114b6abc6398c4609b758436e4
[ "Apache-2.0" ]
1
2020-04-16T11:19:58.000Z
2020-04-16T11:19:58.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- """ Main """ from .compat import * import os import sys import logging import codecs import time from .RayvisionUtil import get_os, hump2underline, cg_id_name_dict, decorator_use_in_class, format_time from .RayvisionAPI import RayvisionAPI from .RayvisionJob import Rayvi...
46.048035
233
0.625273
2,889
21,090
4.264105
0.131187
0.028736
0.029223
0.040182
0.419677
0.365695
0.322997
0.272181
0.248234
0.224694
0
0.012656
0.276908
21,090
457
234
46.148797
0.795148
0.258464
0
0.265734
0
0
0.089122
0.009694
0
0
0
0
0
1
0.052448
false
0
0.045455
0
0.136364
0.027972
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c4810e4fa88798c039566c38fcfb8acd43be82c
13,764
py
Python
scqubits/io_utils/fileio_backends.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
scqubits/io_utils/fileio_backends.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
scqubits/io_utils/fileio_backends.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
# fileio_backends.py # # This file is part of scqubits. # # Copyright (c) 2019 and later, Jens Koch and Peter Groszkowski # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. ###############################...
35.84375
89
0.613266
1,653
13,764
4.900181
0.174834
0.059753
0.020988
0.008889
0.328395
0.229136
0.169506
0.12963
0.095926
0.062716
0
0.013732
0.285745
13,764
383
90
35.937337
0.810192
0.204083
0
0.228814
0
0
0.029821
0
0
0
0
0
0.004237
1
0.110169
false
0.016949
0.055085
0
0.237288
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c4e1b3188875d9cc7ead2bb542721689bd51cbf
2,107
py
Python
util/trig.py
alemigliardi/talkbot
371f2c9e7240a4438cbb202865cf18dbefb0c352
[ "MIT" ]
2
2021-08-07T12:01:26.000Z
2022-01-31T13:48:25.000Z
util/trig.py
alemigliardi/talkbot
371f2c9e7240a4438cbb202865cf18dbefb0c352
[ "MIT" ]
null
null
null
util/trig.py
alemigliardi/talkbot
371f2c9e7240a4438cbb202865cf18dbefb0c352
[ "MIT" ]
1
2021-08-07T12:01:28.000Z
2021-08-07T12:01:28.000Z
import os import re import asyncio from pyrogram.types import Message from util.message import send_media class Trigger: def __init__(self, regex:str, response:str = "", from_self:bool = False, from_others:bool = True, mention:bool = True, media_path:str = "", auto_vanish:int = -1, ): self.re...
24.218391
79
0.688657
301
2,107
4.664452
0.252492
0.051282
0.049858
0.042735
0.08547
0.068376
0.068376
0.068376
0.068376
0.068376
0
0.001156
0.178927
2,107
86
80
24.5
0.810405
0.011391
0
0.135135
0
0
0.086977
0
0
0
0
0
0
1
0.094595
false
0
0.067568
0.040541
0.297297
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c4fccadd03cd528d853e80ad9d2e69c96250a99
3,185
py
Python
back-app/research/form_vision/template_matching.py
AntoineAwaida/ad-covia
1dd10a0361421149e6e318fee146ccf370a81074
[ "MIT" ]
1
2020-04-15T13:48:34.000Z
2020-04-15T13:48:34.000Z
back-app/research/form_vision/template_matching.py
AntoineAwaida/ad-covia
1dd10a0361421149e6e318fee146ccf370a81074
[ "MIT" ]
1
2022-02-13T09:58:43.000Z
2022-02-13T09:58:43.000Z
back-app/research/form_vision/template_matching.py
AntoineAwaida/ad-covia
1dd10a0361421149e6e318fee146ccf370a81074
[ "MIT" ]
null
null
null
import cv2 from typing import Tuple, Generator from research.form_vision.image import Image, NormalizedCoords import numpy as np class TemplateMatcher: width = 800 def __init__( self, template_image: Image, reference_region: Tuple[NormalizedCoords, NormalizedCoords] ): self._template = te...
44.236111
96
0.663736
412
3,185
4.759709
0.218447
0.107088
0.053034
0.038756
0.164202
0.164202
0.123406
0.047935
0.047935
0.047935
0
0.022231
0.237363
3,185
71
97
44.859155
0.785097
0
0
0.066667
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.066667
0.016667
0.283333
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c5166b8cabcb5a4f633be4f4e1a16e185d3520c
763
py
Python
src/run.py
ShaghayeghAmeri/test
968eea52ce0ea309f020add61ab597ca402feb14
[ "MIT" ]
null
null
null
src/run.py
ShaghayeghAmeri/test
968eea52ce0ea309f020add61ab597ca402feb14
[ "MIT" ]
null
null
null
src/run.py
ShaghayeghAmeri/test
968eea52ce0ea309f020add61ab597ca402feb14
[ "MIT" ]
null
null
null
import os import emoji import telebot from loguru import logger from src.utils.constant import keyboards from src.utils.io import write_json class But: """ telegram bot to randomly connect two strangers """ def __init__(self): self.bot = telebot.TeleBot(os.environ['BOT_TOKEN']) self....
23.84375
89
0.673657
104
763
4.740385
0.509615
0.056795
0.048682
0
0
0
0
0
0
0
0
0
0.209699
763
31
90
24.612903
0.817579
0.060288
0
0
0
0
0.065714
0
0
0
0
0
0
1
0.15
false
0
0.3
0
0.5
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c52b06ffe9aba58e5600ed9c53a392211b57c2c
713
py
Python
PythonFiles/MCQGame.py
IamVaibhavsar/Python_Files
283d73929a3e11955c71499407c4f8bff56e4273
[ "MIT" ]
null
null
null
PythonFiles/MCQGame.py
IamVaibhavsar/Python_Files
283d73929a3e11955c71499407c4f8bff56e4273
[ "MIT" ]
null
null
null
PythonFiles/MCQGame.py
IamVaibhavsar/Python_Files
283d73929a3e11955c71499407c4f8bff56e4273
[ "MIT" ]
1
2019-07-26T15:25:21.000Z
2019-07-26T15:25:21.000Z
from MCQGame2 import Question MCQ=[ "What color of apples? \na)red\nb)blue\nc)green\nd)yellow", "Half adder has how many inputs?\na)1\nb)2\nc)3\nd)4", "which operator can be overloaded?\na).\nb).*\nc)::\nd)+" ] questions = [ Question(MCQ[0],"a"), #Objects of class Question Question...
31
82
0.601683
100
713
4.27
0.61
0.103045
0.074941
0
0
0
0
0
0
0
0
0.018587
0.245442
713
23
83
31
0.775093
0.106592
0
0
0
0.105263
0.30832
0.153344
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.105263
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c52e41b928f577557908dcb035f2bea35861221
5,286
py
Python
gada/main.py
gadalang/gada
2dd4f4dfd5b7390c06307040cad23203a015f7a4
[ "MIT" ]
null
null
null
gada/main.py
gadalang/gada
2dd4f4dfd5b7390c06307040cad23203a015f7a4
[ "MIT" ]
null
null
null
gada/main.py
gadalang/gada
2dd4f4dfd5b7390c06307040cad23203a015f7a4
[ "MIT" ]
1
2021-06-15T13:52:33.000Z
2021-06-15T13:52:33.000Z
from __future__ import annotations __all__ = ["run", "main"] import os import sys import io import argparse from typing import Optional from gada import component, runners, datadir def split_unknown_args(argv: list[str]) -> tuple[list[str], list[str]]: """Separate known command-line arguments from unknown one. ...
30.034091
90
0.541241
582
5,286
4.821306
0.252577
0.022808
0.027798
0.024234
0.560941
0.54526
0.54526
0.518175
0.518175
0.518175
0
0.001399
0.323685
5,286
175
91
30.205714
0.783497
0.588347
0
0.214286
0
0
0.075607
0
0
0
0
0
0
1
0.053571
false
0
0.125
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c542dbe200f504a92d4395bd7676e95bb9c6b42
2,912
py
Python
Example_Cases/Gypsum_Model/Scripts/external_gyp1d.py
koverholt/bayes-fire
4333cdf7b93bf77d8e021f0c4a1931a77056534d
[ "BSD-3-Clause" ]
6
2016-06-19T12:44:22.000Z
2021-12-21T07:01:38.000Z
Example_Cases/Gypsum_Model/Scripts/external_gyp1d.py
koverholt/bayes-fire
4333cdf7b93bf77d8e021f0c4a1931a77056534d
[ "BSD-3-Clause" ]
null
null
null
Example_Cases/Gypsum_Model/Scripts/external_gyp1d.py
koverholt/bayes-fire
4333cdf7b93bf77d8e021f0c4a1931a77056534d
[ "BSD-3-Clause" ]
2
2017-10-15T02:37:25.000Z
2022-03-04T16:22:44.000Z
#!/usr/bin/env python """Module for gyp1d functions""" import numpy as np import platform import subprocess import os import data_expt as de # Detect operating system op_sys = platform.system() def gen_input( k1, k2, k3, k4, rho_0, c_p1, c_p2, c_p3, eps, Y1_0, A1, A2, E1, E2, dh1, dh2 ): """Genera...
26
76
0.457074
380
2,912
3.339474
0.363158
0.018913
0.014184
0.016548
0.092987
0.064618
0.064618
0.064618
0.064618
0.064618
0
0.082458
0.346154
2,912
111
77
26.234234
0.584034
0.246566
0
0.028571
0
0.014286
0.261538
0.020979
0
0
0
0
0
1
0.042857
false
0
0.071429
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c54677ea98da9a5515de3a923f5ef0038257527
6,356
py
Python
datacollector/collector/maincollector.py
samharju/5GDrones-data-collector
331d8c433f5b46eaba62a55c39bbe12d365b2474
[ "Apache-2.0" ]
2
2021-04-26T07:08:26.000Z
2021-05-01T16:01:26.000Z
datacollector/collector/maincollector.py
samharju/5GDrones-data-collector
331d8c433f5b46eaba62a55c39bbe12d365b2474
[ "Apache-2.0" ]
null
null
null
datacollector/collector/maincollector.py
samharju/5GDrones-data-collector
331d8c433f5b46eaba62a55c39bbe12d365b2474
[ "Apache-2.0" ]
1
2021-05-01T15:04:46.000Z
2021-05-01T15:04:46.000Z
# © 2021 Nokia # # Licensed under the Apache license, version 2.0 # SPDX-License-Identifier: Apache-2.0 """Class for handling collector threads.""" import logging import time from datetime import datetime from threading import Event, Thread from datacollector.collector.connection_config_parser import ConnectionConfig...
35.50838
118
0.637823
695
6,356
5.620144
0.284892
0.060932
0.046083
0.02765
0.117256
0.075269
0.041987
0
0
0
0
0.001736
0.274858
6,356
178
119
35.707865
0.84552
0.188483
0
0.184211
0
0
0.086735
0
0
0
0
0
0
1
0.166667
false
0.008772
0.061404
0.008772
0.324561
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c55b9fde76dce6c7aa8c956dc28575c3c2afb98
5,959
py
Python
utils/memory.py
alanmackey/DRL-for-BG-Control
a7c5015b828c250205b9ecb1bf4bdb928e0d975f
[ "MIT" ]
null
null
null
utils/memory.py
alanmackey/DRL-for-BG-Control
a7c5015b828c250205b9ecb1bf4bdb928e0d975f
[ "MIT" ]
null
null
null
utils/memory.py
alanmackey/DRL-for-BG-Control
a7c5015b828c250205b9ecb1bf4bdb928e0d975f
[ "MIT" ]
null
null
null
import numpy as np import torch class ReplayBuffer(object): def __init__( self, state_dim, action_dim, hidden_size, max_size=int(5e3), recurrent=False ): self.max_size = int(max_size) self.ptr = 0 self.size = 0 self.recurrent = recurrent s...
38.445161
80
0.538345
749
5,959
4.190921
0.158879
0.076457
0.087926
0.04014
0.670596
0.662313
0.630137
0.630137
0.58936
0.540299
0
0.004302
0.336801
5,959
154
81
38.694805
0.78998
0.129888
0
0.531532
0
0
0.001396
0
0
0
0
0.006494
0
1
0.054054
false
0
0.018018
0
0.126126
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c566a2dcb7cec78c109c0686b33ccf0da89a5b9
1,043
py
Python
TilingDomains/main.py
ClathomasPrime/linear-prefs
e700589a82667ca0f307459816e4f5b211fbd7d2
[ "BSD-3-Clause" ]
null
null
null
TilingDomains/main.py
ClathomasPrime/linear-prefs
e700589a82667ca0f307459816e4f5b211fbd7d2
[ "BSD-3-Clause" ]
null
null
null
TilingDomains/main.py
ClathomasPrime/linear-prefs
e700589a82667ca0f307459816e4f5b211fbd7d2
[ "BSD-3-Clause" ]
null
null
null
from GraphDraw import * from Graph import * from Implicit import * from impExamples import * import os import errno flags = os.O_CREAT | os.O_EXCL | os.O_WRONLY # For trying stuff # Currently just displays the alternating domain on 9 outcomes n = 9 impG = impAlternatingDomain(n) G = impG.explicit() d = G.d G.comp...
21.285714
71
0.700863
156
1,043
4.653846
0.557692
0.022039
0.024793
0
0
0
0
0
0
0
0
0.002315
0.17162
1,043
48
72
21.729167
0.837963
0.223394
0
0.064516
0
0
0.121891
0.078358
0
0
0
0
0
1
0
false
0.032258
0.193548
0
0.193548
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c583e62e222fa52ab726c248c5d0731a9185e71
3,647
py
Python
reinforcement-learning/deep-line-wars/game_1.py
cair/experiments
d19a9eda0e9e743e401f46eec358f0c815c64a7c
[ "MIT" ]
null
null
null
reinforcement-learning/deep-line-wars/game_1.py
cair/experiments
d19a9eda0e9e743e401f46eec358f0c815c64a7c
[ "MIT" ]
null
null
null
reinforcement-learning/deep-line-wars/game_1.py
cair/experiments
d19a9eda0e9e743e401f46eec358f0c815c64a7c
[ "MIT" ]
null
null
null
import random import numpy as np from PIL import Image from DeepLineWars.Game import Game import uuid # https://github.com/cair/DeepRTS # https://github.com/reinforceio/tensorforce class GameInstance: @staticmethod def start(data_queue): g = GameInstance(data_queue) g.loop() return T...
26.427536
87
0.502879
398
3,647
4.462312
0.344221
0.050676
0.016892
0.024775
0.108108
0.087838
0.030405
0
0
0
0
0.03278
0.389361
3,647
137
88
26.620438
0.764706
0.05292
0
0.058824
0
0
0.076722
0
0
0
0
0
0
1
0.04902
false
0
0.068627
0
0.166667
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
0
0
0
0
0
1
0
2c59f1356149160db7e39588bbaf937c38c8c634
790
py
Python
src/back-django/scraper_api/tests/views/test_page_list_view.py
Arkko002/PyWalker
9e8a02b74a1217cfed385898654815a218297cce
[ "MIT" ]
null
null
null
src/back-django/scraper_api/tests/views/test_page_list_view.py
Arkko002/PyWalker
9e8a02b74a1217cfed385898654815a218297cce
[ "MIT" ]
null
null
null
src/back-django/scraper_api/tests/views/test_page_list_view.py
Arkko002/PyWalker
9e8a02b74a1217cfed385898654815a218297cce
[ "MIT" ]
null
null
null
import json import pytest from django.urls import reverse from scraper_api.models import ScrapedPage class TestPageListView: @pytest.mark.django_db def test_get(self, client, fill_db, url, html): url = reverse("pages/") response = client.get(url) pages = json.loads(response.body) ...
23.939394
53
0.605063
98
790
4.77551
0.418367
0.044872
0.068376
0.076923
0.24359
0.24359
0
0
0
0
0
0.017331
0.26962
790
32
54
24.6875
0.793761
0
0
0.173913
0
0
0.039241
0
0
0
0
0
0.086957
1
0.086957
false
0
0.173913
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c5bc0aa11bc0c3b60a29a13ecd16e57a11921fb
594
py
Python
skfasttext/sk_ft_example.py
tatacoa/hatespeech
fab054d86848c2242443ae3ddf532e94f404f529
[ "MIT" ]
2
2020-03-15T13:46:46.000Z
2020-05-26T06:56:52.000Z
skfasttext/sk_ft_example.py
tatacoa/hatespeech
fab054d86848c2242443ae3ddf532e94f404f529
[ "MIT" ]
1
2018-05-22T20:22:39.000Z
2018-05-22T20:22:39.000Z
skfasttext/sk_ft_example.py
tatacoa/hatespeech
fab054d86848c2242443ae3ddf532e94f404f529
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed May 2 17:34:43 2018 @author: arndt """ # http://scikit-learn.org/stable/developers/contributing.html#rolling-your-own-estimator # https://github.com/vishnumani2009/sklearn-fasttext from os import chdir chdir("/home/arndt/git-reps/hatespeech/") from ...
25.826087
88
0.76936
86
594
5.232558
0.755814
0.04
0
0
0
0
0
0
0
0
0
0.033457
0.094276
594
23
89
25.826087
0.802974
0.488215
0
0
0
0
0.236301
0.109589
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c5c4a72fd65572e3fc2aa97977ae16747547c5e
15,366
py
Python
src/niweb/apps/noclook/tests/schema/admin/test_schema.py
SUNET/ni
f652e230524346bf0801cdf8bbb6ee63f4985cc2
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/niweb/apps/noclook/tests/schema/admin/test_schema.py
SUNET/ni
f652e230524346bf0801cdf8bbb6ee63f4985cc2
[ "BSD-2-Clause-FreeBSD" ]
2
2019-07-24T12:41:11.000Z
2020-03-31T10:10:04.000Z
src/niweb/apps/noclook/tests/schema/admin/test_schema.py
SUNET/ni
f652e230524346bf0801cdf8bbb6ee63f4985cc2
[ "BSD-2-Clause-FreeBSD" ]
1
2019-02-25T14:58:20.000Z
2019-02-25T14:58:20.000Z
# -*- coding: utf-8 -*- __author__ = 'ffuentes' from apps.noclook.tests.schema.base import Neo4jGraphQLGenericTest from apps.noclook.models import NodeHandleContext from django.contrib.auth.models import User from niweb.schema import schema from pprint import pformat from . import BasicAdminTest import apps.noclook....
32.486258
84
0.416829
1,166
15,366
5.327616
0.135506
0.030908
0.025113
0.023181
0.680779
0.634095
0.602061
0.591436
0.553928
0.489375
0
0.003561
0.470064
15,366
472
85
32.555085
0.759302
0.035923
0
0.638961
0
0
0.20815
0
0
0
0
0
0.044156
1
0.018182
false
0
0.020779
0
0.057143
0.002597
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c5e15ddaa18b77dfb245e91f9e636201f9744ac
1,542
py
Python
alphamind/tests/analysis/test_perfanalysis.py
rongliang-tech/alpha-mind
39f720974c637d17e185e445dc05c9fc4863a241
[ "MIT" ]
186
2017-11-27T01:26:44.000Z
2022-03-28T16:11:33.000Z
alphamind/tests/analysis/test_perfanalysis.py
atefar2/alpha-mind
66d839affb5d81d31d5cac7e5e224278e3f99a8b
[ "MIT" ]
2
2017-12-19T02:47:36.000Z
2021-01-09T05:25:18.000Z
alphamind/tests/analysis/test_perfanalysis.py
atefar2/alpha-mind
66d839affb5d81d31d5cac7e5e224278e3f99a8b
[ "MIT" ]
65
2017-11-27T01:26:47.000Z
2022-03-17T10:50:52.000Z
# -*- coding: utf-8 -*- """ Created on 2017-5-12 @author: cheng.li """ import unittest import numpy as np import pandas as pd from alphamind.analysis.perfanalysis import perf_attribution_by_pos class TestPerformanceAnalysis(unittest.TestCase): @classmethod def test_perf_attribution_by_pos(cls): n...
33.521739
90
0.630999
186
1,542
4.897849
0.419355
0.052689
0.052689
0.074643
0.188804
0.188804
0.161361
0.161361
0.161361
0.161361
0
0.017086
0.278859
1,542
45
91
34.266667
0.802158
0.040208
0
0
0
0
0.005435
0
0
0
0
0
0.037037
1
0.037037
false
0
0.148148
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c5f7612ff8eec29cef986e54718511e7172e74e
1,457
py
Python
appengine/src/greenday_api/tests/test_distinct_channels_api.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
6
2018-07-31T16:48:07.000Z
2020-02-01T03:17:51.000Z
appengine/src/greenday_api/tests/test_distinct_channels_api.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
41
2018-08-07T16:43:07.000Z
2020-06-05T18:54:50.000Z
appengine/src/greenday_api/tests/test_distinct_channels_api.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
1
2018-08-07T16:40:18.000Z
2018-08-07T16:40:18.000Z
""" Tests for :mod:`greenday_api.misc.distinct_channels_api <greenday_api.misc.distinct_channels_api>` """ from protorpc import message_types from .base import ApiTestCase from ..misc.distinct_channels_api import DistinctChannelsAPI class DistinctChannelsAPITests(ApiTestCase): """ Test case for ...
29.734694
102
0.660261
178
1,457
5.157303
0.331461
0.139434
0.108932
0.125272
0.328976
0.302832
0.302832
0.302832
0.220044
0.220044
0
0.027828
0.235415
1,457
48
103
30.354167
0.79623
0.190803
0
0
0
0
0.027624
0
0
0
0
0
0.136364
1
0.090909
false
0
0.136364
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c6349a307102d7f6afaff901e97fb40d85722ea
3,142
py
Python
pypipegraph/utils/log_listen.py
bopopescu/pypipegraph-2
3a3f9ba565789d8d73c8cd503703a957de2be9d8
[ "MIT" ]
4
2017-05-24T16:57:42.000Z
2017-09-21T19:55:27.000Z
pypipegraph/utils/log_listen.py
bopopescu/pypipegraph-2
3a3f9ba565789d8d73c8cd503703a957de2be9d8
[ "MIT" ]
2
2019-11-22T15:33:47.000Z
2020-07-27T11:59:44.000Z
pypipegraph/utils/log_listen.py
bopopescu/pypipegraph-2
3a3f9ba565789d8d73c8cd503703a957de2be9d8
[ "MIT" ]
4
2015-08-26T15:43:00.000Z
2020-07-20T03:36:40.000Z
""" The MIT License (MIT) Copyright (c) 2012, Florian Finkernagel <finkernagel@imt.uni-marburg.de> 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 limitatio...
33.425532
88
0.693507
414
3,142
5.256039
0.478261
0.040441
0.026195
0.011029
0.074449
0.061581
0.061581
0
0
0
0
0.00528
0.216423
3,142
93
89
33.784946
0.878554
0.397518
0
0.098039
0
0
0.186405
0
0
0
0
0
0
1
0.098039
false
0
0.117647
0
0.294118
0.137255
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c68214d1193846a164314f13ae12a80f459ffd1
9,130
py
Python
ldapauthenticator/ldapauthenticator.py
jbmarcille/ldapauthenticator
f6037d72bd8c76317b8741d96de1c7b1dee26298
[ "BSD-3-Clause" ]
null
null
null
ldapauthenticator/ldapauthenticator.py
jbmarcille/ldapauthenticator
f6037d72bd8c76317b8741d96de1c7b1dee26298
[ "BSD-3-Clause" ]
null
null
null
ldapauthenticator/ldapauthenticator.py
jbmarcille/ldapauthenticator
f6037d72bd8c76317b8741d96de1c7b1dee26298
[ "BSD-3-Clause" ]
null
null
null
import ldap3 import re from jupyterhub.auth import Authenticator from tornado import gen from traitlets import Unicode, Int, Bool, List, Union class LDAPAuthenticator(Authenticator): server_address = Unicode( config=True, help=""" Address of the LDAP server to contact. Could be a...
37.572016
142
0.571742
1,064
9,130
4.843985
0.265977
0.017462
0.016298
0.015522
0.123399
0.094684
0.082266
0.063252
0.063252
0.029492
0
0.003565
0.354874
9,130
242
143
37.727273
0.871477
0.053998
0
0.288557
0
0.014925
0.476119
0.039764
0
0
0
0.004132
0
1
0.014925
false
0.039801
0.024876
0
0.139303
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c6b0c96f51c49cf2ddaf1214e424470ce2b7534
23,329
py
Python
PyText3.py
Shock9616/PyText3
f16214060390ae8b457fc8dfbdb0943c7c34720b
[ "MIT" ]
null
null
null
PyText3.py
Shock9616/PyText3
f16214060390ae8b457fc8dfbdb0943c7c34720b
[ "MIT" ]
null
null
null
PyText3.py
Shock9616/PyText3
f16214060390ae8b457fc8dfbdb0943c7c34720b
[ "MIT" ]
1
2021-11-06T13:45:11.000Z
2021-11-06T13:45:11.000Z
#!/usr/bin/env python3 """ The main file for a basic code editor written entirely with the python standard library main.py PyText3 Text Editor Created by Kaleb Rosborough on 10/23/2018 Copyright © Shock9616 2018 All rights reserved """ #region Imports from tkinter import * import tkinter as tk from ...
37.207337
114
0.582365
2,506
23,329
5.378292
0.180367
0.054014
0.031162
0.027304
0.481451
0.433076
0.387298
0.374833
0.290473
0.225479
0
0.011048
0.251147
23,329
626
115
37.266773
0.760332
0.071885
0
0.311301
0
0
0.158422
0.002273
0
0
0
0
0
1
0.053305
false
0.002132
0.021322
0
0.089552
0.004264
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c6b575ef99f368943f9457f0e564df734ee7fbc
569
py
Python
array/0075_sort_colors/0075_sort_colors.py
zdyxry/LeetCode
33371285d0f3302158230f46e8b1b63b9f4639c4
[ "Xnet", "X11" ]
6
2019-09-16T01:50:44.000Z
2020-09-17T08:52:25.000Z
array/0075_sort_colors/0075_sort_colors.py
zdyxry/LeetCode
33371285d0f3302158230f46e8b1b63b9f4639c4
[ "Xnet", "X11" ]
null
null
null
array/0075_sort_colors/0075_sort_colors.py
zdyxry/LeetCode
33371285d0f3302158230f46e8b1b63b9f4639c4
[ "Xnet", "X11" ]
4
2020-02-07T12:43:16.000Z
2021-04-11T06:38:55.000Z
class Solution(object): def sortColors(self, nums): def triPartition(nums, target): i,j,n = 0, 0,len(nums) -1 while j <= n: if nums[j] < target: nums[i], nums[j] = nums[j], nums[i] i += 1 j += 1 ...
27.095238
55
0.391916
70
569
3.185714
0.3
0.134529
0.121076
0.134529
0
0
0
0
0
0
0
0.046358
0.469244
569
21
56
27.095238
0.692053
0
0
0.111111
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.166667
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
0
0
0
0
0
0
0
1
0
2c6b6b00c0e5fe6ce8b9350c4a38df05692a0c5c
2,545
py
Python
transforms/h52h5.py
srujanm/ibex
ed8167b8b1573830bee39c469db7733fdfcb41d1
[ "MIT" ]
3
2018-08-10T21:11:09.000Z
2019-07-26T13:47:24.000Z
transforms/h52h5.py
srujanm/ibex
ed8167b8b1573830bee39c469db7733fdfcb41d1
[ "MIT" ]
null
null
null
transforms/h52h5.py
srujanm/ibex
ed8167b8b1573830bee39c469db7733fdfcb41d1
[ "MIT" ]
6
2018-03-05T20:14:11.000Z
2020-07-23T18:39:16.000Z
# general functions for transforming h5 files from ibex.utilities.constants import * from numba import jit import numpy as np import math # downsample the data by (z, y, x) ratio @jit(nopython=True) def DownsampleData(data, ratio=(1, 2, 2)): # get the size of the current dataset (zres, yres, xres) = data.shap...
31.036585
118
0.604715
362
2,545
4.171271
0.28453
0.027815
0.021192
0.02649
0.25894
0.14106
0.109272
0.109272
0.109272
0
0
0.009896
0.285265
2,545
82
119
31.036585
0.820231
0.178782
0
0.061224
0
0
0
0
0
0
0
0
0.020408
1
0.061224
false
0
0.081633
0
0.204082
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c6ed73d803fe3c8ab6eab6f07fcada596456cd6
7,933
py
Python
src/lingcomp/farm/prediction_head.py
CharlottePouw/interpreting-complexity
b9a73c0aff18e4c6b4209a6511d00639494c70da
[ "Apache-2.0" ]
2
2020-12-18T12:26:22.000Z
2020-12-19T18:47:07.000Z
src/lingcomp/farm/prediction_head.py
CharlottePouw/interpreting-complexity
b9a73c0aff18e4c6b4209a6511d00639494c70da
[ "Apache-2.0" ]
null
null
null
src/lingcomp/farm/prediction_head.py
CharlottePouw/interpreting-complexity
b9a73c0aff18e4c6b4209a6511d00639494c70da
[ "Apache-2.0" ]
1
2021-05-19T13:39:45.000Z
2021-05-19T13:39:45.000Z
import logging import os import torch from farm.modeling.prediction_head import FeedForwardBlock, PredictionHead from torch.nn import MSELoss from torch.nn.functional import pad from lingcomp.farm.utils import roll logger = logging.getLogger(__name__) # TokenRegressionHead class TokenRegressionHead(PredictionHead...
46.391813
154
0.607715
1,019
7,933
4.525025
0.232581
0.047712
0.022555
0.03188
0.235741
0.200174
0.163522
0.147257
0.115159
0.096075
0
0.010009
0.294718
7,933
170
155
46.664706
0.81412
0.212656
0
0.107438
0
0.008264
0.076092
0.010473
0
0
0
0
0.008264
1
0.066116
false
0
0.057851
0
0.190083
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c7013fe7de804ea6c1f8cce79d5e2ec488e9041
381
py
Python
6.00.2x/week1/lecture1/more_on_plotting.py
NicholasAsimov/courses
d60981f25816445578eb9e89bbbeef2d38eaf014
[ "MIT" ]
null
null
null
6.00.2x/week1/lecture1/more_on_plotting.py
NicholasAsimov/courses
d60981f25816445578eb9e89bbbeef2d38eaf014
[ "MIT" ]
null
null
null
6.00.2x/week1/lecture1/more_on_plotting.py
NicholasAsimov/courses
d60981f25816445578eb9e89bbbeef2d38eaf014
[ "MIT" ]
null
null
null
import matplotlib.pyplot as pylab principal = 10000 interestRate = 0.05 years = 20 values = [] for i in range(years + 1): values.append(principal) principal += principal * interestRate pylab.plot(range(years + 1), values, linewidth=3) pylab.title('5% Growth, Compaunded Annually') pylab.xlabel('Years or Compo...
22.411765
49
0.721785
51
381
5.392157
0.666667
0.072727
0.08
0.123636
0
0
0
0
0
0
0
0.043077
0.146982
381
16
50
23.8125
0.803077
0
0
0
0
0
0.188976
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c7496e73af3dc1a12f6aa6a4517eb8851e79e00
972
py
Python
activitypub/lib.py
wakin-/simple_ap
f13013fdc79207cfb07f3944caeeef45fe31bbf7
[ "MIT" ]
10
2018-06-18T09:17:59.000Z
2020-04-22T11:46:12.000Z
activitypub/lib.py
wakin-/simple_ap
f13013fdc79207cfb07f3944caeeef45fe31bbf7
[ "MIT" ]
4
2020-06-05T18:24:12.000Z
2021-06-10T20:29:49.000Z
activitypub/lib.py
wakin-/simple_ap
f13013fdc79207cfb07f3944caeeef45fe31bbf7
[ "MIT" ]
null
null
null
import requests import json from urllib.parse import urlparse from httpsig import HeaderSigner from datetime import datetime def sign_headers(account, method, path): sign = HeaderSigner(account.ap_id(), account.private_key, algorithm='rsa-sha256', headers=['(request-target)', 'date']).sign({'Date': datetime.now()....
38.88
192
0.68107
119
972
5.495798
0.521008
0.033639
0.055046
0
0
0
0
0
0
0
0
0.012422
0.171811
972
24
193
40.5
0.8
0
0
0
0
0
0.167695
0
0
0
0
0
0
1
0.090909
false
0
0.227273
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c74d6e02e3c3e03fa94c6d04730c15d838799a4
4,230
py
Python
account/views.py
josephdubon/boilerplate_image_share_app
e079715577ca112e4de234c8a35dde73639c3366
[ "Unlicense" ]
null
null
null
account/views.py
josephdubon/boilerplate_image_share_app
e079715577ca112e4de234c8a35dde73639c3366
[ "Unlicense" ]
3
2021-09-22T18:45:21.000Z
2022-03-12T00:58:12.000Z
account/views.py
josephdubon/boilerplate_image_share_app
e079715577ca112e4de234c8a35dde73639c3366
[ "Unlicense" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render from django.contrib import messages from django.contrib.auth import authenticate, login from django.contrib.auth.decorators import login_required from .forms import ( LoginForm, UserRegistrationForm, UserEditForm, ProfileEditForm ...
35.25
105
0.56052
438
4,230
5.321918
0.280822
0.044616
0.028314
0.05577
0.192192
0.103818
0.073788
0
0
0
0
0
0.367139
4,230
119
106
35.546218
0.870751
0.215839
0
0.229885
0
0
0.093475
0.020941
0
0
0
0
0
1
0.045977
false
0.034483
0.08046
0.011494
0.218391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c7775424a57f17a890bdf4b7a7ff0cf9abb892f
932
py
Python
admin_tasks.py
draem0507/rietveld
70bda77edf3a642ef51ecc2d73c165345af5fdee
[ "Apache-2.0" ]
583
2015-03-28T23:49:34.000Z
2022-03-25T10:58:07.000Z
admin_tasks.py
draem0507/rietveld
70bda77edf3a642ef51ecc2d73c165345af5fdee
[ "Apache-2.0" ]
61
2015-04-02T01:08:34.000Z
2021-05-27T16:19:35.000Z
admin_tasks.py
draem0507/rietveld
70bda77edf3a642ef51ecc2d73c165345af5fdee
[ "Apache-2.0" ]
175
2015-03-29T13:06:36.000Z
2022-03-31T07:02:20.000Z
"""Collection of mapreduce jobs.""" import logging from mapreduce import operation as op from codereview.models import Account, Issue def delete_unused_accounts(account): """Delete accounts for uses that don't participate in any reviews.""" email = account.user.email() if Issue.query(Issue.owner_email == email...
31.066667
78
0.730687
140
932
4.821429
0.585714
0.031111
0.053333
0.075556
0.091852
0.091852
0.091852
0
0
0
0
0
0.167382
932
29
79
32.137931
0.869845
0.407725
0
0.1875
0
0
0.020599
0
0
0
0
0
0
1
0.125
false
0
0.1875
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c778b23ac35cdce2fabe050d19757ad54f60c5c
3,426
py
Python
core/pwc_tiny.py
hologerry/RAFT
a80209c442ea2e2a8860af3c9ca96e62498533ca
[ "BSD-3-Clause" ]
null
null
null
core/pwc_tiny.py
hologerry/RAFT
a80209c442ea2e2a8860af3c9ca96e62498533ca
[ "BSD-3-Clause" ]
null
null
null
core/pwc_tiny.py
hologerry/RAFT
a80209c442ea2e2a8860af3c9ca96e62498533ca
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from core.corr import AlternateCorrBlock, CorrBlock from core.extractor import BasicEncoder, SmallEncoder from core.mobilenetv3 import MobileNetV3 from core.pwc_decoder import Decoder from core.pwc_refiner import Refiner from core.up...
34.606061
125
0.646235
447
3,426
4.744966
0.364653
0.062235
0.049505
0.04149
0.073079
0.052334
0.052334
0
0
0
0
0.041272
0.22913
3,426
98
126
34.959184
0.761833
0.042323
0
0.041096
0
0
0.08318
0
0
0
0
0
0
1
0.09589
false
0.041096
0.178082
0.013699
0.342466
0.041096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c784ec9ca5bd9cab47e3e48eed02b1261eb6710
1,631
py
Python
dependencies_analysis/src/utils.py
afdaniele/director
845ba027f9009803fcf77f44874f2ab9d7ab72e3
[ "BSD-3-Clause" ]
null
null
null
dependencies_analysis/src/utils.py
afdaniele/director
845ba027f9009803fcf77f44874f2ab9d7ab72e3
[ "BSD-3-Clause" ]
null
null
null
dependencies_analysis/src/utils.py
afdaniele/director
845ba027f9009803fcf77f44874f2ab9d7ab72e3
[ "BSD-3-Clause" ]
null
null
null
''' Created by: @author: Andrea F Daniele - TTIC - Toyota Technological Institute at Chicago Feb 6, 2019 - Mountain View, CA ''' import sys import numpy as np from os.path import isfile class ProgressBar(object): def __init__(self, maxVal=100, precision=5, doneMessage=True ): self.maxVal = float( max(1.0, ma...
28.614035
92
0.650521
221
1,631
4.710407
0.402715
0.080692
0.037464
0.032661
0
0
0
0
0
0
0
0.027259
0.212753
1,631
56
93
29.125
0.783489
0.095647
0
0
0
0
0.039617
0
0
0
0
0
0
1
0.135135
false
0
0.081081
0
0.297297
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c78b387f4bdb0a5aec5ed308c83c4da0844e7b4
1,673
py
Python
attendees/persons/serializers/folk_serializer.py
xjlin0/-attendees30
48a2f2cbec11ec471d7a40d24903b48890feebf9
[ "MIT" ]
null
null
null
attendees/persons/serializers/folk_serializer.py
xjlin0/-attendees30
48a2f2cbec11ec471d7a40d24903b48890feebf9
[ "MIT" ]
null
null
null
attendees/persons/serializers/folk_serializer.py
xjlin0/-attendees30
48a2f2cbec11ec471d7a40d24903b48890feebf9
[ "MIT" ]
null
null
null
from attendees.persons.models import Folk, FolkAttendee, Relation, Utility, Attendee from attendees.whereabouts.serializers import PlaceSerializer from rest_framework import serializers class FolkSerializer(serializers.ModelSerializer): places = PlaceSerializer(many=True, read_only=True) class Meta: ...
30.418182
85
0.569038
160
1,673
5.7625
0.39375
0.084599
0.048807
0.06833
0.149675
0.149675
0.073753
0
0
0
0
0
0.344889
1,673
54
86
30.981481
0.841241
0.081291
0
0.055556
0
0
0.036266
0
0
0
0
0
0
1
0.055556
false
0
0.083333
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
0
0
0
0
0
0
1
0
2c7a53fa7046ae0ca4fe288507356e009d06bfd4
6,826
py
Python
V4 - HybridTTS/Utils/functions.py
riju-stone/chatbot
cfbd1a162f777440b138e2824d07f70cca8c4a48
[ "MIT" ]
null
null
null
V4 - HybridTTS/Utils/functions.py
riju-stone/chatbot
cfbd1a162f777440b138e2824d07f70cca8c4a48
[ "MIT" ]
1
2021-10-06T15:56:14.000Z
2021-10-07T04:54:15.000Z
V4 - HybridTTS/Utils/functions.py
riju-stone/chatbot
cfbd1a162f777440b138e2824d07f70cca8c4a48
[ "MIT" ]
null
null
null
import string import random from nltk.tokenize import TweetTokenizer import re import time import sys import numpy as np # source: https://gist.github.com/nealrs/96342d8231b75cf4bb82 cList = { "ain't": "am not", "aren't": "are not", "can't": "cannot", "can't've": "cannot have", "'cause": "because",...
28.206612
200
0.547612
1,005
6,826
3.654726
0.228856
0.008984
0.013613
0.019058
0.068064
0.068064
0.032126
0
0
0
0
0.017456
0.236302
6,826
241
201
28.323651
0.687128
0.08409
0
0.049505
0
0
0.347534
0.004965
0
0
0
0
0
1
0.044554
false
0
0.034653
0.009901
0.128713
0.004951
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c7b3b7be42370503ba918b7f804028312f44fe9
896
py
Python
reverse_integer.py
alexhla/programming-problems-in-python
2db759f6196c026f43c6f2d6c9104d04a6850829
[ "MIT" ]
null
null
null
reverse_integer.py
alexhla/programming-problems-in-python
2db759f6196c026f43c6f2d6c9104d04a6850829
[ "MIT" ]
null
null
null
reverse_integer.py
alexhla/programming-problems-in-python
2db759f6196c026f43c6f2d6c9104d04a6850829
[ "MIT" ]
null
null
null
class Solution: def reverse(self, x): sign = -1 if x<0 else 1 x = abs(x) # floor division ALWAYS rounds down (-1//10 = -1) n = 0 # thus save sign and take absolute value while x != 0: n *= 10 # left shift digits one place n += x%10 # push least significant digit x //= 10 # pop processed digit ...
28.903226
81
0.626116
153
896
3.666667
0.431373
0.035651
0.02139
0.035651
0.210339
0.185383
0.185383
0.067736
0.067736
0
0
0.065407
0.232143
896
31
82
28.903226
0.75
0.382813
0
0.230769
0
0
0.066298
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.269231
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c827b375cd33ffc35313851f36e3892e6b7ddad
17,537
py
Python
revisiting_rainbow/Agents/quantile_agent_new.py
jiawei415/revisiting_rainbow
7cd2bc6f64d08ebc2233d93210063cc64d2598a7
[ "Apache-2.0" ]
72
2020-11-24T22:12:59.000Z
2022-03-21T21:18:21.000Z
revisiting_rainbow/Agents/quantile_agent_new.py
jiawei415/revisiting_rainbow
7cd2bc6f64d08ebc2233d93210063cc64d2598a7
[ "Apache-2.0" ]
2
2021-06-02T08:01:10.000Z
2021-07-03T03:11:54.000Z
revisiting_rainbow/Agents/quantile_agent_new.py
jiawei415/revisiting_rainbow
7cd2bc6f64d08ebc2233d93210063cc64d2598a7
[ "Apache-2.0" ]
6
2021-01-13T22:15:17.000Z
2021-11-04T04:00:05.000Z
"""An extension of Rainbow to perform quantile regression. This loss is computed as in "Distributional Reinforcement Learning with Quantile Regression" - Dabney et. al, 2017" Specifically, we implement the following components: * n-step updates * prioritized replay * double_dqn * noisy * dueling """ impor...
43.301235
117
0.642584
2,144
17,537
5.046642
0.210354
0.016636
0.013309
0.012754
0.287246
0.26146
0.241867
0.216821
0.200555
0.190573
0
0.011204
0.282374
17,537
405
118
43.301235
0.84855
0.32383
0
0.227848
0
0
0.016672
0.00191
0
0
0
0
0
1
0.063291
false
0
0.046414
0.012658
0.160338
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c846fbf1fb31138dd5ef08bbb8178074cf8b762
4,395
py
Python
utils/visualize_utils.py
ljrprocc/Motif-Removal
8979ca91398212248a2be61345c99bdec53ae37e
[ "MIT" ]
null
null
null
utils/visualize_utils.py
ljrprocc/Motif-Removal
8979ca91398212248a2be61345c99bdec53ae37e
[ "MIT" ]
null
null
null
utils/visualize_utils.py
ljrprocc/Motif-Removal
8979ca91398212248a2be61345c99bdec53ae37e
[ "MIT" ]
null
null
null
import torch import os.path from utils.train_utils import load_globals, init_folders, init_nets from loaders.motif_dataset import MotifDS from PIL import Image import numpy as np # network names root_path = '..' train_tag = 'vm_demo_text_remover' load_tag = '' device = torch.device('cuda:0') net_path =...
40.321101
111
0.61661
581
4,395
4.371773
0.2358
0.066929
0.018898
0.015354
0.059843
0.029921
0
0
0
0
0
0.020516
0.268032
4,395
108
112
40.694444
0.769039
0.005688
0
0.065217
0
0
0.044142
0
0
0
0
0
0
1
0.054348
false
0
0.065217
0
0.152174
0.01087
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c8726dfb28106d95bb06c1763a01f4331da1d8a
651
py
Python
python/Data Structures and Algorithms in Python Book/stacks/match_delimiter.py
gauravssnl/Data-Structures-and-Algorithms
1c335c72ce514d4f95090241bbd6edf01a1141a8
[ "MIT" ]
7
2020-05-10T09:57:23.000Z
2021-03-27T11:55:07.000Z
python/Data Structures and Algorithms in Python Book/stacks/match_delimiter.py
gauravssnl/Data-Structures-and-Algorithms
1c335c72ce514d4f95090241bbd6edf01a1141a8
[ "MIT" ]
null
null
null
python/Data Structures and Algorithms in Python Book/stacks/match_delimiter.py
gauravssnl/Data-Structures-and-Algorithms
1c335c72ce514d4f95090241bbd6edf01a1141a8
[ "MIT" ]
3
2021-03-27T03:42:57.000Z
2021-08-09T12:03:41.000Z
from arraystack import ArrayStack def is_matched(expr): """Return True if all delimiters properly match (or closed); False otherwise""" left_delimiters = "({[" right_delimiter = ")}]" S = ArrayStack() for c in expr: if c in left_delimiters: S.push(c) elif c in right_del...
28.304348
84
0.572965
85
651
4.164706
0.435294
0.076271
0.110169
0.039548
0.146893
0.146893
0.146893
0.146893
0.146893
0
0
0.004338
0.291859
651
23
85
28.304348
0.763557
0.113671
0
0.210526
0
0
0.068182
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.263158
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
0
0
0
0
0
1
0
2c889835bd8ac35d8cbc3f5d416195de17ced7a8
24,522
py
Python
cogs/werewolf.py
vluk/baymaxBot
fb7e7dd4b2d99a6987a8e8c09afc7e43af844ffc
[ "MIT" ]
null
null
null
cogs/werewolf.py
vluk/baymaxBot
fb7e7dd4b2d99a6987a8e8c09afc7e43af844ffc
[ "MIT" ]
4
2021-04-24T06:38:49.000Z
2021-04-24T06:44:21.000Z
cogs/werewolf.py
vluk/baymaxBot
fb7e7dd4b2d99a6987a8e8c09afc7e43af844ffc
[ "MIT" ]
1
2021-05-02T08:04:08.000Z
2021-05-02T08:04:08.000Z
import discord from discord.ext import commands import random import asyncio cards = ["villager", "werewolf", "minion", "mason", "seer", "robber", "troublemaker", "drunk", "insomniac", "tanner", "hunter"] aesthetics = { "werewolf" : { "color" : 0x25d0ff, "thumbnail" : "https://cdn.discordapp.com/a...
38.496075
157
0.540046
3,006
24,522
4.346973
0.119095
0.032831
0.034285
0.016071
0.594398
0.560496
0.522461
0.498584
0.488329
0.44356
0
0.007294
0.345853
24,522
636
158
38.556604
0.805436
0
0
0.486
0
0.006
0.160958
0.000938
0
0
0.000652
0
0
1
0.032
false
0.004
0.008
0.01
0.128
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c8b5792d3174dff39013842e2317ce417ed4a8a
650
py
Python
main.py
KShah707/TweetDownloader
ff6770e2f86273919c279466337a4e5ab2cd63e0
[ "MIT" ]
null
null
null
main.py
KShah707/TweetDownloader
ff6770e2f86273919c279466337a4e5ab2cd63e0
[ "MIT" ]
null
null
null
main.py
KShah707/TweetDownloader
ff6770e2f86273919c279466337a4e5ab2cd63e0
[ "MIT" ]
null
null
null
################################################### # Uses the tweepy client to query a user's tweets # ################################################### import csv import tweepy # Load secrets from separate file from user_secrets import * # Set up API client auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRE...
30.952381
89
0.641538
83
650
4.843373
0.566265
0.08209
0.084577
0.109453
0
0
0
0
0
0
0
0
0.124615
650
21
90
30.952381
0.706503
0.176923
0
0
0
0
0.070093
0.049065
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
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
0
0
0
0
0
0
0
0
1
0
2c8c64b7f637476a4c3e62cdc4f47747851211f2
1,664
py
Python
anime_downloader/sites/nyaa.py
Alsira/anime-downloader
d82b4cfd5c7c6c358d0d8ffd36ce2d5c4a285595
[ "Unlicense" ]
1,077
2020-10-17T15:43:17.000Z
2022-03-31T15:24:29.000Z
anime_downloader/sites/nyaa.py
Alsira/anime-downloader
d82b4cfd5c7c6c358d0d8ffd36ce2d5c4a285595
[ "Unlicense" ]
509
2018-06-01T13:07:56.000Z
2020-10-17T13:34:39.000Z
anime_downloader/sites/nyaa.py
Alsira/anime-downloader
d82b4cfd5c7c6c358d0d8ffd36ce2d5c4a285595
[ "Unlicense" ]
255
2018-05-27T03:52:11.000Z
2020-10-12T17:27:38.000Z
from anime_downloader.sites.anime import Anime, AnimeEpisode, SearchResult from anime_downloader.sites import helpers class Nyaa(Anime, sitename='nyaa'): """ Site: https://nyaa.si Config ~~~~~~ filter: Choose filter method in search. One of ['No filter', 'No remakes', 'Trusted Only'] category...
35.404255
145
0.612981
206
1,664
4.859223
0.42233
0.067932
0.037962
0.047952
0.04995
0.04995
0.04995
0
0
0
0
0.009224
0.218149
1,664
46
146
36.173913
0.760184
0.176683
0
0
0
0
0.216741
0.016442
0
0
0
0
0
1
0.12
false
0
0.08
0.08
0.48
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c8f674fb4bb528a31df28c9e6f31e31a0334ee4
810
py
Python
src/hgg_coffea/tools/xgb_loader.py
holzman/hgg-coffea
5aabdb127edaa15b0f22d54f0e3ccdc74c5c10de
[ "BSD-3-Clause" ]
3
2021-07-22T07:02:03.000Z
2021-09-22T07:01:59.000Z
src/hgg_coffea/tools/xgb_loader.py
holzman/hgg-coffea
5aabdb127edaa15b0f22d54f0e3ccdc74c5c10de
[ "BSD-3-Clause" ]
2
2021-08-16T16:08:09.000Z
2021-11-12T00:41:50.000Z
src/hgg_coffea/tools/xgb_loader.py
holzman/hgg-coffea
5aabdb127edaa15b0f22d54f0e3ccdc74c5c10de
[ "BSD-3-Clause" ]
8
2021-07-22T07:49:19.000Z
2022-01-26T22:58:03.000Z
import gzip import lzma import warnings from typing import Optional import xgboost def _get_gzip(fname: str) -> bytearray: return bytearray(gzip.open(fname, "rb").read()) def _get_lzma(fname: str) -> bytearray: return bytearray(lzma.open(fname, "rb").read()) _magics = { b"\x1f\x8b": _get_gzip, b"...
21.891892
54
0.632099
106
810
4.716981
0.415094
0.048
0.066
0.092
0.128
0
0
0
0
0
0
0.006547
0.245679
810
36
55
22.5
0.811784
0
0
0.074074
0
0
0.023457
0
0
0
0
0
0
1
0.111111
false
0
0.185185
0.074074
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
0
0
0
0
0
0
0
1
0
2c8faf8eecad5b6ac0b19aefead4deb655a3a6fb
16,629
py
Python
latent_rationale/snli/util.py
bastings/interpretable_neural_predictions
fef61833bd22205dc2d4f77e2c0ed3f40cbe8ea6
[ "MIT" ]
100
2019-05-21T21:26:19.000Z
2022-03-27T18:22:27.000Z
latent_rationale/snli/util.py
bastings/interpretable_neural_predictions
fef61833bd22205dc2d4f77e2c0ed3f40cbe8ea6
[ "MIT" ]
6
2019-07-30T03:08:44.000Z
2021-05-07T16:49:55.000Z
latent_rationale/snli/util.py
bastings/interpretable_neural_predictions
fef61833bd22205dc2d4f77e2c0ed3f40cbe8ea6
[ "MIT" ]
20
2019-06-19T18:36:41.000Z
2022-01-08T12:59:39.000Z
import os from argparse import ArgumentParser import torch from hashlib import md5 import numpy as np import glob import re from torch.nn import functional as F from latent_rationale.snli.constants import UNK_TOKEN, PAD_TOKEN, INIT_TOKEN from latent_rationale.snli.plotting import plot_heatmap from latent_rationale.snl...
35.76129
81
0.561609
1,993
16,629
4.484195
0.193176
0.035247
0.066577
0.010966
0.335124
0.295177
0.268435
0.245944
0.219537
0.189549
0
0.017206
0.31848
16,629
464
82
35.838362
0.771376
0.078958
0
0.282051
0
0
0.098718
0.011828
0
0
0
0
0.003205
1
0.064103
false
0.012821
0.038462
0.003205
0.160256
0.092949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c9220dbfde66eef7cdc24410685f09d9949bf06
5,357
py
Python
lc_functions.py
mrawls/kepler-makelc
72a929b04d1c71bb5e854b96a9901544f681ed86
[ "MIT" ]
1
2018-09-10T01:35:08.000Z
2018-09-10T01:35:08.000Z
lc_functions.py
mrawls/kepler-makelc
72a929b04d1c71bb5e854b96a9901544f681ed86
[ "MIT" ]
null
null
null
lc_functions.py
mrawls/kepler-makelc
72a929b04d1c71bb5e854b96a9901544f681ed86
[ "MIT" ]
null
null
null
import numpy as np from pyraf import iraf from pyraf.iraf import kepler ''' Useful functions for Kepler light curve processing Use this with the program 'makelc.py' Originally by Jean McKeever Edited and improved by Meredith Rawls ''' # calculate orbital phase # times must be a list of observation times in the same un...
36.691781
82
0.682472
872
5,357
4.174312
0.302752
0.016484
0.015385
0.018132
0.406868
0.382143
0.343956
0.343956
0.302747
0.273077
0
0.02268
0.193392
5,357
146
83
36.691781
0.819718
0.445399
0
0.252874
0
0
0.008718
0
0
0
0
0
0
1
0.068966
false
0
0.034483
0
0.172414
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c93c3807680923e216b02227b5a6105e6428b73
17,649
py
Python
src/beacon_api/utils/polyvalent_functions.py
jrambla/beacon-2.x
f6c8bbecd183471d62c01e040d6e0b3c9ef8f448
[ "Apache-2.0" ]
null
null
null
src/beacon_api/utils/polyvalent_functions.py
jrambla/beacon-2.x
f6c8bbecd183471d62c01e040d6e0b3c9ef8f448
[ "Apache-2.0" ]
null
null
null
src/beacon_api/utils/polyvalent_functions.py
jrambla/beacon-2.x
f6c8bbecd183471d62c01e040d6e0b3c9ef8f448
[ "Apache-2.0" ]
null
null
null
""" Functions used by different endopoints. - To do basic operations - To parse the filters request - To manage access resolution """ import ast import logging import yaml import requests from pathlib import Path from ..api.exceptions import BeaconBadRequest, BeaconServerError, BeaconForbidden, BeaconUnauthorised...
49.025
209
0.570854
1,914
17,649
5.120167
0.202194
0.022041
0.02449
0.015714
0.271531
0.215
0.196939
0.190408
0.161633
0.144286
0
0.003547
0.265227
17,649
359
210
49.16156
0.752159
0.27622
0
0.195455
0
0.013636
0.172437
0.012764
0
0
0
0
0
1
0.036364
false
0
0.036364
0
0.145455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c94bd3786b5a0a64f466b5fdfd28ee49d03d138
990
py
Python
02_Double/double_aws-samples_1_v1.py
Machine-Learning-Labs/DeepRacerRewardFunctionsCollection
f6addf4654de90f9d1669fd5de67331add93ab2f
[ "MIT" ]
17
2020-01-14T06:25:10.000Z
2022-01-25T18:02:37.000Z
02_Double/double_aws-samples_1_v1.py
Machine-Learning-Labs/DeepRacerRewardFunctionsCollection
f6addf4654de90f9d1669fd5de67331add93ab2f
[ "MIT" ]
null
null
null
02_Double/double_aws-samples_1_v1.py
Machine-Learning-Labs/DeepRacerRewardFunctionsCollection
f6addf4654de90f9d1669fd5de67331add93ab2f
[ "MIT" ]
5
2020-05-30T18:49:18.000Z
2021-09-03T19:38:39.000Z
''' @author: AWS Samples @Link: https://docs.aws.amazon.com/deepracer/latest/developerguide/what-is-deepracer.html @License: Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. ''' def reward_function(params): ''' Example of rewarding the agent to follow the track center line ...
30.9375
93
0.680808
142
990
4.591549
0.528169
0.076687
0.138037
0.110429
0.08589
0
0
0
0
0
0
0.033025
0.235354
990
31
94
31.935484
0.828269
0.458586
0
0
0
0
0.062249
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c95e40e7220fe3c7db4c0c8a471b2078f613932
14,498
py
Python
parsons/github/github.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
3
2019-09-05T16:57:15.000Z
2019-10-01T19:56:58.000Z
parsons/github/github.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
22
2019-09-03T13:23:37.000Z
2019-10-03T20:32:48.000Z
parsons/github/github.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
2
2019-09-01T18:30:10.000Z
2019-10-03T20:07:46.000Z
import logging from functools import partial, wraps import petl import requests from github import Github as PyGithub from github.GithubException import UnknownObjectException from parsons.etl.table import Table from parsons.utilities import check_env, files logger = logging.getLogger(__name__) def _wrap_method(de...
34.193396
100
0.588702
1,707
14,498
4.864675
0.154657
0.036609
0.017221
0.014451
0.373675
0.349711
0.317558
0.291426
0.251204
0.195448
0
0.005792
0.333149
14,498
423
101
34.274232
0.853124
0.433715
0
0.101449
0
0
0.117053
0.003714
0
0
0
0
0
1
0.144928
false
0.036232
0.057971
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c9cfa04dec4051e0276862ca37caf6daae18af1
3,716
py
Python
thirdparty/gd2c/gd2c/loader.py
ppiecuch/godot
ff2098b324b814a0d1bd9d5722aa871fc5214fab
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
null
null
null
thirdparty/gd2c/gd2c/loader.py
ppiecuch/godot
ff2098b324b814a0d1bd9d5722aa871fc5214fab
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
null
null
null
thirdparty/gd2c/gd2c/loader.py
ppiecuch/godot
ff2098b324b814a0d1bd9d5722aa871fc5214fab
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
null
null
null
from __future__ import annotations from pathlib import Path from gd2c.gdscriptclass import GDScriptClass, GDScriptClassConstant, GDScriptFunctionConstant, GDScriptFunction, GDScriptGlobal, GDScriptMember, GDScriptFunctionParameter from gd2c.variant import VariantType from gd2c.bytecode import extract from typing import...
43.209302
170
0.626749
417
3,716
5.390887
0.314149
0.032028
0.017349
0.020018
0.129004
0.076512
0.023132
0
0
0
0
0.002901
0.257804
3,716
85
171
43.717647
0.812183
0.012917
0
0
0
0
0.07665
0
0
0
0
0
0
1
0.057971
false
0
0.115942
0
0.231884
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c9e2ce825149494c4555d540152aae13598ea62
1,301
py
Python
deepppl/tests/target_py/kmeans.py
sfantao/deepppl
3091c342814744d622eda6f7a185085d420a152b
[ "Apache-2.0" ]
18
2018-06-07T17:41:30.000Z
2021-03-19T23:31:14.000Z
deepppl/tests/target_py/kmeans.py
sfantao/deepppl
3091c342814744d622eda6f7a185085d420a152b
[ "Apache-2.0" ]
19
2018-06-11T17:42:03.000Z
2020-10-13T17:19:11.000Z
deepppl/tests/target_py/kmeans.py
sfantao/deepppl
3091c342814744d622eda6f7a185085d420a152b
[ "Apache-2.0" ]
7
2018-06-08T20:50:24.000Z
2020-10-12T22:00:09.000Z
import torch from torch import tensor, rand import pyro import torch.distributions.constraints as constraints import pyro.distributions as dist def transformed_data(D=None, K=None, N=None, y=None): neg_log_K = -log(K) return {'neg_log_K': neg_log_K} def model(D=None, K=None, N=None, y=None, transformed_data...
34.236842
75
0.571868
225
1,301
3.115556
0.213333
0.057061
0.089872
0.042796
0.479315
0.479315
0.479315
0.459344
0.430813
0.410842
0
0.033368
0.262875
1,301
38
76
34.236842
0.697602
0
0
0.4375
0
0
0.043779
0
0
0
0
0
0
1
0.09375
false
0
0.15625
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2c9ffef9867b37cc6ff8be2016f65cefeb7bd057
5,885
py
Python
Siberia/plug/plugin_adminka.py
spouk/Siberia
0b7dfe2271b285eb038a09ef954ed8c605cbd2d2
[ "MIT" ]
null
null
null
Siberia/plug/plugin_adminka.py
spouk/Siberia
0b7dfe2271b285eb038a09ef954ed8c605cbd2d2
[ "MIT" ]
null
null
null
Siberia/plug/plugin_adminka.py
spouk/Siberia
0b7dfe2271b285eb038a09ef954ed8c605cbd2d2
[ "MIT" ]
null
null
null
#!/usr/local/bin/python __author__ = 'spouk' __all__ = ('AdminkaPlugin',) __version__ = 0.1 __name__ = 'AdminkaPLugin for Siberia' __middleware__ = True #--------------------------------------------------------------------------- # global imports #----------------------------------------------------------------------...
38.464052
121
0.584367
616
5,885
5.48539
0.310065
0.045576
0.020716
0.029595
0.149453
0.11749
0.11749
0.11749
0.07813
0
0
0.003935
0.26593
5,885
152
122
38.717105
0.778241
0.202209
0
0.061224
0
0
0.137887
0
0
0
0
0
0.030612
1
0.091837
false
0
0.071429
0
0.27551
0.061224
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ca1f66514af862a2395c2a72cc563dfe7628eb9
2,576
py
Python
services/jobs/tests/api/base.py
Open-EO/openeo-openshift-driver
822dbd3ccee25180cc48efd2f891504b6b5edc14
[ "Apache-2.0" ]
6
2018-10-02T15:04:11.000Z
2019-12-13T11:36:49.000Z
services/jobs/tests/api/base.py
Open-EO/openeo-openshift-driver
822dbd3ccee25180cc48efd2f891504b6b5edc14
[ "Apache-2.0" ]
54
2019-01-09T17:14:29.000Z
2020-10-02T11:39:38.000Z
services/jobs/tests/api/base.py
Open-EO/openeo-openshift-driver
822dbd3ccee25180cc48efd2f891504b6b5edc14
[ "Apache-2.0" ]
6
2018-07-03T15:58:05.000Z
2019-07-03T07:20:46.000Z
"""Provide base test class.""" from typing import Any, Callable from nameko_sqlalchemy.database_session import Session from jobs.dependencies.dag_handler import DagHandler from jobs.service import JobService from .exceptions import get_missing_resource_service_exception, get_not_authorized_service_exception from ..ut...
42.933333
102
0.689829
339
2,576
4.99705
0.268437
0.035419
0.024793
0.023613
0.50059
0.42621
0.40732
0.40732
0.361275
0.319953
0
0
0.229037
2,576
59
103
43.661017
0.852971
0.257764
0
0.125
0
0
0.046009
0
0
0
0
0
0.0625
1
0.09375
false
0
0.1875
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ca3388b5b4f8f447dfd365008e2dd96e0c723ba
1,919
py
Python
egi/models.py
gtaylor/evennia-game-directory
f7a4d0731503de540026dc0fe6409a7c24ad676e
[ "BSD-3-Clause" ]
1
2019-02-06T10:58:11.000Z
2019-02-06T10:58:11.000Z
egi/models.py
gtaylor/evennia-game-index
f7a4d0731503de540026dc0fe6409a7c24ad676e
[ "BSD-3-Clause" ]
4
2017-10-24T21:47:53.000Z
2019-09-22T13:12:57.000Z
egi/models.py
gtaylor/evennia-game-directory
f7a4d0731503de540026dc0fe6409a7c24ad676e
[ "BSD-3-Clause" ]
2
2017-02-09T16:25:27.000Z
2017-10-24T21:40:42.000Z
import datetime from google.appengine.ext import ndb class GameListing(ndb.Model): # Game listing stuff game_name = ndb.StringProperty(required=True) game_status = ndb.StringProperty(required=True) game_website = ndb.StringProperty() listing_contact = ndb.StringProperty(required=True) short_d...
37.627451
95
0.706097
241
1,919
5.452282
0.53112
0.142314
0.076104
0.08828
0.09589
0
0
0
0
0
0
0.003318
0.214695
1,919
50
96
38.38
0.868613
0.211569
0
0
0
0
0
0
0
0
0
0
0
1
0.064516
false
0
0.064516
0
0.774194
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ca4292d50c5517e99b0982bf8f944c2f58adef3
2,267
py
Python
stylelens/dataset/df/generate_category_classifier_dataset.py
williamcameron/bl-magi
a35809489c15df25efc9c322166afaee7df3e192
[ "Apache-2.0" ]
null
null
null
stylelens/dataset/df/generate_category_classifier_dataset.py
williamcameron/bl-magi
a35809489c15df25efc9c322166afaee7df3e192
[ "Apache-2.0" ]
null
null
null
stylelens/dataset/df/generate_category_classifier_dataset.py
williamcameron/bl-magi
a35809489c15df25efc9c322166afaee7df3e192
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from stylelens_dataset.categories import Categories from stylelens_dataset.objects import Objects from pprint import pprint import os import urllib.request as urllib # create an instance of the API class category_api = Categories() object_api = Objects() def download_image_from_u...
25.47191
100
0.603
264
2,267
4.94697
0.314394
0.11026
0.061256
0.073507
0.258806
0.222052
0.183767
0.125574
0.059724
0
0
0.005818
0.3176
2,267
88
101
25.761364
0.838397
0.023379
0
0.371429
0
0
0.074627
0.032112
0
0
0
0
0
1
0.071429
false
0.028571
0.085714
0
0.185714
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ca44cd0b909b867cabf4f36b32c482801cc16f1
8,429
py
Python
keras/dtensor/lazy_variable.py
englert-m/keras
7007cd0fd548032f1bb2c23b1defa4812628baec
[ "Apache-2.0" ]
null
null
null
keras/dtensor/lazy_variable.py
englert-m/keras
7007cd0fd548032f1bb2c23b1defa4812628baec
[ "Apache-2.0" ]
null
null
null
keras/dtensor/lazy_variable.py
englert-m/keras
7007cd0fd548032f1bb2c23b1defa4812628baec
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.522167
111
0.678965
1,038
8,429
5.297688
0.251445
0.106929
0.030915
0.026187
0.187307
0.134934
0.117112
0.117112
0.087289
0.064375
0
0.002325
0.234429
8,429
202
112
41.727723
0.849837
0.208447
0
0.176871
0
0
0.150265
0.010431
0
0
0
0.004951
0.054422
1
0.040816
false
0.006803
0.068027
0
0.129252
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ca5cbc4f5357898528acdf248026bc993f249fb
2,493
py
Python
txaws/tests/test_util.py
vargas/txaws
b75d00e042c6e7e1609c05e01ee54e1c72b1eaf6
[ "MIT" ]
1
2021-12-17T00:03:24.000Z
2021-12-17T00:03:24.000Z
txaws/tests/test_util.py
vargas/txaws
b75d00e042c6e7e1609c05e01ee54e1c72b1eaf6
[ "MIT" ]
null
null
null
txaws/tests/test_util.py
vargas/txaws
b75d00e042c6e7e1609c05e01ee54e1c72b1eaf6
[ "MIT" ]
1
2021-12-17T00:06:41.000Z
2021-12-17T00:06:41.000Z
from urllib.parse import urlparse import binascii from twisted.trial.unittest import TestCase from txaws.util import hmac_sha1, iso8601time, parse class MiscellaneousTestCase(TestCase): def test_hmac_sha1(self): cases = [ (binascii.unhexlify(b"0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b"), ...
33.24
77
0.579222
272
2,493
5.283088
0.463235
0.073069
0.069589
0.066806
0.073765
0.044537
0
0
0
0
0
0.070582
0.289611
2,493
74
78
33.689189
0.740824
0.200562
0
0.113636
0
0
0.203558
0.085819
0
0
0
0
0.227273
1
0.090909
false
0
0.090909
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ca6030084049893d40df687b5267b7ac8dd9230
7,674
py
Python
vgame/theater.py
cilame/vgame
9b7076256500137fe5c95426798007734dd613a2
[ "MIT" ]
null
null
null
vgame/theater.py
cilame/vgame
9b7076256500137fe5c95426798007734dd613a2
[ "MIT" ]
null
null
null
vgame/theater.py
cilame/vgame
9b7076256500137fe5c95426798007734dd613a2
[ "MIT" ]
null
null
null
import pygame from pygame.locals import * from .actor import Actor from .actor import Player, Wall, Enemy, Bullet, NPC, Anime, Map from .actor import Menu, Background, Button from .actor import Delayer import vgame class Camera: ''' 主要负责处理镜头的处理,看看后续能够扩展出多少的功能。 ''' DEBUG = False def __init__(sel...
36.717703
100
0.600078
954
7,674
4.68239
0.179245
0.048355
0.067159
0.076561
0.22073
0.09156
0.09156
0.019252
0.019252
0
0
0.009643
0.283815
7,674
209
101
36.717703
0.80313
0.097081
0
0.074074
0
0
0.012962
0
0
0
0
0
0
1
0.160494
false
0
0.04321
0.080247
0.283951
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ca906d948f8bdc4ff1f5129d6cb152946ac17af
60,654
py
Python
third_party/chromite/lib/auto_updater.py
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/chromite/lib/auto_updater.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/chromite/lib/auto_updater.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# -*- coding: utf-8 -*- # Copyright 2016 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Library containing functions to execute auto-update on a remote device. TODO(xixuan): Make this lib support other update logic...
40.328457
80
0.685099
7,537
60,654
5.334218
0.121534
0.020893
0.013904
0.007313
0.339941
0.270819
0.21764
0.180231
0.165829
0.150035
0
0.002868
0.229663
60,654
1,503
81
40.355289
0.857589
0.308125
0
0.274971
0
0
0.16369
0.020934
0
0
0
0.003327
0
1
0.074031
false
0
0.024677
0.001175
0.182139
0.0047
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2caaeb7931baabb2f2a4e505483d42162334c020
1,368
py
Python
d2lbook/common.py
dltech-xyz/d2l-book
5f5279708f029c9724f4b258a1a26b6db2317532
[ "Apache-2.0" ]
1
2021-01-02T03:34:04.000Z
2021-01-02T03:34:04.000Z
d2lbook/common.py
szha/d2l-book
5f5279708f029c9724f4b258a1a26b6db2317532
[ "Apache-2.0" ]
null
null
null
d2lbook/common.py
szha/d2l-book
5f5279708f029c9724f4b258a1a26b6db2317532
[ "Apache-2.0" ]
1
2020-09-15T05:57:12.000Z
2020-09-15T05:57:12.000Z
import re from typing import Optional, List, Any, Callable, Tuple # Our special mark in markdown, e.g. :label:`chapter_intro` md_mark_pattern = re.compile(':([-\/\\._\w\d]+):(`[\ \*-\/\\\._\w\d]+`)?') # Same for md_mark_pattern, but for rst files rst_mark_pattern = re.compile(':([-\/\\._\w\d]+):(``[\ \*-\/\\\._\w\d]+`...
33.365854
77
0.597953
213
1,368
3.661972
0.347418
0.076923
0.035897
0.051282
0.15641
0.105128
0.105128
0.061538
0
0
0
0.000926
0.210526
1,368
41
78
33.365854
0.721296
0.172515
0
0.068966
0
0
0.145666
0.040214
0
0
0
0
0
1
0.137931
false
0
0.068966
0
0.275862
0.206897
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cab7ae8cc2711116a7008627d7fc69c47ab979f
4,999
py
Python
emulator/demoEmulator.py
ojotoxy/Processor
8e6e4e8b33b2d3b51b05104089e801f187bb4617
[ "Apache-2.0" ]
1
2021-07-21T03:46:43.000Z
2021-07-21T03:46:43.000Z
emulator/demoEmulator.py
ojotoxy/Processor
8e6e4e8b33b2d3b51b05104089e801f187bb4617
[ "Apache-2.0" ]
null
null
null
emulator/demoEmulator.py
ojotoxy/Processor
8e6e4e8b33b2d3b51b05104089e801f187bb4617
[ "Apache-2.0" ]
1
2021-01-22T07:46:38.000Z
2021-01-22T07:46:38.000Z
#!/usr/bin/env python3 from enum import Enum # This computer will have these memory mapped registers: # 0 = PC # 1 = SP # but I didn't implement them. Only the program counter exists and its not memory mapped class Memory(object): def __init__(self): self.storage = {} def __setitem__(self, addr, v...
29.063953
100
0.605721
657
4,999
4.493151
0.2207
0.040312
0.123306
0.060976
0.41565
0.39397
0.360434
0.332656
0.332656
0.332656
0
0.019899
0.286257
4,999
171
101
29.233918
0.807455
0.215643
0
0.447154
0
0
0.019102
0
0
0
0
0.005848
0
1
0.03252
false
0
0.00813
0.00813
0.065041
0.04065
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cace54cc66cc33d32eb380eadf379d0098d853a
8,842
py
Python
ggshield/config.py
boblefrag/gg-shield
8eef8e02596ca05b9250482d9ea5cafd4435cfa0
[ "MIT" ]
null
null
null
ggshield/config.py
boblefrag/gg-shield
8eef8e02596ca05b9250482d9ea5cafd4435cfa0
[ "MIT" ]
null
null
null
ggshield/config.py
boblefrag/gg-shield
8eef8e02596ca05b9250482d9ea5cafd4435cfa0
[ "MIT" ]
null
null
null
import copy import json import os from typing import Any, Dict, List, NamedTuple import click import yaml from dotenv import load_dotenv from pygitguardian.models import PolicyBreak from .git_shell import get_git_root, is_git_dir from .text_utils import display_error CONTEXT_SETTINGS = dict(help_option_names=["-h",...
33.240602
87
0.577358
1,075
8,842
4.55907
0.194419
0.019588
0.027749
0.014691
0.37727
0.345032
0.312385
0.247705
0.23383
0.23383
0
0.001821
0.316784
8,842
265
88
33.366038
0.809469
0.072721
0
0.321782
0
0
0.085802
0.022618
0
0
0
0
0
1
0.108911
false
0.004951
0.049505
0.019802
0.336634
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cad9f866ea7aa26c12ef287f5ee514f9321fee4
1,444
py
Python
pynetest/lib/pyne_test_blocks.py
Avvir/pyne
864885a8fb632b72c00af164f150b1daa38a346f
[ "MIT" ]
4
2018-08-10T20:05:10.000Z
2019-07-24T15:29:32.000Z
pynetest/lib/pyne_test_blocks.py
Avvir/pyne
864885a8fb632b72c00af164f150b1daa38a346f
[ "MIT" ]
6
2018-09-25T20:15:51.000Z
2021-12-22T17:09:52.000Z
pynetest/lib/pyne_test_blocks.py
Avvir/pyne
864885a8fb632b72c00af164f150b1daa38a346f
[ "MIT" ]
null
null
null
class BehaviorBlock: def __init__(self, parent, method, description): self.method = method self.parent = parent self.description = description class Context(object): def __init__(self, parent): if parent is not None: for attr in dir(parent.context): ...
32.088889
121
0.665512
154
1,444
5.876623
0.24026
0.077348
0.072928
0.112707
0.374586
0.256354
0.125967
0.125967
0.125967
0.125967
0
0
0.234072
1,444
44
122
32.818182
0.818264
0
0
0.181818
0
0
0.015928
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cae6969a37d3bd9a688ae9ce4914b584b626699
1,166
py
Python
code/Metricsource.py
t1191578/moniteredit
48465d7cbee2452392720a26320d8753f8807bc9
[ "Apache-2.0" ]
null
null
null
code/Metricsource.py
t1191578/moniteredit
48465d7cbee2452392720a26320d8753f8807bc9
[ "Apache-2.0" ]
null
null
null
code/Metricsource.py
t1191578/moniteredit
48465d7cbee2452392720a26320d8753f8807bc9
[ "Apache-2.0" ]
null
null
null
import requests from multipledispatch import dispatch class Source: def __init__(self,url,query="query?query="): self.url = url self.query= query def url(self): #form url pass @dispatch(str) def inputoutput(self, metricreq): Aurl = self.url+self.query+metricreq...
29.897436
69
0.587479
140
1,166
4.828571
0.378571
0.073965
0.08284
0.06213
0.517751
0.517751
0.517751
0.405325
0.405325
0.405325
0
0.026128
0.277873
1,166
39
70
29.897436
0.776722
0.063465
0
0.375
0
0
0.111009
0
0
0
0
0
0
1
0.125
false
0.03125
0.0625
0
0.28125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cb1bb53ea364d5eed2d8ae779c2ec9f50b57788
966
py
Python
mygrations/formats/mysql/file_reader/parsers/index_primary.py
cmancone/mygrations
30d1d568ca7d6c38dbc5211834dd2d04c0bcf078
[ "MIT" ]
10
2018-04-09T08:39:42.000Z
2022-03-14T15:36:05.000Z
mygrations/formats/mysql/file_reader/parsers/index_primary.py
cmancone/mygrations
30d1d568ca7d6c38dbc5211834dd2d04c0bcf078
[ "MIT" ]
14
2018-05-02T11:14:08.000Z
2022-01-15T18:48:54.000Z
mygrations/formats/mysql/file_reader/parsers/index_primary.py
cmancone/mygrations
30d1d568ca7d6c38dbc5211834dd2d04c0bcf078
[ "MIT" ]
5
2018-07-18T02:20:48.000Z
2022-02-19T09:32:07.000Z
from mygrations.core.parse.parser import parser from mygrations.formats.mysql.definitions.index import index class index_primary(parser, index): _index_type = 'primary' has_comma = False # PRIMARY KEY (`id`), rules = [{ 'type': 'literal', 'value': 'PRIMARY KEY' }, { 'type':...
22.465116
74
0.509317
90
966
5.222222
0.444444
0.093617
0.13617
0.085106
0
0
0
0
0
0
0
0
0.321946
966
42
75
23
0.717557
0.019669
0
0.235294
0
0
0.177778
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cb2f10583b45235d86386a62278891da1c81b82
445
py
Python
cryptolens/exchanges/poloniex.py
hkilian/cryptolens
22ad4257fb9316e57b2402a83dbbfd583493fb39
[ "MIT" ]
null
null
null
cryptolens/exchanges/poloniex.py
hkilian/cryptolens
22ad4257fb9316e57b2402a83dbbfd583493fb39
[ "MIT" ]
1
2021-06-01T21:50:08.000Z
2021-06-01T21:50:08.000Z
cryptolens/exchanges/poloniex.py
hkilian/cryptolens
22ad4257fb9316e57b2402a83dbbfd583493fb39
[ "MIT" ]
1
2017-11-02T05:08:57.000Z
2017-11-02T05:08:57.000Z
import json import requests from .exchange import Exchange class Poloniex(Exchange): def __init__(self): Exchange.__init__(self, "GDAX") def PullData(self): url = "https://poloniex.com/public?command=returnTicker&currencyPair=USDT_BTC" response = requests.get(url) ticker = response.json()['USDT_BTC'] d...
21.190476
80
0.705618
54
445
5.62963
0.592593
0.052632
0
0
0
0
0
0
0
0
0
0.002632
0.146067
445
20
81
22.25
0.797368
0
0
0
0
0
0.269663
0
0
0
0
0
0
1
0.133333
false
0
0.2
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cb370dba58960e4d34825e77ae18854da4dd923
354
py
Python
exercises/exc_04_02.py
rklymentiev/py-for-neuro
6bb163347483642c79eac429e5a9289edff7ce09
[ "MIT" ]
7
2021-04-28T13:12:16.000Z
2022-01-15T00:21:11.000Z
exercises/exc_04_02.py
rklymentiev/py-for-neuro
6bb163347483642c79eac429e5a9289edff7ce09
[ "MIT" ]
2
2021-04-02T18:42:55.000Z
2021-05-20T08:43:06.000Z
exercises/exc_04_02.py
rklymentiev/py-for-neuro
6bb163347483642c79eac429e5a9289edff7ce09
[ "MIT" ]
2
2021-07-04T22:57:29.000Z
2021-07-29T19:28:43.000Z
import pandas as ___ import seaborn as ___ import matplotlib.pyplot as ___ # read in the data ___ # select the columns with 'mean' in the name selected_columns = list(___) # find the correlations corr_matrix = ___ # make a plot plt.___(figsize=(8,7), facecolor='white') sns.___(data=___, cmap="YlGnBu") plt.___("Correl...
20.823529
44
0.748588
47
354
4.829787
0.765957
0.070485
0
0
0
0
0
0
0
0
0
0.006601
0.144068
354
16
45
22.125
0.742574
0.262712
0
0
0
0
0.148438
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cb530e8e30ba2311d864307233f32b3ff43ff4d
3,178
py
Python
tests/lexer_test.py
tykazzz/pseudo
7414ab0f14142b9ed704d03af0223cf847bf8861
[ "MIT" ]
null
null
null
tests/lexer_test.py
tykazzz/pseudo
7414ab0f14142b9ed704d03af0223cf847bf8861
[ "MIT" ]
null
null
null
tests/lexer_test.py
tykazzz/pseudo
7414ab0f14142b9ed704d03af0223cf847bf8861
[ "MIT" ]
null
null
null
"""This module contains unit tests for lexer module.""" import pytest import pseudo from pseudo.pseudo_types import Operation, Operator, Int __author__ = "Patryk Niedźwiedziński" @pytest.fixture def lexer(): """Returns lexer object.""" lex = pseudo.lexer.Lexer("") return lex def test_is_keyword(lexer...
25.023622
66
0.618943
417
3,178
4.539568
0.151079
0.08505
0.068674
0.137348
0.510829
0.316429
0.232435
0.144744
0.08505
0.08505
0
0.012469
0.24292
3,178
126
67
25.222222
0.774314
0.109818
0
0.317647
0
0
0.035119
0
0
0
0
0
0.164706
1
0.141176
false
0
0.035294
0
0.188235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cb5f4cd3fc9c93d71c637d25d6816c5fcb669d6
19,227
py
Python
app/helpers.py
zhuding/javatools
4b3a57b2ddfec36cae4af08ac5c3d71cfe879f63
[ "Apache-2.0" ]
null
null
null
app/helpers.py
zhuding/javatools
4b3a57b2ddfec36cae4af08ac5c3d71cfe879f63
[ "Apache-2.0" ]
null
null
null
app/helpers.py
zhuding/javatools
4b3a57b2ddfec36cae4af08ac5c3d71cfe879f63
[ "Apache-2.0" ]
null
null
null
# coding=utf8 from app import db def get_databases(): sql = "SHOW DATABASES" result = db.engine.execute(sql) dbs = [] for row in result: dbs.append(row['Database']) return dbs def get_tables(dbname): sql = "SELECT TABLE_NAME AS tableName FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='" + dbname + "'" res...
34.211744
149
0.504031
2,135
19,227
4.488993
0.082904
0.077003
0.077421
0.040693
0.768573
0.698038
0.64399
0.616235
0.580029
0.551962
0
0.002649
0.214542
19,227
561
150
34.272727
0.631969
0.017215
0
0.680942
0
0
0.325955
0.046656
0.357602
0
0
0
0
1
0.049251
false
0
0.002141
0
0.098501
0.008565
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cb6f59ec4572da89ea0442177be6d5a3a77df0f
1,931
py
Python
pythonforandroid/recipes/numpy/__init__.py
wo01/python-for-android
df0866d95c9c508299a6f948302454beb971e3ac
[ "MIT" ]
2
2019-01-07T12:13:25.000Z
2019-10-19T09:53:50.000Z
pythonforandroid/recipes/numpy/__init__.py
tangingw/python-for-android
7c125ad96f71a950ed272a116a9446c6f60e87a9
[ "MIT" ]
null
null
null
pythonforandroid/recipes/numpy/__init__.py
tangingw/python-for-android
7c125ad96f71a950ed272a116a9446c6f60e87a9
[ "MIT" ]
3
2018-12-13T09:57:33.000Z
2019-01-09T15:36:46.000Z
from pythonforandroid.recipe import CompiledComponentsPythonRecipe from pythonforandroid.toolchain import warning from os.path import join class NumpyRecipe(CompiledComponentsPythonRecipe): version = '1.15.1' url = 'https://pypi.python.org/packages/source/n/numpy/numpy-{version}.zip' site_packages_name =...
34.482143
79
0.592439
239
1,931
4.623431
0.368201
0.049774
0.057919
0.047059
0.117647
0.043439
0.043439
0
0
0
0
0.006281
0.257897
1,931
55
80
35.109091
0.764829
0
0
0
0
0.02381
0.232522
0.025375
0
0
0
0
0
1
0.047619
false
0
0.071429
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cba683ad98eb61e03c5f63735dc9df320aadbb6
6,136
py
Python
webdriverwrapper/exceptions.py
jayeshgupta91/python-webdriverwrapper
9b2c32bbf06ada669feb62ef17fd23365a14ad14
[ "MIT" ]
null
null
null
webdriverwrapper/exceptions.py
jayeshgupta91/python-webdriverwrapper
9b2c32bbf06ada669feb62ef17fd23365a14ad14
[ "MIT" ]
null
null
null
webdriverwrapper/exceptions.py
jayeshgupta91/python-webdriverwrapper
9b2c32bbf06ada669feb62ef17fd23365a14ad14
[ "MIT" ]
null
null
null
# pylint: disable=wildcard-import,unused-wildcard-import from selenium.common.exceptions import * try: from Levenshtein import distance as levenshteinDistance except ImportError: levenshteinDistance = None def _create_exception_msg( id_=None, class_name=None, name=None, tag_name=None, parent...
33.167568
133
0.661506
750
6,136
5.125333
0.198667
0.03538
0.028096
0.027315
0.306972
0.28512
0.203174
0.16077
0.147242
0.110822
0
0.001917
0.234681
6,136
184
134
33.347826
0.816652
0.128748
0
0.147541
0
0.008197
0.107701
0.011247
0
0
0
0
0
1
0.098361
false
0
0.02459
0.016393
0.303279
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cc08333be3174d0b142d7bc58887c3bfc8700a5
6,369
py
Python
app/routes.py
MBkkt/TaskManager
ed4a5cb5bbb93dc3b10d459cf2e37a82be5b8a5e
[ "MIT" ]
null
null
null
app/routes.py
MBkkt/TaskManager
ed4a5cb5bbb93dc3b10d459cf2e37a82be5b8a5e
[ "MIT" ]
1
2019-04-30T22:19:15.000Z
2019-04-30T22:20:06.000Z
app/routes.py
MBkkt/Task_Manager
ed4a5cb5bbb93dc3b10d459cf2e37a82be5b8a5e
[ "MIT" ]
null
null
null
from functools import wraps from flask import render_template, flash, redirect, url_for, request from flask_login import login_user, logout_user, current_user, login_required from app import app from app.models import User, Task from app.forms import ( LoginForm, RegistrationForm, AddTask, EditTaskForPerformer,...
31.374384
77
0.633851
807
6,369
4.802974
0.137546
0.070949
0.04644
0.03612
0.469298
0.372807
0.28741
0.23452
0.185759
0.164603
0
0.000614
0.23269
6,369
202
78
31.529703
0.792511
0
0
0.380682
0
0
0.119014
0.003454
0
0
0
0
0
1
0.073864
false
0.017045
0.034091
0.005682
0.238636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cc092fe85073efa8f38bdc1b3e3d9c07f22b3d8
4,136
py
Python
project.py
Peter-Sanders/IE-512-Decison-Analysis-Final-Project
868c6bb3843350d943027073cf4b4631d0188de0
[ "Unlicense" ]
1
2019-12-14T03:08:23.000Z
2019-12-14T03:08:23.000Z
project.py
Peter-Sanders/IE-512-Decison-Analysis-Final-Project
868c6bb3843350d943027073cf4b4631d0188de0
[ "Unlicense" ]
null
null
null
project.py
Peter-Sanders/IE-512-Decison-Analysis-Final-Project
868c6bb3843350d943027073cf4b4631d0188de0
[ "Unlicense" ]
null
null
null
# coding: utf-8 # # Stock Choice Decision Analysis # Code written and commentated by Peter Sanders # ### Load Relevant Packages # In[1]: from pandas_datareader import data import matplotlib.pyplot as plt import pandas as pd import seaborn as sns from datetime import datetime import numpy as np import math from sci...
19.237209
126
0.671905
676
4,136
3.97929
0.301775
0.07026
0.089219
0.113011
0.28513
0.259108
0.257249
0.255019
0.225279
0.225279
0
0.035817
0.15619
4,136
214
127
19.327103
0.734957
0.223646
0
0.040541
0
0.013514
0.091142
0.011232
0
0
0
0
0
1
0.013514
false
0
0.108108
0
0.135135
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cc331db5c05974b7e5d6a6759775540b86d78ad
40,276
py
Python
slicem_gui.py
marcottelab/Slicem
2dbf9f8faf89a12c983595871809445663bc5a26
[ "MIT" ]
5
2019-10-05T03:04:57.000Z
2021-10-02T23:52:56.000Z
slicem_gui.py
marcottelab/Slicem
2dbf9f8faf89a12c983595871809445663bc5a26
[ "MIT" ]
2
2019-11-24T09:58:13.000Z
2020-11-09T23:57:28.000Z
slicem_gui.py
marcottelab/SLICEM
2dbf9f8faf89a12c983595871809445663bc5a26
[ "MIT" ]
null
null
null
import os import mrcfile import numpy as np import pandas as pd import networkx as nx from igraph import Graph from scipy import ndimage as ndi from skimage import transform, measure import tkinter as tk from tkinter import ttk import tkinter.filedialog import matplotlib from matplotlib import cm import matplotlib.py...
34.931483
112
0.553282
5,018
40,276
4.290753
0.127541
0.015605
0.008917
0.015605
0.343458
0.270169
0.210394
0.173517
0.143978
0.123496
0
0.02384
0.318875
40,276
1,153
113
34.931483
0.761018
0.064828
0
0.159601
0
0
0.038482
0.00122
0
0
0
0.000867
0
1
0.041147
false
0
0.023691
0.002494
0.089776
0.011222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cc537735a2d67e707923633b8c5359a8e975af1
650
py
Python
src/openprocurement/tender/openeu/procedure/state/bid.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
10
2020-02-18T01:56:21.000Z
2022-03-28T00:32:57.000Z
src/openprocurement/tender/openeu/procedure/state/bid.py
quintagroup/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
26
2018-07-16T09:30:44.000Z
2021-02-02T17:51:30.000Z
src/openprocurement/tender/openeu/procedure/state/bid.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
15
2019-08-08T10:50:47.000Z
2022-02-05T14:13:36.000Z
from openprocurement.api.utils import error_handler from openprocurement.tender.core.procedure.state.bid import BidState as BaseBidState class BidState(BaseBidState): def status_up(self, before, after, data): assert before != after, "Statuses must be different" # this logic moved here from valida...
40.625
99
0.695385
80
650
5.5625
0.6625
0.074157
0.076404
0
0
0
0
0
0
0
0
0.005803
0.204615
650
15
100
43.333333
0.854932
0.173846
0
0
0
0
0.144465
0
0
0
0
0
0.111111
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cc54c1983960e2959f4569eed5ba54d8ffadc15
4,903
py
Python
api/serializers.py
apigram/jade-api
1aece29c3109db68897fdf854be431554e7f2863
[ "Apache-2.0" ]
null
null
null
api/serializers.py
apigram/jade-api
1aece29c3109db68897fdf854be431554e7f2863
[ "Apache-2.0" ]
null
null
null
api/serializers.py
apigram/jade-api
1aece29c3109db68897fdf854be431554e7f2863
[ "Apache-2.0" ]
null
null
null
from rest_framework_nested.serializers import NestedHyperlinkedModelSerializer from rest_framework_nested.relations import NestedHyperlinkedRelatedField from rest_framework import serializers from api.models import User, Company, CompanyContact, Order, Item, Contact, OrderItem import copy class UserSerializer(seriali...
27.544944
85
0.646543
442
4,903
6.9819
0.208145
0.028516
0.04083
0.095269
0.466948
0.376863
0.277706
0.255671
0.214841
0.201555
0
0
0.255354
4,903
177
86
27.700565
0.845248
0
0
0.33813
0
0
0.112176
0.004487
0
0
0
0
0
1
0.014388
false
0
0.035971
0
0.330935
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cc5625c16ac62cef1a16f88ef8ee506d837539a
1,703
py
Python
kanga/management/commands/add-origins.py
deptofdefense/kanga
9c8d926a4828e2fca528915ddf35759d1c328c85
[ "MIT" ]
1
2022-03-05T01:17:59.000Z
2022-03-05T01:17:59.000Z
kanga/management/commands/add-origins.py
deptofdefense/kanga
9c8d926a4828e2fca528915ddf35759d1c328c85
[ "MIT" ]
null
null
null
kanga/management/commands/add-origins.py
deptofdefense/kanga
9c8d926a4828e2fca528915ddf35759d1c328c85
[ "MIT" ]
null
null
null
# ================================================================= # # Work of the U.S. Department of Defense, Defense Digital Service. # Released as open source under the MIT License. See LICENSE file. # # ================================================================= import json import sys from django.core.man...
28.864407
84
0.500881
174
1,703
4.833333
0.511494
0.032105
0.026159
0.042806
0.080856
0.080856
0.080856
0
0
0
0
0.000875
0.328831
1,703
58
85
29.362069
0.734908
0.153846
0
0.2
0
0
0.03499
0
0
0
0
0
0
1
0.05
false
0
0.175
0
0.275
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2cc813a4b5a65446f5e51d5a31e50f0a7569413f
692
py
Python
examples/joost/grammarator.py
wilkeraziz/grasp
95f5135fd3711eed32cddce2049dd595314fb1f4
[ "Apache-2.0" ]
9
2015-07-22T18:07:44.000Z
2021-11-08T11:21:11.000Z
examples/joost/grammarator.py
wilkeraziz/grasp
95f5135fd3711eed32cddce2049dd595314fb1f4
[ "Apache-2.0" ]
null
null
null
examples/joost/grammarator.py
wilkeraziz/grasp
95f5135fd3711eed32cddce2049dd595314fb1f4
[ "Apache-2.0" ]
1
2021-01-12T10:00:22.000Z
2021-01-12T10:00:22.000Z
#!/usr/bin/env python3 import argparse parser = argparse.ArgumentParser(description='Process some integers.') parser.add_argument('k', metavar='k', type=int, nargs='?', help='number of classes of terminals (terminal-generating non-terminals)') args = parser.parse_args() # print("k = %d" % args.k) print("""[A] |||...
26.615385
76
0.492775
115
692
2.947826
0.452174
0.023599
0.026549
0.035398
0.106195
0.053097
0
0
0
0
0
0.033451
0.179191
692
25
77
27.68
0.56338
0.066474
0
0
0
0
0.535714
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0.235294
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ccbbcd205dc73323b99918be9662a57635d2a3f
5,924
py
Python
app/sims/method/fields.py
DeepanshS/mrsimulator-ui
42f1a85f1cb76896cde2a3c8d4e38fe2c989b710
[ "BSD-3-Clause" ]
2
2019-11-21T16:14:13.000Z
2020-10-17T21:36:00.000Z
app/sims/method/fields.py
DeepanshS/mrsimulator-ui
42f1a85f1cb76896cde2a3c8d4e38fe2c989b710
[ "BSD-3-Clause" ]
32
2021-07-07T20:16:29.000Z
2022-03-29T14:09:23.000Z
app/sims/method/fields.py
DeepanshS/mrsimulator-ui
42f1a85f1cb76896cde2a3c8d4e38fe2c989b710
[ "BSD-3-Clause" ]
2
2019-10-23T18:23:57.000Z
2021-03-25T00:13:10.000Z
# -*- coding: utf-8 -*- import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input from dash.dependencies import Output from app import app from app.custom_widgets import collapsable_card from app.custom_widgets import container from app.custom_widgets import custom_butt...
29.182266
88
0.61293
706
5,924
4.997167
0.273371
0.031179
0.045351
0.058673
0.27466
0.165816
0.085317
0.049887
0.049887
0.034014
0
0.017348
0.260466
5,924
202
89
29.326733
0.78772
0.326469
0
0.159664
0
0
0.222941
0.018384
0
0
0
0
0
1
0.02521
false
0
0.084034
0
0.134454
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ccee2fa8c8ba625dd902253db0db5b0a2526b08
563
py
Python
class2/exercises/exercise2/exercise2c.py
EndlessDynamics/Fork_nornir_course
04bf7e3819659f481a4e04059152877b795177b2
[ "Apache-2.0" ]
60
2019-05-11T05:23:10.000Z
2022-03-30T08:03:43.000Z
class2/exercises/exercise2/exercise2c.py
EndlessDynamics/Fork_nornir_course
04bf7e3819659f481a4e04059152877b795177b2
[ "Apache-2.0" ]
14
2021-03-31T19:08:08.000Z
2021-09-15T17:29:40.000Z
class2/exercises/exercise2/exercise2c.py
EndlessDynamics/Fork_nornir_course
04bf7e3819659f481a4e04059152877b795177b2
[ "Apache-2.0" ]
21
2019-08-08T21:30:46.000Z
2022-03-28T06:22:25.000Z
from rich import print from nornir import InitNornir from nornir.core.filter import F from nornir_netmiko import netmiko_send_command def main(): nr = InitNornir(config_file="config.yaml") filt = F(groups__contains="ios") nr = nr.filter(filt) my_results = nr.run( task=netmiko_send_command, com...
22.52
73
0.694494
76
563
4.789474
0.5
0.120879
0.098901
0
0
0
0
0
0
0
0
0.004425
0.197158
563
24
74
23.458333
0.800885
0
0
0.105263
0
0
0.087034
0
0
0
0
0
0
1
0.052632
false
0
0.210526
0
0.263158
0.315789
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2ba3189a471ae4c5fad168efa534a2e6749bec4
13,265
py
Python
portality/api/current/data_objects/application.py
DOAJ/doaj
b11f163c48f51f9e3ada2b02c617b50b847dcb4c
[ "Apache-2.0" ]
47
2015-04-24T13:13:39.000Z
2022-03-06T03:22:42.000Z
portality/api/current/data_objects/application.py
DOAJ/doaj
b11f163c48f51f9e3ada2b02c617b50b847dcb4c
[ "Apache-2.0" ]
1,215
2015-01-02T14:29:38.000Z
2022-03-28T14:19:13.000Z
portality/api/current/data_objects/application.py
DOAJ/doaj
b11f163c48f51f9e3ada2b02c617b50b847dcb4c
[ "Apache-2.0" ]
14
2015-11-27T13:01:23.000Z
2021-05-21T07:57:23.000Z
import uuid from datetime import datetime from portality.api.current.data_objects.common import _check_for_script from portality.lib import swagger, seamless, coerce, dates, dataobj from portality import models from copy import deepcopy from portality.api.current.data_objects.common_journal_application import Outgoin...
35.467914
140
0.603166
1,462
13,265
5.214774
0.192886
0.055089
0.025708
0.040399
0.390346
0.320698
0.247639
0.195042
0.119753
0.084601
0
0.001893
0.283302
13,265
373
141
35.563003
0.800042
0.104109
0
0.216028
0
0
0.170979
0.013699
0
0
0
0.002681
0.003484
1
0.135889
false
0
0.038328
0.04878
0.278746
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2bd7c8a213c65827af43039aa4e15d0d27034d2
4,086
py
Python
app.py
joumanarahime/sqlalchemy-challenge
e86c3a05443a6d2664b2f9ab8145565c7fbce24b
[ "ADSL" ]
null
null
null
app.py
joumanarahime/sqlalchemy-challenge
e86c3a05443a6d2664b2f9ab8145565c7fbce24b
[ "ADSL" ]
null
null
null
app.py
joumanarahime/sqlalchemy-challenge
e86c3a05443a6d2664b2f9ab8145565c7fbce24b
[ "ADSL" ]
null
null
null
import numpy as np import pandas as dp import datetime as dt import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func from flask import Flask, jsonify #engine = create_engine("sqlite:///Resources/hawaii.sqlite") engine = create_engi...
27.986301
140
0.610622
526
4,086
4.642586
0.226236
0.022523
0.027027
0.01638
0.314087
0.251433
0.199836
0.199836
0.171171
0.171171
0
0.022172
0.238375
4,086
146
141
27.986301
0.762532
0.053108
0
0.271845
0
0.009709
0.201036
0.081865
0
0
0
0
0
1
0.058252
false
0
0.07767
0
0.194175
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0