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
ee603b0141c034706e3f07537d85eb32774a2b6c
229
py
Python
value_bank/__init__.py
AngusWG/value-bank
99a9f37980d1d95e51cc06d88c36dea0aa67eb15
[ "MIT" ]
null
null
null
value_bank/__init__.py
AngusWG/value-bank
99a9f37980d1d95e51cc06d88c36dea0aa67eb15
[ "MIT" ]
null
null
null
value_bank/__init__.py
AngusWG/value-bank
99a9f37980d1d95e51cc06d88c36dea0aa67eb15
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # encoding: utf-8 from __future__ import print_function from ._version import get_versions __author__ = "AngusWG" __email__ = "z740713651@outlokk.com" __version__ = get_versions()["version"] del get_versions
20.818182
39
0.786026
29
229
5.482759
0.724138
0.207547
0
0
0
0
0
0
0
0
0
0.053922
0.10917
229
10
40
22.9
0.72549
0.144105
0
0
0
0
0.185567
0.113402
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.166667
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
1
0
0
0
0
3
ee7001597b0f104eb6fed1accd57cf3c5bcffb9c
1,169
py
Python
mara_db/sqlalchemy_engine.py
ice1e0/mara-db
2af353fda771840a8571b6e1cfbf49a4d2a157b6
[ "MIT" ]
null
null
null
mara_db/sqlalchemy_engine.py
ice1e0/mara-db
2af353fda771840a8571b6e1cfbf49a4d2a157b6
[ "MIT" ]
null
null
null
mara_db/sqlalchemy_engine.py
ice1e0/mara-db
2af353fda771840a8571b6e1cfbf49a4d2a157b6
[ "MIT" ]
null
null
null
import functools import sqlalchemy.engine import sqlalchemy.sql.schema import mara_db.dbs @functools.singledispatch def engine(db: object) -> sqlalchemy.engine.Engine: """ Returns a sql alchemy engine for a configured database connection Args: db: The database to use (either an alias or a `dbs....
24.87234
94
0.688623
154
1,169
5.045455
0.37013
0.054054
0.081081
0.07722
0.199485
0
0
0
0
0
0
0.002066
0.171942
1,169
46
95
25.413043
0.80062
0.238666
0
0
0
0.047619
0.260047
0.096927
0
0
0
0
0
1
0.238095
false
0.095238
0.190476
0.142857
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
0
0
0
3
ee793970f77bda72d604383544d92e8a116185fc
131
py
Python
dynamic_data_render/urls.py
dark0ghost/tp_django_react_test
86df391c272e17b45a1595c7c3536c535055119f
[ "MIT" ]
2
2021-06-13T17:29:02.000Z
2021-11-29T08:18:20.000Z
dynamic_data_render/urls.py
dark0ghost/rgram
e459fe7ba1542993473bc0eb2c610d7f7d433d6d
[ "MIT" ]
1
2021-04-15T20:14:36.000Z
2021-04-15T20:14:36.000Z
dynamic_data_render/urls.py
dark0ghost/rgram
e459fe7ba1542993473bc0eb2c610d7f7d433d6d
[ "MIT" ]
null
null
null
from django.urls import path from dynamic_data_render.views import send_image urlpatterns = [ path("<name>", send_image), ]
16.375
48
0.740458
18
131
5.166667
0.722222
0.193548
0
0
0
0
0
0
0
0
0
0
0.160305
131
7
49
18.714286
0.845455
0
0
0
0
0
0.045802
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
ee89f9238e4bf1fa07465f1d3897f2ef3d3c645a
705
py
Python
03 - The Infrastructure as Code; the naked truth/Python/test_redis.py
CloudGenVR/CodeGen2018
d8cb1a3bbef449728e5bf9797f3cc5a455b5f239
[ "MIT" ]
1
2018-09-24T14:36:56.000Z
2018-09-24T14:36:56.000Z
03 - The Infrastructure as Code; the naked truth/Python/test_redis.py
cloudgenverona/CodeGen2018
d8cb1a3bbef449728e5bf9797f3cc5a455b5f239
[ "MIT" ]
null
null
null
03 - The Infrastructure as Code; the naked truth/Python/test_redis.py
cloudgenverona/CodeGen2018
d8cb1a3bbef449728e5bf9797f3cc5a455b5f239
[ "MIT" ]
1
2018-09-25T07:46:00.000Z
2018-09-25T07:46:00.000Z
### Test Runner command # testinfra -v test_redis.py def test_redis_is_installed(Package): redis = Package("redis-server") assert redis.is_installed def test_config_file(File): config_file = File('/etc/redis/redis.conf') assert config_file.contains('bind 127.0.0.1') # todo make it a regex assert...
25.178571
73
0.716312
102
705
4.764706
0.392157
0.072016
0.065844
0.024691
0
0
0
0
0
0
0
0.028862
0.164539
705
28
74
25.178571
0.796265
0.095035
0
0
0
0
0.153239
0.033175
0
0
0
0.035714
0.411765
1
0.294118
false
0
0
0
0.294118
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
1
0
1
0
0
0
0
0
0
0
3
ee8d47a6894e7c762093da8b3fe05766d2ec7206
601
py
Python
vdo_ops/tests/helper/util.py
rackerlabs/vdo-ops
cd077a4c446eaf2c4cdd2dec81e5101088f8bfec
[ "Apache-2.0", "MIT" ]
null
null
null
vdo_ops/tests/helper/util.py
rackerlabs/vdo-ops
cd077a4c446eaf2c4cdd2dec81e5101088f8bfec
[ "Apache-2.0", "MIT" ]
1
2020-07-15T16:02:50.000Z
2020-07-24T15:15:18.000Z
vdo_ops/tests/helper/util.py
rackerlabs/vdo-ops
cd077a4c446eaf2c4cdd2dec81e5101088f8bfec
[ "Apache-2.0", "MIT" ]
null
null
null
import json import os from typing import Dict from mock import Mock def load_json_file(path: str) -> Dict: with open(os.path.join(os.path.dirname(__file__), f"../{path}")) as f: return json.load(f) def to_mock(behaviors: Dict): """ util.mock({"json()": something}) is the same as Mock(**{"js...
21.464286
79
0.645591
83
601
4.518072
0.445783
0.032
0
0
0
0
0
0
0
0
0
0
0.202995
601
27
80
22.259259
0.782881
0.193012
0
0
0
0
0.052516
0
0
0
0
0
0
1
0.25
false
0
0.333333
0.083333
0.833333
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
c9a3c3a560a58aa9f52f64e1220025a6b1c5e71c
394
py
Python
tests/models/test_stat_result.py
VikaZorenko/psycho-server
e3f7ea61c02b152d48eee58a02c4099ec585e7b5
[ "MIT" ]
null
null
null
tests/models/test_stat_result.py
VikaZorenko/psycho-server
e3f7ea61c02b152d48eee58a02c4099ec585e7b5
[ "MIT" ]
8
2020-06-06T01:52:22.000Z
2022-02-10T10:30:11.000Z
tests/models/test_stat_result.py
VikaZorenko/psycho-server
e3f7ea61c02b152d48eee58a02c4099ec585e7b5
[ "MIT" ]
null
null
null
from django.db import models from utils.models.base_model import BaseModel class TestStatResult(BaseModel): test_result = models.ForeignKey('tests.TestResult', on_delete=models.CASCADE, related_name='test_stat_results') test_stat = models.ForeignKey('tests.TestStat', on_delete=models.CASCADE, related_name='te...
43.777778
115
0.799492
52
394
5.846154
0.576923
0.078947
0.138158
0.138158
0.309211
0.309211
0.309211
0.309211
0.309211
0
0
0.002809
0.096447
394
8
116
49.25
0.851124
0
0
0
0
0
0.162437
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
c9a73b0413a027ccd7321ef212827d48b719d390
1,263
py
Python
synapse/util/__init__.py
uroborus/synapse
270825ab2a3e16bb8ffcdbcea058efd28a38e8e1
[ "Apache-2.0" ]
1
2021-09-09T08:50:20.000Z
2021-09-09T08:50:20.000Z
synapse/util/__init__.py
uroborus/synapse
270825ab2a3e16bb8ffcdbcea058efd28a38e8e1
[ "Apache-2.0" ]
null
null
null
synapse/util/__init__.py
uroborus/synapse
270825ab2a3e16bb8ffcdbcea058efd28a38e8e1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
30.071429
75
0.704671
181
1,263
4.895028
0.624309
0.06772
0.029345
0.036117
0.074492
0.074492
0.074492
0
0
0
0
0.013026
0.209818
1,263
41
76
30.804878
0.87475
0.667458
0
0
0
0
0
0
0
0
0
0.02439
0
1
0.363636
false
0
0.181818
0.090909
0.909091
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
0
1
0
0
3
c9b98f7a07ac49b8b4efbd803c8f2ffc48e856cb
79
py
Python
LearningCode/1_helloWorld.py
jercas/PythonCrashCourse
464cf1dfa4c33adc73e15e15a37da94da0912e19
[ "Apache-2.0" ]
1
2017-07-03T09:41:22.000Z
2017-07-03T09:41:22.000Z
LearningCode/1_helloWorld.py
jercas/PythonCrashCourse
464cf1dfa4c33adc73e15e15a37da94da0912e19
[ "Apache-2.0" ]
null
null
null
LearningCode/1_helloWorld.py
jercas/PythonCrashCourse
464cf1dfa4c33adc73e15e15a37da94da0912e19
[ "Apache-2.0" ]
null
null
null
#2017.4.7 jercas = "hello python world" print("welcome,"+jercas.title()+"!\n")
19.75
38
0.658228
12
79
4.333333
0.916667
0
0
0
0
0
0
0
0
0
0
0.083333
0.088608
79
3
39
26.333333
0.638889
0.101266
0
0
0
0
0.414286
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
c9be2ee85869391224fee8afdd9b1ec6e3bc8aed
14,472
py
Python
users/tests/test_views.py
Dheavyman/airtech-flight
e6eea7a121d0b372164492532358cd566112285a
[ "MIT" ]
null
null
null
users/tests/test_views.py
Dheavyman/airtech-flight
e6eea7a121d0b372164492532358cd566112285a
[ "MIT" ]
8
2020-02-11T23:48:18.000Z
2022-03-11T23:43:47.000Z
users/tests/test_views.py
Dheavyman/airtech-flight
e6eea7a121d0b372164492532358cd566112285a
[ "MIT" ]
null
null
null
import tempfile from PIL import Image from unittest import mock from shutil import rmtree from django.core.files.storage import FileSystemStorage from django.urls import reverse from django.test import override_settings from rest_framework.test import APITestCase, APIClient from rest_framework.views import status fr...
42.315789
99
0.630873
1,571
14,472
5.620624
0.117759
0.098528
0.071008
0.059117
0.788109
0.755606
0.697848
0.678369
0.660476
0.641789
0
0.01347
0.24081
14,472
341
100
42.439883
0.790207
0.034135
0
0.559387
0
0
0.187009
0.016058
0
0
0
0
0.245211
1
0.088123
false
0.130268
0.042146
0
0.16092
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
c9c57a896b3af37ef7a4a1ad5797abd0897ae428
135
py
Python
py_tdlib/constructors/bot_info.py
Mr-TelegramBot/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
24
2018-10-05T13:04:30.000Z
2020-05-12T08:45:34.000Z
py_tdlib/constructors/bot_info.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
3
2019-06-26T07:20:20.000Z
2021-05-24T13:06:56.000Z
py_tdlib/constructors/bot_info.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
5
2018-10-05T14:29:28.000Z
2020-08-11T15:04:10.000Z
from ..factory import Type class botInfo(Type): description = None # type: "string" commands = None # type: "vector<botCommand>"
19.285714
46
0.696296
16
135
5.875
0.75
0.170213
0
0
0
0
0
0
0
0
0
0
0.177778
135
6
47
22.5
0.846847
0.303704
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
c9fcef1c864f8b2093498cbd7b7228ec21e893bb
82
py
Python
waybackscraper/exceptions.py
abrenaut/waybackscraper
a77e9756b0b7181a0cc28f87270064dbc49f3ba6
[ "MIT" ]
36
2016-06-14T14:34:29.000Z
2021-10-17T19:23:11.000Z
waybackscraper/exceptions.py
abrenaut/waybackscraper
a77e9756b0b7181a0cc28f87270064dbc49f3ba6
[ "MIT" ]
3
2016-06-15T15:28:43.000Z
2019-01-19T05:48:21.000Z
waybackscraper/exceptions.py
abrenaut/waybackscraper
a77e9756b0b7181a0cc28f87270064dbc49f3ba6
[ "MIT" ]
8
2016-07-07T21:20:37.000Z
2020-10-01T17:57:09.000Z
# -*- coding: utf-8 -*- class ScrapeError(Exception): """scraping Failed"""
13.666667
29
0.597561
8
82
6.125
1
0
0
0
0
0
0
0
0
0
0
0.014925
0.182927
82
5
30
16.4
0.716418
0.463415
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
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
1
0
0
0
0
0
0
3
a021302fe86eb5f76b5d5ae24e098f004a8f28cb
353
py
Python
tarkov/quests/container.py
JustEmuTarkov/jet_py
2f352b5e6f5d88594d08afc46e9458e919271788
[ "MIT" ]
14
2021-02-24T02:32:48.000Z
2022-01-03T05:51:45.000Z
tarkov/quests/container.py
JustEmuTarkov/jet_py
2f352b5e6f5d88594d08afc46e9458e919271788
[ "MIT" ]
1
2021-03-08T09:02:29.000Z
2021-03-08T09:02:29.000Z
tarkov/quests/container.py
JustEmuTarkov/jet_py
2f352b5e6f5d88594d08afc46e9458e919271788
[ "MIT" ]
4
2021-04-14T01:47:01.000Z
2021-11-29T02:18:32.000Z
from dependency_injector import containers, providers from server import db_dir from tarkov.quests.repositories import QuestsRepository class QuestsContainer(containers.DeclarativeContainer): repository: providers.Provider[QuestsRepository] = providers.Singleton( QuestsRepository, quests_path=db_dir.join...
32.090909
75
0.807365
36
353
7.805556
0.638889
0.035587
0
0
0
0
0
0
0
0
0
0
0.11898
353
10
76
35.3
0.903537
0
0
0
0
0
0.03966
0
0
0
0
0
0
1
0
true
0
0.428571
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
a02256ba0caf478602fc7b4bbeda6e3614d7e02c
3,486
py
Python
app/models.py
abhishekgupta5/gofers
1f1e07ac5046a17bcf2d83d01b82e883d175fbb1
[ "MIT" ]
null
null
null
app/models.py
abhishekgupta5/gofers
1f1e07ac5046a17bcf2d83d01b82e883d175fbb1
[ "MIT" ]
null
null
null
app/models.py
abhishekgupta5/gofers
1f1e07ac5046a17bcf2d83d01b82e883d175fbb1
[ "MIT" ]
null
null
null
#app/models.py from flask import current_app from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from app import db from app import login_manager class User(UserMixin, db.Model): ''' ...
33.2
80
0.654618
436
3,486
5.082569
0.243119
0.048736
0.027076
0.056859
0.425542
0.36417
0.322653
0.322653
0.322653
0.267148
0
0.007576
0.242685
3,486
104
81
33.519231
0.831818
0.115032
0
0.421053
1
0
0.05809
0
0
0
0
0
0
1
0.144737
false
0.144737
0.078947
0.026316
0.539474
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
4e97df6adf0f84889919498ac9bfeeab189e426e
41
py
Python
__init__.py
d04943016/ColorScience
b874d70c217249ec47a6017b47c5e3ca2008a6a8
[ "MIT" ]
null
null
null
__init__.py
d04943016/ColorScience
b874d70c217249ec47a6017b47c5e3ca2008a6a8
[ "MIT" ]
null
null
null
__init__.py
d04943016/ColorScience
b874d70c217249ec47a6017b47c5e3ca2008a6a8
[ "MIT" ]
null
null
null
# pakage # __init__.py __all__ = []
8.2
14
0.560976
4
41
3.75
1
0
0
0
0
0
0
0
0
0
0
0
0.292683
41
4
15
10.25
0.517241
0.439024
0
0
0
0
0
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
4ecb88133595e737a5495e6eec5d58aae4e724db
194
py
Python
users/urls.py
doctsystems/jaguarete-ecommerce
89e3868885297c13e77c02093fdc5aefa2a2a827
[ "MIT" ]
null
null
null
users/urls.py
doctsystems/jaguarete-ecommerce
89e3868885297c13e77c02093fdc5aefa2a2a827
[ "MIT" ]
null
null
null
users/urls.py
doctsystems/jaguarete-ecommerce
89e3868885297c13e77c02093fdc5aefa2a2a827
[ "MIT" ]
1
2021-07-01T17:09:10.000Z
2021-07-01T17:09:10.000Z
from django.urls import path from .views import Registro, Dashboard urlpatterns = [ path('register/', Registro, name='register'), path('dashboard/', Dashboard.as_view(), name='dashboard'), ]
24.25
59
0.726804
23
194
6.086957
0.565217
0
0
0
0
0
0
0
0
0
0
0
0.113402
194
8
60
24.25
0.813953
0
0
0
0
0
0.184615
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
14cf6a4a9f4d0c01e2b190aa8a622ce64bd6cbc6
398
py
Python
build/lib/MHDataLearn/__init__.py
kaungmyatwaiyan/MHDataLearn
9121557e1768be62af65c776e5926872eb092e3a
[ "MIT" ]
null
null
null
build/lib/MHDataLearn/__init__.py
kaungmyatwaiyan/MHDataLearn
9121557e1768be62af65c776e5926872eb092e3a
[ "MIT" ]
null
null
null
build/lib/MHDataLearn/__init__.py
kaungmyatwaiyan/MHDataLearn
9121557e1768be62af65c776e5926872eb092e3a
[ "MIT" ]
1
2022-01-26T13:23:47.000Z
2022-01-26T13:23:47.000Z
# -*- coding: utf-8 -*- """ This package contains tools to: preprocess raw Mental Health Services Data Set (MHSDS) data in preparation for analysis, train classification machine learning models and select the best performing model, and apply the selected model to new, preprocessed MHSDS data to identify people at high ...
36.181818
60
0.79397
55
398
5.745455
0.854545
0.056962
0
0
0
0
0
0
0
0
0
0.00295
0.148241
398
11
61
36.181818
0.929204
0.841709
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
14d3c2e25e8f399c8a1c497247c10b237c8435aa
351
py
Python
sample_config.py
AASFCYBERKING/Image-Editor
5f16381691302dc4d0570f7a2052cebbf1bd85e4
[ "MIT" ]
null
null
null
sample_config.py
AASFCYBERKING/Image-Editor
5f16381691302dc4d0570f7a2052cebbf1bd85e4
[ "MIT" ]
null
null
null
sample_config.py
AASFCYBERKING/Image-Editor
5f16381691302dc4d0570f7a2052cebbf1bd85e4
[ "MIT" ]
null
null
null
import os class Config(object): TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "") APP_ID = int(os.environ.get("APP_ID", 12345)) API_HASH = os.environ.get("API_HASH", "") BOT_USERNAME = os.environ.get("BOT_USERNAME", "") OWNER_ID = os.environ.get("OWNER_ID", "") SUPPORT_CHAT = os.enviro...
19.5
53
0.62963
51
351
4.058824
0.392157
0.26087
0.347826
0
0
0
0
0
0
0
0
0.017606
0.190883
351
17
54
20.647059
0.711268
0
0
0
0
0
0.165242
0
0
0
0
0
0
1
0
false
0
0.125
0
1
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
14ed30465d6b45f758adc78870fe64a63181e606
673
py
Python
imagelib/__init__.py
Topaz1618/Plasticine
e436798653ae8668b5e7dad2eb2dea3c06fba18b
[ "MIT" ]
null
null
null
imagelib/__init__.py
Topaz1618/Plasticine
e436798653ae8668b5e7dad2eb2dea3c06fba18b
[ "MIT" ]
null
null
null
imagelib/__init__.py
Topaz1618/Plasticine
e436798653ae8668b5e7dad2eb2dea3c06fba18b
[ "MIT" ]
null
null
null
from .estimate_sharpness import estimate_sharpness from .equalize_and_stack_square import equalize_and_stack_square from .text import get_text_image from .text import get_draw_text_lines from .draw import draw_polygon from .draw import draw_rect from .morph import morph_by_points from .warp import gen_warp_params f...
24.925926
64
0.860327
101
673
5.405941
0.356436
0.119048
0.093407
0.126374
0
0
0
0
0
0
0
0
0.114413
673
27
65
24.925926
0.916107
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
14f7950898f08d35af88424fc850c0d26ba5b84b
166,196
py
Python
psx/_dump_/3/_dump_ida_/make_psx.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
15
2018-06-28T01:11:25.000Z
2021-09-27T15:57:18.000Z
psx/_dump_/3/_dump_ida_/make_psx.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-29T04:08:23.000Z
2019-10-17T13:57:22.000Z
psx/_dump_/3/_dump_ida_/make_psx.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-28T01:11:34.000Z
2020-05-23T09:21:48.000Z
set_name(0x8007D77C, "GetTpY__FUs", SN_NOWARN) set_name(0x8007D798, "GetTpX__FUs", SN_NOWARN) set_name(0x8007D7A4, "Remove96__Fv", SN_NOWARN) set_name(0x8007D7DC, "AppMain", SN_NOWARN) set_name(0x8007D884, "MAIN_RestartGameTask__Fv", SN_NOWARN) set_name(0x8007D8B0, "GameTask__FP4TASK", SN_NOWARN) set_name(0x8007D948, "...
53.165707
94
0.830772
21,522
166,196
5.914041
0.300623
0.171862
0.269983
0.368159
0.252769
0.011722
0.000456
0.000456
0
0
0
0.169537
0.056409
166,196
3,125
95
53.18272
0.642102
0
0
0
0
0
0.323088
0.157772
0
0
0.188031
0
0.00064
1
0
true
0.00064
0.00032
0
0.00032
0.00128
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
1
0
0
0
0
0
0
3
091995529c13885d1b6776ba1c3a859601e59b20
227
py
Python
pixel_table/output.py
Spooner/pixel-table
87ac04adbb74702bee3dcaa5c6bded7786cf73e7
[ "MIT" ]
null
null
null
pixel_table/output.py
Spooner/pixel-table
87ac04adbb74702bee3dcaa5c6bded7786cf73e7
[ "MIT" ]
null
null
null
pixel_table/output.py
Spooner/pixel-table
87ac04adbb74702bee3dcaa5c6bded7786cf73e7
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals class Output(object): NEO_PIXELS = "neo_pixels" CONSOLE = "console" UNICORN = "unicorn" ALL = (CONSOLE, NEO_PIXELS, UNICORN)
22.7
82
0.726872
26
227
5.961538
0.653846
0.174194
0
0
0
0
0
0
0
0
0
0
0.185022
227
9
83
25.222222
0.837838
0
0
0
0
0
0.105727
0
0
0
0
0
0
1
0
false
0
0.166667
0
1
0.166667
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
092b7fdedc158a8c0dbcb733e98fdf00867ba5f4
162
py
Python
2057.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
6
2021-04-13T00:33:43.000Z
2022-02-10T10:23:59.000Z
2057.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
null
null
null
2057.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
3
2021-03-23T18:42:24.000Z
2022-02-10T10:24:07.000Z
a, b, c = [int(x) for x in input().split()] a = a if a != 0 else 24 b = b if b != 0 else 24 c = c if c != 0 else 24 s = a + b + c print(s - 24 if s >= 24 else s)
23.142857
43
0.5
43
162
1.883721
0.348837
0.185185
0.259259
0
0
0
0
0
0
0
0
0.118182
0.320988
162
6
44
27
0.618182
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
1
null
0
1
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
093ac67c272190ef2d9df80d7890cf1a213601aa
6,192
py
Python
tests/test_url.py
nullripper/validators
e817f4cba8c68b5c3a447ab3a714dae3f3c60cd9
[ "MIT" ]
null
null
null
tests/test_url.py
nullripper/validators
e817f4cba8c68b5c3a447ab3a714dae3f3c60cd9
[ "MIT" ]
null
null
null
tests/test_url.py
nullripper/validators
e817f4cba8c68b5c3a447ab3a714dae3f3c60cd9
[ "MIT" ]
7
2020-03-06T17:08:52.000Z
2021-04-27T06:07:09.000Z
# -*- coding: utf-8 -*- import pytest from validators import url, ValidationFailure @pytest.mark.parametrize('address', [ u'http://foobar.dk', u'http://foobar.museum/foobar', u'http://fo.com', u'http://FOO.com', u'http://foo.com/blah_blah', u'http://foo.com/blah_blah/', u'http://foo.com/b...
33.836066
79
0.589793
935
6,192
3.868449
0.166845
0.105059
0.118607
0.168095
0.66298
0.579486
0.491291
0.397014
0.351673
0.267349
0
0.075408
0.13905
6,192
182
80
34.021978
0.600825
0.003391
0
0.05848
0
0
0.661858
0.023667
0
0
0
0
0.023392
1
0.023392
false
0.070175
0.011696
0
0.035088
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
1
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
094f84c62e0bd3b9fbfd8a0465e8730e996edec3
2,764
py
Python
bubuku/aws/cluster_config.py
zalando-nakadi/bubuku
5738cc9309ed46e86fcad41b6fb580ddd69af8fd
[ "MIT" ]
32
2017-10-17T09:59:46.000Z
2022-01-23T11:39:31.000Z
bubuku/aws/cluster_config.py
zalando-nakadi/bubuku
5738cc9309ed46e86fcad41b6fb580ddd69af8fd
[ "MIT" ]
91
2017-07-13T15:43:15.000Z
2022-02-21T13:06:35.000Z
bubuku/aws/cluster_config.py
zalando-nakadi/bubuku
5738cc9309ed46e86fcad41b6fb580ddd69af8fd
[ "MIT" ]
3
2018-04-19T13:13:00.000Z
2018-09-11T05:59:38.000Z
import requests import yaml _ARTIFACT_NAME = 'bubuku-appliance' class ConfigLoader(): def load_config(self) -> dict: pass class AwsInstanceUserDataLoader(ConfigLoader): def load_config(self): return yaml.load(requests.get('http://169.254.169.254/latest/user-data').text) class ClusterConfi...
28.494845
112
0.677279
374
2,764
4.590909
0.171123
0.111823
0.153757
0.104834
0.280722
0.213162
0.086779
0
0
0
0
0.006016
0.218162
2,764
96
113
28.791667
0.788524
0
0
0
0
0
0.133502
0.014472
0
0
0
0
0
1
0.378788
false
0.015152
0.030303
0.227273
0.681818
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
096069345bc39c87d74fa12755b703386614eddf
250
py
Python
setup.py
matthewkirby/sampleCodeRepo
475ac7e5e8dc9af404a5b2e988c43f03b2d3f624
[ "MIT" ]
null
null
null
setup.py
matthewkirby/sampleCodeRepo
475ac7e5e8dc9af404a5b2e988c43f03b2d3f624
[ "MIT" ]
null
null
null
setup.py
matthewkirby/sampleCodeRepo
475ac7e5e8dc9af404a5b2e988c43f03b2d3f624
[ "MIT" ]
null
null
null
from distutils.core import setup setup(name='samplePKG', version='1.0', description='Performs basic math functions', author='Matthew Kirby', author_email='matthewkirby@email.arizona.edu', packages=['samplePKG'], )
25
52
0.664
27
250
6.111111
0.851852
0
0
0
0
0
0
0
0
0
0
0.01005
0.204
250
9
53
27.777778
0.819095
0
0
0
0
0
0.372
0.12
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
1172513c326f49200252b51f47fe6b8129e666ca
3,068
py
Python
Ago-Dic-2021/viera-rodriguez-david/Practica4/Builder2/normal.py
AnhellO/DAS_Sistemas
07b4eca78357d02d225d570033d05748d91383e3
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2021/viera-rodriguez-david/Practica4/Builder2/normal.py
AnhellO/DAS_Sistemas
07b4eca78357d02d225d570033d05748d91383e3
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2021/viera-rodriguez-david/Practica4/Builder2/normal.py
AnhellO/DAS_Sistemas
07b4eca78357d02d225d570033d05748d91383e3
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
import abc from unittest.main import main class Bike: def __init__(self, seats=None, wheels=None, pedals = None , handle =None) -> None: self.seats = seats self.wheels = wheels self.pedals = pedals self.handle = handle def set_seats(self, seats): self.seats = seats ...
23.419847
116
0.634615
404
3,068
4.55198
0.091584
0.078303
0.078303
0.06199
0.616096
0.450788
0.364328
0.33714
0.17292
0.128331
0
0.001342
0.271186
3,068
130
117
23.6
0.821109
0.023142
0
0.736264
0
0
0.002674
0
0
0
0
0
0
1
0.373626
false
0.065934
0.021978
0.021978
0.472527
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
117f54f54a949f515acb2799029af171fd960f31
70
py
Python
tab.py
wards21-meet/meet2019y1lab4
e9f78bd4f1a6011b65e56d7f00035b154bb20606
[ "MIT" ]
null
null
null
tab.py
wards21-meet/meet2019y1lab4
e9f78bd4f1a6011b65e56d7f00035b154bb20606
[ "MIT" ]
null
null
null
tab.py
wards21-meet/meet2019y1lab4
e9f78bd4f1a6011b65e56d7f00035b154bb20606
[ "MIT" ]
null
null
null
tab = False if tab: print('chocolate') print('tabs are cool')
14
26
0.614286
10
70
4.3
0.8
0
0
0
0
0
0
0
0
0
0
0
0.242857
70
4
27
17.5
0.811321
0
0
0
0
0
0.314286
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
1197d812583785c2031b34b9af9191f33a4b4477
1,072
py
Python
base/email.py
francofgp/Syndeo
888a1001f2cbb2ff8b7247e84a2899dcbd08af80
[ "MIT" ]
3
2022-01-04T17:38:04.000Z
2022-01-05T12:45:22.000Z
base/email.py
francofgp/Syndeo
888a1001f2cbb2ff8b7247e84a2899dcbd08af80
[ "MIT" ]
null
null
null
base/email.py
francofgp/Syndeo
888a1001f2cbb2ff8b7247e84a2899dcbd08af80
[ "MIT" ]
null
null
null
""" Acá se configurar todos los html, para darle formato a los emails Se crea un template en html, en la carpeta de backend/template, con los siguientes nombres https://github.com/sunscrapers/djoser/tree/master/djoser/templates/email luego se crea una clase para cada uno: como abajo y se debe agregar en el setting...
32.484848
91
0.772388
128
1,072
6.4375
0.554688
0.058252
0
0
0
0
0
0
0
0
0
0.008715
0.143657
1,072
33
92
32.484848
0.888889
0.592351
0
0
0
0
0.174825
0.058275
0
0
0
0.030303
0
1
0
false
0.444444
0.111111
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
1
0
0
0
0
1
0
0
1
0
0
3
11c15266fdf6b7091a34f7f386fa673b63fbb178
490
py
Python
django_conneg/utils.py
ox-it/django-conneg
0af7d1fb37a4c384179374027df327471ad0534c
[ "BSD-3-Clause" ]
null
null
null
django_conneg/utils.py
ox-it/django-conneg
0af7d1fb37a4c384179374027df327471ad0534c
[ "BSD-3-Clause" ]
2
2017-09-01T09:18:42.000Z
2019-04-03T08:40:35.000Z
django_conneg/utils.py
ox-it/django-conneg
0af7d1fb37a4c384179374027df327471ad0534c
[ "BSD-3-Clause" ]
2
2016-05-03T19:06:48.000Z
2017-09-01T08:22:47.000Z
try: from pytz import utc except ImportError: import datetime class _UTC(datetime.tzinfo): def utcoffset(self, dt): return datetime.timedelta(0) def dst(self, dt): return datetime.timedelta(0) def tzname(self, dt): return "UTC" utc = _UTC...
25.789474
113
0.655102
59
490
5.288136
0.559322
0.057692
0.115385
0.128205
0.211538
0.211538
0.211538
0
0
0
0
0.00551
0.259184
490
18
114
27.222222
0.853994
0
0
0.133333
0
0
0.063265
0
0
0
0
0
0
1
0.2
false
0
0.333333
0.2
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
3
11c29df7d5fcf7537123fe10419e3ca4b8af76cb
289
py
Python
leaguepedia_parser/__init__.py
mrtolkien/leaguepedia_parser
74c59e3cbab082755abcfc6f0b71b7f57248d4e7
[ "MIT" ]
50
2020-03-26T17:08:26.000Z
2022-03-31T18:40:55.000Z
leaguepedia_parser/__init__.py
mrtolkien/leaguepedia_parser
74c59e3cbab082755abcfc6f0b71b7f57248d4e7
[ "MIT" ]
13
2020-07-21T01:35:49.000Z
2022-03-31T17:57:46.000Z
leaguepedia_parser/__init__.py
mrtolkien/leaguepedia_parser
74c59e3cbab082755abcfc6f0b71b7f57248d4e7
[ "MIT" ]
17
2020-04-01T04:04:15.000Z
2021-12-04T07:50:26.000Z
from leaguepedia_parser.parsers.game_parser import ( get_regions, get_tournaments, get_games, get_game_details, ) from leaguepedia_parser.parsers.team_parser import ( get_team_logo, get_long_team_name_from_trigram, get_team_thumbnail, get_all_team_assets )
22.230769
52
0.775087
39
289
5.205128
0.487179
0.147783
0.206897
0.275862
0
0
0
0
0
0
0
0
0.17301
289
12
53
24.083333
0.849372
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
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
1
0
0
0
0
0
0
3
11c31f30c05fffdace2382ed403d67fd941ab410
672
py
Python
GServer/utils/utils.py
soybean217/lora-python
9c4324f81bae8b20f6c353447189f724a5cf54c6
[ "MIT" ]
null
null
null
GServer/utils/utils.py
soybean217/lora-python
9c4324f81bae8b20f6c353447189f724a5cf54c6
[ "MIT" ]
null
null
null
GServer/utils/utils.py
soybean217/lora-python
9c4324f81bae8b20f6c353447189f724a5cf54c6
[ "MIT" ]
null
null
null
import random from datetime import datetime, timezone import pytz from binascii import hexlify def get_random_token(): return random.getrandbits(16).to_bytes(length=2, byteorder='little') def endian_reverse(addr): return int.to_bytes(int.from_bytes(addr, byteorder='big'), byteorder='little', length=4) def...
23.172414
92
0.703869
103
672
4.378641
0.533981
0.031042
0.035477
0.044346
0.062084
0
0
0
0
0
0
0.042328
0.15625
672
29
93
23.172414
0.753086
0
0
0
0
0
0.105498
0.071322
0
0
0
0
0
1
0.210526
false
0
0.263158
0.157895
0.684211
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
11e2e123870531798b14eecb2d02c2d70d759330
379
py
Python
activation.py
philippwirth/treelangrnn
e54f59b11a6dac2a88d4c37c76318282857d5f74
[ "BSD-3-Clause" ]
null
null
null
activation.py
philippwirth/treelangrnn
e54f59b11a6dac2a88d4c37c76318282857d5f74
[ "BSD-3-Clause" ]
null
null
null
activation.py
philippwirth/treelangrnn
e54f59b11a6dac2a88d4c37c76318282857d5f74
[ "BSD-3-Clause" ]
1
2021-02-21T12:49:02.000Z
2021-02-21T12:49:02.000Z
import torch import torch.nn as nn def log_sigmoid(x): # input: x of shape (nsamples + 1) x n # output: loss (i.e. mean of pos - neg) y = torch.nn.functional.logsigmoid(x) return (-y[0] + y[1:].sum(0)).mean() def log_softmax(x): # input: x of shape (nsamples + 1) x n # output: loss (i.e. mean of pos - neg) ...
23.6875
60
0.646438
72
379
3.361111
0.402778
0.086777
0.057851
0.07438
0.404959
0.404959
0.404959
0.404959
0.404959
0.404959
0
0.022581
0.182058
379
16
60
23.6875
0.758065
0.39314
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0.142857
0.857143
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
11fac2c67ed73c8f90b239b07299271187ffa95a
4,045
py
Python
generating/builder.py
LuckyDenis/DesignPatterns
51dfc995014493283cde2c017727e50816c50591
[ "MIT" ]
null
null
null
generating/builder.py
LuckyDenis/DesignPatterns
51dfc995014493283cde2c017727e50816c50591
[ "MIT" ]
null
null
null
generating/builder.py
LuckyDenis/DesignPatterns
51dfc995014493283cde2c017727e50816c50591
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- """ Имя: Строитель (Builder) Тип: Порождающий объекты. Суть: Разделяет создания сложного объекта и инцилизацию его состояние так, что одинаковый процесс построения может создать объекты с разными состояниям. От абстрактной фабрики отличается тем, что делате акцент на пошаговом констрировании об...
22.225275
85
0.642522
448
4,045
5.551339
0.227679
0.064335
0.067551
0.041013
0.456775
0.321673
0.294331
0.267793
0.267793
0.267793
0
0.001001
0.259085
4,045
181
86
22.348066
0.828829
0.144623
0
0.582524
0
0
0.07978
0.009283
0
0
0
0
0
1
0.320388
false
0
0
0.165049
0.61165
0.019417
0
0
0
null
0
0
0
0
0
0
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
eeafb2fb3146860c74eb240e01809f750531ff11
3,953
py
Python
exercises/practice/ocr-numbers/ocr_numbers_test.py
highb/python
5cf63f0a070e0efef4d2334582d331296100fbb0
[ "MIT" ]
1,177
2017-06-21T20:24:06.000Z
2022-03-29T02:30:55.000Z
exercises/practice/ocr-numbers/ocr_numbers_test.py
highb/python
5cf63f0a070e0efef4d2334582d331296100fbb0
[ "MIT" ]
1,890
2017-06-18T20:06:10.000Z
2022-03-31T18:35:51.000Z
exercises/practice/ocr-numbers/ocr_numbers_test.py
highb/python
5cf63f0a070e0efef4d2334582d331296100fbb0
[ "MIT" ]
1,095
2017-06-26T23:06:19.000Z
2022-03-29T03:25:38.000Z
import unittest from ocr_numbers import ( convert, ) # Tests adapted from `problem-specifications//canonical-data.json` class OcrNumbersTest(unittest.TestCase): def test_recognizes_0(self): self.assertEqual(convert([" _ ", "| |", "|_|", " "]), "0") def test_recognizes_1(self): self.as...
31.624
92
0.402479
277
3,953
5.140794
0.285199
0.20014
0.20014
0.273876
0.301966
0.301966
0.238764
0.203652
0.203652
0.203652
0
0.029359
0.439919
3,953
124
93
31.879032
0.613821
0.01619
0
0.330097
0
0
0.192436
0
0
0
0
0
0.203884
1
0.165049
false
0
0.019417
0
0.194175
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
eebc1f953ff91fd4e0069bdf6554a9b59e1605e9
205
py
Python
user_id.py
maiconloure/Learning_Python
2999508909ace5f8ca0708cdea93b82abaaeafb2
[ "MIT" ]
null
null
null
user_id.py
maiconloure/Learning_Python
2999508909ace5f8ca0708cdea93b82abaaeafb2
[ "MIT" ]
null
null
null
user_id.py
maiconloure/Learning_Python
2999508909ace5f8ca0708cdea93b82abaaeafb2
[ "MIT" ]
null
null
null
name_for_user_id = { 321: "Alice", 560: "Bob", 875: "Dilbert" } def gretting(userid): return f"Hi {name_for_user_id.get(userid, 'there')}!" print(gretting(321)) print(greetting(872132))
15.769231
57
0.643902
29
205
4.344828
0.724138
0.111111
0.174603
0.206349
0
0
0
0
0
0
0
0.107143
0.180488
205
13
58
15.769231
0.642857
0
0
0
0
0
0.282927
0.141463
0
0
0
0
0
1
0.111111
false
0
0
0.111111
0.222222
0.222222
1
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
3
eed01c99b6f403846c278dcaf10e9423cc276e89
837
py
Python
configs.py
antonyvigouret/Pay-Attention-to-MLPs
3ea474421730e719f3a929549771cbfbdf91675f
[ "MIT" ]
16
2021-05-18T20:10:08.000Z
2022-01-11T01:26:02.000Z
configs.py
antonyvigouret/Pay-Attention-to-MLPs
3ea474421730e719f3a929549771cbfbdf91675f
[ "MIT" ]
null
null
null
configs.py
antonyvigouret/Pay-Attention-to-MLPs
3ea474421730e719f3a929549771cbfbdf91675f
[ "MIT" ]
3
2021-06-05T22:45:34.000Z
2022-03-16T04:17:37.000Z
image_size = 224 n_channels = 3 patch_size = 14 n_classes = 10 d_model = 128 d_ffn = 768 n_blocks = 30 configs = { "Ti": { "image_size": image_size, "n_channels": n_channels, "patch_size": patch_size, "d_model": d_model, "d_ffn": d_ffn, "n_blocks": n_blocks, ...
22.026316
33
0.530466
113
837
3.495575
0.20354
0.159494
0.121519
0.136709
0.729114
0.729114
0.729114
0.729114
0.501266
0.501266
0
0.035714
0.330944
837
38
34
22.026316
0.669643
0
0
0.416667
0
0
0.21599
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
eed2d1112569c0c46f0dbc626c7c13588564d764
135
py
Python
Python/Programming Fundamentals/Lists Advanced/21. Which Are In.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
Python/Programming Fundamentals/Lists Advanced/21. Which Are In.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
Python/Programming Fundamentals/Lists Advanced/21. Which Are In.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
strings_one = input().split(', ') text = input() new_strings = [word for word in strings_one if word in text] print(new_strings)
22.5
61
0.688889
21
135
4.238095
0.52381
0.224719
0
0
0
0
0
0
0
0
0
0
0.185185
135
6
62
22.5
0.809091
0
0
0
0
0
0.015267
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
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
eef6c69a33751142b224f221ccfe1d3a8f79bc58
11,394
py
Python
src/system.py
shushu-qin/deeponet
5bbe066279bba055ad80e04c364140363c87634a
[ "Apache-2.0" ]
140
2020-12-14T00:45:25.000Z
2022-03-29T15:28:53.000Z
src/system.py
shushu-qin/deeponet
5bbe066279bba055ad80e04c364140363c87634a
[ "Apache-2.0" ]
16
2021-05-01T04:00:39.000Z
2022-03-25T22:01:53.000Z
src/system.py
shushu-qin/deeponet
5bbe066279bba055ad80e04c364140363c87634a
[ "Apache-2.0" ]
63
2020-12-13T15:27:12.000Z
2022-03-26T14:09:17.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from pathos.pools import ProcessPool from scipy import interpolate from scipy.integrate import solve_ivp from scipy.special import legendre import config from ADR_solver import solve_ADR fro...
35.385093
114
0.549763
1,620
11,394
3.732099
0.102469
0.088157
0.056236
0.019848
0.745948
0.715018
0.703771
0.668376
0.656798
0.618922
0
0.017809
0.310075
11,394
321
115
35.495327
0.751304
0.247938
0
0.605714
0
0
0.020043
0
0
0
0
0
0
1
0.125714
false
0
0.074286
0.011429
0.325714
0.034286
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
eefe44d4c48822ed38941c043fd601420b06307f
22
py
Python
setup.py
ialudev/IPM
92f5931d892cbf5156f8689ca265b4f47738a6bf
[ "MIT" ]
null
null
null
setup.py
ialudev/IPM
92f5931d892cbf5156f8689ca265b4f47738a6bf
[ "MIT" ]
2
2018-06-22T09:01:47.000Z
2018-06-22T09:02:02.000Z
setup.py
ialudev/IPM
92f5931d892cbf5156f8689ca265b4f47738a6bf
[ "MIT" ]
1
2017-05-27T19:04:34.000Z
2017-05-27T19:04:34.000Z
b_ = False C_ = False
7.333333
10
0.636364
4
22
3
0.75
0
0
0
0
0
0
0
0
0
0
0
0.272727
22
2
11
11
0.75
0
0
0
0
0
0
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
e1210cf86e601dadc625edd53914bdf54cc1389c
328
py
Python
internews_web/news/admin.py
AlexeyMegley/internews
07fa01a257c89ae39b5e4f77b2cb0b7284311e81
[ "MIT" ]
null
null
null
internews_web/news/admin.py
AlexeyMegley/internews
07fa01a257c89ae39b5e4f77b2cb0b7284311e81
[ "MIT" ]
5
2020-07-05T19:35:24.000Z
2021-09-22T19:16:45.000Z
internews_web/news/admin.py
AlexeyMegley/internews
07fa01a257c89ae39b5e4f77b2cb0b7284311e81
[ "MIT" ]
3
2020-09-25T18:17:41.000Z
2020-09-30T19:27:10.000Z
from django.contrib import admin from .models import Media, Article, Country, Website from translations.models import Language, TranslatedHeader admin.site.register(Media) admin.site.register(Website) admin.site.register(Article) admin.site.register(Country) admin.site.register(Language) admin.site.register(Translated...
29.818182
58
0.835366
42
328
6.52381
0.357143
0.19708
0.372263
0
0
0
0
0
0
0
0
0
0.070122
328
10
59
32.8
0.898361
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
1
0
1
0
0
0
0
3
013f7df8f9f1ad9b2e66ac5d8ca184f29b85034c
726
py
Python
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotWeldGeometry_t.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotWeldGeometry_t.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotWeldGeometry_t.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class dotWeldGeometry_t(object): """ dotWeldGeometry_t(weldId: Identifier,position: int,maxPolygonPointsPerRequest: int) """ def CopyAndInitialize(self): """ CopyAndInitialize(self: dotWeldGeometry_t) -> dotWeldGeometry_t """ pass @staticmethod def __new__(self, weldId, positio...
26.888889
96
0.663912
60
726
7.733333
0.4
0.206897
0.103448
0.116379
0.241379
0.241379
0
0
0
0
0
0
0.245179
726
26
97
27.923077
0.846715
0.393939
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.142857
false
0.142857
0
0
0.785714
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
01780e7266029633aa49513076eee13792e4b97e
572
gyp
Python
binding.gyp
nachos/native-api
87db990d20cbdc42e51b9222b696ee4d61c9f44d
[ "MIT" ]
null
null
null
binding.gyp
nachos/native-api
87db990d20cbdc42e51b9222b696ee4d61c9f44d
[ "MIT" ]
5
2015-03-03T18:08:14.000Z
2015-10-26T21:59:34.000Z
binding.gyp
nachos/native-api
87db990d20cbdc42e51b9222b696ee4d61c9f44d
[ "MIT" ]
null
null
null
{ "targets": [ { "target_name": "process", "sources": ["src/process.cpp"], "include_dirs": ["<!(node -e \"require('nan')\")"] }, { "target_name": "file", "sources": ["src/file.cpp"], "include_dirs": ["<!(node -e \"require('nan')\")"] }, { "target_name": "s...
22.88
56
0.449301
53
572
4.698113
0.301887
0.160643
0.2249
0.289157
0.586345
0.586345
0.586345
0.46988
0.46988
0
0
0
0.267483
572
24
57
23.833333
0.594272
0
0
0.166667
0
0
0.47028
0
0
0
0
0
0
1
0
true
0
0
0
0
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
1
0
0
0
0
0
0
3
017e9de391117f9404e56f0c5b7e08c010f36479
124
py
Python
Codeforces/B_Drinks.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
Codeforces/B_Drinks.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
Codeforces/B_Drinks.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
n=int(input()) l1=list(map(int,input().split())) ans=0 for i in l1: ans=ans+float(i/100) s2=float((ans/n)*100) print(s2)
17.714286
33
0.637097
27
124
2.925926
0.592593
0.202532
0
0
0
0
0
0
0
0
0
0.099099
0.104839
124
7
34
17.714286
0.612613
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
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
018580887da164ec8788093e0f28f8b4457c47dd
646
py
Python
onix/models.py
jesuejunior/stone
e55d3d9a555a1bd0f8655b7684652187cd1f5d4b
[ "BSD-3-Clause" ]
3
2016-06-16T22:47:42.000Z
2019-10-13T15:29:16.000Z
onix/models.py
jesuejunior/stone
e55d3d9a555a1bd0f8655b7684652187cd1f5d4b
[ "BSD-3-Clause" ]
1
2021-06-10T18:22:23.000Z
2021-06-10T18:22:23.000Z
onix/models.py
jesuejunior/stone
e55d3d9a555a1bd0f8655b7684652187cd1f5d4b
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 from django.db import models class Material(models.Model): name = models.CharField(verbose_name='Name', max_length=100) origin = models.CharField(verbose_name='Origin', max_length=100) class Meta: db_table = 'material' def __str__(self): return self.name class Blo...
23.071429
75
0.687307
82
646
5.195122
0.390244
0.129108
0.15493
0.183099
0.112676
0.112676
0
0
0
0
0
0.015444
0.198142
646
27
76
23.925926
0.80695
0.02322
0
0.375
0
0
0.065391
0
0
0
0
0
0
1
0.125
false
0
0.0625
0.125
0.875
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
3
018e3d7fe6efc231df665db093823e88d91be646
1,189
py
Python
util/auto/add_member.py
izolight/SCM
0456dab173c64047a0126348f86380fa6d506676
[ "MIT" ]
null
null
null
util/auto/add_member.py
izolight/SCM
0456dab173c64047a0126348f86380fa6d506676
[ "MIT" ]
null
null
null
util/auto/add_member.py
izolight/SCM
0456dab173c64047a0126348f86380fa6d506676
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from selenium import webdriver import string, random def id_generator(size=10, chars=string.ascii_lowercase + string.digits): return ''.join(random.choice(chars) for _ in range(size)) data = id_generator() driver = webdriver.Chrome() driver.get("http://localhost:8000/members/add") firs...
30.487179
72
0.794786
189
1,189
4.624339
0.328042
0.125858
0.213959
0.23913
0.300915
0.276888
0.092677
0
0
0
0
0.025316
0.069807
1,189
38
73
31.289474
0.764919
0.017662
0
0
0
0
0.179092
0
0
0
0
0
0
1
0.035714
false
0.142857
0.071429
0.035714
0.142857
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
1
0
0
0
0
0
3
0196c5818adcd3294771e4863587cffab989d7ea
59
py
Python
example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/A/atomic unit of permittivity.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/A/atomic unit of permittivity.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/A/atomic unit of permittivity.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
1
2021-02-04T04:51:48.000Z
2021-02-04T04:51:48.000Z
constants.physical_constants["atomic unit of permittivity"]
59
59
0.864407
7
59
7.142857
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.050847
59
1
59
59
0.892857
0
0
0
0
0
0.45
0
0
0
0
0
0
1
0
true
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
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
019b0415894f69feddbe5329275480db5d8cee81
364
py
Python
image_populators/imgur/configparser_env.py
xaroth8088/tournament-of-lulz
241bc15c0697f0e3ffabbd6ff48203915f79fddb
[ "MIT" ]
null
null
null
image_populators/imgur/configparser_env.py
xaroth8088/tournament-of-lulz
241bc15c0697f0e3ffabbd6ff48203915f79fddb
[ "MIT" ]
null
null
null
image_populators/imgur/configparser_env.py
xaroth8088/tournament-of-lulz
241bc15c0697f0e3ffabbd6ff48203915f79fddb
[ "MIT" ]
null
null
null
# Adapted from code found at https://gist.github.com/malexer/ee2f93b1973120925e8beb3f36b184b8 import configparser import os class EnvInterpolation(configparser.BasicInterpolation): """Interpolation which expands environment variables in values.""" def before_get(self, parser, section, option, value, defaults...
33.090909
93
0.782967
40
364
7.1
0.9
0
0
0
0
0
0
0
0
0
0
0.066456
0.131868
364
10
94
36.4
0.832278
0.42033
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0.2
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
6d92806db4fe79cb89c1c57c09fe13ea9728c28e
388
py
Python
Dynamic Programming/213. House Robber II.py
Wolemercy/leetcode
b19479f808e2afb7d31c013ba24e85faf4bb6727
[ "MIT" ]
null
null
null
Dynamic Programming/213. House Robber II.py
Wolemercy/leetcode
b19479f808e2afb7d31c013ba24e85faf4bb6727
[ "MIT" ]
null
null
null
Dynamic Programming/213. House Robber II.py
Wolemercy/leetcode
b19479f808e2afb7d31c013ba24e85faf4bb6727
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/house-robber-ii/ class Solution: def rob(self, nums: List[int]) -> int: return max(nums[0], self.helper(nums[1:]), self.helper(nums[:-1])) def helper(self, nums): rob1, rob2 = 0, 0 for n in nums: newRob = max(rob1 + n, rob2)...
24.25
74
0.518041
51
388
3.941176
0.509804
0.079602
0.139303
0.149254
0
0
0
0
0
0
0
0.050781
0.340206
388
15
75
25.866667
0.734375
0.118557
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0
0.111111
0.555556
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
6daf8c6f3e872993c25fb4c6fe2fe5ff49d97d4d
2,135
py
Python
shop_thienhi/product/models.py
Lesson-ThienHi/thienhi_shop
1c595d70299e1fcce12c3610e27b66c89bbadda6
[ "MIT" ]
null
null
null
shop_thienhi/product/models.py
Lesson-ThienHi/thienhi_shop
1c595d70299e1fcce12c3610e27b66c89bbadda6
[ "MIT" ]
2
2022-03-30T06:34:29.000Z
2022-03-31T06:34:49.000Z
shop_thienhi/product/models.py
Lesson-ThienHi/thienhi_shop
1c595d70299e1fcce12c3610e27b66c89bbadda6
[ "MIT" ]
null
null
null
from django.db import models class Product(models.Model): name = models.CharField(max_length=255, null=True, blank=True) size = models.CharField(max_length=20, null=True, blank=True) product_type = models.CharField(max_length=255, null=True, blank=True) price = models.FloatField(null=True, blank=True, ...
42.7
126
0.732553
289
2,135
5.269896
0.204152
0.13132
0.153644
0.200919
0.780039
0.755089
0.688772
0.663821
0.562049
0.265266
0
0.013143
0.144731
2,135
49
127
43.571429
0.82092
0.003747
0
0.378378
0
0
0.020706
0
0
0
0
0
0
1
0.081081
false
0
0.027027
0.081081
1
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
6dbab48d391df10fc9a142f33966471817a05263
417
py
Python
hiector/ssrdd/utils/box/ext/rbbox_overlap_cpu/__init__.py
sentinel-hub/hiector
95102c1fcfa63d127a389262e9d569e3aa3495cc
[ "MIT" ]
3
2022-03-15T11:19:27.000Z
2022-03-24T15:59:49.000Z
hiector/ssrdd/utils/box/ext/rbbox_overlap_cpu/__init__.py
sentinel-hub/hiector
95102c1fcfa63d127a389262e9d569e3aa3495cc
[ "MIT" ]
null
null
null
hiector/ssrdd/utils/box/ext/rbbox_overlap_cpu/__init__.py
sentinel-hub/hiector
95102c1fcfa63d127a389262e9d569e3aa3495cc
[ "MIT" ]
null
null
null
try: from .rbbox_overlap import rbbox_iou, rbbox_iou_1x1, rbbox_iou_nxn, rbbox_nms except ImportError: # A hack to make rbbox_overlap work, # see https://git.sinergise.com/clients/esa/query-planet-ccn3/-/issues/13#note_220460 import os import sys sys.path.insert(1, os.path.dirname(__file__)) ...
37.909091
98
0.76259
67
417
4.41791
0.567164
0.162162
0.108108
0.155405
0.378378
0.378378
0.378378
0.378378
0.378378
0.378378
0
0.039437
0.148681
417
10
99
41.7
0.794366
0.280576
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.714286
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
6dc3a7cadd2746f131e2acdb9b56bfba6e70662d
326
py
Python
overhave/transport/http/stash_client/__init__.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
33
2021-02-01T15:49:37.000Z
2021-12-20T00:44:43.000Z
overhave/transport/http/stash_client/__init__.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
46
2021-02-03T12:56:52.000Z
2021-12-19T18:50:27.000Z
overhave/transport/http/stash_client/__init__.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
1
2021-12-07T09:02:44.000Z
2021-12-07T09:02:44.000Z
# flake8: noqa from .client import StashHttpClient, StashHttpClientConflictError from .models import ( StashBranch, StashErrorResponse, StashPrCreationResponse, StashProject, StashPrRequest, StashRepository, StashReviewer, StashReviewerInfo, ) from .settings import OverhaveStashClientSet...
23.285714
65
0.776074
22
326
11.5
0.818182
0
0
0
0
0
0
0
0
0
0
0.003717
0.174847
326
13
66
25.076923
0.936803
0.03681
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
1
0
1
null
0
0
0
0
0
0
0
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
6dd376e6a202df02f3d89ed7bedb1d3cd82d8cbc
20
py
Python
constants.py
reinhaaard13/pytorch-chatbot
b67054756d2ac3cdc3d33e2f0dafff099ee3907b
[ "MIT" ]
null
null
null
constants.py
reinhaaard13/pytorch-chatbot
b67054756d2ac3cdc3d33e2f0dafff099ee3907b
[ "MIT" ]
null
null
null
constants.py
reinhaaard13/pytorch-chatbot
b67054756d2ac3cdc3d33e2f0dafff099ee3907b
[ "MIT" ]
null
null
null
FILE = "data-id.pth"
20
20
0.65
4
20
3.25
1
0
0
0
0
0
0
0
0
0
0
0
0.1
20
1
20
20
0.722222
0
0
0
0
0
0.52381
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
097ea5d14d226d6751e2f30f95fc3845df6d9cf8
271
py
Python
PythonLab1/PythonLab1/PythonLab1Zad1.py
matbocz/kurs-python-pwsz-elblag
47a6f02691dfcffe8de346923099d13ffac4ffa4
[ "MIT" ]
null
null
null
PythonLab1/PythonLab1/PythonLab1Zad1.py
matbocz/kurs-python-pwsz-elblag
47a6f02691dfcffe8de346923099d13ffac4ffa4
[ "MIT" ]
null
null
null
PythonLab1/PythonLab1/PythonLab1Zad1.py
matbocz/kurs-python-pwsz-elblag
47a6f02691dfcffe8de346923099d13ffac4ffa4
[ "MIT" ]
null
null
null
import timeit txt = "Lorem ipsum" test = timeit.Timer("txt.islower()", "from __main__ import txt") print("Time(10):", test.timeit(10)) print("Time(1000):", test.timeit(1000)) print("Time(100 000):", test.timeit(100000)) print("Time(10 000 000):", test.timeit(10000000))
30.111111
64
0.690037
41
271
4.463415
0.439024
0.273224
0.120219
0
0
0
0
0
0
0
0
0.162602
0.092251
271
9
65
30.111111
0.581301
0
0
0
0
0
0.363971
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.571429
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
0
0
0
1
0
3
09800673666ca3c2714e00c5ee3a361224d9b0a6
1,957
py
Python
python/terra_proto/cosmos/capability/v1beta1/__init__.py
Vritra4/terra.proto
977264b7c3e0f9d135120d77b48657b82f5eacf6
[ "Apache-2.0" ]
1
2022-02-22T06:18:40.000Z
2022-02-22T06:18:40.000Z
python/osmosis_proto/cosmos/capability/v1beta1/__init__.py
fabio-nukui/osmosis.proto
4780f22681881626b853109971602a6e29a3fb69
[ "Apache-2.0" ]
null
null
null
python/osmosis_proto/cosmos/capability/v1beta1/__init__.py
fabio-nukui/osmosis.proto
4780f22681881626b853109971602a6e29a3fb69
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: cosmos/capability/v1beta1/capability.proto, cosmos/capability/v1beta1/genesis.proto # plugin: python-betterproto from dataclasses import dataclass from typing import List import betterproto from betterproto.grpc.grpclib_server import ServiceBase @...
31.063492
94
0.740419
250
1,957
5.752
0.32
0.100139
0.055633
0.069541
0.181502
0.181502
0.100139
0.100139
0
0
0
0.011139
0.174246
1,957
62
95
31.564516
0.878713
0.454267
0
0.363636
1
0
0.034588
0
0
0
0
0
0
1
0
true
0
0.181818
0
0.772727
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
1
0
0
0
1
0
0
3
09873bb1ff2a6647fa8527a4d46d237735f9d2a7
295
py
Python
tests/utils/example_metrics.py
aydensutt/RLBotTraining
e98d7f09971bfd02012bad98e54b882dc059ec8a
[ "MIT" ]
9
2019-01-27T11:59:28.000Z
2022-03-21T10:20:17.000Z
tests/utils/example_metrics.py
aydensutt/RLBotTraining
e98d7f09971bfd02012bad98e54b882dc059ec8a
[ "MIT" ]
8
2019-01-10T17:42:54.000Z
2020-02-25T02:19:58.000Z
tests/utils/example_metrics.py
aydensutt/RLBotTraining
e98d7f09971bfd02012bad98e54b882dc059ec8a
[ "MIT" ]
7
2019-01-03T14:19:10.000Z
2021-06-30T04:27:59.000Z
from dataclasses import dataclass from typing import Tuple from rlbottraining.history.metric import Metric @dataclass(frozen=True) class ExampleMetric(Metric): speed: float momentum: Tuple[float] @dataclass(frozen=True) class ExampleMetric2(ExampleMetric): violence: bool = True
19.666667
47
0.783051
34
295
6.794118
0.558824
0.12987
0.164502
0.207792
0
0
0
0
0
0
0
0.003953
0.142373
295
14
48
21.071429
0.909091
0
0
0.2
0
0
0
0
0
0
0
0
0
1
0
true
0
0.3
0
0.8
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
0
0
0
1
0
0
3
09a07f6fcde17fbc86ee7f5fe84eb5ab39a5db26
12,886
py
Python
bespin/test_argparse.py
Duke-GCB/bespin-cli
c929ab48884d1a4d847994b84fd596dd36df573b
[ "MIT" ]
null
null
null
bespin/test_argparse.py
Duke-GCB/bespin-cli
c929ab48884d1a4d847994b84fd596dd36df573b
[ "MIT" ]
23
2018-06-20T18:48:42.000Z
2019-08-21T14:21:17.000Z
bespin/test_argparse.py
Duke-GCB/bespin-cli
c929ab48884d1a4d847994b84fd596dd36df573b
[ "MIT" ]
null
null
null
from __future__ import absolute_import from unittest import TestCase from bespin.argparser import ArgParser from mock import patch, Mock, ANY, mock_open import sys class ArgParserTestCase(TestCase): def setUp(self): self.target_object = Mock() self.arg_parser = ArgParser(version_str='1.0', target_...
50.932806
113
0.568369
1,341
12,886
5.075317
0.08874
0.06171
0.079929
0.084631
0.797091
0.746988
0.722598
0.680135
0.673376
0.607111
0
0.005014
0.319028
12,886
252
114
51.134921
0.770598
0
0
0.376147
0
0
0.141006
0
0
0
0
0
0.142202
1
0.151376
false
0
0.022936
0
0.178899
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
09c0e0595f258fcc4d977ca456d7be2b870de735
1,629
py
Python
iron/pythonlib/Bio/Sequence.py
jason-weirather/Au-public
c4e37770229f64a24bc79cd380e393f6de1fd7cb
[ "Apache-2.0" ]
4
2016-03-11T07:48:18.000Z
2017-01-01T20:49:10.000Z
iron/pythonlib/Bio/Sequence.py
jason-weirather/Au-public
c4e37770229f64a24bc79cd380e393f6de1fd7cb
[ "Apache-2.0" ]
null
null
null
iron/pythonlib/Bio/Sequence.py
jason-weirather/Au-public
c4e37770229f64a24bc79cd380e393f6de1fd7cb
[ "Apache-2.0" ]
5
2015-03-09T18:13:06.000Z
2019-01-15T10:19:07.000Z
import re, sys, base64, zlib from string import maketrans #Basic Sequence structure class Seq: def __init__(self,seq=None,name=None): self.name = name self.seq = seq def __getitem__(self,key): #if its a slice deal with the sequence only if isinstance(key,slice): newseq = self.seq[key.start:mi...
29.089286
110
0.683855
247
1,629
4.376518
0.331984
0.097132
0.046253
0.031452
0.029602
0
0
0
0
0
0
0.012509
0.165746
1,629
55
111
29.618182
0.782929
0.112953
0
0
0
0
0.043115
0
0
0
0
0
0
1
0.3
false
0
0.05
0.15
0.675
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
09c87470fb066f96e8fe172d2c6c0b5192bf7b72
1,243
py
Python
ulamki.py
grzegorzwojdyga/SDA_excercises_6
3ee497650345512fc9ca8c3d54ba41822537af4b
[ "MIT" ]
null
null
null
ulamki.py
grzegorzwojdyga/SDA_excercises_6
3ee497650345512fc9ca8c3d54ba41822537af4b
[ "MIT" ]
null
null
null
ulamki.py
grzegorzwojdyga/SDA_excercises_6
3ee497650345512fc9ca8c3d54ba41822537af4b
[ "MIT" ]
null
null
null
""" Stworz klase Ulamek reprezentujaca liczby ulamkowe. Kazdy obiekt typu Ulamek powinien miec dwa atrybuty: self.licznik oraz self.mianownik. Glownym celem zadania jest dorobienie imlementacji, dzieki ktorej mozliwe stanie sie dodawanie, mnozenie, dzielenie i odejmowanie od siebie dwoch obiektow ty...
38.84375
115
0.679807
165
1,243
5.024242
0.606061
0.00965
0.031363
0
0
0
0
0
0
0
0
0.03178
0.240547
1,243
31
116
40.096774
0.846398
0.867257
0
0
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
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
1
0
0
0
0
0
3
09cbcadc3fc81f16aab262acbdfbb11e6682c248
232
py
Python
minictf/appconfig.py
DivyanshuSahu/miniCTF
03f96d8a92076d586ae18b421ce8a24fdb4c7fab
[ "MIT" ]
14
2018-03-09T00:00:12.000Z
2019-06-13T12:08:37.000Z
minictf/appconfig.py
DivyanshuSahu/miniCTF
03f96d8a92076d586ae18b421ce8a24fdb4c7fab
[ "MIT" ]
4
2017-12-28T08:00:27.000Z
2019-06-13T21:30:08.000Z
minictf/appconfig.py
DivyanshuSahu/miniCTF
03f96d8a92076d586ae18b421ce8a24fdb4c7fab
[ "MIT" ]
10
2018-02-21T19:48:17.000Z
2019-05-25T05:59:42.000Z
from django.apps import AppConfig class AppConfig(AppConfig): pass class CustomAppConfig(AppConfig): """ This class may be use to setup configuration for scalable components and tools """ name = 'custom'
16.571429
72
0.693966
27
232
5.962963
0.814815
0
0
0
0
0
0
0
0
0
0
0
0.237069
232
13
73
17.846154
0.909605
0.336207
0
0
0
0
0.044776
0
0
0
0
0
0
1
0
false
0.2
0.2
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
09cdbdd9b45752879a49b102a86b843170905cf6
3,174
py
Python
swordfish/__init__.py
bradkav/swordfish
64af5fb068a12d48c1b54bbb2bbc2ada3b24b3c9
[ "MIT" ]
14
2017-11-20T15:34:33.000Z
2022-02-19T06:46:30.000Z
swordfish/__init__.py
bradkav/swordfish
64af5fb068a12d48c1b54bbb2bbc2ada3b24b3c9
[ "MIT" ]
2
2018-10-12T17:12:50.000Z
2021-07-05T10:17:52.000Z
swordfish/__init__.py
bradkav/swordfish
64af5fb068a12d48c1b54bbb2bbc2ada3b24b3c9
[ "MIT" ]
6
2017-11-20T16:45:51.000Z
2022-02-19T06:46:38.000Z
"""`swordfish` is a Python tool to study the information yield of counting experiments. Motivation ---------- With `swordfish` you can quickly and accurately forecast experimental sensitivities without all the fuss with time-intensive Monte Carlos, mock data generation and likelihood maximization. With `swordfish` y...
36.906977
157
0.777883
449
3,174
5.481069
0.478842
0.029256
0.039009
0.048761
0.188948
0.173913
0.173913
0.173913
0.173913
0.126778
0
0.024505
0.125709
3,174
85
158
37.341176
0.862342
0.947385
0
0
0
0
0.225
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
09cfa456a5aa64f5f8c8cdf311ce623aafabdae4
188
py
Python
app/urls.py
nmfzone/django-modern-boilerplate
6c752c5246b4ea14caa06792c60e9c1802a606e4
[ "MIT" ]
2
2020-07-14T05:10:17.000Z
2021-04-07T00:17:11.000Z
app/urls.py
nmfzone/django-modern-boilerplate
6c752c5246b4ea14caa06792c60e9c1802a606e4
[ "MIT" ]
null
null
null
app/urls.py
nmfzone/django-modern-boilerplate
6c752c5246b4ea14caa06792c60e9c1802a606e4
[ "MIT" ]
null
null
null
from app.views import * from django.urls import path urlpatterns = [ path('', IndexView.as_view(), name='index'), path('dashboard', DashboardView.as_view(), name='dashboard'), ]
20.888889
65
0.680851
23
188
5.478261
0.652174
0.095238
0.15873
0
0
0
0
0
0
0
0
0
0.148936
188
8
66
23.5
0.7875
0
0
0
0
0
0.12234
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
61df2fd93f4a0b3823198f5aecec4fc9230198de
561
py
Python
starkit/base/operations/base.py
dchu808/starkit
1940683ef231cee54be2c703d4a7611a3991d8b7
[ "BSD-3-Clause" ]
12
2018-05-15T14:59:27.000Z
2022-01-11T16:44:43.000Z
starkit/base/operations/base.py
dchu808/starkit
1940683ef231cee54be2c703d4a7611a3991d8b7
[ "BSD-3-Clause" ]
27
2018-03-13T10:45:38.000Z
2020-08-03T20:47:31.000Z
starkit/base/operations/base.py
dchu808/starkit
1940683ef231cee54be2c703d4a7611a3991d8b7
[ "BSD-3-Clause" ]
17
2018-03-13T10:06:53.000Z
2019-06-27T02:02:10.000Z
from starkit.base.model import StarKitModel from astropy import modeling from collections import OrderedDict from itertools import chain class SpectralOperationModel(StarKitModel): inputs = ('wavelength', 'flux') outputs = ('wavelength', 'flux') class InstrumentOperationModel(SpectralOperationModel): pa...
23.375
58
0.736185
52
561
7.942308
0.480769
0.271186
0.096852
0.130751
0.198547
0.198547
0
0
0
0
0
0
0.16221
561
23
59
24.391304
0.878723
0
0
0.142857
0
0
0.125
0
0
0
0
0
0
1
0.071429
false
0.071429
0.285714
0.071429
0.928571
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
61eb2a30a8291b75a30b50260a022b78c2f30d76
598
py
Python
src/awscm/awstools.py
shubhsboson/awscm
3d6584aa41b999107f3838370cff0ce76786cf1c
[ "MIT" ]
null
null
null
src/awscm/awstools.py
shubhsboson/awscm
3d6584aa41b999107f3838370cff0ce76786cf1c
[ "MIT" ]
2
2022-02-22T08:59:11.000Z
2022-02-22T09:55:03.000Z
src/awscm/awstools.py
shubhsboson/awscm
3d6584aa41b999107f3838370cff0ce76786cf1c
[ "MIT" ]
null
null
null
def add_profile(): pass def edit_profile(): pass def get_aws_session(**kwargs): import sys import boto3 from botocore.exceptions import ProfileNotFound try: aws_session = boto3.session.Session(**kwargs) except ProfileNotFound: print(f"Profile not found.Please specify correc...
27.181818
71
0.717391
73
598
5.712329
0.465753
0.119904
0.067146
0.134293
0
0
0
0
0
0
0
0.006289
0.202341
598
21
72
28.47619
0.867925
0
0
0.111111
0
0
0.080268
0
0
0
0
0
0
1
0.222222
false
0.111111
0.222222
0
0.555556
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
11182b78cc3eb6a189d0f1e69f64200ca66306b3
142
py
Python
server/game/urls.py
Drakirus/yaker
f244e0cb3f1b662907711230d11f0d1b5729358c
[ "BSD-3-Clause" ]
1
2017-11-16T09:05:01.000Z
2017-11-16T09:05:01.000Z
server/game/urls.py
Drakirus/yaker
f244e0cb3f1b662907711230d11f0d1b5729358c
[ "BSD-3-Clause" ]
null
null
null
server/game/urls.py
Drakirus/yaker
f244e0cb3f1b662907711230d11f0d1b5729358c
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^lobby/available/$', views.Lobby.as_view(), name='Lobby'), ]
17.75
68
0.683099
20
142
4.8
0.7
0
0
0
0
0
0
0
0
0
0
0
0.147887
142
7
69
20.285714
0.793388
0
0
0
0
0
0.163121
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
112153fde76f3e49439acb724b388e624674e8cb
271
py
Python
courses/tasks.py
louy2/YACS
1aca8fd6bffd40f1a2016b02e8361d90e27a92a1
[ "MIT" ]
10
2015-05-18T09:42:06.000Z
2021-01-05T00:46:03.000Z
courses/tasks.py
louy2/YACS
1aca8fd6bffd40f1a2016b02e8361d90e27a92a1
[ "MIT" ]
6
2015-03-10T20:55:00.000Z
2016-10-31T20:10:28.000Z
courses/tasks.py
louy2/YACS
1aca8fd6bffd40f1a2016b02e8361d90e27a92a1
[ "MIT" ]
10
2015-01-30T23:05:04.000Z
2017-10-19T05:55:30.000Z
from celery import shared_task from django.conf import settings from courses.bridge import import_courses as bridge_import_courses @shared_task def import_courses(force=False, all=False, catalog=True): bridge_import_courses(force=force, all=all, catalog=catalog)
24.636364
66
0.822878
40
271
5.375
0.425
0.24186
0.176744
0
0
0
0
0
0
0
0
0
0.110701
271
10
67
27.1
0.892116
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.833333
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
112276d1caadb41bf31d854921e2c1412ee88fb0
410
py
Python
tests/__init__.py
systragroup/quetzal
bb7934bcae588cddf0f0da810d75114d1c64768f
[ "CECILL-B" ]
25
2018-11-20T16:33:02.000Z
2022-03-03T12:46:52.000Z
tests/__init__.py
systragroup/quetzal
bb7934bcae588cddf0f0da810d75114d1c64768f
[ "CECILL-B" ]
14
2019-06-13T13:26:20.000Z
2022-01-13T03:51:07.000Z
tests/__init__.py
systragroup/quetzal
bb7934bcae588cddf0f0da810d75114d1c64768f
[ "CECILL-B" ]
4
2020-01-31T18:34:59.000Z
2022-03-18T17:22:45.000Z
from unittest import TestCase class MyTest(TestCase): # basedir = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) + '\\data' # uri = ':memory:' # #uri = os.path.join(basedir, 'app.db') # SQLALCHEMY_DATABASE_URI = "sqlite:///" + uri # TESTING = True def setUp(self): pass ...
22.777778
86
0.585366
49
410
4.755102
0.653061
0.103004
0.111588
0
0
0
0
0
0
0
0
0
0.256098
410
17
87
24.117647
0.763934
0.558537
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.333333
0.166667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
1126248fde8ece1f44dc946a26499b6e321651f8
2,594
py
Python
src/cipherkit/ciphers.py
jorgepiloto/cryptokit
d089539e0eaca866bdabb5f4890e6bb5c638b990
[ "MIT" ]
1
2019-04-18T20:57:37.000Z
2019-04-18T20:57:37.000Z
src/cipherkit/ciphers.py
jorgepiloto/cryptokit
d089539e0eaca866bdabb5f4890e6bb5c638b990
[ "MIT" ]
10
2019-04-17T10:56:33.000Z
2019-04-25T13:24:46.000Z
src/cipherkit/ciphers.py
jorgepiloto/cipherkit
d089539e0eaca866bdabb5f4890e6bb5c638b990
[ "MIT" ]
null
null
null
from cipherkit.alphabets import ascii_basic from cipherkit.core.caesar import caesar from cipherkit.core.reverse import reverse class Reverse(object): """ This is the class for reverse cipher. """ def __init__(self, plain_text, hidden_text): """ Constructo for the cipher. Parameters ...
25.431373
72
0.575173
287
2,594
5.010453
0.163763
0.15299
0.087622
0.079277
0.730181
0.700974
0.616829
0.572323
0.35605
0.35605
0
0
0.32421
2,594
101
73
25.683168
0.820308
0.33192
0
0.275862
0
0
0.010363
0
0
0
0
0
0
1
0.206897
false
0
0.103448
0
0.517241
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
1129f3545aba3a05cd70c755fd57709cad118fab
43
py
Python
app/model/models.py
MrYangYang/hairy-adventure
a9e58166efd128aef9861b761ef8aaa8daaad5c4
[ "MIT" ]
3
2021-04-14T08:49:12.000Z
2021-10-09T03:09:07.000Z
app/model/models.py
YangshengLu/hairy-adventure
a9e58166efd128aef9861b761ef8aaa8daaad5c4
[ "MIT" ]
null
null
null
app/model/models.py
YangshengLu/hairy-adventure
a9e58166efd128aef9861b761ef8aaa8daaad5c4
[ "MIT" ]
3
2018-01-02T13:39:06.000Z
2019-04-28T12:49:31.000Z
# coding=utf-8 __author__ = 'luyangsheng'
10.75
26
0.72093
5
43
5.4
1
0
0
0
0
0
0
0
0
0
0
0.027027
0.139535
43
3
27
14.333333
0.702703
0.27907
0
0
0
0
0.392857
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
114db8c674a13315b409a50e85784e8e1a625d27
22
py
Python
kid_readout/roach/tests/__init__.py
danielflanigan/kid_readout
07202090d468669200cab78297122880c1c03e87
[ "BSD-2-Clause" ]
1
2015-05-21T20:57:39.000Z
2015-05-21T20:57:39.000Z
kid_readout/analysis/tests/__init__.py
braddober/kid_readout
1917960c761663227fa5b74fff34e38a03b80b4d
[ "BSD-2-Clause" ]
null
null
null
kid_readout/analysis/tests/__init__.py
braddober/kid_readout
1917960c761663227fa5b74fff34e38a03b80b4d
[ "BSD-2-Clause" ]
null
null
null
__author__ = 'gjones'
11
21
0.727273
2
22
6
1
0
0
0
0
0
0
0
0
0
0
0
0.136364
22
1
22
22
0.631579
0
0
0
0
0
0.272727
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
11554025763953c9f5c81f96ec6a2daedd7262c6
112
py
Python
day-4-randomization-and-lists/exercise-1-heads-or-tails.py
0xConnorRhodes/100-days-of-python
e12ecb32e9751b3c14a1ccabe74bb84e44b11107
[ "Unlicense" ]
null
null
null
day-4-randomization-and-lists/exercise-1-heads-or-tails.py
0xConnorRhodes/100-days-of-python
e12ecb32e9751b3c14a1ccabe74bb84e44b11107
[ "Unlicense" ]
null
null
null
day-4-randomization-and-lists/exercise-1-heads-or-tails.py
0xConnorRhodes/100-days-of-python
e12ecb32e9751b3c14a1ccabe74bb84e44b11107
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import random if random.randint(0,1) == 0: print("Heads") else: print("Tails")
12.444444
28
0.625
17
112
4.117647
0.823529
0
0
0
0
0
0
0
0
0
0
0.043956
0.1875
112
8
29
14
0.725275
0.1875
0
0
0
0
0.111111
0
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0.4
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
1155c0f76e76768aab4e9ff28cf59d7b633dcc32
1,722
py
Python
src/document.py
praveen97uma/docsearch
548f3aa3ca57d5a4f846963457620222758e0c93
[ "MIT" ]
null
null
null
src/document.py
praveen97uma/docsearch
548f3aa3ca57d5a4f846963457620222758e0c93
[ "MIT" ]
null
null
null
src/document.py
praveen97uma/docsearch
548f3aa3ca57d5a4f846963457620222758e0c93
[ "MIT" ]
null
null
null
import uuid from urllib.parse import urlparse class TermFactory: @classmethod def create(cls, term_id, name, offset): return Term(term_id, name, offset) class Term: def __init__(self, term_id, name, offset=None): self._name = name self._term_id = term_id self._offset = off...
20.5
67
0.587108
214
1,722
4.462617
0.214953
0.092147
0.102618
0.050262
0
0
0
0
0
0
0
0.00084
0.308362
1,722
83
68
20.746988
0.801008
0.020325
0
0.2
0
0
0.032047
0
0
0
0
0
0
1
0.266667
false
0
0.033333
0.166667
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
fec0fa005681a78764ddfaba3f28484f068db0d2
935
py
Python
tests/test_version_check_validity.py
pradyunsg/release-helper
3c338d920d8803db13ca25fdef85c753b9612261
[ "MIT" ]
1
2022-02-23T19:23:10.000Z
2022-02-23T19:23:10.000Z
tests/test_version_check_validity.py
pradyunsg/release-helper
3c338d920d8803db13ca25fdef85c753b9612261
[ "MIT" ]
null
null
null
tests/test_version_check_validity.py
pradyunsg/release-helper
3c338d920d8803db13ca25fdef85c753b9612261
[ "MIT" ]
null
null
null
from release_helper.commands.version_check_validity import cmd def test_with_valid(runner): result = runner.invoke(cmd, ["1.0"]) assert result.exit_code == 0 assert result.stdout == "" assert result.stderr == "" def test_with_valid_canonical(runner): result = runner.invoke(cmd, ["--require-cano...
25.972222
76
0.657754
127
935
4.708661
0.299213
0.240803
0.073579
0.160535
0.685619
0.595318
0.595318
0.595318
0.595318
0.41806
0
0.030667
0.197861
935
35
77
26.714286
0.766667
0
0
0.434783
0
0.043478
0.175401
0
0
0
0
0
0.521739
1
0.173913
false
0
0.043478
0
0.217391
0
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
1
0
0
0
0
0
0
0
0
0
3
fed00c8b9f8e5e34b7096e9a0a2b055b5a2a2e1c
1,614
py
Python
hw2/p10_LF_mapping.py
jay-z007/Computational-Biology
d0e7a1eed4c1e66c7b3fd8a5b4981f0837578fd4
[ "Apache-2.0" ]
null
null
null
hw2/p10_LF_mapping.py
jay-z007/Computational-Biology
d0e7a1eed4c1e66c7b3fd8a5b4981f0837578fd4
[ "Apache-2.0" ]
null
null
null
hw2/p10_LF_mapping.py
jay-z007/Computational-Biology
d0e7a1eed4c1e66c7b3fd8a5b4981f0837578fd4
[ "Apache-2.0" ]
null
null
null
import gc def build_rank(T): rank_last_col = [] rank = {} rank['A'] = 0 rank['C'] = 0 rank['G'] = 0 rank['T'] = 0 for i in T: if i == '$': rank_last_col.append([i,-1]) continue rank[i] += 1 rank_last_col.append([i, rank[i]]) return rank_last_col, rank def LastToFirst(T, i): ...
31.647059
830
0.754027
133
1,614
8.984962
0.255639
0.040167
0.05523
0.012552
0.07364
0
0
0
0
0
0
0.012248
0.140025
1,614
51
831
31.647059
0.848703
0.008055
0
0
0
0
0.545161
0.530323
0
1
0
0
0
0
null
null
0
0.027778
null
null
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
1
0
0
0
1
0
0
0
0
0
0
0
0
3
fee284b8217b7116b2ae6411818b9e0260149a37
191
py
Python
backend/app/api/__init__.py
AronYang/flask-base-admin
930b610f0b828f3bb60188d9d881754741f5818f
[ "Apache-2.0" ]
7
2019-04-02T19:55:06.000Z
2021-11-30T15:59:47.000Z
backend/app/api/__init__.py
AronYang/flask-base-admin
930b610f0b828f3bb60188d9d881754741f5818f
[ "Apache-2.0" ]
7
2020-04-09T06:04:23.000Z
2022-03-02T03:07:37.000Z
backend/app/api/__init__.py
AronYang/flask-base-admin
930b610f0b828f3bb60188d9d881754741f5818f
[ "Apache-2.0" ]
1
2022-03-31T09:36:57.000Z
2022-03-31T09:36:57.000Z
from flask import Blueprint from flask_restful import Resource, Api from app.api.auth import Token router = Blueprint('router', __name__) api = Api(router) api.add_resource(Token, '/token')
23.875
39
0.780105
28
191
5.107143
0.464286
0.125874
0
0
0
0
0
0
0
0
0
0
0.120419
191
7
40
27.285714
0.85119
0
0
0
0
0
0.062827
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.333333
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
fef1c6dec9fdc50e2f3d219c43d50639360c9bf6
584
py
Python
day_1.py
Anders-E/Advent-of-Code-2021
38ea7c8d5810eb19da6a850b4e5e2df441b4749c
[ "MIT" ]
null
null
null
day_1.py
Anders-E/Advent-of-Code-2021
38ea7c8d5810eb19da6a850b4e5e2df441b4749c
[ "MIT" ]
null
null
null
day_1.py
Anders-E/Advent-of-Code-2021
38ea7c8d5810eb19da6a850b4e5e2df441b4749c
[ "MIT" ]
null
null
null
from sys import stdin from functools import reduce from itertools import pairwise def increment_if_increase(s, pair): return s + (pair[0] < pair[1]) def star1(measurements): return reduce(increment_if_increase, pairwise(measurements), 0) def star2(measurements): triplets = zip(measurements, measuremen...
25.391304
73
0.726027
75
584
5.466667
0.466667
0.080488
0.139024
0.112195
0.190244
0.190244
0
0
0
0
0
0.020202
0.152397
584
22
74
26.545455
0.808081
0
0
0
0
0
0.020548
0
0
0
0
0
0
1
0.214286
false
0
0.214286
0.142857
0.642857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
3a375d9b674dac450eebb74274b18a043d8fac20
607
py
Python
solentware_base/sqlite3du_database.py
RogerMarsh/solentware-base
bc9a113c2c597e9f23e36e5cc6ba74eed41612d8
[ "BSD-3-Clause" ]
null
null
null
solentware_base/sqlite3du_database.py
RogerMarsh/solentware-base
bc9a113c2c597e9f23e36e5cc6ba74eed41612d8
[ "BSD-3-Clause" ]
null
null
null
solentware_base/sqlite3du_database.py
RogerMarsh/solentware-base
bc9a113c2c597e9f23e36e5cc6ba74eed41612d8
[ "BSD-3-Clause" ]
null
null
null
# sqlite3du_database.py # Copyright (c) 2019 Roger Marsh # Licence: See LICENCE (BSD licence) """Access a SQLite database deferring index updates. The sqlite3_database module provides the database interface. Prefer to use the sqlite3_database module normally. """ from . import sqlite3_database from .core import _sq...
26.391304
70
0.78089
78
607
5.961538
0.5
0.16129
0.116129
0.103226
0
0
0
0
0
0
0
0.021526
0.158155
607
22
71
27.590909
0.888454
0.733114
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
3a578f3a30e38776dbab1dfc996891af2aab80f7
732
py
Python
myvenv/Lib/site-packages/mptt/compat.py
Fa67/saleor-shop
76110349162c54c8bfcae61983bb59ba8fb0f778
[ "BSD-3-Clause" ]
null
null
null
myvenv/Lib/site-packages/mptt/compat.py
Fa67/saleor-shop
76110349162c54c8bfcae61983bb59ba8fb0f778
[ "BSD-3-Clause" ]
null
null
null
myvenv/Lib/site-packages/mptt/compat.py
Fa67/saleor-shop
76110349162c54c8bfcae61983bb59ba8fb0f778
[ "BSD-3-Clause" ]
1
2019-04-17T18:03:38.000Z
2019-04-17T18:03:38.000Z
def remote_field(field): # remote_field is new in Django 1.9 return field.remote_field if hasattr(field, 'remote_field') else getattr(field, 'rel', None) def remote_model(field): # remote_field is new in Django 1.9 return field.remote_field.model if hasattr(field, 'remote_field') else field.rel.to d...
33.272727
96
0.685792
105
732
4.590476
0.32381
0.159751
0.19917
0.074689
0.340249
0.340249
0.219917
0.219917
0.219917
0.219917
0
0.010601
0.226776
732
21
97
34.857143
0.840989
0.150273
0
0
0
0
0.058252
0
0
0
0
0
0
1
0.214286
false
0
0
0.142857
0.571429
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
1
0
0
0
1
0
0
0
3
28b8b2826846f45e63c96e870440e776561e5bf9
226
wsgi
Python
server.wsgi
nlohmann/lqfb_viewer
c89b08818cc69aa17eaf69a9268fcc94492fcaea
[ "Unlicense", "MIT" ]
null
null
null
server.wsgi
nlohmann/lqfb_viewer
c89b08818cc69aa17eaf69a9268fcc94492fcaea
[ "Unlicense", "MIT" ]
1
2019-01-12T12:09:04.000Z
2019-01-12T13:20:17.000Z
server.wsgi
nlohmann/lqfb_viewer
c89b08818cc69aa17eaf69a9268fcc94492fcaea
[ "Unlicense", "MIT" ]
null
null
null
import sys path = '/projects/lf.nlohmann.me/lqfb_viewer' activate_this = path + '/venv/bin/activate_this.py' execfile(activate_this, dict(__file__=activate_this)) sys.path.insert(0, path) from app import app as application
22.6
53
0.778761
35
226
4.771429
0.657143
0.287425
0
0
0
0
0
0
0
0
0
0.004926
0.10177
226
9
54
25.111111
0.817734
0
0
0
0
0
0.274336
0.274336
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
28e464c98d581750639232eebf1e4061cdeaba9c
315
py
Python
unsorted/pythonsnippets_0014.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
unsorted/pythonsnippets_0014.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
unsorted/pythonsnippets_0014.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
from twisted.spread import pb class QuoteReader(pb.Root): def __init__(self, quoter): self.quoter = quoter def remote_nextQuote(self): return self.quoter.getQuote() class Quoter(object): def getQuote(self): return 'Hello World!!\n' factory = pb.PBServerFactory(QuoteReader(Quoter()))
24.230769
51
0.701587
39
315
5.538462
0.564103
0.138889
0
0
0
0
0
0
0
0
0
0
0.180952
315
13
51
24.230769
0.837209
0
0
0
0
0
0.047468
0
0
0
0
0
0
1
0.333333
false
0
0.111111
0.222222
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
28f1b24f6cefb81ac3e772b1a577147a7a36fa0e
737
py
Python
py_utils.py
felipegb94/fgb_research_utils
8328b9c65bf22d6e84df54106f9bd2d2029b6aa5
[ "MIT" ]
3
2022-03-28T04:56:29.000Z
2022-03-28T17:44:47.000Z
py_utils.py
felipegb94/fgb_research_utils
8328b9c65bf22d6e84df54106f9bd2d2029b6aa5
[ "MIT" ]
null
null
null
py_utils.py
felipegb94/fgb_research_utils
8328b9c65bf22d6e84df54106f9bd2d2029b6aa5
[ "MIT" ]
null
null
null
''' Useful functions in python ''' #### Standard Library Imports #### Library imports #### Local imports from research_utils.shared_constants import EPSILON def get_obj_functions(obj, filter_str: str = ''): ''' Get all callable functions of the object as a list of strings. filter_str only appen...
27.296296
78
0.671642
103
737
4.640777
0.533981
0.075314
0
0
0
0
0
0
0
0
0
0.008636
0.214383
737
27
79
27.296296
0.816926
0.287653
0
0
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0.181818
0.636364
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
e90b875293d33f9cc7e2d9db18b2ab22bc4e9661
842
py
Python
monero_glue/messages/ButtonRequestType.py
ph4r05/monero-agent
0bac0e6f33142b2bb885565bfd1ef8ac04559280
[ "MIT" ]
20
2018-04-05T22:06:10.000Z
2021-09-18T10:43:44.000Z
monero_glue/messages/ButtonRequestType.py
ph4r05/monero-agent
0bac0e6f33142b2bb885565bfd1ef8ac04559280
[ "MIT" ]
null
null
null
monero_glue/messages/ButtonRequestType.py
ph4r05/monero-agent
0bac0e6f33142b2bb885565bfd1ef8ac04559280
[ "MIT" ]
5
2018-08-06T15:06:04.000Z
2021-07-16T01:58:43.000Z
# Automatically generated by pb2py # fmt: off if False: from typing_extensions import Literal Other = 1 # type: Literal[1] FeeOverThreshold = 2 # type: Literal[2] ConfirmOutput = 3 # type: Literal[3] ResetDevice = 4 # type: Literal[4] ConfirmWord = 5 # type: Literal[5] WipeDevice = 6 # type: Literal[6] Prote...
33.68
66
0.7019
110
842
5.336364
0.490909
0.356048
0
0
0
0
0
0
0
0
0
0.085507
0.180523
842
24
67
35.083333
0.765217
0.444181
0
0
1
0
0
0
0
0
0
0
0
1
0
false
0.095238
0.047619
0
0.047619
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
e915bc1fddcb0f2d86b07e879eb95c16f56fe910
242
py
Python
apps/dataupload/urls.py
Sunbird-Ed/evolve-api
371b39422839762e32401340456c13858cb8e1e9
[ "MIT" ]
1
2019-02-27T15:26:11.000Z
2019-02-27T15:26:11.000Z
apps/dataupload/urls.py
Sunbird-Ed/evolve-api
371b39422839762e32401340456c13858cb8e1e9
[ "MIT" ]
9
2019-12-16T10:09:46.000Z
2022-03-11T23:42:12.000Z
apps/dataupload/urls.py
Sunbird-Ed/evolve-api
371b39422839762e32401340456c13858cb8e1e9
[ "MIT" ]
null
null
null
from django.urls import path, include from apps.dataupload import views urlpatterns=[ path('tocupload', views.TOCUploadView.as_view(), name = 'TOCUploadView'), path('chapterlist', views.ChapterList.as_view(), name = 'ChapterList'), ]
34.571429
77
0.739669
28
242
6.321429
0.571429
0.067797
0.112994
0
0
0
0
0
0
0
0
0
0.119835
242
7
78
34.571429
0.830986
0
0
0
0
0
0.18107
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
e91cff4c03498a8ab3913f014c4f91dfb02c5a8f
316
py
Python
src/shared/debug.py
bobbyluig/eclipse
ed2d3ed40b878eaddaf8997749fde5a11428964e
[ "MIT" ]
6
2018-12-11T19:09:57.000Z
2022-03-04T00:28:40.000Z
src/shared/debug.py
bobbyluig/Eclipse
ed2d3ed40b878eaddaf8997749fde5a11428964e
[ "MIT" ]
null
null
null
src/shared/debug.py
bobbyluig/Eclipse
ed2d3ed40b878eaddaf8997749fde5a11428964e
[ "MIT" ]
1
2020-07-10T07:20:04.000Z
2020-07-10T07:20:04.000Z
class Dummy: """ Implements a dummy class that is completely inert. """ def __init__(self, *args, **kwargs): pass def __getattr__(self, item): return self.dummy_function def __setattr__(self, key, value): pass def dummy_function(*args, **kwargs): pass
18.588235
54
0.594937
36
316
4.833333
0.583333
0.114943
0.16092
0
0
0
0
0
0
0
0
0
0.300633
316
16
55
19.75
0.78733
0.158228
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.444444
false
0.333333
0
0.111111
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
1
0
0
0
3
e9292ff50da3b786a85663be27fa2f9a64d549e5
202
py
Python
src/mk/__init__.py
ssbarnea/mk
adf0257c4259b55b0e2b9ee0fa29422cd676057d
[ "MIT" ]
18
2021-04-07T16:17:48.000Z
2022-02-21T11:09:12.000Z
src/mk/__init__.py
pycontribs/mk
a57bbb56e3c8e450606fc7874315376444ae538b
[ "MIT" ]
17
2021-03-15T10:53:53.000Z
2021-08-03T09:27:49.000Z
src/mk/__init__.py
ssbarnea/mk
adf0257c4259b55b0e2b9ee0fa29422cd676057d
[ "MIT" ]
5
2021-04-10T10:53:41.000Z
2021-07-25T10:12:21.000Z
"""init code of mk module.""" from importlib_metadata import PackageNotFoundError, version try: __version__ = version(__name__) except PackageNotFoundError: # package is not installed pass
22.444444
60
0.757426
22
202
6.545455
0.863636
0
0
0
0
0
0
0
0
0
0
0
0.173267
202
8
61
25.25
0.862275
0.242574
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.2
0.2
0
0.2
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
1
0
0
0
0
0
3
e93921937cd1cb1bea56144e00909280b5e4dca8
230
py
Python
01-basics/07-aes-ecb.py
DavidBuchanan314/cryptopals-python3
fe53fb1d324639193451e11d2d93cb251bce3021
[ "MIT" ]
null
null
null
01-basics/07-aes-ecb.py
DavidBuchanan314/cryptopals-python3
fe53fb1d324639193451e11d2d93cb251bce3021
[ "MIT" ]
null
null
null
01-basics/07-aes-ecb.py
DavidBuchanan314/cryptopals-python3
fe53fb1d324639193451e11d2d93cb251bce3021
[ "MIT" ]
null
null
null
from sys import path; path += [".", ".."] # hacky... from utils import * if __name__ == "__main__": ciphertext = d64(load_data("7.txt")) plaintext = aesunpad(aesdec(ciphertext, b"YELLOW SUBMARINE")).decode() print(plaintext)
25.555556
71
0.669565
28
230
5.178571
0.821429
0
0
0
0
0
0
0
0
0
0
0.015152
0.13913
230
8
72
28.75
0.717172
0.034783
0
0
0
0
0.145455
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.166667
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
e946428839ef8c18288a881c4f65ad4efe99b771
410
py
Python
date_comparison.py
marting87/py-codes
4a4c65f29f57dfad2d95ef935276840f0c9b18e9
[ "MIT" ]
12
2015-04-17T01:34:37.000Z
2020-05-03T10:47:57.000Z
date_comparison.py
marting87/py-codes
4a4c65f29f57dfad2d95ef935276840f0c9b18e9
[ "MIT" ]
null
null
null
date_comparison.py
marting87/py-codes
4a4c65f29f57dfad2d95ef935276840f0c9b18e9
[ "MIT" ]
12
2015-03-08T23:20:32.000Z
2019-12-18T21:08:53.000Z
from datetime import datetime date1 = datetime(2015,03,04) date2 = datetime(2015,03,03) date3 = datetime(2015,03,05) date4 = datetime(2015,03,03) print "Date 1: ",date1 print "Date 2: ",date2 print "Date 3: ",date3 print "Date 4: ",date4 if date1 < date3: print "date1 is greater than date3" if date1 > date2: pri...
18.636364
36
0.702439
67
410
4.298507
0.358209
0.166667
0.194444
0.111111
0.159722
0
0
0
0
0
0
0.166172
0.178049
410
22
37
18.636364
0.688427
0
0
0
0
0
0.270073
0
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.466667
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
1
0
0
0
0
0
0
1
0
3
3a62a27518f5d3fe477886166c64e18ed532ab54
553
py
Python
escalate/rest_api/tests/model_tests/workflow/__init__.py
darkreactions/ESCALATE
0020da00b81a2dd80d1c9fd72d2edf92b519e605
[ "MIT" ]
11
2020-09-29T13:59:02.000Z
2022-03-23T04:57:52.000Z
escalate/rest_api/tests/model_tests/workflow/__init__.py
darkreactions/ESCALATE
0020da00b81a2dd80d1c9fd72d2edf92b519e605
[ "MIT" ]
95
2019-11-18T20:10:49.000Z
2022-03-31T17:09:49.000Z
escalate/rest_api/tests/model_tests/workflow/__init__.py
darkreactions/ESCALATE
0020da00b81a2dd80d1c9fd72d2edf92b519e605
[ "MIT" ]
2
2021-11-26T18:22:08.000Z
2022-03-31T11:57:10.000Z
from .action import * from .actionunit import * from .actiondef import * from .billofmaterials import * from .basebommaterial import * from .experiment import * from .experimenttype import * from .experimentworkflow import * from .outcome import * from .workflow import * from .workflowtype import * ## NEED TO BE FIXE...
25.136364
47
0.770344
67
553
6.358209
0.432836
0.28169
0.032864
0.075117
0
0
0
0
0
0
0
0
0.159132
553
21
48
26.333333
0.916129
0.417722
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
3a6bf5b7cd1c151242187c83c3facfeba46cd072
673
py
Python
tests/unit/props/types/test_string.py
manoadamro/jason
e6a152797cc47fc158b41f1f4b4d55f79d0494f7
[ "MIT" ]
null
null
null
tests/unit/props/types/test_string.py
manoadamro/jason
e6a152797cc47fc158b41f1f4b4d55f79d0494f7
[ "MIT" ]
136
2019-05-15T07:30:47.000Z
2021-07-19T05:21:39.000Z
tests/unit/props/types/test_string.py
manoadamro/jason
e6a152797cc47fc158b41f1f4b4d55f79d0494f7
[ "MIT" ]
1
2019-05-15T10:00:34.000Z
2019-05-15T10:00:34.000Z
import pytest from jason import props def test_nullable(): props.String(nullable=True).load(None) def test_not_nullable(): with pytest.raises(props.PropertyValidationError): props.String().load(None) def test_wrong_type(): with pytest.raises(props.PropertyValidationError): props.Strin...
21.03125
62
0.71471
84
673
5.583333
0.357143
0.089552
0.136461
0.179104
0.486141
0.486141
0.486141
0.251599
0
0
0
0.042179
0.154532
673
31
63
21.709677
0.782074
0
0
0.222222
0
0
0.023774
0
0
0
0
0
0.055556
1
0.333333
true
0
0.111111
0
0.444444
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
3
3ac050ec68eca3f8703ba3f2b6c1b4d6b414a488
480
py
Python
servicecatalog_puppet/workflow/lambda_invocations/lambda_invocation_for_account_task.py
richardmilnerwatts/aws-service-catalog-puppet
cd866860073b0e43722cc941bacd38df4e84f7a1
[ "Apache-2.0" ]
66
2019-04-23T12:10:27.000Z
2022-03-31T19:47:09.000Z
servicecatalog_puppet/workflow/lambda_invocations/lambda_invocation_for_account_task.py
richardmilnerwatts/aws-service-catalog-puppet
cd866860073b0e43722cc941bacd38df4e84f7a1
[ "Apache-2.0" ]
283
2019-04-18T22:21:20.000Z
2022-03-31T10:04:42.000Z
servicecatalog_puppet/workflow/lambda_invocations/lambda_invocation_for_account_task.py
richardmilnerwatts/aws-service-catalog-puppet
cd866860073b0e43722cc941bacd38df4e84f7a1
[ "Apache-2.0" ]
47
2019-05-14T12:45:57.000Z
2022-03-25T17:54:22.000Z
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import luigi from servicecatalog_puppet.workflow.generic import generic_for_account_task from servicecatalog_puppet.workflow.lambda_invocations import lambda_invocation_for_task class LambdaInvocationFo...
32
88
0.839583
56
480
6.910714
0.642857
0.093023
0.124031
0.165375
0
0
0
0
0
0
0
0.013953
0.104167
480
14
89
34.285714
0.886047
0.225
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.375
0
0.625
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
3ada9cb90bf00648a32de761211817c5c9f801b6
339
py
Python
3rdparty/huawei-lte-api/huawei_lte_api/api/UsbStorage.py
tux1c0/plugin-huawei4g
af83ce6321db23fcfd51eb204e00c287d3ea2325
[ "MIT" ]
null
null
null
3rdparty/huawei-lte-api/huawei_lte_api/api/UsbStorage.py
tux1c0/plugin-huawei4g
af83ce6321db23fcfd51eb204e00c287d3ea2325
[ "MIT" ]
1
2020-06-21T20:35:27.000Z
2020-07-14T20:08:55.000Z
3rdparty/huawei-lte-api/huawei_lte_api/api/UsbStorage.py
tux1c0/plugin-huawei4g
af83ce6321db23fcfd51eb204e00c287d3ea2325
[ "MIT" ]
3
2020-02-27T11:35:55.000Z
2021-03-25T08:51:51.000Z
from huawei_lte_api.ApiGroup import ApiGroup from huawei_lte_api.Connection import GetResponseType class UsbStorage(ApiGroup): def fsstatus(self) -> GetResponseType: return self._connection.get('usbstorage/fsstatus') def usbaccount(self) -> GetResponseType: return self._connection.get('usbst...
28.25
60
0.766962
37
339
6.864865
0.432432
0.07874
0.102362
0.125984
0.409449
0.409449
0.409449
0
0
0
0
0
0.147493
339
11
61
30.818182
0.878893
0
0
0
0
0
0.117994
0.061947
0
0
0
0
0
1
0.285714
false
0
0.285714
0.285714
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
aafcb79c55e4b9077088a1cdb46d4f249aa361cb
211
py
Python
validation/exceptions/base_error.py
moveaxlab/validation-py
c435b5b470bedde953a6f6a6363b8a268a20c926
[ "MIT" ]
1
2019-03-20T14:25:41.000Z
2019-03-20T14:25:41.000Z
validation/exceptions/base_error.py
moveaxlab/validation-py
c435b5b470bedde953a6f6a6363b8a268a20c926
[ "MIT" ]
null
null
null
validation/exceptions/base_error.py
moveaxlab/validation-py
c435b5b470bedde953a6f6a6363b8a268a20c926
[ "MIT" ]
null
null
null
""" Base Error """ from abc import abstractmethod from .error import Error class BaseError(Error): @staticmethod @abstractmethod def name() -> str: """ Specifies the name of the error """
17.583333
47
0.649289
24
211
5.708333
0.625
0
0
0
0
0
0
0
0
0
0
0
0.241706
211
11
48
19.181818
0.85625
0.203791
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
true
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
c910c1ebd59e1f2e569d43647d055a67e5ef59a5
339
py
Python
pythonBase/advancePyton/chapter12/gen_to_coruntine.py
cangchengkun/pythonbase
4e01331b1c7c13d86f32f697dd812cb267abe7ef
[ "CNRI-Python" ]
null
null
null
pythonBase/advancePyton/chapter12/gen_to_coruntine.py
cangchengkun/pythonbase
4e01331b1c7c13d86f32f697dd812cb267abe7ef
[ "CNRI-Python" ]
null
null
null
pythonBase/advancePyton/chapter12/gen_to_coruntine.py
cangchengkun/pythonbase
4e01331b1c7c13d86f32f697dd812cb267abe7ef
[ "CNRI-Python" ]
null
null
null
# 生成器是一个可以暂停的函数 import inspect def gen_fun(): yield 1 return "bobby" if __name__ == '__main__': gen = gen_fun() print(inspect.getgeneratorstate(gen)) next(gen) print(inspect.getgeneratorstate(gen)) try: next(gen) except StopIteration as e: pass print(inspect.getge...
16.95
41
0.648968
38
339
5.526316
0.578947
0.171429
0.414286
0.457143
0
0
0
0
0
0
0
0.003922
0.247788
339
19
42
17.842105
0.819608
0.038348
0
0.357143
0
0
0.040123
0
0
0
0
0
0
1
0.071429
false
0.071429
0.071429
0
0.214286
0.214286
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
c93850b61e650e544b9a1482958675b1282fdb2d
213
py
Python
src/botmode.py
lewdrops/neetbot
2e8e390c5c77a6dadc608239fb7da855ac7dfaf0
[ "MIT" ]
null
null
null
src/botmode.py
lewdrops/neetbot
2e8e390c5c77a6dadc608239fb7da855ac7dfaf0
[ "MIT" ]
null
null
null
src/botmode.py
lewdrops/neetbot
2e8e390c5c77a6dadc608239fb7da855ac7dfaf0
[ "MIT" ]
null
null
null
# todo: delete bot's own replies in botmode import asyncio BOTMODE_DELETION_TIME = 3 async def delete_msg_in(message, seconds=BOTMODE_DELETION_TIME): await asyncio.sleep(seconds) await message.delete()
21.3
64
0.779343
31
213
5.16129
0.645161
0.1875
0.2375
0
0
0
0
0
0
0
0
0.005525
0.150235
213
9
65
23.666667
0.878453
0.192488
0
0
0
0
0
0
0
0
0
0.111111
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
1
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
1
0
0
0
0
0
0
0
0
0
0
3
c9522e9fc94c00be5c8a7ce19ffbf0add5df90b5
283
py
Python
exercs/ex013.py
gugamacedo/logica-e-algoritmos
787e771cf9ecebe876ac895fd0b544476d8e3b15
[ "MIT" ]
null
null
null
exercs/ex013.py
gugamacedo/logica-e-algoritmos
787e771cf9ecebe876ac895fd0b544476d8e3b15
[ "MIT" ]
null
null
null
exercs/ex013.py
gugamacedo/logica-e-algoritmos
787e771cf9ecebe876ac895fd0b544476d8e3b15
[ "MIT" ]
null
null
null
# Faça um algoritmo que leia o salário de um funcionário e mostre seu novo salário, com 15% de aumento salr = float(input('Qual seu salário? ')) print(f'Parabéns, você ganhou um aumento! Seu novo salário é R${salr * 1.15:.2f}\n' f'(O aumento dado foi de R${salr * 0.15:.2f})')
56.6
102
0.689046
53
283
3.679245
0.622642
0.071795
0.14359
0
0
0
0
0
0
0
0
0.04329
0.183746
283
4
103
70.75
0.800866
0.353357
0
0
0
0.333333
0.745856
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
c95ba89bfe8ef97b6c3aafdcb38feec0fa5480dc
60
py
Python
flatpak_indexer/datasource/pyxis/__init__.py
kalev/flatpak-indexer
540bdb465e73b0c4627ddbeb649dddcca4b24b59
[ "MIT" ]
null
null
null
flatpak_indexer/datasource/pyxis/__init__.py
kalev/flatpak-indexer
540bdb465e73b0c4627ddbeb649dddcca4b24b59
[ "MIT" ]
null
null
null
flatpak_indexer/datasource/pyxis/__init__.py
kalev/flatpak-indexer
540bdb465e73b0c4627ddbeb649dddcca4b24b59
[ "MIT" ]
null
null
null
from .updater import PyxisUpdater __all__ = [PyxisUpdater]
15
33
0.8
6
60
7.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.133333
60
3
34
20
0.846154
0
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
c97543bf88832cf468a79820e867462b7d6c6b3e
240
py
Python
mysite/analytics/admin.py
cjlee112/socraticqs2
2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820
[ "Apache-2.0" ]
8
2015-06-02T15:34:44.000Z
2019-03-21T12:27:30.000Z
mysite/analytics/admin.py
cjlee112/socraticqs2
2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820
[ "Apache-2.0" ]
761
2015-01-07T05:13:08.000Z
2022-02-10T10:23:37.000Z
mysite/analytics/admin.py
cjlee112/socraticqs2
2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820
[ "Apache-2.0" ]
12
2015-01-28T20:09:36.000Z
2018-03-20T13:32:11.000Z
from django.contrib import admin from .models import CourseReport class CourseReportAdmin(admin.ModelAdmin): list_display = ('course', 'date', 'response_report', 'error_report') admin.site.register(CourseReport, CourseReportAdmin)
21.818182
72
0.783333
26
240
7.115385
0.730769
0
0
0
0
0
0
0
0
0
0
0
0.1125
240
10
73
24
0.868545
0
0
0
0
0
0.154167
0
0
0
0
0
0
1
0
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
0
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
c9778e1b6a3ff0c08e55beabe4e75db21e853ccc
1,217
py
Python
tests/test_num2word.py
leowmjw/Malaya
33f39835eca08c238d2dd68aeca3b09c5d0a45ab
[ "MIT" ]
2
2019-06-23T20:19:22.000Z
2020-04-16T13:02:32.000Z
tests/test_num2word.py
aizatrosli/Malaya
d326384d2c0925c139a7224b77ac20f0ad57f237
[ "MIT" ]
null
null
null
tests/test_num2word.py
aizatrosli/Malaya
d326384d2c0925c139a7224b77ac20f0ad57f237
[ "MIT" ]
1
2020-03-03T02:04:06.000Z
2020-03-03T02:04:06.000Z
import malaya def test_to_cardinal(): assert malaya.to_cardinal(123456789) == 'seratus dua puluh tiga juta empat ratus lima puluh enam ribu tujuh ratus lapan puluh sembilan' def test_to_cardinal_negative(): assert 'negatif' in malaya.to_cardinal(-123456789) def test_to_cardinal_negative_decimal(): assert...
31.205128
147
0.741167
181
1,217
4.745856
0.254144
0.111758
0.11525
0.098952
0.410943
0.303842
0.303842
0.303842
0.303842
0.303842
0
0.057957
0.163517
1,217
38
148
32.026316
0.785855
0
0
0
0
0
0.286771
0
0
0
0
0
0.407407
1
0.407407
true
0.037037
0.037037
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
1
0
0
0
0
0
0
3
a3292c318bf82690f139eea95b8c1440bd095366
4,573
py
Python
networkapiclient/ApiPool.py
shildenbrand/GloboNetworkAPI-client-python
728ea9d13e3004e62586f5eb6ae2eae2bc41a50e
[ "Apache-2.0" ]
16
2015-05-09T16:33:01.000Z
2019-10-24T19:06:03.000Z
networkapiclient/ApiPool.py
shildenbrand/GloboNetworkAPI-client-python
728ea9d13e3004e62586f5eb6ae2eae2bc41a50e
[ "Apache-2.0" ]
3
2019-08-09T20:18:12.000Z
2019-11-11T17:23:48.000Z
networkapiclient/ApiPool.py
shildenbrand/GloboNetworkAPI-client-python
728ea9d13e3004e62586f5eb6ae2eae2bc41a50e
[ "Apache-2.0" ]
15
2015-02-03T17:10:59.000Z
2021-05-14T21:01:37.000Z
# -*- coding:utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Lice...
33.874074
88
0.625847
585
4,573
4.813675
0.270085
0.028409
0.051136
0.0625
0.448153
0.430753
0.378196
0.361861
0.330256
0.330256
0
0.003977
0.285152
4,573
134
89
34.126866
0.857449
0.516291
0
0.189189
0
0
0.092541
0.030286
0
0
0
0
0
1
0.243243
false
0.054054
0.054054
0
0.540541
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
a32ab163405f485e29b766d7e3763bf2b641d786
188
py
Python
URLparser/core/colors.py
DevanshRaghav75/URLparser
0121b6a8e8f5157bef1c9451d7ddaad500f94aac
[ "MIT" ]
1
2021-07-12T11:38:31.000Z
2021-07-12T11:38:31.000Z
URLparser/core/colors.py
DevanshRaghav75/URLparser
0121b6a8e8f5157bef1c9451d7ddaad500f94aac
[ "MIT" ]
null
null
null
URLparser/core/colors.py
DevanshRaghav75/URLparser
0121b6a8e8f5157bef1c9451d7ddaad500f94aac
[ "MIT" ]
null
null
null
import colorama RED = colorama.Fore.RED GREEN = colorama.Fore.GREEN GRAY = colorama.Fore.LIGHTBLACK_EX RESET = colorama.Fore.RESET YELLOW = colorama.Fore.YELLOW CYAN = colorama.Fore.CYAN
20.888889
34
0.792553
27
188
5.481481
0.407407
0.486486
0
0
0
0
0
0
0
0
0
0
0.111702
188
8
35
23.5
0.886228
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
a33fccdd19b869118f3e8c4fb45d4c2b87824b2a
505
py
Python
aws_s3_rules/aws_s3_access_error.py
BatteryCandy/panther-analysis
a67ca63581fe328d3f2c7493f0cdb889acb3181f
[ "Apache-2.0" ]
1
2020-10-21T08:14:49.000Z
2020-10-21T08:14:49.000Z
aws_s3_rules/aws_s3_access_error.py
georgeSkoumas/panther-analysis
30b21c270504bf7c84f99207c9c6c2f6110843ae
[ "Apache-2.0" ]
null
null
null
aws_s3_rules/aws_s3_access_error.py
georgeSkoumas/panther-analysis
30b21c270504bf7c84f99207c9c6c2f6110843ae
[ "Apache-2.0" ]
null
null
null
from fnmatch import fnmatch # https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html HTTP_STATUS_CODES_TO_MONITOR = { 400, # Bad Request 403, # Forbidden 405, # Method Not Allowed } def rule(event): return (fnmatch(event['operation'], 'REST.*.OBJECT') and event['httpstatus...
22.954545
77
0.691089
67
505
5.089552
0.671642
0.096774
0.087977
0.099707
0.140762
0
0
0
0
0
0
0.02657
0.180198
505
21
78
24.047619
0.797101
0.213861
0
0
0
0
0.204082
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0.230769
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
a34ebcb0d558b8bcba3bf82c168120091d77af17
534
py
Python
test_cases/general/array/of/string/py/test_generate/__init__.py
Parquery/mapry
93515307f9eba8447fe64b0ac7cc68b2d07205a7
[ "MIT" ]
11
2019-06-26T05:56:41.000Z
2021-03-28T16:44:16.000Z
test_cases/general/array/of/string/py/test_generate/__init__.py
Parquery/mapry
93515307f9eba8447fe64b0ac7cc68b2d07205a7
[ "MIT" ]
4
2019-10-18T14:43:59.000Z
2020-04-02T19:12:07.000Z
test_cases/general/array/of/string/py/test_generate/__init__.py
Parquery/mapry
93515307f9eba8447fe64b0ac7cc68b2d07205a7
[ "MIT" ]
3
2019-06-17T07:39:03.000Z
2020-04-01T14:01:23.000Z
# File automatically generated by mapry. DO NOT EDIT OR APPEND! """defines some object graph.""" import typing class SomeGraph: """defines some object graph.""" def __init__( self, array_of_strings: typing.List[str]) -> None: """ initializes an instance of SomeGrap...
20.538462
67
0.64794
67
534
4.985075
0.537313
0.10479
0.209581
0.167665
0.299401
0.299401
0.299401
0.299401
0.299401
0.299401
0
0
0.271536
534
25
68
21.36
0.858612
0.544944
0
0
1
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
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