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
c9e26471f0082a513527f3277f57b9425e4cd143
1,888
py
Python
credentials.py
Calebu6214/Password-locker
55a074c45870b57ab5fb810643696e146ae9c875
[ "MIT" ]
null
null
null
credentials.py
Calebu6214/Password-locker
55a074c45870b57ab5fb810643696e146ae9c875
[ "MIT" ]
null
null
null
credentials.py
Calebu6214/Password-locker
55a074c45870b57ab5fb810643696e146ae9c875
[ "MIT" ]
null
null
null
import pyperclip class Cred: """ class that generates new instances of credentials """ cred_list = [] # Empty cred list # Init method up here def __init__(self,credname,userlogin_name,password): # docstring removed for simplicity self.credname = credname ...
25.863014
86
0.575742
209
1,888
5.066986
0.330144
0.067989
0.031161
0.030217
0.028329
0
0
0
0
0
0
0
0.361229
1,888
73
87
25.863014
0.878109
0.335275
0
0.137931
1
0
0
0
0
0
0
0
0
1
0.241379
false
0.068966
0.034483
0
0.482759
0
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
1
0
1
0
0
0
0
0
3
c9fba32fe9fefec72a870367ed7755b24fe851c5
165
py
Python
crondogclient/__main__.py
haunt-digital/Crondog-Client
d65e3db131e49e2026219dcc679e97ff09e88b8b
[ "BSD-4-Clause" ]
null
null
null
crondogclient/__main__.py
haunt-digital/Crondog-Client
d65e3db131e49e2026219dcc679e97ff09e88b8b
[ "BSD-4-Clause" ]
null
null
null
crondogclient/__main__.py
haunt-digital/Crondog-Client
d65e3db131e49e2026219dcc679e97ff09e88b8b
[ "BSD-4-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """bootstrap.__main__: executed when bootstrap directory is called as script.""" __author__ = 'thepearson' from .crondog import main main()
23.571429
80
0.715152
20
165
5.5
0.85
0
0
0
0
0
0
0
0
0
0
0.007042
0.139394
165
7
81
23.571429
0.767606
0.587879
0
0
0
0
0.15873
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
0
0
3
4e42aeb2e5693995d8e4e3eaa7313a78e4af36b5
2,314
py
Python
kube_proxy/datadog_checks/kube_proxy/kube_proxy.py
flowcommerce/integrations-core
c562b0d423ec1a5dd4073b703d6a8d3a9ab23c72
[ "BSD-3-Clause" ]
null
null
null
kube_proxy/datadog_checks/kube_proxy/kube_proxy.py
flowcommerce/integrations-core
c562b0d423ec1a5dd4073b703d6a8d3a9ab23c72
[ "BSD-3-Clause" ]
null
null
null
kube_proxy/datadog_checks/kube_proxy/kube_proxy.py
flowcommerce/integrations-core
c562b0d423ec1a5dd4073b703d6a8d3a9ab23c72
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from datadog_checks.base.checks.openmetrics import OpenMetricsBaseCheck METRICS = { 'process_cpu_seconds_total': 'cpu.time', 'process_resident_memory_bytes': 'mem.resident', 'process_virtual_m...
47.22449
111
0.717373
255
2,314
6.023529
0.34902
0.117188
0.182292
0.14974
0.477865
0.371745
0
0
0
0
0
0.007439
0.18669
2,314
48
112
48.208333
0.808714
0.060933
0
0
0
0
0.61006
0.546377
0
0
0
0
0
1
0.025641
false
0
0.025641
0
0.102564
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
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
4e5e792e9093a8bf849dd2cd41df8bb2091f1bea
116
py
Python
exercicios/exe024/exe024.py
tiagolsouza/exercicios-Curso-em-video-PYTHON
e4e6975fac7e4883aeab58b970c6ca72895564e4
[ "MIT" ]
null
null
null
exercicios/exe024/exe024.py
tiagolsouza/exercicios-Curso-em-video-PYTHON
e4e6975fac7e4883aeab58b970c6ca72895564e4
[ "MIT" ]
null
null
null
exercicios/exe024/exe024.py
tiagolsouza/exercicios-Curso-em-video-PYTHON
e4e6975fac7e4883aeab58b970c6ca72895564e4
[ "MIT" ]
null
null
null
cidade = input('Digite o nome da sua cidade: ') cidade = cidade.upper().strip().split() input('SANTO' in cidade[0])
29
47
0.681034
18
116
4.388889
0.722222
0.303797
0
0
0
0
0
0
0
0
0
0.009901
0.12931
116
3
48
38.666667
0.772277
0
0
0
0
0
0.293103
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
0
0
3
4e63ca7ff20455104399c779fdba1b6629d51482
620
py
Python
tests/source_test.py
sharonandisi/news-api
46a11afb898d7f23e1a4878f43dbaad9fdb95b6e
[ "MIT" ]
null
null
null
tests/source_test.py
sharonandisi/news-api
46a11afb898d7f23e1a4878f43dbaad9fdb95b6e
[ "MIT" ]
null
null
null
tests/source_test.py
sharonandisi/news-api
46a11afb898d7f23e1a4878f43dbaad9fdb95b6e
[ "MIT" ]
null
null
null
import unittest from app.models import Source class sourceTest(unittest.TestCase): """ Test Class to test the behaviour of the Newssource class """ def setUp(self): """ Set up method that will run before every Test """ self.new_source = Source(self,null,"Newsbtc.com","...
34.444444
263
0.68871
87
620
4.873563
0.678161
0.033019
0.061321
0.089623
0
0
0
0
0
0
0
0.080078
0.174194
620
17
264
36.470588
0.748047
0.164516
0
0
0
0.285714
0.433054
0
0
0
0
0
0.142857
1
0.285714
false
0
0.285714
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
1
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
4e64dbb5652361c4a7cb7205e1b85bacc8f6aad6
3,006
py
Python
peer/entity/filters.py
enriquepablo/peer
a690ce45690a66d6ab4d8a223ab4b94f3f4987b8
[ "BSD-2-Clause-FreeBSD" ]
5
2015-06-14T12:49:45.000Z
2018-06-26T08:21:17.000Z
peer/entity/filters.py
enriquepablo/peer
a690ce45690a66d6ab4d8a223ab4b94f3f4987b8
[ "BSD-2-Clause-FreeBSD" ]
52
2015-06-09T10:28:54.000Z
2018-06-03T16:13:01.000Z
peer/entity/filters.py
enriquepablo/peer
a690ce45690a66d6ab4d8a223ab4b94f3f4987b8
[ "BSD-2-Clause-FreeBSD" ]
4
2015-07-12T10:12:40.000Z
2019-04-24T08:14:33.000Z
# Copyright 2011 Terena. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the fol...
34.551724
78
0.706587
401
3,006
5.214464
0.426434
0.040172
0.045911
0.021999
0.109039
0.065041
0.065041
0.065041
0.065041
0.065041
0
0.004281
0.222888
3,006
86
79
34.953488
0.890839
0.495343
0
0.105263
0
0
0.056414
0
0
0
0
0
0
1
0.236842
false
0
0.078947
0.105263
0.605263
0
0
0
0
null
0
0
0
0
0
0
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
3
4e65c7753b6d4a050f77031b4f9bb283fba21347
142
py
Python
chiadoge/util/default_root.py
Jsewill/chiadogecoin
55511228301a0b4d00c8f4da270be8b434777470
[ "Apache-2.0" ]
2
2021-07-05T14:34:35.000Z
2022-01-01T21:27:52.000Z
chiadoge/util/default_root.py
Jsewill/chiadogecoin
55511228301a0b4d00c8f4da270be8b434777470
[ "Apache-2.0" ]
null
null
null
chiadoge/util/default_root.py
Jsewill/chiadogecoin
55511228301a0b4d00c8f4da270be8b434777470
[ "Apache-2.0" ]
1
2021-07-07T11:08:36.000Z
2021-07-07T11:08:36.000Z
import os from pathlib import Path DEFAULT_ROOT_PATH = Path(os.path.expanduser(os.getenv("CHIADOGE_ROOT", "~/.chiadoge/mainnet"))).resolve()
28.4
105
0.767606
20
142
5.3
0.6
0
0
0
0
0
0
0
0
0
0
0
0.077465
142
4
106
35.5
0.80916
0
0
0
0
0
0.225352
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
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
0
0
0
3
4ebbaf0da0ccc35f2cb860112c665fa78bd729dc
153
py
Python
moto/cloudwatch/urls.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
5,460
2015-01-01T01:11:17.000Z
2022-03-31T23:45:38.000Z
moto/cloudwatch/urls.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
4,475
2015-01-05T19:37:30.000Z
2022-03-31T13:55:12.000Z
moto/cloudwatch/urls.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
1,831
2015-01-14T00:00:44.000Z
2022-03-31T20:30:04.000Z
from .responses import CloudWatchResponse url_bases = [r"https?://monitoring\.(.+)\.amazonaws.com"] url_paths = {"{0}/$": CloudWatchResponse.dispatch}
25.5
57
0.718954
16
153
6.75
0.875
0
0
0
0
0
0
0
0
0
0
0.007143
0.084967
153
5
58
30.6
0.764286
0
0
0
0
0
0.294118
0.261438
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
0
0
3
4ed5668fd55b5fe2688c8508e52606a7424cd0ea
1,735
py
Python
qiskit/test/mock/backends/__init__.py
ashsaki/qiskit-terra
68b5ede97b6bf5454250927fb522be217f3f3b7e
[ "Apache-2.0" ]
null
null
null
qiskit/test/mock/backends/__init__.py
ashsaki/qiskit-terra
68b5ede97b6bf5454250927fb522be217f3f3b7e
[ "Apache-2.0" ]
null
null
null
qiskit/test/mock/backends/__init__.py
ashsaki/qiskit-terra
68b5ede97b6bf5454250927fb522be217f3f3b7e
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
32.735849
77
0.822478
228
1,735
6.258772
0.578947
0.016819
0.014015
0
0
0
0
0
0
0
0
0.005333
0.135447
1,735
52
78
33.365385
0.946
0.286455
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
4ed58ac1887d1c7c9b8ead298f4c57da949fd2de
94
py
Python
book_shelf/apps.py
0Jihad/uqhs
16e16742022142d47d0a423aa27ca50fe706a06b
[ "MIT" ]
3
2020-06-16T20:03:31.000Z
2021-01-17T20:45:51.000Z
book_shelf/apps.py
maks-nurgazy/library_management
9adbe1a5d87596580582f15807c5c3b779f2e0f0
[ "MIT" ]
11
2019-10-13T11:05:26.000Z
2022-03-11T23:48:57.000Z
book_shelf/apps.py
0Jihad/uqhs
16e16742022142d47d0a423aa27ca50fe706a06b
[ "MIT" ]
null
null
null
from django.apps import AppConfig class BookShelfConfig(AppConfig): name = 'book_shelf'
15.666667
33
0.765957
11
94
6.454545
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.159574
94
5
34
18.8
0.898734
0
0
0
0
0
0.106383
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
0
0
0
3
14c1bac25dc7c1d9868ea2e5577e1c32b3f62f69
112
py
Python
5. repeticoes/exemplo_2.py
lusmoura/Python-workshop
41a0f82e964a0a77a95d558806e7200dc3fab052
[ "MIT" ]
1
2021-11-10T18:33:48.000Z
2021-11-10T18:33:48.000Z
5. repeticoes/exemplo_2.py
lusmoura/Python-workshop
41a0f82e964a0a77a95d558806e7200dc3fab052
[ "MIT" ]
null
null
null
5. repeticoes/exemplo_2.py
lusmoura/Python-workshop
41a0f82e964a0a77a95d558806e7200dc3fab052
[ "MIT" ]
null
null
null
soma = 0 for num in range(0, 10): soma += num print('Soma atual: ', soma) print('Soma final: ', soma)
14
31
0.571429
18
112
3.555556
0.555556
0.28125
0
0
0
0
0
0
0
0
0
0.048193
0.258929
112
7
32
16
0.722892
0
0
0
0
0
0.214286
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
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
0
0
0
0
0
0
0
3
14d4b5a16bb6bc3058fe7cfcd63d8b7dbd8242b4
198
py
Python
foodme_eval/__version__.py
CVUA-RRW/foodme_eval
c9762c497f1bd41d4f9ccda1977a2c72e8817472
[ "BSD-3-Clause" ]
null
null
null
foodme_eval/__version__.py
CVUA-RRW/foodme_eval
c9762c497f1bd41d4f9ccda1977a2c72e8817472
[ "BSD-3-Clause" ]
null
null
null
foodme_eval/__version__.py
CVUA-RRW/foodme_eval
c9762c497f1bd41d4f9ccda1977a2c72e8817472
[ "BSD-3-Clause" ]
null
null
null
__version__ = "0.7" __title__ = "foodme_eval" __description__ = "Run evaluation from FooDMe" __author__ = "Gregoire Denay" __author_email__ = 'gregoire.denay@cvua-rrw.de' __licence__ = 'BSD License'
33
47
0.772727
24
198
5.291667
0.833333
0.204724
0
0
0
0
0
0
0
0
0
0.011364
0.111111
198
6
48
33
0.710227
0
0
0
0
0
0.457286
0.130653
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
0
0
3
14e6bb1bde53f4a8790c93bb84306073512d76a4
309
py
Python
facebook_problems/problem_34.py
loftwah/Daily-Coding-Problem
0327f0b4f69ef419436846c831110795c7a3c1fe
[ "MIT" ]
129
2018-10-14T17:52:29.000Z
2022-01-29T15:45:57.000Z
facebook_problems/problem_34.py
loftwah/Daily-Coding-Problem
0327f0b4f69ef419436846c831110795c7a3c1fe
[ "MIT" ]
2
2019-11-30T23:28:23.000Z
2020-01-03T16:30:32.000Z
facebook_problems/problem_34.py
loftwah/Daily-Coding-Problem
0327f0b4f69ef419436846c831110795c7a3c1fe
[ "MIT" ]
60
2019-02-21T09:18:31.000Z
2022-03-25T21:01:04.000Z
"""This problem was asked by Facebook. Given a string consisting of parentheses, single digits, and positive and negative signs, convert the string into a mathematical expression to obtain the answer. Don't use eval or a similar built-in parser. For example, given '-1 + (2 + 3)', you should return 4. """
34.333333
90
0.747573
50
309
4.62
0.88
0
0
0
0
0
0
0
0
0
0
0.015686
0.174757
309
9
91
34.333333
0.890196
0.977346
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
14eb60199bed0eabaa778cba6c9eee9e2d650981
62
py
Python
Lista03/ex002.py
Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110
f306c8dc6385ee8c9580e687afa16a49ace68f95
[ "MIT" ]
2
2021-09-05T22:29:33.000Z
2021-09-09T00:13:16.000Z
Lista03/ex002.py
Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110
f306c8dc6385ee8c9580e687afa16a49ace68f95
[ "MIT" ]
null
null
null
Lista03/ex002.py
Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110
f306c8dc6385ee8c9580e687afa16a49ace68f95
[ "MIT" ]
null
null
null
for i in range(100, 200): if i % 2 == 1: print(i)
15.5
25
0.451613
12
62
2.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0.210526
0.387097
62
3
26
20.666667
0.526316
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
14f755c9cf716fee573541a2b39aded326b146fb
197
py
Python
paymill/models/paymill_list.py
cruncher/pymill
dc4213f75a0581414d063f729edb91f6308dca84
[ "MIT" ]
null
null
null
paymill/models/paymill_list.py
cruncher/pymill
dc4213f75a0581414d063f729edb91f6308dca84
[ "MIT" ]
null
null
null
paymill/models/paymill_list.py
cruncher/pymill
dc4213f75a0581414d063f729edb91f6308dca84
[ "MIT" ]
null
null
null
# coding=utf-8 __author__ = 'yalnazov' from jsonobject import * class PaymillList(JsonObject): data = ListProperty() mode = StringProperty() data_count = StringProperty()
19.7
37
0.670051
18
197
7.055556
0.833333
0
0
0
0
0
0
0
0
0
0
0.006623
0.233503
197
9
38
21.888889
0.834437
0.060914
0
0
0
0
0.043716
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.833333
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
0
0
1
0
0
3
0923f2af3acfdf1cd4491c0d09995ebdd2c3f2a3
101
py
Python
times_test.py
dan-simon/mini_parse
b7662de7704f5596b0f4ab32a2c44b79cf9c75d5
[ "MIT" ]
1
2020-03-26T08:09:44.000Z
2020-03-26T08:09:44.000Z
times_test.py
dan-simon/mini_parse
b7662de7704f5596b0f4ab32a2c44b79cf9c75d5
[ "MIT" ]
null
null
null
times_test.py
dan-simon/mini_parse
b7662de7704f5596b0f4ab32a2c44b79cf9c75d5
[ "MIT" ]
null
null
null
import mini_parse as mp parser = mp.Grammar(mp.string_grammar) parser.main = mp.one_char().times()
16.833333
38
0.752475
17
101
4.294118
0.705882
0
0
0
0
0
0
0
0
0
0
0
0.118812
101
5
39
20.2
0.820225
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
0
0
3
0942bc014d39e8ae81880084098a57617c4d7825
524
py
Python
packages/mccomponents/python/mccomponents/sample/AbstractSQE.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
5
2017-01-16T03:59:47.000Z
2020-06-23T02:54:19.000Z
packages/mccomponents/python/mccomponents/sample/AbstractSQE.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
293
2015-10-29T17:45:52.000Z
2022-01-07T16:31:09.000Z
packages/mccomponents/python/mccomponents/sample/AbstractSQE.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
1
2019-05-25T00:53:31.000Z
2019-05-25T00:53:31.000Z
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Jiao Lin # California Institute of Technology # (C) 2007 All Rights Reserved # # {LicenseText} # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
20.96
80
0.366412
34
524
5.529412
0.852941
0.053191
0
0
0
0
0
0
0
0
0
0.010499
0.272901
524
24
81
21.833333
0.48294
0.730916
0
0
0
0
0.032
0
0
0
0
0
0
1
0.25
false
0.25
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
117cd955918aaa07c550956fd54c5ae7733d89d8
1,411
py
Python
main/jobs/driver.py
jjcfrank/football-data
2a0dabcd37ddeaf1171bf88ccdd2344debe3207a
[ "MIT" ]
null
null
null
main/jobs/driver.py
jjcfrank/football-data
2a0dabcd37ddeaf1171bf88ccdd2344debe3207a
[ "MIT" ]
null
null
null
main/jobs/driver.py
jjcfrank/football-data
2a0dabcd37ddeaf1171bf88ccdd2344debe3207a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import logging import json, os, re, sys from typing import Callable, Optional from pandas import DataFrame from requests import get project_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) LOG_FILE = f"{project_dir}/logs/job-{os.path.basename(__file__)}.log" LOG_FORMAT = f"%(ascti...
32.813953
101
0.748405
207
1,411
4.821256
0.352657
0.072144
0.09018
0.125251
0.237475
0.175351
0.142285
0.1002
0.1002
0
0
0.012029
0.11623
1,411
43
102
32.813953
0.788292
0.082211
0
0
0
0.038462
0.119195
0.04257
0
0
0
0
0
1
0.230769
false
0
0.230769
0.192308
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
1
0
0
0
1
1
0
0
3
1192d17e1743c5ba39eb8fd7b9697921b6991d9a
1,327
py
Python
vizier/_src/benchmarks/experimenters/experimenter.py
google/vizier
12b64ce191410e1c3a79a98472a1b17811290ed3
[ "Apache-2.0" ]
15
2022-03-03T21:05:47.000Z
2022-03-30T17:17:51.000Z
vizier/_src/benchmarks/experimenters/experimenter.py
google/vizier
12b64ce191410e1c3a79a98472a1b17811290ed3
[ "Apache-2.0" ]
null
null
null
vizier/_src/benchmarks/experimenters/experimenter.py
google/vizier
12b64ce191410e1c3a79a98472a1b17811290ed3
[ "Apache-2.0" ]
null
null
null
"""Experimenter base class for problem statement and evaluation. Experimenters represent black-box optimization problems. Each experimenter defines a ProblemStatement, representing the search space and the metrics it returns in Evaluate (via CompletedTrials). Pseudo-code for using Experimenters with Vizier Designers:...
29.488889
79
0.75584
152
1,327
6.559211
0.539474
0.080241
0.024072
0
0
0
0
0
0
0
0
0.00271
0.165787
1,327
44
80
30.159091
0.897922
0.695554
0
0.363636
0
0
0
0
0
0
0
0.022727
0
1
0.181818
false
0.181818
0.272727
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
0
0
1
0
0
3
11fbefa137e16aa5a2469761c6a9ea33375097d0
981
py
Python
tests/resources/test_package/test_module.py
bfolie/derp
2f69f9f2d867988d4433221b24e1fa5c0b4f3bcc
[ "MIT" ]
1
2021-05-27T21:30:10.000Z
2021-05-27T21:30:10.000Z
tests/resources/test_package/test_module.py
bfolie/derp
2f69f9f2d867988d4433221b24e1fa5c0b4f3bcc
[ "MIT" ]
1
2021-07-13T23:48:22.000Z
2021-07-13T23:48:22.000Z
tests/resources/test_package/test_module.py
bfolie/derp
2f69f9f2d867988d4433221b24e1fa5c0b4f3bcc
[ "MIT" ]
null
null
null
"""A dummy module for testing the application""" from deprecation import deprecated @deprecated(deprecated_in="0.12.3", removed_in="1.0.0") class OlderDeprecatedClass: def __init__(self, name: str): self.name = name @deprecated(deprecated_in="1.2.3", removed_in="2.0.0") class NewerDeprecatedClass: ...
20.87234
62
0.594292
139
981
4.021583
0.316547
0.053667
0.157424
0.123435
0
0
0
0
0
0
0
0.047222
0.266055
981
46
63
21.326087
0.729167
0.042813
0
0
0
0
0.049303
0
0
0
0
0
0
1
0.310345
false
0
0.034483
0.103448
0.551724
0.068966
0
0
0
null
0
0
0
0
0
0
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
3
ee9761039a17fbbef6c6478316a2daff1bbf5e83
376
py
Python
weconnect/elements/control_operation.py
gordoncrossley/WeConnect-python
49456fa4b677f1d25af55d59c255fc9b32dcc3b5
[ "MIT" ]
22
2021-08-06T21:01:11.000Z
2022-03-21T14:54:25.000Z
weconnect/elements/control_operation.py
gordoncrossley/WeConnect-python
49456fa4b677f1d25af55d59c255fc9b32dcc3b5
[ "MIT" ]
30
2021-06-20T21:11:26.000Z
2022-03-22T21:11:04.000Z
weconnect/elements/control_operation.py
gordoncrossley/WeConnect-python
49456fa4b677f1d25af55d59c255fc9b32dcc3b5
[ "MIT" ]
8
2021-08-06T21:01:29.000Z
2022-02-02T21:32:14.000Z
from enum import Enum class ControlInputEnum(Enum): @classmethod def allowedValues(cls): return [] class ControlOperation(ControlInputEnum): START = 'start' STOP = 'stop' NONE = 'none' SETTINGS = 'settings' UNKNOWN = 'unknown' @classmethod def allowedValues(cls): ...
18.8
62
0.662234
34
376
7.323529
0.470588
0.11245
0.216867
0.240964
0.289157
0
0
0
0
0
0
0
0.242021
376
19
63
19.789474
0.873684
0
0
0.285714
0
0
0.074468
0
0
0
0
0
0
1
0.142857
false
0
0.071429
0.142857
0.857143
0
0
0
0
null
0
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
0
0
0
0
1
0
0
0
3
eea585f70c702aabda85674ee6b5008cb530c7af
1,064
py
Python
src/mailguard/registration/migrations/0001_initial.py
derMonarch/mailguard
8fdfe756ea9dbe4b2ef044b12fd133d24893415a
[ "Apache-2.0" ]
2
2021-08-05T17:31:47.000Z
2021-08-19T19:36:38.000Z
src/mailguard/registration/migrations/0001_initial.py
derMonarch/mailguard
8fdfe756ea9dbe4b2ef044b12fd133d24893415a
[ "Apache-2.0" ]
null
null
null
src/mailguard/registration/migrations/0001_initial.py
derMonarch/mailguard
8fdfe756ea9dbe4b2ef044b12fd133d24893415a
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-15 14:35 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="AccountModel", fields=[ ( "i...
28.756757
67
0.460526
87
1,064
5.494253
0.574713
0.188285
0.225941
0.301255
0.334728
0
0
0
0
0
0
0.050737
0.425752
1,064
36
68
29.555556
0.731588
0.042293
0
0.103448
1
0
0.075713
0
0
0
0
0
0
1
0
false
0.034483
0.034483
0
0.172414
0
0
0
0
null
0
1
1
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
3
eebdb0942b877e580cb12aa0693147e0d81b42dd
9,452
py
Python
swagger_client/models/user.py
chbndrhnns/finapi-client
259beda8b05e912c49d2dc4c3ed71205134e5d8a
[ "MIT" ]
2
2019-04-15T05:58:21.000Z
2021-11-15T18:26:37.000Z
swagger_client/models/user.py
chbndrhnns/finapi-client
259beda8b05e912c49d2dc4c3ed71205134e5d8a
[ "MIT" ]
1
2021-06-18T09:46:25.000Z
2021-06-18T20:12:41.000Z
swagger_client/models/user.py
chbndrhnns/finapi-client
259beda8b05e912c49d2dc4c3ed71205134e5d8a
[ "MIT" ]
2
2019-07-08T13:41:09.000Z
2020-12-07T12:10:04.000Z
# coding: utf-8 """ finAPI RESTful Services finAPI RESTful Services # noqa: E501 OpenAPI spec version: v1.42.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class User(object): """NOTE: This class is auto generated...
41.095652
1,411
0.64251
1,324
9,452
4.5
0.174471
0.041625
0.040282
0.06378
0.688654
0.666331
0.640651
0.580732
0.544478
0.499161
0
0.017029
0.279306
9,452
229
1,412
41.275109
0.857604
0.566547
0
0.071429
1
0
0.092472
0.020451
0
0
0
0
0
1
0.163265
false
0.122449
0.030612
0
0.336735
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
eebfb26ee4e7c5a9ffaffebdfae755ef83307281
2,586
py
Python
work_and_power.py
JFlommersfeld/Actomyosin-contractions-in-soft-pillar-rings
0f8e9375f53da432a9cc54a208e5655bc80f9f45
[ "MIT" ]
null
null
null
work_and_power.py
JFlommersfeld/Actomyosin-contractions-in-soft-pillar-rings
0f8e9375f53da432a9cc54a208e5655bc80f9f45
[ "MIT" ]
null
null
null
work_and_power.py
JFlommersfeld/Actomyosin-contractions-in-soft-pillar-rings
0f8e9375f53da432a9cc54a208e5655bc80f9f45
[ "MIT" ]
null
null
null
import numpy as np from math import pi def transmitted_power(displacements, velocities, model): """Calculates the power that is transmitted to the pillars Parameters: displacements (numpy.array(float)): list of the displacements of the pillar tip. velocities (numpy.array(float)): ...
31.156627
95
0.639985
327
2,586
5
0.204893
0.036697
0.073395
0.092966
0.785321
0.726606
0.726606
0.601835
0.601835
0.601835
0
0.005946
0.284609
2,586
82
96
31.536585
0.877838
0.584687
0
0.5
0
0
0.008999
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.416667
0
0
0
0
null
0
0
0
0
1
1
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
3
eed8d64038eae49bd34e4b80ca09163808752696
374
py
Python
dtos/filter_info.py
thanhledev/crm-dtos
9040ee31ef81d70efeb463cf001777211fb3986c
[ "MIT" ]
null
null
null
dtos/filter_info.py
thanhledev/crm-dtos
9040ee31ef81d70efeb463cf001777211fb3986c
[ "MIT" ]
null
null
null
dtos/filter_info.py
thanhledev/crm-dtos
9040ee31ef81d70efeb463cf001777211fb3986c
[ "MIT" ]
1
2021-02-11T13:24:29.000Z
2021-02-11T13:24:29.000Z
from typing import List, Dict class FilterInfo(object): """ Filter criterion used to provide extra information of prometheus queries """ def __init__(self, category: str, criteria: List[Dict[str, str]]): self.category = category self.criteria = criteria def __str__(self): ...
26.714286
76
0.657754
43
374
5.534884
0.604651
0.151261
0.168067
0
0
0
0
0
0
0
0
0
0.229947
374
13
77
28.769231
0.826389
0.192513
0
0
0
0
0.024476
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.142857
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
1
1
0
0
3
eed962a2897fedbdb49739258e26a0b7d012cd55
18,191
py
Python
project/tests/test_calendars/test_views.py
dnmac/django-rest-calendar-djoser
fccaf900577264d96168d09eb5dae4b47b67c5ff
[ "MIT" ]
null
null
null
project/tests/test_calendars/test_views.py
dnmac/django-rest-calendar-djoser
fccaf900577264d96168d09eb5dae4b47b67c5ff
[ "MIT" ]
null
null
null
project/tests/test_calendars/test_views.py
dnmac/django-rest-calendar-djoser
fccaf900577264d96168d09eb5dae4b47b67c5ff
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from pprint import pprint import pytest from django.contrib.auth import get_user_model from django.urls import reverse from django.contrib.contenttypes.models import ContentType from calendars.models import Calendar, CurrentWeek, CurrentWeekEvent from rest_framework.test import ...
39.892544
88
0.614919
1,996
18,191
5.408317
0.096693
0.045391
0.041686
0.042798
0.751644
0.724317
0.713756
0.698379
0.685966
0.67346
0
0.013021
0.286515
18,191
455
89
39.98022
0.818707
0.068935
0
0.660661
0
0
0.063135
0.005231
0
0
0
0
0.102102
1
0.147147
false
0.033033
0.036036
0
0.279279
0.042042
0
0
0
null
0
0
0
0
1
1
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
3
eedda56a38e1cfec32a1292f207f3d28fdabeb87
9,485
py
Python
panda_autograsp/nodes/moveit_random_planner_client.py
rickstaa/panda-autograsp
bfa1952ad8d0be86b554d8afdddd6aaa6d22040c
[ "MIT" ]
7
2020-12-02T04:09:35.000Z
2022-03-11T06:24:49.000Z
panda_autograsp/nodes/moveit_random_planner_client.py
rickstaa/panda_autograsp
bfa1952ad8d0be86b554d8afdddd6aaa6d22040c
[ "MIT" ]
84
2019-07-04T20:49:46.000Z
2020-11-24T12:08:46.000Z
panda_autograsp/nodes/moveit_random_planner_client.py
rickstaa/panda_autograsp
bfa1952ad8d0be86b554d8afdddd6aaa6d22040c
[ "MIT" ]
2
2020-11-25T14:38:58.000Z
2022-01-24T15:41:32.000Z
#!/usr/bin/env python """This ros node can be used to test out the different random planner services present in the :py:mod:`moveit_random_planner_client.py`. """ # Make script both python2 and python3 compatible from __future__ import absolute_import from __future__ import division from __future__ import print_funct...
37.490119
88
0.502267
904
9,485
5.035398
0.149336
0.051406
0.066784
0.045475
0.752197
0.717267
0.708699
0.675527
0.611599
0.611599
0
0.002003
0.368477
9,485
252
89
37.638889
0.75793
0.080337
0
0.532995
0
0
0.275103
0.072291
0
0
0
0
0
1
0
false
0.005076
0.035533
0
0.035533
0.010152
0
0
0
null
0
0
0
0
1
1
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
3
eee38c50e842ba4cd975196a5b5be14e4308b900
27
py
Python
settings/app.py
akarapun/elearning
fe116d5815925269819061ea183cbfdb773844cf
[ "MIT" ]
1
2020-03-14T11:00:14.000Z
2020-03-14T11:00:14.000Z
settings/app.py
akarapun/elearning
fe116d5815925269819061ea183cbfdb773844cf
[ "MIT" ]
null
null
null
settings/app.py
akarapun/elearning
fe116d5815925269819061ea183cbfdb773844cf
[ "MIT" ]
null
null
null
ENCODE_SECRET = 'D_m@xtRix'
27
27
0.777778
5
27
3.8
1
0
0
0
0
0
0
0
0
0
0
0
0.074074
27
1
27
27
0.76
0
0
0
0
0
0.321429
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
eef0e82e01a793fa978f69840b236715dae6a14f
218
wsgi
Python
app.wsgi
devqueue/CGMdashwebapp
2c1f81e43edba9d4a055902541bbef5b7708757c
[ "Apache-2.0" ]
null
null
null
app.wsgi
devqueue/CGMdashwebapp
2c1f81e43edba9d4a055902541bbef5b7708757c
[ "Apache-2.0" ]
null
null
null
app.wsgi
devqueue/CGMdashwebapp
2c1f81e43edba9d4a055902541bbef5b7708757c
[ "Apache-2.0" ]
null
null
null
import sys sys.path.insert(0, '/var/www/cgmdashboard') activate_this = '/path/to/env/bin/activate_this.py' with open(activate_this) as file_: exec(file_.read(), dict(__file__=activate_this)) from wsgi import app
24.222222
52
0.752294
35
218
4.4
0.685714
0.311688
0
0
0
0
0
0
0
0
0
0.005128
0.105505
218
9
53
24.222222
0.784615
0
0
0
0
0
0.246575
0.246575
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
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
0
0
1
0
0
0
0
3
eef2b25ff5e937f53baf5004811d9160f1764b8e
186
py
Python
Topic_Evaluator/api/models.py
siqueiralex/topic-coherence
c87b8bfcc7afe1ef42bf698494498387249185de
[ "MIT" ]
3
2019-09-16T00:46:39.000Z
2020-03-30T21:23:18.000Z
Topic_Evaluator/api/models.py
siqueiralex/topic-coherence
c87b8bfcc7afe1ef42bf698494498387249185de
[ "MIT" ]
1
2020-03-26T00:18:32.000Z
2020-03-26T00:18:32.000Z
Topic_Evaluator/api/models.py
siqueiralex/topic-coherence
c87b8bfcc7afe1ef42bf698494498387249185de
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class WordCount(models.Model): word = models.CharField(max_length=100, primary_key=True) count = models.BigIntegerField()
31
61
0.763441
25
186
5.6
0.84
0
0
0
0
0
0
0
0
0
0
0.01875
0.139785
186
6
62
31
0.85625
0.129032
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
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
0
0
1
0
0
3
e110196cc88cdd6e3b97a716e177f3d4b69897e9
90
py
Python
Easy/Simple Array Sum/simpleArraySum.py
Zealll/HackerRank
0f03ba284a699f5f37138e866b348c616d4d101a
[ "MIT" ]
null
null
null
Easy/Simple Array Sum/simpleArraySum.py
Zealll/HackerRank
0f03ba284a699f5f37138e866b348c616d4d101a
[ "MIT" ]
null
null
null
Easy/Simple Array Sum/simpleArraySum.py
Zealll/HackerRank
0f03ba284a699f5f37138e866b348c616d4d101a
[ "MIT" ]
null
null
null
def simpleArraySum(ar): acc = 0 for i in ar: acc += i return acc
15
23
0.488889
13
90
3.384615
0.692308
0.227273
0
0
0
0
0
0
0
0
0
0.019608
0.433333
90
6
24
15
0.843137
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
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
0
0
0
0
0
0
0
3
e119481fe25a4304fb3f0d198af38833398a08bf
18
py
Python
PyTujian/__init__.py
fossabot/tujian_python
468e29e3690c8d3e3bae4a604b3a7087fe162e48
[ "MIT" ]
5
2019-08-23T15:54:58.000Z
2021-06-04T12:13:38.000Z
PyTujian/__init__.py
fossabot/tujian_python
468e29e3690c8d3e3bae4a604b3a7087fe162e48
[ "MIT" ]
1
2022-03-25T12:07:02.000Z
2022-03-25T12:07:02.000Z
PyTujian/__init__.py
fossabot/tujian_python
468e29e3690c8d3e3bae4a604b3a7087fe162e48
[ "MIT" ]
3
2020-03-03T06:59:08.000Z
2022-03-25T12:04:18.000Z
name = 'PyTujian'
9
17
0.666667
2
18
6
1
0
0
0
0
0
0
0
0
0
0
0
0.166667
18
1
18
18
0.8
0
0
0
0
0
0.444444
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
e11a9680b3566df791538f30228c075102ea5187
2,008
py
Python
soap_to_rest/suds_converter.py
smartcitiesdata/soap_to_rest
5160157686306153a07e3b6ad234db01009a2be8
[ "Apache-2.0" ]
null
null
null
soap_to_rest/suds_converter.py
smartcitiesdata/soap_to_rest
5160157686306153a07e3b6ad234db01009a2be8
[ "Apache-2.0" ]
3
2020-08-27T19:28:50.000Z
2020-09-08T17:41:03.000Z
soap_to_rest/suds_converter.py
Datastillery/soap_to_rest
5160157686306153a07e3b6ad234db01009a2be8
[ "Apache-2.0" ]
null
null
null
""" Converter that can take (usually) a suds object and turn it into a serializable dict, array, etc. """ from datetime import datetime from itertools import starmap from suds.sudsobject import asdict as suds_as_dict def to_serializable(value): """ Recursively convert a value returned by a suds client int...
21.361702
70
0.734562
272
2,008
5.007353
0.216912
0.08884
0.051395
0.049927
0.286344
0.21953
0.131424
0.084435
0.058737
0
0
0.001218
0.182271
2,008
93
71
21.591398
0.828258
0.108566
0
0.083333
0
0
0.010777
0
0
0
0
0
0
1
0.291667
false
0
0.0625
0.166667
0.791667
0
0
0
0
null
0
0
0
0
0
0
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
3
e11cbe5f2dce98bb92bf2bd68c654433f806be9c
34,659
py
Python
sdk/python/pulumi_keycloak/get_realm.py
davide-talesco/pulumi-keycloak
08d66be6f2bf578d4292e29eb6181794375bc4e5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_keycloak/get_realm.py
davide-talesco/pulumi-keycloak
08d66be6f2bf578d4292e29eb6181794375bc4e5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_keycloak/get_realm.py
davide-talesco/pulumi-keycloak
08d66be6f2bf578d4292e29eb6181794375bc4e5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
53.321538
1,501
0.737788
4,106
34,659
5.768631
0.059669
0.013426
0.035802
0.067128
0.637972
0.527273
0.391328
0.290129
0.196952
0.130626
0
0.000035
0.179751
34,659
649
1,502
53.403698
0.833128
0.027352
0
0.107011
1
0
0.202759
0.110376
0
0
0
0
0
1
0.105166
false
0.051661
0.012915
0.095941
0.223247
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
e12a9b29437e3dbbc1b31706694ea7afe577122d
465
py
Python
classroom/admin.py
cmagarap/django-digiwiz
96ddfc22fe4c815feec3d75c30576fec5f344154
[ "MIT" ]
5
2019-06-19T03:47:17.000Z
2020-06-11T17:46:50.000Z
classroom/admin.py
seeej/digiwiz
96ddfc22fe4c815feec3d75c30576fec5f344154
[ "MIT" ]
3
2019-05-31T03:31:32.000Z
2019-06-27T11:44:22.000Z
classroom/admin.py
seeej/digiwiz
96ddfc22fe4c815feec3d75c30576fec5f344154
[ "MIT" ]
1
2021-06-04T05:58:15.000Z
2021-06-04T05:58:15.000Z
from django.contrib import admin from .models import * admin.site.register(Answer) admin.site.register(Course) admin.site.register(MyFile) admin.site.register(Lesson) admin.site.register(Question) admin.site.register(Quiz) admin.site.register(StudentAnswer) admin.site.register(Student) admin.site.register(Subject) adm...
25.833333
34
0.823656
64
465
5.984375
0.34375
0.328982
0.62141
0
0
0
0
0
0
0
0
0
0.049462
465
17
35
27.352941
0.866516
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
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
1
0
0
0
0
0
0
3
011b32448f153e26182ad0348facd1b41b71de8b
180
py
Python
online2.py
JackGlowRU/DSOnline
29798828ce587cdd01d0f889a0d5e1d4e99c34ca
[ "Apache-2.0" ]
null
null
null
online2.py
JackGlowRU/DSOnline
29798828ce587cdd01d0f889a0d5e1d4e99c34ca
[ "Apache-2.0" ]
null
null
null
online2.py
JackGlowRU/DSOnline
29798828ce587cdd01d0f889a0d5e1d4e99c34ca
[ "Apache-2.0" ]
null
null
null
import vk import time session = vk.Session(access_token='YOUR_TOKEN') api = vk.API(session) print('Успешный вход!!') while True: api.account.setOnline() time.sleep(300)
20
48
0.711111
27
180
4.703704
0.666667
0
0
0
0
0
0
0
0
0
0
0.019481
0.144444
180
9
49
20
0.798701
0
0
0
0
0
0.145349
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0.125
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
1
0
0
0
0
0
0
0
0
3
011bdd9ca7b56bc19cf8efb8803694fd0a97779b
111
py
Python
rest_project/Product/urls.py
zhumakova/RestProject
485acc233ba7fae804c9b0773687e6aac3d0db32
[ "MIT" ]
1
2021-06-20T11:00:55.000Z
2021-06-20T11:00:55.000Z
rest_project/Product/urls.py
zhumakova/RestProject
485acc233ba7fae804c9b0773687e6aac3d0db32
[ "MIT" ]
null
null
null
rest_project/Product/urls.py
zhumakova/RestProject
485acc233ba7fae804c9b0773687e6aac3d0db32
[ "MIT" ]
null
null
null
from django.urls import path from .views import * urlpatterns=[ path('category/',CategoryView.as_view()) ]
18.5
44
0.72973
14
111
5.714286
0.785714
0
0
0
0
0
0
0
0
0
0
0
0.135135
111
6
45
18.5
0.833333
0
0
0
0
0
0.080357
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
0
0
0
3
012a764a5c0405635189a41a81c1418bc1a4c55b
1,892
py
Python
sentinelone/komand_sentinelone/actions/threats_fetch_file/schema.py
isabella232/insightconnect-plugins
13dafc400dbc21eec84611ec88da09b7535049bc
[ "MIT" ]
null
null
null
sentinelone/komand_sentinelone/actions/threats_fetch_file/schema.py
isabella232/insightconnect-plugins
13dafc400dbc21eec84611ec88da09b7535049bc
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
sentinelone/komand_sentinelone/actions/threats_fetch_file/schema.py
isabella232/insightconnect-plugins
13dafc400dbc21eec84611ec88da09b7535049bc
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Component: DESCRIPTION = "Fetch a file associated with the threat that matches the filter. Your user role must have permissions to Fetch Threat File - Admin, IR Team, SOC" class Input: ID = "id" PASSWORD = "password" class Out...
20.344086
164
0.531184
175
1,892
5.605714
0.434286
0.040775
0.061162
0.038736
0.187564
0.187564
0.187564
0.187564
0.087666
0.087666
0
0.005299
0.301797
1,892
92
165
20.565217
0.73732
0.019556
0
0.35443
1
0.012658
0.745278
0.011333
0
0
0
0
0
1
0.025316
false
0.088608
0.025316
0
0.189873
0
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
1
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
012bd6bb672e2bfa89c5849a31fdba6bd4613e5e
674
py
Python
Vector.py
ChrisAndre/expsin
ab6960c009894989d668d13ab48f2517abf377a7
[ "MIT" ]
null
null
null
Vector.py
ChrisAndre/expsin
ab6960c009894989d668d13ab48f2517abf377a7
[ "MIT" ]
null
null
null
Vector.py
ChrisAndre/expsin
ab6960c009894989d668d13ab48f2517abf377a7
[ "MIT" ]
1
2020-04-10T10:24:01.000Z
2020-04-10T10:24:01.000Z
"""Quick vector operations""" import math def cross(u, v): ux, uy, uz = u vx, vy, vz = v return [uy*vz-vy*uz, uz*vx-vz*ux, ux*vy-vx*uy] def dot(u, v): return sum([ui*vi for ui, vi in zip(u, v)]) def mag(u): return math.sqrt(sum([xi*xi for xi in u])) def sub(u, v): return [ui - vi for ui, vi...
19.257143
50
0.5727
136
674
2.808824
0.323529
0.036649
0.062827
0.070681
0.206806
0.206806
0.206806
0.206806
0.206806
0.206806
0
0.005906
0.246291
674
34
51
19.823529
0.746063
0.066766
0
0
0
0
0
0
0
0
0
0
0
1
0.380952
false
0
0.047619
0.285714
0.809524
0
0
0
0
null
0
0
0
0
0
0
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
3
0135dc0de39b6027ed53ceec16c8bdf4014ceaec
89
py
Python
lib/neptune/dataset/base.py
llhuii/neptune
36ad049bd5fc0d09c33175b7c1821edf7c18c56a
[ "Apache-2.0" ]
16
2021-01-04T08:20:55.000Z
2022-03-10T11:28:57.000Z
lib/neptune/dataset/base.py
llhuii/neptune
36ad049bd5fc0d09c33175b7c1821edf7c18c56a
[ "Apache-2.0" ]
19
2021-01-04T03:52:24.000Z
2021-05-26T02:22:37.000Z
lib/neptune/dataset/base.py
llhuii/neptune
36ad049bd5fc0d09c33175b7c1821edf7c18c56a
[ "Apache-2.0" ]
10
2021-01-04T03:47:58.000Z
2021-06-12T17:00:05.000Z
class Sample: def __init__(self): self.data = None self.label = None
17.8
25
0.573034
11
89
4.272727
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.337079
89
4
26
22.25
0.79661
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
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
1
0
0
0
0
0
0
0
3
014fe3a0f8a0bfe80e8b138a58597bca1bc3c567
2,450
py
Python
src/library/eval_scripts/sys_tools/nedc_text_tools.py
mariganeshkumar/EEG_Seizure
99fb61b7493f50cc022638b5630dba654c1a1137
[ "CC0-1.0" ]
null
null
null
src/library/eval_scripts/sys_tools/nedc_text_tools.py
mariganeshkumar/EEG_Seizure
99fb61b7493f50cc022638b5630dba654c1a1137
[ "CC0-1.0" ]
null
null
null
src/library/eval_scripts/sys_tools/nedc_text_tools.py
mariganeshkumar/EEG_Seizure
99fb61b7493f50cc022638b5630dba654c1a1137
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # file: $nedc_nfc/class/python/nedc_sys_tools/nedc_text_tools.py # # revision history: # 20170716 (JP): Upgraded to using the new annotation tools. # 20170709 (JP): Initial version. # # usage: # import nedc_text_tools as ntt # # This file contains some useful Python functions and classes that ...
29.878049
79
0.509796
258
2,450
4.751938
0.372093
0.02447
0.032626
0.042414
0.429038
0.429038
0.429038
0.429038
0.353997
0.353997
0
0.010135
0.275102
2,450
81
80
30.246914
0.68018
0.805306
0
0.25
0
0
0.007229
0
0
0
0
0
0
1
0.25
false
0
0
0.25
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
015a38397acd5df7b1b8674d0c72e7821bb60bd5
852
py
Python
RLBotPack/BotimusPrime/maneuvers/kit.py
RLMarvin/RLBotPack
c88c4111bf67d324b471ad87ad962e7bc8c2a202
[ "MIT" ]
null
null
null
RLBotPack/BotimusPrime/maneuvers/kit.py
RLMarvin/RLBotPack
c88c4111bf67d324b471ad87ad962e7bc8c2a202
[ "MIT" ]
null
null
null
RLBotPack/BotimusPrime/maneuvers/kit.py
RLMarvin/RLBotPack
c88c4111bf67d324b471ad87ad962e7bc8c2a202
[ "MIT" ]
null
null
null
import math # from rlutilities.mechanics import Dodge, AerialTurn from rlutilities.linear_algebra import vec2, vec3, norm, normalize, look_at, angle_between, clip, cross, dot, sgn, xy, rotation, rotation_to_axis, rotation_to_euler, axis_to_rotation from rlutilities.simulation import Game, Ball, Car, Input, Field, ...
31.555556
183
0.71831
113
852
5.283186
0.539823
0.090452
0.075377
0.063652
0
0
0
0
0
0
0
0.002963
0.207746
852
27
184
31.555556
0.881481
0.059859
0
0.105263
0
0
0
0
0
0
0
0
0
1
0.157895
false
0.105263
0.526316
0
0.736842
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1
0
1
0
0
3
0169b5bde3ccdb9ea537c737c7cf65011087e9db
2,554
py
Python
lm_eval/tasks/hellaswag.py
konstantinschulz/lm-evaluation-harness
b0acb3379d2fa8e15561cea033be422bff144f30
[ "MIT" ]
null
null
null
lm_eval/tasks/hellaswag.py
konstantinschulz/lm-evaluation-harness
b0acb3379d2fa8e15561cea033be422bff144f30
[ "MIT" ]
null
null
null
lm_eval/tasks/hellaswag.py
konstantinschulz/lm-evaluation-harness
b0acb3379d2fa8e15561cea033be422bff144f30
[ "MIT" ]
null
null
null
""" HellaSwag: Can a Machine Really Finish Your Sentence? https://arxiv.org/pdf/1905.07830.pdf Hellaswag is a commonsense inference challenge dataset. Though its questions are trivial for humans (>95% accuracy), state-of-the-art models struggle (<48%). This is achieved via Adversarial Filtering (AF), a data collection...
32.74359
105
0.67776
325
2,554
5.218462
0.495385
0.017689
0.033019
0.030071
0.160377
0.113208
0.051887
0.051887
0
0
0
0.012024
0.218481
2,554
77
106
33.168831
0.837675
0.317541
0
0.106383
0
0.021277
0.25245
0.020749
0
0
0
0
0
1
0.212766
false
0
0.042553
0.148936
0.553191
0
0
0
0
null
0
0
0
0
0
0
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
3
017ec2021063302fb3bc9643521b340dfff6f9d9
1,580
py
Python
s2s/dset/__init__.py
nail1021734/sequence-to-sequence
e591d225a108556de3eb2e4021ea024352b6ec17
[ "Beerware" ]
3
2020-10-07T09:49:30.000Z
2020-11-23T01:45:49.000Z
s2s/dset/__init__.py
nail1021734/sequence-to-sequence
e591d225a108556de3eb2e4021ea024352b6ec17
[ "Beerware" ]
null
null
null
s2s/dset/__init__.py
nail1021734/sequence-to-sequence
e591d225a108556de3eb2e4021ea024352b6ec17
[ "Beerware" ]
10
2020-10-04T17:30:40.000Z
2021-09-13T05:02:27.000Z
from typing import Dict, Type, Union from s2s.dset._arith import ArithDset from s2s.dset._base import BaseDset from s2s.dset._news_summary import NewsSummaryDset from s2s.dset._news_commentary import NewsTranslateDset_zh_en from s2s.dset._news_commentary import NewsTranslateDset_en_zh from s2s.dset._news_commentary im...
39.5
63
0.842405
203
1,580
6.08867
0.123153
0.245955
0.097896
0.109223
0.703884
0.703884
0.398058
0.168285
0.168285
0
0
0.007818
0.109494
1,580
39
64
40.512821
0.870647
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
0184134eada3d92af56c139a6d3c84333ba04839
17,940
py
Python
unbalancedot/entropy.py
thibsej/unbalanced-ot-functionals
bfd098e98ed10b90a36e0dbe7b099c1c31770931
[ "MIT" ]
14
2019-12-04T12:41:12.000Z
2022-03-30T11:37:00.000Z
unbalancedot/entropy.py
thibsej/unbalanced-ot-functionals
bfd098e98ed10b90a36e0dbe7b099c1c31770931
[ "MIT" ]
1
2022-01-14T16:35:18.000Z
2022-01-18T09:15:03.000Z
unbalancedot/entropy.py
thibsej/unbalanced-ot-functionals
bfd098e98ed10b90a36e0dbe7b099c1c31770931
[ "MIT" ]
3
2020-10-09T08:24:22.000Z
2022-02-18T15:48:35.000Z
import torch from .torch_lambertw import log_lambertw from .utils import scal, convolution # TODO: Add multiscale exponential version of the KL projections class Entropy(object): """ Object that defines the required modules for entropy functions. """ def entropy(self, x): """Pointwise entrop...
29.555189
79
0.522575
2,417
17,940
3.769549
0.077782
0.065196
0.062781
0.082099
0.779607
0.745363
0.712106
0.666996
0.66063
0.643947
0
0.013196
0.341026
17,940
606
80
29.60396
0.757486
0.271851
0
0.621451
0
0
0.009629
0
0
0
0
0.00165
0.003155
1
0.198738
false
0
0.009464
0.088328
0.403785
0
0
0
0
null
0
0
0
0
1
1
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
3
0187133b6aca64a7cafd38b2a21ac18af4369b6b
419
py
Python
mmaction/datasets/pipelines/custom_contrastive.py
lambert-x/video_semisup
8ff44343bb34485f8ad08d50ca4d8de22e122c1d
[ "Apache-2.0" ]
null
null
null
mmaction/datasets/pipelines/custom_contrastive.py
lambert-x/video_semisup
8ff44343bb34485f8ad08d50ca4d8de22e122c1d
[ "Apache-2.0" ]
null
null
null
mmaction/datasets/pipelines/custom_contrastive.py
lambert-x/video_semisup
8ff44343bb34485f8ad08d50ca4d8de22e122c1d
[ "Apache-2.0" ]
null
null
null
import io import os import os.path as osp import shutil import warnings import mmcv import numpy as np import torch from mmcv.fileio import FileClient from torch.nn.modules.utils import _pair from ...utils import get_random_string, get_shm_dir, get_thread_id from ..builder import PIPELINES from .loading import RawFra...
20.95
66
0.830549
63
419
5.412698
0.571429
0.046921
0
0
0
0
0
0
0
0
0
0
0.131265
419
19
67
22.052632
0.936813
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
6da8ac8987e259f141df3f682734b55323f0218d
104
py
Python
game_planner_app/apps.py
DinisvCosta/game_planner
80dabea00876ef2b3ae2745a8c506559b628b613
[ "BSD-3-Clause" ]
1
2019-12-03T20:31:10.000Z
2019-12-03T20:31:10.000Z
game_planner_app/apps.py
DinisvCosta/game_planner
80dabea00876ef2b3ae2745a8c506559b628b613
[ "BSD-3-Clause" ]
null
null
null
game_planner_app/apps.py
DinisvCosta/game_planner
80dabea00876ef2b3ae2745a8c506559b628b613
[ "BSD-3-Clause" ]
2
2020-08-23T23:29:18.000Z
2020-09-02T14:25:33.000Z
from django.apps import AppConfig class GamePlannerAppConfig(AppConfig): name = 'game_planner_app'
20.8
38
0.798077
12
104
6.75
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.134615
104
4
39
26
0.9
0
0
0
0
0
0.153846
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
0
0
0
3
6dbc6f63ac5254095c6598f7b24aa514d6998b01
28,889
py
Python
python/pksploit.py
felix3008/PkSploit
8c9ba99abb7018dfde181bdd1257941da2c41cd8
[ "MIT" ]
16
2017-09-28T23:06:04.000Z
2021-07-16T20:23:08.000Z
python/pksploit.py
felix3008/PkSploit
8c9ba99abb7018dfde181bdd1257941da2c41cd8
[ "MIT" ]
4
2018-03-20T22:37:56.000Z
2021-12-26T17:35:07.000Z
python/pksploit.py
felix3008/PkSploit
8c9ba99abb7018dfde181bdd1257941da2c41cd8
[ "MIT" ]
1
2018-02-09T05:39:03.000Z
2018-02-09T05:39:03.000Z
#!python2 import os import sys if (sys.version_info > (3, 0)): print("This script is for Python 2.x only. Sorry about that :/") exit(1) import serial import threading import time import Tkinter, tkFileDialog import constants #Let's define some stuff ser = serial.Serial() ser.baudrate = 28800 ser.port = cons...
39.682692
2,589
0.596732
3,903
28,889
4.40661
0.14886
0.057678
0.069772
0.070702
0.631316
0.581662
0.556195
0.528054
0.508925
0.490087
0
0.174419
0.261726
28,889
727
2,590
39.737276
0.631986
0.321956
0
0.472381
0
0.001905
0.158154
0.001387
0
1
0.049121
0.001376
0
0
null
null
0
0.013333
null
null
0.152381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
3
6dc5a630987befbc3d899448005d3121c9d1275d
451
py
Python
pyot/docs/utils.py
FabrizioCoder/Pyot
2ca5114e97fa9785b030c60892838f3605664c21
[ "MIT" ]
1
2022-02-04T03:12:09.000Z
2022-02-04T03:12:09.000Z
pyot/docs/utils.py
FabrizioCoder/Pyot
2ca5114e97fa9785b030c60892838f3605664c21
[ "MIT" ]
null
null
null
pyot/docs/utils.py
FabrizioCoder/Pyot
2ca5114e97fa9785b030c60892838f3605664c21
[ "MIT" ]
null
null
null
import inspect from typing import Any, List def get_method_properties(clas: Any) -> List[str]: return inspect.getmembers(clas, predicate=lambda func: inspect.isfunction(func) or isinstance(func, property)) def get_method_property_names(clas: Any) -> List[str]: return [i[0] for i in inspect.getmembers(clas, ...
30.066667
130
0.749446
65
451
5.107692
0.446154
0.063253
0.072289
0.084337
0.650602
0.53012
0.53012
0.53012
0.53012
0.53012
0
0.002551
0.13082
451
14
131
32.214286
0.844388
0
0
0
0
0
0.004435
0
0
0
0
0
0
1
0.375
false
0
0.25
0.375
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
096b236295ab5e41e0234edd8e952d17b6a9db42
477
py
Python
src/ga/interfaces/mutation.py
technote-space/genetic-algorithms-py
a37e0a34c5970987d76fda6b14a48d9ab0579e33
[ "MIT" ]
3
2020-09-03T18:02:30.000Z
2020-09-08T18:09:38.000Z
src/ga/interfaces/mutation.py
Amplil/genetic-algorithms-py
4788c73b1b9d57eac904e8eb99d9140457201e6b
[ "MIT" ]
7
2020-09-08T16:57:19.000Z
2022-03-12T00:51:26.000Z
src/ga/interfaces/mutation.py
Amplil/genetic-algorithms-py
4788c73b1b9d57eac904e8eb99d9140457201e6b
[ "MIT" ]
1
2021-04-14T11:10:50.000Z
2021-04-14T11:10:50.000Z
from abc import ABCMeta, abstractmethod from .chromosome import IChromosome class IMutation(metaclass=ABCMeta): """ Description: ------------ 突然変異のinterface """ __probability: float def __init__(self, probability: float) -> None: self.__probability = probability @property ...
19.875
54
0.651992
42
477
7.166667
0.52381
0.149502
0
0
0
0
0
0
0
0
0
0
0.243187
477
23
55
20.73913
0.833795
0.083857
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0.083333
0.166667
0.083333
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
0971f71dacc79e9a07f16857f7941c549f0474a8
181,289
py
Python
aurora.py
molecule47/Aurora-
e07b121d40a86feac9afe43553b4152789e03d0a
[ "MIT" ]
null
null
null
aurora.py
molecule47/Aurora-
e07b121d40a86feac9afe43553b4152789e03d0a
[ "MIT" ]
null
null
null
aurora.py
molecule47/Aurora-
e07b121d40a86feac9afe43553b4152789e03d0a
[ "MIT" ]
null
null
null
import discord import random from discord.ext import commands import praw from itertools import permutations import asyncio import datetime from discord.ext.commands import has_permissions from discord.ext.commands import cooldown, BucketType import mysql.connector import datetime import time from lists imp...
53.699348
490
0.542421
22,097
181,289
4.414581
0.075123
0.026653
0.030016
0.027555
0.750577
0.725256
0.696153
0.677301
0.65808
0.624004
0
0.050902
0.323368
181,289
3,375
491
53.715259
0.739724
0
0
0.564649
0
0.086323
0.345729
0.026091
0.001121
0
0.003861
0
0
0
null
null
0.003737
0.004858
null
null
0.001121
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
1
0
0
0
0
0
0
0
0
3
09889cae631655eb80158623385af905d9c6d770
2,142
py
Python
seqofeval/utils/exceptions.py
CerryXu/zut_seqofeval
3906cc74ca28fe897c21193b033d31146baa0e22
[ "Apache-2.0" ]
null
null
null
seqofeval/utils/exceptions.py
CerryXu/zut_seqofeval
3906cc74ca28fe897c21193b033d31146baa0e22
[ "Apache-2.0" ]
null
null
null
seqofeval/utils/exceptions.py
CerryXu/zut_seqofeval
3906cc74ca28fe897c21193b033d31146baa0e22
[ "Apache-2.0" ]
null
null
null
class NotFittedError(ValueError, AttributeError): """Exception class to raise if estimator is used before fitting. This class inherits from both ValueError and AttributeError to help with exception handling and backward compatibility. Examples -------- >>> from sklearn.svm import LinearSVC ...
36.931034
78
0.704482
267
2,142
5.651685
0.509363
0.043738
0.045063
0.058317
0.166335
0.166335
0.095427
0.070245
0.070245
0
0
0.01083
0.22409
2,142
58
79
36.931034
0.897112
0.823996
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
3
099a8e1e09ae0f5fa02c238ee3fc3a1625a6e959
94
py
Python
data/__init__.py
AlcindoSchleder/flask_API
00f91ec29ba93c9ec3f45e6cfd78625f0abadc96
[ "MIT" ]
null
null
null
data/__init__.py
AlcindoSchleder/flask_API
00f91ec29ba93c9ec3f45e6cfd78625f0abadc96
[ "MIT" ]
1
2019-07-31T20:50:41.000Z
2019-08-01T03:02:10.000Z
data/__init__.py
AlcindoSchleder/flask_API
00f91ec29ba93c9ec3f45e6cfd78625f0abadc96
[ "MIT" ]
1
2019-08-02T22:38:23.000Z
2019-08-02T22:38:23.000Z
# -*- coding: utf-8 -*- import os DATABASE_PATH = os.path.abspath(os.path.dirname(__file__))
18.8
58
0.691489
14
94
4.285714
0.714286
0.2
0
0
0
0
0
0
0
0
0
0.012048
0.117021
94
4
59
23.5
0.710843
0.223404
0
0
0
0
0
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3
099dc3dfc7339846ada9e0c5322b8c1c22ceefde
723
py
Python
blog/models.py
charleskbenin/Multi-user-blog
4f61bf677aa5d1d1cd9432b8a4ae60b142271698
[ "MIT" ]
1
2021-01-13T14:06:15.000Z
2021-01-13T14:06:15.000Z
blog/models.py
charleskbenin/Multi-user-blog
4f61bf677aa5d1d1cd9432b8a4ae60b142271698
[ "MIT" ]
null
null
null
blog/models.py
charleskbenin/Multi-user-blog
4f61bf677aa5d1d1cd9432b8a4ae60b142271698
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.contrib.auth.models import User from django.urls import reverse from ckeditor.fields import RichTextField from ckeditor_uploader.fields import RichTextUploadingField # Create your models here. #models.TextField class Post(models.Model): tit...
32.863636
65
0.760719
92
723
5.847826
0.608696
0.074349
0
0
0
0
0
0
0
0
0
0.004886
0.150761
723
21
66
34.428571
0.871336
0.055325
0
0
0
0
0.029412
0
0
0
0
0
0
1
0.125
false
0
0.375
0.125
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
3
09b3021c64f229dd64a5a6c9f3c16a20ed05c876
3,249
py
Python
DataServer/mice/salsa.py
GiganticDev/GiganticEmu
6114b9f61320f07a856622a2f7449b3434af2568
[ "MIT" ]
7
2019-02-27T12:35:01.000Z
2021-06-17T19:48:48.000Z
DataServer/mice/salsa.py
GiganticDev/GiganticEmu
6114b9f61320f07a856622a2f7449b3434af2568
[ "MIT" ]
null
null
null
DataServer/mice/salsa.py
GiganticDev/GiganticEmu
6114b9f61320f07a856622a2f7449b3434af2568
[ "MIT" ]
5
2019-07-19T03:58:24.000Z
2021-04-10T11:45:43.000Z
import array import struct class Salsa: def __init__(self, key, rounds): k0, k1, k2, k3 = struct.unpack('<IIII', key.encode()) c0, c1, c2, c3 = (0x61707865, 0x3120646e, 0x79622d36, 0x6b206574) self.rounds = rounds self.matrix = [ c0, k0, k1, k2, k3, c1, 0, ...
35.703297
75
0.533087
461
3,249
3.661605
0.186551
0.18128
0.293246
0.36019
0.46327
0.42654
0.0391
0.0391
0
0
0
0.117377
0.328717
3,249
90
76
36.1
0.65658
0.016313
0
0.025641
0
0
0.001879
0
0
0
0.021916
0.011111
0
1
0.102564
false
0
0.025641
0.012821
0.192308
0
0
0
0
null
0
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
1
0
0
0
0
0
0
0
0
0
0
3
09b30ea8d1db850cf24c3624943f654d851a2c87
146
py
Python
lambda.py
ShanmukhaSrinivas/python-75-hackathon
57eafed31d84ac09079ba9bcbaa9263d79996313
[ "MIT" ]
null
null
null
lambda.py
ShanmukhaSrinivas/python-75-hackathon
57eafed31d84ac09079ba9bcbaa9263d79996313
[ "MIT" ]
null
null
null
lambda.py
ShanmukhaSrinivas/python-75-hackathon
57eafed31d84ac09079ba9bcbaa9263d79996313
[ "MIT" ]
null
null
null
# labmda function that returns a test number is even or not f = lambda x: 'Even' if x%2==0 else 'Odd' print(f(int(input('Enter a number \n'))))
29.2
59
0.671233
29
146
3.37931
0.827586
0
0
0
0
0
0
0
0
0
0
0.016807
0.184932
146
5
60
29.2
0.806723
0.390411
0
0
0
0
0.272727
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
0
0
0
1
0
3
09bcb3e26412a2c5f3e23cb876fd1722c70de09c
796
py
Python
CODIGO FUENTE/MicroBit/pi pa ti.py
kdpena2/PRODUCTO-UNIDAD
640c646c1bac2442d67776ba2768bfdee1655837
[ "PSF-2.0" ]
null
null
null
CODIGO FUENTE/MicroBit/pi pa ti.py
kdpena2/PRODUCTO-UNIDAD
640c646c1bac2442d67776ba2768bfdee1655837
[ "PSF-2.0" ]
null
null
null
CODIGO FUENTE/MicroBit/pi pa ti.py
kdpena2/PRODUCTO-UNIDAD
640c646c1bac2442d67776ba2768bfdee1655837
[ "PSF-2.0" ]
null
null
null
Mano = 0 def on_gesture_shake(): global Mano Mano = randint(1, 3) if Mano == 1: basic.show_leds(""" # # . . # # # . # . . # # . . # # . # . # # . . # """) else: if Mano == 2: basic.show_le...
24.121212
50
0.202261
40
796
3.825
0.425
0.176471
0.254902
0.222222
0.300654
0.300654
0
0
0
0
0
0.020906
0.639447
796
32
51
24.875
0.512195
0
0
0.677419
0
0
0.577225
0
0
0
0
0
0
1
0.032258
false
0
0
0
0.032258
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
09c0e78aa58849d8704238611b2deef55e82dd5c
515
py
Python
Python Exercise/PythonBasics.py
mewadashreya/MLOne-Basic
f5048379a3b276cd371ce89cca6a0949d2815ce9
[ "Apache-2.0" ]
1
2020-09-20T19:00:08.000Z
2020-09-20T19:00:08.000Z
Python Exercise/PythonBasics.py
SarangDeshmukh7/MLOne-Basic
490161740e536e3c5689ad248de1be931160e7c7
[ "Apache-2.0" ]
null
null
null
Python Exercise/PythonBasics.py
SarangDeshmukh7/MLOne-Basic
490161740e536e3c5689ad248de1be931160e7c7
[ "Apache-2.0" ]
null
null
null
import dis def add1(a,b): """ Parameters ---------- a : Any Integer b : Any Integer Returns ---------- c: Any Integer """ c=a+b; print("value of c is", c) #return c def add(): """ Parameters ---------- None Returns -...
12.261905
30
0.386408
62
515
3.080645
0.403226
0.209424
0.115183
0.188482
0.303665
0.303665
0.303665
0.303665
0.303665
0.303665
0
0.023649
0.425243
515
41
31
12.560976
0.621622
0.326214
0
0.285714
0
0
0.151786
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0
0.285714
0.142857
0
0
0
null
1
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
0
0
0
0
3
09c25006b2356a0bb3a734a4cfedff8c76091d67
411
py
Python
tests/test_menu_initialization.py
n4tm/PyAsteroids
88b6f277ea13f442960121e4d45bb4138ee49974
[ "MIT" ]
2
2021-10-15T19:02:27.000Z
2021-12-10T02:04:12.000Z
tests/test_menu_initialization.py
n4tm/PyAsteroids
88b6f277ea13f442960121e4d45bb4138ee49974
[ "MIT" ]
null
null
null
tests/test_menu_initialization.py
n4tm/PyAsteroids
88b6f277ea13f442960121e4d45bb4138ee49974
[ "MIT" ]
3
2021-01-26T21:35:43.000Z
2021-05-06T16:06:47.000Z
from os import path import pytest import menu import ufo import pygame @pytest.fixture def the_menu(): return menu.Menu() def test_ufo_image_path_finded(the_menu): the_menu.ufo = ufo.UFO(pygame.Vector2(0, 40), 2) assert path.exists(the_menu.ufo.sprite_path) def test_asteroids_image_path_finded(the_menu)...
21.631579
52
0.76399
66
411
4.515152
0.393939
0.14094
0.100671
0.120805
0.147651
0
0
0
0
0
0
0.014327
0.150852
411
18
53
22.833333
0.839542
0
0
0
0
0
0
0
0
0
0
0
0.142857
1
0.214286
false
0
0.357143
0.071429
0.642857
0
0
0
0
null
0
0
0
0
0
0
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
1
0
1
0
0
3
09c5fa75d4caee0b24f956712af8f07e3977bf65
145
py
Python
Python101/Challenges/9.py
Yuma-Tsushima07/Python101
2f1146f9c30914516fe5152a96779d98c2da9923
[ "Apache-2.0" ]
1
2021-12-24T02:59:15.000Z
2021-12-24T02:59:15.000Z
Python101/Challenges/9.py
Yuma-Tsushima07/Python101
2f1146f9c30914516fe5152a96779d98c2da9923
[ "Apache-2.0" ]
null
null
null
Python101/Challenges/9.py
Yuma-Tsushima07/Python101
2f1146f9c30914516fe5152a96779d98c2da9923
[ "Apache-2.0" ]
1
2021-12-24T02:59:19.000Z
2021-12-24T02:59:19.000Z
print('Challenge 9: WAF to concatinate 2 string with out using +.') str1 = "Hello" str2 = "World" print("{} {}".format(str1, str2))
24.166667
68
0.6
19
145
4.578947
0.842105
0
0
0
0
0
0
0
0
0
0
0.053571
0.227586
145
5
69
29
0.723214
0
0
0
0
0
0.521429
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
0
0
0
1
0
3
09d103fc7ebca584d5839a37316f583bb6c0fef7
708
py
Python
catalog/models/collections.py
fbsamples/cp_reference
028b384767d06158a64be8cbb1af613e2f3c881e
[ "MIT" ]
2
2021-09-05T04:21:33.000Z
2021-11-03T20:56:46.000Z
catalog/models/collections.py
fbsamples/cp_reference
028b384767d06158a64be8cbb1af613e2f3c881e
[ "MIT" ]
null
null
null
catalog/models/collections.py
fbsamples/cp_reference
028b384767d06158a64be8cbb1af613e2f3c881e
[ "MIT" ]
null
null
null
# Copyright 2004-present, Facebook. All Rights Reserved. from django.db import models from core.models import BaseModel from shop.models import Store class Collection(BaseModel): """Represents a single collection. A collection is a logical compilation of products, related by some criteria, eg "fall collec...
32.181818
80
0.723164
93
708
5.451613
0.698925
0.047337
0.051282
0
0
0
0
0
0
0
0
0.01049
0.19209
708
21
81
33.714286
0.875874
0.539548
0
0
0
0
0.075601
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0.142857
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
3
09d42ff811ac21e98bbd9e2c893c301a4fc4cf89
245
py
Python
userprofile/admin.py
demonking15543/contactApp
3f7296173a9f3e25677215bc90b410748784e376
[ "MIT" ]
null
null
null
userprofile/admin.py
demonking15543/contactApp
3f7296173a9f3e25677215bc90b410748784e376
[ "MIT" ]
null
null
null
userprofile/admin.py
demonking15543/contactApp
3f7296173a9f3e25677215bc90b410748784e376
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Profile # Register your models here. @admin.register(Profile) class ProfileAdmin(admin.ModelAdmin): '''Admin View for Profile''' list_display = ('user', 'contact', 'city', 'country',)
30.625
58
0.726531
30
245
5.9
0.7
0
0
0
0
0
0
0
0
0
0
0
0.138776
245
8
58
30.625
0.838863
0.204082
0
0
0
0
0.115789
0
0
0
0
0
0
1
0
false
0
0.4
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
3
09db2edf4c65ac380d82a543bcfff61534cb41f6
1,359
py
Python
snakeshot/model/match.py
trackness/snakeshot
bb9717f163d06e6a6e9c9f10cabf848be508ee6a
[ "MIT" ]
null
null
null
snakeshot/model/match.py
trackness/snakeshot
bb9717f163d06e6a6e9c9f10cabf848be508ee6a
[ "MIT" ]
null
null
null
snakeshot/model/match.py
trackness/snakeshot
bb9717f163d06e6a6e9c9f10cabf848be508ee6a
[ "MIT" ]
null
null
null
from decimal import Decimal from snakeshot.model.player import Player # TODO : Change to two players instead of list, just for init class Match: def __init__(self, p1: Player, p2: Player): self._players: list = [p1, p2] self._winner_expected: int = self._set_winner_expected() def as_dict(sel...
31.604651
88
0.645327
184
1,359
4.505435
0.298913
0.092883
0.048251
0.054282
0.218335
0.110977
0
0
0
0
0
0.011799
0.251656
1,359
42
89
32.357143
0.803343
0.043414
0
0.125
0
0
0.010015
0
0
0
0
0.02381
0
1
0.21875
false
0
0.0625
0.15625
0.5625
0
0
0
0
null
0
0
0
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
1
0
0
0
1
0
0
0
3
09de52c7b3c679d2581eaf53f750fbd7f1d8c1d9
107
py
Python
TwitterCredentials.py
KeletsoM/TwitterScraper
ef079720f08d868a221dd3e34d9e98e5e7ce0e1b
[ "MIT" ]
null
null
null
TwitterCredentials.py
KeletsoM/TwitterScraper
ef079720f08d868a221dd3e34d9e98e5e7ce0e1b
[ "MIT" ]
null
null
null
TwitterCredentials.py
KeletsoM/TwitterScraper
ef079720f08d868a221dd3e34d9e98e5e7ce0e1b
[ "MIT" ]
null
null
null
ACCESS_TOKEN = '#####' ACCESS_TOKEN_SECRET = '########' CONSUMER_KEY = '######' CONSUMER_SERET = '#######'
21.4
32
0.53271
9
107
5.777778
0.666667
0.423077
0
0
0
0
0
0
0
0
0
0
0.11215
107
4
33
26.75
0.547368
0
0
0
0
0
0.242991
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
0
0
3
09fd0168be96179898f83af612e18e2d7a8bd6e6
415
py
Python
content/books/high-performance-python/section-1/ex.py
TimKingNF/timking.github.io
36bbd87a40b791147f1507d8e013402d29f98d49
[ "MIT" ]
1
2018-06-20T16:19:21.000Z
2018-06-20T16:19:21.000Z
content/books/high-performance-python/section-1/ex.py
TimKingNF/timking.github.io
36bbd87a40b791147f1507d8e013402d29f98d49
[ "MIT" ]
null
null
null
content/books/high-performance-python/section-1/ex.py
TimKingNF/timking.github.io
36bbd87a40b791147f1507d8e013402d29f98d49
[ "MIT" ]
null
null
null
import unittest if '__builtin__' not in dir() or not hasattr(__builtin__, 'profile') or \ 'profile' not in dir(): def profile(func): def inner(*args, **kwargs): return func(*args, **kwargs) return inner @profile def some_fn(nbr): return nbr * 2 class TestCase(unittest.T...
19.761905
73
0.607229
53
415
4.566038
0.509434
0.041322
0.066116
0
0
0
0
0
0
0
0
0.009934
0.272289
415
20
74
20.75
0.791391
0
0
0
0
0
0.060241
0
0
0
0
0
0.071429
1
0.285714
false
0
0.071429
0.142857
0.642857
0
0
0
0
null
0
0
0
0
0
0
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
3
61ef29ba7e9730ef44557ae0b933cb18663c38b0
202
py
Python
FazCO2Monitor/api/urls.py
fazerog02/FazCO2Monitor
a7ef0aba2f387ae2087e1d9458ff6156333e9421
[ "MIT" ]
null
null
null
FazCO2Monitor/api/urls.py
fazerog02/FazCO2Monitor
a7ef0aba2f387ae2087e1d9458ff6156333e9421
[ "MIT" ]
null
null
null
FazCO2Monitor/api/urls.py
fazerog02/FazCO2Monitor
a7ef0aba2f387ae2087e1d9458ff6156333e9421
[ "MIT" ]
null
null
null
from rest_framework import routers from .views import PPMDataViewSet, NowPPMViewSet router = routers.DefaultRouter() router.register('ppmdata', PPMDataViewSet) router.register('nowppm', NowPPMViewSet)
28.857143
48
0.826733
21
202
7.904762
0.619048
0.168675
0
0
0
0
0
0
0
0
0
0
0.084158
202
6
49
33.666667
0.897297
0
0
0
0
0
0.064356
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
0
0
0
3
1108183933cec1f99a881301f94ba2cef1f52729
1,072
py
Python
pydrepr/drepr/outputs/base_lst_output_class.py
scorpio975/d-repr
1d08024192642233d42d29e1d05f8713ee265bca
[ "MIT" ]
5
2019-10-02T01:04:50.000Z
2022-03-08T09:39:50.000Z
pydrepr/drepr/outputs/base_lst_output_class.py
scorpio975/d-repr
1d08024192642233d42d29e1d05f8713ee265bca
[ "MIT" ]
3
2020-06-13T22:09:48.000Z
2021-04-23T08:23:49.000Z
pydrepr/drepr/outputs/base_lst_output_class.py
scorpio975/d-repr
1d08024192642233d42d29e1d05f8713ee265bca
[ "MIT" ]
5
2019-10-02T03:01:27.000Z
2021-02-02T13:34:35.000Z
from abc import ABC, abstractmethod from typing import List, Dict, Tuple, Callable, Any, Optional, Iterable, Union from drepr.outputs.record_id import RecordID from drepr.outputs.base_output_class import BaseOutputClass from drepr.outputs.base_output_predicate import BaseOutputPredicate from drepr.outputs.base_record ...
28.972973
113
0.704291
113
1,072
6.504425
0.40708
0.138776
0.142857
0.081633
0.070748
0
0
0
0
0
0
0
0.204291
1,072
37
114
28.972973
0.861665
0.050373
0
0.48
0
0
0.056112
0
0
0
0
0
0
1
0.24
false
0.24
0.24
0
0.52
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
1
0
0
3
11434161b7198f9d8ac49d92ed876bb18c00eff9
305
py
Python
gozokia/core/exceptions.py
avara1986/gozokia
03da46359c4a97a35b8f94686cccec7fc9b438cd
[ "MIT-0", "MIT" ]
null
null
null
gozokia/core/exceptions.py
avara1986/gozokia
03da46359c4a97a35b8f94686cccec7fc9b438cd
[ "MIT-0", "MIT" ]
null
null
null
gozokia/core/exceptions.py
avara1986/gozokia
03da46359c4a97a35b8f94686cccec7fc9b438cd
[ "MIT-0", "MIT" ]
null
null
null
# encoding: utf-8 """ Core exceptions """ class GozokiaError(Exception): '''raise this when there's a lookup error for my app''' pass class GozokiaNotImplemented(Exception): '''raise this when there's a lookup error for my app''' pass class ImproperlyConfigured(Exception): pass
16.052632
59
0.691803
39
305
5.410256
0.564103
0.132701
0.170616
0.208531
0.540284
0.540284
0.540284
0.540284
0.540284
0.540284
0
0.004115
0.203279
305
18
60
16.944444
0.864198
0.432787
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
3
1143694403d3357c847f67335bcceac4698486be
16,056
py
Python
template_container_human/labels/slice_166.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
template_container_human/labels/slice_166.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
template_container_human/labels/slice_166.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
coordinates_E0E1E1 = ((128, 117), (128, 119), (128, 121), (129, 116), (129, 124), (130, 115), (130, 117), (130, 118), (130, 119), (130, 120), (130, 121), (130, 123), (131, 114), (131, 116), (131, 123), (132, 118), (132, 119), (132, 120), (132, 121), (132, 123), (133, 113), (133, 116), (133, 123), (134, 114), (134, 12...
382.285714
865
0.49508
2,680
16,056
2.960448
0.033955
0.002269
0.002269
0
0
0
0
0
0
0
0
0.582067
0.172023
16,056
41
866
391.609756
0.014743
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
114858a949088a253fab9b084a590a1129e43d21
575
py
Python
Location.py
rtclay/Pravda
eeaa4c7aaa6341f7ebbacfd626c7c58d377582a3
[ "MIT" ]
null
null
null
Location.py
rtclay/Pravda
eeaa4c7aaa6341f7ebbacfd626c7c58d377582a3
[ "MIT" ]
null
null
null
Location.py
rtclay/Pravda
eeaa4c7aaa6341f7ebbacfd626c7c58d377582a3
[ "MIT" ]
null
null
null
''' Created on Sep 30, 2018 @author: cat_t ''' class Location(object): ''' classdocs ''' def __init__(self, name = ""): ''' Constructor ''' self.name = name def __eq__(self, other): try: if self.name == other.name: retu...
16.911765
39
0.464348
56
575
4.464286
0.553571
0.128
0
0
0
0
0
0
0
0
0
0.018519
0.436522
575
34
40
16.911765
0.753086
0.106087
0
0.1875
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0.125
0.6875
0
0
0
0
null
0
0
0
0
0
0
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
3
114a107556c8c6bec5e1ea9f6166d988cc1d34fa
55
py
Python
xpathlet/constants.py
jerith/xpathlet
e00a835e07691c1334f1689d64f98cf617d03844
[ "MIT" ]
9
2016-01-22T07:29:47.000Z
2020-04-07T03:23:31.000Z
xpathlet/constants.py
jerith/xpathlet
e00a835e07691c1334f1689d64f98cf617d03844
[ "MIT" ]
1
2015-03-16T21:16:02.000Z
2015-03-19T07:13:01.000Z
xpathlet/constants.py
jerith/xpathlet
e00a835e07691c1334f1689d64f98cf617d03844
[ "MIT" ]
1
2020-04-25T04:03:00.000Z
2020-04-25T04:03:00.000Z
XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace'
27.5
54
0.745455
9
55
4.444444
0.777778
0
0
0
0
0
0
0
0
0
0
0.096154
0.054545
55
1
55
55
0.673077
0
0
0
0
0
0.654545
0
0
0
0
0
0
1
0
false
0
0
0
0
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
fed1d3663233c4a1411cb7f3e68d5b54e413f283
300
py
Python
experiments/ynasser/factoring/factoring.py
CompSciCabal/SMRTYPRTY
a8e2c5049199635fecce7b7f70a2225cda6558d8
[ "Unlicense" ]
60
2015-02-04T13:02:10.000Z
2021-11-16T12:54:44.000Z
experiments/ynasser/factoring/factoring.py
CompSciCabal/SMRTYPRTY
a8e2c5049199635fecce7b7f70a2225cda6558d8
[ "Unlicense" ]
80
2015-02-20T07:23:41.000Z
2018-03-13T02:30:42.000Z
experiments/ynasser/factoring/factoring.py
CompSciCabal/SMRTYPRTY
a8e2c5049199635fecce7b7f70a2225cda6558d8
[ "Unlicense" ]
11
2015-02-20T04:48:06.000Z
2019-11-17T03:19:36.000Z
import sys sys.setrecursionlimit(2000000000) def factoring(n, lst, count): if (count > n): print "The factors are", lst elif (n % count == 0): lst.append(count) print "list is", lst factoring(n, lst, count+1) else: factoring(n, lst, count+1) k = [1] factoring(472822,k,2)
20
34
0.63
46
300
4.108696
0.521739
0.15873
0.206349
0.285714
0.201058
0
0
0
0
0
0
0.089744
0.22
300
15
35
20
0.717949
0
0
0.153846
0
0
0.076655
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.153846
0
0
0
null
0
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
1
0
0
0
0
0
0
0
0
3
fef8602ab3498e8696f168d0ae5a9e7f0d7b210c
621
py
Python
philosophy/exceptions.py
smtchahal/wikipedia-philosophy
48764890b739fd34f8e8c148417c744d5c82b49c
[ "MIT" ]
11
2015-12-14T08:42:15.000Z
2020-10-23T17:35:39.000Z
philosophy/exceptions.py
smtchahal/wikipedia-philosophy
48764890b739fd34f8e8c148417c744d5c82b49c
[ "MIT" ]
null
null
null
philosophy/exceptions.py
smtchahal/wikipedia-philosophy
48764890b739fd34f8e8c148417c744d5c82b49c
[ "MIT" ]
4
2016-06-08T17:09:32.000Z
2019-10-02T12:26:24.000Z
from requests.exceptions import ConnectionError class MediaWikiError(Exception): """ Raised when the MediaWiki API returns an error. """ def __init__(self, message, errors): super(MediaWikiError, self).__init__(message) self.errors = errors class LoopException(Exception): """ ...
17.742857
53
0.648953
66
621
5.984848
0.636364
0.151899
0.192405
0
0
0
0
0
0
0
0
0
0.26087
621
34
54
18.264706
0.860566
0.296296
0
0.272727
0
0
0
0
0
0
0
0
0
1
0.090909
false
0.272727
0.090909
0
0.545455
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
1
0
0
1
0
0
3
3a132a58b2ccc8a3dbd80c6a4002242b548eda2f
13
py
Python
bsed/__init__.py
emanuelhfarias/bsed
f2d2e6b13cc73b2795b8650c0f168da8fe73216c
[ "MIT" ]
440
2019-04-01T03:24:05.000Z
2021-12-28T04:16:30.000Z
bsed/__init__.py
emanuelhfarias/bsed
f2d2e6b13cc73b2795b8650c0f168da8fe73216c
[ "MIT" ]
8
2019-04-01T11:21:30.000Z
2020-01-27T19:13:43.000Z
bsed/__init__.py
emanuelhfarias/bsed
f2d2e6b13cc73b2795b8650c0f168da8fe73216c
[ "MIT" ]
18
2019-04-01T04:09:25.000Z
2020-06-05T14:53:52.000Z
name = "bsed"
13
13
0.615385
2
13
4
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
13
1
13
13
0.727273
0
0
0
0
0
0.285714
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
3a1b18ce6683522f3036260a281eb7e994e97bec
99
py
Python
mysite/settings/devel.py
VovanR/django-404-500-scaffold
d8090a15278764e14dc32589ac9510254d1a8db9
[ "MIT" ]
null
null
null
mysite/settings/devel.py
VovanR/django-404-500-scaffold
d8090a15278764e14dc32589ac9510254d1a8db9
[ "MIT" ]
null
null
null
mysite/settings/devel.py
VovanR/django-404-500-scaffold
d8090a15278764e14dc32589ac9510254d1a8db9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from mysite.settings.common import * DEBUG = True TEMPLATE_DEBUG = DEBUG
14.142857
36
0.686869
13
99
5.153846
0.846154
0
0
0
0
0
0
0
0
0
0
0.012195
0.171717
99
6
37
16.5
0.804878
0.212121
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
0
0
3
3a1c44b76ba0002ae84b996b6235ac111f8ca5ae
140
py
Python
src/test_sub.py
shiyangfei/python-boilerplate
fdaafe56949fdc89736b4b455ff7885de3b9ec82
[ "MIT" ]
null
null
null
src/test_sub.py
shiyangfei/python-boilerplate
fdaafe56949fdc89736b4b455ff7885de3b9ec82
[ "MIT" ]
null
null
null
src/test_sub.py
shiyangfei/python-boilerplate
fdaafe56949fdc89736b4b455ff7885de3b9ec82
[ "MIT" ]
null
null
null
import unittest from src.sub import add class SubTest(unittest.TestCase): def test_add(self): self.assertEqual(add(3, 1), 4)
15.555556
38
0.692857
21
140
4.571429
0.761905
0
0
0
0
0
0
0
0
0
0
0.026786
0.2
140
8
39
17.5
0.830357
0
0
0
0
0
0
0
0
0
0
0
0.2
1
0.2
false
0
0.4
0
0.8
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
0
0
0
3
3a299dc4162b278545cf0110b886fda9381478fe
1,750
py
Python
_py2tmp/compiler/_tmppy_builtins.py
google/tmppy
faf67af1213ee709f28cc5f492ec4903c51d4104
[ "Apache-2.0" ]
27
2017-10-02T01:17:35.000Z
2021-10-16T23:31:46.000Z
_py2tmp/compiler/_tmppy_builtins.py
google/tmppy
faf67af1213ee709f28cc5f492ec4903c51d4104
[ "Apache-2.0" ]
51
2017-10-01T09:38:22.000Z
2018-10-13T16:39:39.000Z
_py2tmp/compiler/_tmppy_builtins.py
google/tmppy
faf67af1213ee709f28cc5f492ec4903c51d4104
[ "Apache-2.0" ]
9
2017-11-04T13:12:27.000Z
2021-10-16T23:31:38.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
27.34375
74
0.651429
305
1,750
3.737705
0.32459
0.035088
0.017544
0.024561
0.230702
0.185088
0.113158
0.113158
0.113158
0.113158
0
0.019417
0.234857
1,750
63
75
27.777778
0.831964
0.325714
0
0.257143
0
0
0
0
0
0
0
0
0
1
0.342857
false
0
0.057143
0.257143
0.828571
0
0
0
0
null
0
0
0
0
0
0
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
3
3a48868392df58328e61cb2b425f11cff462988e
148
py
Python
5 kyu/Ready for Prime Time.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
6
2020-09-03T09:32:25.000Z
2020-12-07T04:10:01.000Z
5 kyu/Ready for Prime Time.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
1
2021-12-13T15:30:21.000Z
2021-12-13T15:30:21.000Z
5 kyu/Ready for Prime Time.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
null
null
null
from gmpy2 import next_prime def prime(n): res=[] cur=2 while cur<=n: res.append(cur) cur=next_prime(cur) return res
18.5
28
0.587838
23
148
3.695652
0.565217
0.211765
0
0
0
0
0
0
0
0
0
0.019417
0.304054
148
8
29
18.5
0.805825
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
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
0
0
0
0
0
0
0
3
28a88012bf4a859c7d569e0e2795696b6d66ea99
1,442
py
Python
generators/generators.py
storyoftime66/everything-generator
617584740dd55a4b0fe713f57ab91ef61ba8ae31
[ "MIT" ]
null
null
null
generators/generators.py
storyoftime66/everything-generator
617584740dd55a4b0fe713f57ab91ef61ba8ae31
[ "MIT" ]
null
null
null
generators/generators.py
storyoftime66/everything-generator
617584740dd55a4b0fe713f57ab91ef61ba8ae31
[ "MIT" ]
null
null
null
import random import json import os import sys import time PATH = os.path.split(os.path.abspath(__file__))[0] sys.path.append(PATH) class BaseGenerator(object): def generate(self): raise NotImplementedError class ChineseNameGenerator(BaseGenerator): with open(PATH + '/data/chinese_name/chinese_...
21.848485
99
0.628294
166
1,442
5.259036
0.421687
0.036655
0.051546
0.054983
0.109966
0
0
0
0
0
0
0.020295
0.248266
1,442
65
100
22.184615
0.785055
0.079057
0
0.179487
1
0
0.05303
0.027273
0
0
0
0.015385
0
1
0.102564
false
0.102564
0.153846
0
0.461538
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
1
0
0
0
0
1
0
0
0
0
0
3
28b9a90dbef0bc66412454c65c8a51d74c650c16
520
py
Python
blog/admin.py
AlirezaRa94/my_site
6e46c2536fdb62ac9244827c314aea61a9cfcc7b
[ "MIT" ]
null
null
null
blog/admin.py
AlirezaRa94/my_site
6e46c2536fdb62ac9244827c314aea61a9cfcc7b
[ "MIT" ]
null
null
null
blog/admin.py
AlirezaRa94/my_site
6e46c2536fdb62ac9244827c314aea61a9cfcc7b
[ "MIT" ]
null
null
null
from django.contrib import admin from blog import models class PostAdmin(admin.ModelAdmin): prepopulated_fields = {'slug': ('title',)} list_display = ('title', 'author', 'date') list_filter = ('author', 'tags', 'date') class CommentAdmin(admin.ModelAdmin): list_display = ('first_name', 'last_name',...
24.761905
54
0.715385
63
520
5.793651
0.460317
0.09863
0.186301
0.252055
0
0
0
0
0
0
0
0
0.128846
520
20
55
26
0.80574
0
0
0
0
0
0.125
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.692308
0
0
0
0
null
0
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
0
0
0
0
0
1
0
0
3
28ca5673203b854a9504c3024efc59b553851fc9
1,006
py
Python
credentials.py
wanjugu96/Password-Locker-Cli
12cca64df0b7bb4537b1866fff93fc13eb065511
[ "MIT" ]
null
null
null
credentials.py
wanjugu96/Password-Locker-Cli
12cca64df0b7bb4537b1866fff93fc13eb065511
[ "MIT" ]
null
null
null
credentials.py
wanjugu96/Password-Locker-Cli
12cca64df0b7bb4537b1866fff93fc13eb065511
[ "MIT" ]
null
null
null
import random import string class Credentials(): credentials_list=[] """ Class generates various accounts with passwords """ def __init__(self,acc_name,acc_username,acc_password): self.acc_name=acc_name self.acc_password=acc_password self.acc_username=acc_username ...
23.395349
58
0.640159
107
1,006
5.794393
0.420561
0.177419
0.125806
0.045161
0
0
0
0
0
0
0
0.001379
0.279324
1,006
42
59
23.952381
0.853793
0.060636
0
0
1
0
0
0
0
0
0
0
0
1
0.208333
false
0.208333
0.083333
0.041667
0.458333
0
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
1
0
1
0
0
0
0
0
3
28d14b06ff4c346e3146761a8d27a718c4ae38ae
238
py
Python
dist/py/buzzer.py
microsoft/jacdac
2c6548b7e55ac34141e5152c664ca268e873cf09
[ "CC-BY-4.0", "MIT" ]
31
2020-07-24T14:49:32.000Z
2022-03-20T12:20:56.000Z
dist/py/buzzer.py
QPC-database/jacdac
74e9f7cebdb1db4c24f211aceb657b5125d0fd40
[ "CC-BY-4.0", "MIT" ]
747
2020-07-31T22:05:45.000Z
2022-03-31T23:27:35.000Z
dist/py/buzzer.py
QPC-database/jacdac
74e9f7cebdb1db4c24f211aceb657b5125d0fd40
[ "CC-BY-4.0", "MIT" ]
17
2020-07-31T10:49:01.000Z
2022-03-15T03:21:43.000Z
# Autogenerated file for Buzzer # Add missing from ... import const _JD_SERVICE_CLASS_BUZZER = const(0x1b57b1d7) _JD_BUZZER_REG_VOLUME = const(JD_REG_INTENSITY) _JD_BUZZER_CMD_PLAY_TONE = const(0x80) _JD_BUZZER_CMD_PLAY_NOTE = const(0x81)
39.666667
47
0.831933
37
238
4.810811
0.594595
0.134831
0.123596
0.168539
0
0
0
0
0
0
0
0.055814
0.096639
238
6
48
39.666667
0.772093
0.264706
0
0
1
0
0
0
0
0
0.104046
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
1
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
0
0
0
0
0
0
0
3
28dd2055af60e2c1ace1a4410a5c4ecfccb8381b
124
py
Python
python/test/1.py
ga6198/code2vec
d7a93d90910c7bb35d7680f35e23fd85636a45a3
[ "MIT" ]
null
null
null
python/test/1.py
ga6198/code2vec
d7a93d90910c7bb35d7680f35e23fd85636a45a3
[ "MIT" ]
null
null
null
python/test/1.py
ga6198/code2vec
d7a93d90910c7bb35d7680f35e23fd85636a45a3
[ "MIT" ]
null
null
null
def printStuff(): print("stuff") x = 1 y = 2 z = 3 if x == 1: print(x, y, z) print("ololo") print("stuff")
11.272727
18
0.491935
21
124
2.904762
0.571429
0.327869
0
0
0
0
0
0
0
0
0
0.046512
0.306452
124
10
19
12.4
0.662791
0
0
0.222222
0
0
0.120968
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.111111
0.555556
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
e92e76a719008d1ef18db14ec6f6b1bf9c0b387f
436
py
Python
jembatan/typesys/semantics.py
leebecker/jembatan
33443dcb37d05308c84430d34aef3b6a1c8bf44e
[ "Apache-2.0" ]
null
null
null
jembatan/typesys/semantics.py
leebecker/jembatan
33443dcb37d05308c84430d34aef3b6a1c8bf44e
[ "Apache-2.0" ]
null
null
null
jembatan/typesys/semantics.py
leebecker/jembatan
33443dcb37d05308c84430d34aef3b6a1c8bf44e
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from jembatan.typesys import SpannedAnnotation class SemanticArg(SpannedAnnotation): """ Named entities refer e.g. to persons, locations, organizations and so on. They often consist of multiple tokens. Fields: value: The class/category of the named entity, e.g. pers...
31.142857
116
0.743119
58
436
5.586207
0.689655
0.018519
0.061728
0.098765
0.111111
0.111111
0
0
0
0
0
0
0.188073
436
13
117
33.538462
0.915254
0.646789
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
e9356b44bf981d9b15ac6c9915c37b5ff5916af0
944
py
Python
ProgrammersGuideExamples/chap_config_examples.py
dell/python-powerstore
04d6d73e4c926cf0d347cf68b24f8f11ff80f565
[ "Apache-2.0" ]
15
2020-05-06T23:46:44.000Z
2021-12-14T08:04:48.000Z
ProgrammersGuideExamples/chap_config_examples.py
dell/python-powerstore
04d6d73e4c926cf0d347cf68b24f8f11ff80f565
[ "Apache-2.0" ]
2
2020-06-09T15:19:25.000Z
2020-08-18T18:58:59.000Z
ProgrammersGuideExamples/chap_config_examples.py
dell/python-powerstore
04d6d73e4c926cf0d347cf68b24f8f11ff80f565
[ "Apache-2.0" ]
5
2020-05-06T23:46:22.000Z
2021-05-08T03:03:07.000Z
# -*- coding: utf-8 -*- # Copyright: (c) 2021, Dell EMC """ CHAP config operations""" from PyPowerStore import powerstore_conn CONN = powerstore_conn.PowerStoreConn(username="<username>", password="<password>", server_ip="<IP>", ...
36.307692
125
0.633475
108
944
5.203704
0.361111
0.213523
0.181495
0.060498
0.325623
0.288256
0.106762
0.106762
0
0
0
0.01585
0.264831
944
26
126
36.307692
0.793948
0.147246
0
0
0
0
0.061635
0
0
0
0
0
0
1
0
false
0.071429
0.071429
0
0.071429
0.285714
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
1
0
0
0
0
0
3
e93857f9572b41ed71a584259b8bc9fb20f89b2a
774
py
Python
djofx/views/xhr/base.py
dominicrodger/djofx
c46e99ce75e89c22b9ede58e7f3e7df1a702b465
[ "MIT" ]
null
null
null
djofx/views/xhr/base.py
dominicrodger/djofx
c46e99ce75e89c22b9ede58e7f3e7df1a702b465
[ "MIT" ]
null
null
null
djofx/views/xhr/base.py
dominicrodger/djofx
c46e99ce75e89c22b9ede58e7f3e7df1a702b465
[ "MIT" ]
null
null
null
from django.http import HttpResponseForbidden from django.views.generic import View class XHRBaseView(View): def handle(self, request, *args, **kwargs): if request.user.is_anonymous(): return HttpResponseForbidden( "This page requires a login." ) if not req...
27.642857
55
0.631783
81
774
6.012346
0.432099
0.135524
0.209446
0.129363
0.221766
0.221766
0.221766
0.221766
0.221766
0.221766
0
0
0.262274
774
27
56
28.666667
0.85289
0
0
0.210526
0
0
0.082687
0
0
0
0
0
0
1
0.157895
false
0
0.105263
0.105263
0.684211
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
1
1
0
0
3
3a8a924612535a98ce27397b05d5efa71c0bad69
398
py
Python
IntroProPython/aula10-poo/listagem10_6.py
SweydAbdul/estudos-python
b052708d0566a0afb9a1c04d035467d45f820879
[ "MIT" ]
null
null
null
IntroProPython/aula10-poo/listagem10_6.py
SweydAbdul/estudos-python
b052708d0566a0afb9a1c04d035467d45f820879
[ "MIT" ]
null
null
null
IntroProPython/aula10-poo/listagem10_6.py
SweydAbdul/estudos-python
b052708d0566a0afb9a1c04d035467d45f820879
[ "MIT" ]
null
null
null
class Conta: def __init__(self, clientes, numero, saldo=0): self.saldo = saldo self.clientes = clientes self.numero = numero def resumo(self): print(f'CC numero: {self.numero} Saldo: {self.saldo:10.2f}') def saque(self, valor): if self.saldo >= valor: se...
24.875
68
0.580402
50
398
4.54
0.38
0.198238
0.185022
0.167401
0
0
0
0
0
0
0
0.014286
0.296482
398
15
69
26.533333
0.796429
0
0
0
0
0
0.125628
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.416667
0.083333
0
0
0
null
0
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
0
0
0
0
3
3a8b9665514baffa32554f4c2c1eb866bec926ce
447
py
Python
the_game/deck.py
gcmac16/the_game
07c4b3a280eb358ee23d8ce8f70cf490e1813215
[ "Apache-2.0" ]
null
null
null
the_game/deck.py
gcmac16/the_game
07c4b3a280eb358ee23d8ce8f70cf490e1813215
[ "Apache-2.0" ]
null
null
null
the_game/deck.py
gcmac16/the_game
07c4b3a280eb358ee23d8ce8f70cf490e1813215
[ "Apache-2.0" ]
null
null
null
import random from typing import ( Optional, ) from .card import Card class Deck(object): def __init__(self, seed: Optional[int] = None, card_range: range = range(2, 100)): self.cards = [Card(i) for i in card_range] self.seed = seed def shuffle(self): random.Random(self.seed).sh...
19.434783
86
0.628635
63
447
4.301587
0.444444
0.132841
0
0
0
0
0
0
0
0
0
0.01497
0.252796
447
22
87
20.318182
0.796407
0
0
0
0
0
0
0
0
0
0
0
0
1
0.266667
false
0
0.2
0.133333
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
3a9219813fbe7b42927c86f9c08ee0ef06f80d65
279
py
Python
src/models/randomforest.py
dsp-uga/anthony-p1
e1998f5b98cc2d7c56a5ef46cffcf29e9d4fcc38
[ "MIT" ]
null
null
null
src/models/randomforest.py
dsp-uga/anthony-p1
e1998f5b98cc2d7c56a5ef46cffcf29e9d4fcc38
[ "MIT" ]
null
null
null
src/models/randomforest.py
dsp-uga/anthony-p1
e1998f5b98cc2d7c56a5ef46cffcf29e9d4fcc38
[ "MIT" ]
null
null
null
import pyspark import sys # main entry point for Spark # SparkContext represents connection to a Spark cluster spark_conf = pyspark.SparkConf().setMaster("local[*]").setAppName("p0") sc = pyspark.SparkContext(conf = spark_conf) def random_forest(): '''TODO'''
25.363636
71
0.709677
34
279
5.735294
0.735294
0.092308
0
0
0
0
0
0
0
0
0
0.004329
0.172043
279
11
72
25.363636
0.839827
0.308244
0
0
0
0
0.053476
0
0
0
0
0.090909
0
1
0.2
false
0
0.4
0
0.6
0
0
0
0
null
0
0
0
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
1
0
1
0
0
3
3a932393cda9a78a497ebd89a14199e056916d95
277
py
Python
adapters/samsung/__init__.py
russdan/domoticz-zigbee2mqtt-plugin
d47895eab44bc87fc19ce151698d2afe9554fadc
[ "MIT" ]
146
2018-09-19T11:38:48.000Z
2022-03-21T11:54:12.000Z
adapters/samsung/__init__.py
russdan/domoticz-zigbee2mqtt-plugin
d47895eab44bc87fc19ce151698d2afe9554fadc
[ "MIT" ]
783
2018-09-28T17:07:14.000Z
2022-03-31T10:18:27.000Z
adapters/samsung/__init__.py
russdan/domoticz-zigbee2mqtt-plugin
d47895eab44bc87fc19ce151698d2afe9554fadc
[ "MIT" ]
147
2018-09-25T18:39:51.000Z
2022-03-01T19:31:27.000Z
from adapters.generic.siren import SirenAdapter from adapters.samsung.sensor_arrival import SensorArrival samsung_adapters = { 'STS-PRS-251': SensorArrival, # SmartThings SmartThings arrival sensor 'SZ-SRN12N': SirenAdapter, # SmartThings Smart siren }
34.625
80
0.750903
29
277
7.103448
0.586207
0.116505
0
0
0
0
0
0
0
0
0
0.02193
0.176895
277
8
81
34.625
0.881579
0.223827
0
0
0
0
0.093897
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
0
0
3
3aa9ee5386686fc86aadeaf10104f634fa156e4f
3,286
py
Python
flasky/models.py
fengyc/flasky
49b822f7f8f1f8ec53007d4cc2467e4744fb213a
[ "MIT" ]
null
null
null
flasky/models.py
fengyc/flasky
49b822f7f8f1f8ec53007d4cc2467e4744fb213a
[ "MIT" ]
null
null
null
flasky/models.py
fengyc/flasky
49b822f7f8f1f8ec53007d4cc2467e4744fb213a
[ "MIT" ]
null
null
null
from . import db from werkzeug.security import generate_password_hash, check_password_hash from flask.ext.login import UserMixin from flask import current_app from itsdangerous import TimedJSONWebSignatureSerializer as Serializer app = current_app class Role(db.Model): __tablename__ = 'roles' id = db.Column(...
31
73
0.639988
418
3,286
4.875598
0.229665
0.031403
0.039254
0.058881
0.419529
0.360157
0.360157
0.346418
0.314033
0.277723
0
0.008885
0.2465
3,286
105
74
31.295238
0.814216
0.019172
0
0.428571
1
0
0.069544
0
0
0
0
0
0
1
0.142857
false
0.130952
0.071429
0.047619
0.583333
0
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
1
0
0
3
3adf294aeb39b4e1253378684e526fd52c8749c6
100
py
Python
universal_app/apps.py
syz247179876/e_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
7
2021-04-10T13:20:56.000Z
2022-03-29T15:00:29.000Z
universal_app/apps.py
syz247179876/E_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
9
2021-05-11T03:53:31.000Z
2022-03-12T00:58:03.000Z
universal_app/apps.py
syz247179876/E_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
2
2020-11-24T08:59:22.000Z
2020-11-24T14:10:59.000Z
from django.apps import AppConfig class UniversalAppConfig(AppConfig): name = 'universal_app'
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
0
0
0
3
3aeb9131abdd7a6f88028738a3fd951d4c784b0c
2,189
py
Python
gll/gss.py
0x1997/gll
51b9f0491d9a55b2f827c883f2afae8aac494da9
[ "MIT" ]
null
null
null
gll/gss.py
0x1997/gll
51b9f0491d9a55b2f827c883f2afae8aac494da9
[ "MIT" ]
null
null
null
gll/gss.py
0x1997/gll
51b9f0491d9a55b2f827c883f2afae8aac494da9
[ "MIT" ]
null
null
null
# coding: utf8 # Copyright (C) 2015 Zhe Wang <0x1998@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy,...
38.403509
80
0.714025
304
2,189
5.042763
0.5
0.057404
0.033268
0.050881
0.063927
0.044357
0
0
0
0
0
0.005824
0.215624
2,189
56
81
39.089286
0.887012
0.643216
0
0
0
0
0
0
0
0
0
0.017857
0
1
0.25
false
0.0625
0
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
1
0
0
1
0
1
0
0
0
0
0
3
3af701b364937ecc337286cdf3771f1ef08f1351
752
py
Python
app.py
ryancontent/voicetranslator
5864421e1ac154dd0bb2afa730ab0cb431c1896a
[ "Apache-2.0" ]
null
null
null
app.py
ryancontent/voicetranslator
5864421e1ac154dd0bb2afa730ab0cb431c1896a
[ "Apache-2.0" ]
null
null
null
app.py
ryancontent/voicetranslator
5864421e1ac154dd0bb2afa730ab0cb431c1896a
[ "Apache-2.0" ]
null
null
null
from flask import Flask, request from call import Call app = Flask(__name__) call = Call(request=request, listen_uri='/listen', store_speech_uri='/storespeech', speak_uri='/speak') @app.route("/answer", methods=['GET', 'POST']) def answer(): return str(call.answer('caller')) @app.route("/listen/...
22.117647
65
0.68617
102
752
4.794118
0.27451
0.184049
0.114519
0.139059
0.306748
0.165644
0
0
0
0
0
0
0.128989
752
33
66
22.787879
0.746565
0
0
0
0
0
0.1875
0.0625
0
0
0
0
0
1
0.210526
false
0
0.105263
0.210526
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
c90394584fc3c2b588bb2ea97651433025c775f7
5,612
py
Python
tests/scripts/test_overlaps_nucleotides.py
palmercd/epic
33ca5290490596864260410b20a625e99139cdb1
[ "MIT" ]
26
2017-02-09T04:13:19.000Z
2021-05-07T11:53:14.000Z
tests/scripts/test_overlaps_nucleotides.py
palmercd/epic
33ca5290490596864260410b20a625e99139cdb1
[ "MIT" ]
50
2017-03-15T10:42:24.000Z
2021-05-07T11:59:05.000Z
tests/scripts/test_overlaps_nucleotides.py
palmercd/epic
33ca5290490596864260410b20a625e99139cdb1
[ "MIT" ]
5
2017-04-22T07:26:37.000Z
2018-04-11T16:57:05.000Z
# import pytest # import pandas as pd # import numpy as np # import pkg_resources, os # from collections import defaultdict # from io import StringIO # from epic.scripts.overlaps.overlaps_nucleotides import (_create_overlap_matrix_nucleotides, # _overlap_matri...
49.663717
145
0.718282
672
5,612
5.561012
0.254464
0.111319
0.17126
0.205512
0.66738
0.574793
0.149318
0.107038
0.07787
0.030506
0
0.138749
0.219173
5,612
112
146
50.107143
0.714058
0.963293
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
c904bd18323cee4fda209624fa2382f9b2362ce8
690
py
Python
web_app/models.py
ramitarora/crowdcams
c44a4527c2cf622016737233552c32b489f49cc0
[ "CC0-1.0" ]
null
null
null
web_app/models.py
ramitarora/crowdcams
c44a4527c2cf622016737233552c32b489f49cc0
[ "CC0-1.0" ]
null
null
null
web_app/models.py
ramitarora/crowdcams
c44a4527c2cf622016737233552c32b489f49cc0
[ "CC0-1.0" ]
null
null
null
from django.db import models # Create your models here. #Model to integrate UStream Videos class UstreamListing(models.Model): ustream_uid = models.IntegerField(default=0) title = models.CharField(max_length=200) is_protected = models.NullBooleanField(default=False) url = models.CharField(max_length=2...
36.315789
71
0.769565
87
690
5.965517
0.482759
0.17341
0.208092
0.277457
0.308285
0.115607
0
0
0
0
0
0.033501
0.134783
690
19
71
36.315789
0.835846
0.082609
0
0
0
0
0.019017
0
0
0
0
0
0
1
0
false
0
0.076923
0
1
0
0
0
0
null
0
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
0
0
0
0
0
1
0
0
3
c9135cb7c9bcdaa00e50208e8db28f706e629504
319
py
Python
human_json_outputer/ppl_detection_results/JSONResultLoader.py
jonathangingras/pcl-ppl-detector2
fa17727c53b101760d4594eaa87d6e5fbed6b796
[ "WTFPL" ]
null
null
null
human_json_outputer/ppl_detection_results/JSONResultLoader.py
jonathangingras/pcl-ppl-detector2
fa17727c53b101760d4594eaa87d6e5fbed6b796
[ "WTFPL" ]
null
null
null
human_json_outputer/ppl_detection_results/JSONResultLoader.py
jonathangingras/pcl-ppl-detector2
fa17727c53b101760d4594eaa87d6e5fbed6b796
[ "WTFPL" ]
null
null
null
import json from ppl_detection_results.ResultLoader import * class JSONResultLoader(ResultLoader): def __init__(self, pfileName): super(JSONResultLoader, self).__init__(pfileName) def loadSamples(self): with open(self.fileName, "r") as res_file: return json.loads(res_file.read().replace('\n', ''))["samples"]
35.444444
66
0.761755
40
319
5.775
0.7
0.060606
0
0
0
0
0
0
0
0
0
0
0.100313
319
9
66
35.444444
0.804878
0
0
0
0
0
0.03125
0
0
0
0
0
0
1
0.25
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
c9184cd4c743d4a59b4bc4a6b12db0dbc6424c68
125
py
Python
Modulo/main.py
KalawelaLo/Kattis
cbe2cc742f9902f5d325deb04fd39208774070c5
[ "Unlicense" ]
null
null
null
Modulo/main.py
KalawelaLo/Kattis
cbe2cc742f9902f5d325deb04fd39208774070c5
[ "Unlicense" ]
null
null
null
Modulo/main.py
KalawelaLo/Kattis
cbe2cc742f9902f5d325deb04fd39208774070c5
[ "Unlicense" ]
null
null
null
import sys mod_set = {} mod_set = set() for i in range(10): mod_set.add(int(sys.stdin.readline())%42) print(len(mod_set))
20.833333
45
0.68
24
125
3.375
0.666667
0.296296
0
0
0
0
0
0
0
0
0
0.037037
0.136
125
6
46
20.833333
0.712963
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
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
0
0
0
0
0
0
0
3
c91f485af2e9b8ff588648f4b923ee241b7e3ba7
89,333
py
Python
uppyyl_simulator/backend/ast/parsers/generated/uppaal_c_language_parser.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
2
2020-09-09T15:42:23.000Z
2020-11-04T17:50:57.000Z
uppyyl_simulator/backend/ast/parsers/generated/uppaal_c_language_parser.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
null
null
null
uppyyl_simulator/backend/ast/parsers/generated/uppaal_c_language_parser.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # CAVEAT UTILITOR # # This file was automatically generated by TatSu. # # https://pypi.python.org/pypi/tatsu/ # # Any changes you make to it will be overwritten the next time # the file is generated. from __future__ import generator_stop import sys from tatsu.buffer...
30.364718
559
0.501897
8,294
89,333
5.091994
0.048951
0.074255
0.1021
0.126583
0.754813
0.736178
0.646722
0.631023
0.611394
0.564251
0
0.003921
0.366203
89,333
2,941
560
30.375043
0.741995
0.01828
0
0.703533
1
0.00768
0.152875
0.010181
0
0
0
0
0
1
0.1202
false
0
0.003456
0.051075
0.176267
0.002304
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
c93f29d12fe5adf533a14118d20b14c4757e50de
446
py
Python
09Ajax/douban_selenium.py
lixiang30/SpiderProject
664cb1d89353ad40ff7880ca2785fe8c5f654e75
[ "Apache-2.0" ]
null
null
null
09Ajax/douban_selenium.py
lixiang30/SpiderProject
664cb1d89353ad40ff7880ca2785fe8c5f654e75
[ "Apache-2.0" ]
null
null
null
09Ajax/douban_selenium.py
lixiang30/SpiderProject
664cb1d89353ad40ff7880ca2785fe8c5f654e75
[ "Apache-2.0" ]
1
2020-12-24T10:16:46.000Z
2020-12-24T10:16:46.000Z
from selenium import webdriver driver = webdriver.PhantomJS() driver.get('https://www.douban.com/') driver.implicitly_wait(10) driver.find_element_by_id('form_email').clear() driver.find_element_by_id('form_email').send_keys('15116137454') driver.find_element_by_id('form_password').clear() driver.find_element_by...
44.6
66
0.800448
66
446
5.045455
0.515152
0.15015
0.255255
0.285285
0.408408
0.408408
0.408408
0
0
0
0
0.037825
0.05157
446
10
67
44.6
0.749409
0
0
0
0
0
0.223744
0
0
0
0
0
0
1
0
false
0.2
0.1
0
0.1
0.1
0
0
0
null
0
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
0
0
1
0
0
0
0
0
3