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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b675c834f4af3a0b82b1bf6826fca2734b7ad156 | 652 | py | Python | app/test.py | erics1996/D5-Video | cb07e211c821e805296f24d28c80ac6fb99bfd5d | [
"Apache-2.0"
] | 1 | 2020-09-26T14:03:48.000Z | 2020-09-26T14:03:48.000Z | app/test.py | erics1996/d5_video | cb07e211c821e805296f24d28c80ac6fb99bfd5d | [
"Apache-2.0"
] | null | null | null | app/test.py | erics1996/d5_video | cb07e211c821e805296f24d28c80ac6fb99bfd5d | [
"Apache-2.0"
] | null | null | null | import redis
# 测试连接redis
"""
if __name__ == '__main__':
conn = redis.Redis(host='127.0.0.1', port=6379)
if conn:
print('ok')
else:
print('error')
"""
# 测试session是否保存在redis中
"""
if __name__ == '__main__':
conn = redis.Redis(host='127.0.0.1', port=6379, password='foobared')
print(conn... | 27.166667 | 163 | 0.736196 | 55 | 652 | 8.418182 | 0.581818 | 0.025918 | 0.043197 | 0.060475 | 0.181425 | 0.181425 | 0.181425 | 0.181425 | 0.181425 | 0.181425 | 0 | 0.079225 | 0.128834 | 652 | 23 | 164 | 28.347826 | 0.735915 | 0.046012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b677bba2bd9632d1c8e6d24dee8f3549fac2379b | 14,928 | py | Python | wrapper/utils.py | DaWeSearch/backend | 809e575ed730fce55d0e89a2fbc2031ba116f5e0 | [
"MIT"
] | 1 | 2021-02-15T01:05:22.000Z | 2021-02-15T01:05:22.000Z | wrapper/utils.py | DaWeSearch/backend | 809e575ed730fce55d0e89a2fbc2031ba116f5e0 | [
"MIT"
] | null | null | null | wrapper/utils.py | DaWeSearch/backend | 809e575ed730fce55d0e89a2fbc2031ba116f5e0 | [
"MIT"
] | null | null | null | """Helper functions useful for all wrapper classes."""
import re
from typing import Callable, Optional, Union
from urllib.parse import quote_plus
from requests import exceptions, Response
from .output_format import OUTPUT_FORMAT
def get(nest: Union[dict, list, str], *args, default=None):
"""Get a value in a nes... | 37.507538 | 97 | 0.579448 | 1,830 | 14,928 | 4.669945 | 0.319672 | 0.012637 | 0.007021 | 0.009829 | 0.100281 | 0.068804 | 0.063187 | 0.04938 | 0.04938 | 0.026445 | 0 | 0.003778 | 0.273044 | 14,928 | 398 | 98 | 37.507538 | 0.783727 | 0.351755 | 0 | 0.097436 | 0 | 0 | 0.234145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05641 | false | 0 | 0.025641 | 0 | 0.169231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b678945fdf026302149df7f84d03e9bf19062c3e | 8,982 | py | Python | luciferml/supervised/utils/regression_params.py | rahuljaguste/LuciferML | 8ee4449f08bd07da8736be285d8dd0fd99398c28 | [
"MIT"
] | null | null | null | luciferml/supervised/utils/regression_params.py | rahuljaguste/LuciferML | 8ee4449f08bd07da8736be285d8dd0fd99398c28 | [
"MIT"
] | null | null | null | luciferml/supervised/utils/regression_params.py | rahuljaguste/LuciferML | 8ee4449f08bd07da8736be285d8dd0fd99398c28 | [
"MIT"
] | null | null | null | import numpy as np
parameters_svr_1 = [
{'kernel': ['rbf'], 'gamma': [0.1, 0.5, 0.9, 1],
'C': np.logspace(-4, 4, 5)},
]
parameters_svr_2 = [
{'kernel': ['rbf'], 'gamma': [1e-4, 0.1, 0.3,
0.5, 0.7, 0.9, 1], 'C': np.logspace(-4, 4, 10)},
{'kernel': ['linear'], 'gamm... | 29.257329 | 98 | 0.480517 | 1,502 | 8,982 | 2.741678 | 0.096538 | 0.016999 | 0.021127 | 0.023069 | 0.790432 | 0.686255 | 0.650559 | 0.570908 | 0.526226 | 0.495872 | 0 | 0.226853 | 0.265308 | 8,982 | 306 | 99 | 29.352941 | 0.397181 | 0 | 0 | 0.510823 | 0 | 0 | 0.233578 | 0.003006 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004329 | 0 | 0.004329 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
b678cfb0be769b12f1acf94c09d18da017d53bfe | 757 | py | Python | ex042.py | ezequielwish/Python3 | a4489d49e6919649437cb9e682614240701e2b68 | [
"MIT"
] | 1 | 2022-01-24T02:01:32.000Z | 2022-01-24T02:01:32.000Z | ex042.py | ezequielwish/Python3 | a4489d49e6919649437cb9e682614240701e2b68 | [
"MIT"
] | null | null | null | ex042.py | ezequielwish/Python3 | a4489d49e6919649437cb9e682614240701e2b68 | [
"MIT"
] | null | null | null | # Refaça o DESAFIO 35 dos triângulos, acrescentando o recurso de mostrar que tipo de triângulo será formado:
#
# – EQUILÁTERO: todos os lados iguais
#
# – ISÓSCELES: dois lados iguais, um diferente
#
# – ESCALENO: todos os lados diferentes
side1 = int(input('Primeiro lado: '))
side2 = int(input('Segundo lado: '))
side... | 31.541667 | 108 | 0.65786 | 103 | 757 | 4.815534 | 0.495146 | 0.080645 | 0.048387 | 0.068548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.217966 | 757 | 23 | 109 | 32.913043 | 0.77027 | 0.297226 | 0 | 0.142857 | 0 | 0 | 0.30916 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6795fc3685731a886d5d284ea5740aaa1d445a0 | 1,179 | py | Python | serverdensity/proxy/runserver.py | serverdensity/sd-proxy | 3726b391e0e40258a3e58004568c9737898f4b01 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2016-08-12T17:49:23.000Z | 2016-08-12T17:49:23.000Z | serverdensity/proxy/runserver.py | serverdensity/sd-proxy | 3726b391e0e40258a3e58004568c9737898f4b01 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | serverdensity/proxy/runserver.py | serverdensity/sd-proxy | 3726b391e0e40258a3e58004568c9737898f4b01 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | """Main WSGI server runner for sd-proxy
"""
import os
import logging
from sys import argv, path, stderr, exit
from gevent.wsgi import WSGIServer
class VersionedWSGIServer(WSGIServer):
def __init__(self, server_version, *args, **kwargs):
self.base_env['SERVER_SOFTWARE'] = server_version
super(Ver... | 24.061224 | 79 | 0.679389 | 155 | 1,179 | 4.96129 | 0.425806 | 0.036411 | 0.050715 | 0.039012 | 0.050715 | 0.050715 | 0 | 0 | 0 | 0 | 0 | 0.009504 | 0.196777 | 1,179 | 48 | 80 | 24.5625 | 0.802534 | 0.030534 | 0 | 0 | 0 | 0 | 0.106514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.206897 | 0 | 0.413793 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b679e07e4853c1ac8702e21a433f7100a58636c7 | 1,553 | py | Python | dblp/python/citations.py | DocSeven/spark | a88330f554a4afc70696dac8d00bcf4d2f512acf | [
"Apache-2.0"
] | null | null | null | dblp/python/citations.py | DocSeven/spark | a88330f554a4afc70696dac8d00bcf4d2f512acf | [
"Apache-2.0"
] | null | null | null | dblp/python/citations.py | DocSeven/spark | a88330f554a4afc70696dac8d00bcf4d2f512acf | [
"Apache-2.0"
] | 1 | 2019-11-06T11:29:31.000Z | 2019-11-06T11:29:31.000Z | import citationsCommon
def countByIdAndYear(rdd):
docsplit = rdd.flatMap(lambda row:
[('{}.{}'.format(ref, row[2]), 1) for ref in row[1]])
return docsplit.reduceByKey(lambda c, d: c + d)
def joinIdYearAge(idYearCount, ddpairs):
# idYear: id, year cited
idYear = idYearCount.map(lambda row: ... | 41.972973 | 86 | 0.666452 | 198 | 1,553 | 5.227273 | 0.40404 | 0.030918 | 0.024155 | 0.030918 | 0.129469 | 0.129469 | 0.054106 | 0 | 0 | 0 | 0 | 0.023734 | 0.186091 | 1,553 | 36 | 87 | 43.138889 | 0.795095 | 0.221507 | 0 | 0 | 0 | 0 | 0.045075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.047619 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b67a5113b21316f83812bfead9269a89744903e8 | 8,727 | py | Python | src/ext/cstruct.py | X-EcutiOnner/fileobj | 7e4120759450bbdd1eee4ec26c8a757a8af48093 | [
"BSD-2-Clause"
] | 17 | 2015-05-23T11:09:46.000Z | 2021-12-10T14:28:01.000Z | src/ext/cstruct.py | X-EcutiOnner/fileobj | 7e4120759450bbdd1eee4ec26c8a757a8af48093 | [
"BSD-2-Clause"
] | 3 | 2015-03-23T04:35:25.000Z | 2017-09-15T07:12:15.000Z | src/ext/cstruct.py | X-EcutiOnner/fileobj | 7e4120759450bbdd1eee4ec26c8a757a8af48093 | [
"BSD-2-Clause"
] | 2 | 2016-01-07T00:38:13.000Z | 2020-12-02T08:27:28.000Z | # Copyright (c) 2009, Tomohiro Kusumi
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and... | 31.619565 | 81 | 0.569153 | 1,230 | 8,727 | 3.857724 | 0.229268 | 0.013909 | 0.010116 | 0.011802 | 0.214963 | 0.148577 | 0.134247 | 0.074183 | 0.053952 | 0.053952 | 0 | 0.013489 | 0.303426 | 8,727 | 275 | 82 | 31.734545 | 0.767067 | 0.184141 | 0 | 0.214953 | 0 | 0 | 0.073818 | 0.009033 | 0 | 0 | 0 | 0 | 0.009346 | 1 | 0.130841 | false | 0.004673 | 0.056075 | 0.046729 | 0.313084 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b67b288e83765b98929b985fef59c826ad896b2c | 1,532 | py | Python | usaspending_api/references/migrations/0052_toptieragencypublisheddabsview.py | ststuck/usaspending-api | b13bd5bcba0369ff8512f61a34745626c3969391 | [
"CC0-1.0"
] | 217 | 2016-11-03T17:09:53.000Z | 2022-03-10T04:17:54.000Z | usaspending_api/references/migrations/0052_toptieragencypublisheddabsview.py | Hk92a/usaspending-api | 25daa9dbc30835b8f4b4c797c592ba9ecc78ca00 | [
"CC0-1.0"
] | 622 | 2016-09-02T19:18:23.000Z | 2022-03-29T17:11:01.000Z | usaspending_api/references/migrations/0052_toptieragencypublisheddabsview.py | Hk92a/usaspending-api | 25daa9dbc30835b8f4b4c797c592ba9ecc78ca00 | [
"CC0-1.0"
] | 93 | 2016-09-07T20:28:57.000Z | 2022-02-25T00:25:27.000Z | # Generated by Django 2.2.19 on 2021-03-11 18:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("references", "0051_auto_20210223_1404"),
("submissions", "0015_submissionattributes_history"),
]
operation... | 34.044444 | 109 | 0.553525 | 150 | 1,532 | 5.386667 | 0.506667 | 0.112624 | 0.055693 | 0.081683 | 0.10396 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037344 | 0.370757 | 1,532 | 44 | 110 | 34.818182 | 0.80083 | 0.030026 | 0 | 0.090909 | 1 | 0 | 0.292786 | 0.213579 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b67bd574fe892b817e3e205848dedd222bd9824b | 1,493 | py | Python | agent/nets/GraphConvNet.py | JosepLeder/RL-Graph-Matching | 5ea6b3beaf2a2f8d3739f64e7172a566d59d5468 | [
"MIT"
] | null | null | null | agent/nets/GraphConvNet.py | JosepLeder/RL-Graph-Matching | 5ea6b3beaf2a2f8d3739f64e7172a566d59d5468 | [
"MIT"
] | null | null | null | agent/nets/GraphConvNet.py | JosepLeder/RL-Graph-Matching | 5ea6b3beaf2a2f8d3739f64e7172a566d59d5468 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch_scatter import scatter_mean
from torch.nn import Linear, ReLU
from torch_geometric.nn import GraphConv
class GraphConvNet(nn.Module):
def __init__(self, n_feat, n_hid, n_out):
super(GraphConvNet).__init__()
self.conv1 =... | 28.169811 | 100 | 0.636303 | 228 | 1,493 | 3.960526 | 0.232456 | 0.060908 | 0.055371 | 0.0299 | 0.145072 | 0.06866 | 0.06866 | 0.06866 | 0.06866 | 0.06866 | 0 | 0.034483 | 0.242465 | 1,493 | 52 | 101 | 28.711538 | 0.763926 | 0 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.171429 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b67d5f4f80272dd118a8a67e39a34490d5c2cb23 | 392 | py | Python | user/migrations/0002_auto_20171228_1322.py | MirzaBaig715/learn-online | 1f2e5a48e383d632933b1eca98f7a2a88a92b2db | [
"MIT"
] | null | null | null | user/migrations/0002_auto_20171228_1322.py | MirzaBaig715/learn-online | 1f2e5a48e383d632933b1eca98f7a2a88a92b2db | [
"MIT"
] | null | null | null | user/migrations/0002_auto_20171228_1322.py | MirzaBaig715/learn-online | 1f2e5a48e383d632933b1eca98f7a2a88a92b2db | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2017-12-28 13:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='tutor',
name='salary',
field=m... | 20.631579 | 73 | 0.591837 | 43 | 392 | 5.325581 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0681 | 0.288265 | 392 | 18 | 74 | 21.777778 | 0.752688 | 0.109694 | 0 | 0 | 1 | 0 | 0.07781 | 0 | 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 |
b67e4db8f00b585b7a13ade5c1abf4013518f113 | 7,437 | py | Python | skoleintra/__init__.py | jona799t/skoleintra-api | b6a73aa50b53415aba7aa2249c45771b931992a9 | [
"Apache-2.0"
] | null | null | null | skoleintra/__init__.py | jona799t/skoleintra-api | b6a73aa50b53415aba7aa2249c45771b931992a9 | [
"Apache-2.0"
] | null | null | null | skoleintra/__init__.py | jona799t/skoleintra-api | b6a73aa50b53415aba7aa2249c45771b931992a9 | [
"Apache-2.0"
] | null | null | null | import json
import httpx
import requests
import urllib
import ssl
from urllib3 import poolmanager
from bs4 import BeautifulSoup
from unilogin import Unilogin
class TLSAdapter(requests.adapters.HTTPAdapter): #https://stackoverflow.com/questions/61631955/python-requests-ssl-error-during-requests
def init_poolmanager... | 67.609091 | 450 | 0.671238 | 856 | 7,437 | 5.785047 | 0.242991 | 0.042205 | 0.052504 | 0.039984 | 0.576333 | 0.52706 | 0.480412 | 0.452544 | 0.452544 | 0.452544 | 0 | 0.024204 | 0.155573 | 7,437 | 110 | 451 | 67.609091 | 0.764331 | 0.024338 | 0 | 0.26087 | 0 | 0.195652 | 0.506897 | 0.336966 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032609 | false | 0 | 0.086957 | 0 | 0.163043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b67e8c2b0c5ddd808117b7d17c7cf6d08076154f | 1,433 | py | Python | commands/leaderboad.py | classAndrew/valor | b68a72b76c111e22d8df8d56a2923185f057fc2a | [
"MIT"
] | null | null | null | commands/leaderboad.py | classAndrew/valor | b68a72b76c111e22d8df8d56a2923185f057fc2a | [
"MIT"
] | null | null | null | commands/leaderboad.py | classAndrew/valor | b68a72b76c111e22d8df8d56a2923185f057fc2a | [
"MIT"
] | 1 | 2021-11-28T00:45:25.000Z | 2021-11-28T00:45:25.000Z | from valor import Valor
from discord.ext.commands import Context
from util import ErrorEmbed, LongTextEmbed, LongFieldEmbed, guild_name_from_tag
import random
from datetime import datetime
import requests
from sql import ValorSQL
from commands.common import get_uuid, from_uuid
async def _register_leaderboard(valor: Va... | 37.710526 | 227 | 0.667132 | 198 | 1,433 | 4.717172 | 0.414141 | 0.034261 | 0.03212 | 0.055675 | 0.205567 | 0.156317 | 0 | 0 | 0 | 0 | 0 | 0.019678 | 0.219819 | 1,433 | 38 | 228 | 37.710526 | 0.815742 | 0 | 0 | 0.071429 | 0 | 0.035714 | 0.188982 | 0.043933 | 0.035714 | 0 | 0.009763 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b67fafcf42495a4fa6560d767936e8f9b6d7796e | 1,057 | py | Python | tests/test_simhash.py | Marcnuth/deduplication | c407cb11e5dd7f13360639dbd55efb4ffc2bd80c | [
"Apache-2.0"
] | 10 | 2019-08-21T01:42:44.000Z | 2021-12-24T02:18:04.000Z | tests/test_simhash.py | Marcnuth/deduplication | c407cb11e5dd7f13360639dbd55efb4ffc2bd80c | [
"Apache-2.0"
] | null | null | null | tests/test_simhash.py | Marcnuth/deduplication | c407cb11e5dd7f13360639dbd55efb4ffc2bd80c | [
"Apache-2.0"
] | 4 | 2020-02-10T08:58:20.000Z | 2021-07-08T14:08:32.000Z | from deduplication import simhash, lsimhash
from pathlib import Path
from scipy.spatial.distance import hamming
import numpy as np
import textwrap
def test_main():
with open(Path(__file__).resolve().parent / 'data' / 'wiki_nlp.txt', 'r') as f:
content = f.read()
hval = lsimhash.lsimhash(content)
... | 48.045455 | 369 | 0.756859 | 161 | 1,057 | 4.925466 | 0.540373 | 0.041614 | 0.070618 | 0.08575 | 0.479193 | 0.479193 | 0.479193 | 0.380832 | 0.380832 | 0.380832 | 0 | 0.004598 | 0.176916 | 1,057 | 21 | 370 | 50.333333 | 0.906897 | 0 | 0 | 0 | 0 | 0.142857 | 0.604167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.357143 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b67fc419ca923c33d18cdee4e07420f2516e020f | 164 | py | Python | metric.py | Nozdi/kaggle-bike-share-demand | 715b61ff3560c65f1581bda7cc5baec9cf5e76dd | [
"MIT"
] | null | null | null | metric.py | Nozdi/kaggle-bike-share-demand | 715b61ff3560c65f1581bda7cc5baec9cf5e76dd | [
"MIT"
] | null | null | null | metric.py | Nozdi/kaggle-bike-share-demand | 715b61ff3560c65f1581bda7cc5baec9cf5e76dd | [
"MIT"
] | null | null | null | import numpy as np
def rmsle(y_pred, y_true):
assert len(y_pred) == len(y_true)
return np.sqrt(np.mean(np.power(np.log1p(y_pred) - np.log1p(y_true), 2)))
| 23.428571 | 77 | 0.676829 | 33 | 164 | 3.181818 | 0.515152 | 0.142857 | 0.152381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.158537 | 164 | 6 | 78 | 27.333333 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b6803575349013e6f95b7ac55200cff1e47ba73f | 11,581 | py | Python | generator.py | nilankamanoj/spring-rsc-generator | 8e6c303751571e84ca029f2576d3f2cc92ea7ed7 | [
"Apache-2.0"
] | 1 | 2020-04-23T12:38:07.000Z | 2020-04-23T12:38:07.000Z | generator.py | nilankamanoj/spring-rsc-generator | 8e6c303751571e84ca029f2576d3f2cc92ea7ed7 | [
"Apache-2.0"
] | null | null | null | generator.py | nilankamanoj/spring-rsc-generator | 8e6c303751571e84ca029f2576d3f2cc92ea7ed7 | [
"Apache-2.0"
] | null | null | null | from os import listdir, makedirs
from os.path import isfile, join, exists
from __main__ import *
print '\033[32m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\033[0m\n'
print '\033[94m'+'||===== '+'\033[92m' + ' ====== '+'\033[93m'+' ====='
print '\033[94m'+'|| \\\\ '+... | 52.881279 | 1,231 | 0.571194 | 1,242 | 11,581 | 5.219002 | 0.202899 | 0.051836 | 0.056773 | 0.038106 | 0.342641 | 0.257637 | 0.193459 | 0.17942 | 0.138537 | 0.11154 | 0 | 0.032057 | 0.197306 | 11,581 | 218 | 1,232 | 53.123853 | 0.665232 | 0.022278 | 0 | 0.144385 | 0 | 0.02139 | 0.483341 | 0.123199 | 0.02139 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042781 | null | null | 0.128342 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b680c50a7b7c89ff2e3642335168615352eb2ef1 | 1,132 | py | Python | twitter_clone/users/models/profile.py | ag94e/Twitter_clone | 037ab41b79e7c236a85bb0e9c0e892dfa3ba407a | [
"MIT"
] | null | null | null | twitter_clone/users/models/profile.py | ag94e/Twitter_clone | 037ab41b79e7c236a85bb0e9c0e892dfa3ba407a | [
"MIT"
] | null | null | null | twitter_clone/users/models/profile.py | ag94e/Twitter_clone | 037ab41b79e7c236a85bb0e9c0e892dfa3ba407a | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.db import models
from django.core.validators import RegexValidator
class Profile(models.Model):
""" Profile model.
A proxy model that extends the data
with data with extra information.
"""
user = models.OneToOneField(User, on_delete=models.CAS... | 33.294118 | 102 | 0.678445 | 137 | 1,132 | 5.49635 | 0.576642 | 0.039841 | 0.099602 | 0.103586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029445 | 0.219965 | 1,132 | 34 | 103 | 33.294118 | 0.82333 | 0.089223 | 0 | 0 | 0 | 0 | 0.109235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.111111 | 0 | 0.592593 | 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 |
b6810fce8cb140c6eacc9841d12f9fa404ed0bac | 3,388 | py | Python | game/alfa_beta.py | YuseqYaseq/gry-kombinatoryczne | 15e5d857cdbc6ec447c0028a90c4354ba25fc553 | [
"MIT"
] | 2 | 2020-04-26T16:57:37.000Z | 2020-04-26T16:57:40.000Z | game/alfa_beta.py | YuseqYaseq/gry-kombinatoryczne | 15e5d857cdbc6ec447c0028a90c4354ba25fc553 | [
"MIT"
] | null | null | null | game/alfa_beta.py | YuseqYaseq/gry-kombinatoryczne | 15e5d857cdbc6ec447c0028a90c4354ba25fc553 | [
"MIT"
] | null | null | null | from game.sequence import Sequence
max_value = 999888777666555
class AlfaBeta:
def __init__(self, values, state, k, player, enemy, max_deepth = None):
self.values = values
self.state = state
self.k = k
self.player = player
self.enemy = enemy
if max_deepth is None:... | 30.8 | 88 | 0.563164 | 406 | 3,388 | 4.517241 | 0.142857 | 0.113413 | 0.054526 | 0.035987 | 0.47928 | 0.47928 | 0.302617 | 0.302617 | 0.268811 | 0.20229 | 0 | 0.013618 | 0.349764 | 3,388 | 109 | 89 | 31.082569 | 0.818883 | 0 | 0 | 0.285714 | 0 | 0 | 0.002066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0 | 0.011905 | 0.02381 | 0.321429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b68116a66a4de7ee10965623e6d1922379799cea | 4,620 | py | Python | app.py | j33mk/randomnews | 705ecde11f8097a8348a9abae384bd09031cb2ca | [
"Apache-2.0"
] | null | null | null | app.py | j33mk/randomnews | 705ecde11f8097a8348a9abae384bd09031cb2ca | [
"Apache-2.0"
] | null | null | null | app.py | j33mk/randomnews | 705ecde11f8097a8348a9abae384bd09031cb2ca | [
"Apache-2.0"
] | null | null | null | #----------------------------------------------------------------------------#
# Imports
#----------------------------------------------------------------------------#
from flask import Flask, render_template, request,jsonify
import random
# from flask.ext.sqlalchemy import SQLAlchemy
import logging
from logging impor... | 32.083333 | 88 | 0.5671 | 521 | 4,620 | 4.950096 | 0.493282 | 0.027142 | 0.03102 | 0.019387 | 0.107794 | 0.055836 | 0.055836 | 0.055836 | 0.055836 | 0.055836 | 0 | 0.009814 | 0.183983 | 4,620 | 143 | 89 | 32.307692 | 0.674271 | 0.20303 | 0 | 0.123457 | 0 | 0.012346 | 0.431868 | 0.033196 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061728 | false | 0 | 0.08642 | 0.037037 | 0.209877 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6833905716414b7fc7d6f77dff5aa4d0c6d4d14 | 9,836 | py | Python | scripts/dfuse-pack.py | qiuchengxuan/rs-flight | 66a09afe4e24f8b49c6445f9048172e46e6a0f03 | [
"MIT"
] | 1 | 2020-09-01T08:49:24.000Z | 2020-09-01T08:49:24.000Z | scripts/dfuse-pack.py | qiuchengxuan/rs-flight | 66a09afe4e24f8b49c6445f9048172e46e6a0f03 | [
"MIT"
] | null | null | null | scripts/dfuse-pack.py | qiuchengxuan/rs-flight | 66a09afe4e24f8b49c6445f9048172e46e6a0f03 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Written by Antonio Galea - 2010/11/18
# Distributed under Gnu LGPL 3.0
# see http://www.gnu.org/licenses/lgpl-3.0.txt
import binascii
import os
import struct
import sys
import zlib
from optparse import OptionParser
try:
from intelhex import IntelHex
except ImportError:
IntelHex = Non... | 35.25448 | 122 | 0.51281 | 1,118 | 9,836 | 4.480322 | 0.208408 | 0.018167 | 0.020763 | 0.03354 | 0.291875 | 0.248153 | 0.23318 | 0.204432 | 0.204432 | 0.204432 | 0 | 0.029746 | 0.347194 | 9,836 | 278 | 123 | 35.381295 | 0.75035 | 0.013725 | 0 | 0.3 | 0 | 0.028 | 0.214396 | 0.016912 | 0 | 0 | 0.0099 | 0 | 0 | 1 | 0.028 | false | 0 | 0.032 | 0.012 | 0.08 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6854c3fe8824d72793c01c59fac84170b474e24 | 636 | py | Python | setup.py | bmsimang/Analyse_Function_Predict_Group2 | 2f4ee80860ff781493e78cff693d18dd049fdd35 | [
"MIT"
] | null | null | null | setup.py | bmsimang/Analyse_Function_Predict_Group2 | 2f4ee80860ff781493e78cff693d18dd049fdd35 | [
"MIT"
] | null | null | null | setup.py | bmsimang/Analyse_Function_Predict_Group2 | 2f4ee80860ff781493e78cff693d18dd049fdd35 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='predict_functions_package',
version='0.1',
packages=find_packages(exclude=['tests*']),
license='MIT',
description='A list of python Data Analysis Functions',
long_description=open('README.md').read(),
install_requires=['numpy', 'panda... | 45.428571 | 144 | 0.745283 | 76 | 636 | 6.118421 | 0.75 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014311 | 0.121069 | 636 | 14 | 145 | 45.428571 | 0.817531 | 0 | 0 | 0 | 0 | 0.076923 | 0.565149 | 0.197802 | 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 |
b6857c3a9f8eac380eda21da26fac71984173300 | 12,313 | py | Python | AI.py | alexrockhill/chess | 63d6691912c14ff4c2b0bf4ad9e73a17edec2f70 | [
"MIT"
] | null | null | null | AI.py | alexrockhill/chess | 63d6691912c14ff4c2b0bf4ad9e73a17edec2f70 | [
"MIT"
] | null | null | null | AI.py | alexrockhill/chess | 63d6691912c14ff4c2b0bf4ad9e73a17edec2f70 | [
"MIT"
] | null | null | null | import numpy as np
import os
import os.path as op
import matplotlib.pyplot as plt
import pickle
from tqdm import tqdm
from Board import Board
from func import opposite_color, loc2int, int2color, is_last_rank
LETTERS = [chr(i) for i in range(65, 65+26)]
BOARD_DIM = 8
N_PIECES = 6
MAX_MOVES = 100
def logistic(x):
ret... | 34.013812 | 103 | 0.70925 | 1,880 | 12,313 | 4.465426 | 0.128191 | 0.030137 | 0.0324 | 0.010721 | 0.359619 | 0.293985 | 0.231805 | 0.186182 | 0.14592 | 0.131983 | 0 | 0.013933 | 0.154796 | 12,313 | 361 | 104 | 34.108033 | 0.792736 | 0.023715 | 0 | 0.202703 | 0 | 0 | 0.036365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128378 | false | 0.003378 | 0.027027 | 0.006757 | 0.243243 | 0.006757 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b686d0afc43a520dbac2ae42822b469d33f9f3d0 | 4,901 | py | Python | python/caffe/custom_layers/adaptive_weighting_loss_layer.py | asmorkalov/training_toolbox_caffe | 08716d344da7d78cb7ede4646467c15e86852ae7 | [
"Apache-2.0"
] | null | null | null | python/caffe/custom_layers/adaptive_weighting_loss_layer.py | asmorkalov/training_toolbox_caffe | 08716d344da7d78cb7ede4646467c15e86852ae7 | [
"Apache-2.0"
] | null | null | null | python/caffe/custom_layers/adaptive_weighting_loss_layer.py | asmorkalov/training_toolbox_caffe | 08716d344da7d78cb7ede4646467c15e86852ae7 | [
"Apache-2.0"
] | null | null | null | """
Copyright (c) 2018 Intel Corporation
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 writin... | 34.758865 | 106 | 0.598653 | 619 | 4,901 | 4.589661 | 0.240711 | 0.071806 | 0.026399 | 0.036959 | 0.250616 | 0.229145 | 0.159099 | 0.121084 | 0.090109 | 0.090109 | 0 | 0.013454 | 0.302387 | 4,901 | 140 | 107 | 35.007143 | 0.81749 | 0.243828 | 0 | 0.271429 | 0 | 0 | 0.052557 | 0.022159 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.085714 | false | 0.028571 | 0.057143 | 0 | 0.157143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6871d09585056a5b2254aec8a95efcb0fbeee1d | 1,843 | py | Python | src/cgr_gwas_qc/cluster_profiles/biowulf/status.py | Monia234/NCI-GwasQc | 9e3ca52085c891e1d4d7972e5337c4a1888f992c | [
"MIT"
] | null | null | null | src/cgr_gwas_qc/cluster_profiles/biowulf/status.py | Monia234/NCI-GwasQc | 9e3ca52085c891e1d4d7972e5337c4a1888f992c | [
"MIT"
] | 43 | 2021-03-02T04:10:01.000Z | 2022-03-16T20:26:55.000Z | src/cgr_gwas_qc/cluster_profiles/biowulf/status.py | Monia234/NCI-GwasQc | 9e3ca52085c891e1d4d7972e5337c4a1888f992c | [
"MIT"
] | 2 | 2021-03-02T12:27:00.000Z | 2021-12-16T03:22:20.000Z | #!/usr/bin/env python3
import logging
import re
import shlex
import subprocess as sp
import sys
import time
from typing import Optional
logger = logging.getLogger("__name__")
logger.setLevel(40)
MAX_STATUS_ATTEMPTS = 20
STATUS_CODES = {
"BOOT_FAIL": "failed",
"CANCELLED": "failed",
"COMPLETED": "success"... | 24.573333 | 98 | 0.62344 | 243 | 1,843 | 4.534979 | 0.395062 | 0.045372 | 0.021779 | 0.027223 | 0.284936 | 0.23775 | 0.23775 | 0.096189 | 0.096189 | 0.096189 | 0 | 0.007003 | 0.225176 | 1,843 | 74 | 99 | 24.905405 | 0.764706 | 0.011394 | 0 | 0.169492 | 0 | 0 | 0.200439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0 | 0.118644 | 0 | 0.254237 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6871d4c00e4a99100a8cb85bdaed1478a3f212b | 1,058 | py | Python | minecraft/networking/packets/serverbound/play/held_item_change_packet.py | LoipesMas/pyCraft | 244fbb803ca7a2752cb4ed2b88b4791241379378 | [
"Apache-2.0"
] | null | null | null | minecraft/networking/packets/serverbound/play/held_item_change_packet.py | LoipesMas/pyCraft | 244fbb803ca7a2752cb4ed2b88b4791241379378 | [
"Apache-2.0"
] | null | null | null | minecraft/networking/packets/serverbound/play/held_item_change_packet.py | LoipesMas/pyCraft | 244fbb803ca7a2752cb4ed2b88b4791241379378 | [
"Apache-2.0"
] | null | null | null | from minecraft.networking.packets import Packet
from minecraft.networking.types import (
Short, BitFieldEnum
)
class HeldItemChangePacket(Packet, BitFieldEnum):
@staticmethod
def get_id(context):
return 0x25 if context.protocol_version >= 738 else \
0x24 if context.protocol_version >=... | 35.266667 | 61 | 0.638941 | 120 | 1,058 | 5.508333 | 0.425 | 0.163389 | 0.308623 | 0.435703 | 0.193646 | 0.193646 | 0 | 0 | 0 | 0 | 0 | 0.090305 | 0.28828 | 1,058 | 29 | 62 | 36.482759 | 0.787517 | 0 | 0 | 0 | 0 | 0 | 0.018904 | 0 | 0 | 0 | 0.049149 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0.041667 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b687fc10ba01cb9f0419af4e607ce6c85279c90f | 49,769 | py | Python | editor.py | azagoruyko/rigBuilder | bd744704d3fee1ab7cd85a08c735e6bf044fd27e | [
"Apache-2.0"
] | 2 | 2022-03-20T03:13:24.000Z | 2022-03-20T03:14:11.000Z | editor.py | azagoruyko/rigBuilder | bd744704d3fee1ab7cd85a08c735e6bf044fd27e | [
"Apache-2.0"
] | null | null | null | editor.py | azagoruyko/rigBuilder | bd744704d3fee1ab7cd85a08c735e6bf044fd27e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from Qt.QtGui import *
from Qt.QtCore import *
from Qt.QtWidgets import *
import re
def clamp(mn, mx, val):
if val < mn:
return mn
elif val > mx:
return mx
else:
return val
def highlightLine(widget, line=-1, clear=False):
if line == -1:
block =... | 34.489951 | 169 | 0.578553 | 4,665 | 49,769 | 6.138907 | 0.126688 | 0.009253 | 0.011453 | 0.007717 | 0.370312 | 0.297158 | 0.250995 | 0.200293 | 0.180355 | 0.157483 | 0 | 0.01154 | 0.305311 | 49,769 | 1,443 | 170 | 34.489951 | 0.816741 | 0.030159 | 0 | 0.40965 | 0 | 0.000946 | 0.022831 | 0.002391 | 0 | 0 | 0 | 0 | 0.000946 | 1 | 0.053926 | false | 0.002838 | 0.00473 | 0.001892 | 0.093661 | 0.000946 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b68866458224b910c1e4822374a14bdc98c7fe27 | 5,523 | py | Python | research/Issue2/purifier/text_extractor.py | johnklee/ff_crawler | 53b056bd94ccf55388d12c7f70460d280964f45f | [
"MIT"
] | null | null | null | research/Issue2/purifier/text_extractor.py | johnklee/ff_crawler | 53b056bd94ccf55388d12c7f70460d280964f45f | [
"MIT"
] | 4 | 2021-04-09T02:05:42.000Z | 2021-07-04T07:42:15.000Z | research/Issue2/purifier/text_extractor.py | johnklee/ff_crawler | 53b056bd94ccf55388d12c7f70460d280964f45f | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import sys
import importlib
import os
import inspect
from importlib import util as importlib_util
from .logb import getLogger
# from .pdf2text import simple_fact as pdf_sfact
from .html2text import simple_fact as html_sfact
from .plain2text import simple_fact as pln_sfact
##########################... | 43.833333 | 162 | 0.570704 | 658 | 5,523 | 4.607903 | 0.267477 | 0.032982 | 0.022427 | 0.019789 | 0.190633 | 0.134894 | 0.076847 | 0.046834 | 0.046834 | 0.046834 | 0 | 0.003083 | 0.295311 | 5,523 | 125 | 163 | 44.184 | 0.775951 | 0.1673 | 0 | 0.148649 | 0 | 0 | 0.08434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040541 | false | 0 | 0.135135 | 0 | 0.310811 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b68b69b099d27f3f50d04d0c00314efb72f42971 | 21,664 | py | Python | tests/util.py | wayneweiqiang/GaMMA | 8dcc94088e462d386e10fa7c9a2be06d646ba825 | [
"MIT"
] | 9 | 2021-11-15T10:13:05.000Z | 2022-03-03T13:41:46.000Z | tests/util.py | wayneweiqiang/GaMMA | 8dcc94088e462d386e10fa7c9a2be06d646ba825 | [
"MIT"
] | null | null | null | tests/util.py | wayneweiqiang/GaMMA | 8dcc94088e462d386e10fa7c9a2be06d646ba825 | [
"MIT"
] | 1 | 2021-11-25T05:33:11.000Z | 2021-11-25T05:33:11.000Z | import os
from datetime import datetime
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import torch
from tqdm import tqdm
from collections import defaultdict
# import fire
timestamp = lambda dt: (dt - datetime(2019, 1, 1)).total_seconds()
## ridgecrest
class Config:
degree2km = np.pi * ... | 34.332805 | 175 | 0.565962 | 2,885 | 21,664 | 4.10364 | 0.125477 | 0.011825 | 0.022806 | 0.024833 | 0.629614 | 0.586029 | 0.550722 | 0.523186 | 0.515584 | 0.50511 | 0 | 0.038654 | 0.252446 | 21,664 | 630 | 176 | 34.387302 | 0.692374 | 0.086088 | 0 | 0.428279 | 0 | 0.008197 | 0.102242 | 0.004932 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030738 | false | 0 | 0.016393 | 0 | 0.077869 | 0.002049 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b68be82acadc9943f2cd593b3e2f054401e95af1 | 2,013 | py | Python | joystick.py | sergio-py2/meteor | 4146259c19ed58931fc3514174a0147770500793 | [
"MIT"
] | null | null | null | joystick.py | sergio-py2/meteor | 4146259c19ed58931fc3514174a0147770500793 | [
"MIT"
] | null | null | null | joystick.py | sergio-py2/meteor | 4146259c19ed58931fc3514174a0147770500793 | [
"MIT"
] | null | null | null | #!python -u
import sys
import pyglet
import pyglet.gl as gl
import pyglet.window.mouse as mouse
import pyglet.window.key as key
import pyglet.input
#import pyglet.media
import random
import math
#print pyglet.version
show = ""
# Set up window
full = False
if full:
window = pyglet.window.Window(fullscreen=Tru... | 18.135135 | 64 | 0.597119 | 301 | 2,013 | 3.900332 | 0.358804 | 0.011925 | 0.015332 | 0.017036 | 0.052811 | 0.052811 | 0.006814 | 0 | 0 | 0 | 0 | 0.016915 | 0.265772 | 2,013 | 110 | 65 | 18.3 | 0.777402 | 0.131148 | 0 | 0.147541 | 0 | 0 | 0.053726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.065574 | 0.131148 | null | null | 0.04918 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b68c139c4d416b8f2d10a173958a63102486e538 | 133 | py | Python | coupons/urls.py | ihfazhillah/myshop-django | ccfc079da073f2872a3aac0f632f581025bb4c2c | [
"MIT"
] | null | null | null | coupons/urls.py | ihfazhillah/myshop-django | ccfc079da073f2872a3aac0f632f581025bb4c2c | [
"MIT"
] | 9 | 2020-06-05T19:01:16.000Z | 2022-03-11T23:29:05.000Z | coupons/urls.py | ihfazhillah/myshop-django | ccfc079da073f2872a3aac0f632f581025bb4c2c | [
"MIT"
] | null | null | null | from django.conf.urls import url
from .views import coupon_apply
urlpatterns = [
url('^apply/$', coupon_apply, name='apply')
]
| 16.625 | 47 | 0.706767 | 18 | 133 | 5.111111 | 0.611111 | 0.23913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 133 | 7 | 48 | 19 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.097744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b68c42c88331b8f4284ebd3949497dbb9ed4959f | 869 | py | Python | datasetinsights/constants.py | 86sanj/datasetinsights | 8b34c434fc841ccb20f3ad06985f82dfe3829d02 | [
"Apache-2.0"
] | null | null | null | datasetinsights/constants.py | 86sanj/datasetinsights | 8b34c434fc841ccb20f3ad06985f82dfe3829d02 | [
"Apache-2.0"
] | null | null | null | datasetinsights/constants.py | 86sanj/datasetinsights | 8b34c434fc841ccb20f3ad06985f82dfe3829d02 | [
"Apache-2.0"
] | null | null | null | import os
from datetime import datetime
TIMESTAMP_SUFFIX = datetime.now().strftime("%Y%m%d-%H%M%S")
PROJECT_ROOT = os.path.dirname(os.path.dirname(__file__))
GCS_BASE_STR = "gs://"
HTTP_URL_BASE_STR = "http://"
HTTPS_URL_BASE_STR = "https://"
LOCAL_FILE_BASE_STR = "file://"
NULL_STRING = "None"
DEFAULT_DATA_ROOT = ... | 27.15625 | 59 | 0.734177 | 121 | 869 | 4.975207 | 0.661157 | 0.046512 | 0.043189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028871 | 0.12313 | 869 | 31 | 60 | 28.032258 | 0.761155 | 0.150748 | 0 | 0 | 0 | 0 | 0.337875 | 0.079019 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b68c8ddc9fcd55d3cc2b24d17d5af2efe3ae5c5d | 559 | py | Python | decaylanguage/__init__.py | ch2ohch2oh/decaylanguage | 7cb01e787ea9d193b87ae0978f2dfb4e469a1276 | [
"BSD-3-Clause"
] | null | null | null | decaylanguage/__init__.py | ch2ohch2oh/decaylanguage | 7cb01e787ea9d193b87ae0978f2dfb4e469a1276 | [
"BSD-3-Clause"
] | null | null | null | decaylanguage/__init__.py | ch2ohch2oh/decaylanguage | 7cb01e787ea9d193b87ae0978f2dfb4e469a1276 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2018-2019, Eduardo Rodrigues and Henry Schreiner.
#
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
# or https://github.com/scikit-hep/decaylanguage for details.
# Convenient access to the version number
from ._version import __version__
# Direct access to decay file parsi... | 31.055556 | 75 | 0.805009 | 74 | 559 | 6.013514 | 0.662162 | 0.07191 | 0.094382 | 0.12809 | 0.107865 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018789 | 0.143113 | 559 | 17 | 76 | 32.882353 | 0.91023 | 0.679785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b68d1dbf0c5ca4f1cf1c2b340f13d2c57fe8602c | 7,829 | py | Python | server.py | danielemoro/PeepsFinder | 423e95526900aa6c932306a9670c06e41189e27b | [
"Apache-2.0"
] | 2 | 2019-07-17T22:04:25.000Z | 2021-03-03T17:41:07.000Z | server.py | danielemoro/PeepsFinder | 423e95526900aa6c932306a9670c06e41189e27b | [
"Apache-2.0"
] | 19 | 2019-12-26T17:23:33.000Z | 2022-03-21T22:19:06.000Z | server.py | danielemoro/PeepsFinder | 423e95526900aa6c932306a9670c06e41189e27b | [
"Apache-2.0"
] | null | null | null | # IMPORTANT: Change these file paths to be in the same repository as the webs server running Peeps.
# You can find the Peeps web server repository here: https://github.com/danielemoro/peeps/tree/peeps_finder
input_file = "D:/Google Drive/BSU/BSU 2018 Fall/CS401/website/peeps_finder_in.txt"
output_file = "D:/Google Driv... | 36.584112 | 120 | 0.609401 | 1,103 | 7,829 | 4.194923 | 0.24388 | 0.033067 | 0.009077 | 0.027015 | 0.229738 | 0.177005 | 0.160147 | 0.128161 | 0.109574 | 0.08861 | 0 | 0.014763 | 0.247286 | 7,829 | 213 | 121 | 36.755869 | 0.770406 | 0.059522 | 0 | 0.184049 | 0 | 0.006135 | 0.193908 | 0.01047 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067485 | false | 0 | 0.079755 | 0.006135 | 0.202454 | 0.171779 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b68d3ffb40a4006bf5b8a5543641f9a3020929bc | 6,497 | py | Python | python/oak/vio_record.py | SpectacularAI/sdk-examples | 70840f7a68d9536ce473c4d20e224ecfa90284ce | [
"Apache-2.0"
] | 18 | 2021-11-02T09:32:11.000Z | 2022-03-29T17:04:32.000Z | python/oak/vio_record.py | SpectacularAI/sdk-examples | 70840f7a68d9536ce473c4d20e224ecfa90284ce | [
"Apache-2.0"
] | 4 | 2021-11-02T05:19:11.000Z | 2022-03-28T08:53:27.000Z | python/oak/vio_record.py | SpectacularAI/sdk-examples | 70840f7a68d9536ce473c4d20e224ecfa90284ce | [
"Apache-2.0"
] | 2 | 2022-02-25T14:28:45.000Z | 2022-03-05T14:14:55.000Z | """
Record data for later playback
Requirements:
ffmpeg must be installed.
On Linux you can install it with package manager
of your choise. For example with
ap-get: sudo apt-get install ffmpeg
yuM: sudo yum install ffmpeg
On Windows, you must download and install it from https://w... | 36.094444 | 126 | 0.687548 | 811 | 6,497 | 5.405672 | 0.360049 | 0.008212 | 0.024635 | 0.025547 | 0.188412 | 0.158531 | 0.093066 | 0.066606 | 0.045164 | 0.045164 | 0 | 0.010547 | 0.211944 | 6,497 | 179 | 127 | 36.296089 | 0.845703 | 0.1827 | 0 | 0.139344 | 0 | 0 | 0.141265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02459 | false | 0.008197 | 0.090164 | 0 | 0.122951 | 0.04918 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b68d55a4f44625a425237c2968f33e5ce96a8a38 | 345 | py | Python | ex033.py | Jordemar-D-Bousquet/Exercicios_Python | 705d4c83720db033841f01aa843e4dbab08f1423 | [
"MIT"
] | null | null | null | ex033.py | Jordemar-D-Bousquet/Exercicios_Python | 705d4c83720db033841f01aa843e4dbab08f1423 | [
"MIT"
] | null | null | null | ex033.py | Jordemar-D-Bousquet/Exercicios_Python | 705d4c83720db033841f01aa843e4dbab08f1423 | [
"MIT"
] | null | null | null | # Faça um programa que leia três números e mostre qual é o maior e qual é o menor.
n1 = int(input('Digite o primeiro valor: '))
n2 = int(input('Digite o segundo valor: '))
n3 = int(input('Digite o terceiro valor: '))
nt= [n1,n2,n3]
print('O maior número digitado foi {}'.format(max(nt)))
print('O menor número digitado... | 38.333333 | 82 | 0.686957 | 61 | 345 | 3.885246 | 0.52459 | 0.101266 | 0.177215 | 0.189873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02069 | 0.15942 | 345 | 9 | 83 | 38.333333 | 0.796552 | 0.231884 | 0 | 0 | 0 | 0 | 0.507576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
b68e1a9a9505bdaff392741746a2cc8527c4f6b6 | 311 | py | Python | src/fileIOTest.py | justinsmits/dlm | 39281701f4512cfc34dede0141d83b7cd8e247f4 | [
"MIT"
] | null | null | null | src/fileIOTest.py | justinsmits/dlm | 39281701f4512cfc34dede0141d83b7cd8e247f4 | [
"MIT"
] | null | null | null | src/fileIOTest.py | justinsmits/dlm | 39281701f4512cfc34dede0141d83b7cd8e247f4 | [
"MIT"
] | null | null | null | import os
def fileTest():
dir_path = os.path.dirname(os.path.realpath(__file__))
print(dir_path)
data_path = os.path.join(dir_path, '../FileTest/data.txt')
print(data_path)
file = open(data_path, 'r')
for line in file:
print(line)
if __name__ == '__main__':
fileTest() | 20.733333 | 62 | 0.633441 | 44 | 311 | 4.068182 | 0.477273 | 0.117318 | 0.111732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221865 | 311 | 15 | 63 | 20.733333 | 0.739669 | 0 | 0 | 0 | 0 | 0 | 0.092949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6908e28349ce2d7d9f38b20eac30f1523c0d324 | 501 | py | Python | OSGI/predictive-python/python model/test.py | davinder2385/iot-edge-samples | e6667947440f3eb0781ab4fe22281f4c1d79f376 | [
"Apache-2.0"
] | 7 | 2019-12-03T10:05:31.000Z | 2021-01-21T19:05:55.000Z | OSGI/predictive-python/python model/test.py | davinder2385/iot-edge-samples | e6667947440f3eb0781ab4fe22281f4c1d79f376 | [
"Apache-2.0"
] | 8 | 2020-01-08T08:03:21.000Z | 2020-09-04T18:25:56.000Z | OSGI/predictive-python/python model/test.py | davinder2385/iot-edge-samples | e6667947440f3eb0781ab4fe22281f4c1d79f376 | [
"Apache-2.0"
] | 11 | 2021-06-16T15:48:33.000Z | 2022-02-13T13:05:52.000Z | import json
import os.path
import time
# Third-party libraries
import zmq
context = zmq.Context()
socket = context.socket(zmq.REQ)
socket.connect("tcp://localhost:5555")
socket.send(b"hello")
message = socket.recv()
print(message)
while True:
# Wait for next request from client
jsonStr = '{"measures":{"R"... | 20.875 | 59 | 0.666667 | 71 | 501 | 4.704225 | 0.661972 | 0.05988 | 0.101796 | 0.131737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036058 | 0.169661 | 501 | 24 | 60 | 20.875 | 0.766827 | 0.143713 | 0 | 0.125 | 0 | 0.0625 | 0.21831 | 0.053991 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b692e177fac102ebbcfa5f07692d3af8e28cb595 | 2,172 | py | Python | source/group.py | AaronDavidSchneider/CyclingDinner | 40521e7ffe4d11b91cca59733f3768ebf456b1af | [
"MIT"
] | null | null | null | source/group.py | AaronDavidSchneider/CyclingDinner | 40521e7ffe4d11b91cca59733f3768ebf456b1af | [
"MIT"
] | null | null | null | source/group.py | AaronDavidSchneider/CyclingDinner | 40521e7ffe4d11b91cca59733f3768ebf456b1af | [
"MIT"
] | null | null | null | from source.couple import couple
import numpy as np
import requests
import json
import source.config as c
import googlemaps
from geopy.distance import geodesic
import itertools
gd = {"H":1,"V":0, "N":2}
gd_inv = {1:"H",0:"V", 2:"N"}
# CONVERT TIMES TO POSIX TIME
from datetime import timezone, datetime, timedelta
dinne... | 34.47619 | 160 | 0.587017 | 315 | 2,172 | 3.95873 | 0.320635 | 0.070569 | 0.060144 | 0.076183 | 0.179631 | 0.142743 | 0.113873 | 0.113873 | 0.113873 | 0.113873 | 0 | 0.018239 | 0.267956 | 2,172 | 62 | 161 | 35.032258 | 0.766038 | 0.032228 | 0 | 0.111111 | 0 | 0 | 0.053034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.166667 | 0 | 0.314815 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b69435cd91d1a650c1244efbc456a6f87305ba23 | 8,616 | py | Python | text_importer/importers/olive/parsers.py | aflueckiger/impresso-text-acquisition | ed8f0586ed6a4f7de94b1504b292570bce1f51c5 | [
"MIT"
] | null | null | null | text_importer/importers/olive/parsers.py | aflueckiger/impresso-text-acquisition | ed8f0586ed6a4f7de94b1504b292570bce1f51c5 | [
"MIT"
] | null | null | null | text_importer/importers/olive/parsers.py | aflueckiger/impresso-text-acquisition | ed8f0586ed6a4f7de94b1504b292570bce1f51c5 | [
"MIT"
] | null | null | null | """Functions to parse Olive XML data."""
import codecs
import copy
import re
from typing import List, Optional
from bs4 import BeautifulSoup
from impresso_commons.path.path_fs import canonical_path, IssueDir
from text_importer.importers.olive.helpers import (normalize_language,
... | 31.217391 | 102 | 0.515901 | 1,008 | 8,616 | 4.297619 | 0.250992 | 0.022853 | 0.012465 | 0.007387 | 0.141043 | 0.104109 | 0.10157 | 0.10157 | 0.087719 | 0.087719 | 0 | 0.003374 | 0.346448 | 8,616 | 275 | 103 | 31.330909 | 0.765939 | 0.196147 | 0 | 0.113772 | 0 | 0 | 0.117547 | 0.010531 | 0 | 0 | 0 | 0 | 0.017964 | 1 | 0.023952 | false | 0 | 0.041916 | 0 | 0.095808 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b694c70150e53ff40a0cf24561577bb8a2d5de91 | 1,720 | py | Python | addBinary.py | ZhouLihua/leetcode | 7a711e450756fb7b5648e938879d690e583f5957 | [
"MIT"
] | 2 | 2019-05-16T03:11:44.000Z | 2019-10-25T03:20:05.000Z | addBinary.py | ZhouLihua/leetcode | 7a711e450756fb7b5648e938879d690e583f5957 | [
"MIT"
] | null | null | null | addBinary.py | ZhouLihua/leetcode | 7a711e450756fb7b5648e938879d690e583f5957 | [
"MIT"
] | null | null | null | class Solution:
def addBinary(self, a, b):
result_reversed = ""
m, n = len(a), len(b)
if m > n:
a, b = b, a
m, n = n, m
diff = n - m
flag = False
for i in range(m - 1, -1, -1):
if a[i] == "1" and b[diff + i] == "1":
... | 29.152542 | 61 | 0.348256 | 172 | 1,720 | 3.360465 | 0.232558 | 0.314879 | 0.181661 | 0.207612 | 0.584775 | 0.474048 | 0.458478 | 0.458478 | 0.401384 | 0.401384 | 0 | 0.043646 | 0.547093 | 1,720 | 58 | 62 | 29.655172 | 0.698331 | 0.029651 | 0 | 0.653846 | 0 | 0 | 0.020396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0 | 0 | 0.057692 | 0.019231 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b69613a7512da774d1b23dd4f974de878107a0bc | 550 | py | Python | comsetformat.py | paqs2020/paqs2020 | 28377f3e0aa3d3dd2885baf2b339ae3228c68192 | [
"MIT"
] | 1 | 2021-07-29T10:47:52.000Z | 2021-07-29T10:47:52.000Z | comsetformat.py | paqs2020/paqs2020 | 28377f3e0aa3d3dd2885baf2b339ae3228c68192 | [
"MIT"
] | 1 | 2021-07-29T11:04:47.000Z | 2021-07-29T11:04:47.000Z | comsetformat.py | paqs2020/paqs2020 | 28377f3e0aa3d3dd2885baf2b339ae3228c68192 | [
"MIT"
] | 2 | 2021-05-06T18:33:01.000Z | 2021-08-01T10:21:46.000Z | import pickle
databox = "/nfs/projects/paqs/qadatasetAstudy"
source = pickle.load(open(databox + "/val.pkl","rb"))
questions = databox + "/output/ques.val"
answers = databox + "/output/ans.val"
fqes = open(questions, 'w')
fans = open(answers, 'w')
for fid, value in source.items():
for sid, sentence in value.ite... | 25 | 73 | 0.587273 | 75 | 550 | 4.306667 | 0.493333 | 0.102167 | 0.043344 | 0.049536 | 0.173375 | 0.173375 | 0.173375 | 0.173375 | 0 | 0 | 0 | 0 | 0.2 | 550 | 21 | 74 | 26.190476 | 0.734091 | 0 | 0 | 0 | 0 | 0 | 0.216758 | 0.061931 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b69653e1f2c2a35c5240a6afe449e5f0e3532b91 | 1,598 | py | Python | scripts/download_external.py | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | null | null | null | scripts/download_external.py | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | null | null | null | scripts/download_external.py | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | 2 | 2019-06-08T15:59:26.000Z | 2021-02-06T08:13:01.000Z | #!/usr/bin/python
import urllib2
import sys
import os
import os.path
import tarfile
#-------------------------------------------------------------------------------
# OS specific setupls
if sys.platform == 'win32':
print "Windows detected..."
dest = "dataprocessing_external_win32.tar.gz"
elif sys.platform == '... | 28.035088 | 87 | 0.518773 | 149 | 1,598 | 5.516779 | 0.496644 | 0.053528 | 0.126521 | 0.124088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006484 | 0.131414 | 1,598 | 56 | 88 | 28.535714 | 0.585735 | 0.306633 | 0 | 0.055556 | 0 | 0 | 0.394713 | 0.123974 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.138889 | null | null | 0.277778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b697b0465a2f226e6e6c630a304d08f2c89fe273 | 194 | py | Python | apps/verifications/urls.py | Jiafauser/News_blog | a3fec19c5e58c50c40268144e2f52820b24cc5d6 | [
"Unlicense"
] | null | null | null | apps/verifications/urls.py | Jiafauser/News_blog | a3fec19c5e58c50c40268144e2f52820b24cc5d6 | [
"Unlicense"
] | null | null | null | apps/verifications/urls.py | Jiafauser/News_blog | a3fec19c5e58c50c40268144e2f52820b24cc5d6 | [
"Unlicense"
] | null | null | null | from django.urls import path
from . import views
app_name = 'verifications'
urlpatterns = [
path('image_codes/<uuid:image_code_id>/', views.ImageCode.as_view(), name='image_codes'),
] | 27.714286 | 94 | 0.716495 | 26 | 194 | 5.115385 | 0.692308 | 0.150376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14433 | 194 | 7 | 95 | 27.714286 | 0.801205 | 0 | 0 | 0 | 0 | 0 | 0.301587 | 0.174603 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b697d352270f4d5af09a28c0d438435fc0bb409c | 15,849 | py | Python | app.py | ruianfrp/Yolov3 | 8449b37e0ee5bffeacea555036ca52e3b4ae1531 | [
"MIT"
] | 2 | 2020-04-04T08:53:25.000Z | 2020-06-14T09:13:39.000Z | app.py | ruianfrp/Yolov3 | 8449b37e0ee5bffeacea555036ca52e3b4ae1531 | [
"MIT"
] | null | null | null | app.py | ruianfrp/Yolov3 | 8449b37e0ee5bffeacea555036ca52e3b4ae1531 | [
"MIT"
] | null | null | null | import keras
from PIL import Image
from flask import Flask, request, jsonify
from flask_cors import CORS
from itsdangerous import Serializer
from concurrent.futures import ThreadPoolExecutor
from flask_apscheduler import APScheduler
import token_authorization
import AesCipher
import mysql
import functools
from yolo ... | 34.37961 | 109 | 0.546659 | 1,711 | 15,849 | 4.934541 | 0.150205 | 0.053299 | 0.094635 | 0.082554 | 0.513443 | 0.443207 | 0.3982 | 0.360535 | 0.336373 | 0.326898 | 0 | 0.021198 | 0.300524 | 15,849 | 460 | 110 | 34.454348 | 0.740393 | 0.015585 | 0 | 0.408629 | 0 | 0 | 0.149608 | 0.004495 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043147 | false | 0.017767 | 0.030457 | 0 | 0.203046 | 0.002538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6980fb0608d22d689e43b123d9af449a3000f0b | 1,350 | py | Python | 1d_unconstrained_optimization/golden_section_algorithm.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | null | null | null | 1d_unconstrained_optimization/golden_section_algorithm.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | 1 | 2021-06-02T10:07:26.000Z | 2021-06-03T10:23:46.000Z | 1d_unconstrained_optimization/golden_section_algorithm.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | null | null | null | """
golden_section_algorithm.py
Returns the reduced uncertainty interval containing the minimizer of the function
func - anonimous function
interval0 - initial uncertainty interval
N_iter - number of iterations
"""
import math
import numpy as np
def golden_section_algorithm_calc_N_iter(interval0, uncertainty_range_d... | 27 | 100 | 0.56963 | 179 | 1,350 | 4.005587 | 0.301676 | 0.112971 | 0.027894 | 0.07113 | 0.171548 | 0.171548 | 0.149233 | 0.149233 | 0.149233 | 0.149233 | 0 | 0.022002 | 0.326667 | 1,350 | 49 | 101 | 27.55102 | 0.766777 | 0.153333 | 0 | 0.193548 | 0 | 0 | 0.003524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b699c359961ff4c5fe1e7486390fb0c95dd99241 | 1,132 | py | Python | constants.py | JNPRAutomate/unicast2multicast-translator | d400d71745eec8f5ae7933be54a5505460173dea | [
"MIT"
] | 3 | 2021-09-30T18:07:54.000Z | 2021-10-03T01:48:17.000Z | constants.py | JNPRAutomate/unicast2multicast-translator | d400d71745eec8f5ae7933be54a5505460173dea | [
"MIT"
] | 1 | 2021-09-20T21:08:51.000Z | 2021-09-20T21:08:51.000Z | constants.py | JNPRAutomate/unicast2multicast-translator | d400d71745eec8f5ae7933be54a5505460173dea | [
"MIT"
] | null | null | null | import ipaddress
# =============================================== DEFAULT CONFIGURATION ================================================
# Default port to bind the translator's unicast server socket to.
DEFAULT_UNICAST_SRV_PORT = 9001
# Default address space to pick multicast destination addresses (groups) from for t... | 62.888889 | 120 | 0.659011 | 133 | 1,132 | 5.518797 | 0.518797 | 0.020436 | 0.036785 | 0.118529 | 0.333787 | 0.333787 | 0.243869 | 0.243869 | 0.147139 | 0.147139 | 0 | 0.017875 | 0.110424 | 1,132 | 17 | 121 | 66.588235 | 0.711023 | 0.732332 | 0 | 0 | 0 | 0 | 0.232082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b69ae3c3a05b82d7c34897a18e9776d203764a57 | 1,710 | py | Python | Intelectual systems [8th semester] /lab1/bot.py | mstrechen/labs | e86b390bf68dc708df72c7fae6a46d9ad70a4225 | [
"MIT"
] | null | null | null | Intelectual systems [8th semester] /lab1/bot.py | mstrechen/labs | e86b390bf68dc708df72c7fae6a46d9ad70a4225 | [
"MIT"
] | null | null | null | Intelectual systems [8th semester] /lab1/bot.py | mstrechen/labs | e86b390bf68dc708df72c7fae6a46d9ad70a4225 | [
"MIT"
] | 2 | 2019-10-23T11:54:37.000Z | 2022-02-05T15:51:34.000Z | import typing as t
import logging
from telegram import Update
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, CallbackContext
# Enable logging
logging.basicConfig(
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO
)
logger = logging.getLogger(__name__)
... | 32.264151 | 97 | 0.711111 | 203 | 1,710 | 5.82266 | 0.280788 | 0.087986 | 0.096447 | 0.172589 | 0.328257 | 0.296108 | 0.287648 | 0.287648 | 0.253807 | 0 | 0 | 0 | 0.176023 | 1,710 | 53 | 98 | 32.264151 | 0.838893 | 0.008187 | 0 | 0.121212 | 0 | 0 | 0.070206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.121212 | 0 | 0.424242 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b69b9ca24f2fb2208c924db77c7c45f56668f4d1 | 19,059 | py | Python | src/Tools/CodeGenerator/Plugins/SharedLibraryPluginImpl/VectorTypeInfo.py | Bhaskers-Blu-Org2/FeaturizersLibrary | 229ae38ea233bfb02a6ff92ec3a67c1751c58005 | [
"MIT"
] | 15 | 2019-12-14T07:54:18.000Z | 2021-03-14T14:53:28.000Z | src/Tools/CodeGenerator/Plugins/SharedLibraryPluginImpl/VectorTypeInfo.py | Bhaskers-Blu-Org2/FeaturizersLibrary | 229ae38ea233bfb02a6ff92ec3a67c1751c58005 | [
"MIT"
] | 30 | 2019-12-03T20:58:56.000Z | 2020-04-21T23:34:39.000Z | src/Tools/CodeGenerator/Plugins/SharedLibraryPluginImpl/VectorTypeInfo.py | microsoft/FeaturizersLibrary | 229ae38ea233bfb02a6ff92ec3a67c1751c58005 | [
"MIT"
] | 13 | 2020-01-23T00:18:47.000Z | 2021-10-04T17:46:45.000Z | # ----------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License
# ----------------------------------------------------------------------
"""Contains the VectorTypeInfo object"""
import os
import re
import text... | 38.659229 | 153 | 0.4389 | 1,460 | 19,059 | 5.500685 | 0.14589 | 0.019176 | 0.011207 | 0.016187 | 0.359233 | 0.263977 | 0.224505 | 0.190138 | 0.175819 | 0.104844 | 0 | 0.003434 | 0.404061 | 19,059 | 492 | 154 | 38.737805 | 0.703645 | 0.103153 | 0 | 0.423529 | 0 | 0 | 0.070156 | 0.018462 | 0 | 0 | 0 | 0.002033 | 0.032353 | 1 | 0.020588 | false | 0 | 0.023529 | 0 | 0.073529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b69ef294d653b88033a59117fedccaa5a2a0264b | 73 | py | Python | ai/algorithms/reinforcement_learning/monte_carlo/__init__.py | rbak/ai-implementations | 5b773c23a5582b05b8aef55ea70e800cf4ffa376 | [
"MIT"
] | null | null | null | ai/algorithms/reinforcement_learning/monte_carlo/__init__.py | rbak/ai-implementations | 5b773c23a5582b05b8aef55ea70e800cf4ffa376 | [
"MIT"
] | null | null | null | ai/algorithms/reinforcement_learning/monte_carlo/__init__.py | rbak/ai-implementations | 5b773c23a5582b05b8aef55ea70e800cf4ffa376 | [
"MIT"
] | null | null | null | from .monte_carlo_prediction import *
from .monte_carlo_control import *
| 24.333333 | 37 | 0.835616 | 10 | 73 | 5.7 | 0.6 | 0.315789 | 0.491228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109589 | 73 | 2 | 38 | 36.5 | 0.876923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
b69f3824da0ab5aa5a2c7170f38eadf490e1df95 | 1,935 | py | Python | rediserver/test/server.py | r2evans/rediserver | 329c24f3f57c99b00c25e89387790038c328ed1b | [
"MIT"
] | 28 | 2018-02-13T12:45:00.000Z | 2022-03-16T04:27:07.000Z | rediserver/test/server.py | r2evans/rediserver | 329c24f3f57c99b00c25e89387790038c328ed1b | [
"MIT"
] | 1 | 2018-02-16T09:56:50.000Z | 2018-02-16T09:56:50.000Z | rediserver/test/server.py | r2evans/rediserver | 329c24f3f57c99b00c25e89387790038c328ed1b | [
"MIT"
] | 2 | 2018-08-12T12:50:23.000Z | 2019-05-10T16:16:49.000Z | import os
import inspect
from copy import deepcopy
from tempfile import TemporaryDirectory
from functools import wraps
from ..server import run_threaded
class RedisServer:
def __init__(self):
self.stop_loop = None
self.tempdir = None
self.thread = None
def __call__(self, func):
... | 23.888889 | 89 | 0.553488 | 208 | 1,935 | 4.942308 | 0.331731 | 0.038911 | 0.046693 | 0.031128 | 0.229572 | 0.229572 | 0.16537 | 0.16537 | 0.093385 | 0.093385 | 0 | 0 | 0.358656 | 1,935 | 80 | 90 | 24.1875 | 0.828364 | 0 | 0 | 0.305085 | 0 | 0 | 0.005168 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 1 | 0.220339 | false | 0.016949 | 0.101695 | 0.050847 | 0.542373 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b6a1c2ab8cd5b17863bf873dabf0a5085e350658 | 2,492 | py | Python | reque.py | parserpp/ppppppppppp | a1c1ef1d252e7cf652e90465649483b728bf9839 | [
"MIT"
] | null | null | null | reque.py | parserpp/ppppppppppp | a1c1ef1d252e7cf652e90465649483b728bf9839 | [
"MIT"
] | null | null | null | reque.py | parserpp/ppppppppppp | a1c1ef1d252e7cf652e90465649483b728bf9839 | [
"MIT"
] | null | null | null | import time
import requests
import urllib3
from lxml import etree
from requests.models import Response
from requests.packages.urllib3.exceptions import InsecureRequestWarning
urllib3.disable_warnings()
requests.packages.urllib3.disable_warnings()
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
fro... | 28 | 97 | 0.532905 | 249 | 2,492 | 5.232932 | 0.369478 | 0.073676 | 0.039908 | 0.058327 | 0.1934 | 0.175748 | 0.175748 | 0.175748 | 0.069071 | 0 | 0 | 0.016026 | 0.373997 | 2,492 | 88 | 98 | 28.318182 | 0.819231 | 0.111958 | 0 | 0.28125 | 0 | 0 | 0.036933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.109375 | 0 | 0.390625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6a456d569704179a69c2734a46c283edcb8c45d | 1,306 | py | Python | spellvardetection/webapi/resources.py | fab-bar/SpellvarDetection | 624f472f9eec9636650bace9c091ba1fe9cda313 | [
"MIT"
] | 1 | 2019-11-08T08:02:21.000Z | 2019-11-08T08:02:21.000Z | spellvardetection/webapi/resources.py | fab-bar/SpellvarDetection | 624f472f9eec9636650bace9c091ba1fe9cda313 | [
"MIT"
] | null | null | null | spellvardetection/webapi/resources.py | fab-bar/SpellvarDetection | 624f472f9eec9636650bace9c091ba1fe9cda313 | [
"MIT"
] | null | null | null | import os
import shutil
import click
from flask import current_app
from flask.cli import AppGroup
### CLI for management of additional resources
res_cli = AppGroup('resources', short_help='Manage additional resources used by SpellvarDetection.')
@res_cli.command('list')
def list_resources():
"List existing reso... | 27.787234 | 102 | 0.683767 | 172 | 1,306 | 5.075581 | 0.354651 | 0.057274 | 0.07331 | 0.114548 | 0.339061 | 0.272623 | 0.272623 | 0.16953 | 0.080183 | 0 | 0 | 0 | 0.18683 | 1,306 | 46 | 103 | 28.391304 | 0.822034 | 0.079632 | 0 | 0.371429 | 0 | 0 | 0.240476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.142857 | 0 | 0.257143 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6a965062e5afc5623bfcef05658f50d3355f266 | 6,919 | py | Python | src/summarizeRankings.py | dentearl/assemblAnalysis | c8524456dff720d37356c55d7640687415bc1df6 | [
"MIT"
] | 1 | 2020-11-12T06:32:26.000Z | 2020-11-12T06:32:26.000Z | src/summarizeRankings.py | dentearl/assemblAnalysis | c8524456dff720d37356c55d7640687415bc1df6 | [
"MIT"
] | null | null | null | src/summarizeRankings.py | dentearl/assemblAnalysis | c8524456dff720d37356c55d7640687415bc1df6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
summarizeRankings.py
dent earl, dearl (a) soe ucsc edu
27 April 2011
Python script to take a set of rankings files and aggregate their results.
"""
##############################
# Copyright (C) 2009-2011 by
# Dent Earl (dearl@soe.ucsc.edu, dent.earl@gmail.com)
# Benedict Paten (benedict@so... | 34.944444 | 96 | 0.581298 | 899 | 6,919 | 4.448276 | 0.298109 | 0.024756 | 0.03851 | 0.018755 | 0.094524 | 0.059515 | 0.014004 | 0 | 0 | 0 | 0 | 0.008183 | 0.29354 | 6,919 | 197 | 97 | 35.121827 | 0.809943 | 0.206677 | 0 | 0.152778 | 0 | 0 | 0.145034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027778 | null | null | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6a970b2171f56ad789b97a6380209b5c0b4639a | 34,014 | py | Python | dit_helpdesk/countries/migrations/0004_auto_20201021_1041.py | uktrade/dit-helpdesk | f5127daa46e920d33ec3f0b982136b65bba0353a | [
"MIT"
] | 3 | 2019-10-24T10:39:38.000Z | 2021-07-13T11:46:18.000Z | dit_helpdesk/countries/migrations/0004_auto_20201021_1041.py | uktrade/dit-helpdesk | f5127daa46e920d33ec3f0b982136b65bba0353a | [
"MIT"
] | 20 | 2020-01-22T11:16:24.000Z | 2022-02-02T10:38:54.000Z | dit_helpdesk/countries/migrations/0004_auto_20201021_1041.py | uktrade/dit-helpdesk | f5127daa46e920d33ec3f0b982136b65bba0353a | [
"MIT"
] | null | null | null | # Generated by Django 2.2.13 on 2020-10-21 09:41
from django.db import migrations
import logging
trade_data = [
{
"Country code": "CO",
"GOVUK FTA URL": "https://www.gov.uk/government/collections/uk-andean-countries-trade-agreement",
"Mendel agreement label": "ANDEAN-COUNTRIES",
"... | 32.210227 | 147 | 0.539278 | 3,569 | 34,014 | 5.13197 | 0.081535 | 0.105099 | 0.102097 | 0.222756 | 0.917613 | 0.901125 | 0.892608 | 0.887366 | 0.881251 | 0.881251 | 0 | 0.001711 | 0.29532 | 34,014 | 1,055 | 148 | 32.240758 | 0.762443 | 0.001352 | 0 | 0.457692 | 1 | 0.039423 | 0.590326 | 0.026438 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001923 | false | 0 | 0.001923 | 0 | 0.006731 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
b6abc4c54da088d5c140905ed4814491c96271ee | 719 | py | Python | integrationTests/get_standup_threads_test.py | Teaminator/standup-and-prosper-sdk.py | ccdba4a24f395dc0b45d9f9da9bdf5038e1b1617 | [
"Apache-2.0"
] | 1 | 2021-09-16T08:02:35.000Z | 2021-09-16T08:02:35.000Z | integrationTests/get_standup_threads_test.py | Teaminator/standup-and-prosper-sdk.py | ccdba4a24f395dc0b45d9f9da9bdf5038e1b1617 | [
"Apache-2.0"
] | 1 | 2021-06-14T16:45:56.000Z | 2021-06-14T16:56:05.000Z | integrationTests/get_standup_threads_test.py | Teaminator/standup-and-prosper-sdk.py | ccdba4a24f395dc0b45d9f9da9bdf5038e1b1617 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
import unittest
import nose
import time
from standup_and_prosper_sdk import ApiClient, StandupsApi
class GetStandupThreadsTest(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def get_standup_threads(self):
# Enable test
# def test_get_sta... | 19.972222 | 65 | 0.720445 | 88 | 719 | 5.534091 | 0.465909 | 0.143737 | 0.104723 | 0.086242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00173 | 0.196106 | 719 | 36 | 66 | 19.972222 | 0.84083 | 0.154381 | 0 | 0.142857 | 0 | 0 | 0.03204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.238095 | 0 | 0.428571 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b6abe6095de15d3b6a74511316430a41cae18b7f | 343 | py | Python | app.py | bameda/pharmap-api | 71f5353c19951a4350c3ace2855063093924f061 | [
"MIT"
] | null | null | null | app.py | bameda/pharmap-api | 71f5353c19951a4350c3ace2855063093924f061 | [
"MIT"
] | null | null | null | app.py | bameda/pharmap-api | 71f5353c19951a4350c3ace2855063093924f061 | [
"MIT"
] | null | null | null | from apistar import App
from apistar.commands import create_tables
from pharmap.commands import sample_data
from pharmap.storage.models import * # noqa
from pharmap.routes import routes
from pharmap.settings import settings
commands = [
create_tables,
sample_data,
]
app = App(routes=routes, settings=settin... | 20.176471 | 62 | 0.793003 | 45 | 343 | 5.955556 | 0.333333 | 0.164179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145773 | 343 | 16 | 63 | 21.4375 | 0.914676 | 0.011662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.545455 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b6ac8fa3607de31632714669b2afbc009736258a | 771 | py | Python | src/encoded/tests/test_upgrade_star_qc.py | KCL-ORG/encoded | 5a1904e948bfd652e8a8d52c6717d7fc0b56b681 | [
"MIT"
] | 4 | 2018-01-04T22:31:08.000Z | 2021-07-15T17:39:16.000Z | src/encoded/tests/test_upgrade_star_qc.py | KCL-ORG/encoded | 5a1904e948bfd652e8a8d52c6717d7fc0b56b681 | [
"MIT"
] | 38 | 2019-03-22T14:11:51.000Z | 2022-03-30T23:56:09.000Z | src/encoded/tests/test_upgrade_star_qc.py | KCL-ORG/encoded | 5a1904e948bfd652e8a8d52c6717d7fc0b56b681 | [
"MIT"
] | 10 | 2017-09-14T00:57:07.000Z | 2021-07-27T23:41:14.000Z | import pytest
@pytest.fixture
def star_quality_metric(pipeline, analysis_step_run, bam_file):
return {
'status': "finished",
'pipeline': pipeline['uuid'],
'step_run': analysis_step_run['uuid'],
'schema_version': '2',
'quality_metric_of': [bam_file['uuid']]
}
def test_... | 33.521739 | 72 | 0.603113 | 83 | 771 | 5.301205 | 0.433735 | 0.177273 | 0.193182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005357 | 0.273671 | 771 | 22 | 73 | 35.045455 | 0.780357 | 0 | 0 | 0 | 0 | 0 | 0.141375 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.111111 | false | 0 | 0.111111 | 0.055556 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6acc8f967fad42f11b205b325094dc3299810f3 | 1,759 | py | Python | ocr-server/ocr_server/lines.py | twerkmeister/table-annotator | 11bce00f28411a1ad047ba673d3e713060076943 | [
"MIT"
] | null | null | null | ocr-server/ocr_server/lines.py | twerkmeister/table-annotator | 11bce00f28411a1ad047ba673d3e713060076943 | [
"MIT"
] | null | null | null | ocr-server/ocr_server/lines.py | twerkmeister/table-annotator | 11bce00f28411a1ad047ba673d3e713060076943 | [
"MIT"
] | null | null | null | from typing import List
import numpy as np
import cv2
import scipy.signal
def find_line(image: np.ndarray, window_size: int = 30) -> np.ndarray:
"""Extracts a single line from the image"""
image_inverted = cv2.bitwise_not(image)
image_as_column = np.sum(image_inverted, axis=1)
window_values = [np.su... | 36.645833 | 83 | 0.699261 | 259 | 1,759 | 4.505792 | 0.297297 | 0.071979 | 0.044559 | 0.046272 | 0.173093 | 0.140531 | 0 | 0 | 0 | 0 | 0 | 0.019149 | 0.198408 | 1,759 | 47 | 84 | 37.425532 | 0.808511 | 0.046617 | 0 | 0 | 0 | 0 | 0.002401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.114286 | 0 | 0.228571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6ae1b0f0d22088c98982c121eae8e4affeac754 | 4,406 | py | Python | model.py | shaldev/java-builder-generator | 22c47067a058d6708910c869e41e1cfd66da9435 | [
"MIT"
] | null | null | null | model.py | shaldev/java-builder-generator | 22c47067a058d6708910c869e41e1cfd66da9435 | [
"MIT"
] | null | null | null | model.py | shaldev/java-builder-generator | 22c47067a058d6708910c869e41e1cfd66da9435 | [
"MIT"
] | null | null | null | package = 'org.bonadza.openrtb'
model = {
'bidResponse' : {
'id' : 'str',
'seatbid': [{
'bid' : [{
'id' : 'str',
'impid' : 'str',
'price' : 'float',
'adid' : 'str',
'nurl' : 'str',
'adm' : 'str',
'adomain' : 'str[]',
'bundle' : 'str',
'iurl' : 'str',
'cid' : 'str',
'c... | 19.073593 | 31 | 0.385611 | 396 | 4,406 | 4.287879 | 0.373737 | 0.084806 | 0.053004 | 0.04947 | 0.138987 | 0.062426 | 0.062426 | 0 | 0 | 0 | 0 | 0.003322 | 0.316841 | 4,406 | 231 | 32 | 19.073593 | 0.560797 | 0.004085 | 0 | 0.401747 | 0 | 0 | 0.397082 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6ae292cc8493ab3e2e2c6eb93e74e867f7a5a45 | 109 | py | Python | Tupleusinghash.py | bjoffficial/Python | 73e6fdc19a1bec18488405c4a60c30ba68581ce5 | [
"Apache-2.0"
] | null | null | null | Tupleusinghash.py | bjoffficial/Python | 73e6fdc19a1bec18488405c4a60c30ba68581ce5 | [
"Apache-2.0"
] | null | null | null | Tupleusinghash.py | bjoffficial/Python | 73e6fdc19a1bec18488405c4a60c30ba68581ce5 | [
"Apache-2.0"
] | null | null | null | if __name__ == '__main__':
n = int(input())
qus=tuple(map(int,input().split()))
print(hash(qus))
| 21.8 | 39 | 0.577982 | 15 | 109 | 3.666667 | 0.8 | 0.290909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192661 | 109 | 4 | 40 | 27.25 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0.073395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b6ae3b9a42fc929cb17efa0d2f10f351f17fc531 | 1,814 | py | Python | Task/Align-columns/Python/align-columns-2.py | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Align-columns/Python/align-columns-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Align-columns/Python/align-columns-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | from StringIO import StringIO
textinfile = '''Given$a$text$file$of$many$lines,$where$fields$within$a$line$
are$delineated$by$a$single$'dollar'$character,$write$a$program
that$aligns$each$column$of$fields$by$ensuring$that$words$in$each$
column$are$separated$by$at$least$one$space.
Further,$allow$for$each$word$in$a$colum... | 39.434783 | 101 | 0.708379 | 254 | 1,814 | 5.059055 | 0.425197 | 0.021012 | 0.028016 | 0.029572 | 0.129183 | 0.06537 | 0.06537 | 0.06537 | 0.06537 | 0.06537 | 0 | 0.002654 | 0.169239 | 1,814 | 45 | 102 | 40.311111 | 0.850033 | 0.076075 | 0 | 0 | 0 | 0.115385 | 0.33169 | 0.25 | 0 | 0 | 0 | 0 | 0.038462 | 0 | null | null | 0 | 0.038462 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6b0d58640e8ab5ad641a791c0e3af73049572b4 | 760 | py | Python | scripts/preprocess_glsl.py | Pandinosaurus/geojs | c38b3c91a597db84bbc74c2c915bb525a82aedc1 | [
"Apache-2.0"
] | 365 | 2015-01-28T12:07:22.000Z | 2022-03-27T14:17:10.000Z | scripts/preprocess_glsl.py | Pandinosaurus/geojs | c38b3c91a597db84bbc74c2c915bb525a82aedc1 | [
"Apache-2.0"
] | 699 | 2015-01-05T21:22:40.000Z | 2022-03-30T15:58:55.000Z | scripts/preprocess_glsl.py | manthey/geojs | 9f36165133f07c8fb08102e0b3459369a052f6a3 | [
"Apache-2.0"
] | 74 | 2015-02-23T14:08:13.000Z | 2022-03-17T23:37:05.000Z | #!/usr/bin/env python3
import argparse
import os
import re
import sys
def readSource(source):
data = open(source).read()
parts = re.split('(\\$[-.\\w]+)', data)
for idx, chunk in enumerate(parts):
if chunk.startswith('$') and len(chunk) > 1:
parts[idx] = readSource(os.path.join(os.pat... | 29.230769 | 95 | 0.651316 | 100 | 760 | 4.85 | 0.63 | 0.028866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0.202632 | 760 | 25 | 96 | 30.4 | 0.79538 | 0.027632 | 0 | 0 | 0 | 0 | 0.227642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6b0f5fa7387a72c8d23e89c64d1524c5f61c96b | 286 | py | Python | test/task_1/fixtures/__init__.py | Quinlys/-Yakymiv_Igor--tasks | 4992ca5fd050ed35f060b5b22ed05133be5c1d5a | [
"MIT"
] | 2 | 2018-06-15T08:06:09.000Z | 2018-06-24T12:28:07.000Z | test/task_1/fixtures/__init__.py | Quinlys/-Yakymiv_Igor--tasks | 4992ca5fd050ed35f060b5b22ed05133be5c1d5a | [
"MIT"
] | null | null | null | test/task_1/fixtures/__init__.py | Quinlys/-Yakymiv_Igor--tasks | 4992ca5fd050ed35f060b5b22ed05133be5c1d5a | [
"MIT"
] | 1 | 2018-06-15T14:41:23.000Z | 2018-06-15T14:41:23.000Z | import os
import json
_location = os.path.realpath(
os.path.join(os.getcwd(), os.path.dirname(__file__)))
with open(os.path.join(_location, 'small.json')) as f:
fixtures = json.load(f)
with open(os.path.join(_location, '1000.json')) as f:
fixtures['1000'] = json.load(f)
| 23.833333 | 57 | 0.681818 | 46 | 286 | 4.086957 | 0.391304 | 0.159574 | 0.159574 | 0.148936 | 0.276596 | 0.276596 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0.13986 | 286 | 11 | 58 | 26 | 0.731707 | 0 | 0 | 0 | 0 | 0 | 0.08042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6b2392dc515104106ac7e7d4892cd8bdc2834dc | 4,102 | py | Python | views.py | rajeev/lifeflow | b1de2a7b5b8a89042c1440b3e38092ef1241b9ca | [
"MIT"
] | 2 | 2015-11-24T08:51:46.000Z | 2016-05-08T10:24:42.000Z | views.py | rajeev/lifeflow | b1de2a7b5b8a89042c1440b3e38092ef1241b9ca | [
"MIT"
] | null | null | null | views.py | rajeev/lifeflow | b1de2a7b5b8a89042c1440b3e38092ef1241b9ca | [
"MIT"
] | null | null | null | """
Views.py
Author: Will Larson
Contact: lethain@gmail.com
Contains one custom view for displaying articles.
Mostly necessary to presort the articles in order
of descending size.
"""
import datetime, time, random, cgi, md5
from django.template import RequestContext
from django.shortcuts import render_to_response
f... | 32.555556 | 114 | 0.638957 | 512 | 4,102 | 5.015625 | 0.292969 | 0.047118 | 0.043614 | 0.051402 | 0.242212 | 0.136293 | 0.136293 | 0.075545 | 0.075545 | 0.043614 | 0 | 0.011498 | 0.236714 | 4,102 | 125 | 115 | 32.816 | 0.808687 | 0.102877 | 0 | 0.229885 | 0 | 0 | 0.090859 | 0.024557 | 0 | 0 | 0 | 0.008 | 0 | 1 | 0.08046 | false | 0 | 0.091954 | 0.011494 | 0.264368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6b24cefc57188b709e820b0bf006c36f34376a7 | 20,566 | py | Python | singlecelltool.py | MattiazziLab/singlecelltool | 0084709448ab851010ba488e3e4cc1d95422862e | [
"MIT"
] | null | null | null | singlecelltool.py | MattiazziLab/singlecelltool | 0084709448ab851010ba488e3e4cc1d95422862e | [
"MIT"
] | null | null | null | singlecelltool.py | MattiazziLab/singlecelltool | 0084709448ab851010ba488e3e4cc1d95422862e | [
"MIT"
] | 1 | 2021-06-09T23:37:03.000Z | 2021-06-09T23:37:03.000Z | from PIL import ImageTk, Image
from tkinter import filedialog, messagebox
import tkinter as tk
import pandas as pd
import numpy as np
import platform
import math
import os
import traceback
class Menu:
def __init__(self, main):
self.main = main
self.main.title("Single Cell Labelling Tool")
... | 51.159204 | 132 | 0.596616 | 2,475 | 20,566 | 4.803232 | 0.147879 | 0.059724 | 0.019684 | 0.016824 | 0.408059 | 0.318977 | 0.244196 | 0.213493 | 0.129795 | 0.082015 | 0 | 0.018561 | 0.284839 | 20,566 | 401 | 133 | 51.286783 | 0.789706 | 0.035495 | 0 | 0.150769 | 0 | 0 | 0.065657 | 0.00545 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043077 | false | 0 | 0.027692 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6b2bc0d26323630fc0b85b1c23c05a20eeee527 | 176 | py | Python | web/04_user/sample.py | testdrivenio/docker-python-devs | e3aba3f07f1386aea041a494b9729e9135e0f01c | [
"MIT"
] | 43 | 2018-06-14T19:33:19.000Z | 2022-03-15T16:13:03.000Z | web/04_user/sample.py | Scaleframe/docker-python-devs | e3aba3f07f1386aea041a494b9729e9135e0f01c | [
"MIT"
] | 1 | 2020-06-02T02:44:47.000Z | 2020-06-02T02:44:47.000Z | web/04_user/sample.py | Scaleframe/docker-python-devs | e3aba3f07f1386aea041a494b9729e9135e0f01c | [
"MIT"
] | 10 | 2018-06-16T22:13:27.000Z | 2021-08-23T01:03:29.000Z | from flask import Flask, jsonify
app = Flask(__name__)
@app.route('/ping')
def pong():
return jsonify('pong!')
if __name__ == '__main__':
app.run(host='0.0.0.0')
| 12.571429 | 32 | 0.630682 | 26 | 176 | 3.807692 | 0.615385 | 0.060606 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.181818 | 176 | 13 | 33 | 13.538462 | 0.659722 | 0 | 0 | 0 | 0 | 0 | 0.142045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 2 |
b6b326441a9a486ddfcf807ab05bc6fc1032ac9c | 761 | py | Python | rss_temple/api/migrations/0006_dedup_feedentries_20210401.py | murrple-1/rss_temple | 289197923b1e7d1213f1673d164337df17d7269b | [
"MIT"
] | null | null | null | rss_temple/api/migrations/0006_dedup_feedentries_20210401.py | murrple-1/rss_temple | 289197923b1e7d1213f1673d164337df17d7269b | [
"MIT"
] | 8 | 2019-12-04T21:58:35.000Z | 2021-12-15T02:29:49.000Z | rss_temple/api/migrations/0006_dedup_feedentries_20210401.py | murrple-1/rss_temple | 289197923b1e7d1213f1673d164337df17d7269b | [
"MIT"
] | null | null | null | from django.db import migrations
def _forward_func_deduplication_feed_entries(apps, schema_editor):
FeedEntry = apps.get_model('api', 'FeedEntry')
unique_set = set()
delete_list = []
for feed_entry in FeedEntry.objects.all():
unique_desc = (feed_entry.feed_id, feed_entry.url,
... | 24.548387 | 71 | 0.660972 | 89 | 761 | 5.280899 | 0.505618 | 0.134043 | 0.102128 | 0.119149 | 0.148936 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02807 | 0.250986 | 761 | 30 | 72 | 25.366667 | 0.796491 | 0 | 0 | 0 | 0 | 0 | 0.049934 | 0.030223 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6b345764f47a7302a2c81d9799fa2f3bd3b99c4 | 1,931 | py | Python | backend/users/migrations/0003_auto_20220226_0851.py | crowdbotics-apps/myclub-33848 | 3f02f80851419194beb68f6b0caf7630ff10593f | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | backend/users/migrations/0003_auto_20220226_0851.py | crowdbotics-apps/myclub-33848 | 3f02f80851419194beb68f6b0caf7630ff10593f | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | backend/users/migrations/0003_auto_20220226_0851.py | crowdbotics-apps/myclub-33848 | 3f02f80851419194beb68f6b0caf7630ff10593f | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | # Generated by Django 2.2.26 on 2022-02-26 08:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0002_auto_20220225_1606"),
]
operations = [
migrations.AddField(
model_name="user",
name="adresse",
... | 30.171875 | 75 | 0.548421 | 181 | 1,931 | 5.756906 | 0.292818 | 0.086372 | 0.12476 | 0.163148 | 0.664107 | 0.664107 | 0.630518 | 0.630518 | 0.545106 | 0.545106 | 0 | 0.034029 | 0.330399 | 1,931 | 63 | 76 | 30.650794 | 0.771848 | 0.023822 | 0 | 0.631579 | 1 | 0 | 0.081253 | 0.012215 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017544 | 0 | 0.070175 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b6b4835ba5f75adf5f813973c0f5683e69a19a3d | 409 | py | Python | conventional/util/io.py | multimac/Conventional | c74aed7458cbba795dde373385cae0c654835cbc | [
"MIT"
] | 6 | 2020-06-24T23:08:09.000Z | 2021-12-25T00:53:10.000Z | conventional/util/io.py | multimac/Conventional | c74aed7458cbba795dde373385cae0c654835cbc | [
"MIT"
] | 2 | 2021-07-06T20:31:55.000Z | 2022-03-17T13:01:13.000Z | conventional/util/io.py | multimac/Conventional | c74aed7458cbba795dde373385cae0c654835cbc | [
"MIT"
] | 1 | 2021-01-22T16:50:59.000Z | 2021-01-22T16:50:59.000Z | import datetime
from typing import Any
import dateutil.tz
def json_defaults(obj: Any) -> str:
"""JSON serializer for objects not serializable by default json code"""
if isinstance(obj, datetime.datetime):
return obj.astimezone(dateutil.tz.UTC).isoformat()
elif isinstance(obj, datetime.date):
... | 25.5625 | 75 | 0.709046 | 53 | 409 | 5.45283 | 0.603774 | 0.069204 | 0.145329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188264 | 409 | 15 | 76 | 27.266667 | 0.870482 | 0.158924 | 0 | 0 | 0 | 0 | 0.071006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b6b792498459995b89df7fac86e7a4c838ae82e7 | 6,200 | py | Python | setup.py | bark-simulator/bark-ml | 68a4244e91779667c98396c51ee713676bf1dfea | [
"MIT"
] | 58 | 2019-10-07T12:10:27.000Z | 2022-03-01T08:08:47.000Z | setup.py | bark-simulator/bark-ml | 68a4244e91779667c98396c51ee713676bf1dfea | [
"MIT"
] | 31 | 2019-09-10T15:33:20.000Z | 2022-03-30T08:52:08.000Z | setup.py | bark-simulator/bark-ml | 68a4244e91779667c98396c51ee713676bf1dfea | [
"MIT"
] | 14 | 2019-10-01T08:23:37.000Z | 2021-12-16T15:55:38.000Z | from setuptools import setup, find_packages, Extension
import os
from setuptools import setup, find_packages, Extension
import os,sys
import os
import shlex
import shutil
import setuptools.command.build_ext
import setuptools.command.build_py
import setuptools.command.install
import setuptools.command.sdist
import setu... | 36.904762 | 146 | 0.67629 | 771 | 6,200 | 5.211414 | 0.372244 | 0.054754 | 0.023644 | 0.023892 | 0.123196 | 0.067944 | 0.041812 | 0.026879 | 0.026879 | 0 | 0 | 0.011944 | 0.216774 | 6,200 | 167 | 147 | 37.125749 | 0.815486 | 0.208226 | 0 | 0.07874 | 0 | 0 | 0.223611 | 0.053495 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055118 | false | 0 | 0.15748 | 0.015748 | 0.275591 | 0.007874 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcab1ef55255f164328a1ed4e5f9679cb1a3f825 | 8,198 | py | Python | ml_aos/david_net.py | jfcrenshaw/ml-aos | 762509a77d809954749aea9b2b4e594951255c47 | [
"MIT"
] | null | null | null | ml_aos/david_net.py | jfcrenshaw/ml-aos | 762509a77d809954749aea9b2b4e594951255c47 | [
"MIT"
] | null | null | null | ml_aos/david_net.py | jfcrenshaw/ml-aos | 762509a77d809954749aea9b2b4e594951255c47 | [
"MIT"
] | null | null | null | """Pytorch neural network to predict zernike coefficients from donut images.
My implementation of the network presented in David Thomas's PhD Thesis
at Stanford.
"""
import numpy as np
import torch
from torch import nn
class DavidNet(nn.Module):
"""Network to predict wavefront Zernike coefficients from donut ima... | 30.475836 | 78 | 0.580385 | 1,001 | 8,198 | 4.669331 | 0.216783 | 0.06119 | 0.020539 | 0.016688 | 0.284339 | 0.211596 | 0.18849 | 0.15169 | 0.129226 | 0.118742 | 0 | 0.014265 | 0.333008 | 8,198 | 268 | 79 | 30.589552 | 0.840527 | 0.491095 | 0 | 0.26087 | 0 | 0 | 0.001169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.032609 | 0 | 0.282609 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcac7fe96e0430e69411dd4b9572f3298d31e422 | 88 | py | Python | split_schedule/errors.py | sanders41/split-schedule | bf06b3c14f035f6057e4e3aeb8d9afaec65dce85 | [
"MIT"
] | null | null | null | split_schedule/errors.py | sanders41/split-schedule | bf06b3c14f035f6057e4e3aeb8d9afaec65dce85 | [
"MIT"
] | 90 | 2021-02-23T03:01:29.000Z | 2022-03-28T21:10:11.000Z | split_schedule/errors.py | sanders41/split-schedule | bf06b3c14f035f6057e4e3aeb8d9afaec65dce85 | [
"MIT"
] | null | null | null | class NoScheduleError(Exception):
pass
class SchedulingError(Exception):
pass
| 12.571429 | 33 | 0.75 | 8 | 88 | 8.25 | 0.625 | 0.393939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 88 | 6 | 34 | 14.666667 | 0.916667 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
fcac8a7fd254974b0cbabed36e8c59502bf09f6e | 2,229 | py | Python | utils.py | MattFerraro/radon | 795b74fd7d12e7c4a191646e6bdf9e0386c8e95e | [
"Apache-2.0"
] | 2 | 2018-11-08T03:30:55.000Z | 2021-09-19T01:40:14.000Z | utils.py | MattFerraro/radon | 795b74fd7d12e7c4a191646e6bdf9e0386c8e95e | [
"Apache-2.0"
] | null | null | null | utils.py | MattFerraro/radon | 795b74fd7d12e7c4a191646e6bdf9e0386c8e95e | [
"Apache-2.0"
] | 1 | 2018-12-30T04:07:17.000Z | 2018-12-30T04:07:17.000Z | # Description: A library of common utilities
# Author: Matt Ferraro
import numpy as np
import cv2
from scipy.signal import convolve2d
import matplotlib.pyplot as plt
def imagify(fft):
'''
2D ffts usually have real and imaginary components, and they also usually
have way too much dynamic range to be sensib... | 33.772727 | 79 | 0.696276 | 339 | 2,229 | 4.519174 | 0.439528 | 0.045692 | 0.018277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020173 | 0.221624 | 2,229 | 65 | 80 | 34.292308 | 0.862824 | 0.489906 | 0 | 0 | 0 | 0 | 0.028238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.166667 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
fcacbde3bba335a6b61bda2101f46d6c3839fe23 | 26,845 | py | Python | FastAutoAugment/utils/utils.py | ironluffy/fast-autoaugment | eaae5a6172afe28ba3053021c97e2cb09d170969 | [
"MIT"
] | null | null | null | FastAutoAugment/utils/utils.py | ironluffy/fast-autoaugment | eaae5a6172afe28ba3053021c97e2cb09d170969 | [
"MIT"
] | 12 | 2020-11-08T16:51:28.000Z | 2020-11-15T16:31:57.000Z | FastAutoAugment/utils/utils.py | ironluffy/fast-autoaugment | eaae5a6172afe28ba3053021c97e2cb09d170969 | [
"MIT"
] | null | null | null | import torch
import open3d
import os
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import itertools
import imageio
from torch.autograd import Variable
from src.utils import point_cloud_utils as pcu
from sklearn.metrics import confusion_matrix
def weights_init(m):
classname = m.__class__.__n... | 47.597518 | 119 | 0.620898 | 3,872 | 26,845 | 4.05501 | 0.100723 | 0.048405 | 0.01191 | 0.011592 | 0.404433 | 0.342526 | 0.295523 | 0.249729 | 0.220241 | 0.188714 | 0 | 0.022599 | 0.241758 | 26,845 | 563 | 120 | 47.68206 | 0.74876 | 0.01937 | 0 | 0.292 | 0 | 0 | 0.022847 | 0.000912 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048 | false | 0 | 0.024 | 0 | 0.104 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcaccf9b0138aa7d34d6785bbb98eec7ec092b2d | 811 | py | Python | utils/config.py | wuyue92tree/nice-you-get | 5c4962d27eb23656c14992e260ba94094a9728e6 | [
"MIT"
] | null | null | null | utils/config.py | wuyue92tree/nice-you-get | 5c4962d27eb23656c14992e260ba94094a9728e6 | [
"MIT"
] | null | null | null | utils/config.py | wuyue92tree/nice-you-get | 5c4962d27eb23656c14992e260ba94094a9728e6 | [
"MIT"
] | null | null | null | import os
import json
from conf.settings import CONFIG_PATH, HOME_DIR
class Config(object):
def __init__(self) -> None:
super().__init__()
self.default_config = {
'save_path': os.path.join(HOME_DIR, 'media'),
'insecure': 0,
'merge': 0,
'caption': 0
... | 25.34375 | 69 | 0.557337 | 106 | 811 | 4.09434 | 0.509434 | 0.092166 | 0.078341 | 0.082949 | 0.069124 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010695 | 0.308261 | 811 | 32 | 70 | 25.34375 | 0.762923 | 0 | 0 | 0 | 0 | 0 | 0.05665 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcace69d7de7f766d27633336fe279118aaefec0 | 1,090 | py | Python | handlers/shorties.py | pythononwheels/twittercomments | b35feb0efdd40b191a7b20c6c86fe2eb9233697f | [
"MIT"
] | null | null | null | handlers/shorties.py | pythononwheels/twittercomments | b35feb0efdd40b191a7b20c6c86fe2eb9233697f | [
"MIT"
] | null | null | null | handlers/shorties.py | pythononwheels/twittercomments | b35feb0efdd40b191a7b20c6c86fe2eb9233697f | [
"MIT"
] | null | null | null | import tornado.ioloop
import tornado.web
from twittercomments.handlers.powhandler import PowHandler
from twittercomments.application import app
from twittercomments.as_dash import dispatcher
from twittercomments.models.tinydb.tweet import Tweet
#
# you can use regex in the routes as well:
# (r"/([^/]+)/(.+)", ObjectHa... | 35.16129 | 96 | 0.705505 | 143 | 1,090 | 5.314685 | 0.629371 | 0.1 | 0.028947 | 0.036842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013115 | 0.16055 | 1,090 | 30 | 97 | 36.333333 | 0.817486 | 0.36789 | 0 | 0 | 0 | 0 | 0.131852 | 0.031111 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.4 | 0.066667 | 0.733333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fcad268505923f6abed1ba916aa0220d82115bca | 9,807 | py | Python | _modules/nexus3_privileges.py | jsandas/saltstack-nexus3-module | e090dfe18cd3b5d90d1c71b0747ff150eb96e328 | [
"MIT"
] | 1 | 2020-11-15T00:18:55.000Z | 2020-11-15T00:18:55.000Z | _modules/nexus3_privileges.py | jsandas/saltstack-nexus3-module | e090dfe18cd3b5d90d1c71b0747ff150eb96e328 | [
"MIT"
] | 1 | 2020-11-21T19:08:07.000Z | 2020-11-21T19:14:37.000Z | _modules/nexus3_privileges.py | jsandas/saltstack-nexus3-module | e090dfe18cd3b5d90d1c71b0747ff150eb96e328 | [
"MIT"
] | null | null | null | ''''
execution module for Nexus 3 security privileges
:version: v0.2.1
:configuration: In order to connect to Nexus 3, certain configuration is required
in /etc/salt/minion on the relevant minions.
Example:
nexus3:
hostname: '127.0.0.1:8081'
username: 'admin'
password: 'admin123... | 25.807895 | 238 | 0.595187 | 1,028 | 9,807 | 5.64786 | 0.148833 | 0.026524 | 0.025835 | 0.035653 | 0.59783 | 0.562694 | 0.542714 | 0.523424 | 0.512401 | 0.473131 | 0 | 0.006696 | 0.284287 | 9,807 | 380 | 239 | 25.807895 | 0.820487 | 0.379933 | 0 | 0.391061 | 0 | 0 | 0.21778 | 0.008592 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027933 | false | 0 | 0.01676 | 0 | 0.106145 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcaeccdb0846e01e452459cb3c95056d0b54137e | 19,169 | py | Python | app.py | vadim566/LARAextantion | 6551429d977702e17a9e0e7ef16b373f353192b2 | [
"MIT"
] | null | null | null | app.py | vadim566/LARAextantion | 6551429d977702e17a9e0e7ef16b373f353192b2 | [
"MIT"
] | null | null | null | app.py | vadim566/LARAextantion | 6551429d977702e17a9e0e7ef16b373f353192b2 | [
"MIT"
] | null | null | null | #from GoogleImageScrapper import *
import random
from GoogleImageScrapper import GoogleImageScraper
from patch import *
import os
from os import listdir
from os.path import join, isdir, isfile
from flask import Flask, render_template, send_from_directory, redirect, Response, url_for
import SVN.trunk.Code.Python.lara_u... | 32.108878 | 243 | 0.699828 | 2,757 | 19,169 | 4.633297 | 0.114617 | 0.039455 | 0.018318 | 0.017222 | 0.749804 | 0.718647 | 0.681149 | 0.660013 | 0.64279 | 0.631909 | 0 | 0.016921 | 0.161406 | 19,169 | 596 | 244 | 32.162752 | 0.777729 | 0.144765 | 0 | 0.581633 | 0 | 0.003401 | 0.125155 | 0.049151 | 0 | 0 | 0 | 0.006711 | 0 | 1 | 0.095238 | false | 0.003401 | 0.030612 | 0.034014 | 0.22449 | 0.037415 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fcaf861bcc515b67dfa9fe42cad17a8ff98ba4be | 1,708 | py | Python | Least_Common_Ancestor.py | cjdekker/Tree_Exercises | 30350626bfb146dc5affb51f6ab4f2a067832d4b | [
"MIT"
] | null | null | null | Least_Common_Ancestor.py | cjdekker/Tree_Exercises | 30350626bfb146dc5affb51f6ab4f2a067832d4b | [
"MIT"
] | null | null | null | Least_Common_Ancestor.py | cjdekker/Tree_Exercises | 30350626bfb146dc5affb51f6ab4f2a067832d4b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[2]:
def find_LCAs(parent):
LCA = dict() # This is the nested dictionary
def lca(u, v):
if u in list(LCA.keys()):
if v in list(LCA[u].keys()):
return
for i in list(parent[u]):
lca(i,v)
ul = [u]
... | 23.39726 | 100 | 0.379977 | 235 | 1,708 | 2.757447 | 0.217021 | 0.050926 | 0.083333 | 0.074074 | 0.398148 | 0.256173 | 0.256173 | 0.256173 | 0.256173 | 0.256173 | 0 | 0.002265 | 0.483021 | 1,708 | 72 | 101 | 23.722222 | 0.731597 | 0.101288 | 0 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb0aac9f660d4912d9fc1b07d9b54eabce822d8 | 290 | py | Python | samples/takePicture.py | windriver-codecamp/alpha_drone | 2845784b93296f1ff8d259418208d24202f05c5d | [
"MIT"
] | null | null | null | samples/takePicture.py | windriver-codecamp/alpha_drone | 2845784b93296f1ff8d259418208d24202f05c5d | [
"MIT"
] | null | null | null | samples/takePicture.py | windriver-codecamp/alpha_drone | 2845784b93296f1ff8d259418208d24202f05c5d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import cv2
import time
from djitellopy import Tello
tello = Tello()
tello.connect()
tello.streamon()
frame_read = tello.get_frame_read()
#tello.takeoff()
time.sleep(1)
cv2.imwrite("picture.png", frame_read.frame)
#tello.land()
tello.end() | 15.263158 | 44 | 0.717241 | 43 | 290 | 4.744186 | 0.604651 | 0.147059 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019455 | 0.113793 | 290 | 19 | 45 | 15.263158 | 0.774319 | 0.241379 | 0 | 0 | 0 | 0 | 0.050691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb1cc84b208a5f7c8a0147b44b6a2cf9aac9163 | 1,654 | py | Python | k2/python/k2/ragged/ops.py | pzelasko/k2 | 2dbb3e09b152fcf98354c946baa271e5b57c8321 | [
"Apache-2.0"
] | null | null | null | k2/python/k2/ragged/ops.py | pzelasko/k2 | 2dbb3e09b152fcf98354c946baa271e5b57c8321 | [
"Apache-2.0"
] | null | null | null | k2/python/k2/ragged/ops.py | pzelasko/k2 | 2dbb3e09b152fcf98354c946baa271e5b57c8321 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang)
#
# See ../../../../LICENSE for clarification regarding multiple authors
from typing import Tuple, Optional
from typing import Union
import torch
import _k2
def index(src: Union[_k2.RaggedArc, _k2.RaggedInt],
indexes: torch.Tensor,
... | 35.956522 | 76 | 0.613059 | 212 | 1,654 | 4.683962 | 0.386792 | 0.096677 | 0.080564 | 0.036254 | 0.221551 | 0.16717 | 0.16717 | 0.16717 | 0.098691 | 0.098691 | 0 | 0.018581 | 0.28416 | 1,654 | 45 | 77 | 36.755556 | 0.820101 | 0.620919 | 0 | 0 | 0 | 0 | 0 | 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 |
fcb287f343755fad071871dc930601e1e2bb056f | 3,849 | py | Python | padempdi.py | efurlanm/378 | d5c2ab0e80f2930867057c6c7ce9791e711c1391 | [
"MIT"
] | null | null | null | padempdi.py | efurlanm/378 | d5c2ab0e80f2930867057c6c7ce9791e711c1391 | [
"MIT"
] | null | null | null | padempdi.py | efurlanm/378 | d5c2ab0e80f2930867057c6c7ce9791e711c1391 | [
"MIT"
] | null | null | null | # CAP-378 Trabalho: PAD em PDI
# Uso: mpiexec -n <NTASKS> python3 padempdi.py
import numpy as np
from mpi4py import MPI
wt = MPI.Wtime() # "wall time" para cálculo do tempo decorrido
comm = MPI.COMM_WORLD # comunicador global (pode servir para definir grupos)
cpu = comm.Get_size() # total de ranks que o mp... | 46.939024 | 92 | 0.649519 | 587 | 3,849 | 4.23339 | 0.405451 | 0.020121 | 0.012072 | 0.01328 | 0.012072 | 0.012072 | 0 | 0 | 0 | 0 | 0 | 0.037723 | 0.25617 | 3,849 | 81 | 93 | 47.518519 | 0.829899 | 0.528709 | 0 | 0.181818 | 0 | 0 | 0.021011 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
fcb2a18761108cac8ef931cd2742ce63d5c4b447 | 1,167 | py | Python | terrapower/physics/neutronics/dragon/tests/dragonTestingApp.py | ntouran/dragon-armi-plugin | c43e39891f9c99b87ff8ff82bd2424acbe6afec0 | [
"Apache-2.0"
] | null | null | null | terrapower/physics/neutronics/dragon/tests/dragonTestingApp.py | ntouran/dragon-armi-plugin | c43e39891f9c99b87ff8ff82bd2424acbe6afec0 | [
"Apache-2.0"
] | 9 | 2019-11-16T01:17:41.000Z | 2021-11-22T15:47:19.000Z | terrapower/physics/neutronics/dragon/tests/dragonTestingApp.py | ntouran/dragon-armi-plugin | c43e39891f9c99b87ff8ff82bd2424acbe6afec0 | [
"Apache-2.0"
] | 2 | 2019-11-18T15:13:46.000Z | 2021-07-30T18:01:40.000Z | # Copyright 2019 TerraPower, LLC
#
# 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 writi... | 30.710526 | 76 | 0.672665 | 149 | 1,167 | 5.208054 | 0.61745 | 0.07732 | 0.033505 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00852 | 0.195373 | 1,167 | 37 | 77 | 31.540541 | 0.817891 | 0.600686 | 0 | 0.153846 | 0 | 0 | 0.260181 | 0.144796 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0.076923 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb2d5a562e178bc80b4b5511da52dbc782c577a | 635 | py | Python | DQM/HLTEvF/python/hltMonBTag_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DQM/HLTEvF/python/hltMonBTag_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DQM/HLTEvF/python/hltMonBTag_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
import DQM.HLTEvF.hltMonBTagIPSource_cfi
import DQM.HLTEvF.hltMonBTagMuSource_cfi
# definition of the Sources for 8E29
#hltMonBTagIP_Jet50U_Source = DQM.HLTEvF.hltMonBTagIPSource_cfi.hltMonBTagIPSource.clone()
#hltMonBTagMu_Jet10U_Source = DQM.HLTEvF.hltMonBTagMuSource_cfi.hlt... | 37.352941 | 90 | 0.848819 | 76 | 635 | 6.894737 | 0.5 | 0.103053 | 0.085878 | 0.114504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0189 | 0.083465 | 635 | 16 | 91 | 39.6875 | 0.881443 | 0.64252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fcb31fbe47519c56c2575ea13372b07701ee10b4 | 510 | py | Python | 2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/04-Text-Filter.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | 2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/04-Text-Filter.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | 2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/04-Text-Filter.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | # 4. Text Filter
# Write a program that takes a text and a string of banned words.
# All words included in the ban list should be replaced with asterisks "*", equal to the word's length. ' \
# 'The entries in the ban list will be separated by a comma and space ", ".
# The ban list should be entered on the first... | 34 | 107 | 0.692157 | 86 | 510 | 4.081395 | 0.534884 | 0.094017 | 0.08547 | 0.068376 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0025 | 0.215686 | 510 | 14 | 108 | 36.428571 | 0.875 | 0.705882 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb3567798e88484d6775c6425b603d48c728543 | 18,009 | py | Python | main.py | ghurone/tamacat | 70f0e4bb6d21cde993caa38ef7e047187b306d3d | [
"MIT"
] | null | null | null | main.py | ghurone/tamacat | 70f0e4bb6d21cde993caa38ef7e047187b306d3d | [
"MIT"
] | null | null | null | main.py | ghurone/tamacat | 70f0e4bb6d21cde993caa38ef7e047187b306d3d | [
"MIT"
] | null | null | null | import config.funcoes as cfunc
import config.saveload as csave
import config.janela as cjane
import config.gatos_ascii as cga
import objs.gatinho as ogato
import objs.geladeira as ogela
import objs.bau as obau
from random import randint, choice
from time import sleep
humores = ['feliz', 'triste', 'quieto', 'brincalhã... | 35.105263 | 133 | 0.470931 | 1,963 | 18,009 | 4.15894 | 0.180846 | 0.034297 | 0.051445 | 0.014699 | 0.28099 | 0.174057 | 0.109873 | 0.073126 | 0.073126 | 0.021803 | 0 | 0.019961 | 0.40191 | 18,009 | 512 | 134 | 35.173828 | 0.737722 | 0.038925 | 0 | 0.25 | 0 | 0.010989 | 0.193184 | 0.006666 | 0 | 0 | 0 | 0.001953 | 0 | 1 | 0.027473 | false | 0.002747 | 0.024725 | 0 | 0.087912 | 0.049451 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb3f35344db31559c493891a3016def67e71ee1 | 3,837 | py | Python | src/pyluxcoretools/pyluxcoretools/utils/netbeacon.py | OmidGhotbi/LuxCore | e83fb6bf2e2c0254e3c769ffc8e5546eb71f576a | [
"Apache-2.0"
] | 826 | 2017-12-12T15:38:16.000Z | 2022-03-28T07:12:40.000Z | src/pyluxcoretools/pyluxcoretools/utils/netbeacon.py | OmidGhotbi/LuxCore | e83fb6bf2e2c0254e3c769ffc8e5546eb71f576a | [
"Apache-2.0"
] | 531 | 2017-12-03T17:21:06.000Z | 2022-03-20T19:22:11.000Z | src/pyluxcoretools/pyluxcoretools/utils/netbeacon.py | OmidGhotbi/LuxCore | e83fb6bf2e2c0254e3c769ffc8e5546eb71f576a | [
"Apache-2.0"
] | 133 | 2017-12-13T18:46:10.000Z | 2022-03-27T16:21:00.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
################################################################################
# Copyright 1998-2018 by authors (see AUTHORS.txt)
#
# This file is part of LuxCoreRender.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except i... | 28.849624 | 99 | 0.691426 | 473 | 3,837 | 5.54334 | 0.35518 | 0.04958 | 0.02746 | 0.012204 | 0.318841 | 0.295957 | 0.276125 | 0.251716 | 0.218154 | 0.218154 | 0 | 0.009886 | 0.156372 | 3,837 | 132 | 100 | 29.068182 | 0.800124 | 0.23117 | 0 | 0.363636 | 0 | 0 | 0.113965 | 0.015919 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103896 | false | 0 | 0.064935 | 0 | 0.194805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb43a9aaebf1ad8cae7c5ffcb6ef4a11fa19aa8 | 389 | py | Python | api/main.py | debbie-chan/SPM | f84e62779347579287aee8a2e832f72dcc53b8dd | [
"MIT"
] | null | null | null | api/main.py | debbie-chan/SPM | f84e62779347579287aee8a2e832f72dcc53b8dd | [
"MIT"
] | null | null | null | api/main.py | debbie-chan/SPM | f84e62779347579287aee8a2e832f72dcc53b8dd | [
"MIT"
] | null | null | null | from flask import render_template
from .src.app import create_app
db_uri = (
"mongodb+srv://dbAdmin:Ve08ByJJOk5RNhWK@clusterlms.k10xd.mongodb.net/lms"
)
app = create_app(db_uri)
@app.route("/", defaults={"path": ""})
@app.route("/<path:path>")
def index(path):
return render_template("index.html")
if __name... | 21.611111 | 77 | 0.691517 | 57 | 389 | 4.473684 | 0.614035 | 0.023529 | 0.086275 | 0.109804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038123 | 0.123393 | 389 | 17 | 78 | 22.882353 | 0.709677 | 0 | 0 | 0 | 0 | 0 | 0.290488 | 0.182519 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0.083333 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb44301153a2a318071b686264e0d081c08940a | 2,189 | py | Python | inference.py | SolomidHero/voice-conversion-flask-heroku | 2b27f1e92dcd2d06723ab39382389fbe722c843d | [
"MIT"
] | null | null | null | inference.py | SolomidHero/voice-conversion-flask-heroku | 2b27f1e92dcd2d06723ab39382389fbe722c843d | [
"MIT"
] | null | null | null | inference.py | SolomidHero/voice-conversion-flask-heroku | 2b27f1e92dcd2d06723ab39382389fbe722c843d | [
"MIT"
] | null | null | null | import json
import torch
import sys
from common_utils import transform_audio
from engine.data import load_wav, log_mel_spectrogram, plot_mel, plot_attn
from engine.models import load_pretrained_wav2vec
from vocoder.env import AttrDict
sys.path.append("./vocoder")
from vocoder.models import Generator
device = torch.... | 29.581081 | 80 | 0.740978 | 327 | 2,189 | 4.712538 | 0.327217 | 0.046723 | 0.025308 | 0.033095 | 0.063595 | 0.035042 | 0 | 0 | 0 | 0 | 0 | 0.020148 | 0.138419 | 2,189 | 73 | 81 | 29.986301 | 0.796925 | 0.042942 | 0 | 0 | 0 | 0 | 0.169459 | 0.021541 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.156863 | 0 | 0.235294 | 0.156863 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb486efe8ea339f4620466cdeeeb1c8db201f10 | 452 | py | Python | redirector/main.py | dyakovri/redirector-api | cd576d9b27b4de5777dd2112e9e355e8585dc44e | [
"BSD-2-Clause"
] | 1 | 2022-03-23T17:56:15.000Z | 2022-03-23T17:56:15.000Z | redirector/main.py | dyakovri/redirector-api | cd576d9b27b4de5777dd2112e9e355e8585dc44e | [
"BSD-2-Clause"
] | null | null | null | redirector/main.py | dyakovri/redirector-api | cd576d9b27b4de5777dd2112e9e355e8585dc44e | [
"BSD-2-Clause"
] | null | null | null | from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from fastapi_sqlalchemy import DBSessionMiddleware
from .router import router
from .settings import get_settings
app = FastAPI()
app.add_middleware(DBSessionMiddleware, db_url=get_settings().DB_DSN)
app.add_middleware(
CORSMiddleware,
... | 25.111111 | 69 | 0.778761 | 53 | 452 | 6.415094 | 0.433962 | 0.097059 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121681 | 452 | 17 | 70 | 26.588235 | 0.856423 | 0 | 0 | 0 | 0 | 0 | 0.006637 | 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 |
fcb56437c8a13d8cdb0778f357f19d4d66ab7b36 | 9,761 | py | Python | openmdao.gui/src/openmdao/gui/omg.py | swryan/OpenMDAO-Framework | f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec | [
"Apache-2.0"
] | null | null | null | openmdao.gui/src/openmdao/gui/omg.py | swryan/OpenMDAO-Framework | f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec | [
"Apache-2.0"
] | null | null | null | openmdao.gui/src/openmdao/gui/omg.py | swryan/OpenMDAO-Framework | f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec | [
"Apache-2.0"
] | null | null | null | """ OpenMDAO GUI
This graphical user interface for OpenMDAO is implemented as a web application.
Running this file will start a tornado web server on a local port and open a
browser on that port. An up-to-date version of Chrome or Firefox with support
for WebSockets is required.
"""
import os
import signal
import s... | 36.151852 | 110 | 0.588259 | 1,092 | 9,761 | 5.130952 | 0.291209 | 0.018205 | 0.016063 | 0.009995 | 0.07139 | 0.042299 | 0.012493 | 0 | 0 | 0 | 0 | 0.003048 | 0.294232 | 9,761 | 269 | 111 | 36.286245 | 0.810277 | 0.047536 | 0 | 0.142045 | 0 | 0 | 0.193138 | 0.019156 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.113636 | null | null | 0.079545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fcb77d0da70d5d72ccf79ec2127cc2c4373c050d | 5,412 | py | Python | suica.py | hsgwa/nfcpy-suica-sample | 7903ec3546c3e11fef0c82b6316b357a7a4d585d | [
"MIT"
] | null | null | null | suica.py | hsgwa/nfcpy-suica-sample | 7903ec3546c3e11fef0c82b6316b357a7a4d585d | [
"MIT"
] | null | null | null | suica.py | hsgwa/nfcpy-suica-sample | 7903ec3546c3e11fef0c82b6316b357a7a4d585d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import binascii
import csv
import datetime
import os
import struct
import sys
import nfc
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/nfcpy')
num_blocks = 20
service_code = 0x090f
class StationRecord(object):
db = None
def __init__(self, row... | 29.736264 | 91 | 0.55765 | 644 | 5,412 | 4.495342 | 0.268634 | 0.017271 | 0.046978 | 0.017617 | 0.078411 | 0.044905 | 0.020725 | 0 | 0 | 0 | 0 | 0.029459 | 0.316334 | 5,412 | 181 | 92 | 29.900552 | 0.752973 | 0.034183 | 0 | 0.101449 | 0 | 0 | 0.050594 | 0 | 0 | 0 | 0.014182 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.057971 | 0.043478 | 0.282609 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb7d3280cecce6265b2df4ab52529db9861f61d | 1,760 | py | Python | raekwon/db.py | metheoryt/raekwon | 3330559a2b655436520fad3d7edf6c871d6e8460 | [
"MIT"
] | null | null | null | raekwon/db.py | metheoryt/raekwon | 3330559a2b655436520fad3d7edf6c871d6e8460 | [
"MIT"
] | null | null | null | raekwon/db.py | metheoryt/raekwon | 3330559a2b655436520fad3d7edf6c871d6e8460 | [
"MIT"
] | null | null | null | from datetime import datetime
import marshmallow as ma
import sqlalchemy as sa
from marshmallow import fields as f
from sqlalchemy import MetaData
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, scoped_session
metadata = MetaData()
Session = scoped_session(sessionmaker... | 28.387097 | 84 | 0.694318 | 235 | 1,760 | 5.07234 | 0.365957 | 0.017617 | 0.065436 | 0.071309 | 0.050336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198864 | 1,760 | 61 | 85 | 28.852459 | 0.84539 | 0.053409 | 0 | 0 | 0 | 0 | 0.014661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.170732 | 0 | 0.317073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcbb97830b78a5ce1b4a5754ca7c5afd3e05b7f0 | 3,963 | py | Python | app/FrontendMicroservice/main_frontend.py | AdavisSnakes/GrocerySaaS | 1d0b50d1c0d2e53b1bdb9fe57e94c6168b7e4c84 | [
"MIT"
] | null | null | null | app/FrontendMicroservice/main_frontend.py | AdavisSnakes/GrocerySaaS | 1d0b50d1c0d2e53b1bdb9fe57e94c6168b7e4c84 | [
"MIT"
] | null | null | null | app/FrontendMicroservice/main_frontend.py | AdavisSnakes/GrocerySaaS | 1d0b50d1c0d2e53b1bdb9fe57e94c6168b7e4c84 | [
"MIT"
] | null | null | null | #!/usr/bin/python3.7
import sys, json, os, stripe
from datetime import timedelta, datetime
from flask import Flask, render_template, redirect, request, escape, jsonify, flash, current_app
from flask_login import LoginManager, UserMixin, login_required, login_user, logout_user, current_user
from flask_wtf import CSRFPro... | 36.027273 | 102 | 0.726218 | 471 | 3,963 | 5.781316 | 0.248408 | 0.064635 | 0.058759 | 0.05729 | 0.364671 | 0.302975 | 0.263313 | 0.246787 | 0.226956 | 0.226956 | 0 | 0.006479 | 0.182185 | 3,963 | 110 | 103 | 36.027273 | 0.833693 | 0.010346 | 0 | 0.192771 | 0 | 0 | 0.06682 | 0.005356 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108434 | false | 0 | 0.120482 | 0 | 0.349398 | 0.036145 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcbc22574e8ecb6bb9fb93418299a40102fc9634 | 483 | py | Python | examples/decoupledibpm/sphere3d/Re350/scripts/create_body.py | barbagroup/petibm-examples | 794de3613967c14750c750aed386602c988cff05 | [
"BSD-3-Clause"
] | 2 | 2020-08-08T13:37:32.000Z | 2021-12-01T03:22:32.000Z | examples/decoupledibpm/sphere3d/Re350/scripts/create_body.py | barbagroup/petibm-examples | 794de3613967c14750c750aed386602c988cff05 | [
"BSD-3-Clause"
] | null | null | null | examples/decoupledibpm/sphere3d/Re350/scripts/create_body.py | barbagroup/petibm-examples | 794de3613967c14750c750aed386602c988cff05 | [
"BSD-3-Clause"
] | 2 | 2019-12-22T08:49:01.000Z | 2021-12-01T03:22:44.000Z | """Create a sphere."""
import pathlib
import sys
import petibmpy
rootdir = pathlib.Path(__file__).absolute().parents[5]
sys.path.insert(0, str(rootdir / 'misc'))
import icosphere
R = 0.5
sphere = icosphere.create_icosphere(25)
sphere.vertices *= R
sphere.print_info()
x, y, z = sphere.vertices.T
# Center the sphe... | 18.576923 | 54 | 0.706004 | 76 | 483 | 4.342105 | 0.460526 | 0.024242 | 0.027273 | 0.139394 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0358 | 0.132505 | 483 | 25 | 55 | 19.32 | 0.75179 | 0.113872 | 0 | 0 | 0 | 0 | 0.035545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.266667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcbc3d99f59af651cbfa762d00ff42cd63d6d739 | 1,129 | py | Python | examples/plot_therm.py | xavigisbeg/handy_plotter | 048a38dc8510b81df01348bf4e756fa846a977be | [
"MIT"
] | null | null | null | examples/plot_therm.py | xavigisbeg/handy_plotter | 048a38dc8510b81df01348bf4e756fa846a977be | [
"MIT"
] | null | null | null | examples/plot_therm.py | xavigisbeg/handy_plotter | 048a38dc8510b81df01348bf4e756fa846a977be | [
"MIT"
] | null | null | null | import context as HP
import os
OT = '2018_1101_B'
if (os.name == 'nt'):
pathData = '{}{}/{}'.format(
'//SERVIDORSQL/Datos/Desarrollos y pruebas/',
'Automatitzacio/Dades Proves/Termoparell',
OT)
pathPlot = '{}{}/{}'.format(
'//SERVIDORSQL/Datos/Desarrollos y pruebas/',
'Automatitzacio/Dades Proves/Termopar... | 22.137255 | 74 | 0.622675 | 146 | 1,129 | 4.773973 | 0.568493 | 0.021521 | 0.025825 | 0.094692 | 0.370158 | 0.370158 | 0.370158 | 0.370158 | 0.226686 | 0.226686 | 0 | 0.061269 | 0.190434 | 1,129 | 50 | 75 | 22.58 | 0.701313 | 0.0124 | 0 | 0.297872 | 0 | 0 | 0.327044 | 0.100629 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.042553 | 0 | 0.042553 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcbd2a883473757a97803fed690a067d5c7f7016 | 7,526 | py | Python | sammba/registration/tests/test_template_registrator.py | salma1601/sammba-mri | c3c79ed806a4e5ce3524bc6053bf0c3ff1444113 | [
"CECILL-B"
] | null | null | null | sammba/registration/tests/test_template_registrator.py | salma1601/sammba-mri | c3c79ed806a4e5ce3524bc6053bf0c3ff1444113 | [
"CECILL-B"
] | null | null | null | sammba/registration/tests/test_template_registrator.py | salma1601/sammba-mri | c3c79ed806a4e5ce3524bc6053bf0c3ff1444113 | [
"CECILL-B"
] | null | null | null | import os
from nose import with_setup
from nose.tools import assert_true
import numpy as np
import nibabel
from nilearn.datasets.tests import test_utils as tst
from nilearn._utils.testing import assert_raises_regex
from nilearn._utils.niimg_conversions import _check_same_fov
from sammba import testing_data
from sammba.... | 44.797619 | 78 | 0.662769 | 921 | 7,526 | 5.040174 | 0.12595 | 0.028436 | 0.030159 | 0.042223 | 0.607712 | 0.55838 | 0.467902 | 0.383455 | 0.358035 | 0.317105 | 0 | 0.008329 | 0.250199 | 7,526 | 167 | 79 | 45.065868 | 0.814283 | 0.042386 | 0 | 0.395522 | 0 | 0 | 0.050188 | 0 | 0 | 0 | 0 | 0 | 0.141791 | 1 | 0.044776 | false | 0 | 0.074627 | 0 | 0.119403 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcbe57aa0aba088b6e7c1f10ce1907df3fa001fe | 8,939 | py | Python | main.py | RabbitFored/responseJSON-bot | 45364296fe63b6db3a89003339d787d0966ae037 | [
"MIT"
] | 5 | 2021-08-11T18:24:53.000Z | 2021-11-16T13:01:41.000Z | main.py | RabbitFored/responseJSON-bot | 45364296fe63b6db3a89003339d787d0966ae037 | [
"MIT"
] | null | null | null | main.py | RabbitFored/responseJSON-bot | 45364296fe63b6db3a89003339d787d0966ae037 | [
"MIT"
] | 2 | 2021-08-10T05:42:14.000Z | 2021-08-12T14:00:24.000Z | from multiprocessing import Process
import botapi
from pyrogram import Client, filters
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
from pyrogram.handlers import MessageHandler
import json
import database
from pyrogram.errors import (PeerIdInvalid, UserIsBlocked, MessageTooLong)
from pyrogram.t... | 33.859848 | 119 | 0.571205 | 900 | 8,939 | 5.498889 | 0.204444 | 0.026672 | 0.024247 | 0.029097 | 0.481309 | 0.409982 | 0.404526 | 0.387149 | 0.292382 | 0.25298 | 0 | 0.001655 | 0.323974 | 8,939 | 263 | 120 | 33.988593 | 0.817309 | 0.003804 | 0 | 0.337963 | 0 | 0.009259 | 0.175466 | 0.007414 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.050926 | 0 | 0.064815 | 0.009259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcc018897dfa0d7cbd2e1c6b70a4ad965a9993a5 | 4,566 | py | Python | plugins/dbnd-aws/src/dbnd_aws/sagemaker/estimator_config.py | ipattarapong/dbnd | 7bd65621c46c73e078eb628f994127ad4c7dbd1a | [
"Apache-2.0"
] | 224 | 2020-01-02T10:46:37.000Z | 2022-03-02T13:54:08.000Z | plugins/dbnd-aws/src/dbnd_aws/sagemaker/estimator_config.py | ipattarapong/dbnd | 7bd65621c46c73e078eb628f994127ad4c7dbd1a | [
"Apache-2.0"
] | 16 | 2020-03-11T09:37:58.000Z | 2022-01-26T10:22:08.000Z | plugins/dbnd-aws/src/dbnd_aws/sagemaker/estimator_config.py | ipattarapong/dbnd | 7bd65621c46c73e078eb628f994127ad4c7dbd1a | [
"Apache-2.0"
] | 24 | 2020-03-24T13:53:50.000Z | 2022-03-22T11:55:18.000Z | from typing import Dict
from dbnd import Config, parameter
class Algorithm(object):
PCA = "pca"
KMEANS = "kmeans"
LINEAR_LEARNER = "linear-learner"
FACTORIZATION_MACHINES = "factorization-machines"
NTM = "ntm"
RANDOMCUTFOREST = "randomcutforest"
KNN = "knn"
OBJECT2VEC = "object2vec"
... | 36.528 | 91 | 0.683968 | 501 | 4,566 | 6 | 0.271457 | 0.060546 | 0.082169 | 0.047904 | 0.403194 | 0.368596 | 0.368596 | 0.34664 | 0.29674 | 0.29674 | 0 | 0.004199 | 0.217696 | 4,566 | 124 | 92 | 36.822581 | 0.837346 | 0.033947 | 0 | 0.393939 | 0 | 0 | 0.183882 | 0.01521 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.050505 | 0.010101 | 0.575758 | 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 |
fcc07acfd0ff24e49be1cb1b14f2f8ee025b2537 | 4,301 | py | Python | datastax/trees/heap_tree.py | warmachine028/datastax | 2898b517dee471a240a10e81bcfafee5dce615ca | [
"MIT"
] | 5 | 2021-12-25T17:08:39.000Z | 2022-03-18T16:22:57.000Z | datastax/trees/heap_tree.py | warmachine028/datastax | 2898b517dee471a240a10e81bcfafee5dce615ca | [
"MIT"
] | 1 | 2021-12-28T05:45:34.000Z | 2021-12-28T21:31:50.000Z | datastax/trees/heap_tree.py | warmachine028/datastax | 2898b517dee471a240a10e81bcfafee5dce615ca | [
"MIT"
] | null | null | null | # Heap Tree Implementation
from __future__ import annotations
import warnings
from typing import Optional, Any
from datastax.errors import DeletionFromEmptyTreeWarning
from datastax.trees.private_trees.binary_tree import BinaryTree, TreeNode
class HeapNode(TreeNode):
def __init__(self, data: Any,
... | 34.408 | 73 | 0.589863 | 538 | 4,301 | 4.592937 | 0.204461 | 0.100364 | 0.038851 | 0.0259 | 0.161068 | 0.108458 | 0.025091 | 0.025091 | 0 | 0 | 0 | 0.000348 | 0.332016 | 4,301 | 124 | 74 | 34.685484 | 0.859729 | 0.110672 | 0 | 0.141414 | 0 | 0 | 0.016002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10101 | false | 0 | 0.050505 | 0.010101 | 0.262626 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcc09e2543fdf968d7d7db4fd1316f5b3e4dc932 | 7,443 | py | Python | pretix_mpesa/payment.py | enyachoke/pretix-mpesa | 615368b04226e72cea3b1a16002001e32d0435bb | [
"Apache-2.0"
] | 2 | 2018-07-10T15:55:47.000Z | 2020-11-28T20:42:53.000Z | pretix_mpesa/payment.py | enyachoke/pretix-mpesa | 615368b04226e72cea3b1a16002001e32d0435bb | [
"Apache-2.0"
] | null | null | null | pretix_mpesa/payment.py | enyachoke/pretix-mpesa | 615368b04226e72cea3b1a16002001e32d0435bb | [
"Apache-2.0"
] | 1 | 2021-05-27T15:20:18.000Z | 2021-05-27T15:20:18.000Z | import json
import logging
import urllib.parse
import phonenumbers
import math
from pympesa import Pympesa
from django import forms
from django.contrib import messages
from django.core import signing
from django.template.loader import get_template
from django.utils.translation import ugettext as __, ugettext_lazy as _... | 42.775862 | 142 | 0.616015 | 800 | 7,443 | 5.5375 | 0.3 | 0.027314 | 0.032506 | 0.018059 | 0.138826 | 0.090068 | 0.0693 | 0.048984 | 0.048984 | 0.048984 | 0 | 0.000573 | 0.296655 | 7,443 | 173 | 143 | 43.023121 | 0.845654 | 0.065296 | 0 | 0.216783 | 0 | 0.006993 | 0.204844 | 0.03808 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06993 | false | 0.034965 | 0.167832 | 0.027972 | 0.34965 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |