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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
94b49b9436654c2b1de48f28ac3c2c9ba73a4771 | 722 | py | Python | python/baekjoon/step/19-divide-and-conquer/quad-tree.py | bum12ark/algorithm | b6e262b0c29a8b5fb551db5a177a40feebc411b4 | [
"MIT"
] | 1 | 2022-03-06T03:49:31.000Z | 2022-03-06T03:49:31.000Z | python/baekjoon/step/19-divide-and-conquer/quad-tree.py | bum12ark/algorithm | b6e262b0c29a8b5fb551db5a177a40feebc411b4 | [
"MIT"
] | null | null | null | python/baekjoon/step/19-divide-and-conquer/quad-tree.py | bum12ark/algorithm | b6e262b0c29a8b5fb551db5a177a40feebc411b4 | [
"MIT"
] | null | null | null | """
출처: https://yabmoons.tistory.com/450
"""
import sys
N = int(sys.stdin.readline())
M = [
list(map(int, sys.stdin.readline().rstrip())) for _ in range(N)
]
def DFS(x, y, size):
color = M[x][y]
for i in range(x, x + size):
for j in range(y, y + size):
if color != M[i][j]:
... | 21.878788 | 67 | 0.409972 | 102 | 722 | 2.892157 | 0.343137 | 0.135593 | 0.081356 | 0.091525 | 0.20339 | 0.118644 | 0.118644 | 0.118644 | 0.118644 | 0 | 0 | 0.036866 | 0.398892 | 722 | 32 | 68 | 22.5625 | 0.642857 | 0.049862 | 0 | 0.125 | 0 | 0 | 0.00295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.208333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94b613e3ba422d9c83b2ae27a15a0f42577f4efe | 124 | py | Python | zemfrog/tasks.py | aprilahijriyan/zemfrog | 0a4ebc303caa8fadf89ca0cc8569de60c61f3252 | [
"MIT"
] | null | null | null | zemfrog/tasks.py | aprilahijriyan/zemfrog | 0a4ebc303caa8fadf89ca0cc8569de60c61f3252 | [
"MIT"
] | 5 | 2021-03-08T05:07:37.000Z | 2021-03-12T08:00:41.000Z | zemfrog/tasks.py | aprilahijriyan/zemfrog | 0a4ebc303caa8fadf89ca0cc8569de60c61f3252 | [
"MIT"
] | null | null | null | from zemfrog.globals import celery, mail
@celery.task
def send_email(*args, **kwds):
mail.send_message(*args, **kwds)
| 17.714286 | 40 | 0.717742 | 18 | 124 | 4.833333 | 0.722222 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137097 | 124 | 6 | 41 | 20.666667 | 0.813084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
94b68aa576df42be03802058351d5dc93499d16b | 10,568 | py | Python | actors/aga.py | TACC-Cloud/abaco | 9e7bb2f7aed45db62cce3124d4638cde860c5095 | [
"BSD-3-Clause"
] | 27 | 2015-07-24T16:54:38.000Z | 2022-01-07T04:36:47.000Z | actors/aga.py | TACC-Cloud/abaco | 9e7bb2f7aed45db62cce3124d4638cde860c5095 | [
"BSD-3-Clause"
] | 68 | 2015-10-05T16:08:58.000Z | 2022-02-07T15:59:27.000Z | actors/aga.py | TACC-Cloud/abaco | 9e7bb2f7aed45db62cce3124d4638cde860c5095 | [
"BSD-3-Clause"
] | 13 | 2015-10-01T21:38:34.000Z | 2021-05-26T00:19:07.000Z | """
Python3 compatible agave binding. WARNING -- only the token and clients service are supported.
NOTE -- This is a temporary module!
once python3 support is properly added to agavepy this module will be removed.
"""
from urllib.parse import urlparse, urljoin
import requests
import time
from agaveflask.logs ... | 43.489712 | 116 | 0.581472 | 1,206 | 10,568 | 4.958541 | 0.192371 | 0.03311 | 0.017391 | 0.016054 | 0.227592 | 0.158361 | 0.113211 | 0.097826 | 0.085452 | 0.073077 | 0 | 0.002513 | 0.322294 | 10,568 | 242 | 117 | 43.669421 | 0.832449 | 0.160484 | 0 | 0.162921 | 0 | 0 | 0.180073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061798 | false | 0.08427 | 0.022472 | 0 | 0.157303 | 0.022472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94b81133f944f81c4a396de00a4f4cef01d9f74a | 3,760 | py | Python | prep/make_database.py | radinformatics/wordfish-standard | 678235806d97b0c4cec6637900fa636541d3b730 | [
"MIT"
] | 1 | 2017-05-24T15:14:39.000Z | 2017-05-24T15:14:39.000Z | prep/make_database.py | vsoch/wordfish-standard | 678235806d97b0c4cec6637900fa636541d3b730 | [
"MIT"
] | null | null | null | prep/make_database.py | vsoch/wordfish-standard | 678235806d97b0c4cec6637900fa636541d3b730 | [
"MIT"
] | null | null | null | from glob import glob
import os
import shutil
import simplejson
import xmltodict
pwd = os.getcwd()
output_dir = "%s/collection" %(pwd)
if not os.path.exists(output_dir):
os.mkdir(output_dir)
cookies = glob("%s/matched/img/*.png" %(pwd))
def read_xml(xml_file):
'''read_xml reads an xml file and returns a ... | 31.333333 | 90 | 0.647606 | 495 | 3,760 | 4.761616 | 0.242424 | 0.033093 | 0.056003 | 0.074671 | 0.247773 | 0.171404 | 0.095885 | 0.033941 | 0 | 0 | 0 | 0.003053 | 0.215957 | 3,760 | 119 | 91 | 31.596639 | 0.796472 | 0.14016 | 0 | 0.142857 | 0 | 0 | 0.127364 | 0.014187 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064935 | false | 0 | 0.064935 | 0 | 0.194805 | 0.025974 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94b9d72016da799bcd01548327582926fcff7b04 | 1,094 | py | Python | utils/util.py | dliu18/rawlsnet | 84441fa140fc00d965ff7b63c628140cc975ede4 | [
"MIT"
] | 3 | 2021-05-25T15:23:27.000Z | 2021-11-24T22:54:34.000Z | utils/util.py | dliu18/rawlsnet | 84441fa140fc00d965ff7b63c628140cc975ede4 | [
"MIT"
] | null | null | null | utils/util.py | dliu18/rawlsnet | 84441fa140fc00d965ff7b63c628140cc975ede4 | [
"MIT"
] | null | null | null | import numpy as np
import itertools
def generate_binary_truth_table(num_variables):
'''
Returns a binary truth table
Inputs :
num_variables : Number of variables to consider in constructing the table.
Can be a single number or a list of cardinalities.
If input is a single number, a cardinali... | 21.038462 | 77 | 0.620658 | 154 | 1,094 | 4.24026 | 0.38961 | 0.183767 | 0.073507 | 0.073507 | 0.11026 | 0.11026 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0.264168 | 1,094 | 52 | 78 | 21.038462 | 0.793789 | 0.517367 | 0 | 0 | 1 | 0 | 0.013274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94bd39f7b280d5e41bc80e6c9d2c2a8db8614c19 | 4,103 | py | Python | jabble/dataset.py | mdd423/wobble_jax | 8923eac67529d92d670d38a02d409cf16dad4d7a | [
"BSD-3-Clause"
] | null | null | null | jabble/dataset.py | mdd423/wobble_jax | 8923eac67529d92d670d38a02d409cf16dad4d7a | [
"BSD-3-Clause"
] | null | null | null | jabble/dataset.py | mdd423/wobble_jax | 8923eac67529d92d670d38a02d409cf16dad4d7a | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
# import matplotlib.pyplot as plt
import astropy.table as at
import astropy.units as u
import astropy.coordinates as coord
import astropy.constants as const
import astropy.time as atime
import scipy.ndimage as ndimage
import numpy.polynomial as polynomial
# import jabble.model as wobble_model
impor... | 30.169118 | 97 | 0.61126 | 647 | 4,103 | 3.751159 | 0.248841 | 0.025958 | 0.023074 | 0.011125 | 0.155748 | 0.132674 | 0.132674 | 0.132674 | 0.106304 | 0.106304 | 0 | 0.016922 | 0.251036 | 4,103 | 135 | 98 | 30.392593 | 0.77286 | 0.021204 | 0 | 0.074766 | 0 | 0 | 0.018449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121495 | false | 0 | 0.084112 | 0.028037 | 0.336449 | 0.028037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94be50fa7e9c1cc2a5aae187eda3eb1b5858641b | 137 | py | Python | tests/conftest.py | hpgem/nanomesh | f395640bb784da531677f193766dbd9f69b61a67 | [
"Apache-2.0"
] | 4 | 2021-07-12T20:00:16.000Z | 2022-02-27T10:14:02.000Z | tests/conftest.py | hpgem/nanomesh | f395640bb784da531677f193766dbd9f69b61a67 | [
"Apache-2.0"
] | 136 | 2020-11-24T16:58:28.000Z | 2022-03-23T14:19:25.000Z | tests/conftest.py | hpgem/nanomesh | f395640bb784da531677f193766dbd9f69b61a67 | [
"Apache-2.0"
] | 1 | 2022-01-25T10:13:13.000Z | 2022-01-25T10:13:13.000Z | # https://github.com/matplotlib/matplotlib/issues/18168#issuecomment-670211108
from matplotlib.testing.conftest import mpl_test_settings
| 45.666667 | 78 | 0.861314 | 17 | 137 | 6.823529 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10687 | 0.043796 | 137 | 2 | 79 | 68.5 | 0.778626 | 0.547445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
94c1134d670b16674cc4abd8161470411f0363bf | 660 | py | Python | ietf/name/migrations/0009_add_verified_errata_to_doctagname.py | hassanakbar4/ietfdb | cabee059092ae776015410640226064331c293b7 | [
"BSD-3-Clause"
] | 25 | 2022-03-05T08:26:52.000Z | 2022-03-30T15:45:42.000Z | ietf/name/migrations/0009_add_verified_errata_to_doctagname.py | hassanakbar4/ietfdb | cabee059092ae776015410640226064331c293b7 | [
"BSD-3-Clause"
] | 219 | 2022-03-04T17:29:12.000Z | 2022-03-31T21:16:14.000Z | ietf/name/migrations/0009_add_verified_errata_to_doctagname.py | hassanakbar4/ietfdb | cabee059092ae776015410640226064331c293b7 | [
"BSD-3-Clause"
] | 22 | 2022-03-04T15:34:34.000Z | 2022-03-28T13:30:59.000Z | # Copyright The IETF Trust 2020, All Rights Reserved
# -*- coding: utf-8 -*-
from django.db import migrations
def forward(apps, schema_editor):
DocTagName = apps.get_model('name','DocTagName')
DocTagName.objects.get_or_create(slug='verified-errata', name='Has verified errata', desc='', used=True, order=0)
d... | 27.5 | 117 | 0.7 | 75 | 660 | 6.066667 | 0.626667 | 0.092308 | 0.07033 | 0.114286 | 0.303297 | 0.303297 | 0.303297 | 0.303297 | 0.303297 | 0.303297 | 0 | 0.018083 | 0.162121 | 660 | 23 | 118 | 28.695652 | 0.804702 | 0.109091 | 0 | 0.142857 | 0 | 0 | 0.186325 | 0.047863 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 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 |
94c1ced1ea38485e911b3147cf9aaf5954001d87 | 429 | py | Python | 2020/examples-in-class-2020-11-12/helper_numbers.py | ati-ozgur/course-python | 38237d120043c07230658b56dc3aeb01c3364933 | [
"Apache-2.0"
] | 1 | 2021-02-04T16:59:11.000Z | 2021-02-04T16:59:11.000Z | 2020/examples-in-class-2020-11-12/helper_numbers.py | ati-ozgur/course-python | 38237d120043c07230658b56dc3aeb01c3364933 | [
"Apache-2.0"
] | null | null | null | 2020/examples-in-class-2020-11-12/helper_numbers.py | ati-ozgur/course-python | 38237d120043c07230658b56dc3aeb01c3364933 | [
"Apache-2.0"
] | 1 | 2019-10-30T14:37:48.000Z | 2019-10-30T14:37:48.000Z | def get_first_digit(number):
return int(str(number)[0])
def get_last_digit(number):
return number % 10
def remove_first_last_digit(number):
s_number = str(number)
s_number = s_number[1:-1]
return s_number
assert get_first_digit(12021) == 1
assert get_first_digit(92021) == 9
assert get_first_digit(72003443) == ... | 20.428571 | 37 | 0.759907 | 73 | 429 | 4.150685 | 0.287671 | 0.178218 | 0.171617 | 0.188119 | 0.224422 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125668 | 0.128205 | 429 | 20 | 38 | 21.45 | 0.684492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.214286 | false | 0 | 0 | 0.142857 | 0.428571 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
94c275106d2338f72c37c61390adc86cd0cf7bba | 3,635 | py | Python | src/morle/modules/compile.py | maciejjan/morle | a56a3371e403568b6b7abc63e08f6a111e0b5fee | [
"MIT"
] | 1 | 2021-03-04T16:23:02.000Z | 2021-03-04T16:23:02.000Z | src/morle/modules/compile.py | maciejjan/morle | a56a3371e403568b6b7abc63e08f6a111e0b5fee | [
"MIT"
] | null | null | null | src/morle/modules/compile.py | maciejjan/morle | a56a3371e403568b6b7abc63e08f6a111e0b5fee | [
"MIT"
] | null | null | null | import morle.algorithms.fst as FST
from morle.datastruct.lexicon import LexiconEntry
from morle.datastruct.rules import Rule
from morle.utils.files import file_exists, read_tsv_file
import morle.shared as shared
import hfst
import logging
import math
from operator import itemgetter
from typing import List, Tuple
# T... | 35.990099 | 81 | 0.638514 | 432 | 3,635 | 5.210648 | 0.268519 | 0.05331 | 0.019547 | 0.037317 | 0.268769 | 0.182586 | 0.123501 | 0.063083 | 0.063083 | 0.063083 | 0 | 0.002537 | 0.24099 | 3,635 | 100 | 82 | 36.35 | 0.813338 | 0.126272 | 0 | 0.138889 | 0 | 0 | 0.095735 | 0 | 0 | 0 | 0 | 0.01 | 0 | 1 | 0.083333 | false | 0 | 0.138889 | 0 | 0.291667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
94c29179afdca3ff89eaa0d1a46d602e67dacea5 | 1,214 | py | Python | deck_berry_py/repl_db.py | curtjen/deck-berry-py | e0fbf79ca1b0e3b6a1455093abee207bba6b3561 | [
"MIT"
] | null | null | null | deck_berry_py/repl_db.py | curtjen/deck-berry-py | e0fbf79ca1b0e3b6a1455093abee207bba6b3561 | [
"MIT"
] | null | null | null | deck_berry_py/repl_db.py | curtjen/deck-berry-py | e0fbf79ca1b0e3b6a1455093abee207bba6b3561 | [
"MIT"
] | null | null | null | import requests
import os
import json
db_url = os.getenv('REPLIT_DB_URL')
def set(key, val, type='string'):
try:
if (type == 'string'):
return requests.post(db_url, data = { key: val })
if (type == 'json'):
return requests.post(db_url, data = { key: json.dumps(val)})
except:
return({'error... | 28.232558 | 96 | 0.632619 | 178 | 1,214 | 4.258427 | 0.320225 | 0.046174 | 0.08971 | 0.126649 | 0.474934 | 0.348285 | 0.306069 | 0.226913 | 0.226913 | 0 | 0 | 0.006283 | 0.213344 | 1,214 | 43 | 97 | 28.232558 | 0.787435 | 0.078254 | 0 | 0.285714 | 0 | 0 | 0.306228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.085714 | 0 | 0.371429 | 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 |
94c6b1592bca5f3373def4f76b7cbd242408647d | 263 | py | Python | get_api_token.py | maksimbulva/sc2streamhelper_info | e99fd0e86b4b9ba3bb5495d2e3c5184f60f7160e | [
"MIT"
] | null | null | null | get_api_token.py | maksimbulva/sc2streamhelper_info | e99fd0e86b4b9ba3bb5495d2e3c5184f60f7160e | [
"MIT"
] | null | null | null | get_api_token.py | maksimbulva/sc2streamhelper_info | e99fd0e86b4b9ba3bb5495d2e3c5184f60f7160e | [
"MIT"
] | null | null | null | from subprocess import call
from sc2streamhelper.passwords import *
call([
"curl",
"--user " + SC2STREAMHELPER_APIKEY + ":" + SC2STREAMHELPER_APISECRET,
"--data-urlencode ""grant_type=client_credentials"" ""http://us.battle.net/oauth/token"""
])
| 29.222222 | 93 | 0.695817 | 27 | 263 | 6.62963 | 0.814815 | 0.111732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013393 | 0.148289 | 263 | 8 | 94 | 32.875 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.346008 | 0.110266 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.142857 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
94c773fca152e7ec57a6379987b78b8654f7764e | 221 | py | Python | test.py | MohamedAliRashad/EfficientDet.Pytorch | 9b8b5f029fab125371b275687f2449990ce53daa | [
"MIT"
] | null | null | null | test.py | MohamedAliRashad/EfficientDet.Pytorch | 9b8b5f029fab125371b275687f2449990ce53daa | [
"MIT"
] | null | null | null | test.py | MohamedAliRashad/EfficientDet.Pytorch | 9b8b5f029fab125371b275687f2449990ce53daa | [
"MIT"
] | null | null | null | import torch
from models import EfficientDet
if __name__ == '__main__':
inputs = torch.randn(4, 3, 512, 512)
model = EfficientDet(levels=3)
output = model(inputs)
for p in output:
print(p.size()) | 24.555556 | 40 | 0.651584 | 30 | 221 | 4.533333 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053254 | 0.235294 | 221 | 9 | 41 | 24.555556 | 0.751479 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94caca45c876379996eb1e5fe7824c3b1a2b7f26 | 7,978 | py | Python | doozer/client.py | ActiveState/pydoozer | d9b165ed9aafe6ed5feaca5a6fc08cbefd9be51b | [
"MIT"
] | 1 | 2017-08-29T14:52:05.000Z | 2017-08-29T14:52:05.000Z | doozer/client.py | ActiveState/pydoozer | d9b165ed9aafe6ed5feaca5a6fc08cbefd9be51b | [
"MIT"
] | null | null | null | doozer/client.py | ActiveState/pydoozer | d9b165ed9aafe6ed5feaca5a6fc08cbefd9be51b | [
"MIT"
] | null | null | null | import os
import struct
import gevent
import gevent.event
import gevent.socket
import google.protobuf.message
from msg_pb2 import Response
from msg_pb2 import Request
CONNECT_TIMEOUT = 5.0
REQUEST_TIMEOUT = 2.0
DEFAULT_URI = "doozer:?%s" % "&".join([
"ca=127.0.0.1:8046",
"ca=127.0.0.1:8041",
"ca=127.0.0.... | 32.563265 | 84 | 0.586488 | 924 | 7,978 | 5.004329 | 0.213203 | 0.036332 | 0.047578 | 0.046713 | 0.222318 | 0.188149 | 0.159818 | 0.151817 | 0.132785 | 0.115917 | 0 | 0.01155 | 0.305465 | 7,978 | 244 | 85 | 32.696721 | 0.822956 | 0.014415 | 0 | 0.226601 | 0 | 0 | 0.030894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.064039 | 0.039409 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
94ccca7ffc987cbe5df4c550743671afebadd79c | 507 | py | Python | benchmarks/models/__init__.py | maudl3116/GPS | 381a8e209bfec4c06b43ed4b69445bdf5c365409 | [
"Apache-2.0"
] | null | null | null | benchmarks/models/__init__.py | maudl3116/GPS | 381a8e209bfec4c06b43ed4b69445bdf5c365409 | [
"Apache-2.0"
] | null | null | null | benchmarks/models/__init__.py | maudl3116/GPS | 381a8e209bfec4c06b43ed4b69445bdf5c365409 | [
"Apache-2.0"
] | 1 | 2021-01-30T12:58:46.000Z | 2021-01-30T12:58:46.000Z | from .train_gpkconv1d import train_gpkconv1d_classifier
from .train_gprnn import train_gprnn_classifier
from .train_gpsig import train_gpsig_classifier
from .train_gpsig_ import train_gpsig_classifier_
from .train_gpsig_regression import train_gpsig_regressor
from .train_gpsig_vosf import train_gpsig_vosf_classifier
... | 39 | 67 | 0.905325 | 71 | 507 | 5.943662 | 0.15493 | 0.236967 | 0.270142 | 0.227488 | 0.246446 | 0.246446 | 0.246446 | 0.246446 | 0.246446 | 0.246446 | 0 | 0.004274 | 0.076923 | 507 | 12 | 68 | 42.25 | 0.897436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
94ce46151c1716825bf8cd7802cd6c9c77ce147e | 1,640 | py | Python | user/views.py | RadySonabu/ThesisAPI | dc986623ff8d831ced17396a1121d256fa1f66d6 | [
"MIT"
] | null | null | null | user/views.py | RadySonabu/ThesisAPI | dc986623ff8d831ced17396a1121d256fa1f66d6 | [
"MIT"
] | null | null | null | user/views.py | RadySonabu/ThesisAPI | dc986623ff8d831ced17396a1121d256fa1f66d6 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect, get_object_or_404
from rest_framework import generics
from .models import MyUser
from .forms.forms import UserRegisterForm, UpdateUserForm
def register(request):
if request.method == 'POST':
form = UserRegisterForm(request.POST)
if form.is_valid():
... | 27.333333 | 101 | 0.629268 | 190 | 1,640 | 5.336842 | 0.405263 | 0.024655 | 0.074951 | 0.056213 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005013 | 0.270122 | 1,640 | 60 | 102 | 27.333333 | 0.842105 | 0.143902 | 0 | 0.166667 | 0 | 0 | 0.09957 | 0.055158 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
94cfbf4917cc9d4f379b439e74351ccc9e7a2864 | 247 | py | Python | backend/apis/pacient/admin.py | sango09/senasoft | d7e5b0fae620764b3af73955f7771dcee5746dfc | [
"MIT"
] | 1 | 2020-10-17T03:39:56.000Z | 2020-10-17T03:39:56.000Z | backend/apis/pacient/admin.py | sango09/senasoft | d7e5b0fae620764b3af73955f7771dcee5746dfc | [
"MIT"
] | null | null | null | backend/apis/pacient/admin.py | sango09/senasoft | d7e5b0fae620764b3af73955f7771dcee5746dfc | [
"MIT"
] | null | null | null | """Admin de los pacientes"""
# Django
from django.contrib import admin
# Modelos
from apis.pacient.models import Pacient
@admin.register(Pacient)
class PacientsAdmin(admin.ModelAdmin):
"""Admin de pacientes"""
list_display = ('user',)
| 17.642857 | 39 | 0.724696 | 30 | 247 | 5.933333 | 0.633333 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149798 | 247 | 13 | 40 | 19 | 0.847619 | 0.230769 | 0 | 0 | 0 | 0 | 0.022472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94d04637bffae0e0fc3be1a7c8a83bf0c64798a7 | 341 | py | Python | Leetcode/532. K-diff Pairs in an Array/solution2.py | asanoviskhak/Outtalent | c500e8ad498f76d57eb87a9776a04af7bdda913d | [
"MIT"
] | 51 | 2020-07-12T21:27:47.000Z | 2022-02-11T19:25:36.000Z | Leetcode/532. K-diff Pairs in an Array/solution2.py | CrazySquirrel/Outtalent | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | [
"MIT"
] | null | null | null | Leetcode/532. K-diff Pairs in an Array/solution2.py | CrazySquirrel/Outtalent | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | [
"MIT"
] | 32 | 2020-07-27T13:54:24.000Z | 2021-12-25T18:12:50.000Z | from collections import Counter
class Solution:
def findPairs(self, nums: List[int], k: int) -> int:
counter = Counter(nums)
if k == 0:
return sum([counter[num] > 1 for num in counter])
elif k > 0:
return sum([num + k in counter for num in set(nums)])
else:
... | 26.230769 | 65 | 0.545455 | 47 | 341 | 3.957447 | 0.510638 | 0.021505 | 0.086022 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0181 | 0.351906 | 341 | 12 | 66 | 28.416667 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
94d087215fbf2f5407c35967629e1295250a1425 | 1,660 | py | Python | src/BanzaiDB/mapping.py | mscook/BanzaiDB | 84d6402a3aecb16edca237bf3954abbf8a66fc6a | [
"ECL-2.0"
] | 3 | 2015-04-27T02:16:42.000Z | 2017-12-09T08:45:31.000Z | src/BanzaiDB/mapping.py | mscook/BanzaiDB | 84d6402a3aecb16edca237bf3954abbf8a66fc6a | [
"ECL-2.0"
] | null | null | null | src/BanzaiDB/mapping.py | mscook/BanzaiDB | 84d6402a3aecb16edca237bf3954abbf8a66fc6a | [
"ECL-2.0"
] | null | null | null | # Copyright 2013-2014 Mitchell Stanton-Cook Licensed under the
# Educational Community 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.osedu.org/licenses/ECL-2.0
#
# Unless required by applicable law or a... | 34.583333 | 74 | 0.650602 | 246 | 1,660 | 4.308943 | 0.5 | 0.056604 | 0.037736 | 0.030189 | 0.101887 | 0.101887 | 0.101887 | 0.101887 | 0.101887 | 0.101887 | 0 | 0.012821 | 0.248193 | 1,660 | 47 | 75 | 35.319149 | 0.836538 | 0.343976 | 0 | 0.090909 | 0 | 0 | 0.099885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
94d1665972f91bfcdbc4a5f569453d0ea57d3e9e | 155 | py | Python | res_mods/mods/packages/xvm_battle/python/__version__.py | peterbartha/ImmunoMod | cbf8cd49893d7082a347c1f72c0e39480869318a | [
"MIT"
] | null | null | null | res_mods/mods/packages/xvm_battle/python/__version__.py | peterbartha/ImmunoMod | cbf8cd49893d7082a347c1f72c0e39480869318a | [
"MIT"
] | 1 | 2016-04-03T13:31:39.000Z | 2016-04-03T16:48:26.000Z | res_mods/mods/packages/xvm_tooltips/python/__version__.py | peterbartha/ImmunoMod | cbf8cd49893d7082a347c1f72c0e39480869318a | [
"MIT"
] | null | null | null | # This file was created automatically from build script
__revision__ = '7581'
__branch__ = 'default'
__node__ = 'c386bcd24648e215a00249e32d2d4bbd1a6992db'
| 31 | 55 | 0.819355 | 14 | 155 | 8.214286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211679 | 0.116129 | 155 | 4 | 56 | 38.75 | 0.627737 | 0.341935 | 0 | 0 | 0 | 0 | 0.51 | 0.4 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
94d29e2296f9233cdb585fa571d29d93761c5b3a | 626 | py | Python | src/smtv_api/setup_test_environment.py | AdamDomagalsky/smtv-micro-scpr | 87195f4c0f738a687648b3218a0976c3450d0b6c | [
"Apache-2.0"
] | null | null | null | src/smtv_api/setup_test_environment.py | AdamDomagalsky/smtv-micro-scpr | 87195f4c0f738a687648b3218a0976c3450d0b6c | [
"Apache-2.0"
] | null | null | null | src/smtv_api/setup_test_environment.py | AdamDomagalsky/smtv-micro-scpr | 87195f4c0f738a687648b3218a0976c3450d0b6c | [
"Apache-2.0"
] | null | null | null | import os
def pytest_configure(config: dict) -> None:
setup()
def setup() -> None:
os.environ['AIRFLOW_API_ROOT_URL'] = 'http://test-airflow/api/experimental/'
os.environ['API_DATABASE_URL'] = 'postgres://postgres:postgres@postgres:5432/postgres'
os.environ['S3_ENDPOINT_URL'] = 'http://localhost:50... | 31.3 | 90 | 0.693291 | 83 | 626 | 5 | 0.46988 | 0.173494 | 0.106024 | 0.086747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02925 | 0.126198 | 626 | 19 | 91 | 32.947368 | 0.729433 | 0 | 0 | 0 | 0 | 0 | 0.543131 | 0.215655 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 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 |
94d4af3fad97a3a0b09ecceadcf7c059f78ba5ab | 1,056 | py | Python | Interview/Zupee/1_DsAlgo/code2.py | prash-kr-meena/GoogleR | 27aca71e51cc2442e604e07ab00406a98d8d63a4 | [
"Apache-2.0"
] | null | null | null | Interview/Zupee/1_DsAlgo/code2.py | prash-kr-meena/GoogleR | 27aca71e51cc2442e604e07ab00406a98d8d63a4 | [
"Apache-2.0"
] | null | null | null | Interview/Zupee/1_DsAlgo/code2.py | prash-kr-meena/GoogleR | 27aca71e51cc2442e604e07ab00406a98d8d63a4 | [
"Apache-2.0"
] | null | null | null | # You have given an array of non-negative integers.
# Each element in the array represents your maximum jump length at that position,
# you are initially positioned at the first index of the array.
# Return the minimum number of jumps required to reach the last index.
# If it is not possible to reach the last index, re... | 29.333333 | 81 | 0.650568 | 205 | 1,056 | 3.292683 | 0.42439 | 0.02963 | 0.04 | 0.047407 | 0.185185 | 0.072593 | 0.072593 | 0.072593 | 0.072593 | 0.072593 | 0 | 0.070807 | 0.237689 | 1,056 | 35 | 82 | 30.171429 | 0.767702 | 0.372159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94d50451f51f25b4381946b320306f94fc198f0e | 2,343 | py | Python | Unfollowers For Inta/unfollowers.py | Kanishka-96/engineering-blog-samples | 535d5ac2c905557f01b1112df35b2c725c21c719 | [
"MIT"
] | null | null | null | Unfollowers For Inta/unfollowers.py | Kanishka-96/engineering-blog-samples | 535d5ac2c905557f01b1112df35b2c725c21c719 | [
"MIT"
] | null | null | null | Unfollowers For Inta/unfollowers.py | Kanishka-96/engineering-blog-samples | 535d5ac2c905557f01b1112df35b2c725c21c719 | [
"MIT"
] | null | null | null | from instagram_private_api import Client, ClientCompatPatch
import numpy as np
import time
import getpass
import sys
def list_diff(li1, li2):
li_dif = [i for i in li1 + li2 if i not in li1]
return li_dif
print("\n \nIMPORTANT DISCLAIMER: DO NOT USE THIS TOOL TOO FREQUENTLY (MORE THAN SEVERAL TIMES IN A M... | 40.396552 | 149 | 0.737516 | 384 | 2,343 | 4.223958 | 0.302083 | 0.038841 | 0.014797 | 0.027127 | 0.524661 | 0.503083 | 0.4291 | 0.346486 | 0.267571 | 0.267571 | 0 | 0.003462 | 0.137004 | 2,343 | 58 | 150 | 40.396552 | 0.798714 | 0 | 0 | 0.217391 | 0 | 0.086957 | 0.329778 | 0.017491 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0.086957 | 0.130435 | 0 | 0.173913 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94d7d35515c333dfd9a0474a1d86a98db0e415bf | 3,259 | py | Python | wikionary/wikionary.py | DedInc/wikionary | 45d595044aa980d129479b6aff6c31c1b329e9d8 | [
"MIT"
] | null | null | null | wikionary/wikionary.py | DedInc/wikionary | 45d595044aa980d129479b6aff6c31c1b329e9d8 | [
"MIT"
] | null | null | null | wikionary/wikionary.py | DedInc/wikionary | 45d595044aa980d129479b6aff6c31c1b329e9d8 | [
"MIT"
] | null | null | null | from lxml import html, etree
from requests import get
from urllib.parse import unquote
agent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36'
def getSy... | 36.617978 | 230 | 0.567659 | 474 | 3,259 | 3.896624 | 0.251055 | 0.01516 | 0.051976 | 0.068219 | 0.656199 | 0.645371 | 0.59177 | 0.552788 | 0.505143 | 0.45425 | 0 | 0.080816 | 0.248236 | 3,259 | 88 | 231 | 37.034091 | 0.673061 | 0 | 0 | 0.533333 | 0 | 0.08 | 0.30807 | 0.074563 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
94d910ff228a053d83d0e7d3ff441bc16db11713 | 88 | py | Python | frictionless_dfour/__main__.py | cividi/frictionless-dfour | 02e2a3720f980ca31ad5d5443980f8d9d399868b | [
"MIT"
] | 2 | 2021-09-27T07:52:40.000Z | 2021-12-13T12:56:18.000Z | frictionless_dfour/__main__.py | cividi/frictionless-dfour | 02e2a3720f980ca31ad5d5443980f8d9d399868b | [
"MIT"
] | 7 | 2021-07-30T09:56:33.000Z | 2021-08-20T11:43:04.000Z | frictionless_dfour/__main__.py | cividi/frictionless-dfour | 02e2a3720f980ca31ad5d5443980f8d9d399868b | [
"MIT"
] | null | null | null | from .program import program
if __name__ == "__main__":
program(prog_name="dfour")
| 17.6 | 30 | 0.715909 | 11 | 88 | 4.909091 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 88 | 4 | 31 | 22 | 0.72973 | 0 | 0 | 0 | 0 | 0 | 0.147727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
94da001e21816a78cf7e5e0028d8f8b03ea11e1b | 3,144 | py | Python | tennis/Player.py | reecebenson/DADSA-Tennis-PartB | 59a0162adbb9c42c7d9cd8a86b3cf12dcedcfbc8 | [
"MIT"
] | null | null | null | tennis/Player.py | reecebenson/DADSA-Tennis-PartB | 59a0162adbb9c42c7d9cd8a86b3cf12dcedcfbc8 | [
"MIT"
] | null | null | null | tennis/Player.py | reecebenson/DADSA-Tennis-PartB | 59a0162adbb9c42c7d9cd8a86b3cf12dcedcfbc8 | [
"MIT"
] | null | null | null | """
# Data Structures and Algorithms - Part B
# Created by Reece Benson (16021424)
"""
class Player():
name = None
gender = None
season = None
win_count = None
lost_count = None
total_win_count = None
total_lost_count = None
total_money = None
in_first_16 = None
def __init__(... | 31.44 | 63 | 0.630725 | 391 | 3,144 | 4.769821 | 0.107417 | 0.300268 | 0.077212 | 0.077212 | 0.511528 | 0.434316 | 0.318499 | 0.295979 | 0.240214 | 0.240214 | 0 | 0.010695 | 0.28626 | 3,144 | 100 | 64 | 31.44 | 0.82041 | 0.024809 | 0 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.17284 | false | 0 | 0 | 0.061728 | 0.506173 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94dac3b4eafe4e1f3cf44a39e7110d561f9e7e30 | 17,728 | py | Python | scripts/analysis_wfc3.py | Lachimax/COMP777 | 9bf73cc451e1353763fa47ae124062b53bf09ded | [
"CC0-1.0"
] | null | null | null | scripts/analysis_wfc3.py | Lachimax/COMP777 | 9bf73cc451e1353763fa47ae124062b53bf09ded | [
"CC0-1.0"
] | null | null | null | scripts/analysis_wfc3.py | Lachimax/COMP777 | 9bf73cc451e1353763fa47ae124062b53bf09ded | [
"CC0-1.0"
] | null | null | null | # Code by Lachlan Marnoch, 2018
import numpy as np
import matplotlib.pyplot as plt
# import math as m
from astropy import wcs
from astropy.coordinates import SkyCoord
from astropy.io import fits
import random as r
def sub_stars(condition):
subtract = np.zeros(len(B), dtype=bool)
# Set seed for replicability
... | 32.52844 | 119 | 0.668152 | 3,189 | 17,728 | 3.566008 | 0.133898 | 0.013366 | 0.027436 | 0.028579 | 0.402656 | 0.360359 | 0.259585 | 0.215529 | 0.146676 | 0.12821 | 0 | 0.06304 | 0.157096 | 17,728 | 544 | 120 | 32.588235 | 0.697986 | 0.203012 | 0 | 0.132432 | 0 | 0 | 0.153644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018919 | false | 0 | 0.018919 | 0.005405 | 0.045946 | 0.078378 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94dd6870e70005057e8cff11eab7a5220bef77b3 | 435 | py | Python | spkcspider/apps/spider_tags/migrations/0005_spidertag_updateable_by.py | devkral/spkbspider | 97e448b4da412acebd66c4469c7fcdd07bf90ed2 | [
"MIT"
] | 5 | 2019-06-24T14:15:54.000Z | 2021-05-14T23:16:31.000Z | spkcspider/apps/spider_tags/migrations/0005_spidertag_updateable_by.py | devkral/spkbspider | 97e448b4da412acebd66c4469c7fcdd07bf90ed2 | [
"MIT"
] | 2 | 2018-06-19T09:56:18.000Z | 2018-11-20T12:02:44.000Z | spkcspider/apps/spider_tags/migrations/0005_spidertag_updateable_by.py | devkral/spkbspider | 97e448b4da412acebd66c4469c7fcdd07bf90ed2 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2019-02-11 20:15
import jsonfield.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('spider_tags', '0004_auto_20190117_1253'),
]
operations = [
migrations.AddField(
model_name='spidertag',
... | 21.75 | 71 | 0.632184 | 48 | 435 | 5.604167 | 0.791667 | 0.111524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096273 | 0.25977 | 435 | 19 | 72 | 22.894737 | 0.73913 | 0.103448 | 0 | 0 | 1 | 0 | 0.14433 | 0.059278 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94ddbc269422cd58ff07684a2795facf93d242e3 | 449 | py | Python | rpi_object_detection_opencv_python/picamera/camera.py | altanai/Ramudroid | 7594ccad895871dc52ed636b23ab18d7030ec679 | [
"MIT"
] | 15 | 2019-07-23T01:47:56.000Z | 2021-12-14T22:51:33.000Z | webrtc_stream_objectdetection/rpi_object_detection_opencv_python/picamera/camera.py | Ramudroid/Ramudroid | 10425397b68763e0a8e89e2a949df737d7e945ee | [
"MIT"
] | 4 | 2019-11-17T12:32:45.000Z | 2021-12-13T20:19:00.000Z | webrtc_stream_objectdetection/rpi_object_detection_opencv_python/picamera/camera.py | Ramudroid/Ramudroid | 10425397b68763e0a8e89e2a949df737d7e945ee | [
"MIT"
] | 6 | 2019-07-23T01:48:03.000Z | 2022-03-03T03:28:24.000Z | from picamera import PiCamera
from time import sleep
camera = PiCamera()
# preview
# camera.start_preview()
# sleep(5)
# camera.stop_preview()
# take 5 pics
camera.start_preview()
for i in range(5):
sleep(5)
camera.capture('/home/pi/Desktop/image%s.jpg' % i)
camera.stop_preview()
# video record
# camera.sta... | 19.521739 | 55 | 0.726058 | 65 | 449 | 4.892308 | 0.415385 | 0.138365 | 0.169811 | 0.100629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.126949 | 449 | 23 | 56 | 19.521739 | 0.790816 | 0.485523 | 0 | 0 | 0 | 0 | 0.127273 | 0.127273 | 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 |
94de5ebc7c73b43d6ef0f7006cc1fd474681a311 | 5,466 | py | Python | mod/db/models.py | MoreliaTalk/Server | 5d42cf999682271ef8d54b5c6e09f06bed08d946 | [
"Unlicense"
] | null | null | null | mod/db/models.py | MoreliaTalk/Server | 5d42cf999682271ef8d54b5c6e09f06bed08d946 | [
"Unlicense"
] | null | null | null | mod/db/models.py | MoreliaTalk/Server | 5d42cf999682271ef8d54b5c6e09f06bed08d946 | [
"Unlicense"
] | null | null | null | """
Copyright (c) 2020 - present NekrodNIK, Stepan Skriabin, rus-ai and other.
Look at the file AUTHORS.md(located at the root of the project) to get the
full list.
This file is part of Morelia Server.
Morelia Server is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General ... | 40.488889 | 79 | 0.679839 | 689 | 5,466 | 5.354136 | 0.272859 | 0.0656 | 0.051504 | 0.062348 | 0.29981 | 0.190024 | 0.113581 | 0.065058 | 0.065058 | 0.065058 | 0 | 0.00121 | 0.244054 | 5,466 | 134 | 80 | 40.791045 | 0.891578 | 0.635382 | 0 | 0.119048 | 0 | 0 | 0.023823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.02381 | 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 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
94dfdb1b54e79583c61a59cf0f6bbffe1fd6e3cf | 13,086 | py | Python | numerics/ODE.py | MGokcayK/numerics | 17d199f475a004911359db568d7b83939aa12481 | [
"MIT"
] | null | null | null | numerics/ODE.py | MGokcayK/numerics | 17d199f475a004911359db568d7b83939aa12481 | [
"MIT"
] | null | null | null | numerics/ODE.py | MGokcayK/numerics | 17d199f475a004911359db568d7b83939aa12481 | [
"MIT"
] | null | null | null | """
Author : Mehmet Gokcay Kabatas
Mail : mgokcaykdev@gmail.com
Version : 0.1
Date : 04/12/2019
Update : 14/12/2019
Python : 3.6.5
Update Note : Arranging system of ODE methods and descriptions.
This script written by @Author for personal usage.
Prerequest : numpy
"""
import numpy as np
class... | 25.558594 | 120 | 0.404707 | 1,763 | 13,086 | 2.946115 | 0.087351 | 0.029265 | 0.025992 | 0.041586 | 0.815556 | 0.79072 | 0.75876 | 0.752214 | 0.752214 | 0.744513 | 0 | 0.050864 | 0.460645 | 13,086 | 511 | 121 | 25.608611 | 0.685038 | 0.446661 | 0 | 0.681481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.007407 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
94e0a76fde2cf1e193101637e66e23379e96d8e0 | 224 | py | Python | cookiecutter-django-app/{{cookiecutter.repo_name}}/{{cookiecutter.app_name}}/__init__.py | ghassanmas/edx-cookiecutters | b186021f7322d9c493f1875fff797ebae33157b0 | [
"Apache-2.0"
] | 23 | 2016-09-13T17:57:46.000Z | 2020-03-29T09:30:48.000Z | cookiecutter-django-app/{{cookiecutter.repo_name}}/{{cookiecutter.app_name}}/__init__.py | ghassanmas/edx-cookiecutters | b186021f7322d9c493f1875fff797ebae33157b0 | [
"Apache-2.0"
] | 40 | 2020-05-11T16:50:12.000Z | 2021-12-20T02:19:23.000Z | cookiecutter-django-app/{{cookiecutter.repo_name}}/{{cookiecutter.app_name}}/__init__.py | ghassanmas/edx-cookiecutters | b186021f7322d9c493f1875fff797ebae33157b0 | [
"Apache-2.0"
] | 7 | 2017-05-31T14:13:52.000Z | 2020-05-12T21:18:48.000Z | """
{{ cookiecutter.project_short_description }}.
"""
__version__ = '{{ cookiecutter.version }}'
default_app_config = '{{ cookiecutter.app_name }}.apps.{{ cookiecutter.config_class_name }}' # pylint: disable=invalid-name
| 28 | 124 | 0.723214 | 22 | 224 | 6.863636 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102679 | 224 | 7 | 125 | 32 | 0.751244 | 0.334821 | 0 | 0 | 0 | 0 | 0.673759 | 0.361702 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
94e12cd9710f6c79b7d5368f138b150067c7b158 | 6,314 | py | Python | Bot/cogs/search.py | andrewlee91/DiscordBot | b20cfa95f90e0a7299a9f117eca48fc2c59adf9f | [
"MIT"
] | null | null | null | Bot/cogs/search.py | andrewlee91/DiscordBot | b20cfa95f90e0a7299a9f117eca48fc2c59adf9f | [
"MIT"
] | null | null | null | Bot/cogs/search.py | andrewlee91/DiscordBot | b20cfa95f90e0a7299a9f117eca48fc2c59adf9f | [
"MIT"
] | null | null | null | import json
import logging
import discord
import requests
from discord.ext import commands
logger = logging.getLogger(__name__)
class search(commands.Cog):
"""Search commands for various websites"""
def __init__(self, bot):
self.bot = bot
@commands.command()
async def urban(self, ctx, *, t... | 32.885417 | 92 | 0.509819 | 582 | 6,314 | 5.489691 | 0.254296 | 0.027543 | 0.044757 | 0.058529 | 0.661033 | 0.634116 | 0.556495 | 0.510172 | 0.459468 | 0.396244 | 0 | 0.003504 | 0.367279 | 6,314 | 191 | 93 | 33.057592 | 0.796245 | 0.076497 | 0 | 0.496644 | 0 | 0 | 0.310525 | 0.007331 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013423 | false | 0 | 0.033557 | 0 | 0.053691 | 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 |
94e2484bd934870ec83c679e77977061aaba0d29 | 6,867 | py | Python | adbiclient/adbi/adbi.py | Samsung/ADBI | 3e424c45386b0a36c57211da819021cb1929775a | [
"Apache-2.0"
] | 312 | 2016-02-04T11:03:17.000Z | 2022-03-18T11:30:10.000Z | adbiclient/adbi/adbi.py | NickHardwood/ADBI | 3e424c45386b0a36c57211da819021cb1929775a | [
"Apache-2.0"
] | 4 | 2016-02-04T11:05:40.000Z | 2017-07-27T04:22:27.000Z | adbiclient/adbi/adbi.py | NickHardwood/ADBI | 3e424c45386b0a36c57211da819021cb1929775a | [
"Apache-2.0"
] | 85 | 2016-02-04T12:48:30.000Z | 2021-01-14T06:23:24.000Z | from rsock import ReliableSocket
from packet import Packet, Header, Payload
from collections import namedtuple
import struct
Symbol = namedtuple('Symbol', 'address name')
Tracepoint = namedtuple('Tracepoint', 'address handler')
Injectable = namedtuple('Injectable', 'id filename refs type name comment')
class ADBIExce... | 33.014423 | 92 | 0.567642 | 771 | 6,867 | 4.971466 | 0.228275 | 0.10227 | 0.071224 | 0.081398 | 0.262458 | 0.219932 | 0.19593 | 0.180277 | 0.148187 | 0.103052 | 0 | 0.009934 | 0.296345 | 6,867 | 208 | 93 | 33.014423 | 0.78332 | 0 | 0 | 0.217647 | 0 | 0 | 0.072219 | 0 | 0 | 0 | 0.00233 | 0 | 0 | 1 | 0.205882 | false | 0.005882 | 0.029412 | 0.058824 | 0.394118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94e42a20e811b3c4c8adc67aee484d21ee61eb8f | 432 | py | Python | src/pythonFEA/templates/property.py | honzatomek/pythonFEA | c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7 | [
"MIT"
] | null | null | null | src/pythonFEA/templates/property.py | honzatomek/pythonFEA | c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7 | [
"MIT"
] | null | null | null | src/pythonFEA/templates/property.py | honzatomek/pythonFEA | c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7 | [
"MIT"
] | null | null | null | from .errors import *
from .basic import Basic
import logging
class Property(Basic):
command = 'PROPERTY'
type = 'Property'
storage_type = 'label'
def __init__(self, label, non_structural_mass = 0.0):
super().__init__(id=None, label=label)
self.nsm = non_structural_mass
@property
def nsm(self):
... | 19.636364 | 55 | 0.708333 | 59 | 432 | 4.830508 | 0.40678 | 0.182456 | 0.238596 | 0.140351 | 0.168421 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005698 | 0.1875 | 432 | 21 | 56 | 20.571429 | 0.806268 | 0 | 0 | 0 | 0 | 0 | 0.048724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0.0625 | 0.6875 | 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 | 1 | 0 | 0 | 2 |
94e46dab588b249b888b14d393509caa3e2c7213 | 1,042 | py | Python | deque.py | iliankostadinov/hackerrank-python | 4082eb5a6da7ab11ead9b687fdc2d9a846f59f99 | [
"Apache-2.0"
] | null | null | null | deque.py | iliankostadinov/hackerrank-python | 4082eb5a6da7ab11ead9b687fdc2d9a846f59f99 | [
"Apache-2.0"
] | null | null | null | deque.py | iliankostadinov/hackerrank-python | 4082eb5a6da7ab11ead9b687fdc2d9a846f59f99 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from collections import deque
def pilingUp(q):
if len(d) > 1:
value = "Yes"
currentEl = 0
if d[0] > d[-1]:
currentEl = d[0]
d.popleft()
else:
currentEl = d[-1]
d.pop()
for _ in range(len(d) - 1):
... | 22.170213 | 50 | 0.432821 | 125 | 1,042 | 3.496 | 0.424 | 0.02746 | 0.020595 | 0.022883 | 0.02746 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02087 | 0.448177 | 1,042 | 46 | 51 | 22.652174 | 0.73913 | 0.099808 | 0 | 0.285714 | 0 | 0 | 0.017167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.028571 | 0 | 0.085714 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94e47510d912939867b8bf4137069b8df856ea63 | 12,864 | py | Python | Psience/DVR/BaseDVR.py | McCoyGroup/Coordinerds | 058a4f5b29f157e499cec3c8f2da8b216f0210ef | [
"MIT"
] | null | null | null | Psience/DVR/BaseDVR.py | McCoyGroup/Coordinerds | 058a4f5b29f157e499cec3c8f2da8b216f0210ef | [
"MIT"
] | null | null | null | Psience/DVR/BaseDVR.py | McCoyGroup/Coordinerds | 058a4f5b29f157e499cec3c8f2da8b216f0210ef | [
"MIT"
] | null | null | null | """
Redoes what was originally PyDVR but in the _right_ way using proper subclassing and abstract properties
"""
import abc, numpy as np, scipy.sparse as sp, scipy.interpolate as interp
from McUtils.Data import UnitsData
__all__ = ["BaseDVR", "DVRResults", "DVRException"]
class BaseDVR(metaclass=abc.ABCMeta):
"... | 32.900256 | 125 | 0.54773 | 1,438 | 12,864 | 4.776078 | 0.196106 | 0.041497 | 0.010483 | 0.012231 | 0.194962 | 0.139633 | 0.112842 | 0.082266 | 0.059843 | 0.052708 | 0 | 0.006977 | 0.364894 | 12,864 | 390 | 126 | 32.984615 | 0.83366 | 0.189366 | 0 | 0.3 | 0 | 0.004167 | 0.054721 | 0 | 0 | 0 | 0 | 0.002564 | 0 | 1 | 0.0625 | false | 0 | 0.020833 | 0 | 0.170833 | 0.004167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94e54ce08093f7eeec968430ff2c16c5e73a50b8 | 3,802 | py | Python | Weight-Converter-GUI/weight_con_gui.py | avinashkranjan/PraticalPythonProjects | 12c1f7cedae57a843ceb6aba68cca48df505f341 | [
"MIT"
] | 930 | 2020-09-05T22:07:28.000Z | 2022-03-30T07:56:18.000Z | Weight-Converter-GUI/weight_con_gui.py | maheshdbabar9340/Amazing-Python-Scripts | e2272048cbe49b4bda5072bbdd8479739bb6c18d | [
"MIT"
] | 893 | 2020-09-04T07:57:24.000Z | 2022-02-08T02:12:26.000Z | Weight-Converter-GUI/weight_con_gui.py | maheshdbabar9340/Amazing-Python-Scripts | e2272048cbe49b4bda5072bbdd8479739bb6c18d | [
"MIT"
] | 497 | 2020-09-05T08:16:24.000Z | 2022-03-31T00:55:57.000Z | # import libraries
from tkinter import *
# initialized window
root = Tk()
root.geometry('480x350')
root.resizable(0, 0)
root.title('Weight Converter')
# defining the function for converting weights
def WeightConv():
# making textbox user-friendly that is editable
t1.configure(state='normal')
t1.delete(... | 26.964539 | 76 | 0.653603 | 587 | 3,802 | 4.229983 | 0.267462 | 0.059203 | 0.068063 | 0.050745 | 0.111156 | 0.053162 | 0 | 0 | 0 | 0 | 0 | 0.076059 | 0.180431 | 3,802 | 140 | 77 | 27.157143 | 0.720796 | 0.136244 | 0 | 0 | 0 | 0 | 0.126377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011494 | false | 0 | 0.011494 | 0 | 0.022989 | 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 |
94e8d2a632eeca6338d3e4d6466fdec1e8bb6e14 | 3,789 | py | Python | tests/common/test_op/ascend/pooling.py | tianjiashuo/akg | a9cbf642063fb1086a93e8bc6be6feb145689817 | [
"Apache-2.0"
] | 286 | 2020-06-23T06:40:44.000Z | 2022-03-30T01:27:49.000Z | tests/common/test_op/ascend/pooling.py | tianjiashuo/akg | a9cbf642063fb1086a93e8bc6be6feb145689817 | [
"Apache-2.0"
] | 10 | 2020-07-31T03:26:59.000Z | 2021-12-27T15:00:54.000Z | tests/common/test_op/ascend/pooling.py | tianjiashuo/akg | a9cbf642063fb1086a93e8bc6be6feb145689817 | [
"Apache-2.0"
] | 30 | 2020-07-17T01:04:14.000Z | 2021-12-27T14:05:19.000Z | # Copyright 2020-2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | 36.432692 | 84 | 0.611771 | 532 | 3,789 | 4.261278 | 0.287594 | 0.043229 | 0.013233 | 0.012351 | 0.210851 | 0.127481 | 0.053816 | 0.029113 | 0.029113 | 0.029113 | 0 | 0.024065 | 0.287147 | 3,789 | 103 | 85 | 36.786408 | 0.815254 | 0.398786 | 0 | 0.098039 | 0 | 0 | 0.164446 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.078431 | 0 | 0.156863 | 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 |
94e94b722e8d9c3a8b216d12bcf8c0b49e28c1e0 | 363 | py | Python | testing/test_caching_obj.py | jkpubsrc/python-module-jk-cachefunccalls | f49779001b7b19a460155d8bd2cbf5e22b5c947d | [
"Apache-1.1"
] | null | null | null | testing/test_caching_obj.py | jkpubsrc/python-module-jk-cachefunccalls | f49779001b7b19a460155d8bd2cbf5e22b5c947d | [
"Apache-1.1"
] | null | null | null | testing/test_caching_obj.py | jkpubsrc/python-module-jk-cachefunccalls | f49779001b7b19a460155d8bd2cbf5e22b5c947d | [
"Apache-1.1"
] | null | null | null | #!/usr/bin/python3
import collections
import typing
import inspect
import time
from jk_cachefunccalls import cacheCalls
from _test_and_evaluate import testAndEvaluate
class MyTestClass(object):
@cacheCalls(seconds=2, dependArgs=[0])
def returnSomething(self, n):
return time.time()
#
#
o = MyTestClass(... | 10.371429 | 46 | 0.760331 | 42 | 363 | 6.47619 | 0.690476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009772 | 0.15427 | 363 | 34 | 47 | 10.676471 | 0.876222 | 0.046832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.5 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
94ec60d726d1c7025eb5dc2c24a497e98d0c9056 | 15,039 | py | Python | Ch18/gpc.py | quietcoolwu/MLCode | b4bdb7ee3468da597e5d16cfb58728e3c29ca889 | [
"Xnet",
"X11"
] | null | null | null | Ch18/gpc.py | quietcoolwu/MLCode | b4bdb7ee3468da597e5d16cfb58728e3c29ca889 | [
"Xnet",
"X11"
] | null | null | null | Ch18/gpc.py | quietcoolwu/MLCode | b4bdb7ee3468da597e5d16cfb58728e3c29ca889 | [
"Xnet",
"X11"
] | null | null | null | # Code from Chapter 18 of Machine Learning: An Algorithmic Perspective (2nd Edition)
# by Stephen Marsland (http://stephenmonika.net)
# You are free to use, change, or redistribute the code in any way you wish for
# non-commercial purposes, but please maintain the name of the original author.
# This code comes with no... | 37.041872 | 122 | 0.541924 | 2,464 | 15,039 | 3.302354 | 0.09862 | 0.014747 | 0.010323 | 0.011798 | 0.763549 | 0.732702 | 0.696448 | 0.667814 | 0.662529 | 0.660071 | 0 | 0.058818 | 0.233526 | 15,039 | 405 | 123 | 37.133333 | 0.647089 | 0.139371 | 0 | 0.602113 | 0 | 0 | 0.016449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03169 | false | 0 | 0.010563 | 0 | 0.070423 | 0.070423 | 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 |
94ee81700cccc92d145a91273dcbf30469d045b5 | 2,130 | py | Python | MoinMoin/datastruct/backends/composite_groups.py | RealTimeWeb/wikisite | 66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5 | [
"Apache-2.0"
] | 1 | 2016-04-01T04:02:28.000Z | 2016-04-01T04:02:28.000Z | Documentation/ManualSource/wikicmd/MoinMoin/datastruct/backends/composite_groups.py | sleyzerzon/soar | 74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71 | [
"Unlicense"
] | 3 | 2020-06-26T21:21:32.000Z | 2020-06-26T21:21:36.000Z | Documentation/ManualSource/wikicmd/MoinMoin/datastruct/backends/composite_groups.py | sleyzerzon/soar | 74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71 | [
"Unlicense"
] | 2 | 2017-01-25T20:06:44.000Z | 2021-03-25T18:39:55.000Z | # -*- coding: iso-8859-1 -*-
"""
MoinMoin - group access via various backends.
The composite_groups is a backend that does not have direct storage,
but composes other backends to a new one, so group definitions are
retrieved from several backends. This allows to mix different
backends.
@copyright: 2009 DmitrijsMilaje... | 30 | 82 | 0.630516 | 244 | 2,130 | 5.29918 | 0.438525 | 0.076566 | 0.04331 | 0.037123 | 0.055684 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.302817 | 2,130 | 70 | 83 | 30.428571 | 0.864646 | 0.413146 | 0 | 0.115385 | 0 | 0 | 0.014625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0.038462 | 0.038462 | 0.038462 | 0.423077 | 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 |
94ef7d0044d15bba93e634290af3a6fddf02e79a | 15,192 | py | Python | experiments/distributed/detection/main_fedavg_fasterrcnn.py | RicardLake/FedDetection | a4004593a4d07126447db73b98b53a7e56e0472b | [
"MIT"
] | null | null | null | experiments/distributed/detection/main_fedavg_fasterrcnn.py | RicardLake/FedDetection | a4004593a4d07126447db73b98b53a7e56e0472b | [
"MIT"
] | null | null | null | experiments/distributed/detection/main_fedavg_fasterrcnn.py | RicardLake/FedDetection | a4004593a4d07126447db73b98b53a7e56e0472b | [
"MIT"
] | null | null | null | import argparse
import logging
import os
import random
import socket
import sys
import datetime
import numpy as np
import psutil
import setproctitle
import torch
import torchvision.models
#import wandb
# add the FedML root directory to the python path
sys.path.insert(0, os.path.abspath(os.path.join(os.getcwd(), "../... | 45.349254 | 154 | 0.635729 | 1,858 | 15,192 | 4.983315 | 0.213132 | 0.038881 | 0.073442 | 0.019009 | 0.255211 | 0.162869 | 0.139756 | 0.123987 | 0.095907 | 0.095907 | 0 | 0.009486 | 0.257504 | 15,192 | 334 | 155 | 45.48503 | 0.811348 | 0.155016 | 0 | 0.009852 | 0 | 0.014778 | 0.235437 | 0.028187 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024631 | false | 0 | 0.098522 | 0 | 0.162562 | 0.004926 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94f1a97363b5f6d9cb9e80535531efb052a4d58d | 1,678 | py | Python | src/ship_detector/main.py | dzubke/ship_detector | 28212be681914ad739544f6b849152f502289ff3 | [
"MIT"
] | 1 | 2019-11-28T02:39:31.000Z | 2019-11-28T02:39:31.000Z | src/ship_detector/main.py | dzubke/ship_detector | 28212be681914ad739544f6b849152f502289ff3 | [
"MIT"
] | null | null | null | src/ship_detector/main.py | dzubke/ship_detector | 28212be681914ad739544f6b849152f502289ff3 | [
"MIT"
] | null | null | null | # standard libraries
import time
# non-standard libraries
from sklearn.linear_model import LogisticRegression
# all of the local modules
from prep_data import read_images, dataset_split
from explore_data import array_info, image_info
from models import run_model
from assess_model import count_time, roc_assess, F1sco... | 29.438596 | 151 | 0.722884 | 241 | 1,678 | 4.813278 | 0.40249 | 0.041379 | 0.036207 | 0.049138 | 0.118966 | 0.118966 | 0.067241 | 0.067241 | 0 | 0 | 0 | 0.014215 | 0.161502 | 1,678 | 57 | 152 | 29.438596 | 0.810235 | 0.200834 | 0 | 0 | 0 | 0.083333 | 0.217293 | 0.060902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.25 | 0 | 0.291667 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
94f1ff09cb84288db3c23319870e98e03bf23f8d | 17,246 | py | Python | panic/gui/actions.py | MaxIV-KitsControls/app-cells-panicgui | 58c5610970135e6fbb7b715094514b33bc1bc9c1 | [
"CC-BY-3.0"
] | 1 | 2019-09-20T08:10:32.000Z | 2019-09-20T08:10:32.000Z | panic/gui/actions.py | MaxIV-KitsControls/app-cells-panicgui | 58c5610970135e6fbb7b715094514b33bc1bc9c1 | [
"CC-BY-3.0"
] | null | null | null | panic/gui/actions.py | MaxIV-KitsControls/app-cells-panicgui | 58c5610970135e6fbb7b715094514b33bc1bc9c1 | [
"CC-BY-3.0"
] | null | null | null | """
This file belongs to the PANIC Alarm Suite,
developed by ALBA Synchrotron for Tango Control System
GPL Licensed
"""
import sys, re, os, traceback, time
import PyTango, fandango
from fandango.functional import *
from fandango import Catched
import taurus, taurus.qt.qtgui.base
from taurus.core import TaurusEventTy... | 39.195455 | 85 | 0.548591 | 1,831 | 17,246 | 5.13053 | 0.183506 | 0.02459 | 0.029806 | 0.04769 | 0.427081 | 0.377581 | 0.354269 | 0.34522 | 0.328827 | 0.308175 | 0 | 0.002777 | 0.331787 | 17,246 | 439 | 86 | 39.284738 | 0.812392 | 0.055549 | 0 | 0.365497 | 0 | 0 | 0.098942 | 0.007885 | 0.008772 | 0 | 0 | 0 | 0.002924 | 0 | null | null | 0.01462 | 0.04386 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
94f3547b6d861aa035a7b7758d5e02a28082e623 | 197 | py | Python | application.py | phenopolis/phenopolis_genomics_browser | b67778fac41d16445eb983af9c505ef17e1949b2 | [
"MIT"
] | 3 | 2021-11-20T04:52:32.000Z | 2022-03-21T17:42:30.000Z | application.py | phenopolis/phenopolis_genomics_browser | b67778fac41d16445eb983af9c505ef17e1949b2 | [
"MIT"
] | 21 | 2021-10-20T16:39:38.000Z | 2022-03-04T12:47:46.000Z | application.py | phenopolis/phenopolis_genomics_browser | b67778fac41d16445eb983af9c505ef17e1949b2 | [
"MIT"
] | null | null | null | """
Flask app
"""
from views import APP_ENV, application
if __name__ == "__main__":
application.debug = False
if APP_ENV == "debug":
application.debug = True
application.run()
| 17.909091 | 38 | 0.649746 | 23 | 197 | 5.130435 | 0.608696 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228426 | 197 | 10 | 39 | 19.7 | 0.776316 | 0.045685 | 0 | 0 | 0 | 0 | 0.072222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
94f38c4de85964984884d82f381aa9b84ed0adc1 | 521 | py | Python | Leetcoding-Actions/Explore-Monthly-Challenges/2020-08/29-pancake-sorting.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | 1 | 2020-11-14T18:28:13.000Z | 2020-11-14T18:28:13.000Z | Leetcoding-Actions/Explore-Monthly-Challenges/2020-08/29-pancake-sorting.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | null | null | null | Leetcoding-Actions/Explore-Monthly-Challenges/2020-08/29-pancake-sorting.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | null | null | null | class Solution:
def pancakeSort(self, A: List[int]) -> List[int]:
result = []
def flip(idx):
for i in range(0, idx//2+1):
temp = A[i]
A[i] = A[idx-i]
A[idx-i] = temp
for i in range(len(A)-1, 0, -1):
for j in range(1, i+1... | 28.944444 | 53 | 0.372361 | 70 | 521 | 2.771429 | 0.357143 | 0.108247 | 0.061856 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.493282 | 521 | 17 | 54 | 30.647059 | 0.693182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0 | 0.235294 | 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 |
94f3b18944a11c75445cef1a85dda665ee609119 | 46,746 | py | Python | lib/jnpr/healthbot/swagger/api/organization_api.py | Juniper/healthbot-py-client | 49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6 | [
"Apache-2.0"
] | 10 | 2019-10-23T12:54:37.000Z | 2022-02-07T19:24:30.000Z | lib/jnpr/healthbot/swagger/api/organization_api.py | Juniper/healthbot-py-client | 49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6 | [
"Apache-2.0"
] | 5 | 2019-09-30T04:29:25.000Z | 2022-02-16T12:21:06.000Z | lib/jnpr/healthbot/swagger/api/organization_api.py | Juniper/healthbot-py-client | 49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6 | [
"Apache-2.0"
] | 4 | 2019-09-30T01:17:48.000Z | 2020-08-25T07:27:54.000Z | # coding: utf-8
"""
Paragon Insights APIs
API interface for PI application # noqa: E501
OpenAPI spec version: 4.0.0
Contact: healthbot-feedback@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# py... | 46.980905 | 164 | 0.648013 | 5,652 | 46,746 | 5.058209 | 0.030786 | 0.046731 | 0.069957 | 0.047011 | 0.982896 | 0.982896 | 0.982896 | 0.980237 | 0.980027 | 0.979712 | 0 | 0.014873 | 0.266461 | 46,746 | 994 | 165 | 47.028169 | 0.818868 | 0.323835 | 0 | 0.824399 | 1 | 0 | 0.260303 | 0.090026 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031423 | false | 0 | 0.007394 | 0 | 0.085028 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
94f3f49e86448de339f43f2ca616b2920b9513bb | 465 | py | Python | json/utils.py | verbalsaintmars/python_util | 3cc018f36607e3f4715bb96cb76ec7097838b1ce | [
"MIT"
] | null | null | null | json/utils.py | verbalsaintmars/python_util | 3cc018f36607e3f4715bb96cb76ec7097838b1ce | [
"MIT"
] | null | null | null | json/utils.py | verbalsaintmars/python_util | 3cc018f36607e3f4715bb96cb76ec7097838b1ce | [
"MIT"
] | null | null | null | import json
def create_json(input):
return json.load(input)
def extract_value(expect_keys, json_dict):
"""
expect_keys: tuple , e.g ("nodeuser", "user")
return: None if no value, else value
"""
temp_val = json_dict.get(expect_keys[0])
if isinstance(temp_val, dict) and len(expect_keys) >... | 22.142857 | 59 | 0.649462 | 68 | 465 | 4.220588 | 0.441176 | 0.209059 | 0.114983 | 0.15331 | 0.139373 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011299 | 0.23871 | 465 | 20 | 60 | 23.25 | 0.799435 | 0.176344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
94f4ba6ed64d50cbeeb879a9d70560a5dacf3d3b | 321 | py | Python | rssant_worker/main.py | zuzhi/rssant | 06d985845f6af3be7097e6d718afba7eeb195ec8 | [
"BSD-3-Clause"
] | 1,176 | 2019-12-24T01:51:22.000Z | 2022-03-29T06:00:25.000Z | rssant_worker/main.py | zuzhi/rssant | 06d985845f6af3be7097e6d718afba7eeb195ec8 | [
"BSD-3-Clause"
] | 33 | 2020-03-06T03:29:46.000Z | 2022-03-11T06:24:26.000Z | rssant_worker/main.py | zuzhi/rssant | 06d985845f6af3be7097e6d718afba7eeb195ec8 | [
"BSD-3-Clause"
] | 110 | 2019-12-29T05:49:24.000Z | 2022-03-28T06:44:21.000Z | import os
if os.getenv('MODULE_GRAPH_HOOKER') in ('1', 'true', 'True'):
import module_graph
module_graph.setup_hooker(save_to='data/rssant_worker_module_graph.json', verbose=True)
from rssant_common.actor_helper import start_actor # noqa: F402
if __name__ == "__main__":
start_actor('worker', port=6792)... | 26.75 | 91 | 0.744548 | 47 | 321 | 4.638298 | 0.617021 | 0.201835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028674 | 0.130841 | 321 | 11 | 92 | 29.181818 | 0.752688 | 0.031153 | 0 | 0 | 0 | 0 | 0.252427 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
94f4ddecf6b729fadb8142b50b2738a3b687fb16 | 6,816 | py | Python | index_server/containers/bgsplit_mapper/handler.py | jeremyephron/forager | 6db1590686e0e34b2e42ff5deb70f62fcee73d7d | [
"MIT"
] | 1 | 2020-12-01T23:25:58.000Z | 2020-12-01T23:25:58.000Z | index_server/containers/bgsplit_mapper/handler.py | jeremyephron/forager | 6db1590686e0e34b2e42ff5deb70f62fcee73d7d | [
"MIT"
] | 2 | 2020-10-07T01:03:06.000Z | 2020-10-12T19:08:55.000Z | index_server/containers/bgsplit_mapper/handler.py | jeremyephron/forager | 6db1590686e0e34b2e42ff5deb70f62fcee73d7d | [
"MIT"
] | null | null | null | import numpy as np
import aiohttp
import asyncio
import os.path
from pathlib import Path
import torch
import torch.nn.functional as F
from torchvision import transforms, utils, io
from typing import Dict, List, Optional, Tuple, Union, Any
from enum import Enum
from knn import utils
from knn.mappers import Mapper
from ... | 36.063492 | 89 | 0.577171 | 775 | 6,816 | 4.865806 | 0.261935 | 0.037125 | 0.020684 | 0.030496 | 0.20419 | 0.13206 | 0.120392 | 0.094935 | 0.077433 | 0.057279 | 0 | 0.012093 | 0.332746 | 6,816 | 188 | 90 | 36.255319 | 0.817062 | 0.019513 | 0 | 0.069182 | 0 | 0 | 0.055589 | 0 | 0 | 0 | 0 | 0 | 0.012579 | 1 | 0.006289 | false | 0.006289 | 0.100629 | 0 | 0.163522 | 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 |
94f52a5e553ca733b3138d1b081bb226e35c66cc | 17,794 | py | Python | generated-libraries/python/netapp/volume/volume_attributes.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | 2 | 2017-03-28T15:31:26.000Z | 2018-08-16T22:15:18.000Z | generated-libraries/python/netapp/volume/volume_attributes.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | generated-libraries/python/netapp/volume/volume_attributes.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | from netapp.volume.volume_hybrid_cache_attributes import VolumeHybridCacheAttributes
from netapp.volume.volume_mirror_attributes import VolumeMirrorAttributes
from netapp.volume.volume_space_attributes import VolumeSpaceAttributes
from netapp.volume.volume_directory_attributes import VolumeDirectoryAttributes
from neta... | 41.868235 | 143 | 0.694785 | 1,821 | 17,794 | 6.488193 | 0.100494 | 0.03504 | 0.031147 | 0.042827 | 0.440542 | 0.279306 | 0.185019 | 0.1438 | 0.117647 | 0.008802 | 0 | 0.002042 | 0.229516 | 17,794 | 424 | 144 | 41.966981 | 0.859737 | 0.139991 | 0 | 0.166667 | 0 | 0 | 0.16894 | 0.119264 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170139 | false | 0 | 0.083333 | 0.010417 | 0.427083 | 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 |
94f9d7fbfdb6b3a2de5dcc04f68b6e728b2be5ff | 4,517 | py | Python | bin/plot_matches.py | hidden-ar/OpenSfM | 3ea1216d4dedc94b93ea9f7aa51cd8efd7377922 | [
"BSD-2-Clause"
] | null | null | null | bin/plot_matches.py | hidden-ar/OpenSfM | 3ea1216d4dedc94b93ea9f7aa51cd8efd7377922 | [
"BSD-2-Clause"
] | null | null | null | bin/plot_matches.py | hidden-ar/OpenSfM | 3ea1216d4dedc94b93ea9f7aa51cd8efd7377922 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
import argparse
import os.path
from itertools import combinations
import matplotlib.cm as cm
import matplotlib.pyplot as pl
import numpy as np
from opensfm import dataset
from opensfm import features
from opensfm import io
from numpy import ndarray
from typing import List
def plot_matches(im1... | 33.213235 | 88 | 0.593314 | 624 | 4,517 | 4.200321 | 0.286859 | 0.016024 | 0.03243 | 0.020603 | 0.108737 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.251494 | 4,517 | 135 | 89 | 33.459259 | 0.734398 | 0.004649 | 0 | 0.116071 | 0 | 0 | 0.100779 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 1 | 0.026786 | false | 0 | 0.098214 | 0 | 0.125 | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94fa2681b04226b78da641bf14ffbff25cef7b0f | 3,738 | py | Python | sarabande/.ipynb_checkpoints/main-checkpoint.py | James11222/sarabande | 387cafede311be8c7069e5ae6fe3cf42c198ccda | [
"MIT"
] | null | null | null | sarabande/.ipynb_checkpoints/main-checkpoint.py | James11222/sarabande | 387cafede311be8c7069e5ae6fe3cf42c198ccda | [
"MIT"
] | null | null | null | sarabande/.ipynb_checkpoints/main-checkpoint.py | James11222/sarabande | 387cafede311be8c7069e5ae6fe3cf42c198ccda | [
"MIT"
] | null | null | null | import numpy as np
from subprocess import call
import astropy.io.fits as pyf
import time
from .utils import *
class measure:
def __init__(self, nPCF=4, projected=False, m_max=None, density_field_data = None, save_dir=None, save_name=None, ell_max=5,
nbins=4, bin_spacing='LIN',bin_min=1, physi... | 46.148148 | 142 | 0.578384 | 522 | 3,738 | 3.992337 | 0.260536 | 0.036948 | 0.069098 | 0.023992 | 0.329175 | 0.290787 | 0.235125 | 0.178503 | 0.151631 | 0.151631 | 0 | 0.017724 | 0.32076 | 3,738 | 81 | 143 | 46.148148 | 0.803072 | 0.05297 | 0 | 0.189655 | 0 | 0.051724 | 0.237874 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 1 | 0.017241 | false | 0 | 0.086207 | 0 | 0.12069 | 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 |
94fa2e14e0d1dfe16f4c15a317e698c6a669286d | 133 | py | Python | main (31).py | alyizzet/Python_Programming_Exercises | 96cc7ab6a760d58a8a08d511d834d13b162cf794 | [
"Apache-2.0"
] | null | null | null | main (31).py | alyizzet/Python_Programming_Exercises | 96cc7ab6a760d58a8a08d511d834d13b162cf794 | [
"Apache-2.0"
] | null | null | null | main (31).py | alyizzet/Python_Programming_Exercises | 96cc7ab6a760d58a8a08d511d834d13b162cf794 | [
"Apache-2.0"
] | null | null | null | def swap_columns(M, m, n, i, j):
x = 0
while x < len(M):
M[x][i], M[x][j] = M[x][j], M[x][i]
x = x +1
return print(M)
| 16.625 | 39 | 0.443609 | 32 | 133 | 1.8125 | 0.4375 | 0.137931 | 0.103448 | 0.137931 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.293233 | 133 | 7 | 40 | 19 | 0.595745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
94fb48e24e8d440a0f32b5d2f24b262ed6774874 | 9,631 | py | Python | lib/aggregate_all_epitopes.py | mrichters/pVACtools | 1e86411055b3da9f81f966e83578dfadc3883498 | [
"BSD-3-Clause-Clear"
] | 96 | 2017-11-06T18:53:19.000Z | 2022-02-28T07:36:12.000Z | lib/aggregate_all_epitopes.py | mrichters/pVACtools | 1e86411055b3da9f81f966e83578dfadc3883498 | [
"BSD-3-Clause-Clear"
] | 521 | 2017-11-29T16:27:54.000Z | 2022-03-30T13:57:38.000Z | lib/aggregate_all_epitopes.py | mrichters/pVACtools | 1e86411055b3da9f81f966e83578dfadc3883498 | [
"BSD-3-Clause-Clear"
] | 53 | 2017-11-29T19:40:27.000Z | 2022-01-14T16:51:12.000Z | import pandas as pd
import numpy as np
class AggregateAllEpitopes:
def __init__(self, input_file, output_file, file_type='pVACseq'):
self.input_file = input_file
self.output_file = output_file
self.file_type = file_type
#assign mutations to a "Classification" based on their favorabilit... | 44.382488 | 208 | 0.553214 | 1,163 | 9,631 | 4.426483 | 0.192605 | 0.020202 | 0.025641 | 0.024476 | 0.304973 | 0.210567 | 0.175991 | 0.152098 | 0.128399 | 0.114413 | 0 | 0.015742 | 0.307445 | 9,631 | 216 | 209 | 44.587963 | 0.756072 | 0.093656 | 0 | 0.289941 | 0 | 0 | 0.210865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029586 | false | 0.059172 | 0.011834 | 0 | 0.100592 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
94fb7a6413d1406843ebe3c5eaf0726aecee2e7a | 2,600 | py | Python | profiles_api/views.py | teomoney1999/profiles-rest-api-final | 452f70f06abd423c61e8a8153a6ff64abd2730b0 | [
"MIT"
] | null | null | null | profiles_api/views.py | teomoney1999/profiles-rest-api-final | 452f70f06abd423c61e8a8153a6ff64abd2730b0 | [
"MIT"
] | 7 | 2020-06-06T01:55:15.000Z | 2022-02-10T13:59:01.000Z | profiles_api/views.py | teomoney1999/profiles-rest-api-final | 452f70f06abd423c61e8a8153a6ff64abd2730b0 | [
"MIT"
] | null | null | null | from rest_framework.views import APIView
from rest_framework.response import Response
"""List of HTTP status code"""
from rest_framework import status
from profiles_api import serializer
from rest_framework import viewsets
class HelloApiView(APIView):
"""Test API View"""
serializer_class = serializer.HelloSerial... | 28.26087 | 74 | 0.706154 | 343 | 2,600 | 5.262391 | 0.291545 | 0.100831 | 0.050416 | 0.065928 | 0.399446 | 0.305263 | 0.305263 | 0.25651 | 0.233795 | 0.181717 | 0 | 0.002754 | 0.161923 | 2,600 | 92 | 75 | 28.26087 | 0.825608 | 0.138846 | 0 | 0.245614 | 0 | 0 | 0.209087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192982 | false | 0 | 0.087719 | 0.052632 | 0.578947 | 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 |
94fcd28600d0a6e91aed228789715089ef0fff56 | 3,624 | py | Python | PRM_Django_REST_API/projects/models.py | maciejKusy/Project_Risk_Management_Django_REST_API | f654a3dedbe395d5ad80a3572e22bc0502326a48 | [
"MIT"
] | null | null | null | PRM_Django_REST_API/projects/models.py | maciejKusy/Project_Risk_Management_Django_REST_API | f654a3dedbe395d5ad80a3572e22bc0502326a48 | [
"MIT"
] | null | null | null | PRM_Django_REST_API/projects/models.py | maciejKusy/Project_Risk_Management_Django_REST_API | f654a3dedbe395d5ad80a3572e22bc0502326a48 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.datetime_safe import datetime
from simple_history.models import HistoricalRecords
class Project(models.Model):
"""
Used to house information pertaining to a particular project. The below fields are the bare minimum - additional
relevant fields can be added.
... | 37.360825 | 116 | 0.564018 | 373 | 3,624 | 5.310992 | 0.396783 | 0.035336 | 0.045432 | 0.060575 | 0.170621 | 0.150429 | 0.093892 | 0.041393 | 0 | 0 | 0 | 0.023112 | 0.331402 | 3,624 | 96 | 117 | 37.75 | 0.79447 | 0.096026 | 0 | 0.08 | 0 | 0 | 0.080062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0.026667 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
94ff17cb22d926e85be26c7e19448a851ae82e4b | 309 | py | Python | mowgli_etl/loader/json/json_node_loader.py | tetherless-world/mowgli | 28c19eba41e03e053ae4addff56a313d926e18d7 | [
"MIT"
] | 4 | 2021-01-15T15:36:23.000Z | 2021-09-01T06:52:05.000Z | mowgli_etl/loader/json/json_node_loader.py | tetherless-world/mowgli | 28c19eba41e03e053ae4addff56a313d926e18d7 | [
"MIT"
] | 63 | 2020-05-04T13:48:04.000Z | 2020-06-06T02:32:58.000Z | mowgli_etl/loader/json/json_node_loader.py | tetherless-world/mowgli-etl | 28c19eba41e03e053ae4addff56a313d926e18d7 | [
"MIT"
] | null | null | null | from mowgli_etl.loader._kg_node_loader import _KgNodeLoader
from mowgli_etl.loader.json._json_loader import _JsonLoader
class JsonNodeLoader(_KgNodeLoader, _JsonLoader):
_JSON_FILE_NAME = "nodes.json"
close = _JsonLoader.close
load_kg_node = _JsonLoader._load_model
open = _JsonLoader.open
| 28.090909 | 59 | 0.802589 | 39 | 309 | 5.820513 | 0.487179 | 0.088106 | 0.114537 | 0.167401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135922 | 309 | 10 | 60 | 30.9 | 0.850187 | 0 | 0 | 0 | 0 | 0 | 0.032362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a20090b70ca8a9617c581b36665d20b93d432a85 | 234 | py | Python | class1/p29_add_subtract_multiply_divide.py | anlei2014/ML-code | 4f501720ee94abc27534cf0aa7c30a8ecbf62398 | [
"MIT"
] | null | null | null | class1/p29_add_subtract_multiply_divide.py | anlei2014/ML-code | 4f501720ee94abc27534cf0aa7c30a8ecbf62398 | [
"MIT"
] | null | null | null | class1/p29_add_subtract_multiply_divide.py | anlei2014/ML-code | 4f501720ee94abc27534cf0aa7c30a8ecbf62398 | [
"MIT"
] | null | null | null | import tensorflow as tf
a = tf.ones([1, 3])
b = tf.fill([1, 3], 3.)
print("a:", a)
print("b:", b)
print("a+b:", tf.add(a, b))
print("a-b:", tf.subtract(a, b))
print("a*b:", tf.multiply(a, b))
print("b/a:", tf.divide(b, a))
| 21.272727 | 33 | 0.521368 | 49 | 234 | 2.489796 | 0.306122 | 0.098361 | 0.172131 | 0.196721 | 0.262295 | 0.180328 | 0 | 0 | 0 | 0 | 0 | 0.025773 | 0.17094 | 234 | 10 | 34 | 23.4 | 0.603093 | 0 | 0 | 0 | 0 | 0 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
a201fccda177475fd273262409fcc95c610514db | 1,823 | py | Python | tools/building_script/native_method_collector/base_native_method_collector.py | zhouyanlt/llbc | a8cc4662401e9b077be7ee0058350b35fdd86060 | [
"MIT"
] | 83 | 2015-11-10T09:52:56.000Z | 2022-01-12T11:53:01.000Z | tools/building_script/native_method_collector/base_native_method_collector.py | zhouyanlt/llbc | a8cc4662401e9b077be7ee0058350b35fdd86060 | [
"MIT"
] | 30 | 2017-09-30T07:43:20.000Z | 2022-01-23T13:18:48.000Z | tools/building_script/native_method_collector/base_native_method_collector.py | caochunxi/llbc | 2ff4af937f1635be67a7e24602d0a3e87c708ba7 | [
"MIT"
] | 34 | 2015-11-14T12:37:44.000Z | 2021-12-16T02:38:36.000Z | # -*- coding: utf-8 -*-
"""
基础native方法收集器,完成c/c++native方法收集,并整合到对应的脚本语言中
"""
import re
from os import path as op
from cpputils import *
from c import Cfg
from defs import LangType
class BaseNativeMethodCollector(object):
def __init__(self, search_path, classname_base=None, filename_base=None):
self.sea... | 32.553571 | 151 | 0.660998 | 243 | 1,823 | 4.72428 | 0.378601 | 0.069686 | 0.060976 | 0.047038 | 0.099303 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00494 | 0.22271 | 1,823 | 55 | 152 | 33.145455 | 0.805222 | 0.011519 | 0 | 0.054054 | 0 | 0 | 0.114631 | 0.012673 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.135135 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a20244ac84e009282501e8057bf8b16d29cf894f | 2,490 | py | Python | aries_cloudagent/vc/tests/document_loader.py | rbeltranmontijo/aries-python | 77f6e0dd2f98cb70c2a17a1c72b729f0766f8f61 | [
"Apache-2.0"
] | null | null | null | aries_cloudagent/vc/tests/document_loader.py | rbeltranmontijo/aries-python | 77f6e0dd2f98cb70c2a17a1c72b729f0766f8f61 | [
"Apache-2.0"
] | 8 | 2021-07-27T01:13:56.000Z | 2022-03-15T01:12:40.000Z | aries_cloudagent/vc/tests/document_loader.py | rbeltranmontijo/aries-python | 77f6e0dd2f98cb70c2a17a1c72b729f0766f8f61 | [
"Apache-2.0"
] | 1 | 2022-02-02T17:05:27.000Z | 2022-02-02T17:05:27.000Z | from .contexts import (
DID_V1,
SECURITY_V1,
SECURITY_V2,
SECURITY_V3_UNSTABLE,
CREDENTIALS_V1,
EXAMPLES_V1,
BBS_V1,
CITIZENSHIP_V1,
ODRL,
SCHEMA_ORG,
)
from ..ld_proofs.constants import (
SECURITY_CONTEXT_V2_URL,
SECURITY_CONTEXT_V1_URL,
DID_V1_CONTEXT_URL,
SECUR... | 34.583333 | 148 | 0.736145 | 239 | 2,490 | 7.334728 | 0.330544 | 0.068454 | 0.027382 | 0.022818 | 0.355961 | 0.13919 | 0.086709 | 0.086709 | 0.086709 | 0.086709 | 0 | 0.090148 | 0.184739 | 2,490 | 71 | 149 | 35.070423 | 0.773399 | 0.040964 | 0 | 0.15625 | 0 | 0 | 0.127883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015625 | false | 0 | 0.046875 | 0 | 0.09375 | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a203cf5cfdc6a8501d530dc5088e0a158e658e1d | 288 | py | Python | pandoc/filters/codeblocks_common.py | jasonchoimtt/dotfiles | 3064785ddc4f5fd13118e15167ee38409eac5bc9 | [
"MIT"
] | 13 | 2016-09-24T02:20:59.000Z | 2017-04-27T09:15:02.000Z | pandoc/filters/codeblocks_common.py | jasonchoimtt/dotfiles | 3064785ddc4f5fd13118e15167ee38409eac5bc9 | [
"MIT"
] | null | null | null | pandoc/filters/codeblocks_common.py | jasonchoimtt/dotfiles | 3064785ddc4f5fd13118e15167ee38409eac5bc9 | [
"MIT"
] | 1 | 2019-01-28T06:17:15.000Z | 2019-01-28T06:17:15.000Z | from collections import OrderedDict
def parse_codeblock_args(elem):
syntax = elem.classes[0] if elem.classes else ''
args = OrderedDict(elem.attributes)
for k, v in args.items():
if v.lower() in ('false', 'no'):
args[k] = False
return syntax, args
| 22.153846 | 52 | 0.631944 | 39 | 288 | 4.615385 | 0.615385 | 0.122222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00463 | 0.25 | 288 | 12 | 53 | 24 | 0.828704 | 0 | 0 | 0 | 0 | 0 | 0.024306 | 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 |
a2044c1186ed483ffd6b0bcb3da7937d377f7460 | 1,740 | py | Python | openconfig/ydk/models/openconfig/openconfig_aaa.py | CiscoDevNet/ydk-py | 073731fea50694d0bc6cd8ebf10fec308dcc0aa9 | [
"ECL-2.0",
"Apache-2.0"
] | 177 | 2016-03-15T17:03:51.000Z | 2022-03-18T16:48:44.000Z | openconfig/ydk/models/openconfig/openconfig_aaa.py | CiscoDevNet/ydk-py | 073731fea50694d0bc6cd8ebf10fec308dcc0aa9 | [
"ECL-2.0",
"Apache-2.0"
] | 18 | 2016-03-30T10:45:22.000Z | 2020-07-14T16:28:13.000Z | openconfig/ydk/models/openconfig/openconfig_aaa.py | CiscoDevNet/ydk-py | 073731fea50694d0bc6cd8ebf10fec308dcc0aa9 | [
"ECL-2.0",
"Apache-2.0"
] | 85 | 2016-03-16T20:38:57.000Z | 2022-02-22T04:26:02.000Z | """ openconfig_aaa
This module defines configuration and operational state data
related to authorization, authentication, and accounting (AAA)
management.
Portions of this model reuse data definitions or structure from
RFC 7317 \- A YANG Data Model for System Management
"""
import sys
from collections import Ordere... | 26.769231 | 126 | 0.697701 | 220 | 1,740 | 5.331818 | 0.422727 | 0.041773 | 0.034101 | 0.044331 | 0.461211 | 0.397272 | 0.397272 | 0.397272 | 0.397272 | 0.397272 | 0 | 0.018678 | 0.2 | 1,740 | 64 | 127 | 27.1875 | 0.823994 | 0.231034 | 0 | 0.4 | 0 | 0 | 0.127962 | 0.033175 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.36 | 0 | 0.68 | 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 |
a2069227330d2f68ac9581598475c67af9bc9bb2 | 361 | py | Python | python/libfuzzer/python-atheris/src/mayhemit.py | ForAllSecure/mayhem-examples | bae123373c7e760c8b0ea0d9fb182f6acfbe5381 | [
"MIT"
] | null | null | null | python/libfuzzer/python-atheris/src/mayhemit.py | ForAllSecure/mayhem-examples | bae123373c7e760c8b0ea0d9fb182f6acfbe5381 | [
"MIT"
] | null | null | null | python/libfuzzer/python-atheris/src/mayhemit.py | ForAllSecure/mayhem-examples | bae123373c7e760c8b0ea0d9fb182f6acfbe5381 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python3
import atheris
import sys
import os
def TestOneInput(data):
if len(data) >= 3 :
if data[0] == ord('b'):
if data[1] == ord('u'):
if data[2] == ord('g'):
raise Exception("Made it to the bug!")
atheris.instrument_all()
atheris.Setu... | 21.235294 | 58 | 0.556787 | 49 | 361 | 4.081633 | 0.673469 | 0.09 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01938 | 0.285319 | 361 | 16 | 59 | 22.5625 | 0.755814 | 0.063712 | 0 | 0 | 0 | 0 | 0.065282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
a2075dd6f8477f9a928e6816e1109df1a8072a85 | 496 | py | Python | djfw/tinymce/urls.py | kozzztik/tulius | 81b8f6484eefdc453047f62173a08f5e6f640cd6 | [
"MIT"
] | 1 | 2020-04-21T15:09:18.000Z | 2020-04-21T15:09:18.000Z | djfw/tinymce/urls.py | kozzztik/tulius | 81b8f6484eefdc453047f62173a08f5e6f640cd6 | [
"MIT"
] | 70 | 2019-04-10T22:32:32.000Z | 2022-03-11T23:12:54.000Z | djfw/tinymce/urls.py | kozzztik/tulius | 81b8f6484eefdc453047f62173a08f5e6f640cd6 | [
"MIT"
] | 1 | 2019-04-12T14:55:39.000Z | 2019-04-12T14:55:39.000Z | from django.conf import urls
from djfw.tinymce import views
app_name = 'djfw.tinymce'
urlpatterns = [
urls.re_path(r'^$', views.Smiles.as_view(), name='index'),
urls.re_path(
r'^emotions/emotions.htm$', views.Smiles.as_view(), name='smiles'),
urls.re_path(
r'^uploaded_files/$',... | 27.555556 | 77 | 0.622984 | 66 | 496 | 4.454545 | 0.363636 | 0.081633 | 0.136054 | 0.14966 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21371 | 496 | 17 | 78 | 29.176471 | 0.753846 | 0 | 0 | 0.214286 | 0 | 0 | 0.217119 | 0.048017 | 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 |
a20954b9e637aa56b6ab4112e01b278d49be666a | 115 | py | Python | python_vuejs/__init__.py | star1990luck/perk-python-vue | d4ac81291142980df1e8b21cf42285f4af054526 | [
"MIT"
] | 47 | 2017-05-24T12:39:11.000Z | 2021-02-26T06:59:01.000Z | python_vuejs/__init__.py | star1990luck/perk-python-vue | d4ac81291142980df1e8b21cf42285f4af054526 | [
"MIT"
] | 67 | 2017-05-29T15:02:31.000Z | 2018-09-12T19:17:28.000Z | python_vuejs/__init__.py | star1990luck/perk-python-vue | d4ac81291142980df1e8b21cf42285f4af054526 | [
"MIT"
] | 7 | 2017-08-17T23:02:41.000Z | 2018-02-12T02:34:53.000Z | # -*- coding: utf-8 -*-
__author__ = """Christian Strappazzon"""
__email__ = 'lab@strap.it'
__version__ = '1.0.9'
| 19.166667 | 40 | 0.634783 | 14 | 115 | 4.357143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040404 | 0.13913 | 115 | 5 | 41 | 23 | 0.575758 | 0.182609 | 0 | 0 | 0 | 0 | 0.413043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a209d7ff8a1321cfe4ae1ee153251f97d85b8910 | 22,345 | py | Python | tools/gn/secondary/build/config/win/get_msvc_config_real.py | nagineni/chromium-crosswalk | 5725642f1c67d0f97e8613ec1c3e8107ab53fdf8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 231 | 2015-01-08T09:04:44.000Z | 2021-12-30T03:03:10.000Z | build/config/win/get_msvc_config_real.py | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 8 | 2015-08-31T06:39:59.000Z | 2021-12-04T14:53:28.000Z | build/config/win/get_msvc_config_real.py | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 268 | 2015-01-21T05:53:28.000Z | 2022-03-25T22:09:01.000Z | # Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This file copies the logic from GYP to find the MSVC configuration. It's not
# currently used because it is too slow. We will probably build this
# fun... | 38.793403 | 81 | 0.606086 | 2,742 | 22,345 | 4.840263 | 0.196207 | 0.016878 | 0.012658 | 0.013261 | 0.417571 | 0.401522 | 0.391953 | 0.355485 | 0.351115 | 0.342526 | 0 | 0.031339 | 0.290266 | 22,345 | 575 | 82 | 38.86087 | 0.805536 | 0.096218 | 0 | 0.416438 | 0 | 0 | 0.114284 | 0.033289 | 0 | 0 | 0 | 0.001739 | 0.005479 | 0 | null | null | 0.00274 | 0.021918 | null | null | 0.00274 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a20ac73d96760f73577ad1337bb13f563b0d5cff | 314 | py | Python | test/conftest.py | koreiklein/dist_zero | 68ef5a0603edc53925daeec1f4bb684025cacbd4 | [
"Unlicense"
] | 1 | 2019-03-18T13:27:35.000Z | 2019-03-18T13:27:35.000Z | test/conftest.py | koreiklein/dist_zero | 68ef5a0603edc53925daeec1f4bb684025cacbd4 | [
"Unlicense"
] | null | null | null | test/conftest.py | koreiklein/dist_zero | 68ef5a0603edc53925daeec1f4bb684025cacbd4 | [
"Unlicense"
] | null | null | null | import pytest
import dist_zero.ids
from dist_zero.spawners.simulator import SimulatedSpawner
from dist_zero.spawners.docker import DockerSpawner
from dist_zero.spawners.cloud.aws import Ec2Spawner
from dist_zero.system_controller import SystemController
from .demo import demo, cloud_demo
from .common import dz
| 28.545455 | 57 | 0.863057 | 45 | 314 | 5.866667 | 0.444444 | 0.151515 | 0.181818 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003534 | 0.098726 | 314 | 10 | 58 | 31.4 | 0.929329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
a20bc93fee8de2b40c212fc499e721856e4ab411 | 661 | py | Python | config/settings/test.py | andrewtcrooks/taskorganizer | 661b1ae790d06f351871b5ef5f3f820055ddb704 | [
"MIT"
] | null | null | null | config/settings/test.py | andrewtcrooks/taskorganizer | 661b1ae790d06f351871b5ef5f3f820055ddb704 | [
"MIT"
] | null | null | null | config/settings/test.py | andrewtcrooks/taskorganizer | 661b1ae790d06f351871b5ef5f3f820055ddb704 | [
"MIT"
] | null | null | null | """taskorganizer.config.settings.test ."""
from .base import *
import json
# JSON-based secrets module
with open('test_secrets.json') as f:
secrets = json.loads(f.read())
def get_secret(setting, secrets=secrets):
"""Get the secret variable or return explicit exception."""
try:
return secrets[sett... | 23.607143 | 70 | 0.655068 | 77 | 661 | 5.532468 | 0.675325 | 0.051643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001919 | 0.2118 | 661 | 27 | 71 | 24.481481 | 0.815739 | 0.177005 | 0 | 0 | 0 | 0 | 0.232645 | 0.054409 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.222222 | 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 |
a20e3bed418b96fae7ddcec8794e7d98aa58b03f | 7,727 | py | Python | salina_examples/rl/LoP/agents.py | jbgaya/salina | 9f957d4c74974fb4db188c291b4cad039582e4e2 | [
"MIT"
] | null | null | null | salina_examples/rl/LoP/agents.py | jbgaya/salina | 9f957d4c74974fb4db188c291b4cad039582e4e2 | [
"MIT"
] | null | null | null | salina_examples/rl/LoP/agents.py | jbgaya/salina | 9f957d4c74974fb4db188c291b4cad039582e4e2 | [
"MIT"
] | null | null | null | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.distributions.normal import Normal
from salina import Agent, TAgent
from brax.envs.to_torch import JaxToTorchWrapper
from salina_examples.rl.LoP.envs import create_gym_env
from salina_examples.rl.LoP.subspace import Linear,... | 41.543011 | 147 | 0.589362 | 1,061 | 7,727 | 4.134779 | 0.169651 | 0.025074 | 0.020059 | 0.017096 | 0.406656 | 0.354456 | 0.332574 | 0.289036 | 0.289036 | 0.289036 | 0 | 0.014701 | 0.269315 | 7,727 | 186 | 148 | 41.543011 | 0.76231 | 0 | 0 | 0.319277 | 0 | 0 | 0.074534 | 0 | 0 | 0 | 0 | 0 | 0.036145 | 1 | 0.090361 | false | 0.006024 | 0.078313 | 0 | 0.216867 | 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 |
a20ea27ba3117ed58af13893be1fa36390eb8161 | 219 | py | Python | BAEKJOON/Python/2439.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | BAEKJOON/Python/2439.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | BAEKJOON/Python/2439.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | num = int(input())
for i in range(num):
no_star = num-i-1
yes_star = i+1
for i1 in range(no_star):
print(" ",sep="",end="")
for i2 in range(yes_star):
print("*",sep="",end="")
print() | 24.333333 | 32 | 0.515982 | 36 | 219 | 3.027778 | 0.444444 | 0.192661 | 0.220183 | 0.275229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025157 | 0.273973 | 219 | 9 | 33 | 24.333333 | 0.660377 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 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 | 3 |
a2103e8445d872bf5cb390f93bde6d7bd4043e05 | 275 | py | Python | examples/getdata.py | Commensalism1997/gpop.py | 976c48a77026455441e57f2e975d0f70e060911b | [
"MIT"
] | null | null | null | examples/getdata.py | Commensalism1997/gpop.py | 976c48a77026455441e57f2e975d0f70e060911b | [
"MIT"
] | 1 | 2022-01-19T13:39:45.000Z | 2022-01-19T13:39:45.000Z | examples/getdata.py | Commensalism1997/gpop.py | 976c48a77026455441e57f2e975d0f70e060911b | [
"MIT"
] | null | null | null | import gpop
while True:
nick = input()
data = gpop.get_data(nick)
print(f'''
{nick} stats:
Level: {data.level}
Time played: {data.time}
Levels played: {data.played}
Levels created: {data.created}
Views: {data.views}
G-Coins: {data.coins}
GBobs: {data.gbobs}
''')
| 18.333333 | 30 | 0.669091 | 40 | 275 | 4.575 | 0.5 | 0.10929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156364 | 275 | 14 | 31 | 19.642857 | 0.788793 | 0 | 0 | 0 | 0 | 0 | 0.661818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a211435c327ed70ae065e1343ef2dfb4cbf26da9 | 1,541 | py | Python | setup.py | Zincr0/pyscrap | 69b4c2bd42dbec125444ad68a1f76168fab7607e | [
"Apache-2.0"
] | 1 | 2015-04-28T22:54:05.000Z | 2015-04-28T22:54:05.000Z | setup.py | Zincr0/pyscrap | 69b4c2bd42dbec125444ad68a1f76168fab7607e | [
"Apache-2.0"
] | null | null | null | setup.py | Zincr0/pyscrap | 69b4c2bd42dbec125444ad68a1f76168fab7607e | [
"Apache-2.0"
] | null | null | null | # -*- coding=utf-8 -*-
#Copyright 2012 Daniel Osvaldo Mondaca Seguel
#
#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 appli... | 30.215686 | 73 | 0.686567 | 199 | 1,541 | 5.276382 | 0.648241 | 0.057143 | 0.024762 | 0.030476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012769 | 0.186892 | 1,541 | 50 | 74 | 30.82 | 0.825219 | 0.374432 | 0 | 0 | 0 | 0 | 0.394099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.1 | 0.033333 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a211ebfcbf069a00aa69ab75205d588df2ae8176 | 10,615 | py | Python | densenet.py | BingoH/ReinventingWheel | 5232d0ab697ad57a039c766355545bbde3b2a200 | [
"MIT"
] | 4 | 2017-08-18T11:49:54.000Z | 2019-04-02T11:35:28.000Z | densenet.py | BingoH/ReinventingWheel | 5232d0ab697ad57a039c766355545bbde3b2a200 | [
"MIT"
] | null | null | null | densenet.py | BingoH/ReinventingWheel | 5232d0ab697ad57a039c766355545bbde3b2a200 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#####
# simple implementation of "Densely Connected Convolutional Networks, CVPR 2017"
#####
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import torch.optim as optim
import torchvision
import torchvision.transforms as transforms
import... | 34.576547 | 103 | 0.581912 | 1,304 | 10,615 | 4.582822 | 0.220859 | 0.035141 | 0.008032 | 0.008032 | 0.294846 | 0.228079 | 0.18407 | 0.177042 | 0.177042 | 0.177042 | 0 | 0.022981 | 0.315403 | 10,615 | 306 | 104 | 34.689542 | 0.799367 | 0.21903 | 0 | 0.192308 | 0 | 0 | 0.017826 | 0 | 0 | 0 | 0 | 0.006536 | 0 | 1 | 0.049451 | false | 0.005495 | 0.043956 | 0 | 0.137363 | 0.021978 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a2151a048539906496fa27e828dec6baba159d3b | 97 | py | Python | PythonCode/debugging_example.py | Spstolar/BMachine | 319e5efb72cd3ab07b8538b7c43bd93e75f2e38a | [
"MIT"
] | null | null | null | PythonCode/debugging_example.py | Spstolar/BMachine | 319e5efb72cd3ab07b8538b7c43bd93e75f2e38a | [
"MIT"
] | 3 | 2017-04-02T15:41:22.000Z | 2017-04-03T06:43:06.000Z | PythonCode/debugging_example.py | Spstolar/BMachine | 319e5efb72cd3ab07b8538b7c43bd93e75f2e38a | [
"MIT"
] | null | null | null | def double_it(num):
return num*2
start = 3
for i in range(6):
start = double_it(start)
| 12.125 | 28 | 0.639175 | 18 | 97 | 3.333333 | 0.722222 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041096 | 0.247423 | 97 | 7 | 29 | 13.857143 | 0.780822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
a2157079ef9ffaffcc108a55445091fe2efede1e | 13,871 | py | Python | centpy/solver2d.py | olekravchenko/centpy | e10d1b92c0ee5520110496595b6875b749fa4451 | [
"MIT"
] | 2 | 2021-06-23T17:23:21.000Z | 2022-01-14T01:28:57.000Z | centpy/solver2d.py | olekravchenko/centpy | e10d1b92c0ee5520110496595b6875b749fa4451 | [
"MIT"
] | null | null | null | centpy/solver2d.py | olekravchenko/centpy | e10d1b92c0ee5520110496595b6875b749fa4451 | [
"MIT"
] | null | null | null | from .solver1d import *
# p coefficient functions
class Solver2d(Solver1d):
def __init__(self, equation):
super().__init__(equation)
# Equation dependent functions
self.flux_y = equation.flux_y
self.spectral_radius_y = equation.spectral_radius_y
def fd2(self, u):
u_st... | 32.791962 | 88 | 0.443443 | 2,301 | 13,871 | 2.429379 | 0.066493 | 0.021109 | 0.013953 | 0.015742 | 0.709302 | 0.647585 | 0.59356 | 0.54186 | 0.523971 | 0.52093 | 0 | 0.087934 | 0.394132 | 13,871 | 422 | 89 | 32.869668 | 0.577225 | 0.021195 | 0 | 0.474576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045198 | false | 0 | 0.002825 | 0 | 0.09887 | 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 |
a21a620a2dc472c716f0c4a791cee689f1e97aaa | 942 | py | Python | tests/unit/cluster/test_cluster.py | jwillis0720/sadie | d289ae68f06f5698ee40ffc1757e1b8aa85f1175 | [
"MIT"
] | 9 | 2020-12-22T19:14:01.000Z | 2022-03-17T04:34:06.000Z | tests/unit/cluster/test_cluster.py | jwillis0720/sadie | d289ae68f06f5698ee40ffc1757e1b8aa85f1175 | [
"MIT"
] | 32 | 2020-12-28T07:46:44.000Z | 2022-03-31T01:25:01.000Z | tests/unit/cluster/test_cluster.py | jwillis0720/sadie | d289ae68f06f5698ee40ffc1757e1b8aa85f1175 | [
"MIT"
] | 2 | 2021-07-30T16:44:46.000Z | 2022-01-12T20:15:17.000Z | from sadie.cluster import Cluster
from sadie.airr import AirrTable, LinkedAirrTable
def test_cluster(heavy_catnap_airrtable, light_catnap_airrtable):
for table in [heavy_catnap_airrtable, light_catnap_airrtable]:
cluster = Cluster(table)
clustered_df = cluster.cluster(10)
assert "cluster" ... | 37.68 | 118 | 0.721868 | 115 | 942 | 5.53913 | 0.321739 | 0.141287 | 0.094192 | 0.078493 | 0.125589 | 0.125589 | 0 | 0 | 0 | 0 | 0 | 0.012953 | 0.180467 | 942 | 24 | 119 | 39.25 | 0.812176 | 0 | 0 | 0 | 0 | 0 | 0.157113 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.15 | 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 |
a21d4928f175025df7eb53ecd52295a8549f7c02 | 3,313 | py | Python | datasets/import_yelp.py | dallascard/proportions | f01502428333e45310654a36d26503612fe45234 | [
"Apache-2.0"
] | 1 | 2019-08-05T14:45:24.000Z | 2019-08-05T14:45:24.000Z | datasets/import_yelp.py | dallascard/proportions | f01502428333e45310654a36d26503612fe45234 | [
"Apache-2.0"
] | null | null | null | datasets/import_yelp.py | dallascard/proportions | f01502428333e45310654a36d26503612fe45234 | [
"Apache-2.0"
] | null | null | null | import os
import re
import sys
from collections import Counter
from optparse import OptionParser
import numpy as np
import pandas as pd
from util import file_handling as fh
def main():
usage = "%prog input_dir output_dir"
parser = OptionParser(usage=usage)
#parser.add_option('--keyword', dest='key', def... | 33.806122 | 182 | 0.561425 | 403 | 3,313 | 4.459057 | 0.312655 | 0.038954 | 0.027824 | 0.026711 | 0.213133 | 0.122983 | 0.079021 | 0.079021 | 0.079021 | 0.045632 | 0 | 0.009507 | 0.301539 | 3,313 | 97 | 183 | 34.154639 | 0.76707 | 0.077875 | 0 | 0.026667 | 0 | 0 | 0.123566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0 | 0.106667 | 0 | 0.12 | 0.093333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a21e97a3119d9596c35d2805249f2abdd428f597 | 393 | py | Python | examples/network/UDPSend_python/UDPecho.py | sicrisembay/mbed_target | dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8 | [
"Apache-2.0"
] | 20 | 2017-10-12T10:49:10.000Z | 2022-03-16T03:21:46.000Z | examples/network/UDPSend_python/UDPecho.py | sicrisembay/mbed_target | dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8 | [
"Apache-2.0"
] | 2 | 2018-06-22T16:00:02.000Z | 2019-09-01T13:32:27.000Z | examples/network/UDPSend_python/UDPecho.py | sicrisembay/mbed_target | dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8 | [
"Apache-2.0"
] | 9 | 2017-08-13T12:15:32.000Z | 2021-11-21T07:57:08.000Z | import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
server_address = ''
server_port = 10001
server = (server_address, server_port)
sock.bind(server)
print("Listening on " + server_address + ":" + str(server_port))
while True:
payload, client_address = sock.recvfrom(1024)
print("Echoing data back... | 26.2 | 64 | 0.753181 | 54 | 393 | 5.277778 | 0.5 | 0.136842 | 0.133333 | 0.161404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026163 | 0.124682 | 393 | 15 | 65 | 26.2 | 0.802326 | 0 | 0 | 0 | 0 | 0 | 0.088832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a221601389defa2b881d9bc404d9a902c1823fb3 | 129 | py | Python | FaceSwap-master/pytorch_stylegan_encoder/image.py | CSID-DGU/-2020-1-OSSP1-ninetynine-2 | b1824254882eeea0ee44e4e60896b72c51ef1d2c | [
"MIT"
] | 1 | 2020-06-21T13:45:26.000Z | 2020-06-21T13:45:26.000Z | FaceSwap-master/pytorch_stylegan_encoder/image.py | CSID-DGU/-2020-1-OSSP1-ninetynine-2 | b1824254882eeea0ee44e4e60896b72c51ef1d2c | [
"MIT"
] | null | null | null | FaceSwap-master/pytorch_stylegan_encoder/image.py | CSID-DGU/-2020-1-OSSP1-ninetynine-2 | b1824254882eeea0ee44e4e60896b72c51ef1d2c | [
"MIT"
] | 3 | 2020-09-02T03:18:45.000Z | 2021-01-27T08:24:05.000Z | version https://git-lfs.github.com/spec/v1
oid sha256:0b658b7b289160eaf9545f85d87f9c8baa0c04e58f265cf125e952a2fb821816
size 1379
| 32.25 | 75 | 0.883721 | 13 | 129 | 8.769231 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.406504 | 0.046512 | 129 | 3 | 76 | 43 | 0.520325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
a2218eb8e774cc37ae6e91146172fc4b0d506e5d | 1,496 | py | Python | dev/logger.py | Holovin/D_GrabDemo | 6adb03fb42ae03e7896eb2eacb342cf9660feb92 | [
"MIT"
] | null | null | null | dev/logger.py | Holovin/D_GrabDemo | 6adb03fb42ae03e7896eb2eacb342cf9660feb92 | [
"MIT"
] | 2 | 2018-03-28T19:47:46.000Z | 2021-12-13T20:56:31.000Z | dev/logger.py | Holovin/D_GrabDemo | 6adb03fb42ae03e7896eb2eacb342cf9660feb92 | [
"MIT"
] | null | null | null | # logger.py
# App logger initialization function
# r1
# TODO: logger.propagate using
import logging
from logging.handlers import RotatingFileHandler
from helpers.config import Config
def logger_setup(log_file, loggers=None, touch_root=False):
log_formatter = logging.Formatter(Config.get('APP_LOG_FORMAT'), datefm... | 28.226415 | 96 | 0.66377 | 175 | 1,496 | 5.514286 | 0.394286 | 0.049741 | 0.037306 | 0.031088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002618 | 0.233957 | 1,496 | 52 | 97 | 28.769231 | 0.839442 | 0.050802 | 0 | 0.108108 | 0 | 0 | 0.083392 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.027027 | false | 0 | 0.081081 | 0 | 0.108108 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a224241137af1e2beb8c8dfb0f5f9fc3ff31834a | 852 | py | Python | segmentation/algorithm/quickshift_test.py | peternara/graph-based-image-classification-gcn | 60e93b47691e960b7f06f7a5dc11191efe881178 | [
"MIT"
] | 44 | 2017-02-26T16:52:48.000Z | 2022-02-17T18:50:02.000Z | segmentation/algorithm/quickshift_test.py | hungerzs/graph-based-image-classification | d44182c6a28b4ab9a691a9cb1ecd4c3b851875a8 | [
"MIT"
] | 2 | 2018-11-14T05:11:25.000Z | 2020-06-23T16:24:41.000Z | segmentation/algorithm/quickshift_test.py | hungerzs/graph-based-image-classification | d44182c6a28b4ab9a691a9cb1ecd4c3b851875a8 | [
"MIT"
] | 13 | 2018-04-26T07:46:35.000Z | 2022-02-28T15:38:53.000Z | import tensorflow as tf
from .quickshift import quickshift
class QuickshiftTest(tf.test.TestCase):
def test_quickshift(self):
image = tf.constant([
[[255, 255, 255], [255, 255, 255], [0, 0, 0], [0, 0, 0]],
[[255, 255, 255], [255, 255, 255], [0, 0, 0], [0, 0, 0]],
[[0,... | 30.428571 | 77 | 0.467136 | 114 | 852 | 3.473684 | 0.324561 | 0.126263 | 0.136364 | 0.151515 | 0.282828 | 0.282828 | 0.242424 | 0.242424 | 0.242424 | 0.242424 | 0 | 0.204753 | 0.357981 | 852 | 27 | 78 | 31.555556 | 0.519196 | 0.152582 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a2288fb94c080ace0de40f0b975efab9344f4528 | 1,777 | py | Python | content.py | bguenthe/mpwebswitch | d598fc0ff74a5fef0535fa8ccf45029add2fbb16 | [
"MIT"
] | null | null | null | content.py | bguenthe/mpwebswitch | d598fc0ff74a5fef0535fa8ccf45029add2fbb16 | [
"MIT"
] | null | null | null | content.py | bguenthe/mpwebswitch | d598fc0ff74a5fef0535fa8ccf45029add2fbb16 | [
"MIT"
] | null | null | null | # Micropython Http Server
# Erni Tron ernitron@gmail.com
# Copyright (c) 2016
# Content Callback functions.
# They should receive parameters and return a HTML formatted string
# By convention they start with cb_
import gc
import time
from config import save_config, set_config, get_config
# Content Functions
def cb... | 25.753623 | 113 | 0.585819 | 238 | 1,777 | 4.281513 | 0.407563 | 0.029441 | 0.047105 | 0.013739 | 0.066732 | 0.066732 | 0.066732 | 0.066732 | 0.066732 | 0.066732 | 0 | 0.00916 | 0.262802 | 1,777 | 68 | 114 | 26.132353 | 0.768702 | 0.122116 | 0 | 0.152174 | 0 | 0 | 0.272552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.086957 | 0 | 0.434783 | 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 |
bf3e58c7c4f6441c3bd403bedd53cbdc604438db | 4,512 | py | Python | comparator/__init__.py | dchaplinsky/comparator | 664eee047debe654b0b9d74e725af787a5306516 | [
"MIT"
] | 5 | 2019-09-27T17:34:21.000Z | 2020-07-28T01:42:31.000Z | comparator/__init__.py | dchaplinsky/comparator | 664eee047debe654b0b9d74e725af787a5306516 | [
"MIT"
] | null | null | null | comparator/__init__.py | dchaplinsky/comparator | 664eee047debe654b0b9d74e725af787a5306516 | [
"MIT"
] | null | null | null | __version__ = "1.0.0"
__all__ = ["full_compare"]
import re
from functools import reduce
from itertools import permutations, product, islice, zip_longest
from operator import mul
from Levenshtein import jaro, jaro_winkler
def _smart_jaro(a, b, func=jaro):
if func(a[1:], b[1:]) > 0.99:
return True
i... | 26.080925 | 94 | 0.585993 | 563 | 4,512 | 4.509769 | 0.227353 | 0.059078 | 0.051989 | 0.05514 | 0.270973 | 0.179204 | 0.123671 | 0.103978 | 0.103978 | 0.086648 | 0 | 0.035627 | 0.272163 | 4,512 | 172 | 95 | 26.232558 | 0.737515 | 0 | 0 | 0.188525 | 0 | 0 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057377 | false | 0 | 0.065574 | 0.008197 | 0.295082 | 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 |
bf3e74e6f6ce3ba1a29bca66409ff4b07faabce7 | 6,134 | py | Python | matt/day4/2hap.py | brianfay/aoc-2021 | 08894c6b9e62777f93d2252896b8909b174b04e6 | [
"Unlicense"
] | 1 | 2021-12-08T21:35:55.000Z | 2021-12-08T21:35:55.000Z | matt/day4/2hap.py | brianfay/aoc-2021 | 08894c6b9e62777f93d2252896b8909b174b04e6 | [
"Unlicense"
] | 1 | 2022-01-08T02:45:09.000Z | 2022-01-08T02:45:09.000Z | matt/day4/2hap.py | brianfay/aoc-2021 | 08894c6b9e62777f93d2252896b8909b174b04e6 | [
"Unlicense"
] | null | null | null | # Parse input:
# line 1 = call_numbers separated by ,
# Matrices separated by blank row
# Store input:
# Bingo Cards: Dictionary of Dictionaires of lists? (card - column - numbers)
# call_numbers: list
# function to x numbers as called
# function to check if card(s) won
# function to add all unmarked numbers on win... | 34.077778 | 175 | 0.469188 | 847 | 6,134 | 3.312869 | 0.144038 | 0.19886 | 0.076978 | 0.11119 | 0.367071 | 0.135424 | 0.074127 | 0 | 0 | 0 | 0 | 0.054703 | 0.341376 | 6,134 | 179 | 176 | 34.268156 | 0.639851 | 0.217639 | 0 | 0.020833 | 0 | 0 | 0.025463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.010417 | 0 | 0.0625 | 0.010417 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bf3eb6b868a5e43fd91faea2606c647531478b26 | 3,120 | py | Python | dliplib/graphs/lodopab_200_performance.py | oterobaguer/ct-dip-benchmark | 0539c284c94089ed86421ea0892cd68aa1d0575a | [
"Apache-2.0"
] | null | null | null | dliplib/graphs/lodopab_200_performance.py | oterobaguer/ct-dip-benchmark | 0539c284c94089ed86421ea0892cd68aa1d0575a | [
"Apache-2.0"
] | null | null | null | dliplib/graphs/lodopab_200_performance.py | oterobaguer/ct-dip-benchmark | 0539c284c94089ed86421ea0892cd68aa1d0575a | [
"Apache-2.0"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
from dliplib.utils.helper import set_use_latex
plt.style.use('seaborn-whitegrid')
set_use_latex()
sizes = [0.0001, 0.001, 0.01, 0.10, 1.00]
ticks = range(len(sizes))
# performance on the different data sizes
learnedgd = {'PSNR [db]': [29.87, 31.28, 31.83, 32.7, 32... | 33.548387 | 109 | 0.575 | 530 | 3,120 | 3.332075 | 0.330189 | 0.025481 | 0.04983 | 0.033975 | 0.306908 | 0.265006 | 0.211212 | 0.151755 | 0.125708 | 0.057758 | 0 | 0.141097 | 0.19359 | 3,120 | 92 | 110 | 33.913043 | 0.560811 | 0.020833 | 0 | 0.145161 | 0 | 0 | 0.118938 | 0.008847 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.048387 | 0 | 0.048387 | 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 |
bf3ef1247bc316b19c823cb48904b6ec5fce2e57 | 1,448 | py | Python | 16/Part2.py | iammanish17/AOC2020 | afbed26492b8cd0025e6c6b196e1a944e0a84109 | [
"MIT"
] | 1 | 2020-12-02T11:34:42.000Z | 2020-12-02T11:34:42.000Z | 16/Part2.py | iammanish17/AOC2020 | afbed26492b8cd0025e6c6b196e1a944e0a84109 | [
"MIT"
] | null | null | null | 16/Part2.py | iammanish17/AOC2020 | afbed26492b8cd0025e6c6b196e1a944e0a84109 | [
"MIT"
] | 1 | 2020-12-23T06:56:51.000Z | 2020-12-23T06:56:51.000Z | s = open('input.txt','r').read()
s = [k for k in s.split("\n")]
di = {}
ok = False
ans = 0
f = [set() for i in range(20)]
nums = set()
cnt = 0
for line in s:
for each in line.split(" "):
if "-" in each:
x, y = each.split("-")
x, y = int(x), int(y)
if line.split(":")[0]... | 23.737705 | 47 | 0.410912 | 218 | 1,448 | 2.729358 | 0.243119 | 0.035294 | 0.060504 | 0.092437 | 0.157983 | 0.05042 | 0.05042 | 0 | 0 | 0 | 0 | 0.024096 | 0.426796 | 1,448 | 60 | 48 | 24.133333 | 0.692771 | 0.006215 | 0 | 0.12963 | 0 | 0 | 0.030598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
bf3f318dea8bdb40dfcc7f44d11dbe3ea8396aae | 3,089 | py | Python | src/restApi/accounts/api/views.py | nightwarriorftw/restApi | 41bb572f55d27fbdb104a3624a15cbb959b92cf7 | [
"MIT"
] | null | null | null | src/restApi/accounts/api/views.py | nightwarriorftw/restApi | 41bb572f55d27fbdb104a3624a15cbb959b92cf7 | [
"MIT"
] | 10 | 2020-06-05T20:12:44.000Z | 2022-03-12T00:08:39.000Z | src/restApi/accounts/api/views.py | nightwarriorftw/restApi | 41bb572f55d27fbdb104a3624a15cbb959b92cf7 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.contrib.auth import authenticate
from django.db.models import Q
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import permissions, generics
from rest_framework_jwt.settings import api_settings
from acc... | 35.918605 | 84 | 0.652315 | 322 | 3,089 | 6.086957 | 0.263975 | 0.057143 | 0.034694 | 0.05102 | 0.336735 | 0.280612 | 0.252041 | 0.252041 | 0.252041 | 0.252041 | 0 | 0.003025 | 0.25089 | 3,089 | 85 | 85 | 36.341176 | 0.843993 | 0.369051 | 0 | 0.047619 | 0 | 0 | 0.043229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.047619 | 0.238095 | 0.02381 | 0.52381 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bf3f371bc17442142ae43aa519da8c21f6e05bbe | 1,176 | py | Python | tests/conftest.py | prajmus/pypi_changes | 52aa64676fa650694ad0cbd85187fea1706265a8 | [
"MIT"
] | 24 | 2021-11-04T11:02:31.000Z | 2022-01-08T14:31:53.000Z | tests/conftest.py | prajmus/pypi_changes | 52aa64676fa650694ad0cbd85187fea1706265a8 | [
"MIT"
] | 8 | 2021-11-04T13:23:01.000Z | 2022-01-11T20:53:18.000Z | tests/conftest.py | prajmus/pypi_changes | 52aa64676fa650694ad0cbd85187fea1706265a8 | [
"MIT"
] | 5 | 2021-11-05T17:54:29.000Z | 2022-03-26T11:46:06.000Z | from __future__ import annotations
import sys
from pathlib import Path
from unittest.mock import MagicMock, create_autospec
import pytest
from _pytest.monkeypatch import MonkeyPatch
from pypi_changes._cli import Options
from tests import MakeDist
@pytest.fixture(autouse=True)
def _no_index(monkeypatch: MonkeyPatch... | 28 | 99 | 0.72534 | 151 | 1,176 | 5.456954 | 0.423841 | 0.063107 | 0.061893 | 0.058252 | 0.257282 | 0.070388 | 0 | 0 | 0 | 0 | 0 | 0.006104 | 0.164116 | 1,176 | 41 | 100 | 28.682927 | 0.832146 | 0 | 0 | 0.137931 | 0 | 0 | 0.115646 | 0.02466 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.310345 | 0.034483 | 0.586207 | 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 |
bf40bec63820957e6761ed0c250696ce749bea12 | 2,578 | py | Python | src/DataProcessing/CO2_GDP/treemapdata.py | KKDJOSEPH/Analysis_on_Global_Warming | 02376517b61c08d2c2858d2ca2e994eb0ec04c89 | [
"MIT"
] | null | null | null | src/DataProcessing/CO2_GDP/treemapdata.py | KKDJOSEPH/Analysis_on_Global_Warming | 02376517b61c08d2c2858d2ca2e994eb0ec04c89 | [
"MIT"
] | null | null | null | src/DataProcessing/CO2_GDP/treemapdata.py | KKDJOSEPH/Analysis_on_Global_Warming | 02376517b61c08d2c2858d2ca2e994eb0ec04c89 | [
"MIT"
] | null | null | null | def treegenerator(region, cleancountryco2):
"""
@Author Haoyang Ding
generate a dictionary in a special format
treedata={"value": co2 emission in a specific region
"name": region's name
"children": [{country's name: co2 emission data}, {}....]
}
:param region: lis... | 34.837838 | 116 | 0.623351 | 310 | 2,578 | 5.167742 | 0.309677 | 0.0799 | 0.074906 | 0.02809 | 0.189763 | 0.157928 | 0.076155 | 0.076155 | 0.076155 | 0.076155 | 0 | 0.026598 | 0.24166 | 2,578 | 73 | 117 | 35.315068 | 0.792839 | 0.245927 | 0 | 0.042553 | 1 | 0 | 0.087587 | 0.032241 | 0 | 0 | 0 | 0 | 0.170213 | 1 | 0.042553 | false | 0 | 0.021277 | 0 | 0.085106 | 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 |
bf4206dbcc7426fe08c0679c20acc8aa9437d1eb | 3,472 | py | Python | core/aws_ddk_core/pipelines/stage.py | vemel/aws-ddk | d34bd1d98f5a170026a1b65f9629e909ca839930 | [
"Apache-2.0"
] | null | null | null | core/aws_ddk_core/pipelines/stage.py | vemel/aws-ddk | d34bd1d98f5a170026a1b65f9629e909ca839930 | [
"Apache-2.0"
] | null | null | null | core/aws_ddk_core/pipelines/stage.py | vemel/aws-ddk | d34bd1d98f5a170026a1b65f9629e909ca839930 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 29.423729 | 104 | 0.580069 | 382 | 3,472 | 5.193717 | 0.400524 | 0.042339 | 0.025202 | 0.016129 | 0.112903 | 0.112903 | 0.112903 | 0 | 0 | 0 | 0 | 0.003521 | 0.345622 | 3,472 | 117 | 105 | 29.675214 | 0.869718 | 0.676843 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.090909 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bf42ac1b125502bb6adf579b40a034bc662330a7 | 1,640 | py | Python | classes/utils.py | sicko7947/Nike | aa028412977f4a730e4b1ad97c29e157a9304d02 | [
"MIT"
] | 1 | 2022-02-07T17:29:42.000Z | 2022-02-07T17:29:42.000Z | classes/utils.py | sicko7947/Nike | aa028412977f4a730e4b1ad97c29e157a9304d02 | [
"MIT"
] | null | null | null | classes/utils.py | sicko7947/Nike | aa028412977f4a730e4b1ad97c29e157a9304d02 | [
"MIT"
] | 1 | 2021-08-07T04:39:55.000Z | 2021-08-07T04:39:55.000Z | import datetime,threading,random
from termcolor import cprint, colored
import colorama
class Logger():
def __init__(self):
colorama.init()
def __timestamp(self):
now = str(datetime.datetime.now())
now = now.split(' ')[1]
threadname = threading.currentThread().getName()
threadname = str(threadname).repla... | 25.230769 | 80 | 0.589024 | 197 | 1,640 | 4.796954 | 0.345178 | 0.042328 | 0.068783 | 0.100529 | 0.416931 | 0.374603 | 0.340741 | 0.340741 | 0.055026 | 0 | 0 | 0.01127 | 0.188415 | 1,640 | 64 | 81 | 25.625 | 0.698723 | 0 | 0 | 0.211538 | 0 | 0 | 0.092073 | 0 | 0.019231 | 0 | 0 | 0 | 0 | 1 | 0.173077 | false | 0.019231 | 0.057692 | 0.019231 | 0.403846 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bf43755e187af099cccae06e2ad0a561bdda3853 | 7,486 | py | Python | old_code/soil_heat_model.py | miksch/atm233-midterm-winter2020 | 0b7f33deb398f268efdcb77c7e7ddbc2ab2b2704 | [
"MIT"
] | null | null | null | old_code/soil_heat_model.py | miksch/atm233-midterm-winter2020 | 0b7f33deb398f268efdcb77c7e7ddbc2ab2b2704 | [
"MIT"
] | null | null | null | old_code/soil_heat_model.py | miksch/atm233-midterm-winter2020 | 0b7f33deb398f268efdcb77c7e7ddbc2ab2b2704 | [
"MIT"
] | 1 | 2020-03-03T18:28:21.000Z | 2020-03-03T18:28:21.000Z | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import xarray as xr
from scipy import signal
import timeit
from numba import jit
import datashader as ds
import xarray as xr
from datashader import transfer_functions as tf
#1. Define the boundary conditions
# Needed: surface temperature forcing (s... | 31.720339 | 123 | 0.64841 | 1,260 | 7,486 | 3.778571 | 0.249206 | 0.018484 | 0.009452 | 0.021004 | 0.358328 | 0.332493 | 0.299307 | 0.279563 | 0.257719 | 0.257719 | 0 | 0.042792 | 0.213332 | 7,486 | 236 | 124 | 31.720339 | 0.765665 | 0.323137 | 0 | 0.018349 | 0 | 0 | 0.120268 | 0.037852 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036697 | false | 0 | 0.110092 | 0 | 0.174312 | 0.082569 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bf4435708cd1cd1a00c510e8d61acff73e2fc0ba | 5,901 | py | Python | qced_dti_analysis.py | shanqing-cai/MRI_analysis | 39b3d48e2158623ffd9a8a6ea47d16a4a7b83cd9 | [
"BSD-4-Clause"
] | 1 | 2016-02-08T18:31:36.000Z | 2016-02-08T18:31:36.000Z | qced_dti_analysis.py | shanqing-cai/MRI_analysis | 39b3d48e2158623ffd9a8a6ea47d16a4a7b83cd9 | [
"BSD-4-Clause"
] | null | null | null | qced_dti_analysis.py | shanqing-cai/MRI_analysis | 39b3d48e2158623ffd9a8a6ea47d16a4a7b83cd9 | [
"BSD-4-Clause"
] | null | null | null | #!/usr/bin/python
import os
import sys
import glob
import argparse
from scai_utils import *
REQ_FSL_VER = "5.0"
DATA_DIR = "/users/cais/STUT/DATA"
DTIPREP_DIR = "/users/cais/STUT/analysis/dti"
DTI_BASE = "/users/cais/STUT/analysis/dti2"
EDDY_CORRECT_SPLINE_BIN = "/users/cais/STUT/scripts/eddy_correct_spline"
#FDT_RO... | 37.585987 | 114 | 0.629724 | 831 | 5,901 | 4.31769 | 0.226233 | 0.083612 | 0.078038 | 0.079431 | 0.391583 | 0.313824 | 0.285396 | 0.264771 | 0.219064 | 0.208751 | 0 | 0.009639 | 0.226402 | 5,901 | 156 | 115 | 37.826923 | 0.776342 | 0.063549 | 0 | 0.097345 | 0 | 0 | 0.252448 | 0.075988 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044248 | null | null | 0.035398 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bf462c8fa1454512e16f250d30d5dc8b3cd688cc | 2,803 | py | Python | extensions/mute.py | meisme-dev/Gardenbot | a8c7b30b28aa4ad2dcba367eedfbd856f63f5eca | [
"MIT"
] | 5 | 2020-10-26T13:14:51.000Z | 2021-01-13T16:52:49.000Z | extensions/mute.py | meisme-dev/Gardenbot | a8c7b30b28aa4ad2dcba367eedfbd856f63f5eca | [
"MIT"
] | 1 | 2021-02-13T00:45:32.000Z | 2021-02-13T08:21:31.000Z | extensions/mute.py | meisme-dev/Gardenbot | a8c7b30b28aa4ad2dcba367eedfbd856f63f5eca | [
"MIT"
] | 5 | 2020-10-26T02:21:36.000Z | 2020-11-28T04:10:24.000Z | # MIT License
# Copyright (c) 2020 me is me
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publi... | 40.623188 | 120 | 0.717802 | 385 | 2,803 | 5.18961 | 0.425974 | 0.044044 | 0.022523 | 0.027027 | 0.230731 | 0.163664 | 0.12963 | 0.12963 | 0.12963 | 0.107107 | 0 | 0.006676 | 0.198359 | 2,803 | 69 | 121 | 40.623188 | 0.88251 | 0.426329 | 0 | 0.294118 | 0 | 0 | 0.063642 | 0 | 0 | 0 | 0.010082 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.088235 | 0 | 0.176471 | 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 |
bf4644e52957de9dd091d9578f984983baf2e266 | 142 | py | Python | gmenu/apps.py | Ione03/gmenu | ef427cee6fcdbf2e3aa5b6532f7c01499b9748e8 | [
"MIT"
] | null | null | null | gmenu/apps.py | Ione03/gmenu | ef427cee6fcdbf2e3aa5b6532f7c01499b9748e8 | [
"MIT"
] | null | null | null | gmenu/apps.py | Ione03/gmenu | ef427cee6fcdbf2e3aa5b6532f7c01499b9748e8 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class GmenuConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'gmenu'
| 20.285714 | 56 | 0.753521 | 17 | 142 | 6.176471 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 142 | 6 | 57 | 23.666667 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.239437 | 0.204225 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bf47205a4f9eeafd2447693a448c4ddc628fc8cd | 3,405 | py | Python | pyadept/rcommands.py | semeniuta/pyadept | cd8677ef4e6033c811f1783d23de459778b83737 | [
"BSD-3-Clause"
] | 2 | 2018-10-05T10:08:46.000Z | 2020-05-14T18:45:09.000Z | pyadept/rcommands.py | semeniuta/pyadept | cd8677ef4e6033c811f1783d23de459778b83737 | [
"BSD-3-Clause"
] | null | null | null | pyadept/rcommands.py | semeniuta/pyadept | cd8677ef4e6033c811f1783d23de459778b83737 | [
"BSD-3-Clause"
] | 1 | 2020-12-01T15:45:50.000Z | 2020-12-01T15:45:50.000Z | import numpy as np
from pyadept.strutil import vec_to_str
DELIMITER = b'\r\n'
BREAK_CMD = b'break' + DELIMITER
def join_commands(*commands):
return JoinedCommand(commands)
def create_motion_command(template, vec, break_move=True):
vec_bytes = vec_to_str(vec)
cmd_bytes = template.format(vec_bytes).enc... | 23.482759 | 80 | 0.6558 | 422 | 3,405 | 4.879147 | 0.177725 | 0.069937 | 0.053424 | 0.043711 | 0.389995 | 0.279747 | 0.251093 | 0.132589 | 0.132589 | 0.132589 | 0 | 0.002651 | 0.224376 | 3,405 | 144 | 81 | 23.645833 | 0.776978 | 0 | 0 | 0.188235 | 0 | 0 | 0.044934 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 1 | 0.294118 | false | 0 | 0.023529 | 0.141176 | 0.635294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bf47efa3b194ce23f5e5b344a1cad11ef6badea9 | 949 | py | Python | clara/transpiler/preprocessing/minmax.py | asergiobranco/clara | bca39620b615d7fefb760f4257bda073f401626b | [
"Apache-2.0"
] | 4 | 2020-07-04T20:37:01.000Z | 2021-01-03T09:10:08.000Z | clara/transpiler/preprocessing/minmax.py | asergiobranco/clara | bca39620b615d7fefb760f4257bda073f401626b | [
"Apache-2.0"
] | null | null | null | clara/transpiler/preprocessing/minmax.py | asergiobranco/clara | bca39620b615d7fefb760f4257bda073f401626b | [
"Apache-2.0"
] | 2 | 2020-09-25T01:59:34.000Z | 2022-02-07T14:14:24.000Z | class MinMaxScalerTranspiler(object):
def __init__(self, model):
self.model = model
self.n_features = len(self.model.min_)
self.min = ','.join(self.model.min_.astype(str))
self.std = ','.join(self.model.scale_.astype(str))
def generate_code(self):
return """
/*... | 25.648649 | 138 | 0.523709 | 109 | 949 | 4.422018 | 0.412844 | 0.130705 | 0.053942 | 0.06639 | 0.095436 | 0.095436 | 0.095436 | 0.095436 | 0.095436 | 0 | 0 | 0.004785 | 0.339305 | 949 | 36 | 139 | 26.361111 | 0.763955 | 0 | 0 | 0.08 | 0 | 0.04 | 0.630137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0 | 0.04 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf487798f8e7882fa1a70476d00ee5b869483959 | 15,839 | py | Python | app/sova/views.py | ivoras/sova | bb555e53a48f0e92874ab90e8651b314e2df0e8d | [
"BSD-2-Clause"
] | 1 | 2017-02-20T13:49:48.000Z | 2017-02-20T13:49:48.000Z | app/sova/views.py | ivoras/sova | bb555e53a48f0e92874ab90e8651b314e2df0e8d | [
"BSD-2-Clause"
] | null | null | null | app/sova/views.py | ivoras/sova | bb555e53a48f0e92874ab90e8651b314e2df0e8d | [
"BSD-2-Clause"
] | null | null | null | import base64
from datetime import datetime, timedelta
import re
import os
from django.core.mail import EmailMultiAlternatives
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponseRedirect, Http404, HttpResponseBadRequest
from django.urls import reverse
from django.core.validators... | 44.366947 | 480 | 0.696067 | 1,931 | 15,839 | 5.593993 | 0.163128 | 0.022681 | 0.036104 | 0.045732 | 0.490187 | 0.426032 | 0.369376 | 0.344103 | 0.291798 | 0.268099 | 0 | 0.008091 | 0.172864 | 15,839 | 356 | 481 | 44.491573 | 0.816426 | 0.044005 | 0 | 0.382239 | 0 | 0 | 0.130012 | 0.019943 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084942 | false | 0.003861 | 0.069498 | 0.003861 | 0.289575 | 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 |