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
e23b814797f83ec93f19e86ffddbfaea18bceed4
708
pyde
Python
mode/examples/Basics/Typography/Words/Words.pyde
timgates42/processing.py
78a237922c2a928b83f4ad579dbf8d32c0099890
[ "Apache-2.0" ]
1,224
2015-01-01T22:09:23.000Z
2022-03-29T19:43:56.000Z
mode/examples/Basics/Typography/Words/Words.pyde
timgates42/processing.py
78a237922c2a928b83f4ad579dbf8d32c0099890
[ "Apache-2.0" ]
253
2015-01-14T03:45:51.000Z
2022-02-08T01:18:19.000Z
mode/examples/Basics/Typography/Words/Words.pyde
timgates42/processing.py
78a237922c2a928b83f4ad579dbf8d32c0099890
[ "Apache-2.0" ]
225
2015-01-13T18:38:33.000Z
2022-03-30T20:27:39.000Z
""" * Words. * * The text() function is used for writing words to the screen. * The letters can be aligned left, center, or right with the * textAlign() function. """ def setup(): size(640, 360) # Create the font printArray(PFont.list()) f = createFont("Georgia", 24) textFont(f) def d...
17.268293
63
0.574859
101
708
4.029703
0.60396
0.095823
0.103194
0
0
0
0
0
0
0
0
0.087379
0.272599
708
40
64
17.7
0.702913
0.252825
0
0
0
0
0.036965
0
0
0
0
0
0
1
0.125
false
0
0
0
0.125
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
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
e23cfbce425720b8b34b74d88b27c40ed8ce71f8
1,892
py
Python
flask/application/app_config.py
nydailynews/trumponomics
4a979f49b8adf45760955caf1b6d34c20cbfc69f
[ "MIT" ]
1
2019-06-03T19:22:34.000Z
2019-06-03T19:22:34.000Z
flask/application/app_config.py
nydailynews/trumponomics
4a979f49b8adf45760955caf1b6d34c20cbfc69f
[ "MIT" ]
null
null
null
flask/application/app_config.py
nydailynews/trumponomics
4a979f49b8adf45760955caf1b6d34c20cbfc69f
[ "MIT" ]
2
2018-11-22T03:09:52.000Z
2019-06-22T19:28:02.000Z
#!/usr/bin/env python # The app.page dict: # 'title': '', # 'url': '', # 'description': '', # 'author': '', # 'datestamp': '', # 'keywords': '', # 'keywords_array': '', # 'shareimg': '', # 'shareimgdesc': '', details = { 'base-unemployment': { 'title': '', 'description': ...
23.65
38
0.399049
108
1,892
6.981481
0.462963
0.275862
0.413793
0.551724
0.458886
0
0
0
0
0
0
0
0.350423
1,892
79
39
23.949367
0.613507
0.113108
0
0.761194
0
0
0.40012
0.074985
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
e23e8d88531a3fab00e76cb8fb7d0fb26f812c40
1,144
py
Python
sphinxcontrib/needs/directives/utils.py
tlovett/sphinxcontrib-needs
41794403266deb6a4f7ec07bb8297abb0ddc57b1
[ "MIT" ]
null
null
null
sphinxcontrib/needs/directives/utils.py
tlovett/sphinxcontrib-needs
41794403266deb6a4f7ec07bb8297abb0ddc57b1
[ "MIT" ]
null
null
null
sphinxcontrib/needs/directives/utils.py
tlovett/sphinxcontrib-needs
41794403266deb6a4f7ec07bb8297abb0ddc57b1
[ "MIT" ]
null
null
null
from docutils import nodes def no_needs_found_paragraph(): nothing_found = "No needs passed the filters" para = nodes.line() nothing_found_node = nodes.Text(nothing_found, nothing_found) para += nothing_found_node return para def used_filter_paragraph(current_needfilter): para = nodes.paragr...
38.133333
94
0.653846
144
1,144
4.958333
0.236111
0.285714
0.22409
0.154062
0.484594
0.201681
0.095238
0.095238
0
0
0
0.008811
0.206294
1,144
29
95
39.448276
0.777533
0
0
0.166667
0
0
0.127622
0
0
0
0
0
0
1
0.083333
false
0.041667
0.041667
0
0.208333
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e240199eef07bbbac4c91f15ad15d97cee55a920
2,905
py
Python
matkonim/models.py
eduardkh/matkonim
29b443f6ad364eed7b06f7af849daa1bf75052ed
[ "MIT" ]
null
null
null
matkonim/models.py
eduardkh/matkonim
29b443f6ad364eed7b06f7af849daa1bf75052ed
[ "MIT" ]
10
2020-06-06T00:04:08.000Z
2022-03-12T00:05:16.000Z
matkonim/models.py
eduardkh/matkonim
29b443f6ad364eed7b06f7af849daa1bf75052ed
[ "MIT" ]
null
null
null
from django.db import models from django.conf import settings from datetime import datetime User = settings.AUTH_USER_MODEL # Technique class Technique(models.Model): name = models.CharField(max_length=120) description = models.TextField(null=True, blank=True) def __str__(self): return self.name...
30.260417
119
0.710155
363
2,905
5.504132
0.201102
0.068068
0.097598
0.127628
0.465966
0.418418
0.358358
0.358358
0.358358
0.32032
0
0.007976
0.180034
2,905
95
120
30.578947
0.830814
0.027194
0
0.269841
0
0
0.018098
0
0
0
0
0
0
1
0.126984
false
0
0.047619
0.126984
0.873016
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
e240ac6c4875acd9dc9a3981eae4c962d15c0da4
743
py
Python
myblog/posts/migrations/0003_auto_20200621_1945.py
DevinDai13/MyBlog
9d6a7b5f9a87b4d4e84f906cbeaf75756487b5bf
[ "Apache-2.0" ]
null
null
null
myblog/posts/migrations/0003_auto_20200621_1945.py
DevinDai13/MyBlog
9d6a7b5f9a87b4d4e84f906cbeaf75756487b5bf
[ "Apache-2.0" ]
null
null
null
myblog/posts/migrations/0003_auto_20200621_1945.py
DevinDai13/MyBlog
9d6a7b5f9a87b4d4e84f906cbeaf75756487b5bf
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.5 on 2020-06-21 19:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('posts', '0002_auto_20200621_1606'), ] operations = [ migrations.AddField( model_name='post', name='height', ...
25.62069
117
0.565276
75
743
5.48
0.586667
0.065693
0.094891
0.124088
0.345499
0.345499
0
0
0
0
0
0.064202
0.30821
743
28
118
26.535714
0.735409
0.060565
0
0.454545
1
0
0.096264
0.033046
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e2414e6120f47710808e08205df25bc03519717f
1,173
py
Python
src/ch9-sqlalchemy/start/pypi_sqlalchemy/pypi/controllers/account_controller.py
possnfiffer/data-driven-web-apps-with-pyramid-and-sqlalchemy
880dc4bc2a6d5dd5fcc91452725d5a1c7c9022c5
[ "MIT" ]
83
2018-07-04T22:19:20.000Z
2022-03-09T22:44:48.000Z
src/ch9-sqlalchemy/start/pypi_sqlalchemy/pypi/controllers/account_controller.py
possnfiffer/data-driven-web-apps-with-pyramid-and-sqlalchemy
880dc4bc2a6d5dd5fcc91452725d5a1c7c9022c5
[ "MIT" ]
9
2018-08-02T00:17:33.000Z
2021-11-17T17:18:05.000Z
src/ch9-sqlalchemy/start/pypi_sqlalchemy/pypi/controllers/account_controller.py
possnfiffer/data-driven-web-apps-with-pyramid-and-sqlalchemy
880dc4bc2a6d5dd5fcc91452725d5a1c7c9022c5
[ "MIT" ]
78
2018-07-28T14:07:07.000Z
2022-01-15T07:06:42.000Z
from pyramid.view import view_config # ################### INDEX ################################# @view_config(route_name='account_home', renderer='pypi:templates/account/index.pt') def index(request): return {} # ################### LOGIN ################################# @view_config(route_na...
23.938776
63
0.538789
111
1,173
5.495496
0.216216
0.114754
0.147541
0.186885
0.586885
0.544262
0.544262
0.491803
0.491803
0.491803
0
0
0.184143
1,173
49
64
23.938776
0.637409
0.031543
0
0.642857
0
0
0.234979
0.172747
0
0
0
0
0
1
0.214286
false
0
0.035714
0.214286
0.464286
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
e241acff81ab7a5ff0708fd2bf35315e3fae57e1
100
py
Python
core/app/mqtt_services/apps.py
EmixMaxime/mx-home-security
ec6d329a09bb2e0afbbd7e481937893311f02634
[ "MIT" ]
2
2021-04-29T19:28:59.000Z
2021-04-29T21:20:32.000Z
core/app/mqtt_services/apps.py
EmixMaxime/mx-home-security
ec6d329a09bb2e0afbbd7e481937893311f02634
[ "MIT" ]
101
2020-06-26T19:51:24.000Z
2021-03-28T09:35:55.000Z
core/app/mqtt_services/apps.py
mxmaxime/mx-tech-house
f6b66b8390b348e48d4c6ea0da51e409f3845fd6
[ "MIT" ]
null
null
null
from django.apps import AppConfig class MqttServicesConfig(AppConfig): name = 'mqtt_services'
16.666667
36
0.78
11
100
7
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.15
100
5
37
20
0.905882
0
0
0
0
0
0.13
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
e243561f750625be44774b3ce79a8ebb51a0b8d8
1,469
py
Python
vent/core/network_tap/ncontrol/ncontrol.py
edgardmota/vent
67b01abc059a3e9e8d16670c7058f0a9e267d8f1
[ "Apache-2.0" ]
null
null
null
vent/core/network_tap/ncontrol/ncontrol.py
edgardmota/vent
67b01abc059a3e9e8d16670c7058f0a9e267d8f1
[ "Apache-2.0" ]
null
null
null
vent/core/network_tap/ncontrol/ncontrol.py
edgardmota/vent
67b01abc059a3e9e8d16670c7058f0a9e267d8f1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import docker import logging import sys import web from rest.create import CreateR from rest.delete import DeleteR from rest.nics import NICsR from rest.nlist import ListR from rest.start import StartR from rest.stop import StopR module_logger = logging.getLogger(__name__) class NControlServe...
25.77193
78
0.62015
181
1,469
4.779006
0.530387
0.055491
0.025434
0
0
0
0
0
0
0
0
0.007428
0.266848
1,469
56
79
26.232143
0.795729
0.169503
0
0
0
0
0.098651
0.021079
0
0
0
0
0
1
0.078947
false
0
0.263158
0
0.447368
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e246453b42dcd37dfd9577c8a2d5d504feec20c6
410
py
Python
applications/prediction_bigball/container/c2_Twitter_Collector/app/predict.py
Dumpkin1996/clipper
1a08bbdde846c3cfe76236c68548a848f71605e0
[ "Apache-2.0" ]
2
2019-04-24T13:46:28.000Z
2019-05-28T06:59:26.000Z
applications/prediction_clipper/container/c2_Twitter_Collector/app/predict.py
SimonZsx/clipper
457088be2ebe68c68b94d90389d1308e35b4c844
[ "Apache-2.0" ]
null
null
null
applications/prediction_clipper/container/c2_Twitter_Collector/app/predict.py
SimonZsx/clipper
457088be2ebe68c68b94d90389d1308e35b4c844
[ "Apache-2.0" ]
4
2019-04-03T11:03:57.000Z
2019-06-26T08:22:38.000Z
import io import sys import tweepy import time def predict(request): # serve as api function start = time.time() info = request.split(":") stockcode = info[0] data_path = "/container/c2_Twitter_Collector/dataset/" + stockcode + ".txt" with open(data_path, 'r', encoding='utf-8') as file: result = file.read().rep...
20.5
76
0.682927
58
410
4.758621
0.689655
0.057971
0
0
0
0
0
0
0
0
0
0.008721
0.160976
410
19
77
21.578947
0.793605
0.05122
0
0
0
0
0.172324
0.104439
0
0
0
0
0
1
0.071429
false
0
0.285714
0
0.428571
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2479703efb51fcc66276bd6c78cfb1dad7d15bb
891
py
Python
tests/unit_tests/test_exceptions.py
kurumuz/datacrunch-python
94b02c68da48b1017c0c837b3b37a97b4b2543a5
[ "MIT" ]
9
2021-01-07T17:56:11.000Z
2022-02-05T01:42:42.000Z
tests/unit_tests/test_exceptions.py
kurumuz/datacrunch-python
94b02c68da48b1017c0c837b3b37a97b4b2543a5
[ "MIT" ]
3
2021-05-26T16:17:33.000Z
2021-12-17T09:25:06.000Z
tests/unit_tests/test_exceptions.py
kurumuz/datacrunch-python
94b02c68da48b1017c0c837b3b37a97b4b2543a5
[ "MIT" ]
3
2021-05-16T00:47:40.000Z
2021-12-17T08:59:16.000Z
import pytest from datacrunch.exceptions import APIException ERROR_CODE = 'test_code' ERROR_MESSAGE = "test message" def test_api_exception_with_code(): # arrange error_str = f'error code: {ERROR_CODE}\nmessage: {ERROR_MESSAGE}' # act with pytest.raises(APIException) as excinfo: raise APIExc...
26.205882
69
0.702581
108
891
5.5
0.259259
0.141414
0.181818
0.063973
0.656566
0.589226
0.589226
0.454545
0.454545
0.454545
0
0
0.213244
891
33
70
27
0.847361
0.041526
0
0.333333
0
0
0.112161
0.025974
0
0
0
0
0.333333
1
0.111111
false
0
0.111111
0
0.222222
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e2484c0e3f3a758de7ba5492e88d263a61c7d083
5,686
py
Python
snoop/models.py
hoover/snoop
bd49b081418a8a01a1e469ab17759a4c5b20d850
[ "MIT" ]
5
2017-01-03T00:52:03.000Z
2019-10-27T03:32:35.000Z
snoop/models.py
hoover/snoop
bd49b081418a8a01a1e469ab17759a4c5b20d850
[ "MIT" ]
25
2016-08-21T11:26:44.000Z
2018-03-13T12:19:20.000Z
snoop/models.py
hoover/snoop
bd49b081418a8a01a1e469ab17759a4c5b20d850
[ "MIT" ]
6
2016-09-27T13:03:45.000Z
2019-10-27T03:32:30.000Z
from pathlib import Path from io import BytesIO import json from contextlib import contextmanager import tempfile import shutil from django.db import models, transaction from django.contrib.postgres.fields import JSONField from django.conf import settings def cache(model, keyfunc): def decorator(func): i...
31.414365
78
0.62522
666
5,686
5.225225
0.262763
0.077586
0.093103
0.124138
0.380747
0.256609
0.178448
0.125862
0.104023
0.104023
0
0.016286
0.276469
5,686
180
79
31.588889
0.829606
0.057686
0
0.233083
0
0
0.031498
0.004338
0
0
0
0.005556
0.007519
1
0.067669
false
0
0.075188
0.022556
0.646617
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e2488ab43fc64895472fd4c4e6cd0e65a68427c1
20
py
Python
test/__init__.py
LeonSu070/jira_bug_analysis
6b1d814270be25a62706ab58b0b31c8771b649d9
[ "Apache-2.0" ]
2
2018-11-16T07:00:43.000Z
2018-12-13T08:17:39.000Z
test/__init__.py
LeonSu070/jira_bug_analysis
6b1d814270be25a62706ab58b0b31c8771b649d9
[ "Apache-2.0" ]
null
null
null
test/__init__.py
LeonSu070/jira_bug_analysis
6b1d814270be25a62706ab58b0b31c8771b649d9
[ "Apache-2.0" ]
1
2019-09-16T09:53:12.000Z
2019-09-16T09:53:12.000Z
__author__ = 'Jack'
10
19
0.7
2
20
5
1
0
0
0
0
0
0
0
0
0
0
0
0.15
20
1
20
20
0.588235
0
0
0
0
0
0.2
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e24c67e2fa0e7cbac60e363c0a3c0d90ac4a1b04
1,643
py
Python
basic_op.py
elosivi/python_tkinter_calculator
1ee17adb26aa9bf2b3a17a0b340464c6ba562972
[ "MIT" ]
null
null
null
basic_op.py
elosivi/python_tkinter_calculator
1ee17adb26aa9bf2b3a17a0b340464c6ba562972
[ "MIT" ]
null
null
null
basic_op.py
elosivi/python_tkinter_calculator
1ee17adb26aa9bf2b3a17a0b340464c6ba562972
[ "MIT" ]
null
null
null
""" myOperations is a list wich memory all values and operators entered by the user before click on "=" """ myOperations=[] def put_in_myOperations(value): #this function fill myOperations list myOperations.append(value) def clear_myOperations(): #this function delete all values in myOperations list ...
31.596154
99
0.63664
212
1,643
4.830189
0.353774
0.017578
0.043945
0.066406
0.101563
0.101563
0.101563
0.101563
0.101563
0.101563
0
0.013559
0.281802
1,643
51
100
32.215686
0.854237
0.405356
0
0
0
0
0.009698
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.178571
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
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
e24cff14d61b3d1d516acfc54a69d88f1d665b63
3,863
py
Python
cantools/autosar/secoc.py
malneni/cantools
b9958577c0f616c28c7fa37a2d2b491478e065ba
[ "MIT" ]
null
null
null
cantools/autosar/secoc.py
malneni/cantools
b9958577c0f616c28c7fa37a2d2b491478e065ba
[ "MIT" ]
null
null
null
cantools/autosar/secoc.py
malneni/cantools
b9958577c0f616c28c7fa37a2d2b491478e065ba
[ "MIT" ]
null
null
null
# Utilities for dealing with AUTOSAR secure on-board communication. # (SecOC, i.e., verification of the authenticity of the sender of # messages.) from cantools.database.can.message import Message from cantools.errors import Error from typing import ( Union, List, Optional, ) from cantools.typechecking i...
35.768519
74
0.588403
412
3,863
5.347087
0.300971
0.082615
0.052202
0.03813
0.391739
0.376305
0.325919
0.29596
0.244212
0.244212
0
0.002394
0.351281
3,863
107
75
36.102804
0.876696
0.220813
0
0.328358
0
0
0.087797
0.015593
0
0
0
0
0
1
0.044776
false
0.014925
0.074627
0
0.179104
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e24edf3db066bab5b7ad6420821b48f3976957ea
52,453
py
Python
test/chora/scripts/testing.py
jbreck/duet-jbreck
3bf4aa0c69983d15f199bf02f294d356c354e932
[ "MIT" ]
1
2020-08-15T15:26:25.000Z
2020-08-15T15:26:25.000Z
test/chora/scripts/testing.py
jbreck/duet-jbreck
3bf4aa0c69983d15f199bf02f294d356c354e932
[ "MIT" ]
null
null
null
test/chora/scripts/testing.py
jbreck/duet-jbreck
3bf4aa0c69983d15f199bf02f294d356c354e932
[ "MIT" ]
null
null
null
#!/usr/bin/python import os.path, sys, glob, datetime, time, subprocess, shutil, re import xml.sax.saxutils, csv, tempfile import choraconfig def usage() : print "USAGE: testing.py --run <batchname>" print " to start a new testing run" print " OR testing.py --format <run_id>" print " ...
46.749554
156
0.528282
6,074
52,453
4.462628
0.115575
0.011658
0.014388
0.020069
0.531875
0.483952
0.444145
0.414631
0.391537
0.384527
0
0.041001
0.329495
52,453
1,121
157
46.791258
0.729713
0.11925
0
0.377926
0
0.03233
0.136658
0.017458
0
0
0
0.000892
0.03456
0
null
null
0.017837
0.008919
null
null
0.06243
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e24fbce9aed9113bc47d48913f811befc901b6e5
1,710
py
Python
spec_collection.py
oursonvie/xcar
2bc52f2935e62823c589e9a9fe708f1dcd2cdb69
[ "Apache-2.0" ]
null
null
null
spec_collection.py
oursonvie/xcar
2bc52f2935e62823c589e9a9fe708f1dcd2cdb69
[ "Apache-2.0" ]
null
null
null
spec_collection.py
oursonvie/xcar
2bc52f2935e62823c589e9a9fe708f1dcd2cdb69
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import crawler import mongo # in this module, data form model will be read and spec of each model is # recorded int he database # import mongo driver from pymongo import MongoClient client = MongoClient() db = client['test_car'] # define base link baselink = "http://newcar.xcar.com.cn" # ...
28.032787
85
0.570175
222
1,710
4.342342
0.414414
0.037344
0.043568
0.093361
0.112033
0
0
0
0
0
0
0.008821
0.27076
1,710
61
86
28.032787
0.764234
0.121637
0
0
0
0
0.150502
0
0
0
0
0
0
1
0
false
0
0.073171
0
0.073171
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
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
e25126ad015fd0336328c504cfadac599a468d6d
1,233
py
Python
src/adj_generator.py
Rama-007/Utility_scoring_of_product_reviews
0b4ca33774128f55a606a546f7ed4e67cfa8d943
[ "MIT" ]
null
null
null
src/adj_generator.py
Rama-007/Utility_scoring_of_product_reviews
0b4ca33774128f55a606a546f7ed4e67cfa8d943
[ "MIT" ]
null
null
null
src/adj_generator.py
Rama-007/Utility_scoring_of_product_reviews
0b4ca33774128f55a606a546f7ed4e67cfa8d943
[ "MIT" ]
1
2018-05-17T17:42:19.000Z
2018-05-17T17:42:19.000Z
import os,sys import csv import numpy as np from sklearn.model_selection import train_test_split from sklearn import datasets from sklearn import svm from sklearn import linear_model from sklearn.metrics import matthews_corrcoef from sklearn.feature_extraction.text import TfidfVectorizer import re import nltk from coll...
25.163265
59
0.59043
181
1,233
3.955801
0.469613
0.092179
0.071229
0.027933
0
0
0
0
0
0
0
0.024202
0.262774
1,233
48
60
25.6875
0.763476
0
0
0
0
0
0.027575
0
0
0
0
0
0
0
null
null
0.020833
0.25
null
null
0.020833
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e2527a6fe723aa45e3efd33e33cfd5d50fd7fc36
3,393
py
Python
pyapi/addins-api/localapi/deployment.py
dockerian/py-api
777db7d5dacf3ecf29a991f50d2ac78bb5bef66a
[ "Apache-2.0" ]
null
null
null
pyapi/addins-api/localapi/deployment.py
dockerian/py-api
777db7d5dacf3ecf29a991f50d2ac78bb5bef66a
[ "Apache-2.0" ]
6
2019-12-26T16:51:55.000Z
2022-03-21T22:16:45.000Z
pyapi/addins-api/localapi/deployment.py
dockerian/pyapi
777db7d5dacf3ecf29a991f50d2ac78bb5bef66a
[ "Apache-2.0" ]
null
null
null
import json import shutil import tempfile import traceback from multiprocessing import Process from subprocess import call, check_output, CalledProcessError from api import swift from utils import settings, delete_directory_tree from deploy.deploy import Deployment from deploy.deploy_status import DeploymentStatus f...
32.625
76
0.660772
397
3,393
5.473552
0.302267
0.050621
0.02347
0.02301
0.21353
0.156466
0.046019
0.046019
0.046019
0.046019
0
0.015929
0.241379
3,393
103
77
32.941748
0.828283
0.151783
0
0.179104
0
0
0.119816
0.007799
0
0
0
0.009709
0
1
0.044776
false
0.029851
0.208955
0
0.358209
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e252c4820e12f03ff5ff8a21a0e62a986d8dd5fd
2,344
py
Python
cores/password.py
0xGhazy/PyPass-Project
5492eb0dc75cd023a3f1a6b3270914d27c8a7582
[ "MIT" ]
2
2022-03-18T16:13:59.000Z
2022-03-28T20:24:56.000Z
cores/password.py
0xGhazy/PyPass-Project
5492eb0dc75cd023a3f1a6b3270914d27c8a7582
[ "MIT" ]
1
2022-03-19T14:50:19.000Z
2022-03-22T18:40:57.000Z
cores/password.py
0xGhazy/PyPass-Project
5492eb0dc75cd023a3f1a6b3270914d27c8a7582
[ "MIT" ]
1
2022-03-18T14:58:51.000Z
2022-03-18T14:58:51.000Z
import random import string class Password: """ Password class takes care of: - Checks for password strength. - Generates strong random password that contains lower/upper/numbers, random password length 16 bits. """ def __init__(self): self._password_strength = 0 ...
30.441558
77
0.603242
257
2,344
5.268482
0.249027
0.124077
0.103397
0.10192
0.294682
0.235598
0.235598
0.138848
0.138848
0.138848
0
0.011063
0.305887
2,344
76
78
30.842105
0.821143
0.098976
0
0.277778
1
0
0.075508
0
0
0
0
0
0
1
0.148148
false
0.648148
0.037037
0
0.240741
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
e252dcbc46d6e9b468ac941a79802b5af9d1c4cb
849
py
Python
DjangoCountries/DjangoCountries/urls.py
xm4dn355x/specialist_DjangoCountries
debfbead4cc87faf1e60af374863498080c5fa8f
[ "MIT" ]
null
null
null
DjangoCountries/DjangoCountries/urls.py
xm4dn355x/specialist_DjangoCountries
debfbead4cc87faf1e60af374863498080c5fa8f
[ "MIT" ]
null
null
null
DjangoCountries/DjangoCountries/urls.py
xm4dn355x/specialist_DjangoCountries
debfbead4cc87faf1e60af374863498080c5fa8f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ######################################################################## # # # Main router # # # # MI...
38.590909
72
0.262662
42
849
5.309524
0.619048
0.089686
0
0
0
0
0
0
0
0
0
0.011682
0.495878
849
21
73
40.428571
0.509346
0.398115
0
0
0
0
0.136
0
0
0
0
0
0
1
0
false
0
0.375
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
1
0
0
0
0
1
e254e16f7fd71692efcf28db1746504d39517446
5,153
py
Python
schulze.py
bjornlevi/schulze
b63951a4083592988b0a94d2cdc048f1989c36e3
[ "MIT" ]
2
2015-11-09T05:11:20.000Z
2016-05-05T10:23:10.000Z
schulze.py
bjornlevi/schulze
b63951a4083592988b0a94d2cdc048f1989c36e3
[ "MIT" ]
null
null
null
schulze.py
bjornlevi/schulze
b63951a4083592988b0a94d2cdc048f1989c36e3
[ "MIT" ]
null
null
null
""" Schulze STV voting implementation. See https://en.wikipedia.org/wiki/Schulze_method """ from collections import defaultdict, OrderedDict import random def compute_strongest_paths(preference, candidates): """ input: preference p[i,j] = number of voters that prefer candidate i to candidate j in...
39.335878
125
0.578886
703
5,153
4.169275
0.237553
0.090754
0.020471
0.016377
0.091778
0.056636
0.043671
0.030024
0.024565
0.024565
0
0.017709
0.298661
5,153
130
126
39.638462
0.793304
0.463613
0
0.163636
0
0
0
0
0
0
0
0
0
1
0.072727
false
0
0.036364
0
0.163636
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e2553ed325e23b75f15e38f6dfb159756a4a0513
5,308
py
Python
JPMC_presentation/int_func.py
qBraid/presentations
dd3d19f934b806b96c05a626b14224f35f868f6d
[ "MIT" ]
null
null
null
JPMC_presentation/int_func.py
qBraid/presentations
dd3d19f934b806b96c05a626b14224f35f868f6d
[ "MIT" ]
1
2021-06-15T15:10:06.000Z
2021-06-15T15:10:06.000Z
JPMC_presentation/int_func.py
qBraid/presentations
dd3d19f934b806b96c05a626b14224f35f868f6d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Dec 12 19:42:57 2018 @author: kanav """ import logging from pyscf import gto, scf, ao2mo from pyscf.lib import param from scipy import linalg as scila from pyscf.lib import logger as pylogger from qiskit.chemistry import QiskitChemistryError # from qiskit.chemistr...
33.594937
138
0.648832
798
5,308
4.027569
0.270677
0.052271
0.03547
0.046671
0.21593
0.092719
0.047293
0.028625
0.028625
0.028625
0
0.012913
0.241334
5,308
157
139
33.808917
0.7852
0.288621
0
0.02381
0
0
0.041643
0
0
0
0
0
0
1
0.02381
false
0
0.119048
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2557523d73c9829aec7494745f01d0144031b52
1,673
py
Python
02_Optimization/naive.py
IC-UFAL/mlclass
c314b028e2221915bc97ab95fc36d46fb87d8f5b
[ "MIT" ]
null
null
null
02_Optimization/naive.py
IC-UFAL/mlclass
c314b028e2221915bc97ab95fc36d46fb87d8f5b
[ "MIT" ]
null
null
null
02_Optimization/naive.py
IC-UFAL/mlclass
c314b028e2221915bc97ab95fc36d46fb87d8f5b
[ "MIT" ]
2
2019-02-20T02:57:35.000Z
2019-02-28T00:49:41.000Z
import datetime import json import requests # url = 'http://localhost:8080/antenna/simulate?phi1={}&theta1={}&phi2={}&theta2={}&phi3={}&theta3={}' url = 'https://aydanomachado.com/mlclass/02_Optimization.php?phi1={}&theta1={}&phi2={}&theta2={}&phi3={}&theta3={}&dev_key=Dual Core' angles = ['phi1', 'theta1', 'phi2', '...
32.173077
133
0.500897
175
1,673
4.737143
0.428571
0.060314
0.050663
0.072376
0.193004
0.193004
0.084439
0
0
0
0
0.063964
0.336521
1,673
51
134
32.803922
0.682883
0.059773
0
0.205128
0
0.025641
0.188415
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.282051
0
0
0
null
0
0
0
0
0
0
0
0
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
e2586815f692b4c5cc76a0b0f9b72bd23ec35589
4,511
py
Python
nautobot/extras/admin.py
romanukes/nautobot
1a58479e702c16c9298ab18b96f74718c64697f9
[ "Apache-2.0" ]
null
null
null
nautobot/extras/admin.py
romanukes/nautobot
1a58479e702c16c9298ab18b96f74718c64697f9
[ "Apache-2.0" ]
null
null
null
nautobot/extras/admin.py
romanukes/nautobot
1a58479e702c16c9298ab18b96f74718c64697f9
[ "Apache-2.0" ]
null
null
null
from db_file_storage.form_widgets import DBAdminClearableFileInput from django import forms from django.contrib import admin, messages from django.db import transaction from django.db.models import ProtectedError from .models import CustomField, CustomFieldChoice, FileProxy, JobResult def order_content_types(field):...
24.252688
104
0.533141
404
4,511
5.836634
0.433168
0.030534
0.010178
0.00933
0.066158
0.031383
0.031383
0
0
0
0
0.001733
0.360452
4,511
185
105
24.383784
0.815598
0.109732
0
0.335766
0
0
0.135709
0
0
0
0
0.005405
0
1
0.036496
false
0
0.043796
0.014599
0.270073
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e2591a9c5667fcee0b50b358960f50cf7f2ccbed
112
py
Python
pyrevolve/genotype/learning_body/config.py
braj29/robo_swimmers
b3c3fa91976884095eb6b5e67844167598ec573d
[ "Apache-1.1" ]
null
null
null
pyrevolve/genotype/learning_body/config.py
braj29/robo_swimmers
b3c3fa91976884095eb6b5e67844167598ec573d
[ "Apache-1.1" ]
null
null
null
pyrevolve/genotype/learning_body/config.py
braj29/robo_swimmers
b3c3fa91976884095eb6b5e67844167598ec573d
[ "Apache-1.1" ]
null
null
null
from dataclasses import dataclass @dataclass class Config: mutation_prob: float crossover_prob: float
14
33
0.776786
13
112
6.538462
0.769231
0.211765
0
0
0
0
0
0
0
0
0
0
0.1875
112
7
34
16
0.934066
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.2
0
0.8
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
5
e25a9a6afbe98bdd354733d1dd35bd9291fc6eb1
407
py
Python
demo/catch/serve.py
marco-souza/falsy
0dd6f792061ee833f308372f0204dea0ad9bf2d1
[ "MIT" ]
127
2017-01-05T14:55:50.000Z
2022-02-01T06:02:49.000Z
demo/catch/serve.py
marco-souza/falsy
0dd6f792061ee833f308372f0204dea0ad9bf2d1
[ "MIT" ]
9
2017-03-08T21:38:16.000Z
2022-02-01T06:44:09.000Z
demo/catch/serve.py
marco-souza/falsy
0dd6f792061ee833f308372f0204dea0ad9bf2d1
[ "MIT" ]
26
2017-01-12T08:56:15.000Z
2022-02-01T06:02:52.000Z
import json from falsy.falsy import FALSY class CustomException(Exception): pass def handle_custom(req, resp, e): resp.body = json.dumps({'error': 'custom error catched'}) resp.content_type = 'application/json' f = FALSY(static_path='test', static_dir='demo/catch/static') f.swagger('demo/catch/spec.y...
22.611111
102
0.724816
57
407
5.087719
0.649123
0.082759
0
0
0
0
0
0
0
0
0
0
0.130221
407
17
103
23.941176
0.819209
0
0
0
0
0
0.223587
0
0
0
0
0
0
1
0.1
false
0.1
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e25bb3d21aa35bada6a1cc156c43483bfa1ddc27
1,125
py
Python
main/services/post_service.py
andriidem308/django_02
6d9f624271d28ea6f53517e6144fa6b9d76598e5
[ "MIT" ]
null
null
null
main/services/post_service.py
andriidem308/django_02
6d9f624271d28ea6f53517e6144fa6b9d76598e5
[ "MIT" ]
1
2021-05-15T18:28:26.000Z
2021-05-15T18:28:26.000Z
main/services/post_service.py
andriidem308/django_02
6d9f624271d28ea6f53517e6144fa6b9d76598e5
[ "MIT" ]
null
null
null
"""Show Posts Method.""" from django.core.cache import cache from main.forms import CommentsForm from main.models import Post def post_all(): """Post All.""" key = Post().__class__.cache_key() if key in cache: objects_all = cache.get(key) else: objects_all = Post.objects.all() ...
28.846154
66
0.639111
148
1,125
4.702703
0.385135
0.071839
0.043103
0
0
0
0
0
0
0
0
0.002401
0.259556
1,125
38
67
29.605263
0.833133
0.185778
0
0.083333
0
0
0.004484
0
0
0
0
0
0
1
0.125
false
0
0.125
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
e25bf8be3fd6bade037eaf4f8cc3eb38deb9550a
470
py
Python
tests/fixtures/device.py
jspaaks/vak
581ec4869d342e5d52bc057de54c10901f06d343
[ "BSD-3-Clause" ]
26
2019-03-04T20:08:57.000Z
2022-01-22T13:40:00.000Z
tests/fixtures/device.py
jspaaks/vak
581ec4869d342e5d52bc057de54c10901f06d343
[ "BSD-3-Clause" ]
379
2019-03-03T12:16:05.000Z
2022-03-29T13:44:46.000Z
tests/fixtures/device.py
jspaaks/vak
581ec4869d342e5d52bc057de54c10901f06d343
[ "BSD-3-Clause" ]
12
2019-11-22T21:19:19.000Z
2022-03-14T17:44:59.000Z
import pytest import torch DEVICES = ["cpu"] if torch.cuda.is_available(): DEVICES.append("cuda") @pytest.fixture(params=DEVICES) def device(request): """parametrized device function, that returns string names of the devices that ``torch`` considers "available". causes any test using ``device`` ...
24.736842
67
0.695745
63
470
5.15873
0.619048
0.101538
0.067692
0.08
0.135385
0
0
0
0
0
0
0
0.185106
470
18
68
26.111111
0.848564
0.544681
0
0
0
0
0.037234
0
0
0
0
0
0
1
0.125
false
0
0.25
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
e25c0302ee8c05536014998029d4db780aef6a92
73
py
Python
jacdac/heart_rate/__init__.py
microsoft/jacdac-python
712ad5559e29065f5eccb5dbfe029c039132df5a
[ "MIT" ]
1
2022-02-15T21:30:36.000Z
2022-02-15T21:30:36.000Z
jacdac/heart_rate/__init__.py
microsoft/jacdac-python
712ad5559e29065f5eccb5dbfe029c039132df5a
[ "MIT" ]
null
null
null
jacdac/heart_rate/__init__.py
microsoft/jacdac-python
712ad5559e29065f5eccb5dbfe029c039132df5a
[ "MIT" ]
1
2022-02-08T19:32:45.000Z
2022-02-08T19:32:45.000Z
# Autogenerated file. from .client import HeartRateClient # type: ignore
24.333333
50
0.794521
8
73
7.25
1
0
0
0
0
0
0
0
0
0
0
0
0.136986
73
2
51
36.5
0.920635
0.438356
0
0
1
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
e25e669fd4134f81db148915a2fa79ef70cd3223
3,464
py
Python
ckan_api_client/tests/functional/client_lowlev/test_group_crud.py
plorenzatto/ckan-api-client
aad42484b07f3f24eef32d10547fad8d7ea27400
[ "BSD-2-Clause" ]
4
2015-07-30T03:46:48.000Z
2018-04-26T08:28:39.000Z
ckan_api_client/tests/functional/client_lowlev/test_group_crud.py
plorenzatto/ckan-api-client
aad42484b07f3f24eef32d10547fad8d7ea27400
[ "BSD-2-Clause" ]
3
2015-03-09T11:16:15.000Z
2021-03-11T16:09:25.000Z
ckan_api_client/tests/functional/client_lowlev/test_group_crud.py
plorenzatto/ckan-api-client
aad42484b07f3f24eef32d10547fad8d7ea27400
[ "BSD-2-Clause" ]
2
2016-09-12T14:14:45.000Z
2021-03-11T16:09:56.000Z
import copy import pytest from ckan_api_client.exceptions import HTTPError from ckan_api_client.tests.utils.strings import gen_random_id from ckan_api_client.tests.utils.validation import check_group @pytest.mark.xfail(run=False, reason='Work in progress') def test_group_crud(ckan_client_ll): client = ckan_clie...
30.928571
71
0.638857
432
3,464
4.909722
0.266204
0.056106
0.067893
0.071664
0.34512
0.322489
0.212164
0.208392
0.208392
0.115983
0
0.005885
0.215069
3,464
111
72
31.207207
0.774182
0.604792
0
0.066667
0
0
0.072925
0
0
0
0
0
0.166667
1
0.033333
false
0
0.166667
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e25f3d9d4062aaa4018c1834a206c3be127fedc6
37
py
Python
Beta/Chessboard legend.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
6
2020-09-03T09:32:25.000Z
2020-12-07T04:10:01.000Z
Beta/Chessboard legend.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
1
2021-12-13T15:30:21.000Z
2021-12-13T15:30:21.000Z
Beta/Chessboard legend.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
null
null
null
def grains(n): return 2**(n**2)-1
18.5
22
0.540541
8
37
2.5
0.75
0
0
0
0
0
0
0
0
0
0
0.1
0.189189
37
2
22
18.5
0.566667
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
6
e26133561a6a1fbea9a0c907133569d903786fa4
749
py
Python
ex102.py
ezequielwish/Python3
a4489d49e6919649437cb9e682614240701e2b68
[ "MIT" ]
1
2022-01-24T02:01:32.000Z
2022-01-24T02:01:32.000Z
ex102.py
ezequielwish/Python3
a4489d49e6919649437cb9e682614240701e2b68
[ "MIT" ]
null
null
null
ex102.py
ezequielwish/Python3
a4489d49e6919649437cb9e682614240701e2b68
[ "MIT" ]
null
null
null
# Crie um programa que tenha uma função fatorial() que receba dois parâmetros: o primeiro que indique # o número a calcular e outro chamado show, que será um valor lógico (opcional) indicando se será # mostrado ou não na tela o processo de cálculo do fatorial. def factorial(number, show=False): """ Calcula o f...
29.96
101
0.600801
102
749
4.411765
0.598039
0.031111
0.035556
0
0
0
0
0
0
0
0
0.009634
0.307076
749
24
102
31.208333
0.857418
0.518024
0
0
0
0
0.018127
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.166667
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2617623ef2efc44b44ea28d9b54e927b69dfd87
208,496
py
Python
colour_datasets/loaders/tests/test_kuopio.py
JGoldstone/colour-datasets
8e0b52870c63c0e9b72d8b848720e0c28e0cbfa4
[ "BSD-3-Clause" ]
1
2022-01-29T09:12:18.000Z
2022-01-29T09:12:18.000Z
colour_datasets/loaders/tests/test_kuopio.py
JGoldstone/colour-datasets
8e0b52870c63c0e9b72d8b848720e0c28e0cbfa4
[ "BSD-3-Clause" ]
null
null
null
colour_datasets/loaders/tests/test_kuopio.py
JGoldstone/colour-datasets
8e0b52870c63c0e9b72d8b848720e0c28e0cbfa4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Defines unit tests for :mod:`colour_datasets.loaders.kuopio` module. """ import numpy as np import os import unittest from colour import SpectralShape from colour_datasets.loaders.kuopio import ( MatFileMetadata_KuopioUniversity, read_sds_from_mat_file_KuopioUniversity) from colour_da...
58.418605
78
0.281439
7,261
208,496
8.061837
0.315108
0.003007
0.003195
0.003229
0.145634
0.048448
0.04293
0.021491
0.021491
0.01927
0
0.838527
0.683423
208,496
3,568
79
58.434978
0.04833
0.002758
0
0.533106
0
0
0.001988
0.00052
0
0
0
0
0.001705
1
0.001137
false
0
0.001705
0
0.00341
0.000284
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e262da1aa6ad6096d2959977d0253825881aad07
1,417
py
Python
tbonlineproject/faq/templatetags/faqtags.py
nathangeffen/tbonline3
1b8a3af8d2dc1ee8083ca6638d025e94bd98f253
[ "MIT" ]
null
null
null
tbonlineproject/faq/templatetags/faqtags.py
nathangeffen/tbonline3
1b8a3af8d2dc1ee8083ca6638d025e94bd98f253
[ "MIT" ]
3
2021-06-08T23:57:13.000Z
2022-01-13T03:42:01.000Z
tbonlineproject/faq/templatetags/faqtags.py
nathangeffen/tbonline-2
0d5869197e66a0057fa07cb99f21dde7f5b47c30
[ "MIT" ]
null
null
null
import re from django import template from faq.models import QuestionCategory, QuestionAndAnswer register = template.Library() class QuestionsByCategories(template.Node): def __init__(self, categories, var_name): self.categories = categories self.var_name = var_name def render(self, contex...
30.148936
99
0.66549
163
1,417
5.619632
0.472393
0.045852
0.068777
0.050218
0.148472
0
0
0
0
0
0
0.005561
0.238532
1,417
46
100
30.804348
0.843373
0.035992
0
0.16129
0
0
0.124633
0.016862
0
0
0
0
0
1
0.096774
false
0.032258
0.096774
0
0.290323
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e263e094c6996081261b4cf375cdf5d9eb8e965a
3,387
py
Python
tests/unit/test_api_connector.py
thomasperrot/weather
bc94d948f2c49a33b8ff3cf3dff850950825d161
[ "MIT" ]
1
2019-11-27T09:00:07.000Z
2019-11-27T09:00:07.000Z
tests/unit/test_api_connector.py
thomasperrot/weather
bc94d948f2c49a33b8ff3cf3dff850950825d161
[ "MIT" ]
14
2020-09-11T12:40:01.000Z
2020-10-06T07:17:26.000Z
tests/unit/test_api_connector.py
thomasperrot/weather
bc94d948f2c49a33b8ff3cf3dff850950825d161
[ "MIT" ]
2
2020-08-28T08:45:46.000Z
2020-10-06T07:15:01.000Z
import json import os import pytest import requests from weather import api_connector, exceptions def test_get_city_id_unknown_city(monkeypatch): class MockResponse: def json(self): return [] def raise_for_status(self): pass class MockRequest: @staticmethod ...
27.762295
82
0.649838
352
3,387
6.036932
0.230114
0.079059
0.050824
0.062118
0.704941
0.689882
0.689882
0.689882
0.647529
0.594824
0
0.011839
0.251845
3,387
121
83
27.991736
0.826756
0
0
0.593407
0
0
0.087688
0.014172
0
0
0
0
0.032967
1
0.208791
false
0.021978
0.054945
0.087912
0.483516
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e268813ad9f17d0dfbbf6f95f09c61a8270ce62b
93
py
Python
GoT_crawler/analysis.py
aamzhas/reddit_projects
01f36f873315978faafdae6e8509f706a0863ba9
[ "MIT" ]
null
null
null
GoT_crawler/analysis.py
aamzhas/reddit_projects
01f36f873315978faafdae6e8509f706a0863ba9
[ "MIT" ]
null
null
null
GoT_crawler/analysis.py
aamzhas/reddit_projects
01f36f873315978faafdae6e8509f706a0863ba9
[ "MIT" ]
null
null
null
import csv from textblob import TextBlob as tb if __name__ == "__main__": analyse_data()
18.6
35
0.741935
13
93
4.615385
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.182796
93
5
36
18.6
0.789474
0
0
0
0
0
0.085106
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
e268f670899c7a0577a47e0547ad2270f1a22f73
928
py
Python
utils.py
ndukh/liver-segmentation
f46697719b78d11f8871048c7c3aaaf8d8f3777f
[ "MIT" ]
2
2019-12-06T13:36:47.000Z
2020-10-08T13:57:02.000Z
utils.py
ndukh/liver-segmentation
f46697719b78d11f8871048c7c3aaaf8d8f3777f
[ "MIT" ]
null
null
null
utils.py
ndukh/liver-segmentation
f46697719b78d11f8871048c7c3aaaf8d8f3777f
[ "MIT" ]
null
null
null
from keras import backend as K def dice_coef(y_true, y_pred): """ A simple dice metric over true and predicted tensors. We do not calculate dice axis-based, instead of this we calculate total dice for the whole batch. It is simpler, when the result is the same as after 'fair' calculation of dice f...
40.347826
82
0.669181
157
928
3.872611
0.464968
0.041118
0.039474
0.065789
0.121711
0.121711
0
0
0
0
0
0.016901
0.234914
928
23
83
40.347826
0.838028
0.617457
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
e26982b2c89136e7d22b94863c422aab02333678
1,932
py
Python
scripts/searchtool.py
sirikata/sirikata-cdn
115e9ad264229eaecd05008cb292ac0b8376a4a2
[ "BSD-3-Clause" ]
1
2017-07-21T13:48:45.000Z
2017-07-21T13:48:45.000Z
scripts/searchtool.py
sirikata/sirikata-cdn
115e9ad264229eaecd05008cb292ac0b8376a4a2
[ "BSD-3-Clause" ]
2
2020-06-05T18:30:40.000Z
2021-06-10T20:21:24.000Z
scripts/searchtool.py
sirikata/sirikata-cdn
115e9ad264229eaecd05008cb292ac0b8376a4a2
[ "BSD-3-Clause" ]
1
2016-05-15T13:34:47.000Z
2016-05-15T13:34:47.000Z
import os import os.path import sys import argparse def list_all(args): results = search_index(q='*', start=0, rows=2000000) for result in results: print result['id'] print print 'Found %d results.' % len(results) def update_all(args): print 'Firing off task to update entire searc...
32.745763
114
0.706004
264
1,932
4.935606
0.333333
0.073676
0.041443
0.052955
0.242517
0.112049
0.072141
0.072141
0.072141
0.072141
0
0.005089
0.186335
1,932
58
115
33.310345
0.823791
0
0
0.086957
0
0
0.207039
0.011387
0
0
0
0
0
0
null
null
0
0.130435
null
null
0.195652
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e26a005aba399c82f6157e54fb1eeafe0b723175
5,145
py
Python
tools/test_and_draw_to_file.py
freesunshine/mmdetection
9fbd92c181f90feccfba7c8f17817c170b484bd9
[ "Apache-2.0" ]
null
null
null
tools/test_and_draw_to_file.py
freesunshine/mmdetection
9fbd92c181f90feccfba7c8f17817c170b484bd9
[ "Apache-2.0" ]
null
null
null
tools/test_and_draw_to_file.py
freesunshine/mmdetection
9fbd92c181f90feccfba7c8f17817c170b484bd9
[ "Apache-2.0" ]
null
null
null
from mmdet.apis import init_detector, inference_detector, show_result import mmcv import os import cv2 import sys from mmdet.datasets.pipelines.loading import LoadPolNPZImageFromFile from mmdet.datasets.pipelines.loading import LoadPolSubImageFromFile import numpy as np def load_pol_sub_image(sample_file, div_num=655...
42.172131
124
0.625462
680
5,145
4.391176
0.176471
0.0643
0.058942
0.061621
0.643336
0.547555
0.464501
0.426993
0.376758
0.357334
0
0.057165
0.255394
5,145
122
125
42.172131
0.722266
0.277162
0
0.306667
0
0
0.126524
0.089407
0
0
0
0
0
1
0.053333
false
0
0.106667
0
0.186667
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e26a38dd5db9e2db5acd9b9c4ba66fe869a0a241
684
py
Python
guppe/atividades/secao_7/ex029.py
WesleyLucas97/cursos_python
b2cbd393e8fed6e36b84253f7934766f2b4f1de8
[ "MIT" ]
null
null
null
guppe/atividades/secao_7/ex029.py
WesleyLucas97/cursos_python
b2cbd393e8fed6e36b84253f7934766f2b4f1de8
[ "MIT" ]
null
null
null
guppe/atividades/secao_7/ex029.py
WesleyLucas97/cursos_python
b2cbd393e8fed6e36b84253f7934766f2b4f1de8
[ "MIT" ]
null
null
null
""" Faça um programa que receba 6 números inteiros e mostre: - Os números pares digitados; - A soma dos números pares digitados; - Os números ímpares digitados; - A quantidade de números ímpares digitados. """ from random import randint vetor = [] pares = [] impares = [] for x in range(randint(6, 50)):...
26.307692
67
0.676901
98
684
4.72449
0.408163
0.077754
0.181425
0.099352
0.280778
0.280778
0
0
0
0
0
0.033088
0.204678
684
25
68
27.36
0.818015
0.317251
0
0
0
0
0.389978
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.266667
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e26c2b378eb036143edf512f53458c5a06faa35c
20,793
py
Python
django_evolution/tests/test_rename_field.py
beanbaginc/django-evolution
fb76e44a2361a69a440dca086c0cc67ac6a4300d
[ "BSD-3-Clause" ]
18
2015-02-08T14:48:02.000Z
2021-08-03T21:07:37.000Z
django_evolution/tests/test_rename_field.py
beanbaginc/django-evolution
fb76e44a2361a69a440dca086c0cc67ac6a4300d
[ "BSD-3-Clause" ]
4
2015-01-07T01:15:08.000Z
2020-08-06T06:52:13.000Z
django_evolution/tests/test_rename_field.py
beanbaginc/django-evolution
fb76e44a2361a69a440dca086c0cc67ac6a4300d
[ "BSD-3-Clause" ]
13
2015-01-07T01:06:21.000Z
2022-02-20T16:27:41.000Z
from __future__ import unicode_literals from django.db import models from django_evolution.errors import SimulationFailure from django_evolution.mutations import RenameField from django_evolution.signature import (AppSignature, ModelSignature, ...
41.337972
77
0.588179
1,930
20,793
6.03886
0.080311
0.055684
0.033462
0.051308
0.77263
0.73831
0.695581
0.685285
0.667181
0.635006
0
0.009946
0.323041
20,793
502
78
41.420319
0.818059
0.04439
0
0.636139
0
0
0.250928
0.086472
0
0
0
0
0.007426
1
0.039604
false
0
0.017327
0
0.143564
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e26c7f0e54b8d43e115078966363aff4e60f48a6
26,192
py
Python
src/cbc_sdk/platform/devices.py
fslds/carbon-black-cloud-sdk-python
248a3c63d6b36d6fcdbcb3f51fb7751f062ed372
[ "MIT" ]
24
2020-10-16T22:07:38.000Z
2022-03-24T14:58:03.000Z
src/cbc_sdk/platform/devices.py
fslds/carbon-black-cloud-sdk-python
248a3c63d6b36d6fcdbcb3f51fb7751f062ed372
[ "MIT" ]
63
2020-10-26T18:26:15.000Z
2022-03-31T17:31:02.000Z
src/cbc_sdk/platform/devices.py
fslds/carbon-black-cloud-sdk-python
248a3c63d6b36d6fcdbcb3f51fb7751f062ed372
[ "MIT" ]
10
2020-11-09T11:54:23.000Z
2022-03-24T20:44:00.000Z
#!/usr/bin/env python3 # ******************************************************* # Copyright (c) VMware, Inc. 2020-2021. All Rights Reserved. # SPDX-License-Identifier: MIT # ******************************************************* # * # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT # * WARRANTIES OR CO...
35.062918
118
0.60465
3,088
26,192
4.967617
0.132124
0.020209
0.014407
0.016623
0.40678
0.35189
0.312907
0.300391
0.280574
0.258475
0
0.003342
0.303108
26,192
746
119
35.10992
0.837068
0.390195
0
0.192453
0
0
0.12264
0.019102
0
0
0
0
0
1
0.158491
false
0.022642
0.018868
0
0.366038
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e26ce504f8d020dbf40351637cdd277a284cb83b
810
py
Python
cmd/run_pytest.py
Amourspirit/python-version-num
03e8f35b85900a5f9736dda2d9c172e73bdad9fe
[ "MIT" ]
1
2021-11-13T08:26:05.000Z
2021-11-13T08:26:05.000Z
cmd/run_pytest.py
Amourspirit/python-version-num
03e8f35b85900a5f9736dda2d9c172e73bdad9fe
[ "MIT" ]
null
null
null
cmd/run_pytest.py
Amourspirit/python-version-num
03e8f35b85900a5f9736dda2d9c172e73bdad9fe
[ "MIT" ]
1
2021-11-13T08:26:41.000Z
2021-11-13T08:26:41.000Z
# coding: utf-8 from subprocess import run import pathlib import os TEST_DIR = 'tests' ROOT_PATH = pathlib.Path(__file__).parent.parent TEST_MODULES = ['verr'] def get_modules(): global TEST_MODULES result = '' if len(TEST_MODULES) > 0: result = ' --cov=' + ' --cov='.join(TEST_MODULES) return ...
24.545455
100
0.658025
115
810
4.365217
0.486957
0.063745
0.035857
0
0
0
0
0
0
0
0
0.017054
0.203704
810
32
101
25.3125
0.76124
0.17284
0
0
0
0
0.141353
0.040602
0.041667
0
0
0
0
1
0.083333
false
0
0.125
0
0.25
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e26d97693b5c78f4bb3f85e734c99eec2f0dea90
220
py
Python
generativemagic/effect.py
misaka3/generativemagic
58f24a9fd95c94828281ed6c1267d570ee7c7b10
[ "MIT" ]
null
null
null
generativemagic/effect.py
misaka3/generativemagic
58f24a9fd95c94828281ed6c1267d570ee7c7b10
[ "MIT" ]
null
null
null
generativemagic/effect.py
misaka3/generativemagic
58f24a9fd95c94828281ed6c1267d570ee7c7b10
[ "MIT" ]
null
null
null
from generativemagic.movement import Movement DECK_TOP = 1 DECK_BOTTOM = 52 class Effect(Movement): def apply(self, sequence, chosen=None): raise Exception(f"Effect method not yet implemented for {self}")
22
72
0.740909
30
220
5.366667
0.833333
0
0
0
0
0
0
0
0
0
0
0.016575
0.177273
220
9
73
24.444444
0.872928
0
0
0
0
0
0.2
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e26da13b7aa0f70c0a93ca683c6aa55cf517af22
10,159
py
Python
sectograph/widgets/edit_window.py
yumauri/sectograph
457c8d44c632e04031d3e59a955d6c41a81a8104
[ "MIT" ]
null
null
null
sectograph/widgets/edit_window.py
yumauri/sectograph
457c8d44c632e04031d3e59a955d6c41a81a8104
[ "MIT" ]
null
null
null
sectograph/widgets/edit_window.py
yumauri/sectograph
457c8d44c632e04031d3e59a955d6c41a81a8104
[ "MIT" ]
null
null
null
from PyQt5 import QtCore, QtGui, QtWidgets # , uic from sectograph import resources, widgets, entities, datetime as dt from .edit_window_ui import Ui_EditEventForm repeat = { "None": None, "Every Day": 1, "Every Week": 7, "Every 2 Weeks": 14, "Every Month": 30, # actually not a month "Every ...
36.543165
88
0.625849
1,186
10,159
5.218381
0.185497
0.030215
0.027468
0.015835
0.226046
0.139441
0.113589
0.049766
0.033608
0.023913
0
0.009329
0.271976
10,159
277
89
36.67509
0.827474
0.061325
0
0.113122
0
0
0.036889
0.006726
0
0
0
0
0
1
0.072398
false
0
0.013575
0
0.113122
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e26e1e30afd44b5865d29418ebb7a003e39c3faf
2,010
py
Python
time_converter.py
lisprolog/python
3d2acea2721873d57418b9158ed3bed6e160eb16
[ "BSD-3-Clause" ]
null
null
null
time_converter.py
lisprolog/python
3d2acea2721873d57418b9158ed3bed6e160eb16
[ "BSD-3-Clause" ]
null
null
null
time_converter.py
lisprolog/python
3d2acea2721873d57418b9158ed3bed6e160eb16
[ "BSD-3-Clause" ]
null
null
null
''' You prefer a good old 12-hour time format. But the modern world we live in would rather use the 24-hour format and you see it everywhere. Your task is to convert the time from the 24-h format into 12-h format by following the next rules: - the output format should be 'hh:mm a.m.' (for hours before midday) or 'hh:m...
42.765957
238
0.589055
303
2,010
3.861386
0.429043
0.010256
0.064957
0.051282
0.068376
0
0
0
0
0
0
0.075157
0.285075
2,010
46
239
43.695652
0.73904
0.458706
0
0
0
0
0.146455
0
0
0
0
0
0.142857
1
0.035714
false
0
0
0
0.107143
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
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
e26e49266e956ade02f709bc18636ba6f4633d81
447
py
Python
LeetCode/Study Plan/Algorithm/Day 1/704. Binary Search.py
TejM/HackerRank-Solutions
8c5a79f7e644f42bc20a8c32818bf88a5c320bc1
[ "MIT" ]
null
null
null
LeetCode/Study Plan/Algorithm/Day 1/704. Binary Search.py
TejM/HackerRank-Solutions
8c5a79f7e644f42bc20a8c32818bf88a5c320bc1
[ "MIT" ]
null
null
null
LeetCode/Study Plan/Algorithm/Day 1/704. Binary Search.py
TejM/HackerRank-Solutions
8c5a79f7e644f42bc20a8c32818bf88a5c320bc1
[ "MIT" ]
null
null
null
# Space Complexity O(1) # Time Complexity O(log N) class Solution: def search(self, nums: List[int], target: int) -> int: left = 0 right = len(nums) - 1 while left <= right: mid = left + right // 2 if target == nums[mid]: return mid ...
27.9375
58
0.44519
52
447
3.826923
0.519231
0.110553
0.130653
0
0
0
0
0
0
0
0
0.028689
0.454139
447
15
59
29.8
0.786885
0.105145
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e26edc3409fc91665e4e9e8bdb02caccd0068010
57,494
py
Python
gail/gail.py
VisExcell/riskmodels
012bbfd563482ba09585cd042b1f9465253ab1f4
[ "MIT" ]
2
2019-11-04T20:57:11.000Z
2021-04-08T08:05:45.000Z
gail/gail.py
VisExcell/riskmodels
012bbfd563482ba09585cd042b1f9465253ab1f4
[ "MIT" ]
null
null
null
gail/gail.py
VisExcell/riskmodels
012bbfd563482ba09585cd042b1f9465253ab1f4
[ "MIT" ]
2
2020-09-22T17:05:04.000Z
2021-02-05T17:12:28.000Z
import numpy as np class GailRiskCalculator: NumCovPattInGailModel = 216 def __init__(self): self.bet2 = np.zeros((8,12),dtype=np.float64) self.bet = np.zeros(8,dtype=np.float64) self.rf = np.zeros(2,dtype=np.float64) self.abs = np.zeros(self.NumCovPattInGailModel,dtype=np.flo...
47.28125
121
0.486364
7,335
57,494
3.804499
0.111656
0.048735
0.029098
0.044507
0.560919
0.527879
0.499534
0.464775
0.424604
0.383968
0
0.230065
0.375083
57,494
1,215
122
47.320165
0.546634
0.219223
0
0.176387
0
0
0.000233
0
0
0
0
0.004115
0
0
null
null
0
0.001422
null
null
0.001422
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
e2705dcc4290b06c5f8063fcbb0d06661bdc5307
1,170
py
Python
pki_framework/serializers.py
not-vibhu/aerobridge
2edcd5e75782663184ac57da8145427613f4ef2b
[ "Apache-2.0" ]
null
null
null
pki_framework/serializers.py
not-vibhu/aerobridge
2edcd5e75782663184ac57da8145427613f4ef2b
[ "Apache-2.0" ]
null
null
null
pki_framework/serializers.py
not-vibhu/aerobridge
2edcd5e75782663184ac57da8145427613f4ef2b
[ "Apache-2.0" ]
null
null
null
from rest_framework import serializers from pki_framework.models import AerobridgeCredential from . import encrpytion_util from django.conf import settings class AerobridgeCredentialSerializer(serializers.ModelSerializer): token = serializers.SerializerMethodField() token_type = serializers.SerializerMethodFie...
35.454545
70
0.712821
123
1,170
6.560976
0.382114
0.089219
0.05948
0.101611
0.389095
0.225527
0.225527
0.225527
0.225527
0.225527
0
0.002132
0.198291
1,170
32
71
36.5625
0.858209
0
0
0.384615
0
0
0.058974
0
0
0
0
0
0
1
0.115385
false
0
0.153846
0.076923
0.653846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e2717384cf4bcdc0a115d702eb3c542a9840a4cd
8,777
py
Python
entities/ships/ship.py
rkwong43/Toh
702f689aa2c37a9f6f463e24405b6c418fd0607f
[ "CC-BY-4.0" ]
3
2020-01-28T16:02:26.000Z
2020-01-29T21:47:14.000Z
entities/ships/ship.py
rkwong43/Tears-Under-Heaven
702f689aa2c37a9f6f463e24405b6c418fd0607f
[ "CC-BY-4.0" ]
null
null
null
entities/ships/ship.py
rkwong43/Tears-Under-Heaven
702f689aa2c37a9f6f463e24405b6c418fd0607f
[ "CC-BY-4.0" ]
null
null
null
import math import random import pygame from utils import config # Constants for state of movement and rotations NO_WAYPOINT = 1 MOVE_WAYPOINT = 2 FIRE_WAYPOINT = 3 MOVE_AND_FIRE_WAYPOINT = 4 """Represents a generic ship. """ class Ship: random.seed() """Constructor to make the ship. :param x: starti...
31.571942
103
0.557366
1,135
8,777
4.139207
0.178855
0.0298
0.034483
0.023414
0.296509
0.242444
0.192422
0.192422
0.176671
0.1639
0
0.009771
0.347043
8,777
277
104
31.685921
0.809981
0.097186
0
0.267974
0
0
0
0
0
0
0
0
0
1
0.084967
false
0.006536
0.026144
0
0.124183
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e2766dfb113345e1fd3a134fe901eaf909ed4549
1,827
py
Python
constants2.py
Utsav-Patel/The-Imitation-Game
09dfaffdf917c1adfb1d8cd3e09a216b9a014e52
[ "MIT" ]
null
null
null
constants2.py
Utsav-Patel/The-Imitation-Game
09dfaffdf917c1adfb1d8cd3e09a216b9a014e52
[ "MIT" ]
null
null
null
constants2.py
Utsav-Patel/The-Imitation-Game
09dfaffdf917c1adfb1d8cd3e09a216b9a014e52
[ "MIT" ]
null
null
null
import os PROJECT_PATH = os.path.dirname(__file__) PROJECT_NO = 3 ARCHITECTURE_TYPE = 'dense' NUM_COLS = 10 NUM_ROWS = 10 TRAINED_MODEL_NUM_ROWS = 10 TRAINED_MODEL_NUM_COLS = 10 INF = 1e9 FILE_PREFIX = "10x10" FILE_SUFFIX = "new" TRAIN_DATA_PREFIX = "21_to_30_probability_and_1000_each" VALIDATION_TEST_DATA_PREFIX =...
29.95082
118
0.683634
247
1,827
4.619433
0.352227
0.057844
0.043821
0.074496
0.376862
0.376862
0.263804
0.263804
0.224365
0.129711
0
0.046512
0.223317
1,827
60
119
30.45
0.757576
0
0
0.047619
0
0
0.097481
0.01862
0
0
0
0
0
1
0
false
0
0.02381
0
0.02381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e277f4bdbc0bb30de17cd91736ad9678057f1dc7
3,919
py
Python
tests/manage/mcg/conftest.py
vikasmulaje/ocs-ci
98ce950150e061ba872c62f2d55f9bd395241a6e
[ "MIT" ]
null
null
null
tests/manage/mcg/conftest.py
vikasmulaje/ocs-ci
98ce950150e061ba872c62f2d55f9bd395241a6e
[ "MIT" ]
null
null
null
tests/manage/mcg/conftest.py
vikasmulaje/ocs-ci
98ce950150e061ba872c62f2d55f9bd395241a6e
[ "MIT" ]
null
null
null
import logging import pytest from ocs_ci.ocs import constants from ocs_ci.ocs.resources import mcg from tests import helpers from tests.helpers import craft_s3_command, create_unique_resource_name logger = logging.getLogger(__name__) @pytest.fixture() def mcg_obj(): """ Returns an MCG resource that's conne...
28.816176
85
0.655269
499
3,919
4.907816
0.252505
0.0392
0.032666
0.020825
0.123316
0.109432
0.089833
0.089833
0.077583
0.05145
0
0.004215
0.273539
3,919
135
86
29.02963
0.855989
0.272008
0
0.076923
0
0
0.073585
0
0
0
0
0
0.015385
1
0.138462
false
0
0.092308
0
0.323077
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e27960049aaa598d72feec77e6c5226e0bfb23b5
266
py
Python
UICPC/21/nwerc2020all/islandtour/generators/rand.py
MilladMuhammadi/Competitive-Programming
9f84a2d2734a5efe0e1fde0062e51782cd5af2c6
[ "MIT" ]
null
null
null
UICPC/21/nwerc2020all/islandtour/generators/rand.py
MilladMuhammadi/Competitive-Programming
9f84a2d2734a5efe0e1fde0062e51782cd5af2c6
[ "MIT" ]
null
null
null
UICPC/21/nwerc2020all/islandtour/generators/rand.py
MilladMuhammadi/Competitive-Programming
9f84a2d2734a5efe0e1fde0062e51782cd5af2c6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import random n = int(sys.argv[1]) max_w = int(sys.argv[2]) seed = int(sys.argv[3]) k = 3 random.seed(seed) print(n) for _ in range(k+1): A = [] for i in range(n): A.append(random.randint(1, max_w)) print(*A)
14.777778
42
0.601504
51
266
3.078431
0.490196
0.11465
0.191083
0
0
0
0
0
0
0
0
0.033493
0.214286
266
17
43
15.647059
0.717703
0.078947
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0.153846
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e27a9e3d318c52ddc407fa0d3a29622c0ebd8768
488
py
Python
odoo-13.0/doc/_extensions/autojsdoc/ext/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/doc/_extensions/autojsdoc/ext/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/doc/_extensions/autojsdoc/ext/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .directives import automodule_bound, autodirective_bound from .extractor import _get_roots def setup(app): app.add_config_value('js_roots', _get_roots, 'env') modules = {} app.add_directive_to_domain('js', 'automodule', automodule_bound(app, modules) ) autodirective = ...
34.857143
82
0.715164
59
488
5.627119
0.525424
0.054217
0.090361
0.10241
0.150602
0.150602
0
0
0
0
0
0.002421
0.153689
488
13
83
37.538462
0.801453
0.043033
0
0
0
0
0.146237
0
0
0
0
0
0
1
0.1
false
0
0.2
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
e27b9ff878d5e676787f0419abe25a6716e3f34c
1,867
py
Python
mjolnir/test/kafka/test_bulk_daemon.py
kdhingra307/ncm
07557138897d4266ce413c9f4fe033c24c6df065
[ "MIT" ]
null
null
null
mjolnir/test/kafka/test_bulk_daemon.py
kdhingra307/ncm
07557138897d4266ce413c9f4fe033c24c6df065
[ "MIT" ]
null
null
null
mjolnir/test/kafka/test_bulk_daemon.py
kdhingra307/ncm
07557138897d4266ce413c9f4fe033c24c6df065
[ "MIT" ]
null
null
null
from mjolnir.kafka import bulk_daemon import pytest def _mock_bulk_response(ok, action, status, result): return ok, { action: { 'status': status, 'result': result, } } def _update_success(result, n=1): return [_mock_bulk_response(True, 'update', 200, result) for _...
35.903846
88
0.656668
231
1,867
5.021645
0.320346
0.103448
0.124138
0.094828
0.218103
0.160345
0
0
0
0
0
0.020121
0.201393
1,867
51
89
36.607843
0.757881
0.05624
0
0
0
0
0.0876
0.022753
0
0
0
0
0.025
1
0.1
false
0
0.05
0.075
0.225
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e281094af97245f121c74904895b108ebd981d2a
2,248
py
Python
tests/restart/rigid_vector.py
cselab/uDeviceX
2ad5e9dd9f118e3998b291cbfc35ee91205bbef8
[ "MIT" ]
2
2018-09-19T09:53:35.000Z
2018-10-08T16:37:31.000Z
tests/restart/rigid_vector.py
dimaleks/uDeviceX
2ad5e9dd9f118e3998b291cbfc35ee91205bbef8
[ "MIT" ]
20
2018-09-19T10:05:55.000Z
2018-10-01T14:50:18.000Z
tests/restart/rigid_vector.py
dimaleks/uDeviceX
2ad5e9dd9f118e3998b291cbfc35ee91205bbef8
[ "MIT" ]
null
null
null
#!/usr/bin/env python import mirheo as mir import numpy as np import argparse import trimesh parser = argparse.ArgumentParser() parser.add_argument("--restart", action='store_true', default=False) parser.add_argument("--ranks", type=int, nargs=3) args = parser.parse_args() ranks = args.ranks domain = (16, 16, 16) d...
33.552239
165
0.668149
386
2,248
3.823834
0.373057
0.02168
0.018293
0.016938
0.326558
0.326558
0.326558
0.296748
0.296748
0.296748
0
0.045113
0.171708
2,248
66
166
34.060606
0.747583
0.353648
0
0
0
0
0.036831
0
0
0
0
0
0
1
0
false
0
0.114286
0
0.114286
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e28416ab6b88181873526448c13827e0449894a1
292
py
Python
setup.py
Matatika/analyze-shopify
3450eae05fba5c3852c9e009a212acd0ffaa9dfc
[ "MIT" ]
null
null
null
setup.py
Matatika/analyze-shopify
3450eae05fba5c3852c9e009a212acd0ffaa9dfc
[ "MIT" ]
null
null
null
setup.py
Matatika/analyze-shopify
3450eae05fba5c3852c9e009a212acd0ffaa9dfc
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="analyze-shopify", version="0.1.0", description="Matatika datasets for tap-shopify", packages=find_packages(), package_data={ "bundle": [ "analyze/datasets/tap-shopify/*.yml", ] }, )
20.857143
52
0.609589
31
292
5.645161
0.677419
0.137143
0
0
0
0
0
0
0
0
0
0.013699
0.25
292
13
53
22.461538
0.785388
0
0
0
0
0
0.318493
0.116438
0
0
0
0
0
1
0
true
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
e285f7c748c8394c121ef615cb909893a57cfa34
11,641
py
Python
scripts/jetsmearing.py
xju2/monojet
7475a62f176425ae910f2f104f175b1ddc457fdf
[ "MIT" ]
null
null
null
scripts/jetsmearing.py
xju2/monojet
7475a62f176425ae910f2f104f175b1ddc457fdf
[ "MIT" ]
null
null
null
scripts/jetsmearing.py
xju2/monojet
7475a62f176425ae910f2f104f175b1ddc457fdf
[ "MIT" ]
null
null
null
#!/usr/bin/env python import ROOT import AtlasStyle import os import sys import threading import math from array import array ROOT.gROOT.SetBatch() if not hasattr(ROOT, "loader"): ROOT.gROOT.LoadMacro("/afs/cern.ch/user/x/xju/tool/loader.c") ROOT.gROOT.LoadMacro(os.getenv("ROOTCOREBIN")+"/lib/x86_64-slc6-gcc49-...
37.430868
99
0.556567
1,570
11,641
3.880892
0.170701
0.022157
0.025275
0.016412
0.312162
0.215821
0.136714
0.10389
0.08518
0.060561
0
0.059043
0.308908
11,641
310
100
37.551613
0.698322
0.089339
0
0.059072
0
0
0.128953
0.031339
0
0
0
0
0
0
null
null
0.008439
0.029536
null
null
0.021097
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e286824d619b3fb3392a686ffb1f637ffe9558e5
226
py
Python
app/user/urls.py
bondeveloper/maischool
16bf2afe99d26caa067b7912e88839639cf2191e
[ "MIT" ]
null
null
null
app/user/urls.py
bondeveloper/maischool
16bf2afe99d26caa067b7912e88839639cf2191e
[ "MIT" ]
null
null
null
app/user/urls.py
bondeveloper/maischool
16bf2afe99d26caa067b7912e88839639cf2191e
[ "MIT" ]
null
null
null
from django.urls import path from user import views app_name = 'user' urlpatterns = [ path('', views.ListUserView.as_view(), name="list"), path('detail/<int:pk>', views.RetrieveUserView.as_view(), name="detail"), ]
20.545455
77
0.685841
30
226
5.066667
0.6
0.078947
0.131579
0
0
0
0
0
0
0
0
0
0.141593
226
10
78
22.6
0.783505
0
0
0
0
0
0.128319
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
e2869364b9dcccc3530b23aa12c8b83b04b6e9df
11,588
py
Python
squeezenet/develop_squeezenet.py
govindnh4cl/squeezenet
4651a21d9ba274d49c9a8a8dcf5d98c16eff1510
[ "MIT" ]
null
null
null
squeezenet/develop_squeezenet.py
govindnh4cl/squeezenet
4651a21d9ba274d49c9a8a8dcf5d98c16eff1510
[ "MIT" ]
75
2020-03-14T17:07:09.000Z
2020-05-17T01:03:29.000Z
squeezenet/develop_squeezenet.py
govindnh4cl/squeezenet
4651a21d9ba274d49c9a8a8dcf5d98c16eff1510
[ "MIT" ]
null
null
null
import time import numpy as np import tensorflow as tf from my_logger import get_logger from squeezenet.config import get_config from squeezenet.inputs import get_input_pipeline from squeezenet.networks.squeezenet import Squeezenet_Imagenet from squeezenet import eval from squeezenet.checkpoint_handler import Checkpo...
43.400749
133
0.624266
1,464
11,588
4.737022
0.201503
0.036337
0.017304
0.014708
0.289546
0.212257
0.169863
0.154722
0.142033
0.126604
0
0.007951
0.283656
11,588
266
134
43.56391
0.827491
0.210994
0
0.164557
0
0.006329
0.066735
0
0
0
0
0.003759
0.006329
1
0.050633
false
0
0.06962
0
0.170886
0.018987
0
0
0
null
0
0
0
0
0
0
0
0
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
e2877a645bbb7c7bad3cbc69941b6365e83c25ff
1,151
py
Python
Code/RUN_IntaRNA.py
nrohani/SARS-CoV-2
978320f7b644c65198d632dba8a8ebe8c4df542d
[ "MIT" ]
1
2020-08-25T11:58:01.000Z
2020-08-25T11:58:01.000Z
Code/RUN_IntaRNA.py
nrohani/SARS-CoV-2
978320f7b644c65198d632dba8a8ebe8c4df542d
[ "MIT" ]
null
null
null
Code/RUN_IntaRNA.py
nrohani/SARS-CoV-2
978320f7b644c65198d632dba8a8ebe8c4df542d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jun 5 17:14:12 2020 @author: Narjes Rohani """ #install subprocess, Pandas, biopython, and IntaRNA packages import os import subprocess import pandas as pd #Load file of miRNAs sequences that you want to canculate MFE to bind SARS-CoV-2 mRNAMicroRNA=pd...
28.775
80
0.7298
167
1,151
4.976048
0.568862
0.043321
0.021661
0
0
0
0
0
0
0
0
0.013766
0.116421
1,151
40
81
28.775
0.803343
0.275413
0
0
0
0
0.190012
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2886fcfd835808de1acab30f0aa321469626e64
3,229
py
Python
salt/salt.py
juhanurmi/cryptography
362bc1cc146d291f9864f9788de904a09649d39f
[ "MIT" ]
null
null
null
salt/salt.py
juhanurmi/cryptography
362bc1cc146d291f9864f9788de904a09649d39f
[ "MIT" ]
null
null
null
salt/salt.py
juhanurmi/cryptography
362bc1cc146d291f9864f9788de904a09649d39f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' python3 salt.py ''' import time import random import hashlib def all_ip_addresses(): ''' Return all IPv4 addresses one by one ''' # IPv4 uses a 32-bit address space: 4,294,967,296 (2**32) unique addresses for part1 in range(11, 256): # 11-255 for part2 in range(0, 256): ...
45.478873
100
0.600186
448
3,229
4.227679
0.372768
0.061774
0.036959
0.017423
0.105597
0.085533
0.077614
0.058606
0
0
0
0.095806
0.246826
3,229
70
101
46.128571
0.682977
0.181171
0
0
0
0
0.26097
0.023865
0
0
0
0
0
1
0.076923
false
0
0.057692
0
0.173077
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
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
e28a9ea7765fcb38da42e9c9b798b40ab9662d1a
2,025
py
Python
demo/load_model/load_and_predict.py
Saumitra-Shukla/keras-bert
e60785d31129199ec0f922159e76bb63db330e00
[ "MIT" ]
2,465
2018-10-20T14:49:52.000Z
2022-03-31T02:20:09.000Z
demo/load_model/load_and_predict.py
VictorMadu/keras-bert
26bdfe3c36e77fa0524902f31263a920ccd62efb
[ "MIT" ]
209
2018-11-01T09:03:39.000Z
2022-03-19T09:07:47.000Z
demo/load_model/load_and_predict.py
VictorMadu/keras-bert
26bdfe3c36e77fa0524902f31263a920ccd62efb
[ "MIT" ]
566
2018-10-23T09:02:24.000Z
2022-03-31T15:40:37.000Z
import sys import numpy as np from keras_bert import load_vocabulary, load_trained_model_from_checkpoint, Tokenizer, get_checkpoint_paths print('This demo demonstrates how to load the pre-trained model and check whether the two sentences are continuous') if len(sys.argv) == 2: model_path = sys.argv[1] else: f...
39.705882
116
0.744198
295
2,025
4.955932
0.332203
0.043092
0.021888
0.05472
0.378933
0.337893
0.337893
0.337893
0.337893
0.337893
0
0.021452
0.102222
2,025
50
117
40.5
0.782728
0
0
0.27027
0
0
0.139259
0.031111
0
0
0
0
0
1
0
false
0
0.108108
0
0.108108
0.189189
0
0
0
null
0
0
0
0
0
0
0
0
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
e28b7a15f09721739923d943b0fb11bb1a778844
3,052
py
Python
archive/python/howto-logging.py
ajrichards/bayesian-examples
fbd87c6f1613ea516408e9ebc3c9eff1248246e4
[ "BSD-3-Clause" ]
2
2016-01-27T08:51:23.000Z
2017-04-17T02:21:34.000Z
archive/python/howto-logging.py
ajrichards/notebook
fbd87c6f1613ea516408e9ebc3c9eff1248246e4
[ "BSD-3-Clause" ]
null
null
null
archive/python/howto-logging.py
ajrichards/notebook
fbd87c6f1613ea516408e9ebc3c9eff1248246e4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import time,os,re,csv,sys,uuid,joblib from datetime import date import numpy as np from sklearn import svm from sklearn import datasets from sklearn.model_selection import train_test_split from sklearn.metrics import classification_report def train_model(X,y,saved_model): """ function t...
28.259259
103
0.640891
447
3,052
4.210291
0.333333
0.026567
0.012752
0.023379
0.085016
0.076514
0.041445
0.041445
0.041445
0
0
0.018372
0.215269
3,052
107
104
28.523364
0.767432
0.167759
0
0
0
0
0.081103
0.020276
0
0
0
0
0
1
0.052632
false
0
0.122807
0
0.175439
0.087719
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e28c34e35ae4b4f3df58206467605471b9788535
14
py
Python
sso/api/handlers/__init__.py
docloud/luna.sso
a62c0ee788b72b39340165e41de16e248eb5edad
[ "MIT" ]
null
null
null
sso/api/handlers/__init__.py
docloud/luna.sso
a62c0ee788b72b39340165e41de16e248eb5edad
[ "MIT" ]
null
null
null
sso/api/handlers/__init__.py
docloud/luna.sso
a62c0ee788b72b39340165e41de16e248eb5edad
[ "MIT" ]
null
null
null
#coding=utf8
4.666667
12
0.714286
2
14
5
1
0
0
0
0
0
0
0
0
0
0
0.083333
0.142857
14
2
13
7
0.75
0.785714
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
e28c841373f2374d122cbff3f43b67a22b6729fe
21,378
py
Python
src/rnn_cells/skip_rnn_cells.py
imatge-upc/skiprnn-2017-tfm
63f93a539a3f2c7a713089fdd2c38bb7b0c581ca
[ "MIT" ]
129
2017-08-24T00:27:47.000Z
2022-03-24T21:42:37.000Z
src/rnn_cells/skip_rnn_cells.py
imatge-upc/skiprnn-2018-iclr
63f93a539a3f2c7a713089fdd2c38bb7b0c581ca
[ "MIT" ]
8
2018-02-28T15:05:48.000Z
2022-02-09T23:30:21.000Z
src/rnn_cells/skip_rnn_cells.py
imatge-upc/skiprnn-2018-iclr
63f93a539a3f2c7a713089fdd2c38bb7b0c581ca
[ "MIT" ]
45
2017-08-24T13:16:11.000Z
2021-05-13T02:36:59.000Z
""" Skip RNN cells that decide which timesteps should be attended. """ from __future__ import absolute_import from __future__ import print_function import collections import tensorflow as tf from rnn_cells import rnn_ops from tensorflow.python.framework import ops SkipLSTMStateTuple = collections.namedtuple("Skip...
48.697039
123
0.630882
2,775
21,378
4.525405
0.071351
0.086001
0.049689
0.052954
0.885651
0.873626
0.858576
0.84257
0.835722
0.828874
0
0.007441
0.283329
21,378
438
124
48.808219
0.812219
0.180185
0
0.726923
0
0
0.034016
0.005414
0
0
0
0
0
1
0.080769
false
0
0.023077
0.030769
0.184615
0.003846
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
e28f288d8baf761d62a58045450c5d688f0b7d68
1,601
py
Python
892.surface-area-of-3-d-shapes.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
892.surface-area-of-3-d-shapes.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
892.surface-area-of-3-d-shapes.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=892 lang=python3 # # [892] Surface Area of 3D Shapes # # https://leetcode.com/problems/surface-area-of-3d-shapes/description/ # # algorithms # Easy (57.01%) # Likes: 209 # Dislikes: 270 # Total Accepted: 15.9K # Total Submissions: 27.5K # Testcase Example: '[[2]]' # # On a N * N grid, we ...
14.294643
79
0.445971
243
1,601
2.938272
0.366255
0.063025
0.021008
0.029412
0.148459
0.030812
0.030812
0.030812
0
0
0
0.091516
0.344785
1,601
111
80
14.423423
0.589133
0.506558
0
0
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e28fafb02e2674eaa86bebf78be4058f9ae1ced9
1,147
py
Python
tensorflow/afno/afno.py
DarshanDeshpande/research-paper-implementations
fc24acfc4644ccdc9f7d46a411aa66153f234499
[ "MIT" ]
7
2021-12-20T00:53:46.000Z
2022-03-17T01:37:00.000Z
tensorflow/afno/afno.py
DarshanDeshpande/research-paper-implementations
fc24acfc4644ccdc9f7d46a411aa66153f234499
[ "MIT" ]
null
null
null
tensorflow/afno/afno.py
DarshanDeshpande/research-paper-implementations
fc24acfc4644ccdc9f7d46a411aa66153f234499
[ "MIT" ]
1
2022-03-31T05:41:53.000Z
2022-03-31T05:41:53.000Z
import tensorflow as tf import tensorflow_addons as tfa class AFNO(tf.keras.layers.Layer): """ AFNO with adaptive weight sharing and adaptive masking. """ def __init__(self, k, *args, **kwargs): self.k = k super().__init__(*args, **kwargs) def build(self, input_shape): d ...
27.309524
71
0.541412
153
1,147
3.960784
0.392157
0.057756
0.064356
0.059406
0.189769
0.171617
0.171617
0.112211
0
0
0
0.011465
0.315606
1,147
41
72
27.97561
0.76051
0.047951
0
0
0
0
0.010223
0
0
0
0
0
0
1
0.16129
false
0
0.064516
0.064516
0.354839
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e28ff84afb5353549cff424a116a8d2e4aba5e25
7,696
py
Python
deploy/cdk_files/deploy_cdk_stack.py
nickderobertis/nick-derobertis-site
386061dc258921eed41f2d3965ef69e02adde7ba
[ "MIT" ]
1
2022-03-31T10:55:40.000Z
2022-03-31T10:55:40.000Z
deploy/cdk_files/deploy_cdk_stack.py
nickderobertis/nick-derobertis-site
386061dc258921eed41f2d3965ef69e02adde7ba
[ "MIT" ]
8
2020-08-28T11:44:37.000Z
2020-08-31T09:19:19.000Z
deploy/cdk_files/deploy_cdk_stack.py
nickderobertis/nick-derobertis-site
386061dc258921eed41f2d3965ef69e02adde7ba
[ "MIT" ]
null
null
null
"""AWS CDK module to create ECS infrastructure""" import os from typing import Optional from aws_cdk import ( core, aws_ecs as ecs, aws_ec2 as ec2, aws_iam as iam, aws_ecr as ecr, aws_elasticloadbalancingv2 as elbv2, aws_route53 as route53, aws_route53_targets as alias, aws_certific...
34.666667
107
0.58342
798
7,696
5.35589
0.289474
0.054282
0.033692
0.032756
0.187178
0.106926
0.096631
0.079317
0.069724
0.069724
0
0.010806
0.338617
7,696
221
108
34.823529
0.82888
0.071206
0
0.153846
0
0
0.046253
0.021369
0
0
0
0
0
1
0.005495
false
0
0.027473
0
0.038462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2908b05587d86510e1d4c415f410a863e39895d
1,139
py
Python
hello/urls.py
KKawamura1/sirobutton
fb74a68e6f7a18177df3fd60df898e46d59f886e
[ "MIT" ]
8
2018-07-03T03:08:41.000Z
2020-01-05T00:08:04.000Z
hello/urls.py
KKawamura1/sirobutton
fb74a68e6f7a18177df3fd60df898e46d59f886e
[ "MIT" ]
null
null
null
hello/urls.py
KKawamura1/sirobutton
fb74a68e6f7a18177df3fd60df898e46d59f886e
[ "MIT" ]
null
null
null
from django.urls import path from django.contrib.sitemaps.views import sitemap import hello.views from hello.sitemaps import SubtitleSitemap, StaticSitemap app_name = 'sirobutton' sitemaps = { 'subtitles': SubtitleSitemap, 'static': StaticSitemap, } urlpatterns = [ path('', hello.views.SubtitleListView....
42.185185
97
0.707638
144
1,139
5.520833
0.354167
0.138365
0.125786
0.07044
0.090566
0.090566
0
0
0
0
0
0.002947
0.106234
1,139
26
98
43.807692
0.777996
0
0
0
0
0
0.220369
0.042142
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e290dde6888c2655675fa623360f1477b47adc7f
5,415
py
Python
app/freelancer/tests/test_profile.py
mshirzad/find-my-job
7dca88d6233649952f0b948156a91af5b96352ff
[ "MIT" ]
null
null
null
app/freelancer/tests/test_profile.py
mshirzad/find-my-job
7dca88d6233649952f0b948156a91af5b96352ff
[ "MIT" ]
null
null
null
app/freelancer/tests/test_profile.py
mshirzad/find-my-job
7dca88d6233649952f0b948156a91af5b96352ff
[ "MIT" ]
1
2022-03-06T17:44:49.000Z
2022-03-06T17:44:49.000Z
import os, tempfile from PIL import Image from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import test, status from rest_framework.test import APIClient from core.models import Profile, Address, Gig, Education from freelancer.serial...
28.650794
88
0.635272
613
5,415
5.414356
0.270799
0.039771
0.040072
0.041579
0.449834
0.433263
0.367882
0.26755
0.26755
0.236818
0
0.023447
0.236011
5,415
188
89
28.803191
0.778825
0.638227
0
0.156863
0
0
0.169519
0.037433
0
0
0
0
0
1
0.117647
false
0
0.176471
0.039216
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e292938be0fbd99557d32fc2766285f31e477327
5,106
py
Python
app2.py
dropout-sih/flask-backend
0423274a285a841bb007e7cf4284d6d95d74e20a
[ "MIT" ]
null
null
null
app2.py
dropout-sih/flask-backend
0423274a285a841bb007e7cf4284d6d95d74e20a
[ "MIT" ]
null
null
null
app2.py
dropout-sih/flask-backend
0423274a285a841bb007e7cf4284d6d95d74e20a
[ "MIT" ]
null
null
null
from bokeh.embed import components from bokeh.plotting import figure, curdoc, ColumnDataSource from bokeh.resources import INLINE from bokeh.util.string import encode_utf8 from bokeh.models import CustomJS, LabelSet, Slider from bokeh.models.widgets import Slider from bokeh.models.layouts import WidgetBox, Row from bok...
27.451613
168
0.697219
726
5,106
4.783747
0.352617
0.020731
0.016124
0.01958
0.031097
0
0
0
0
0
0
0.035297
0.145515
5,106
185
169
27.6
0.760715
0.031336
0
0.029197
0
0
0.225048
0.033768
0
0
0
0
0
1
0.036496
false
0
0.145985
0.014599
0.240876
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e292cc422e185ad6a241928b70c1875793558ca0
1,072
py
Python
src/mailauth/migrations/0001_initial.py
Nnonexistent/chemphys
d2f34364d006a494bb965bb83d1967d7dd56f9ba
[ "MIT" ]
null
null
null
src/mailauth/migrations/0001_initial.py
Nnonexistent/chemphys
d2f34364d006a494bb965bb83d1967d7dd56f9ba
[ "MIT" ]
19
2015-03-08T08:46:09.000Z
2019-10-01T05:16:43.000Z
src/mailauth/migrations/0001_initial.py
Nnonexistent/chemphys
d2f34364d006a494bb965bb83d1967d7dd56f9ba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import mailauth.models import django.utils.timezone from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL),...
33.5
127
0.620336
108
1,072
5.972222
0.518519
0.085271
0.058915
0.065116
0
0
0
0
0
0
0
0.003774
0.258396
1,072
31
128
34.580645
0.807547
0.01959
0
0
0
0
0.095329
0
0
0
0
0
0
1
0
false
0
0.2
0
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e2962b912b0ef2494f5546db33de053e4cecd765
733
py
Python
augmentation.py
JamesQFreeman/contrastive_learning_in_100_lines
e5c015c2fad392dd0142cd93728cec3ccdb935b9
[ "MIT" ]
2
2021-09-07T11:53:42.000Z
2021-09-25T15:21:24.000Z
augmentation.py
JamesQFreeman/contrastive_learning_in_100_lines
e5c015c2fad392dd0142cd93728cec3ccdb935b9
[ "MIT" ]
null
null
null
augmentation.py
JamesQFreeman/contrastive_learning_in_100_lines
e5c015c2fad392dd0142cd93728cec3ccdb935b9
[ "MIT" ]
null
null
null
from torchvision import transforms as T import torch import random class RandomApply(torch.nn.Module): def __init__(self, fn, p): super().__init__() self.fn = fn self.p = p def forward(self, x): if random.random() > self.p: return x return self.fn(x) SimC...
21.558824
49
0.559345
105
733
3.819048
0.428571
0.01995
0.022444
0.01995
0.017456
0
0
0
0
0
0
0.095238
0.283765
733
33
50
22.212121
0.668571
0
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.107143
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
e2966a8acfb10fae2bc5cafae57c64dc5b245211
728
py
Python
lessons/058/function/app.py
murasaki718/tutorials
ad55a1f34f2dc050a5ccbceae0c09def0626dccf
[ "MIT" ]
225
2020-12-12T03:41:46.000Z
2022-03-30T20:07:31.000Z
lessons/058/function/app.py
kevAnto/tutorials
9db76b5eeb6a54afabae6a4e386f155cc5dbc025
[ "MIT" ]
9
2021-09-18T12:36:23.000Z
2022-03-11T17:24:20.000Z
lessons/058/function/app.py
kevAnto/tutorials
9db76b5eeb6a54afabae6a4e386f155cc5dbc025
[ "MIT" ]
410
2020-12-24T03:34:33.000Z
2022-03-31T22:38:13.000Z
import boto3 import requests def lambda_handler(event, context): print(event) object_get_context = event["getObjectContext"] request_route = object_get_context["outputRoute"] request_token = object_get_context["outputToken"] s3_url = object_get_context["inputS3Url"] # Get object from S3 ...
26.962963
54
0.712912
86
728
5.767442
0.476744
0.072581
0.129032
0
0
0
0
0
0
0
0
0.024014
0.199176
728
26
55
28
0.826758
0.100275
0
0
0
0
0.101382
0
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.235294
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e29799a419ccf766cb76b6c714c7fa023b5fc415
421
py
Python
backend/edw/utils/router.py
MMotionMan/django-edw
0f686429d29e0f40409a3b2318664973b2844c08
[ "BSD-3-Clause" ]
4
2019-09-18T05:51:12.000Z
2020-10-23T08:50:00.000Z
backend/edw/utils/router.py
MMotionMan/django-edw
0f686429d29e0f40409a3b2318664973b2844c08
[ "BSD-3-Clause" ]
10
2020-04-29T11:46:44.000Z
2022-03-11T23:38:27.000Z
backend/edw/utils/router.py
MMotionMan/django-edw
0f686429d29e0f40409a3b2318664973b2844c08
[ "BSD-3-Clause" ]
13
2020-04-09T07:49:48.000Z
2022-03-02T07:06:28.000Z
# -*- coding: utf-8 -*- from django.db import DEFAULT_DB_ALIAS from multidb import PinningReplicaRouter class EdwReplicationRouter(PinningReplicaRouter): def db_for_read(self, model, **hints): if not hasattr(model, '_rest_meta'): return DEFAULT_DB_ALIAS db = model._rest_meta.db_for_rea...
35.083333
76
0.703088
58
421
4.862069
0.5
0.053191
0.095745
0.092199
0.163121
0.163121
0
0
0
0
0
0.00295
0.194774
421
11
77
38.272727
0.828909
0.049881
0
0
0
0
0.025126
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e297d6fe5d987adf7ab2be9c741d006bb3a4ad4a
1,593
py
Python
compile.py
cobaltians/Cobalt-Web-Sources
a5bfc71b3d2aebaa799d1917c1d15025110c5c11
[ "MIT" ]
1
2020-07-28T13:49:50.000Z
2020-07-28T13:49:50.000Z
compile.py
cobaltians/Cobalt-Web-Sources
a5bfc71b3d2aebaa799d1917c1d15025110c5c11
[ "MIT" ]
1
2015-08-14T21:04:47.000Z
2015-08-15T16:07:53.000Z
compile.py
cobaltians/Cobalt-Web-Sources
a5bfc71b3d2aebaa799d1917c1d15025110c5c11
[ "MIT" ]
1
2015-08-14T20:12:19.000Z
2015-08-14T20:12:19.000Z
import os libName = "cobalt" distrib_path = os.path.normpath(os.path.abspath(os.path.join(os.pardir, 'Cobalt-Web'))) #../Cobalt-Web web_sources_path = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__)))) #here common_file_path= os.path.normpath(os.path.abspath(os.path.join(web_sources_path, 'comm...
33.1875
113
0.697426
238
1,593
4.521008
0.239496
0.122677
0.065056
0.083643
0.47026
0.438662
0.395911
0.286245
0.286245
0.286245
0
0
0.148776
1,593
47
114
33.893617
0.79351
0.010672
0
0.129032
0
0.032258
0.222363
0
0
0
0
0
0
0
null
null
0
0.032258
null
null
0.225806
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e2983c94a04750401fd0d6ef968b1c6b8d6d289f
2,051
py
Python
ch6 slam&navigation/turtlebot/kobuki/kobuki_testsuite/src/kobuki_testsuite/angular_accelerate.py
MINAMISAMA/Castle-X
f6aedc4e67f772b2aed269617ee8a9cac95c7f63
[ "Apache-2.0" ]
3
2021-01-10T10:52:14.000Z
2021-12-31T10:19:25.000Z
ch6 slam&navigation/turtlebot/kobuki/kobuki_testsuite/src/kobuki_testsuite/angular_accelerate.py
MINAMISAMA/Castle-X
f6aedc4e67f772b2aed269617ee8a9cac95c7f63
[ "Apache-2.0" ]
1
2019-01-15T12:37:59.000Z
2019-01-15T12:37:59.000Z
ch6 slam&navigation/turtlebot/kobuki/kobuki_testsuite/src/kobuki_testsuite/angular_accelerate.py
MINAMISAMA/Castle-X
f6aedc4e67f772b2aed269617ee8a9cac95c7f63
[ "Apache-2.0" ]
2
2019-01-14T07:48:42.000Z
2019-01-15T06:32:27.000Z
#!/usr/bin/env python # # License: BSD # https://raw.github.com/yujinrobot/kobuki/hydro-devel/kobuki_testsuite/LICENSE # ############################################################################## # Imports ############################################################################## import threading impo...
28.887324
93
0.504144
230
2,051
4.347826
0.330435
0.096
0.078
0.028
0.172
0.096
0.096
0.096
0.096
0.096
0
0.007092
0.243784
2,051
70
94
29.3
0.637653
0.066309
0
0.181818
0
0
0.018006
0
0
0
0
0
0
1
0.090909
false
0
0.113636
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
e2987a689cdb6912d64b87c167aed0504e4c8bc3
2,023
py
Python
mergify_engine/rules/types.py
eladb/mergify-engine
ca2eb9926be29d38feaf029caaa63cbb4c74659e
[ "Apache-2.0" ]
null
null
null
mergify_engine/rules/types.py
eladb/mergify-engine
ca2eb9926be29d38feaf029caaa63cbb4c74659e
[ "Apache-2.0" ]
null
null
null
mergify_engine/rules/types.py
eladb/mergify-engine
ca2eb9926be29d38feaf029caaa63cbb4c74659e
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Copyright © 2020 Mergify SAS # # 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 applicabl...
28.492958
83
0.699456
258
2,023
5.418605
0.542636
0.042918
0.018598
0.02289
0.075823
0
0
0
0
0
0
0.010787
0.220959
2,023
70
84
28.9
0.875635
0.364805
0
0.054054
0
0
0.077593
0
0
0
0
0.014286
0
1
0.108108
false
0.027027
0.135135
0
0.432432
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e2996b4376288dcac854730f4d39f437175c6874
692
py
Python
backend/submission/migrations/0013_auto_20210730_2244.py
skku-npc/SKKU_Coding_Platform
1d972e8922484cf94f6735fd08b2565e5d3517d0
[ "MIT" ]
1
2022-03-30T14:03:23.000Z
2022-03-30T14:03:23.000Z
backend/submission/migrations/0013_auto_20210730_2244.py
skku-npc/SKKU_Coding_Platform
1d972e8922484cf94f6735fd08b2565e5d3517d0
[ "MIT" ]
56
2022-02-19T08:13:48.000Z
2022-03-25T10:17:07.000Z
backend/submission/migrations/0013_auto_20210730_2244.py
skku-npc/SKKU_Coding_Platform
1d972e8922484cf94f6735fd08b2565e5d3517d0
[ "MIT" ]
1
2022-03-25T15:02:46.000Z
2022-03-25T15:02:46.000Z
# Generated by Django 2.2.24 on 2021-07-30 13:44 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('assignment', '0001_initial'), ('submission', '0012_auto_20180501_0436'), ] operations = [ migratio...
26.615385
120
0.615607
71
692
5.901408
0.577465
0.057279
0.066826
0.105012
0.195704
0.195704
0
0
0
0
0
0.070588
0.263006
692
25
121
27.68
0.75098
0.066474
0
0.315789
1
0
0.17236
0.068323
0
0
0
0
0
1
0
false
0
0.105263
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e29bbb2c0371d64fde51e9fa4ffd3d717bbe1e2c
304
py
Python
src/zs2decode/__init__.py
Gargoyl13/zs2decode
7826df443327a9465a6a0626f10543e6cd9927e3
[ "MIT" ]
3
2021-12-02T20:09:26.000Z
2022-03-07T22:38:08.000Z
src/zs2decode/__init__.py
Gargoyl13/zs2decode
7826df443327a9465a6a0626f10543e6cd9927e3
[ "MIT" ]
6
2016-12-13T19:52:01.000Z
2022-03-12T21:03:55.000Z
src/zs2decode/__init__.py
Gargoyl13/zs2decode
7826df443327a9465a6a0626f10543e6cd9927e3
[ "MIT" ]
5
2016-07-11T12:27:17.000Z
2021-07-20T12:48:13.000Z
__version__ = "0.3.2.dev0" __title__ = "zs2decode" __description__ = "read Zwick zs2 and zp2 files" __uri__ = "https://zs2decode.readthedocs.org/" __author__ = "Chris Petrich" __email__ = "cpetrich@users.noreply.github.com" __license__ = "MIT" __copyright__ = "Copyright (C) 2015-2017 Chris Petrich"
23.384615
55
0.743421
37
304
5.243243
0.891892
0.123711
0
0
0
0
0
0
0
0
0
0.06015
0.125
304
12
56
25.333333
0.669173
0
0
0
0
0
0.551155
0.108911
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e29bf102bcc2d01986cf90aafc7b1eecbc6c4679
10,158
py
Python
test-pokersim.py
heyi19931225/Python-Texas-Holdem-Starter-Simio
1eaf266922fb6478dd907f5cbc9eb388775d16e0
[ "MIT" ]
12
2017-01-08T17:24:43.000Z
2021-11-14T09:09:11.000Z
test-pokersim.py
heyi19931225/Python-Texas-Holdem-Starter-Simio
1eaf266922fb6478dd907f5cbc9eb388775d16e0
[ "MIT" ]
1
2020-06-15T11:23:41.000Z
2020-06-15T11:23:41.000Z
test-pokersim.py
heyi19931225/Python-Texas-Holdem-Starter-Simio
1eaf266922fb6478dd907f5cbc9eb388775d16e0
[ "MIT" ]
15
2016-05-17T01:01:24.000Z
2021-11-16T14:37:34.000Z
## # test-pokersim.py # # Tests # check hand logic # check readable_hand, hand_to_numeric # check best_five # valid_hand import unittest import pokersim class TestPokerSim(unittest.TestCase): def test_readable_hand(self): self.assertEqual("Qd3c3d3h3s", pokersim.readable_...
47.915094
77
0.669718
1,225
10,158
5.347755
0.096327
0.062281
0.134941
0.211571
0.802015
0.774233
0.717753
0.686002
0.662647
0.648298
0
0.060448
0.208506
10,158
211
78
48.14218
0.754353
0.062808
0
0.511905
0
0
0.073512
0
0
0
0
0
0.422619
1
0.089286
false
0
0.011905
0
0.107143
0
0
0
0
null
0
0
1
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
6
e29c9edf2f4ffd2271c79a4b1ba091fbd8bc11a6
148
py
Python
easy/561-array-partition-i.py
changmeng72/leecode_python3
8384f52f0dd74b06b1b6aefa277dde6a228ff5f3
[ "MIT" ]
null
null
null
easy/561-array-partition-i.py
changmeng72/leecode_python3
8384f52f0dd74b06b1b6aefa277dde6a228ff5f3
[ "MIT" ]
null
null
null
easy/561-array-partition-i.py
changmeng72/leecode_python3
8384f52f0dd74b06b1b6aefa277dde6a228ff5f3
[ "MIT" ]
null
null
null
class Solution: def arrayPairSum(self, nums: List[int]) -> int: nums.sort() return sum(nums[i] for i in range(0,len(nums),2))
37
57
0.594595
23
148
3.826087
0.782609
0
0
0
0
0
0
0
0
0
0
0.018018
0.25
148
4
57
37
0.774775
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
e29e7a0574cd25b3521ccbfec3ec991095438e5e
446
py
Python
visual/views.py
dukuaris/Django
d34f3e3f09028511e96b99cae7faa1b46458eed1
[ "MIT" ]
null
null
null
visual/views.py
dukuaris/Django
d34f3e3f09028511e96b99cae7faa1b46458eed1
[ "MIT" ]
12
2020-06-06T01:22:26.000Z
2022-03-12T00:13:42.000Z
visual/views.py
dukuaris/Django
d34f3e3f09028511e96b99cae7faa1b46458eed1
[ "MIT" ]
null
null
null
from django.shortcuts import render def visual(requests): return render(requests, 'visual/welcome.html') def gapminder(requests): return render(requests, 'visual/gapminder.html') def multipleoutputs(requests): return render(requests, 'visual/multipleoutputs.html') def interactions(requests): return ...
26.235294
58
0.764574
50
446
6.82
0.3
0.205279
0.293255
0.410557
0.498534
0
0
0
0
0
0
0
0.121076
446
16
59
27.875
0.869898
0
0
0
0
0
0.253363
0.210762
0
0
0
0
0
1
0.454545
false
0
0.090909
0.454545
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
6
e29faff8b7ac6704b7fa82f70fed6f89ab3c757c
2,170
py
Python
fastiqa/bunches/iqa/test_images.py
baidut/PatchVQ
040486b6342dfd36695f1daea0b5c4d77d728a23
[ "Unlicense" ]
32
2020-12-05T09:11:20.000Z
2022-03-28T07:49:13.000Z
fastiqa/bunches/iqa/test_images.py
utlive/PatchVQ
040486b6342dfd36695f1daea0b5c4d77d728a23
[ "Unlicense" ]
5
2021-07-12T19:43:51.000Z
2022-01-28T13:16:16.000Z
fastiqa/bunches/iqa/test_images.py
utlive/PatchVQ
040486b6342dfd36695f1daea0b5c4d77d728a23
[ "Unlicense" ]
7
2020-12-29T21:52:07.000Z
2022-03-18T15:12:50.000Z
"""fastai1 code, not yet converted""" from ..label import * from tqdm import tqdm from fastai.vision import open_image import os from PIL import Image as PIL_Image """ # %% from fastiqa.all import * learn = RoIPoolLearner.from_cls(FLIVE, RoIPoolModel) learn.path = Path('.') learn.load('RoIPoolModel-fit(10,bs=120)') l...
32.38806
155
0.586175
294
2,170
4.190476
0.397959
0.039773
0.032468
0.031656
0.151786
0.151786
0.105519
0.105519
0.105519
0.105519
0
0.014734
0.280645
2,170
66
156
32.878788
0.774504
0.023041
0
0.047619
0
0
0.038293
0
0
0
0
0
0
1
0.047619
false
0.02381
0.119048
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e29fca0332219f46c9db03e2a55a11fef6c52985
687
py
Python
src/appointments_has_payment/migrations/0001_initial.py
TheCleverlaure/sicco-web
8e734c9bfa9c99056b6abd5276b65b1e4bf21e23
[ "bzip2-1.0.6" ]
null
null
null
src/appointments_has_payment/migrations/0001_initial.py
TheCleverlaure/sicco-web
8e734c9bfa9c99056b6abd5276b65b1e4bf21e23
[ "bzip2-1.0.6" ]
null
null
null
src/appointments_has_payment/migrations/0001_initial.py
TheCleverlaure/sicco-web
8e734c9bfa9c99056b6abd5276b65b1e4bf21e23
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.2.2 on 2019-12-26 03:31 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('appointments', '0001_initial'), ] operations = [ migrations.CreateModel( na...
25.444444
175
0.580786
70
687
5.571429
0.642857
0.061538
0.071795
0.112821
0
0
0
0
0
0
0
0.039419
0.298399
687
26
176
26.423077
0.76971
0.065502
0
0
1
0
0.157813
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e2a033cd806aa9352d0b43321894ec541d9fc3a8
2,264
py
Python
codigos100/importaModulos.py
rosacarla/100-days-of-python-code
3db9e35f861ce933e952cff2dd3a505dfce1b440
[ "MIT" ]
1
2021-09-26T09:17:36.000Z
2021-09-26T09:17:36.000Z
codigos100/importaModulos.py
rosacarla/100-days-of-python-code
3db9e35f861ce933e952cff2dd3a505dfce1b440
[ "MIT" ]
null
null
null
codigos100/importaModulos.py
rosacarla/100-days-of-python-code
3db9e35f861ce933e952cff2dd3a505dfce1b440
[ "MIT" ]
null
null
null
# Codigo: Importa Modulos # Autora: Carla Edila Silveira # Finalidade: definir funcoes - curso Python Quick Start # Data: 21/09/2021 # MODULO calendario do Python import calendar # importa modulo de calendario cal = calendar.month(2021, 9) # variavel recebe dados do calendario desejado print(cal) # imprime o cale...
43.538462
111
0.728357
350
2,264
4.711429
0.522857
0.019406
0.01698
0.015767
0.024257
0
0
0
0
0
0
0.020419
0.178004
2,264
51
112
44.392157
0.865664
0.602915
0
0
0
0
0.410405
0
0
0
0
0
0
1
0
false
0
0.15
0
0.15
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2a035bc77e1b89c5aef8a210f2601d3543648c1
11,873
py
Python
mindspore/train/quant/quant.py
ZephyrChenzf/mindspore
8f191847cf71e12715ced96bc3575914f980127a
[ "Apache-2.0" ]
7
2020-05-24T03:19:26.000Z
2020-05-24T03:20:00.000Z
mindspore/train/quant/quant.py
ZephyrChenzf/mindspore
8f191847cf71e12715ced96bc3575914f980127a
[ "Apache-2.0" ]
null
null
null
mindspore/train/quant/quant.py
ZephyrChenzf/mindspore
8f191847cf71e12715ced96bc3575914f980127a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
45.144487
117
0.550577
1,214
11,873
5.128501
0.198517
0.036942
0.016704
0.012849
0.31513
0.278831
0.261323
0.254899
0.218599
0.206714
0
0.006165
0.371599
11,873
262
118
45.316794
0.828307
0.164744
0
0.342105
0
0
0.02099
0
0
0
0
0
0
1
0.063158
false
0
0.036842
0
0.168421
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e2a0ada4356b62ee8423668c3f8daf26b572107a
5,992
py
Python
examples/python/plots_boxplots.py
GreatWei/pythonStates
c4a9b326bfa312e2ae44a70f4dfaaf91f2d47a37
[ "BSD-3-Clause" ]
76
2019-12-28T08:37:10.000Z
2022-03-29T02:19:41.000Z
examples/python/plots_boxplots.py
cluterdidiw/statsmodels
543037fa5768be773a3ba31fba06e16a9edea46a
[ "BSD-3-Clause" ]
null
null
null
examples/python/plots_boxplots.py
cluterdidiw/statsmodels
543037fa5768be773a3ba31fba06e16a9edea46a
[ "BSD-3-Clause" ]
35
2020-02-04T14:46:25.000Z
2022-03-24T03:56:17.000Z
# DO NOT EDIT # Autogenerated from the notebook plots_boxplots.ipynb. # Edit the notebook and then sync the output with this file. # # flake8: noqa # DO NOT EDIT #!/usr/bin/env python # coding: utf-8 # # 箱线图 # 以下说明在 statsmodels 中的箱线图的一些选项。包括 `violin_plot` 和 `bean_plot`. import numpy as np import matplotlib.pyplot a...
26.990991
76
0.584112
744
5,992
4.53629
0.229839
0.073481
0.020741
0.033185
0.724741
0.696593
0.652741
0.633185
0.596148
0.568
0
0.033102
0.279039
5,992
221
77
27.113122
0.748148
0.101969
0
0.688742
1
0
0.262921
0.024719
0
0
0
0
0
1
0.006623
false
0
0.039735
0
0.046358
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e2a1277d6d5bab92b42350a997c75399618d77e4
5,736
py
Python
forks/sphinx-git/tests/test_git_commit_detail.py
JakeGWater/Virtual-Production-Independent-Film-Guide
022721f79b5b199f7208340564e9850dc9d97939
[ "MIT" ]
1
2021-06-25T03:15:26.000Z
2021-06-25T03:15:26.000Z
forks/sphinx-git/tests/test_git_commit_detail.py
JakeGWater/Virtual-Production-Independent-Film-Guide
022721f79b5b199f7208340564e9850dc9d97939
[ "MIT" ]
10
2021-04-16T17:45:06.000Z
2021-06-26T20:59:17.000Z
forks/sphinx-git/tests/test_git_commit_detail.py
JakeGWater/Virtual-Production-Independent-Film-Guide
022721f79b5b199f7208340564e9850dc9d97939
[ "MIT" ]
1
2021-04-16T19:48:45.000Z
2021-04-16T19:48:45.000Z
# -*- coding: utf-8 -*- import os from tempfile import mkstemp from bs4 import BeautifulSoup from git import Repo from nose.tools import assert_equal, assert_in, assert_is, assert_is_not from sphinx_git import GitCommitDetail from . import MakeTestableMixin, TempDirTestCase class TestableGitCommitDetail(MakeTestab...
39.558621
78
0.621688
755
5,736
4.495364
0.153642
0.067767
0.108427
0.055981
0.647024
0.616676
0.582499
0.558044
0.54891
0.537419
0
0.010715
0.251569
5,736
144
79
39.833333
0.779874
0.040621
0
0.531746
0
0
0.084687
0
0
0
0
0
0.198413
1
0.079365
false
0
0.055556
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e2a14db3105afb36bed7702d139b68659334f92c
5,239
py
Python
czitools/pylibczirw_tools.py
sebi06/czitools
3fed073d5e56db0aaebe87f0e38af80b0724f005
[ "BSD-3-Clause" ]
4
2021-07-26T15:55:14.000Z
2022-01-22T01:43:01.000Z
czitools/pylibczirw_tools.py
sebi06/czitools
3fed073d5e56db0aaebe87f0e38af80b0724f005
[ "BSD-3-Clause" ]
null
null
null
czitools/pylibczirw_tools.py
sebi06/czitools
3fed073d5e56db0aaebe87f0e38af80b0724f005
[ "BSD-3-Clause" ]
1
2021-08-02T10:31:28.000Z
2021-08-02T10:31:28.000Z
# -*- coding: utf-8 -*- ################################################################# # File : pylibczirw_tools.py # Version : 0.0.5 # Author : sebi06 # Date : 18.01.2022 # # Disclaimer: This code is purely experimental. Feel free to # use it at your own risk. # #############################...
36.894366
116
0.584272
696
5,239
4.33046
0.239943
0.086264
0.039814
0.05574
0.628069
0.600199
0.545786
0.529861
0.529861
0.512608
0
0.022336
0.290704
5,239
141
117
37.156028
0.788751
0.194503
0
0.486486
0
0
0.003203
0
0
0
0
0
0
1
0.040541
false
0
0.135135
0
0.216216
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e2a1b463decdcf98f6fdf0ad03f13fe51a68b8aa
1,316
py
Python
tbx/people/migrations/0029_auto_20210728_1109.py
elviva404/wagtail-torchbox
718d9e2c4337073f010296932d369c726a01dbd3
[ "MIT" ]
103
2015-02-24T17:58:21.000Z
2022-03-23T08:08:58.000Z
tbx/people/migrations/0029_auto_20210728_1109.py
elviva404/wagtail-torchbox
718d9e2c4337073f010296932d369c726a01dbd3
[ "MIT" ]
145
2015-01-13T17:13:43.000Z
2022-03-29T12:56:20.000Z
tbx/people/migrations/0029_auto_20210728_1109.py
elviva404/wagtail-torchbox
718d9e2c4337073f010296932d369c726a01dbd3
[ "MIT" ]
57
2015-01-03T12:00:37.000Z
2022-02-09T13:11:30.000Z
# Generated by Django 2.2.17 on 2021-07-28 10:09 from django.db import migrations import wagtail.core.blocks import wagtail.core.fields import wagtail.images.blocks class Migration(migrations.Migration): dependencies = [ ("people", "0028_auto_20210604_1234"), ] operations = [ migrations...
31.333333
153
0.403495
95
1,316
5.526316
0.652632
0.104762
0.097143
0
0
0
0
0
0
0
0
0.050235
0.515957
1,316
41
154
32.097561
0.77394
0.034954
0
0.142857
1
0.028571
0.132492
0.018139
0
0
0
0
0
1
0
false
0
0.114286
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e2a20e7a3ae489800a9c2d7da9dadea501616d50
10,395
py
Python
stage_2.py
prouast/ctc-intake-detection
6dbfb9bbb0bb09980e4530b31742cb0d5357bf08
[ "MIT" ]
null
null
null
stage_2.py
prouast/ctc-intake-detection
6dbfb9bbb0bb09980e4530b31742cb0d5357bf08
[ "MIT" ]
null
null
null
stage_2.py
prouast/ctc-intake-detection
6dbfb9bbb0bb09980e4530b31742cb0d5357bf08
[ "MIT" ]
null
null
null
"""Evaluate exported frame-level probabilities.""" from __future__ import division import argparse import csv import glob import numpy as np import os from scipy.special import softmax import sys CSV_SUFFIX = '*.csv' np.set_printoptions(threshold=sys.maxsize) def import_probs_and_labels(args): """Import probabili...
42.08502
137
0.614334
1,597
10,395
3.780839
0.134627
0.008943
0.033786
0.011924
0.344319
0.227228
0.157337
0.1421
0.137794
0.123054
0
0.020946
0.196248
10,395
246
138
42.256098
0.701735
0.066763
0
0.187793
0
0
0.139441
0.024948
0
0
0
0
0.004695
1
0.023474
false
0
0.046948
0
0.098592
0.197183
0
0
0
null
0
0
0
0
0
0
0
0
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
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
e2a3cfeded807fcc0d7d885eaf030b4b350af9cd
3,775
py
Python
tormentor/backgrounds.py
wsyCUHK/tormentor
683b37fd943368137ddb8fc78f75ab750cf05526
[ "Apache-2.0" ]
2
2021-09-04T14:03:45.000Z
2021-12-16T11:53:40.000Z
tormentor/backgrounds.py
wsyCUHK/tormentor
683b37fd943368137ddb8fc78f75ab750cf05526
[ "Apache-2.0" ]
null
null
null
tormentor/backgrounds.py
wsyCUHK/tormentor
683b37fd943368137ddb8fc78f75ab750cf05526
[ "Apache-2.0" ]
null
null
null
from .util import load_images_as_tensors import torch from diamond_square import functional_diamond_square from .random import Uniform, Bernoulli, Categorical, Constant, Normal from .base_augmentation import DeterministicImageAugmentation class AbstractBackground(DeterministicImageAugmentation): def blend_by_mask...
46.604938
193
0.717086
508
3,775
5.035433
0.222441
0.077404
0.009382
0.035184
0.257623
0.224785
0.194292
0.186083
0.175919
0.140344
0
0.022655
0.169801
3,775
80
194
47.1875
0.793555
0
0
0.145161
0
0
0.020397
0.016689
0
0
0
0
0.016129
1
0.112903
false
0
0.080645
0.048387
0.548387
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
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
e2a4a474063c3d3a0c1955abc43e6bbd6b0f9e4d
5,417
py
Python
src/pyside2_demo/frontend/example01/example01.py
chihyi-liao/pyside2_demo
410bdaf0876897febf4607ff73928c60186c7be1
[ "MIT" ]
null
null
null
src/pyside2_demo/frontend/example01/example01.py
chihyi-liao/pyside2_demo
410bdaf0876897febf4607ff73928c60186c7be1
[ "MIT" ]
null
null
null
src/pyside2_demo/frontend/example01/example01.py
chihyi-liao/pyside2_demo
410bdaf0876897febf4607ff73928c60186c7be1
[ "MIT" ]
null
null
null
from PySide2.QtCore import Slot, Qt, QThreadPool, QCoreApplication, QSize from PySide2.QtGui import QIcon from PySide2.QtWidgets import ( QDialog, QLabel, QLineEdit, QComboBox, QMainWindow, QMessageBox, QWidget, QPushButton, QGridLayout, QDialogButtonBox, QTextEdit, ) from pyside2_demo.utils import get_resourc...
35.874172
86
0.628207
582
5,417
5.647766
0.300687
0.073015
0.021904
0.014603
0.099787
0.024338
0
0
0
0
0
0.021903
0.266753
5,417
150
87
36.113333
0.805639
0.01643
0
0.111111
0
0
0.100395
0.014476
0
0
0
0
0
1
0.079365
false
0.071429
0.039683
0.007937
0.15873
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e2a69d6db231f2abaebeaf32c8c4d4494f27778d
3,329
py
Python
dashboard/dashboard/pinpoint/models/quest/read_value_test.py
tdresser/catapult-csm
8f69b07e80198c1af0d5bd368d8ad8ced968884a
[ "BSD-3-Clause" ]
4
2017-12-29T03:17:40.000Z
2021-07-04T03:28:11.000Z
dashboard/dashboard/pinpoint/models/quest/read_value_test.py
tdresser/catapult-csm
8f69b07e80198c1af0d5bd368d8ad8ced968884a
[ "BSD-3-Clause" ]
1
2021-02-23T22:37:30.000Z
2021-02-23T22:37:30.000Z
dashboard/dashboard/pinpoint/models/quest/read_value_test.py
tdresser/catapult-csm
8f69b07e80198c1af0d5bd368d8ad8ced968884a
[ "BSD-3-Clause" ]
6
2017-12-05T07:15:08.000Z
2021-07-04T03:28:13.000Z
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import unittest import mock from dashboard.pinpoint.models.quest import read_value @mock.patch('dashboard.services.isolate_service.Retrieve')...
32.320388
77
0.599279
355
3,329
5.532394
0.276056
0.068737
0.08554
0.106925
0.775458
0.761202
0.760692
0.760692
0.760692
0.760692
0
0.020567
0.225894
3,329
102
78
32.637255
0.74156
0.046561
0
0.649351
0
0
0.201577
0.059937
0
0
0
0
0.168831
1
0.064935
false
0
0.051948
0
0.12987
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
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