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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cc807ac8eb42a4409f9ad4e4cdf0cb771e060f26 | 825 | py | Python | console.py | yemx21/DynGLR | 004eca01076c1ba775255108e349297c96806b06 | [
"MIT"
] | null | null | null | console.py | yemx21/DynGLR | 004eca01076c1ba775255108e349297c96806b06 | [
"MIT"
] | null | null | null | console.py | yemx21/DynGLR | 004eca01076c1ba775255108e349297c96806b06 | [
"MIT"
] | null | null | null | import pickle
from dataset import *
from models.tensorflow.dynglr import run_DYNGLR
from utils import *
def run(method, dataset, exp, noise, logmethod=None, **kwargs):
trainx, trainy, trainry, validx, validy, validry, testx, testy, classes = getdata_byexp(dataset, noise, exp)
if logmethod is None: logmethod=... | 41.25 | 128 | 0.675152 | 105 | 825 | 5.238095 | 0.447619 | 0.076364 | 0.069091 | 0.090909 | 0.338182 | 0.338182 | 0.338182 | 0.338182 | 0.2 | 0 | 0 | 0 | 0.169697 | 825 | 19 | 129 | 43.421053 | 0.80292 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cc8f850202f61471be7eb0c991cba8170829f14e | 6,173 | py | Python | tools/save_blobs.py | orestis-z/track-rcnn | 6b2405cb8308168106526b57027a1af3fe9df0f3 | [
"Apache-2.0"
] | 9 | 2020-10-16T22:20:09.000Z | 2022-03-22T11:08:01.000Z | tools/save_blobs.py | orestis-z/track-rcnn | 6b2405cb8308168106526b57027a1af3fe9df0f3 | [
"Apache-2.0"
] | null | null | null | tools/save_blobs.py | orestis-z/track-rcnn | 6b2405cb8308168106526b57027a1af3fe9df0f3 | [
"Apache-2.0"
] | 2 | 2021-10-04T14:27:52.000Z | 2022-03-22T11:07:53.000Z | """Blob pre-computation.
Saves network blobs computed on a dataset to possibly speed up training time.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from collections import defaultdict
from collections import d... | 32.151042 | 83 | 0.690264 | 832 | 6,173 | 4.88101 | 0.324519 | 0.032012 | 0.029303 | 0.019207 | 0.105393 | 0.030042 | 0 | 0 | 0 | 0 | 0 | 0.007006 | 0.213834 | 6,173 | 191 | 84 | 32.319372 | 0.829796 | 0.08602 | 0 | 0.111111 | 0 | 0 | 0.069703 | 0.014383 | 0 | 0 | 0 | 0.005236 | 0.019608 | 0 | null | null | 0.006536 | 0.202614 | null | null | 0.013072 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc949c1126f86cee6f46d28a8b1fc687570c9125 | 375 | py | Python | clearScreen.py | BlueDragon022/Fruit-Machine | e7e2aae3d7b50932f21f79cb1ffa2fef1b26a76b | [
"MIT"
] | null | null | null | clearScreen.py | BlueDragon022/Fruit-Machine | e7e2aae3d7b50932f21f79cb1ffa2fef1b26a76b | [
"MIT"
] | null | null | null | clearScreen.py | BlueDragon022/Fruit-Machine | e7e2aae3d7b50932f21f79cb1ffa2fef1b26a76b | [
"MIT"
] | null | null | null | import os
import platform
#Function to clear the screen
def clearScreen():
#This goes through different os's and uses the correct command to clear the terminal/console
if platform.system() == "Windows":
os.system("cls")
elif platform.system() == "Linux":
os.system("clear")
elif platform.system() == "Darwin": #... | 25 | 93 | 0.706667 | 53 | 375 | 5 | 0.566038 | 0.120755 | 0.14717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152 | 375 | 14 | 94 | 26.785714 | 0.833333 | 0.330667 | 0 | 0.272727 | 0 | 0 | 0.145161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | true | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc9f35307077e49381dd2be1e893d2b1290865f5 | 346 | py | Python | brewery/migrations/0038_update_bjcp_styles.py | willjschmitt/joulia-webserver | 712decb749c2d1bda71af49ecab245378bf30078 | [
"FTL"
] | null | null | null | brewery/migrations/0038_update_bjcp_styles.py | willjschmitt/joulia-webserver | 712decb749c2d1bda71af49ecab245378bf30078 | [
"FTL"
] | 95 | 2016-08-04T01:59:37.000Z | 2021-06-10T18:41:46.000Z | brewery/migrations/0038_update_bjcp_styles.py | willjschmitt/joulia-webserver | 712decb749c2d1bda71af49ecab245378bf30078 | [
"FTL"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
from brewery.migrations.utils.bjcp_guidelines import add_styles
class Migration(migrations.Migration):
dependencies = [
('brewery', '0037_auto_20180128_1405'),
]
operations = [
migrations.Ru... | 20.352941 | 63 | 0.708092 | 37 | 346 | 6.324324 | 0.702703 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060932 | 0.193642 | 346 | 16 | 64 | 21.625 | 0.777778 | 0.060694 | 0 | 0 | 0 | 0 | 0.092879 | 0.071207 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cca3659399eee0660e2b7fc390720d87d9c7a51d | 236 | py | Python | hy-data-analysis-with-python-spring-2020/part01-e04_multiplication_table/src/multiplication_table.py | Melimet/DAP2020 | 0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a | [
"MIT"
] | null | null | null | hy-data-analysis-with-python-spring-2020/part01-e04_multiplication_table/src/multiplication_table.py | Melimet/DAP2020 | 0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a | [
"MIT"
] | null | null | null | hy-data-analysis-with-python-spring-2020/part01-e04_multiplication_table/src/multiplication_table.py | Melimet/DAP2020 | 0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
def main():
for i in range(1,11):
for j in range(1,11):
if(j==10):
print(i*j)
else:
print(i*j, end=" ")
if __name__ == "__main__":
main()
| 16.857143 | 35 | 0.419492 | 33 | 236 | 2.757576 | 0.575758 | 0.153846 | 0.175824 | 0.21978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0.415254 | 236 | 13 | 36 | 18.153846 | 0.594203 | 0.088983 | 0 | 0 | 0 | 0 | 0.042056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cca469109fd93905495318751b23afc178198288 | 1,688 | py | Python | tests/data23/recipe-355638.py | JohannesBuchner/pystrict3 | f442a89ac6a23f4323daed8ef829d8e9e1197f90 | [
"BSD-2-Clause"
] | 1 | 2020-06-05T08:53:26.000Z | 2020-06-05T08:53:26.000Z | tests/data23/recipe-355638.py | JohannesBuchner/pystrict3 | f442a89ac6a23f4323daed8ef829d8e9e1197f90 | [
"BSD-2-Clause"
] | 1 | 2020-06-04T13:47:19.000Z | 2020-06-04T13:47:57.000Z | tests/data23/recipe-355638.py | JohannesBuchner/pystrict3 | f442a89ac6a23f4323daed8ef829d8e9e1197f90 | [
"BSD-2-Clause"
] | 1 | 2020-11-07T17:02:46.000Z | 2020-11-07T17:02:46.000Z | def require(*types):
'''
Return a decorator function that requires specified types.
types -- tuple each element of which is a type or class or a tuple of
several types or classes.
Example to require a string then a numeric argument
@require(str, (int, long, float))
will do the tric... | 30.690909 | 77 | 0.574645 | 240 | 1,688 | 4.016667 | 0.395833 | 0.012448 | 0.026971 | 0.014523 | 0.064315 | 0.064315 | 0.064315 | 0.064315 | 0.064315 | 0.064315 | 0 | 0.009283 | 0.297986 | 1,688 | 54 | 78 | 31.259259 | 0.804219 | 0.32109 | 0 | 0.064516 | 0 | 0 | 0.168744 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 1 | 0.225806 | false | 0 | 0 | 0 | 0.322581 | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cca50a5e9a4a3f442281e9445726ee41fa481911 | 7,944 | py | Python | src/pass.py | clarkb7/keypirinha-pass | 2a7d4e39e684395618ed2fbd8ed20c0563e6bd66 | [
"MIT"
] | 3 | 2020-06-10T03:52:54.000Z | 2022-03-22T17:00:44.000Z | src/pass.py | clarkb7/keypirinha-pass | 2a7d4e39e684395618ed2fbd8ed20c0563e6bd66 | [
"MIT"
] | null | null | null | src/pass.py | clarkb7/keypirinha-pass | 2a7d4e39e684395618ed2fbd8ed20c0563e6bd66 | [
"MIT"
] | null | null | null | import os
import threading
import hashlib
import ast
import keypirinha as kp
import keypirinha_util as kpu
class Pass(kp.Plugin):
"""
Provides an interface to a [password store](https://www.passwordstore.org/).
"""
CAT_FILE = kp.ItemCategory.USER_BASE + 1
CAT_FILE_LINE = kp.ItemCategory.USER_BASE ... | 38.563107 | 111 | 0.572508 | 969 | 7,944 | 4.49742 | 0.234262 | 0.017669 | 0.020193 | 0.020652 | 0.206517 | 0.15833 | 0.143185 | 0.066544 | 0.066544 | 0.029371 | 0 | 0.003422 | 0.337865 | 7,944 | 205 | 112 | 38.75122 | 0.825095 | 0.174849 | 0 | 0.162162 | 0 | 0 | 0.037713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067568 | false | 0.175676 | 0.054054 | 0 | 0.202703 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ccb616492c9d2bd372fa13749184e45ddcd68be1 | 539 | py | Python | COMTRIS/modules/bs4_crawler/error_edit.py | songyw0517/COMTRIS | 37fa22fcb6958dca43e830a84b85d457d801d9a5 | [
"MIT"
] | null | null | null | COMTRIS/modules/bs4_crawler/error_edit.py | songyw0517/COMTRIS | 37fa22fcb6958dca43e830a84b85d457d801d9a5 | [
"MIT"
] | null | null | null | COMTRIS/modules/bs4_crawler/error_edit.py | songyw0517/COMTRIS | 37fa22fcb6958dca43e830a84b85d457d801d9a5 | [
"MIT"
] | 5 | 2021-01-17T14:28:31.000Z | 2021-01-24T09:05:18.000Z | import os
from pymongo import *
myclient = MongoClient(os.environ["COMTRIS_MONGODB_URI"])
db = myclient['COMTRIS']
col = db['pc_quote']
col.update({}, {'$inc' : {'id' : 2000000}}, multi=True) # id 200만 증가
# col.update({}, {'$inc' : {'id' , '2000000'}})
# 이 에러는 key : value를 맞추지 않은 경우에 발생한다.
# bson.errors.InvalidDocu... | 31.705882 | 93 | 0.675325 | 81 | 539 | 4.45679 | 0.753086 | 0.049862 | 0.066482 | 0.077562 | 0.116343 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053452 | 0.166976 | 539 | 16 | 94 | 33.6875 | 0.750557 | 0.606679 | 0 | 0 | 0 | 0 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ccba249c29fde7327950c1b35c75c2d1ba1cae9f | 428 | py | Python | business/urls.py | faisoabdirisak/NextDoor | 57eb963ea8e68cc1b3516ec1005418b3fdc6283a | [
"Unlicense",
"MIT"
] | null | null | null | business/urls.py | faisoabdirisak/NextDoor | 57eb963ea8e68cc1b3516ec1005418b3fdc6283a | [
"Unlicense",
"MIT"
] | null | null | null | business/urls.py | faisoabdirisak/NextDoor | 57eb963ea8e68cc1b3516ec1005418b3fdc6283a | [
"Unlicense",
"MIT"
] | null | null | null | from . import views
from django.urls import path
urlpatterns = [
path('business/', views.business, name='business'),
path('busines/<str:pk>', views.busines, name='busines'),
path('createBusiness/', views.createBusiness, name='createBusiness'),
path('update-busines/<str:pk>', views.updateBusines, name... | 35.666667 | 81 | 0.691589 | 49 | 428 | 6.040816 | 0.367347 | 0.101351 | 0.121622 | 0.172297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126168 | 428 | 12 | 82 | 35.666667 | 0.791444 | 0 | 0 | 0 | 0 | 0 | 0.335664 | 0.109557 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ccbc462db614fff866936e173e005b2bab0eee75 | 6,755 | py | Python | spark_fhir_schemas/stu3/complex_types/messageheader_source.py | icanbwell/SparkFhirSchemas | 8c828313c39850b65f8676e67f526ee92b7d624e | [
"Apache-2.0"
] | 2 | 2020-10-31T23:25:01.000Z | 2021-06-09T14:12:42.000Z | spark_fhir_schemas/stu3/complex_types/messageheader_source.py | icanbwell/SparkFhirSchemas | 8c828313c39850b65f8676e67f526ee92b7d624e | [
"Apache-2.0"
] | null | null | null | spark_fhir_schemas/stu3/complex_types/messageheader_source.py | icanbwell/SparkFhirSchemas | 8c828313c39850b65f8676e67f526ee92b7d624e | [
"Apache-2.0"
] | null | null | null | from typing import Union, List, Optional
from pyspark.sql.types import StructType, StructField, StringType, ArrayType, DataType
# This file is auto-generated by generate_schema so do not edit manually
# noinspection PyPep8Naming
class MessageHeader_SourceSchema:
"""
The header for a message exchange that is ... | 45.33557 | 96 | 0.594078 | 712 | 6,755 | 5.518258 | 0.265449 | 0.039705 | 0.026724 | 0.024434 | 0.665055 | 0.652074 | 0.652074 | 0.596589 | 0.571138 | 0.541614 | 0 | 0.002519 | 0.353516 | 6,755 | 148 | 97 | 45.641892 | 0.897183 | 0.400148 | 0 | 0.258824 | 1 | 0 | 0.065865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011765 | false | 0 | 0.047059 | 0 | 0.094118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ccbe265f416b1139e77d210cfe84552b5948e3ad | 3,070 | py | Python | searchengine/scraper.py | qoda/python-searchengine | d514ddbc0be9755ed48143b38dd4591d0123b1bc | [
"BSD-3-Clause"
] | 19 | 2015-01-21T14:46:20.000Z | 2021-04-28T22:46:31.000Z | searchengine/scraper.py | gourav245/python-searchengine | d514ddbc0be9755ed48143b38dd4591d0123b1bc | [
"BSD-3-Clause"
] | 1 | 2020-03-07T08:41:20.000Z | 2020-03-11T09:16:59.000Z | searchengine/scraper.py | gourav245/python-searchengine | d514ddbc0be9755ed48143b38dd4591d0123b1bc | [
"BSD-3-Clause"
] | 15 | 2015-03-28T07:44:52.000Z | 2021-01-28T23:45:20.000Z | #!/usr/bin/env python
from HTMLParser import HTMLParser, HTMLParseError
import optparse
from urllib2 import urlopen, URLError
from searchengine.logger import Logging
class TagSelector(HTMLParser):
"""
Strip all HTML tags from a string.
"""
def __init__(self, *args, **kwargs):
self.reset()
... | 29.519231 | 78 | 0.548534 | 350 | 3,070 | 4.648571 | 0.3 | 0.060848 | 0.046097 | 0.029502 | 0.060234 | 0.035648 | 0 | 0 | 0 | 0 | 0 | 0.001488 | 0.343322 | 3,070 | 103 | 79 | 29.805825 | 0.805556 | 0.038111 | 0 | 0.032258 | 0 | 0 | 0.062195 | 0 | 0 | 0 | 0 | 0.009709 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ccce0f906eb7181e11a306df04829edf3fffc5a4 | 952 | py | Python | setup.py | colorfulscoop/convf | 954a36a119ef0d7c97c4d24c957c83ac4aa40cbd | [
"MIT"
] | null | null | null | setup.py | colorfulscoop/convf | 954a36a119ef0d7c97c4d24c957c83ac4aa40cbd | [
"MIT"
] | null | null | null | setup.py | colorfulscoop/convf | 954a36a119ef0d7c97c4d24c957c83ac4aa40cbd | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name="convf",
packages=setuptools.find_packages(),
install_requires=[
"fire>=0.4.0,<0.5",
"envyaml>=1.0,<2.0",
],
extras_require={
"test": ["pytest>=5", "black==20.8b1"],
},
# If installing this script to the global name space, re... | 26.444444 | 85 | 0.615546 | 107 | 952 | 5.35514 | 0.785047 | 0.006981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026135 | 0.236345 | 952 | 35 | 86 | 27.2 | 0.762036 | 0.19958 | 0 | 0 | 0 | 0 | 0.410596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ccd41a00002a16eb3fbdde4e72839708787f5104 | 1,914 | py | Python | examples/plot_model_search.py | joaopfonseca/research-learn | 7121a5e35c2c422d7c3e4de947123aff1744cdcb | [
"MIT"
] | 1 | 2021-06-18T15:22:11.000Z | 2021-06-18T15:22:11.000Z | examples/plot_model_search.py | joaopfonseca/research-learn | 7121a5e35c2c422d7c3e4de947123aff1744cdcb | [
"MIT"
] | 6 | 2019-11-29T12:09:39.000Z | 2020-08-13T17:14:09.000Z | examples/plot_model_search.py | joaopfonseca/research-learn | 7121a5e35c2c422d7c3e4de947123aff1744cdcb | [
"MIT"
] | 2 | 2019-11-29T11:50:38.000Z | 2020-03-16T12:15:23.000Z | """
=============================
Model search cross-validation
=============================
This example illustrates the usage of model
search cross-validation class.
"""
# Author: Georgios Douzas <gdouzas@icloud.com>
# Licence: MIT
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.base import clo... | 30.870968 | 83 | 0.549634 | 173 | 1,914 | 5.878613 | 0.526012 | 0.064897 | 0.047198 | 0.076696 | 0.060964 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008187 | 0.106583 | 1,914 | 61 | 84 | 31.377049 | 0.58655 | 0.243469 | 0 | 0 | 0 | 0 | 0.131524 | 0.11691 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ccd50aa09b4abf705949373afa4b8757962eca00 | 19,509 | py | Python | tools/constraint.py | fsanges/glTools | 8ff0899de43784a18bd4543285655e68e28fb5e5 | [
"MIT"
] | 165 | 2015-01-26T05:22:04.000Z | 2022-03-22T02:50:41.000Z | tools/constraint.py | qeeji/glTools | 8ff0899de43784a18bd4543285655e68e28fb5e5 | [
"MIT"
] | 5 | 2015-12-02T02:39:44.000Z | 2020-12-09T02:45:54.000Z | tools/constraint.py | qeeji/glTools | 8ff0899de43784a18bd4543285655e68e28fb5e5 | [
"MIT"
] | 83 | 2015-02-10T17:18:24.000Z | 2022-02-10T07:16:47.000Z | import maya.mel as mm
import maya.cmds as mc
import maya.OpenMaya as OpenMaya
import glTools.utils.base
import glTools.utils.component
import glTools.utils.constraint
import glTools.utils.mathUtils
import glTools.utils.mesh
import glTools.utils.reference
import glTools.utils.stringUtils
import glTools.utils.transform
... | 30.722835 | 128 | 0.646932 | 2,417 | 19,509 | 5.220935 | 0.115019 | 0.025359 | 0.049449 | 0.024249 | 0.61447 | 0.583961 | 0.561534 | 0.527538 | 0.512164 | 0.504794 | 0 | 0.004871 | 0.168589 | 19,509 | 634 | 129 | 30.771293 | 0.77312 | 0.131837 | 0 | 0.512111 | 0 | 0.010381 | 0.171045 | 0.01321 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00692 | 0.041522 | null | null | 0.013841 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aeb102fef39b2d9627511839fd4e23fc13eed1d3 | 338 | py | Python | 01-logica-de-programacao-e-algoritmos/Aula 05/4 Retorno de valores em funcoes/4.1 Validando dados de entrada com funcoes/ex02.py | rafaelbarretomg/Uninter | 1f84b0103263177122663e991db3a8aeb106a959 | [
"MIT"
] | null | null | null | 01-logica-de-programacao-e-algoritmos/Aula 05/4 Retorno de valores em funcoes/4.1 Validando dados de entrada com funcoes/ex02.py | rafaelbarretomg/Uninter | 1f84b0103263177122663e991db3a8aeb106a959 | [
"MIT"
] | null | null | null | 01-logica-de-programacao-e-algoritmos/Aula 05/4 Retorno de valores em funcoes/4.1 Validando dados de entrada com funcoes/ex02.py | rafaelbarretomg/Uninter | 1f84b0103263177122663e991db3a8aeb106a959 | [
"MIT"
] | null | null | null | # Validar uma string
def valida_str(texto, min, max):
tam = len(texto)
if tam < min or tam > max:
return False
else:
return True
# Programa Principal
texto = input('Digite um string (3-15 caracteres): ')
while valida_str(texto, 3, 15):
texto = input('Digite uma string (3-15 caracteres)... | 22.533333 | 58 | 0.642012 | 49 | 338 | 4.387755 | 0.55102 | 0.04186 | 0.130233 | 0.176744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035156 | 0.242604 | 338 | 14 | 59 | 24.142857 | 0.804688 | 0.109467 | 0 | 0 | 0 | 0 | 0.244966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aeb3cdc8d46576cebdad9cba45bc3bc755420f9f | 1,892 | py | Python | interface/admin_interface.py | zhangjiang1203/CourseSelect | 2993ba7f69112fa02b1786d205b3fc2dbecdc789 | [
"MIT"
] | null | null | null | interface/admin_interface.py | zhangjiang1203/CourseSelect | 2993ba7f69112fa02b1786d205b3fc2dbecdc789 | [
"MIT"
] | null | null | null | interface/admin_interface.py | zhangjiang1203/CourseSelect | 2993ba7f69112fa02b1786d205b3fc2dbecdc789 | [
"MIT"
] | 1 | 2020-06-08T16:59:40.000Z | 2020-06-08T16:59:40.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/12/22 10:29 AM
# @Author : zhangjiang
# @Site :
# @File : common_interface.py
# @Software: PyCharm
from db import models
def admin_register_interface(name,password):
'''
注册管理员对象
:param name:
:param password:
:return:
'''
... | 24.894737 | 75 | 0.668076 | 247 | 1,892 | 4.813765 | 0.267206 | 0.068124 | 0.053827 | 0.08074 | 0.288478 | 0.241379 | 0.241379 | 0.241379 | 0.215307 | 0.215307 | 0 | 0.013049 | 0.230444 | 1,892 | 75 | 76 | 25.226667 | 0.803571 | 0.204017 | 0 | 0.264706 | 0 | 0 | 0.041222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.117647 | 0.029412 | 0 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
aebba599d6225d1984135139179c7456d6c1b7e8 | 1,586 | py | Python | src/battery_hour_data.py | albinbjorn/battery_simulator | 6636f86cdd5b0ed9a16541ff8ca8f0933360153e | [
"MIT"
] | null | null | null | src/battery_hour_data.py | albinbjorn/battery_simulator | 6636f86cdd5b0ed9a16541ff8ca8f0933360153e | [
"MIT"
] | null | null | null | src/battery_hour_data.py | albinbjorn/battery_simulator | 6636f86cdd5b0ed9a16541ff8ca8f0933360153e | [
"MIT"
] | null | null | null | import numpy as np
def determine_P_instruct(load, P_activate, P_battery_max):
if load <= P_activate and (P_activate - load >= P_battery_max):
P_instruct = P_battery_max
elif load <= P_activate and (P_activate - load < P_battery_max):
P_instruct = P_activate - load
elif load >= P_activate and (load - P_activate ... | 31.72 | 74 | 0.725725 | 273 | 1,586 | 3.875458 | 0.124542 | 0.204159 | 0.093573 | 0.086011 | 0.637996 | 0.544423 | 0.44896 | 0.44896 | 0.44896 | 0.415879 | 0 | 0.015117 | 0.165826 | 1,586 | 50 | 75 | 31.72 | 0.784581 | 0 | 0 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.026316 | 0 | 0.184211 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aebe887fb486e2237dfea5735a80e9607325daf2 | 1,312 | py | Python | python/user_admin.py | cdavidshaffer/image-gallery | 1dc85598f3d4d44cf79c5319c9ca84a27837e981 | [
"MIT"
] | null | null | null | python/user_admin.py | cdavidshaffer/image-gallery | 1dc85598f3d4d44cf79c5319c9ca84a27837e981 | [
"MIT"
] | null | null | null | python/user_admin.py | cdavidshaffer/image-gallery | 1dc85598f3d4d44cf79c5319c9ca84a27837e981 | [
"MIT"
] | null | null | null | import psycopg2
connection = None
def readPassword():
f = open('/home/ec2-user/sql-passwd','r')
line = f.readline()
f.close()
return line[:-1]
def connect():
return psycopg2.connect(user='image_gallery', password=readPassword(), dbname='image_gallery', host='demo-database-1.c923ckbw7nvl.us-east-2... | 24.754717 | 163 | 0.602896 | 163 | 1,312 | 4.779141 | 0.460123 | 0.082157 | 0.043646 | 0.061617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020916 | 0.234756 | 1,312 | 53 | 164 | 24.754717 | 0.75498 | 0 | 0 | 0 | 0 | 0 | 0.253618 | 0.104341 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162791 | false | 0.162791 | 0.023256 | 0.023256 | 0.27907 | 0.139535 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
aec09b739d1f5b15b37c5b7eb40f1c5be189d1cd | 2,141 | py | Python | pygazebo/msg/model_v_pb2.py | CryptoCopter/pygazebo | f16704f3b59cb50a1390ef92fde283558fd71f8f | [
"Apache-2.0"
] | null | null | null | pygazebo/msg/model_v_pb2.py | CryptoCopter/pygazebo | f16704f3b59cb50a1390ef92fde283558fd71f8f | [
"Apache-2.0"
] | null | null | null | pygazebo/msg/model_v_pb2.py | CryptoCopter/pygazebo | f16704f3b59cb50a1390ef92fde283558fd71f8f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: model_v.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobu... | 28.932432 | 152 | 0.760392 | 279 | 2,141 | 5.462366 | 0.369176 | 0.059055 | 0.047244 | 0.062992 | 0.107612 | 0.107612 | 0.052493 | 0 | 0 | 0 | 0 | 0.021739 | 0.119103 | 2,141 | 73 | 153 | 29.328767 | 0.78632 | 0.123307 | 0 | 0.188679 | 1 | 0.018868 | 0.148982 | 0.084673 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09434 | 0 | 0.09434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aec29712abac95638b7952eb07478b86f05abc8f | 399 | py | Python | users/migrations/0003_auto_20210717_1919.py | karilint/cradle_of_mankind | 853ba01118e006c17005e3801895bd40d7763453 | [
"MIT"
] | null | null | null | users/migrations/0003_auto_20210717_1919.py | karilint/cradle_of_mankind | 853ba01118e006c17005e3801895bd40d7763453 | [
"MIT"
] | null | null | null | users/migrations/0003_auto_20210717_1919.py | karilint/cradle_of_mankind | 853ba01118e006c17005e3801895bd40d7763453 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.6 on 2021-07-17 16:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0002_user_receive_contact_emails'),
]
operations = [
migrations.RenameField(
model_name='user',
old_name='receive_c... | 21 | 54 | 0.621554 | 44 | 399 | 5.386364 | 0.727273 | 0.177215 | 0.168776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065744 | 0.275689 | 399 | 18 | 55 | 22.166667 | 0.754325 | 0.112782 | 0 | 0 | 1 | 0 | 0.238636 | 0.213068 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aec8866c692c04313ed0993ca74eb33519be1502 | 1,491 | py | Python | twoops_tracker/py/twoopstracker/authentication/forms.py | CodeForAfrica/api | c4c79225c27284052aced8dd0805108885766308 | [
"MIT"
] | null | null | null | twoops_tracker/py/twoopstracker/authentication/forms.py | CodeForAfrica/api | c4c79225c27284052aced8dd0805108885766308 | [
"MIT"
] | null | null | null | twoops_tracker/py/twoopstracker/authentication/forms.py | CodeForAfrica/api | c4c79225c27284052aced8dd0805108885766308 | [
"MIT"
] | null | null | null | from allauth.account import app_settings
from allauth.account.adapter import get_adapter
from allauth.account.forms import ResetPasswordForm as DefaultPasswordResetForm
from allauth.account.forms import default_token_generator
from allauth.account.utils import user_pk_to_url_str, user_username
from django.conf import s... | 38.230769 | 80 | 0.663313 | 160 | 1,491 | 5.89375 | 0.36875 | 0.058325 | 0.09544 | 0.04878 | 0.099682 | 0.038176 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260899 | 1,491 | 38 | 81 | 39.236842 | 0.855717 | 0 | 0 | 0 | 0 | 0 | 0.08719 | 0.040241 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.1875 | 0.21875 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
aec8db390ca804752f96370207d301a475e2e908 | 206 | py | Python | tests/dummy_test.py | alexanderrichards/SolidProductionSystem | e58f5df5cbd9132106ccba56f36c53714ffdd51c | [
"MIT"
] | null | null | null | tests/dummy_test.py | alexanderrichards/SolidProductionSystem | e58f5df5cbd9132106ccba56f36c53714ffdd51c | [
"MIT"
] | 13 | 2018-12-10T15:04:13.000Z | 2021-04-19T11:49:51.000Z | tests/dummy_test.py | alexanderrichards/SolidProductionSystem | e58f5df5cbd9132106ccba56f36c53714ffdd51c | [
"MIT"
] | null | null | null | """Testing Stub."""
import unittest
# import solid
class MyTestCase(unittest.TestCase):
def test_something(self):
self.assertEqual(True, True)
if __name__ == '__main__':
unittest.main()
| 15.846154 | 36 | 0.684466 | 23 | 206 | 5.73913 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184466 | 206 | 12 | 37 | 17.166667 | 0.785714 | 0.131068 | 0 | 0 | 0 | 0 | 0.046243 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aecf8ec760eb929925cab675193c2ed843208b1f | 1,234 | py | Python | tools/add_config_to_mongo.py | aiddata/geo-hpc | 8f684e72c14795f2e1532896a4b0999fe6c14d24 | [
"MIT"
] | 5 | 2020-02-14T14:21:51.000Z | 2021-08-22T19:47:48.000Z | tools/add_config_to_mongo.py | aiddata/geo-hpc | 8f684e72c14795f2e1532896a4b0999fe6c14d24 | [
"MIT"
] | 1 | 2017-11-05T20:56:21.000Z | 2017-12-08T17:22:13.000Z | tools/add_config_to_mongo.py | aiddata/geo-hpc | 8f684e72c14795f2e1532896a4b0999fe6c14d24 | [
"MIT"
] | 3 | 2020-02-27T11:33:43.000Z | 2021-08-22T19:47:57.000Z | """
loads config.json options from specified branch into mongodb
mongodb db/collection: info->config
Note:
BranchConfig instance from config_utility loads directly from config.json,
not the existing config collections. May be better to have config_utility
load from config collection and this script load directly from... | 22.436364 | 78 | 0.649919 | 149 | 1,234 | 5.234899 | 0.456376 | 0.064103 | 0.04359 | 0.05641 | 0.041026 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002833 | 0.141815 | 1,234 | 54 | 79 | 22.851852 | 0.733711 | 0.23825 | 0 | 0 | 0 | 0 | 0.02993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.210526 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aed67c107baeb2e5e4fa0acd4ebc3ecec429774f | 593 | py | Python | backend/apps/utils/api_views.py | MadeInHaus/django-template | 73d3bdb85e9b1b2723a1de67d6765ce0647dce3a | [
"MIT"
] | 1 | 2015-06-18T22:37:28.000Z | 2015-06-18T22:37:28.000Z | backend/apps/utils/api_views.py | MadeInHaus/django-template | 73d3bdb85e9b1b2723a1de67d6765ce0647dce3a | [
"MIT"
] | 11 | 2015-01-07T16:58:55.000Z | 2022-01-27T16:22:22.000Z | backend/apps/utils/api_views.py | MadeInHaus/django-template | 73d3bdb85e9b1b2723a1de67d6765ce0647dce3a | [
"MIT"
] | null | null | null | from django.shortcuts import render_to_response
# Import the tastypie.api.Api object with which your api resources are registered.
from backend.urls import v1_api as api
def api_profile(request, resource):
""" Allows easy profiling of API requests with django-debug-toolbar. """
context = {}
resource = res... | 42.357143 | 83 | 0.747049 | 77 | 593 | 5.61039 | 0.571429 | 0.037037 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002008 | 0.160202 | 593 | 14 | 84 | 42.357143 | 0.865462 | 0.134907 | 0 | 0 | 0 | 0 | 0.107062 | 0.050114 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aedfc7729c0cceb9bfc796c290ac85af66e81696 | 725 | py | Python | ghwht/hooks/deployment.py | flyingdice/github-webhook-types | 38edff89ec3ce809a510328463a43d7bea56ae36 | [
"Apache-2.0"
] | null | null | null | ghwht/hooks/deployment.py | flyingdice/github-webhook-types | 38edff89ec3ce809a510328463a43d7bea56ae36 | [
"Apache-2.0"
] | null | null | null | ghwht/hooks/deployment.py | flyingdice/github-webhook-types | 38edff89ec3ce809a510328463a43d7bea56ae36 | [
"Apache-2.0"
] | null | null | null | """
ghwht/hooks/deployment
~~~~~~~~~~~~~~~~~~~~~~
Contains types for the 'deployment' webhook.
https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/webhook-events-and-payloads#deployment
"""
from typing import Optional
from pydantic import dataclasses
from . import base, co... | 21.969697 | 121 | 0.721379 | 83 | 725 | 6.301205 | 0.53012 | 0.053537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147586 | 725 | 32 | 122 | 22.65625 | 0.846278 | 0.289655 | 0 | 0 | 0 | 0 | 0.014257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
aeeabd36890833c6863742b9ddde8280cddf81c5 | 1,071 | py | Python | app/location/migrations/0002_auto_20180813_1456.py | maro99/yapen | 0de7aa9d4b152aadd18511be6e536e89645452d9 | [
"MIT"
] | 1 | 2019-04-28T12:21:51.000Z | 2019-04-28T12:21:51.000Z | app/location/migrations/0002_auto_20180813_1456.py | maro99/yapen | 0de7aa9d4b152aadd18511be6e536e89645452d9 | [
"MIT"
] | 5 | 2018-07-30T05:44:44.000Z | 2020-06-05T18:56:41.000Z | app/location/migrations/0002_auto_20180813_1456.py | maro99/yapen | 0de7aa9d4b152aadd18511be6e536e89645452d9 | [
"MIT"
] | 5 | 2018-07-23T05:21:41.000Z | 2018-08-08T05:00:42.000Z | # Generated by Django 2.1 on 2018-08-13 05:56
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('location', '0001_initial'),
migrations.swappable_dependency(setti... | 31.5 | 134 | 0.64986 | 114 | 1,071 | 5.973684 | 0.412281 | 0.058737 | 0.082232 | 0.129222 | 0.287812 | 0.287812 | 0.287812 | 0.287812 | 0.287812 | 0.287812 | 0 | 0.022005 | 0.236228 | 1,071 | 33 | 135 | 32.454545 | 0.810513 | 0.040149 | 0 | 0.230769 | 1 | 0 | 0.126706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aeec947dc144aaf88ad7ec436b5b8f65daec5aeb | 472 | py | Python | run_web_server.py | MarvinQuevedo/ozone_api | a8d319c9ff2cbaed4fbe24e62dfdb0e129184be0 | [
"MIT"
] | null | null | null | run_web_server.py | MarvinQuevedo/ozone_api | a8d319c9ff2cbaed4fbe24e62dfdb0e129184be0 | [
"MIT"
] | null | null | null | run_web_server.py | MarvinQuevedo/ozone_api | a8d319c9ff2cbaed4fbe24e62dfdb0e129184be0 | [
"MIT"
] | null | null | null | # This is a sample Python script.
# Press Ctrl+F5 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
import uvicorn
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
print('PyCharm')
... | 27.764706 | 98 | 0.722458 | 76 | 472 | 4.368421 | 0.789474 | 0.018072 | 0.018072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022901 | 0.167373 | 472 | 16 | 99 | 29.5 | 0.821883 | 0.639831 | 0 | 0 | 0 | 0 | 0.22561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aef1ee67656ec66b1e63b5a3a944b93d2b5320db | 66,388 | py | Python | verify.py | kryptine/ghilbert | 2d00c685325e5d27ba921c35d09c01c939b373c0 | [
"Apache-2.0"
] | 38 | 2017-07-20T06:18:45.000Z | 2022-02-05T13:58:07.000Z | verify.py | kryptine/ghilbert | 2d00c685325e5d27ba921c35d09c01c939b373c0 | [
"Apache-2.0"
] | 1 | 2017-06-09T04:07:26.000Z | 2017-06-09T04:07:26.000Z | verify.py | kryptine/ghilbert | 2d00c685325e5d27ba921c35d09c01c939b373c0 | [
"Apache-2.0"
] | 3 | 2017-06-04T20:34:23.000Z | 2021-05-16T07:11:26.000Z | # Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 44.347361 | 185 | 0.52508 | 7,717 | 66,388 | 4.466114 | 0.092005 | 0.055244 | 0.011142 | 0.01915 | 0.336893 | 0.26302 | 0.233135 | 0.209807 | 0.19498 | 0.176411 | 0 | 0.006954 | 0.380506 | 66,388 | 1,496 | 186 | 44.377005 | 0.83106 | 0.170166 | 0 | 0.327812 | 0 | 0.004359 | 0.142974 | 0 | 0 | 0 | 0 | 0.002005 | 0.006975 | 0 | null | null | 0.000872 | 0.011334 | null | null | 0.001744 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aef3684b4c4bb6d29ac2b4a02ea4f53f2417ef50 | 762 | py | Python | arduino/CoolTermWin/CoolTermWin/Scripting/Python/Examples/Example 6 - Toggle DTR.py | pedroanastacio/App-Usinas | e096da6401c72f4f1831098baaa0d1a7577b6d97 | [
"MIT"
] | null | null | null | arduino/CoolTermWin/CoolTermWin/Scripting/Python/Examples/Example 6 - Toggle DTR.py | pedroanastacio/App-Usinas | e096da6401c72f4f1831098baaa0d1a7577b6d97 | [
"MIT"
] | null | null | null | arduino/CoolTermWin/CoolTermWin/Scripting/Python/Examples/Example 6 - Toggle DTR.py | pedroanastacio/App-Usinas | e096da6401c72f4f1831098baaa0d1a7577b6d97 | [
"MIT"
] | null | null | null | # This script demonstrates changing the state of hardware
# handshake lines. While the script is running, you can see
# the DTR LED in the CoolTerm window blinking.
#
# Author: Roger Meier, 04-30-2020
# CoolTerm version: 1.7.0
import sys
import time
import CoolTerm
s = CoolTerm.CoolTermSocket()
# Get the ID of the fi... | 20.052632 | 59 | 0.643045 | 112 | 762 | 4.375 | 0.633929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.265092 | 762 | 37 | 60 | 20.594595 | 0.848214 | 0.392388 | 0 | 0 | 0 | 0 | 0.139381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.157895 | 0 | 0.157895 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
aef3cddc49da796f8201b751e93333b9a4424d0a | 5,789 | py | Python | FH.py | GrapeKing/Flory-Huggins | a6f349b8dc5724520bb0a401242df89322c98af2 | [
"MIT"
] | null | null | null | FH.py | GrapeKing/Flory-Huggins | a6f349b8dc5724520bb0a401242df89322c98af2 | [
"MIT"
] | null | null | null | FH.py | GrapeKing/Flory-Huggins | a6f349b8dc5724520bb0a401242df89322c98af2 | [
"MIT"
] | null | null | null | '''
Library for 2-component Flory-Huggings theory.
Author: Daoyuan Qian
Date created: 23 March 2022
'''
import numpy as np
def help():
print('Here are the list of functions included in FH.py:\n')
print(' critical(n = 1): returns the critical concentration and critical interaction [phi_c, chi_c]\n')
print(' spin... | 25.84375 | 199 | 0.53308 | 1,077 | 5,789 | 2.808728 | 0.127205 | 0.015207 | 0.012893 | 0.067438 | 0.699174 | 0.673058 | 0.638017 | 0.620826 | 0.620826 | 0.594711 | 0 | 0.071165 | 0.252375 | 5,789 | 224 | 200 | 25.84375 | 0.627773 | 0.026602 | 0 | 0.718954 | 0 | 0.013072 | 0.13879 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 1 | 0.039216 | false | 0 | 0.006536 | 0 | 0.104575 | 0.039216 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aefb28708cb9ce47328e0881b0945e90a1b953a8 | 629 | py | Python | day0888/sql.py | jaywoong/learn_django | d791694c17db3b5bf1e75ae162b7e74d3157ecd3 | [
"Apache-2.0"
] | null | null | null | day0888/sql.py | jaywoong/learn_django | d791694c17db3b5bf1e75ae162b7e74d3157ecd3 | [
"Apache-2.0"
] | null | null | null | day0888/sql.py | jaywoong/learn_django | d791694c17db3b5bf1e75ae162b7e74d3157ecd3 | [
"Apache-2.0"
] | null | null | null | class Sql:
make_itemdb = '''
CREATE TABLE IF NOT EXISTS ITEMDB (
ID INTEGER PRIMARY KEY AUTOINCREMENT,
NAME TEXT,
PRICE REAL,
REGDATE TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)
'''
insert_itemdb = '''
INSERT INTO ITEMDB (NAME, PRICE) VALUES ... | 27.347826 | 62 | 0.519873 | 60 | 629 | 5.333333 | 0.55 | 0.065625 | 0.09375 | 0.10625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.368839 | 629 | 23 | 63 | 27.347826 | 0.806045 | 0 | 0 | 0.217391 | 0 | 0 | 0.72381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aefee91b93cded7621c5d5a2eb0f63ab87ed1099 | 35,048 | py | Python | source/base_image/cannr/lib/cannrbuild.py | myrtam/CANNR | b966a873ec60264b0fd42b81edadb5495237d7ea | [
"Apache-2.0"
] | null | null | null | source/base_image/cannr/lib/cannrbuild.py | myrtam/CANNR | b966a873ec60264b0fd42b81edadb5495237d7ea | [
"Apache-2.0"
] | null | null | null | source/base_image/cannr/lib/cannrbuild.py | myrtam/CANNR | b966a873ec60264b0fd42b81edadb5495237d7ea | [
"Apache-2.0"
] | 1 | 2021-05-14T08:37:37.000Z | 2021-05-14T08:37:37.000Z | """
CANNR TM analytics container building tool build functions.
Module that generates Web service code from source files.
Copyright 2020 Pat Tendick ptendick@gmail.com
All rights reserved
Maintainer Pat Tendick ptendick@gmail.com
"""
import cannrcore as cc
import os
import json
from pathlib import Path
from datetime i... | 42.482424 | 160 | 0.619636 | 3,453 | 35,048 | 6.268752 | 0.157834 | 0.121131 | 0.083156 | 0.014137 | 0.390141 | 0.315717 | 0.293033 | 0.265222 | 0.233161 | 0.198836 | 0 | 0.007896 | 0.255592 | 35,048 | 824 | 161 | 42.533981 | 0.821771 | 0.20529 | 0 | 0.32716 | 1 | 0.004115 | 0.164282 | 0.023526 | 0.014403 | 0 | 0 | 0.001214 | 0 | 1 | 0.030864 | false | 0.00823 | 0.032922 | 0.002058 | 0.102881 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4e048341fb3e22ec6695e3f6372ba63f06cf0537 | 1,047 | py | Python | HW8.py | shng5175/Random-Python-Stuff | 6b6687da9195a36244f7b22de7ba2984ce78995d | [
"bzip2-1.0.6"
] | null | null | null | HW8.py | shng5175/Random-Python-Stuff | 6b6687da9195a36244f7b22de7ba2984ce78995d | [
"bzip2-1.0.6"
] | null | null | null | HW8.py | shng5175/Random-Python-Stuff | 6b6687da9195a36244f7b22de7ba2984ce78995d | [
"bzip2-1.0.6"
] | null | null | null | import sys
import math
x = int(sys.argv[1]) #takes in the number as an arguement
y = math.sqrt(x) #gets the square root of x
y = math.ceil(y) #rounds up y
y = int(y) #did this because the for loop didn't want to take in a float as part of the range
i = 2
for i in range(i, y): #this whole section here finds prime numb... | 47.590909 | 119 | 0.638968 | 220 | 1,047 | 3.040909 | 0.440909 | 0.011958 | 0.038864 | 0.044843 | 0.092676 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013228 | 0.277937 | 1,047 | 22 | 120 | 47.590909 | 0.871693 | 0.657116 | 0 | 0 | 0 | 0 | 0.023055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4e10bdcc3b55796d7771fbc3526f6bafc3c8c431 | 595 | py | Python | tests/test_resnet.py | ShiChenAI/keras-resnet | 53ca0280d31e6d4aa28cda256c3c5bccc6493cf6 | [
"MIT"
] | null | null | null | tests/test_resnet.py | ShiChenAI/keras-resnet | 53ca0280d31e6d4aa28cda256c3c5bccc6493cf6 | [
"MIT"
] | null | null | null | tests/test_resnet.py | ShiChenAI/keras-resnet | 53ca0280d31e6d4aa28cda256c3c5bccc6493cf6 | [
"MIT"
] | null | null | null | from keras.metrics import top_k_categorical_accuracy
import pytest
import os
import sys
parentdir=os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, parentdir)
from models import resnet_34, resnet_50
def _test_model_compile(model):
model.compile(optimizer='adam', loss='categorical_cros... | 28.333333 | 112 | 0.763025 | 84 | 595 | 5 | 0.535714 | 0.042857 | 0.071429 | 0.109524 | 0.07619 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036329 | 0.121008 | 595 | 20 | 113 | 29.75 | 0.76673 | 0 | 0 | 0 | 0 | 0 | 0.105882 | 0.040336 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.133333 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4e28397fca9442999436bb2e126e62147202d1bc | 2,106 | py | Python | core/esp_spi.py | codeandbacon/radio-paella | 98bd6829299e528de9c69690206dee51b1372687 | [
"MIT"
] | 1 | 2020-05-03T11:37:40.000Z | 2020-05-03T11:37:40.000Z | core/esp_spi.py | codeandbacon/radio-paella | 98bd6829299e528de9c69690206dee51b1372687 | [
"MIT"
] | null | null | null | core/esp_spi.py | codeandbacon/radio-paella | 98bd6829299e528de9c69690206dee51b1372687 | [
"MIT"
] | null | null | null | from micropython import const
SINGLE_WRITE = const(0x00)
BURST_WRITE = const(0x40)
SINGLE_READ = const(0x80)
BURST_READ = const(0xc0)
LOW = const(0x00)
HIGH = const(0x01)
# TODO: find a better name for this class
class EspSPI(object):
def __init__(self, spi, cs, gdo0=None, gdo2=None):
self.spi = spi
... | 30.970588 | 71 | 0.630104 | 281 | 2,106 | 4.530249 | 0.241993 | 0.060487 | 0.066771 | 0.065986 | 0.334643 | 0.257659 | 0.257659 | 0.161822 | 0.161822 | 0.161822 | 0 | 0.025308 | 0.268281 | 2,106 | 68 | 72 | 30.970588 | 0.800779 | 0.083096 | 0 | 0.196078 | 0 | 0 | 0.04621 | 0 | 0 | 0 | 0.022845 | 0.014706 | 0 | 1 | 0.196078 | false | 0 | 0.019608 | 0 | 0.431373 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4e28cec665e3ba9b7674bbab106c01981e8c1fe4 | 18,056 | py | Python | main/views.py | halo-legion/gryffin | dfc0b6acccd93d293dcc066011583dc05e59d1e4 | [
"MIT"
] | 2 | 2021-01-03T12:05:03.000Z | 2021-04-21T15:48:45.000Z | main/views.py | halo-legion/gryffin | dfc0b6acccd93d293dcc066011583dc05e59d1e4 | [
"MIT"
] | 1 | 2020-12-25T05:01:20.000Z | 2020-12-25T05:01:20.000Z | main/views.py | halo-legion/gryffin | dfc0b6acccd93d293dcc066011583dc05e59d1e4 | [
"MIT"
] | 3 | 2020-12-24T16:07:14.000Z | 2020-12-29T04:02:33.000Z | import re
import requests
from bs4 import BeautifulSoup
from django.http import HttpResponseRedirect
from django.shortcuts import render
best_websites_data = ['https://analytics.moz.com', 'https://youcandothecube.com', 'https://www.wikihow.com',
'https://www.wired.com', 'https://www.samsung.com'... | 88.509804 | 129 | 0.532898 | 2,017 | 18,056 | 4.744175 | 0.295984 | 0.272547 | 0.027589 | 0.008883 | 0.021214 | 0.009928 | 0.007733 | 0.007733 | 0.007733 | 0.007733 | 0 | 0.003187 | 0.235379 | 18,056 | 203 | 130 | 88.945813 | 0.689917 | 0 | 0 | 0 | 0 | 0.005128 | 0.595536 | 0.005261 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015385 | false | 0 | 0.025641 | 0.010256 | 0.066667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4e2956b0d9fb127a1942c5e9a9227d734b0121be | 723 | py | Python | cli/colors.py | abc123me/nasa_dsn | c15cd20097fbf8d1d473e5cd9a1db3840518c69c | [
"MIT"
] | null | null | null | cli/colors.py | abc123me/nasa_dsn | c15cd20097fbf8d1d473e5cd9a1db3840518c69c | [
"MIT"
] | null | null | null | cli/colors.py | abc123me/nasa_dsn | c15cd20097fbf8d1d473e5cd9a1db3840518c69c | [
"MIT"
] | null | null | null | #ANSI Foreground colors
black = u"\u001b[30m"
red = u"\u001b[31m"
green = u"\u001b[32m"
yellow = u"\u001b[33m"
blue = u"\u001b[34m"
magneta = u"\u001b[35m"
magenta = magneta
cyan = u"\u001b[36m"
white = u"\u001b[37m"
#ANSI Background colors
blackB = u"\u001b[40m"
redB = u"\u001b[41m"
greenB = u"\u001b[42m"
yellowB = u"... | 24.1 | 40 | 0.665284 | 119 | 723 | 3.97479 | 0.546218 | 0.22833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147249 | 0.145228 | 723 | 30 | 41 | 24.1 | 0.618123 | 0.117566 | 0 | 0 | 0 | 0 | 0.291339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0.038462 | 0.115385 | 0.115385 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d6a7c66471b3d99097b53c0f0010d7e7c6221b1 | 3,742 | py | Python | sample/gui.py | mariciucioan/archive-cracker | 2a404b2b79b70c61cd90b1e55bd5a7a030d930f4 | [
"MIT"
] | 1 | 2021-12-05T07:30:09.000Z | 2021-12-05T07:30:09.000Z | sample/gui.py | mariciucioan/archive-cracker | 2a404b2b79b70c61cd90b1e55bd5a7a030d930f4 | [
"MIT"
] | null | null | null | sample/gui.py | mariciucioan/archive-cracker | 2a404b2b79b70c61cd90b1e55bd5a7a030d930f4 | [
"MIT"
] | null | null | null | import pyzipper
from kivy.clock import Clock
from kivy.uix.screenmanager import ScreenManager, Screen, FadeTransition
from kivy.core.clipboard import Clipboard
from kivy.core.window import Window
from kivy.uix.button import Button
from kivy.lang import Builder
from kivy.app import App
from os import remove
from plyer ... | 23.683544 | 97 | 0.644842 | 433 | 3,742 | 5.39261 | 0.288684 | 0.06424 | 0.050107 | 0.051392 | 0.242398 | 0.215846 | 0.189293 | 0.174732 | 0.089079 | 0.056531 | 0 | 0.002872 | 0.255478 | 3,742 | 157 | 98 | 23.834395 | 0.835248 | 0.025387 | 0 | 0.259615 | 0 | 0 | 0.087363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144231 | false | 0.115385 | 0.115385 | 0.057692 | 0.413462 | 0.009615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9d6ccaf397094d342ec858cd4602299783e9b27e | 624 | py | Python | lwh/21/encrpyt.py | saurabh896/python-1 | f8d3aedf4c0fe6e24dfa3269ea7e642c9f7dd9b7 | [
"MIT"
] | 3,976 | 2015-01-01T15:49:39.000Z | 2022-03-31T03:47:56.000Z | lwh/21/encrpyt.py | oyesam7/python-1 | 220734af09fa09a6f615d4f1b4612a0ab75d91d1 | [
"MIT"
] | 97 | 2015-01-11T02:59:46.000Z | 2022-03-16T14:01:56.000Z | lwh/21/encrpyt.py | oyesam7/python-1 | 220734af09fa09a6f615d4f1b4612a0ab75d91d1 | [
"MIT"
] | 3,533 | 2015-01-01T06:19:30.000Z | 2022-03-28T13:14:54.000Z | from hashlib import sha256
from hmac import HMAC
import os
class Encrypt(object):
def encrypt(self, password, salt=None):
if salt is None:
salt = os.urandom(8)
result = password.encode('utf-8')
for i in range(10):
result = HMAC(result, salt, sha256).digest()
... | 24.96 | 64 | 0.616987 | 79 | 624 | 4.772152 | 0.481013 | 0.05305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041126 | 0.259615 | 624 | 24 | 65 | 26 | 0.774892 | 0.043269 | 0 | 0 | 0 | 0 | 0.042017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.222222 | 0.166667 | 0.055556 | 0.444444 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9d73b0955ce13c65206268e83a304dc181ee839d | 309 | py | Python | DataStorage/DataStorage/admin.py | myedunote/pythonanywhere | 33a5277bcbd823f66f84ce04768a778a8e948a30 | [
"MIT"
] | 7 | 2021-11-05T17:58:39.000Z | 2022-02-25T10:44:54.000Z | DataStorage/DataStorage/admin.py | myedunote/pythonanywhere | 33a5277bcbd823f66f84ce04768a778a8e948a30 | [
"MIT"
] | null | null | null | DataStorage/DataStorage/admin.py | myedunote/pythonanywhere | 33a5277bcbd823f66f84ce04768a778a8e948a30 | [
"MIT"
] | 4 | 2021-09-17T16:58:35.000Z | 2022-01-06T09:52:19.000Z | from django.contrib import admin
from DataStorage.models import Data
# Register your models here.
class AdminData(admin.ModelAdmin):
list_display = ['key', 'format_value', 'createtime', 'updatetime']
admin.site.site_title = '数据存储'
admin.site.site_header = '数据存储'
admin.site.register(Data, AdminData)
| 22.071429 | 70 | 0.757282 | 40 | 309 | 5.75 | 0.625 | 0.117391 | 0.113043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122977 | 309 | 13 | 71 | 23.769231 | 0.848708 | 0.084142 | 0 | 0 | 0 | 0 | 0.153025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9d73bddd1c14701d6ffbcbb4e7c3e7a34cba44a9 | 2,325 | py | Python | tensorflow/contrib/optimizer_v2/adadelta.py | fraudies/tensorflow | a42423e302b71893bbd24aa896869941013c07fb | [
"Apache-2.0"
] | 4 | 2021-06-15T17:26:07.000Z | 2021-11-17T10:58:08.000Z | tensorflow/contrib/optimizer_v2/adadelta.py | fraudies/tensorflow | a42423e302b71893bbd24aa896869941013c07fb | [
"Apache-2.0"
] | null | null | null | tensorflow/contrib/optimizer_v2/adadelta.py | fraudies/tensorflow | a42423e302b71893bbd24aa896869941013c07fb | [
"Apache-2.0"
] | 4 | 2018-02-18T03:39:01.000Z | 2018-10-18T11:49:17.000Z | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 40.789474 | 80 | 0.706667 | 315 | 2,325 | 5.111111 | 0.520635 | 0.037267 | 0.029814 | 0.019876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023684 | 0.182796 | 2,325 | 56 | 81 | 41.517857 | 0.823684 | 0.667097 | 0 | 0 | 0 | 0 | 0.136564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.5 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9d79c31ad0d9f39fd7f3cb3e5064f6701a5675c9 | 642 | py | Python | broker/eblocbroker_scripts/get_job_storage_time.py | ebloc/ebloc-broker | 776a8d9d4642ed1ba4726c94da68d61bd81c098b | [
"MIT"
] | 3 | 2021-12-11T19:26:57.000Z | 2021-12-30T00:17:23.000Z | broker/eblocbroker_scripts/get_job_storage_time.py | ebloc/ebloc-broker | 776a8d9d4642ed1ba4726c94da68d61bd81c098b | [
"MIT"
] | null | null | null | broker/eblocbroker_scripts/get_job_storage_time.py | ebloc/ebloc-broker | 776a8d9d4642ed1ba4726c94da68d61bd81c098b | [
"MIT"
] | 1 | 2021-09-18T11:38:07.000Z | 2021-09-18T11:38:07.000Z | #!/usr/bin/env python3
import sys
from broker import cfg
if __name__ == "__main__":
Ebb = cfg.Ebb
if len(sys.argv) == 3:
provider_addr = str(sys.argv[1])
source_code_hash = str(sys.argv[2])
else:
provider_addr = "0x57b60037b82154ec7149142c606ba024fbb0f991"
source_code_hash... | 30.571429 | 93 | 0.71028 | 80 | 642 | 5.275 | 0.475 | 0.123223 | 0.151659 | 0.163507 | 0.191943 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094412 | 0.191589 | 642 | 20 | 94 | 32.1 | 0.71869 | 0.03271 | 0 | 0 | 0 | 0 | 0.370968 | 0.325806 | 0 | 0 | 0.067742 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d79edbdfd0590168d3df06f725cf0f39e33cb15 | 2,148 | py | Python | server.py | ntduong/photo-retrieval | d96c2fc0886f6e49493750cf591dd2fee0903246 | [
"MIT"
] | null | null | null | server.py | ntduong/photo-retrieval | d96c2fc0886f6e49493750cf591dd2fee0903246 | [
"MIT"
] | null | null | null | server.py | ntduong/photo-retrieval | d96c2fc0886f6e49493750cf591dd2fee0903246 | [
"MIT"
] | null | null | null | from bottle import Bottle, request, route, run, static_file
import os
import sys
import functools
import photorepo
query_id = 0
app = Bottle()
@app.route("/")
def index():
return "<h1>Demo: Search by photo</h1>"
def search_internal(repo, n_results):
query = request.files.get("queryImage")
_, ext = os.... | 25.571429 | 74 | 0.606611 | 290 | 2,148 | 4.337931 | 0.372414 | 0.050874 | 0.042925 | 0.027027 | 0.143084 | 0.143084 | 0.143084 | 0.143084 | 0.085851 | 0.085851 | 0 | 0.018029 | 0.225326 | 2,148 | 83 | 75 | 25.879518 | 0.737981 | 0.074953 | 0 | 0 | 0 | 0.018182 | 0.248947 | 0.035263 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0.054545 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d7a641a1c85d76901c33030e8486e2d020984ca | 653 | py | Python | kde_plot.py | WestHamster/Feature_engg | 18d2e935db14cb68c734fb67e99fe427841d1d1e | [
"MIT"
] | null | null | null | kde_plot.py | WestHamster/Feature_engg | 18d2e935db14cb68c734fb67e99fe427841d1d1e | [
"MIT"
] | null | null | null | kde_plot.py | WestHamster/Feature_engg | 18d2e935db14cb68c734fb67e99fe427841d1d1e | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sn
df = pd.read_csv('height_weight.csv')
print(df.info())
print(df.describe())
#kernel density estimation
#kernel is specifying how data is smoothened. Here Gaussian is used
#violin plot also uses gaussian
sb.kdeplot(df["height"... | 31.095238 | 68 | 0.745789 | 110 | 653 | 4.409091 | 0.609091 | 0.049485 | 0.061856 | 0.098969 | 0.11134 | 0.11134 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.11026 | 653 | 20 | 69 | 32.65 | 0.810671 | 0.404288 | 0 | 0 | 0 | 0 | 0.183246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9d7e7edd126516286d346ad18b9f19a9366e9814 | 2,103 | py | Python | api/app/controllers/api/__init__.py | azzamsa/RESTKnot | a776699e678b8a5547b146bc3c636c3cad7e89c0 | [
"MIT"
] | 18 | 2018-09-19T05:51:11.000Z | 2022-01-21T05:18:36.000Z | api/app/controllers/api/__init__.py | azzamsa/RESTKnot | a776699e678b8a5547b146bc3c636c3cad7e89c0 | [
"MIT"
] | 32 | 2018-10-26T06:03:41.000Z | 2021-10-08T03:13:52.000Z | api/app/controllers/api/__init__.py | azzamsa/RESTKnot | a776699e678b8a5547b146bc3c636c3cad7e89c0 | [
"MIT"
] | 9 | 2018-09-19T05:51:14.000Z | 2022-01-10T07:57:51.000Z | from flask import Blueprint
from flask_restful import Api
from .domain import (
AddDomain,
DeleteDomain,
GetDomainByUser,
GetDomainData,
GetDomainDataId,
)
from .health import HealthCheck
from .meta import MetaConfig, MetaVersion
from .record import GetRecordData, GetRecordDataId, RecordAdd, Record... | 36.894737 | 87 | 0.774132 | 272 | 2,103 | 5.805147 | 0.227941 | 0.106396 | 0.248258 | 0.10133 | 0.156428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077033 | 2,103 | 56 | 88 | 37.553571 | 0.813498 | 0.025678 | 0 | 0 | 0 | 0 | 0.216903 | 0.070835 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.066667 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d7f80fe0a9d286a594125b0534c05553563fc20 | 403 | py | Python | setup.py | acarmisc/iqualitpy | a0a588040dcf873e1123f67f6b2cb4f991dea37e | [
"MIT"
] | null | null | null | setup.py | acarmisc/iqualitpy | a0a588040dcf873e1123f67f6b2cb4f991dea37e | [
"MIT"
] | 1 | 2021-06-01T22:31:19.000Z | 2021-06-01T22:31:19.000Z | setup.py | acarmisc/iqualitpy | a0a588040dcf873e1123f67f6b2cb4f991dea37e | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='iqualitypy',
version='0.0.2',
description='Python iQuality API library',
license='MIT',
packages=['iqualitpy'],
author='Andrea Carmisciano',
author_email='andrea.carmisciano@gmail.com',
keywords=['iquality', 'api', 'library', 'timetracking'],
... | 26.866667 | 60 | 0.674938 | 43 | 403 | 6.27907 | 0.767442 | 0.081481 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.158809 | 403 | 14 | 61 | 28.785714 | 0.787611 | 0 | 0 | 0 | 0 | 0 | 0.434243 | 0.069479 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d80b9af70881c78682349135249d669026c2e55 | 4,531 | py | Python | src/nbconvert_pdfqt/static.py | deathbeds/nbconvert-pdfqt | 1391fbd3e8bf141b48f825f4a44b9fbf0ca2dd48 | [
"BSD-3-Clause"
] | 2 | 2020-06-02T11:30:42.000Z | 2020-06-05T12:11:47.000Z | src/nbconvert_pdfqt/static.py | deathbeds/nbconvert-pdfqt | 1391fbd3e8bf141b48f825f4a44b9fbf0ca2dd48 | [
"BSD-3-Clause"
] | 2 | 2019-11-12T14:11:54.000Z | 2020-06-05T12:34:19.000Z | src/nbconvert_pdfqt/static.py | deathbeds/nbconvert-pdfqt | 1391fbd3e8bf141b48f825f4a44b9fbf0ca2dd48 | [
"BSD-3-Clause"
] | null | null | null |
LAB_STYLE = """
body {
--jp-layout-color0: transparent;
--jp-layout-color1: transparent;
--jp-layout-color2: transparent;
--jp-layout-color3: transparent;
--jp-cell-editor-background: transparent;
--jp-border-width: 0;
--jp-border-color0: transparent;
... | 28.677215 | 84 | 0.50629 | 405 | 4,531 | 5.612346 | 0.333333 | 0.029037 | 0.025077 | 0.029037 | 0.148702 | 0.148702 | 0.132864 | 0.088869 | 0.088869 | 0.088869 | 0 | 0.014941 | 0.350033 | 4,531 | 157 | 85 | 28.859873 | 0.756876 | 0 | 0 | 0.277027 | 0 | 0.006757 | 0.966446 | 0.259382 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006757 | 0 | 0.013514 | 0.02027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d8741c48835e3333d5c3daa0ad9d086b9d9d2f7 | 2,322 | py | Python | devincachu/palestras/models.py | devincachu/devincachu-2013 | 2516071c1cd29845fb8f1058e523b6842a013076 | [
"BSD-2-Clause"
] | 3 | 2015-07-27T15:07:44.000Z | 2015-11-08T15:36:08.000Z | devincachu/palestras/models.py | devincachu/devincachu-2013 | 2516071c1cd29845fb8f1058e523b6842a013076 | [
"BSD-2-Clause"
] | null | null | null | devincachu/palestras/models.py | devincachu/devincachu-2013 | 2516071c1cd29845fb8f1058e523b6842a013076 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2013 Dev in Cachu authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import roan
from django.db import models
class Palestrante(models.Model):
nome = models.CharField(max_length=100)
slug = ... | 31.808219 | 76 | 0.652024 | 280 | 2,322 | 5.264286 | 0.407143 | 0.048847 | 0.07327 | 0.097693 | 0.180461 | 0.048847 | 0.048847 | 0 | 0 | 0 | 0 | 0.016722 | 0.22739 | 2,322 | 72 | 77 | 32.25 | 0.804905 | 0.076227 | 0 | 0.083333 | 0 | 0 | 0.107944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.041667 | 0.083333 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9d877263cc78d7d912bd807a2dfdb8fd901dd656 | 1,971 | py | Python | mongodb_backend/flaskr/view_classes/user.py | scripted-adventurer/Custom-Fantasy-Football | 334419d46d2142ceec7630d4582bf61e06a4de1a | [
"Unlicense"
] | 1 | 2020-09-12T04:25:19.000Z | 2020-09-12T04:25:19.000Z | mongodb_backend/flaskr/view_classes/user.py | scripted-adventurer/Custom-Fantasy-Football | 334419d46d2142ceec7630d4582bf61e06a4de1a | [
"Unlicense"
] | null | null | null | mongodb_backend/flaskr/view_classes/user.py | scripted-adventurer/Custom-Fantasy-Football | 334419d46d2142ceec7630d4582bf61e06a4de1a | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
from mongodb_backend.flaskr.view_classes.custom_view import CustomView
from mongodb_backend.flaskr import models
from common.hashing import compare_hash
class User(CustomView):
def get(self):
username = self.user.username
self.add_response_data('username', username)
leagues = [row... | 41.93617 | 80 | 0.71791 | 258 | 1,971 | 5.217054 | 0.244186 | 0.066865 | 0.106984 | 0.13373 | 0.581724 | 0.488856 | 0.379643 | 0.338039 | 0.31055 | 0.240713 | 0 | 0.012225 | 0.169964 | 1,971 | 47 | 81 | 41.93617 | 0.810513 | 0.020802 | 0 | 0.431818 | 0 | 0 | 0.068983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0.295455 | 0.068182 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9d8db695458bd7eb6f3a792c498603ce3c936106 | 1,608 | py | Python | fsets/gamma.py | harsh07021999/fuzzython | 178e25f10a22ec04f81a7f1c800d79c8da0c7950 | [
"BSD-3-Clause"
] | 16 | 2015-11-04T12:02:47.000Z | 2021-12-11T08:33:45.000Z | fsets/gamma.py | harsh07021999/fuzzython | 178e25f10a22ec04f81a7f1c800d79c8da0c7950 | [
"BSD-3-Clause"
] | 2 | 2018-02-19T18:52:44.000Z | 2021-01-05T23:16:03.000Z | fsets/gamma.py | harsh07021999/fuzzython | 178e25f10a22ec04f81a7f1c800d79c8da0c7950 | [
"BSD-3-Clause"
] | 19 | 2015-04-18T07:48:58.000Z | 2021-07-22T16:57:17.000Z | from math import exp
from fsets.fuzzy_set import FuzzySet
__author__ = ''
class Gamma(FuzzySet):
"""
Fuzzy Set with gamma membership function (V-shaped function)
__ __
\ /
\ /
|
value
:value: x-value where function reach it's minimum value: 0
... | 25.935484 | 80 | 0.557214 | 194 | 1,608 | 4.283505 | 0.340206 | 0.057762 | 0.064982 | 0.079422 | 0.220217 | 0.220217 | 0.220217 | 0.173285 | 0.173285 | 0.173285 | 0 | 0.007576 | 0.343284 | 1,608 | 61 | 81 | 26.360656 | 0.779356 | 0.195274 | 0 | 0.205882 | 0 | 0 | 0.022034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0.029412 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9d992b3c02423a105e68adc3fdb70491a4df4734 | 289 | py | Python | src/aomie/__init__.py | qheuristics/aomie | 06702be7ba47f27b5868e1868327ba6087a80515 | [
"MIT"
] | null | null | null | src/aomie/__init__.py | qheuristics/aomie | 06702be7ba47f27b5868e1868327ba6087a80515 | [
"MIT"
] | 5 | 2019-09-17T15:31:00.000Z | 2021-04-17T16:19:09.000Z | src/aomie/__init__.py | qheuristics/aomie | 06702be7ba47f27b5868e1868327ba6087a80515 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
aomie
~~~~~
aomie is a simple Python package to ease the handling of Iberian
electricity market data published by the market operator OMIE.
:copyright: © 2019 by Guillermo Lozano Branger.
:license: MIT, see LICENSE for more details.
"""
__version__ = '0.0.0'
| 22.230769 | 64 | 0.712803 | 43 | 289 | 4.72093 | 0.837209 | 0.019704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.16955 | 289 | 12 | 65 | 24.083333 | 0.808333 | 0.885813 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d9ace36a8cebea0b88b3b8afb46fdc083d290f0 | 720 | py | Python | vhdmmio/config/behavior/registry.py | jvanstraten/vhdmmio | f166b07074a9159311a01af88497df91c19e09d1 | [
"Apache-2.0"
] | 4 | 2019-07-01T14:41:38.000Z | 2021-11-28T12:54:49.000Z | vhdmmio/config/behavior/registry.py | jvanstraten/vhdmmio | f166b07074a9159311a01af88497df91c19e09d1 | [
"Apache-2.0"
] | 4 | 2019-08-23T15:05:24.000Z | 2020-12-16T10:02:20.000Z | vhdmmio/config/behavior/registry.py | jvanstraten/vhdmmio | f166b07074a9159311a01af88497df91c19e09d1 | [
"Apache-2.0"
] | 1 | 2021-07-16T13:41:21.000Z | 2021-07-16T13:41:21.000Z | """Registry for behavior configurables."""
_BEHAVIOR_LIST = []
def behaviors():
"""Yields the currently registered behaviors in the order in which they
were defined."""
for name, cls, brief, level in _BEHAVIOR_LIST:
yield name, cls, brief, level
def behavior(name, brief, level=0):
"""Decorato... | 31.304348 | 78 | 0.686111 | 91 | 720 | 5.274725 | 0.43956 | 0.125 | 0.075 | 0.10625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003515 | 0.209722 | 720 | 22 | 79 | 32.727273 | 0.84007 | 0.370833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9da23c161cf0fecfd87242aa41705712c960eee0 | 807 | py | Python | resources/urls.py | alimustafashah/core | 7280c4ca2e88d700ad35af05fbe0766e9ad8e5b4 | [
"MIT"
] | null | null | null | resources/urls.py | alimustafashah/core | 7280c4ca2e88d700ad35af05fbe0766e9ad8e5b4 | [
"MIT"
] | 24 | 2021-04-29T18:58:51.000Z | 2021-08-06T23:07:03.000Z | resources/urls.py | alimustafashah/core | 7280c4ca2e88d700ad35af05fbe0766e9ad8e5b4 | [
"MIT"
] | 2 | 2021-04-29T23:03:55.000Z | 2021-04-29T23:43:52.000Z | from django.urls import include, path
from django.conf.urls import url
from rest_framework import routers
from . import views
# router = routers.DefaultRouter()
# router.register('jobpostings', views.JobPostingList)
# router.register('jobpostings/<int:id>', views.JobPostingDetail)
urlpatterns = [
# url(r'^jobpost... | 38.428571 | 78 | 0.714994 | 90 | 807 | 6.355556 | 0.4 | 0.090909 | 0.052448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002789 | 0.111524 | 807 | 20 | 79 | 40.35 | 0.794979 | 0.38166 | 0 | 0 | 0 | 0 | 0.20935 | 0.093496 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9da3ebc055b7472d75da6c6344cca47221c9752e | 159 | py | Python | python3/glob/glob1.py | jtraver/dev | c7cd2181594510a8fa27e7325566ed2d79371624 | [
"MIT"
] | null | null | null | python3/glob/glob1.py | jtraver/dev | c7cd2181594510a8fa27e7325566ed2d79371624 | [
"MIT"
] | null | null | null | python3/glob/glob1.py | jtraver/dev | c7cd2181594510a8fa27e7325566ed2d79371624 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import glob
def main():
pyfiles = glob.glob("../*/*.py")
for pyfile in pyfiles:
print(("pyfile %s" % pyfile))
main()
| 14.454545 | 37 | 0.566038 | 21 | 159 | 4.285714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.232704 | 159 | 10 | 38 | 15.9 | 0.729508 | 0.132075 | 0 | 0 | 0 | 0 | 0.131387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9daf6bd3943041ffebc8e32bcfd49349e5f81634 | 1,320 | py | Python | gtm_manager/exceptions.py | trakken/gtm_manager | 4825cc87daf36bf2feeae8c463243b128008e36f | [
"MIT"
] | 7 | 2018-12-14T11:05:44.000Z | 2021-12-03T18:33:17.000Z | gtm_manager/exceptions.py | trakken/gtm_manager | 4825cc87daf36bf2feeae8c463243b128008e36f | [
"MIT"
] | 2 | 2019-07-16T09:40:47.000Z | 2019-08-22T20:57:04.000Z | gtm_manager/exceptions.py | trakken/gtm_manager | 4825cc87daf36bf2feeae8c463243b128008e36f | [
"MIT"
] | 3 | 2021-07-21T07:55:50.000Z | 2022-01-14T12:54:02.000Z | """excpetions.py"""
class GTMManagerException(Exception):
"""GTMManagerException"""
pass
class AuthError(GTMManagerException):
pass
class VariableNotFound(GTMManagerException):
"""VariableNotFound"""
def __init__(self, variable_name, parent):
super(VariableNotFound, self).__init__()
... | 22.758621 | 85 | 0.653788 | 133 | 1,320 | 6.12782 | 0.203008 | 0.058896 | 0.103067 | 0.07362 | 0.235583 | 0.235583 | 0.235583 | 0.235583 | 0 | 0 | 0 | 0 | 0.231818 | 1,320 | 57 | 86 | 23.157895 | 0.803748 | 0.072727 | 0 | 0.290323 | 0 | 0 | 0.090528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0.096774 | 0 | 0.096774 | 0.483871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9db52f69b14b883103d72bdb3539dda0cc1796d8 | 1,450 | py | Python | seriesoftubes/converters/bamtotab.py | benjschiller/seriesoftubes | 21bc73eb971a3026255306ce2bebd7472ad5d0b6 | [
"Artistic-2.0"
] | 1 | 2015-11-11T02:57:51.000Z | 2015-11-11T02:57:51.000Z | seriesoftubes/converters/bamtotab.py | benjschiller/seriesoftubes | 21bc73eb971a3026255306ce2bebd7472ad5d0b6 | [
"Artistic-2.0"
] | null | null | null | seriesoftubes/converters/bamtotab.py | benjschiller/seriesoftubes | 21bc73eb971a3026255306ce2bebd7472ad5d0b6 | [
"Artistic-2.0"
] | null | null | null | """Convert BAM/SAM to tab-format
NAME SEQ1 QUAL1 SEQ2 QUAL2
files may be SAM or BAM (autodetected)
Output is always to stdout (err goes to stderr, redirect it if you need to)"""
import pysam
import os
import select
from scripter import path_to_executable
from argparse import ArgumentParser
from copy imp... | 30.208333 | 78 | 0.6 | 202 | 1,450 | 4.212871 | 0.485149 | 0.014101 | 0.021152 | 0.018801 | 0.028202 | 0.028202 | 0.010576 | 0 | 0 | 0 | 0 | 0.008964 | 0.307586 | 1,450 | 48 | 79 | 30.208333 | 0.838645 | 0 | 0 | 0.058824 | 0 | 0 | 0.058615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.264706 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9db7000df7665dc63b4f47732b477de3d101c5aa | 5,383 | py | Python | Black-box optimization competition/Algorithms/Bayesian.py | OptiMaL-PSE-Lab/coding_workshop | 5410e3bd7dbc382e4e4b47202b1ae80f52329720 | [
"MIT"
] | null | null | null | Black-box optimization competition/Algorithms/Bayesian.py | OptiMaL-PSE-Lab/coding_workshop | 5410e3bd7dbc382e4e4b47202b1ae80f52329720 | [
"MIT"
] | null | null | null | Black-box optimization competition/Algorithms/Bayesian.py | OptiMaL-PSE-Lab/coding_workshop | 5410e3bd7dbc382e4e4b47202b1ae80f52329720 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 23 20:02:25 2022
@author: dv516
"""
import numpy as np
import math
from scipy.optimize import minimize
from typing import List, Tuple
from Functions.test_functions import f_d2, f_d3
def optimizer_dummy(f, N_x: int, bounds: List[Tuple[float]], N: int = 100) -> (float, ... | 30.412429 | 99 | 0.591492 | 900 | 5,383 | 3.391111 | 0.246667 | 0.010485 | 0.017693 | 0.014417 | 0.161533 | 0.098624 | 0.070773 | 0.062254 | 0.054391 | 0.039318 | 0 | 0.030649 | 0.284785 | 5,383 | 176 | 100 | 30.585227 | 0.762078 | 0.353892 | 0 | 0.054795 | 0 | 0 | 0.017636 | 0 | 0 | 0 | 0 | 0.028409 | 0 | 1 | 0.109589 | false | 0 | 0.068493 | 0 | 0.287671 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9db757792566b56f8ae4ee9c1528845209c25fe7 | 2,233 | py | Python | plugin.video.master.reborn/resources/lib/modules/common.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2019-03-05T09:37:15.000Z | 2019-03-05T09:37:15.000Z | plugin.video.master.reborn/resources/lib/modules/common.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | null | null | null | plugin.video.master.reborn/resources/lib/modules/common.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2021-11-05T22:16:08.000Z | 2021-11-05T22:16:08.000Z | import HTMLParser
import json
import random
import re
import urllib2
import urlparse
def clean_title(title):
if title == None: return
title = re.sub('&#(\d+);', '', title)
title = re.sub('(&#[0-9]+)([^;^0-9]+)', '\\1;\\2', title)
title = title.replace('"', '\"').replace('&', '&')
title = ... | 40.6 | 120 | 0.546798 | 353 | 2,233 | 3.402266 | 0.359773 | 0.05995 | 0.033306 | 0.029975 | 0.111574 | 0.111574 | 0.056619 | 0.018318 | 0 | 0 | 0 | 0.192992 | 0.194805 | 2,233 | 55 | 121 | 40.6 | 0.474972 | 0 | 0 | 0 | 0 | 0.044444 | 0.405551 | 0.042525 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.133333 | 0 | 0.311111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9db828080d80a8021e3499a5f39b4f25e8f25dc6 | 1,225 | py | Python | data/plugins/npcs/dialogue/human_npcs.py | FavyTeam/Elderscape_server | 38bf75396e4e13222be67d5f15eb0b9862dca6bb | [
"MIT"
] | 3 | 2019-05-09T16:59:13.000Z | 2019-05-09T18:29:57.000Z | data/plugins/npcs/dialogue/human_npcs.py | FavyTeam/Elderscape_server | 38bf75396e4e13222be67d5f15eb0b9862dca6bb | [
"MIT"
] | null | null | null | data/plugins/npcs/dialogue/human_npcs.py | FavyTeam/Elderscape_server | 38bf75396e4e13222be67d5f15eb0b9862dca6bb | [
"MIT"
] | 7 | 2019-07-11T23:04:40.000Z | 2021-08-02T14:27:13.000Z | #Plugin to handle dialogues for men and women
#Written by Owain for Runefate
#31/01/18
#I want to give every spawned NPC a use, and not do what most servers have with useless non functioning NPCs.
#Even small things such as NPC dialogues can help make Runefate more rounded and enjoyable.
npc_ids = [3078, 3079]
dialo... | 29.878049 | 109 | 0.709388 | 177 | 1,225 | 4.836158 | 0.553672 | 0.11215 | 0.158879 | 0.130841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093596 | 0.171429 | 1,225 | 40 | 110 | 30.625 | 0.749754 | 0.227755 | 0 | 0 | 0 | 0 | 0.183174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9dc043107becf7221c95d4a13e11b2b2668e8323 | 4,078 | py | Python | placeholder/__init__.py | coady/placeholder | 27b34bc77d4e15414dface5151147d031c1a2c0d | [
"Apache-2.0"
] | 33 | 2018-07-30T02:40:09.000Z | 2022-03-05T15:00:47.000Z | placeholder/__init__.py | coady/placeholder | 27b34bc77d4e15414dface5151147d031c1a2c0d | [
"Apache-2.0"
] | 7 | 2020-06-18T09:52:49.000Z | 2022-03-07T16:05:15.000Z | placeholder/__init__.py | coady/placeholder | 27b34bc77d4e15414dface5151147d031c1a2c0d | [
"Apache-2.0"
] | 4 | 2019-11-26T00:46:46.000Z | 2021-11-05T14:29:54.000Z | import itertools
import math
import operator
import warnings
from functools import partial
from typing import Callable, Iterable, Iterator, Sequence
from . import partials # type: ignore
__version__ = '1.3'
def update_wrapper(wrapper: Callable, func: Callable):
wrapper.__doc__ = func.__doc__
wrapper.__name_... | 31.369231 | 94 | 0.657921 | 469 | 4,078 | 5.176972 | 0.302772 | 0.105025 | 0.034596 | 0.044481 | 0.056013 | 0.034596 | 0.034596 | 0.034596 | 0 | 0 | 0 | 0.002801 | 0.212114 | 4,078 | 129 | 95 | 31.612403 | 0.752879 | 0.089505 | 0 | 0.024096 | 0 | 0 | 0.023536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.168675 | false | 0 | 0.084337 | 0.024096 | 0.60241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9dc5ca7c15979d79e45fc2e6fe09a26b49876fe4 | 9,426 | py | Python | util/finitestatemachine.py | zdx198811/lab604-automation | f73acdce38422d9c3a0845a553efa4eebc662086 | [
"MIT"
] | 1 | 2020-10-30T15:22:20.000Z | 2020-10-30T15:22:20.000Z | util/finitestatemachine.py | zdx198811/lab604-automation | f73acdce38422d9c3a0845a553efa4eebc662086 | [
"MIT"
] | null | null | null | util/finitestatemachine.py | zdx198811/lab604-automation | f73acdce38422d9c3a0845a553efa4eebc662086 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 19 10:46:43 2020
Description:
A simple implementation of state machine.
————————————————
inspired by:https://blog.csdn.net/StoryMonster/article/details/99443480
Based on the original code, I've changed the transaction table's data
structure from li... | 35.171642 | 120 | 0.626353 | 1,042 | 9,426 | 5.46833 | 0.238964 | 0.09828 | 0.050544 | 0.057038 | 0.313443 | 0.201825 | 0.139172 | 0.106178 | 0.07371 | 0.056511 | 0 | 0.004717 | 0.280289 | 9,426 | 268 | 121 | 35.171642 | 0.832842 | 0.187354 | 0 | 0.317647 | 0 | 0 | 0.073901 | 0.006924 | 0 | 0 | 0 | 0 | 0 | 1 | 0.182353 | false | 0.070588 | 0.011765 | 0.023529 | 0.347059 | 0.070588 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9dc87153032a2a2560dfc333fe3e438e36cf6b69 | 199 | py | Python | daemon/stop_daemon.py | Robert-Kolmos/GitUp1 | 5a4bbbbd6f4ad82dfea7a78fb988eba25b574ee9 | [
"MIT"
] | null | null | null | daemon/stop_daemon.py | Robert-Kolmos/GitUp1 | 5a4bbbbd6f4ad82dfea7a78fb988eba25b574ee9 | [
"MIT"
] | null | null | null | daemon/stop_daemon.py | Robert-Kolmos/GitUp1 | 5a4bbbbd6f4ad82dfea7a78fb988eba25b574ee9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.7
from daemon import GitUpDaemon
def stop_daemon():
daemon = GitUpDaemon(pidfile='/tmp/gitup_daemon.pid')
daemon.stop()
if __name__ == "__main__":
stop_daemon()
| 18.090909 | 57 | 0.698492 | 26 | 199 | 4.923077 | 0.692308 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0.160804 | 199 | 10 | 58 | 19.9 | 0.754491 | 0.115578 | 0 | 0 | 0 | 0 | 0.166667 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9dca33518aa90b2421db0f1bc1a2e790412bb352 | 1,098 | py | Python | battery/migrations/0003_device.py | sha-02/battery-inventory | a6afa34dd0628bfb1f8922f2554bb44dd549bab9 | [
"MIT"
] | null | null | null | battery/migrations/0003_device.py | sha-02/battery-inventory | a6afa34dd0628bfb1f8922f2554bb44dd549bab9 | [
"MIT"
] | null | null | null | battery/migrations/0003_device.py | sha-02/battery-inventory | a6afa34dd0628bfb1f8922f2554bb44dd549bab9 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-01-01 16:52
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | 39.214286 | 170 | 0.672131 | 119 | 1,098 | 6.067227 | 0.537815 | 0.044321 | 0.083102 | 0.091413 | 0.152355 | 0.152355 | 0.152355 | 0.152355 | 0.152355 | 0.152355 | 0 | 0.042334 | 0.204007 | 1,098 | 27 | 171 | 40.666667 | 0.783753 | 0.040984 | 0 | 0 | 1 | 0 | 0.092293 | 0.021884 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.190476 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9dca6a5fa8de8a4a8cf25c74c63b5284683e682c | 582 | py | Python | pyapp/brutalisk/brutalisk.py | gerrive/docker-space-invader | 8d35b56d5fcf984c1e54ec075d558159e85c4577 | [
"MIT"
] | null | null | null | pyapp/brutalisk/brutalisk.py | gerrive/docker-space-invader | 8d35b56d5fcf984c1e54ec075d558159e85c4577 | [
"MIT"
] | null | null | null | pyapp/brutalisk/brutalisk.py | gerrive/docker-space-invader | 8d35b56d5fcf984c1e54ec075d558159e85c4577 | [
"MIT"
] | null | null | null | import pygame
from pygame import sprite
from settings import PROJECT_PATH, ENEMY_DEFAULT_SIZE, BRUTALISK_POINTS
class Brutalisk(sprite.Sprite):
def __init__(self, x_pos, y_pos):
sprite.Sprite.__init__(self)
self.image = pygame.transform.scale(pygame.image.load(PROJECT_PATH +
... | 32.333333 | 77 | 0.61512 | 68 | 582 | 4.941176 | 0.470588 | 0.065476 | 0.095238 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004926 | 0.302406 | 582 | 17 | 78 | 34.235294 | 0.82266 | 0 | 0 | 0 | 0 | 0 | 0.051546 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.230769 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9dd58e348a0c23a50bbef9a3db9d3efb1e497a7f | 1,374 | py | Python | app/auth/passwords.py | LambArchie/Competition-Manager | 7da4c8625f0bd0c1b002b4f2aef72529e1ede4c6 | [
"MIT"
] | null | null | null | app/auth/passwords.py | LambArchie/Competition-Manager | 7da4c8625f0bd0c1b002b4f2aef72529e1ede4c6 | [
"MIT"
] | 1 | 2021-06-14T14:48:06.000Z | 2021-06-14T15:42:40.000Z | app/auth/passwords.py | LambArchie/Competition-Manager | 7da4c8625f0bd0c1b002b4f2aef72529e1ede4c6 | [
"MIT"
] | null | null | null | """
Controls passwords checks
"""
from hashlib import sha1
from urllib.request import Request, urlopen
from flask import current_app
PWNED_PASSWORD_API = "https://api.pwnedpasswords.com/range/"
def strength_check(password):
"""Checks if password reaches minimum requirement
Returns True if meets requirements, ... | 34.35 | 88 | 0.681951 | 179 | 1,374 | 5.089385 | 0.463687 | 0.07135 | 0.052689 | 0.043908 | 0.127333 | 0.127333 | 0 | 0 | 0 | 0 | 0 | 0.008227 | 0.203785 | 1,374 | 39 | 89 | 35.230769 | 0.824497 | 0.152111 | 0 | 0.178571 | 0 | 0 | 0.1529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.357143 | 0.107143 | 0 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9dde2d14a00456373a42f3b7c6cb1c4f92ff6f59 | 19,227 | py | Python | deepcluster-master/eval_retrieval.py | anonxyz123/fgk62af5 | 6dd028b0c5e90c3f296eb32dfae033c5612fcae1 | [
"MIT"
] | 1 | 2021-06-18T07:11:01.000Z | 2021-06-18T07:11:01.000Z | deepcluster-master/eval_retrieval.py | anonxyz123/fgk62af5 | 6dd028b0c5e90c3f296eb32dfae033c5612fcae1 | [
"MIT"
] | 5 | 2020-03-24T18:10:32.000Z | 2021-06-02T01:08:20.000Z | deepcluster-master/eval_retrieval.py | anonxyz123/fgk62af5 | 6dd028b0c5e90c3f296eb32dfae033c5612fcae1 | [
"MIT"
] | null | null | null | # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
import argparse
from collections import OrderedDict
import os
import pickle
import subprocess
import sys
import numpy as np
f... | 39.890041 | 118 | 0.563738 | 2,574 | 19,227 | 4.043512 | 0.182207 | 0.028824 | 0.006918 | 0.011626 | 0.276806 | 0.230784 | 0.205035 | 0.18015 | 0.151038 | 0.121925 | 0 | 0.028446 | 0.310709 | 19,227 | 481 | 119 | 39.972973 | 0.756885 | 0.083424 | 0 | 0.120112 | 0 | 0 | 0.109159 | 0.032337 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03352 | null | null | 0.064246 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9de83a6e6961c4957e0da673edda22e69fcd31ad | 13,457 | py | Python | all_code/experiment_omh.py | janwillemnijenhuis/MLRobustness | d902f78ce655c6391d435748ad1bec27f1bd2689 | [
"CC0-1.0"
] | null | null | null | all_code/experiment_omh.py | janwillemnijenhuis/MLRobustness | d902f78ce655c6391d435748ad1bec27f1bd2689 | [
"CC0-1.0"
] | null | null | null | all_code/experiment_omh.py | janwillemnijenhuis/MLRobustness | d902f78ce655c6391d435748ad1bec27f1bd2689 | [
"CC0-1.0"
] | null | null | null | # standard python imports #
import os
from IPython.display import display
from sklearn.ensemble import RandomForestClassifier
import pandas as pd
import numpy as np
from scipy.stats import t
from tqdm import tqdm
import time
import pickle
# locally created imports #
notebook_path = os.path.split(os.path.abspath(os.get... | 42.856688 | 1,051 | 0.692353 | 2,445 | 13,457 | 3.497751 | 0.148466 | 0.028064 | 0.023854 | 0.019878 | 0.49544 | 0.456735 | 0.413471 | 0.377806 | 0.343195 | 0.313962 | 0 | 0.03139 | 0.171435 | 13,457 | 314 | 1,052 | 42.856688 | 0.735605 | 0.229472 | 0 | 0.203252 | 0 | 0 | 0.097384 | 0.059787 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.04065 | 0 | 0.085366 | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9de8459814389398c0f55e301ae6b215c40102d2 | 1,629 | py | Python | pylox/LoxFunction.py | nicheng0019/crafting-interpreters | 644a45582f3181ab87709a75c8be67c8dc1697ad | [
"Apache-2.0"
] | 2 | 2022-01-03T22:13:52.000Z | 2022-01-03T22:14:12.000Z | pylox/LoxFunction.py | nicheng0019/crafting-interpreters | 644a45582f3181ab87709a75c8be67c8dc1697ad | [
"Apache-2.0"
] | null | null | null | pylox/LoxFunction.py | nicheng0019/crafting-interpreters | 644a45582f3181ab87709a75c8be67c8dc1697ad | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
from typing import List
import Stmt
import Environment
from Return import Return
class LoxCallable:
def __init__(self):
pass
def __call__(self, interpreter, arguments: List[object]):
return None
@property
def arity(self):
return 0
class L... | 28.086207 | 101 | 0.637815 | 163 | 1,629 | 6.226994 | 0.325153 | 0.118227 | 0.062069 | 0.04335 | 0.334975 | 0.248276 | 0.248276 | 0.102463 | 0.102463 | 0.102463 | 0 | 0.003378 | 0.273174 | 1,629 | 57 | 102 | 28.578947 | 0.853885 | 0.007366 | 0 | 0.35 | 0 | 0 | 0.010925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.025 | 0.1 | 0.1 | 0.575 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9de98025d2b5a2eb00b2e35ba0719f41819be4e8 | 2,900 | py | Python | HarmoAIServer/datastruc/config.py | Vector-7/HarmoAIComposorModule | 51ad553cf3f730e6038bf75d4f1ccf9a1ebd6264 | [
"Apache-2.0"
] | null | null | null | HarmoAIServer/datastruc/config.py | Vector-7/HarmoAIComposorModule | 51ad553cf3f730e6038bf75d4f1ccf9a1ebd6264 | [
"Apache-2.0"
] | null | null | null | HarmoAIServer/datastruc/config.py | Vector-7/HarmoAIComposorModule | 51ad553cf3f730e6038bf75d4f1ccf9a1ebd6264 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright SweetCase Project, Re_Coma(Ha Jeong Hyun). All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENS... | 34.52381 | 86 | 0.631379 | 368 | 2,900 | 4.891304 | 0.524457 | 0.15 | 0.026667 | 0.017778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003901 | 0.292759 | 2,900 | 83 | 87 | 34.939759 | 0.87372 | 0.348276 | 0 | 0 | 0 | 0 | 0.069834 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.025641 | false | 0 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9deba568ee203114ca954f438b322c866ab14f48 | 713 | py | Python | lambdata_Lopez_John/helper_functions.py | BobBriksz/lambdata-Lopez-John | c4613c11d6a2b0f64737ea034473c34f35ce1f60 | [
"MIT"
] | null | null | null | lambdata_Lopez_John/helper_functions.py | BobBriksz/lambdata-Lopez-John | c4613c11d6a2b0f64737ea034473c34f35ce1f60 | [
"MIT"
] | null | null | null | lambdata_Lopez_John/helper_functions.py | BobBriksz/lambdata-Lopez-John | c4613c11d6a2b0f64737ea034473c34f35ce1f60 | [
"MIT"
] | null | null | null | """This is a collection of helper functions"""
import pandas as pd
def null_count(df):
"""Checks a DataFrame for nulls and returns the number of missing values"""
return df.isnull().sum()
def list_2_series(list_2_series, df):
new_series = pd.Series(list_2_series)
df['New_Column'] = new_series
cla... | 27.423077 | 79 | 0.669004 | 107 | 713 | 4.308411 | 0.448598 | 0.043384 | 0.095445 | 0.069414 | 0.245119 | 0.182213 | 0 | 0 | 0 | 0 | 0 | 0.00726 | 0.227209 | 713 | 25 | 80 | 28.52 | 0.829401 | 0.361851 | 0 | 0 | 0 | 0 | 0.047393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9dec8bdd611592d4b6ed65297f847704bf02a076 | 1,231 | py | Python | Pi_digit_graph.py | zak13362/Backup_R12_old | f42dd8b5616502f1a5cf4491387de8205b92ca26 | [
"MIT"
] | null | null | null | Pi_digit_graph.py | zak13362/Backup_R12_old | f42dd8b5616502f1a5cf4491387de8205b92ca26 | [
"MIT"
] | null | null | null | Pi_digit_graph.py | zak13362/Backup_R12_old | f42dd8b5616502f1a5cf4491387de8205b92ca26 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Created by Zachariah Aslam
Copyright 2011 Infinitude Enterprises. All rights reserved.
"""
# Importing modules
import matplotlib.pyplot as plt
# Defining functions
def Handle(User_Input, b):
"""
This function Processes The User input
"""
if b == '' or b == '\n':
b ... | 24.137255 | 127 | 0.603574 | 169 | 1,231 | 4.313609 | 0.514793 | 0.061728 | 0.016461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.278635 | 1,231 | 51 | 128 | 24.137255 | 0.814189 | 0.046304 | 0 | 0.08 | 0 | 0 | 0.233122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.16 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9df2cfc42bbea6a6cd5f51127dbf07de824494f9 | 494 | py | Python | board/models.py | pycrawling/SimpleDjangoBBS | 055e3b4b57f5e344e76fcbb4db3aeb4ca70b9384 | [
"MIT"
] | null | null | null | board/models.py | pycrawling/SimpleDjangoBBS | 055e3b4b57f5e344e76fcbb4db3aeb4ca70b9384 | [
"MIT"
] | null | null | null | board/models.py | pycrawling/SimpleDjangoBBS | 055e3b4b57f5e344e76fcbb4db3aeb4ca70b9384 | [
"MIT"
] | null | null | null | # board/models.py
from django.contrib.auth.models import User
from django.db import models
class Article(models.Model):
title = models.CharField(max_length=120, null=False)
author = models.ForeignKey(User, on_delete=models.CASCADE)
content = models.TextField(null=False)
created_at = models.DateTimeFie... | 30.875 | 62 | 0.734818 | 67 | 494 | 5.253731 | 0.626866 | 0.056818 | 0.119318 | 0.142045 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007177 | 0.153846 | 494 | 15 | 63 | 32.933333 | 0.834928 | 0.072874 | 0 | 0 | 0 | 0 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0.1 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
9df7fe89ea3c59d0e2110cb552cb57838e1aca57 | 388 | py | Python | src/repeated/python/Utils.py | It-Life/Excel2Protobuf | 6546844ef9f64e0acb4a0ddbbf54ac9f03982fbb | [
"MIT"
] | 4 | 2019-03-27T06:25:58.000Z | 2020-11-27T07:13:17.000Z | src/repeated/python/Utils.py | It-Life/Excel2Protobuf | 6546844ef9f64e0acb4a0ddbbf54ac9f03982fbb | [
"MIT"
] | null | null | null | src/repeated/python/Utils.py | It-Life/Excel2Protobuf | 6546844ef9f64e0acb4a0ddbbf54ac9f03982fbb | [
"MIT"
] | 3 | 2019-06-05T22:25:45.000Z | 2021-11-06T04:36:31.000Z | import os
import shutil
def log(log_data):
print("\033[m" + log_data)
def logError(error_data):
print("\033[0;32;31m" + error_data)
def makedir(dir2make):
if not os.path.exists(dir2make):
os.makedirs(dir2make)
def rmdir(dir2remove):
if os.path.exists(dir2remove):
shutil.rmtree(di... | 15.52 | 39 | 0.664948 | 56 | 388 | 4.535714 | 0.517857 | 0.055118 | 0.094488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054662 | 0.198454 | 388 | 24 | 40 | 16.166667 | 0.762058 | 0 | 0 | 0 | 0 | 0 | 0.048969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.142857 | 0 | 0.5 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9df9c8b465c36b237bf18da396c10df8e1b6b4bb | 658 | py | Python | bin/fastaExtract.py | PapenfussLab/Mungo | 02c5b0e48ecd28596cb9481b282753859f47fed6 | [
"Artistic-2.0"
] | 1 | 2015-09-16T07:53:18.000Z | 2015-09-16T07:53:18.000Z | bin/fastaExtract.py | PapenfussLab/Mungo | 02c5b0e48ecd28596cb9481b282753859f47fed6 | [
"Artistic-2.0"
] | null | null | null | bin/fastaExtract.py | PapenfussLab/Mungo | 02c5b0e48ecd28596cb9481b282753859f47fed6 | [
"Artistic-2.0"
] | 3 | 2016-01-02T16:34:59.000Z | 2021-07-21T04:21:55.000Z | #!/usr/bin/env python
"""
fastaExtract.py <fasta file> <accession> <start> <end>
Extract sequence between given start & end coordinates from fasta file.
"""
import sys
from mungo.fasta import FastaFile, pretty
if '-h' in sys.argv:
sys.exit(__doc__)
iFilename = sys.argv[1]
accession = sys.argv[2]
try:
start... | 19.939394 | 71 | 0.607903 | 95 | 658 | 4.168421 | 0.473684 | 0.088384 | 0.050505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01417 | 0.24924 | 658 | 32 | 72 | 20.5625 | 0.787449 | 0.030395 | 0 | 0 | 0 | 0 | 0.021912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9dfee24ff838b75e1f69b60e5f13f624e5424c9e | 410 | py | Python | api/migrations/0006_auto_20181018_1602.py | unrealkaii/tweeto-django-api | 96c95a149c40123ef747c49d5dde1d31044fbb8c | [
"MIT"
] | null | null | null | api/migrations/0006_auto_20181018_1602.py | unrealkaii/tweeto-django-api | 96c95a149c40123ef747c49d5dde1d31044fbb8c | [
"MIT"
] | null | null | null | api/migrations/0006_auto_20181018_1602.py | unrealkaii/tweeto-django-api | 96c95a149c40123ef747c49d5dde1d31044fbb8c | [
"MIT"
] | null | null | null | # Generated by Django 2.1.2 on 2018-10-18 15:02
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api', '0005_likes'),
]
operations = [
migrations... | 20.5 | 66 | 0.626829 | 46 | 410 | 5.456522 | 0.73913 | 0.079681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063333 | 0.268293 | 410 | 19 | 67 | 21.578947 | 0.773333 | 0.109756 | 0 | 0 | 1 | 0 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3b036ecfb9defe42aac3f0f9c7a8484ffcad2e8e | 1,130 | py | Python | init_db_pass.py | rNintendoSwitch/MechaDocker | 35fef52b23b25498ab7912c9de7c97914f4a0ab5 | [
"MIT"
] | null | null | null | init_db_pass.py | rNintendoSwitch/MechaDocker | 35fef52b23b25498ab7912c9de7c97914f4a0ab5 | [
"MIT"
] | null | null | null | init_db_pass.py | rNintendoSwitch/MechaDocker | 35fef52b23b25498ab7912c9de7c97914f4a0ab5 | [
"MIT"
] | null | null | null | import re
import secrets
import subprocess
import sys
docker_volumes = subprocess.check_output(['docker', 'volume', 'ls'])
if 'mechadocker-database' in docker_volumes.decode("utf-8"):
print('The mechadocker-database volume already exists!')
print('The MONGO_PASSWORD value is only used on initialization of the... | 35.3125 | 96 | 0.664602 | 156 | 1,130 | 4.74359 | 0.442308 | 0.077027 | 0.048649 | 0.052703 | 0.162162 | 0.162162 | 0.105405 | 0.105405 | 0 | 0 | 0 | 0.00641 | 0.171681 | 1,130 | 31 | 97 | 36.451613 | 0.784188 | 0 | 0 | 0 | 0 | 0 | 0.421239 | 0.030089 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.208333 | 0.166667 | 0 | 0.166667 | 0.208333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3b045ce9b9c7fd420a88fc8048478a889a33ae57 | 7,390 | py | Python | tests/test_sapshopapi.py | novareto/sapshopapi | d3e1844f176dc57bca789c0792c95868155e5df7 | [
"MIT"
] | null | null | null | tests/test_sapshopapi.py | novareto/sapshopapi | d3e1844f176dc57bca789c0792c95868155e5df7 | [
"MIT"
] | null | null | null | tests/test_sapshopapi.py | novareto/sapshopapi | d3e1844f176dc57bca789c0792c95868155e5df7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_sapshopapi
----------------------------------
Tests for `sapshopapi` module.
"""
from sapshopapi import sapshopapi
from sapshopapi import interfaces
from zope import component, interface
@interface.implementer(interfaces.ISAPShopConnection)
class Connection(sa... | 34.372093 | 208 | 0.651691 | 862 | 7,390 | 5.351508 | 0.187935 | 0.056146 | 0.07804 | 0.033817 | 0.596792 | 0.4522 | 0.358118 | 0.358118 | 0.329937 | 0.261652 | 0 | 0.042737 | 0.230582 | 7,390 | 214 | 209 | 34.53271 | 0.768554 | 0.028146 | 0 | 0.497006 | 0 | 0.011976 | 0.291579 | 0.146209 | 0 | 0 | 0 | 0 | 0.143713 | 1 | 0.101796 | false | 0.08982 | 0.017964 | 0.011976 | 0.173653 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d17a42b8006bf7834717f00af4e5491d846e9109 | 694 | py | Python | baseDeConversao.py | wcalazans81/Mundo_02_Python | 00a5c905efdb4ace7ee4a03301bd9bb9ad22dce7 | [
"MIT"
] | null | null | null | baseDeConversao.py | wcalazans81/Mundo_02_Python | 00a5c905efdb4ace7ee4a03301bd9bb9ad22dce7 | [
"MIT"
] | null | null | null | baseDeConversao.py | wcalazans81/Mundo_02_Python | 00a5c905efdb4ace7ee4a03301bd9bb9ad22dce7 | [
"MIT"
] | null | null | null | print('\033[34m^=\033[m' * 27)
print('Conversor de decimal para binário, octol e hexadecimal')
print('\033[34m=^\033[m' * 27)
print("""Opção [1] Binário
Opção [2] Octal
Opção [3] Hexadecimal""")
print('\033[34m^=\033[m' * 27)
num = int(input('Digite o valor que deseja converter: '))
op = int(input('Digite a opção de co... | 38.555556 | 83 | 0.645533 | 110 | 694 | 4.072727 | 0.4 | 0.071429 | 0.073661 | 0.09375 | 0.359375 | 0.185268 | 0.185268 | 0 | 0 | 0 | 0 | 0.079932 | 0.152738 | 694 | 17 | 84 | 40.823529 | 0.681973 | 0 | 0 | 0.117647 | 0 | 0 | 0.582133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.529412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
d17b16ea3374262abfd64642300bad7f31213ffb | 6,254 | py | Python | src/gif_convert_service/GifConverter.py | michaellas/streaming-vid-to-gifs | ee5df22c820d4d631f0437c98a53989ecb76dca3 | [
"MIT"
] | null | null | null | src/gif_convert_service/GifConverter.py | michaellas/streaming-vid-to-gifs | ee5df22c820d4d631f0437c98a53989ecb76dca3 | [
"MIT"
] | 1 | 2015-04-07T12:24:26.000Z | 2015-04-07T12:28:30.000Z | src/gif_convert_service/GifConverter.py | michaellas/streaming-vid-to-gifs | ee5df22c820d4d631f0437c98a53989ecb76dca3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
ffmpeg docs:
https://ffmpeg.org/ffmpeg.html
https://ffmpeg.org/ffmpeg-filters.html
common options:
-y : yes to all
-i filename (input)
-r : framerate?
-f fmt (input/output)
-c[:stream_specifier] codec (input/output,per-stream) / -codec[:stream_specifier] code... | 34.552486 | 124 | 0.667573 | 948 | 6,254 | 4.21519 | 0.293249 | 0.032533 | 0.013764 | 0.015015 | 0.197447 | 0.149149 | 0.106607 | 0.057558 | 0.057558 | 0.040541 | 0 | 0.019507 | 0.188519 | 6,254 | 180 | 125 | 34.744444 | 0.767882 | 0.167573 | 0 | 0.105263 | 0 | 0.008772 | 0.116837 | 0.04132 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008772 | 0.04386 | null | null | 0.070175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d17de1ba88a6b09a0b519359a89a9568345511a5 | 174 | py | Python | chats/urls.py | achuthvarghese/django_realtime_chat | 922bd1971c7c0102f007581967e6aecf40171e48 | [
"MIT"
] | null | null | null | chats/urls.py | achuthvarghese/django_realtime_chat | 922bd1971c7c0102f007581967e6aecf40171e48 | [
"MIT"
] | null | null | null | chats/urls.py | achuthvarghese/django_realtime_chat | 922bd1971c7c0102f007581967e6aecf40171e48 | [
"MIT"
] | 1 | 2021-10-02T06:52:09.000Z | 2021-10-02T06:52:09.000Z | from django.urls import path
from . import views
app_name = "chats"
urlpatterns = [
path("", views.index, name="index"),
path("chat/", views.chat, name="chat"),
]
| 15.818182 | 43 | 0.637931 | 23 | 174 | 4.782609 | 0.521739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183908 | 174 | 10 | 44 | 17.4 | 0.774648 | 0 | 0 | 0 | 0 | 0 | 0.109195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d184d09dd12c0b24fb19c2521464755126577bd2 | 1,855 | py | Python | scripts/quest/q58902s.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 54 | 2019-04-16T23:24:48.000Z | 2021-12-18T11:41:50.000Z | scripts/quest/q58902s.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 3 | 2019-05-19T15:19:41.000Z | 2020-04-27T16:29:16.000Z | scripts/quest/q58902s.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 49 | 2020-11-25T23:29:16.000Z | 2022-03-26T16:20:24.000Z | # Regards, Takeda Shingen (Sengoku Era) Questline | Near Momiji Hills 1 (811000001)
# Author: Tiger
TAKEDA = 9000427
if "1" in sm.getQRValue(58901): # Regards, Takeda Shingen
sm.setSpeakerID(TAKEDA)
sm.flipDialogue()
sm.sendNext("Good, you're here! I was about to pick another fight")
sm.flipDialogue... | 40.326087 | 201 | 0.695957 | 287 | 1,855 | 4.498258 | 0.533101 | 0.097599 | 0.111541 | 0.106894 | 0.128582 | 0.128582 | 0.128582 | 0.128582 | 0.128582 | 0.128582 | 0 | 0.029392 | 0.211321 | 1,855 | 45 | 202 | 41.222222 | 0.853042 | 0.102965 | 0 | 0.392857 | 0 | 0.214286 | 0.57755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d186912ca8801f25762b85721a33b93b370eaeca | 755 | py | Python | stlpy/planar_extract.py | thatch/tim-open-things | 733505b7b6a324e65fc8ffbd328b7e0c63422fd9 | [
"BSD-2-Clause"
] | 1 | 2015-12-26T03:37:59.000Z | 2015-12-26T03:37:59.000Z | stlpy/planar_extract.py | thatch/tim-open-things | 733505b7b6a324e65fc8ffbd328b7e0c63422fd9 | [
"BSD-2-Clause"
] | null | null | null | stlpy/planar_extract.py | thatch/tim-open-things | 733505b7b6a324e65fc8ffbd328b7e0c63422fd9 | [
"BSD-2-Clause"
] | null | null | null | import sys
import os
import stl
DUMP = 1
HISTOGRAM = 2
def main(argv):
# TODO args, like show-histogram
mode = DUMP
if argv[0] == '--show-histogram':
argv.pop(0)
mode = HISTOGRAM
filename = argv[0]
mesh = stl.Mesh(filename)
def extract_planes(mesh):
# TODO handle multiple 2d ... | 18.875 | 69 | 0.535099 | 108 | 755 | 3.648148 | 0.546296 | 0.030457 | 0.045685 | 0.050761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046371 | 0.343046 | 755 | 39 | 70 | 19.358974 | 0.747984 | 0.206623 | 0 | 0 | 0 | 0 | 0.040404 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d190fad694251245698f218c8993365e68b026c0 | 353 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/certificates/migrations/0013_remove_certificategenerationcoursesetting_enabled.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/certificates/migrations/0013_remove_certificategenerationcoursesetting_enabled.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/certificates/migrations/0013_remove_certificategenerationcoursesetting_enabled.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('certificates', '0012_certificategenerationcoursesetting_include_hours_of_effort'),
]
operations = [
migrations.RemoveField(
model_name='certificategenerationcoursesetting',
... | 22.0625 | 92 | 0.66289 | 25 | 353 | 9.12 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015094 | 0.249292 | 353 | 15 | 93 | 23.533333 | 0.845283 | 0 | 0 | 0 | 0 | 0 | 0.328612 | 0.274788 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d19138dd7f325134d554556719f9c3a62ea7b54d | 1,374 | py | Python | oob/collab_handler.py | Gh0st0ne/weaponized-0604 | bd37840e73a7e883f60bc44345844ad4d52623ad | [
"MIT"
] | 1 | 2021-09-07T17:54:51.000Z | 2021-09-07T17:54:51.000Z | oob/collab_handler.py | Gh0st0ne/weaponized-0604 | bd37840e73a7e883f60bc44345844ad4d52623ad | [
"MIT"
] | null | null | null | oob/collab_handler.py | Gh0st0ne/weaponized-0604 | bd37840e73a7e883f60bc44345844ad4d52623ad | [
"MIT"
] | null | null | null |
import time
import json
import requests
current_collaborators = []
def generate():
res = requests.get('http://127.0.0.1:8000/generatePayload')
assert res.status_code == 200, "generate Error"
payload_full = res.text
return payload_full
# expect jsonlines with DNS records
def collect(payload):
res... | 28.040816 | 86 | 0.620087 | 169 | 1,374 | 4.952663 | 0.491124 | 0.028674 | 0.033453 | 0.043011 | 0.119474 | 0.066906 | 0.066906 | 0.066906 | 0.066906 | 0 | 0 | 0.031465 | 0.259825 | 1,374 | 48 | 87 | 28.625 | 0.791544 | 0.091703 | 0 | 0.054054 | 1 | 0 | 0.095085 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 1 | 0.081081 | false | 0 | 0.135135 | 0 | 0.27027 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d197bcf1a54217d4a9ec9f2bb1843a99c314aacf | 2,134 | py | Python | src/marketplace/migrations/0028_auto_20180713_1529.py | abell5/marketplace | 474241801416e4699970f5684176e7351504b9c0 | [
"MIT"
] | 5 | 2018-08-28T19:31:51.000Z | 2021-04-15T22:14:34.000Z | src/marketplace/migrations/0028_auto_20180713_1529.py | abell5/marketplace | 474241801416e4699970f5684176e7351504b9c0 | [
"MIT"
] | 49 | 2018-07-26T01:03:23.000Z | 2022-02-10T10:46:27.000Z | src/marketplace/migrations/0028_auto_20180713_1529.py | abell5/marketplace | 474241801416e4699970f5684176e7351504b9c0 | [
"MIT"
] | 2 | 2020-08-04T11:01:59.000Z | 2020-08-13T19:04:16.000Z | # Generated by Django 2.0.6 on 2018-07-13 20:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('marketplace', '0027_projectscope'),
]
operations = [
migrations.AddField(
model_name='projectscope',
name='available... | 54.717949 | 294 | 0.660262 | 247 | 2,134 | 5.607287 | 0.481781 | 0.032491 | 0.066426 | 0.077978 | 0.371841 | 0.371841 | 0.309747 | 0.158123 | 0.132852 | 0 | 0 | 0.022673 | 0.21462 | 2,134 | 38 | 295 | 56.157895 | 0.803699 | 0.021087 | 0 | 0.40625 | 1 | 0.125 | 0.424533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d19eb3241c0f4ef99d888f944f1eb00b4bb6d8d9 | 20,529 | py | Python | test/core_tests/test_binaryio.py | joshuawall/amuse | c2034074ee76c08057c4faa96c32044ab40952e9 | [
"Apache-2.0"
] | 1 | 2019-12-28T22:47:51.000Z | 2019-12-28T22:47:51.000Z | test/core_tests/test_binaryio.py | joshuawall/amuse | c2034074ee76c08057c4faa96c32044ab40952e9 | [
"Apache-2.0"
] | null | null | null | test/core_tests/test_binaryio.py | joshuawall/amuse | c2034074ee76c08057c4faa96c32044ab40952e9 | [
"Apache-2.0"
] | 2 | 2021-11-19T04:41:37.000Z | 2021-11-20T02:11:17.000Z | from amuse.test import amusetest
from io import BytesIO
from collections import namedtuple
import os.path
import math
from amuse import io
from amuse.io import gadget
from amuse.io import nemobin
from amuse.units import nbody_system
from amuse.datamodel import Particles
class GadgetFileFormatProcessorTests(amusetest.... | 46.55102 | 194 | 0.643724 | 2,578 | 20,529 | 4.994957 | 0.118309 | 0.096451 | 0.129999 | 0.15749 | 0.726567 | 0.677254 | 0.618467 | 0.595558 | 0.576998 | 0.569232 | 0 | 0.099252 | 0.22456 | 20,529 | 440 | 195 | 46.656818 | 0.709655 | 0.000926 | 0 | 0.547425 | 0 | 0.04607 | 0.114053 | 0.054986 | 0 | 0 | 0 | 0 | 0.395664 | 0 | null | null | 0 | 0.0271 | null | null | 0.02168 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d1afb98e1acaa121194d3802b010f2dbdeaf6c29 | 505 | py | Python | edgar3/edgar.py | kfarr3/edgar3 | 0207a2946550b55ccf280ab14cb52e38a315d107 | [
"MIT"
] | 1 | 2019-04-17T19:31:08.000Z | 2019-04-17T19:31:08.000Z | edgar3/edgar.py | kfarr3/edgar3 | 0207a2946550b55ccf280ab14cb52e38a315d107 | [
"MIT"
] | null | null | null | edgar3/edgar.py | kfarr3/edgar3 | 0207a2946550b55ccf280ab14cb52e38a315d107 | [
"MIT"
] | null | null | null | import datetime
import pandas as pd
import numpy as np
from edgar3 import edgar_index
def get_13f_listings(date: datetime.datetime, populate: bool) -> pd.DataFrame:
ed_i = edgar_index.edgar_index()
df = ed_i.get_full_listing_as_pd(date)
df = df[df["Form Type"].isin(["13F-HR", "13F-HR/A", "13F-NT", "13F-NT... | 31.5625 | 102 | 0.661386 | 84 | 505 | 3.809524 | 0.511905 | 0.09375 | 0.0375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026895 | 0.190099 | 505 | 15 | 103 | 33.666667 | 0.755501 | 0 | 0 | 0 | 0 | 0 | 0.106931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d1b359d0c896d3ffcb2ebec1e01b4bc10cdab233 | 701 | py | Python | app.py | kevintonb/ccxt-flask-ticker | d0680288ae1923cdc2c4d85e687aab2dc8051d68 | [
"MIT"
] | 2 | 2019-02-13T19:42:47.000Z | 2020-02-13T16:43:15.000Z | app.py | kevintonb/ccxt-flask-ticker | d0680288ae1923cdc2c4d85e687aab2dc8051d68 | [
"MIT"
] | null | null | null | app.py | kevintonb/ccxt-flask-ticker | d0680288ae1923cdc2c4d85e687aab2dc8051d68 | [
"MIT"
] | 3 | 2019-02-13T19:42:48.000Z | 2021-07-19T07:19:32.000Z | # -*- coding: utf-8 -*-
import ccxt # noqa: E402
from flask import *
import json
app = Flask(__name__)
exchanges = {} # a placeholder for your instances
for id in ccxt.exchanges:
exchange = getattr(ccxt, id)
exchanges[id] = exchange()
@app.route('/')
def dropdown():
return render_template('index.html',ba... | 25.035714 | 73 | 0.687589 | 88 | 701 | 5.284091 | 0.534091 | 0.051613 | 0.090323 | 0.12043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016529 | 0.136947 | 701 | 28 | 74 | 25.035714 | 0.752066 | 0.256776 | 0 | 0 | 0 | 0 | 0.118677 | 0.07393 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0.125 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
d1b79d94c45c86bb1dc57afc3519979ec819b0ff | 8,460 | py | Python | example_launch.py | JustinSGray/OpenMDAO-CADRE | d8378a8a571179990531d8a409efe727cbdf2bb7 | [
"Apache-2.0"
] | 1 | 2021-07-11T19:15:22.000Z | 2021-07-11T19:15:22.000Z | example_launch.py | JustinSGray/OpenMDAO-CADRE | d8378a8a571179990531d8a409efe727cbdf2bb7 | [
"Apache-2.0"
] | null | null | null | example_launch.py | JustinSGray/OpenMDAO-CADRE | d8378a8a571179990531d8a409efe727cbdf2bb7 | [
"Apache-2.0"
] | 1 | 2015-11-19T18:18:01.000Z | 2015-11-19T18:18:01.000Z | import numpy as np
from openmdao.main.api import Assembly, Component
from openmdao.lib.drivers.api import SLSQPdriver
from openmdao.main.datatypes.api import Float, Array, Int
from CADRE import Comm_EarthsSpin, Comm_EarthsSpinMtx
from CADRE import Orbit_Initial, Orbit_Dynamics
class Uniformity(Component):
"""
... | 38.807339 | 235 | 0.502482 | 1,332 | 8,460 | 3.072823 | 0.145646 | 0.021989 | 0.018324 | 0.035915 | 0.294894 | 0.218422 | 0.110432 | 0.040557 | 0.030784 | 0.014659 | 0 | 0.045744 | 0.312648 | 8,460 | 217 | 236 | 38.986175 | 0.658126 | 0.004255 | 0 | 0.09396 | 0 | 0 | 0.10493 | 0.023619 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040268 | null | null | 0.026846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d1c17f235dc45794aa32ed8c1f42b1ee084ca51c | 339 | py | Python | test/market_fail_error/test_nose_error.py | StefanRatzke/nose-market-features | e63b2367b77e860c919d3a33612a3ba6ff632f5f | [
"Apache-2.0"
] | 5 | 2015-01-12T10:04:15.000Z | 2018-12-20T13:49:47.000Z | test/market_fail_error/test_nose_error.py | StefanRatzke/nose-market-features | e63b2367b77e860c919d3a33612a3ba6ff632f5f | [
"Apache-2.0"
] | 16 | 2015-10-06T12:35:20.000Z | 2019-04-01T15:05:17.000Z | test/market_fail_error/test_nose_error.py | StefanRatzke/nose-market-features | e63b2367b77e860c919d3a33612a3ba6ff632f5f | [
"Apache-2.0"
] | 2 | 2015-03-02T09:49:11.000Z | 2019-03-26T15:27:41.000Z | import unittest2
from nose.plugins.attrib import attr
from nose.tools import assert_equals
@attr('test_nose_plugin')
class TestNosePlugin(unittest2.TestCase):
@classmethod
def setUpClass(cls):
raise Exception("error")
def test_one(self):
"""first test, simulation passing test"""
a... | 22.6 | 49 | 0.707965 | 42 | 339 | 5.595238 | 0.666667 | 0.068085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014652 | 0.19469 | 339 | 14 | 50 | 24.214286 | 0.846154 | 0.103245 | 0 | 0 | 0 | 0 | 0.07047 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d1c1d9e946e539e33f97362c88a10dd115f36533 | 2,150 | py | Python | bip39validator/internal/data_structs.py | ZenulAbidin/bip39validator | b78f2db6f46b56b408eef3a51e921e96247a9b46 | [
"MIT"
] | 3 | 2021-02-11T20:37:56.000Z | 2021-06-11T03:29:15.000Z | bip39validator/internal/data_structs.py | ZenulAbidin/bip39validator | b78f2db6f46b56b408eef3a51e921e96247a9b46 | [
"MIT"
] | 4 | 2020-10-04T23:11:08.000Z | 2020-12-23T00:32:52.000Z | bip39validator/internal/data_structs.py | ZenulAbidin/bip39validator | b78f2db6f46b56b408eef3a51e921e96247a9b46 | [
"MIT"
] | null | null | null | # BIP39 Wordlist Validator - A tool to validate BIP39 wordlists in Latin
# languages.
# bip39validator/data_structs.py: Program data structures.
# Copyright 2020 Ali Sherief
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Softw... | 40.566038 | 80 | 0.747442 | 316 | 2,150 | 4.990506 | 0.481013 | 0.055802 | 0.020926 | 0.030438 | 0.065948 | 0.03551 | 0 | 0 | 0 | 0 | 0 | 0.006838 | 0.183721 | 2,150 | 52 | 81 | 41.346154 | 0.891738 | 0.781395 | 0 | 0 | 0 | 0 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d1cd852a030e38440bf76200c590eab5a5aae8c0 | 712 | py | Python | exerc_20.py | marcelocmedeiros/uri_lista1 | 0e9253ea5fd1e98fcd8c05bae0b71ae34d0e95fe | [
"MIT"
] | null | null | null | exerc_20.py | marcelocmedeiros/uri_lista1 | 0e9253ea5fd1e98fcd8c05bae0b71ae34d0e95fe | [
"MIT"
] | null | null | null | exerc_20.py | marcelocmedeiros/uri_lista1 | 0e9253ea5fd1e98fcd8c05bae0b71ae34d0e95fe | [
"MIT"
] | null | null | null | # Marcelo Campos de Medeiros
# ADS UNIFIP 2020.1
# Patos-PB 03/04/2020
'''
Leia um valor inteiro correspondente à idade de uma pessoa em dias e informe-a em anos, meses e dias
Obs.: apenas para facilitar o cálculo, considere todo ano com 365 dias e todo mês com 30 dias.
Nos casos de teste nunca haverá uma situação qu... | 22.967742 | 102 | 0.712079 | 127 | 712 | 3.992126 | 0.669291 | 0.027613 | 0.055227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067826 | 0.192416 | 712 | 30 | 103 | 23.733333 | 0.813913 | 0.775281 | 0 | 0 | 0 | 0 | 0.187919 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d1d0737b3b61415683902511f68d8c10caa7a6de | 413 | py | Python | boardfarm/lib/hooks/__init__.py | nickberry17/boardfarm | 80f24fc97eff9a987250a6334b76eff08e001189 | [
"BSD-3-Clause-Clear"
] | 17 | 2018-04-19T08:35:47.000Z | 2021-11-01T01:38:33.000Z | boardfarm/lib/hooks/__init__.py | nickberry17/boardfarm | 80f24fc97eff9a987250a6334b76eff08e001189 | [
"BSD-3-Clause-Clear"
] | 190 | 2018-04-19T07:00:18.000Z | 2022-02-11T01:42:51.000Z | boardfarm/lib/hooks/__init__.py | nickberry17/boardfarm | 80f24fc97eff9a987250a6334b76eff08e001189 | [
"BSD-3-Clause-Clear"
] | 30 | 2018-04-12T01:49:21.000Z | 2022-02-11T14:53:19.000Z | """Provide Hook implementations for boardfarm plugins.
Hooks may be implemented per functionality, for example
- contingency checks
- environment checks
- service configurations
"""
import pluggy
# hook implementation for contingency checks
hookimpl = pluggy.HookimplMarker("boardfarm")
# hook implementation for ser... | 25.8125 | 65 | 0.815981 | 44 | 413 | 7.636364 | 0.590909 | 0.10119 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123487 | 413 | 15 | 66 | 27.533333 | 0.928177 | 0.68523 | 0 | 0 | 0 | 0 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d1d60e07704824a6b9a9d2370412d9cfe442578a | 380 | py | Python | ratings/migrations/0005_remove_rating_average.py | TracyOgutu/ProjectRating | 5dd0461b7527f6235f4581c4130ccabcfb101727 | [
"Unlicense"
] | null | null | null | ratings/migrations/0005_remove_rating_average.py | TracyOgutu/ProjectRating | 5dd0461b7527f6235f4581c4130ccabcfb101727 | [
"Unlicense"
] | null | null | null | ratings/migrations/0005_remove_rating_average.py | TracyOgutu/ProjectRating | 5dd0461b7527f6235f4581c4130ccabcfb101727 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2020-01-13 10:29
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ratings', '0004_rating'),
]
operations = [
migrations.RemoveField(
model_... | 19 | 46 | 0.602632 | 40 | 380 | 5.55 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072993 | 0.278947 | 380 | 19 | 47 | 20 | 0.737226 | 0.173684 | 0 | 0 | 1 | 0 | 0.099678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d1d656fab01017856dafebaaea49f0f665d67233 | 379 | py | Python | tests/test_sources.py | samtx/pass-predictor | 6577f75cd7d64bd3c12a9512880d4b29c2682b4c | [
"MIT"
] | null | null | null | tests/test_sources.py | samtx/pass-predictor | 6577f75cd7d64bd3c12a9512880d4b29c2682b4c | [
"MIT"
] | null | null | null | tests/test_sources.py | samtx/pass-predictor | 6577f75cd7d64bd3c12a9512880d4b29c2682b4c | [
"MIT"
] | null | null | null |
import pytest
from passpredict import sources
from passpredict import TLE
class TestCelestrakSource:
def test_celestrak_source_get_tle(self):
source = sources.CelestrakTLESource()
tle = source.get_tle(25544)
assert tle.satid == 25544
assert len(tle.lines) == 2
assert tle... | 22.294118 | 45 | 0.675462 | 45 | 379 | 5.577778 | 0.555556 | 0.119522 | 0.167331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.245383 | 379 | 16 | 46 | 23.6875 | 0.839161 | 0 | 0 | 0 | 0 | 0 | 0.029101 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.090909 | false | 0.181818 | 0.272727 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d1dc93b7606c39a9153ed7066a2e5f935ca6cbb0 | 426 | py | Python | strings/palindrome.py | kandarpck/leetcode | d2ffcccede5d1543aea48f18a39cdbd3d83e3ed8 | [
"MIT"
] | null | null | null | strings/palindrome.py | kandarpck/leetcode | d2ffcccede5d1543aea48f18a39cdbd3d83e3ed8 | [
"MIT"
] | null | null | null | strings/palindrome.py | kandarpck/leetcode | d2ffcccede5d1543aea48f18a39cdbd3d83e3ed8 | [
"MIT"
] | null | null | null | import re
class Solution:
def isPalindrome(self, s):
"""
:type s: str
:rtype: bool
"""
if not s:
return True
else:
s = re.sub('[^A-Za-z0-9]+', '', s)
return s.lower() == s.lower()[::-1]
if __name__ == '__main__':
sol = Solut... | 18.521739 | 47 | 0.467136 | 50 | 426 | 3.82 | 0.64 | 0.073298 | 0.209424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.366197 | 426 | 22 | 48 | 19.363636 | 0.688889 | 0.058685 | 0 | 0 | 0 | 0 | 0.084011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.357143 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d1e6a343f86c8f9d6e14be98c9e59e2283dac84c | 270 | py | Python | Python/PythonExercicios/ex012.py | isabellathome/College-Activities | 12fc73f8416f5a9572d0a8c59eb7403d9c88ed0f | [
"MIT"
] | null | null | null | Python/PythonExercicios/ex012.py | isabellathome/College-Activities | 12fc73f8416f5a9572d0a8c59eb7403d9c88ed0f | [
"MIT"
] | null | null | null | Python/PythonExercicios/ex012.py | isabellathome/College-Activities | 12fc73f8416f5a9572d0a8c59eb7403d9c88ed0f | [
"MIT"
] | null | null | null | valor = float(input('Qual é o valor do produto? R$'))
# desconto = valor * 0.05 Pode fazer desses dois jeitos
# preco = valor - desconto
novo = valor - (valor * 5 / 100)
print("O produto que custavo R${:.2f}, na promoção de 5% vai custar R${:.2f}".format(valor, novo))
| 45 | 98 | 0.662963 | 45 | 270 | 3.977778 | 0.688889 | 0.03352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045249 | 0.181481 | 270 | 5 | 99 | 54 | 0.764706 | 0.292593 | 0 | 0 | 0 | 0 | 0.521277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d1e96d1876bfd98eb33fde1f66fff1168d27d744 | 514 | py | Python | fhir_post_bundle.py | NimbusInformatics/bdcat-fhir-azure-prototype | c35184d037423c7bf4e7ccb7c9d2a91a1fc161ca | [
"Apache-2.0"
] | null | null | null | fhir_post_bundle.py | NimbusInformatics/bdcat-fhir-azure-prototype | c35184d037423c7bf4e7ccb7c9d2a91a1fc161ca | [
"Apache-2.0"
] | null | null | null | fhir_post_bundle.py | NimbusInformatics/bdcat-fhir-azure-prototype | c35184d037423c7bf4e7ccb7c9d2a91a1fc161ca | [
"Apache-2.0"
] | 1 | 2020-10-17T20:19:57.000Z | 2020-10-17T20:19:57.000Z | import requests
import sys
import json
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
fhir_server_uri = sys.argv[1]
token = sys.argv[2]
json_file_path = sys.argv[3]
headers = {'Authorization' : "Bearer " + token, 'Accept' : 'application/json', 'Content-Type' : 'application/jso... | 25.7 | 115 | 0.754864 | 73 | 514 | 5.136986 | 0.506849 | 0.085333 | 0.069333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013216 | 0.116732 | 514 | 19 | 116 | 27.052632 | 0.812775 | 0 | 0 | 0 | 0 | 0 | 0.136187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d1eeffed1169aa6fccf289b6c7473f506d563657 | 717 | py | Python | object_detection/image_shrinker.py | norinTW/custom-object-detection | d10e9aaa08d3048ad1fee84cbc2c7477b8919a38 | [
"MIT"
] | null | null | null | object_detection/image_shrinker.py | norinTW/custom-object-detection | d10e9aaa08d3048ad1fee84cbc2c7477b8919a38 | [
"MIT"
] | null | null | null | object_detection/image_shrinker.py | norinTW/custom-object-detection | d10e9aaa08d3048ad1fee84cbc2c7477b8919a38 | [
"MIT"
] | null | null | null | import numpy as np
import os
import six.moves.urllib as urllib
import sys
import tarfile
import zipfile
import json
import time
import glob
import cv2 as cv
from io import StringIO
from multiprocessing.dummy import Pool as ThreadPool
def shrink_image(image_path):
image = cv.imread(image_path)
image_small=... | 20.485714 | 109 | 0.74477 | 116 | 717 | 4.37069 | 0.413793 | 0.088757 | 0.08284 | 0.094675 | 0.151874 | 0.114398 | 0.114398 | 0.114398 | 0 | 0 | 0 | 0.014901 | 0.157601 | 717 | 34 | 110 | 21.088235 | 0.824503 | 0.149233 | 0 | 0 | 0 | 0 | 0.032895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.6 | 0 | 0.65 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d1f035a3eeffd1f66d96bb1dc4a4e8d630f9d157 | 1,126 | py | Python | code_30/dict_phone/phoneBook.py | asraful009/hackerrank | 10e6c4fd1720ebbed484826823f0dadd9afdc179 | [
"MIT"
] | null | null | null | code_30/dict_phone/phoneBook.py | asraful009/hackerrank | 10e6c4fd1720ebbed484826823f0dadd9afdc179 | [
"MIT"
] | null | null | null | code_30/dict_phone/phoneBook.py | asraful009/hackerrank | 10e6c4fd1720ebbed484826823f0dadd9afdc179 | [
"MIT"
] | null | null | null | """
#
n = int(input())
dic = {}
i= 0
while i<n:
s = input().split(" ")
dic[s[0]] = s[1]
i +=1
# print(dic)
i = 0
while i < n:
try:
s = input()
try:
print("{}={}".format(s, dic[s]))
except :
print("Not found")
except EOFError:
break
i += 1... | 16.085714 | 69 | 0.39698 | 146 | 1,126 | 3.061644 | 0.30137 | 0.017897 | 0.06264 | 0.071588 | 0.378076 | 0.297539 | 0.270694 | 0.270694 | 0.085011 | 0 | 0 | 0.021705 | 0.427176 | 1,126 | 69 | 70 | 16.318841 | 0.671318 | 0.427176 | 0 | 0.419355 | 0 | 0 | 0.023847 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0 | false | 0.032258 | 0.032258 | 0 | 0.032258 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.