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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4e96757c37df00a4561207275579e02e7d774aeb | 3,836 | py | Python | molly/routing/providers/cyclestreets.py | mollyproject/mollyproject | 3247c6bac3f39ce8d275d19aa410b30c6284b8a7 | [
"Apache-2.0"
] | 7 | 2015-05-16T13:27:21.000Z | 2019-08-06T11:09:24.000Z | molly/routing/providers/cyclestreets.py | mollyproject/mollyproject | 3247c6bac3f39ce8d275d19aa410b30c6284b8a7 | [
"Apache-2.0"
] | null | null | null | molly/routing/providers/cyclestreets.py | mollyproject/mollyproject | 3247c6bac3f39ce8d275d19aa410b30c6284b8a7 | [
"Apache-2.0"
] | 4 | 2015-11-27T13:36:36.000Z | 2021-03-09T17:55:53.000Z | from urllib import urlencode
from urllib2 import urlopen
import simplejson
from django.conf import settings
from django.contrib.gis.geos import Point, LineString
from django.utils.text import capfirst
from django.utils.translation import ugettext as _
from molly.apps.places.models import bearing_to_compass
from molly... | 40.808511 | 116 | 0.569343 | 420 | 3,836 | 5.145238 | 0.414286 | 0.01851 | 0.011106 | 0.024988 | 0.058306 | 0.058306 | 0.041647 | 0.041647 | 0.041647 | 0.041647 | 0 | 0.003037 | 0.313347 | 3,836 | 94 | 117 | 40.808511 | 0.817388 | 0.25365 | 0 | 0.068966 | 0 | 0 | 0.217564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0.034483 | 0.172414 | 0 | 0.224138 | 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 |
4e9c35d7a10e21f257f971c50e260fb397455462 | 5,829 | py | Python | web/impact/impact/tests/api_test_case.py | masschallenge/impact-api | 81075ced8fcc95de9390dd83c15e523e67fc48c0 | [
"MIT"
] | 5 | 2017-10-19T15:11:52.000Z | 2020-03-08T07:16:21.000Z | web/impact/impact/tests/api_test_case.py | masschallenge/impact-api | 81075ced8fcc95de9390dd83c15e523e67fc48c0 | [
"MIT"
] | 182 | 2017-06-21T19:32:13.000Z | 2021-03-22T13:38:16.000Z | web/impact/impact/tests/api_test_case.py | masschallenge/impact-api | 81075ced8fcc95de9390dd83c15e523e67fc48c0 | [
"MIT"
] | 1 | 2018-06-23T11:53:18.000Z | 2018-06-23T11:53:18.000Z | # MIT License
# Copyright (c) 2017 MassChallenge, Inc.
import json
from oauth2_provider.models import get_application_model
from rest_framework.test import APIClient
from test_plus.test import TestCase
from django.core import mail
from django.conf import settings
from django.contrib.auth.models import Group
from djan... | 36.892405 | 79 | 0.621891 | 660 | 5,829 | 5.315152 | 0.293939 | 0.020525 | 0.019954 | 0.018244 | 0.116591 | 0.083808 | 0.083808 | 0.058153 | 0.058153 | 0.058153 | 0 | 0.004312 | 0.283925 | 5,829 | 157 | 80 | 37.127389 | 0.836128 | 0.055584 | 0 | 0.078125 | 0 | 0 | 0.086399 | 0.02819 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.09375 | false | 0.03125 | 0.078125 | 0.007813 | 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 |
4e9d488202a407ec4de3fade6bfb2e435ba6bb6b | 607 | py | Python | pydis_site/apps/api/models/bot/aoc_link.py | Robin5605/site | 81aa42aa748cb228d7a09e6cf6b211484b654496 | [
"MIT"
] | 13 | 2018-02-03T22:57:41.000Z | 2018-05-17T07:38:36.000Z | pydis_site/apps/api/models/bot/aoc_link.py | Robin5605/site | 81aa42aa748cb228d7a09e6cf6b211484b654496 | [
"MIT"
] | 61 | 2018-02-07T21:34:39.000Z | 2018-06-05T16:15:28.000Z | pydis_site/apps/api/models/bot/aoc_link.py | Robin5605/site | 81aa42aa748cb228d7a09e6cf6b211484b654496 | [
"MIT"
] | 16 | 2018-02-03T12:37:48.000Z | 2018-06-02T17:14:55.000Z | from django.db import models
from pydis_site.apps.api.models.bot.user import User
from pydis_site.apps.api.models.mixins import ModelReprMixin
class AocAccountLink(ModelReprMixin, models.Model):
"""An AoC account link for a Discord User."""
user = models.OneToOneField(
User,
on_delete=models... | 27.590909 | 85 | 0.698517 | 80 | 607 | 5.2 | 0.6 | 0.043269 | 0.0625 | 0.081731 | 0.125 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.224053 | 607 | 21 | 86 | 28.904762 | 0.876858 | 0.06425 | 0 | 0 | 0 | 0 | 0.202847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4e9e7a69ae46de63cdefe46d785a1f6e94dac1e1 | 624 | py | Python | parse.py | Mimori256/kdb-parse | 45f7aca85fea9a7db612da86e9c31daaec52a580 | [
"MIT"
] | 3 | 2021-06-20T04:35:05.000Z | 2021-10-05T06:30:09.000Z | parse.py | Mimori256/kdb-parse | 45f7aca85fea9a7db612da86e9c31daaec52a580 | [
"MIT"
] | 2 | 2021-06-13T01:19:12.000Z | 2022-03-23T04:27:05.000Z | parse.py | Mimori256/kdb-parse | 45f7aca85fea9a7db612da86e9c31daaec52a580 | [
"MIT"
] | null | null | null | import json
#Parse csv to kdb.json
with open("kdb.csv", "r", encoding="utf_8") as f:
l=[]
lines = f.readlines()
# remove the header
lines.pop(0)
for line in lines:
tmp1 = line.split('"')
if tmp1[15] == "":
tmp1[15] = " "
if not "" in set([tmp1[1], tmp1[3], tmp... | 20.8 | 85 | 0.540064 | 104 | 624 | 3.192308 | 0.461538 | 0.072289 | 0.090361 | 0.060241 | 0.204819 | 0.204819 | 0.204819 | 0.204819 | 0.204819 | 0.204819 | 0 | 0.094421 | 0.253205 | 624 | 29 | 86 | 21.517241 | 0.618026 | 0.0625 | 0 | 0 | 0 | 0 | 0.054889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4e9e92e9363d4d32c2609f2f36539abe9b27e294 | 2,600 | py | Python | DLFrameWork/dataset/CIFAR_10.py | Mostafa-ashraf19/TourchPIP | a5090a0ec9cc81a91fe1fd6af41d77841361cec1 | [
"MIT"
] | null | null | null | DLFrameWork/dataset/CIFAR_10.py | Mostafa-ashraf19/TourchPIP | a5090a0ec9cc81a91fe1fd6af41d77841361cec1 | [
"MIT"
] | null | null | null | DLFrameWork/dataset/CIFAR_10.py | Mostafa-ashraf19/TourchPIP | a5090a0ec9cc81a91fe1fd6af41d77841361cec1 | [
"MIT"
] | null | null | null | import os
import shutil
import tarfile
import urllib.request
import pandas as pd
CIFAR10_URL = 'https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz'
class CIFAR_10:
def __init__(self, path, download=True, train=True):
self.path = path
self.download = download
self.train = train
... | 40.625 | 115 | 0.575385 | 350 | 2,600 | 4.117143 | 0.277143 | 0.099931 | 0.081194 | 0.093685 | 0.336572 | 0.299792 | 0.283137 | 0.244275 | 0.189452 | 0.129077 | 0 | 0.018848 | 0.265385 | 2,600 | 63 | 116 | 41.269841 | 0.735602 | 0 | 0 | 0 | 0 | 0.020408 | 0.166346 | 0.053523 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0 | 0.122449 | 0.020408 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ea10581f2a6479a2145424512ce3b01dbcd78d5 | 367 | py | Python | Python_Codes_for_BJ/stage12 큐 사용하기/프린터 큐.py | ch96an/BaekJoonSolution | 25594fda5ba1c0c4d26ff0828ec8dcf2f6572d33 | [
"MIT"
] | null | null | null | Python_Codes_for_BJ/stage12 큐 사용하기/프린터 큐.py | ch96an/BaekJoonSolution | 25594fda5ba1c0c4d26ff0828ec8dcf2f6572d33 | [
"MIT"
] | null | null | null | Python_Codes_for_BJ/stage12 큐 사용하기/프린터 큐.py | ch96an/BaekJoonSolution | 25594fda5ba1c0c4d26ff0828ec8dcf2f6572d33 | [
"MIT"
] | null | null | null | def printer(n,k,order):
lst = [(order[x],False if x==k else True) for x in range(len(order))]
flag, i = True, 0
while flag:
if lst[0][0] == max(lst,key=lambda x:x[0])[0]:
flag = lst.pop(0)[1]
i +=1
else:
lst.append(lst.pop(0))
print(i)
for _ in range(int(input())):
n,k=map(int,input().split())
lst=l... | 24.466667 | 70 | 0.59673 | 74 | 367 | 2.945946 | 0.418919 | 0.027523 | 0.082569 | 0.146789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029316 | 0.163488 | 367 | 15 | 71 | 24.466667 | 0.680782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.071429 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4ea47fc79c5dcbec42ef206e57f938c9dff9b024 | 2,101 | py | Python | zhang.py | AndrewQuijano/Treespace_REU_2017 | e1aff2224ad5152d82f529675444146a70623bca | [
"MIT"
] | 2 | 2021-06-07T12:22:46.000Z | 2021-09-14T00:19:03.000Z | zhang.py | AndrewQuijano/Treespace_REU_2017 | e1aff2224ad5152d82f529675444146a70623bca | [
"MIT"
] | null | null | null | zhang.py | AndrewQuijano/Treespace_REU_2017 | e1aff2224ad5152d82f529675444146a70623bca | [
"MIT"
] | null | null | null | import networkx as nx
from misc import maximum_matching_all
from networkx import get_node_attributes
def is_tree_based(graph):
if is_binary(graph):
# print("Graph is not binary! Zhang's won't work!")
return None
unmatched_reticulation = zhang_graph(graph)
if len(unmatched_reticulation) == ... | 32.828125 | 86 | 0.595907 | 272 | 2,101 | 4.466912 | 0.316176 | 0.023045 | 0.046091 | 0.037037 | 0.097942 | 0.039506 | 0 | 0 | 0 | 0 | 0 | 0.01115 | 0.316992 | 2,101 | 63 | 87 | 33.349206 | 0.83554 | 0.10614 | 0 | 0.170213 | 0 | 0 | 0.008547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.06383 | 0 | 0.319149 | 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 |
4eaa0630211dc9678f367337b57ebf1618235962 | 3,765 | py | Python | sme_financing/main/apis/document_api.py | BuildForSDG/team-214-backend | f1aff9c27d7b7588b4bbb2bc68956b35051d4506 | [
"MIT"
] | 1 | 2020-05-20T16:32:33.000Z | 2020-05-20T16:32:33.000Z | sme_financing/main/apis/document_api.py | BuildForSDG/team-214-backend | f1aff9c27d7b7588b4bbb2bc68956b35051d4506 | [
"MIT"
] | 23 | 2020-05-19T07:12:53.000Z | 2020-06-21T03:57:54.000Z | sme_financing/main/apis/document_api.py | BuildForSDG/team-214-backend | f1aff9c27d7b7588b4bbb2bc68956b35051d4506 | [
"MIT"
] | 1 | 2020-05-18T14:18:12.000Z | 2020-05-18T14:18:12.000Z | """RESTful API Document resource."""
from flask_restx import Resource, reqparse
from flask_restx._http import HTTPStatus
from werkzeug.datastructures import FileStorage
from ..service.document_service import (
delete_document,
edit_document,
get_all_documents,
get_document,
save_document,
)
from .... | 35.186916 | 86 | 0.657371 | 474 | 3,765 | 5.048523 | 0.219409 | 0.046803 | 0.07898 | 0.050146 | 0.40326 | 0.334308 | 0.265775 | 0.265775 | 0.248642 | 0.248642 | 0 | 0.001028 | 0.224967 | 3,765 | 106 | 87 | 35.518868 | 0.819054 | 0.154847 | 0 | 0.266667 | 0 | 0 | 0.159873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.226667 | 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 |
4eaadef4bc857f47d228828cdfd23ca47dfe5099 | 1,405 | py | Python | column_name_renaming.py | strathclyde-rse/strathclyde-software-survey | 1dd3805a416f1da6cbfa27958ae96a5ad685fe19 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | column_name_renaming.py | strathclyde-rse/strathclyde-software-survey | 1dd3805a416f1da6cbfa27958ae96a5ad685fe19 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | column_name_renaming.py | strathclyde-rse/strathclyde-software-survey | 1dd3805a416f1da6cbfa27958ae96a5ad685fe19 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
col_shortener = {
'Q1':'confirm',
'Q2':'faculty',
'Q3':'department',
'Q4':'funders',
'Q5':'position',
'Q6':'use_software',
'Q7':'importance_software',
'Q8':'develop_own_code',
'Q9':'development_expertise',
'Q10':'sufficient_training',
... | 19.788732 | 39 | 0.635587 | 151 | 1,405 | 5.483444 | 0.582781 | 0.065217 | 0.033816 | 0.050725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045053 | 0.194306 | 1,405 | 70 | 40 | 20.071429 | 0.686396 | 0.025623 | 0 | 0.101695 | 0 | 0 | 0.554499 | 0.162399 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033898 | 0 | 0.033898 | 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 |
4eae8bae94764d3c5a64b90797dd929834fa6067 | 1,974 | py | Python | scanpy/tests/test_scaling.py | alexcwsmith/scanpy | b69015e9e7007193c9ac461d5c6fbf845b3d6962 | [
"BSD-3-Clause"
] | 1,171 | 2017-01-17T14:01:02.000Z | 2022-03-31T23:02:57.000Z | scanpy/tests/test_scaling.py | alexcwsmith/scanpy | b69015e9e7007193c9ac461d5c6fbf845b3d6962 | [
"BSD-3-Clause"
] | 1,946 | 2017-01-22T10:19:04.000Z | 2022-03-31T17:13:03.000Z | scanpy/tests/test_scaling.py | alexcwsmith/scanpy | b69015e9e7007193c9ac461d5c6fbf845b3d6962 | [
"BSD-3-Clause"
] | 499 | 2017-01-21T11:39:29.000Z | 2022-03-23T13:57:35.000Z | import pytest
import numpy as np
from anndata import AnnData
from scipy.sparse import csr_matrix
import scanpy as sc
# test "data" for 3 cells * 4 genes
X = [
[-1, 2, 0, 0],
[1, 2, 4, 0],
[0, 2, 2, 0],
] # with gene std 1,0,2,0 and center 0,2,2,0
X_scaled = [
[-1, 2, 0, 0],
[1, 2, 2, 0],
[0, ... | 35.890909 | 81 | 0.662614 | 322 | 1,974 | 3.965839 | 0.21118 | 0.017228 | 0.070478 | 0.065779 | 0.512921 | 0.463587 | 0.414252 | 0.280345 | 0.209867 | 0.209867 | 0 | 0.054648 | 0.193516 | 1,974 | 54 | 82 | 36.555556 | 0.747487 | 0.269504 | 0 | 0.04878 | 0 | 0 | 0.013996 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 1 | 0.02439 | false | 0 | 0.121951 | 0 | 0.146341 | 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 |
4eae8be82d67b6164b7865425e58eaf76d1e1eba | 7,810 | py | Python | wsireg/tmpSaves/demo_self6_complete unit.py | luweishuang/wsireg | 344af8585932e3e0f5df3ce40a7dc75846a0214b | [
"MIT"
] | null | null | null | wsireg/tmpSaves/demo_self6_complete unit.py | luweishuang/wsireg | 344af8585932e3e0f5df3ce40a7dc75846a0214b | [
"MIT"
] | null | null | null | wsireg/tmpSaves/demo_self6_complete unit.py | luweishuang/wsireg | 344af8585932e3e0f5df3ce40a7dc75846a0214b | [
"MIT"
] | null | null | null | import cv2
import numpy as np
import bilinear
import patchreg
from skimage.util import view_as_windows
def bilinear_interpolation_of_patch_registration(master_srcdata, target_srcdata):
print("Beginning bilinear_interpolation_of_patch_registration...")
w_shape = (1000, 1000, 4) # window_size
w_step = (5... | 43.631285 | 131 | 0.705634 | 1,112 | 7,810 | 4.706835 | 0.220324 | 0.022927 | 0.024073 | 0.019488 | 0.232709 | 0.164501 | 0.128009 | 0.112151 | 0.080054 | 0.064578 | 0 | 0.070953 | 0.173496 | 7,810 | 179 | 132 | 43.631285 | 0.739892 | 0.108963 | 0 | 0 | 0 | 0 | 0.031904 | 0.006785 | 0 | 0 | 0 | 0 | 0.02439 | 1 | 0.04065 | false | 0 | 0.04065 | 0 | 0.113821 | 0.01626 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4eaf9ec2243bbc0b3558c08de925bc43b8365f96 | 1,253 | py | Python | src/sprites/weapon_vfx.py | mgear2/undervoid | 6c91a5786d29d766223831190952fd90ddc6a1e8 | [
"MIT"
] | 1 | 2020-08-29T06:41:03.000Z | 2020-08-29T06:41:03.000Z | src/sprites/weapon_vfx.py | mgear2/undervoid | 6c91a5786d29d766223831190952fd90ddc6a1e8 | [
"MIT"
] | 10 | 2019-07-15T05:15:38.000Z | 2020-11-25T03:14:03.000Z | src/sprites/weapon_vfx.py | mgear2/undervoid | 6c91a5786d29d766223831190952fd90ddc6a1e8 | [
"MIT"
] | 1 | 2020-11-22T08:25:26.000Z | 2020-11-22T08:25:26.000Z | # Copyright (c) 2020
# [This program is licensed under the "MIT License"]
# Please see the file LICENSE in the source
# distribution of this software for license terms.
import pygame as pg
import ruamel.yaml
from random import choice
vec = pg.math.Vector2
class Weapon_VFX(pg.sprite.Sprite):
"""
Weapon_VFX a... | 27.23913 | 59 | 0.60016 | 148 | 1,253 | 4.925676 | 0.533784 | 0.098765 | 0.030178 | 0.046639 | 0.068587 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005624 | 0.290503 | 1,253 | 45 | 60 | 27.844444 | 0.814398 | 0.217877 | 0 | 0.133333 | 0 | 0 | 0.052466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.1 | 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 |
4eafa55a23b75bd6783941216b9d9087a84c8b15 | 9,860 | py | Python | game/blenderpanda/pman.py | Moguri/prototype-nitrogen | 607f78219fcfbd55dfcd1611684107a2922f635d | [
"Apache-2.0"
] | 1 | 2017-05-29T23:03:13.000Z | 2017-05-29T23:03:13.000Z | game/blenderpanda/pman.py | Moguri/prototype-nitrogen | 607f78219fcfbd55dfcd1611684107a2922f635d | [
"Apache-2.0"
] | null | null | null | game/blenderpanda/pman.py | Moguri/prototype-nitrogen | 607f78219fcfbd55dfcd1611684107a2922f635d | [
"Apache-2.0"
] | null | null | null | import fnmatch
import os
import shutil
import subprocess
import sys
import time
from collections import OrderedDict
try:
import configparser
except ImportError:
import ConfigParser as configparser
class PManException(Exception):
pass
class NoConfigError(PManException):
pass
class CouldNotFindPytho... | 27.853107 | 131 | 0.600406 | 1,146 | 9,860 | 5.017452 | 0.219023 | 0.034435 | 0.027826 | 0.028174 | 0.17287 | 0.126087 | 0.101217 | 0.043478 | 0.043478 | 0.026435 | 0 | 0.001945 | 0.26998 | 9,860 | 353 | 132 | 27.932011 | 0.796888 | 0.034483 | 0 | 0.189189 | 0 | 0 | 0.16183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057915 | false | 0.023166 | 0.042471 | 0.015444 | 0.150579 | 0.088803 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4eb07bf2ab74b26ed4d8db65e2b44e12fd9bf220 | 1,326 | py | Python | src/createGraph.py | AJMFactsheets/NetworkSpeedGrapher | 86e755e8831ab22394719520713d4949ed3d018e | [
"Apache-2.0"
] | null | null | null | src/createGraph.py | AJMFactsheets/NetworkSpeedGrapher | 86e755e8831ab22394719520713d4949ed3d018e | [
"Apache-2.0"
] | null | null | null | src/createGraph.py | AJMFactsheets/NetworkSpeedGrapher | 86e755e8831ab22394719520713d4949ed3d018e | [
"Apache-2.0"
] | null | null | null | import sys
import plotly
import plotly.plotly as py
import plotly.graph_objs as go
#Argument 1 must be your plotly username, argument 2 is your api key. Get those by registering for a plotly account.
#Argument 3 is the name of the input file to input data from. Must be in the form: Date \n Download \n Upload \n
plotl... | 17 | 116 | 0.6727 | 217 | 1,326 | 4.092166 | 0.37788 | 0.022523 | 0.027027 | 0.036036 | 0.295045 | 0.231982 | 0.231982 | 0.148649 | 0.148649 | 0.148649 | 0 | 0.036832 | 0.180995 | 1,326 | 77 | 117 | 17.220779 | 0.780847 | 0.381599 | 0 | 0.1 | 0 | 0 | 0.087282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4eb77f4c11a2d3ec08d7055fbeacf7a5223e4aad | 630 | py | Python | src/spellbot/migrations/versions/6e982c9318a6_adds_voice_category_per_channel.py | lexicalunit/spellbot | 17a4999d5e1def06246727ac5481230aa4a4557d | [
"MIT"
] | 13 | 2020-07-03T01:20:54.000Z | 2021-11-22T06:06:21.000Z | src/spellbot/migrations/versions/6e982c9318a6_adds_voice_category_per_channel.py | lexicalunit/spellbot | 17a4999d5e1def06246727ac5481230aa4a4557d | [
"MIT"
] | 660 | 2020-06-26T02:52:18.000Z | 2022-03-31T14:14:02.000Z | src/spellbot/migrations/versions/6e982c9318a6_adds_voice_category_per_channel.py | lexicalunit/spellbot | 17a4999d5e1def06246727ac5481230aa4a4557d | [
"MIT"
] | 3 | 2020-07-12T06:18:39.000Z | 2021-06-22T06:54:47.000Z | """Adds voice category per channel
Revision ID: 6e982c9318a6
Revises: ef54f035a75c
Create Date: 2021-12-03 13:18:57.468342
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "6e982c9318a6"
down_revision = "ef54f035a75c"
branch_labels = None
depends_on = None
def ... | 19.6875 | 64 | 0.655556 | 74 | 630 | 5.472973 | 0.689189 | 0.096296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112266 | 0.236508 | 630 | 31 | 65 | 20.322581 | 0.72973 | 0.253968 | 0 | 0 | 0 | 0 | 0.201299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | 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 |
4eb9e46990415a6b4e9b33a746cb5c6ea0b09797 | 7,576 | py | Python | main.py | jarchv/capsnet-tensorflow | e4a69124060ac946cf21861b3ef3870e956325b6 | [
"MIT"
] | null | null | null | main.py | jarchv/capsnet-tensorflow | e4a69124060ac946cf21861b3ef3870e956325b6 | [
"MIT"
] | null | null | null | main.py | jarchv/capsnet-tensorflow | e4a69124060ac946cf21861b3ef3870e956325b6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#title :main.py
#description :Tensorflow implementation of CapsNet.
#author :Jose Chavez
#date :2019/04/30
#version :1.0
#usage :python3 main.py
#python_version :3.6.7
#============================================================================... | 35.905213 | 161 | 0.574314 | 984 | 7,576 | 4.115854 | 0.183943 | 0.044444 | 0.024444 | 0.020741 | 0.438765 | 0.35358 | 0.298272 | 0.204198 | 0.161728 | 0.137284 | 0 | 0.025943 | 0.292767 | 7,576 | 210 | 162 | 36.07619 | 0.729937 | 0.098205 | 0 | 0.166667 | 0 | 0.007246 | 0.06463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028986 | false | 0 | 0.050725 | 0 | 0.07971 | 0.057971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4ebb360ae9b11a1457dfb35575d9b1a3c0b33203 | 6,240 | py | Python | platforms_handlers/dialogflow/request.py | Robinson04/inoft_vocal_framework | 9659e0852604bc628b01e0440535add0ae5fc5d1 | [
"MIT"
] | 11 | 2020-04-15T07:47:34.000Z | 2022-03-30T21:47:36.000Z | platforms_handlers/dialogflow/request.py | Robinson04/inoft_vocal_framework | 9659e0852604bc628b01e0440535add0ae5fc5d1 | [
"MIT"
] | 20 | 2020-08-09T00:11:49.000Z | 2021-09-11T11:34:02.000Z | platforms_handlers/dialogflow/request.py | Robinson04/inoft_vocal_framework | 9659e0852604bc628b01e0440535add0ae5fc5d1 | [
"MIT"
] | 6 | 2020-02-21T04:45:19.000Z | 2021-07-18T22:13:55.000Z | from typing import Optional, List
from pydantic import Field
from pydantic.main import BaseModel
from inoft_vocal_framework.utils.formatters import normalize_intent_name
class Intent(BaseModel):
name: str
displayName: str
class User(BaseModel):
_VERIFICATION_NAME_GUEST = "GUEST"
_VERIFICATION_NAME_... | 37.365269 | 149 | 0.680769 | 679 | 6,240 | 6.039764 | 0.215022 | 0.029261 | 0.032431 | 0.016825 | 0.204097 | 0.119971 | 0.108754 | 0.063399 | 0.063399 | 0.063399 | 0 | 0 | 0.244551 | 6,240 | 166 | 150 | 37.590361 | 0.869962 | 0.02516 | 0 | 0.165354 | 0 | 0 | 0.039809 | 0.011515 | 0 | 0 | 0 | 0.006024 | 0 | 1 | 0.110236 | false | 0 | 0.031496 | 0.03937 | 0.653543 | 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 |
4ebf96b0cd05bc2eb3a4a7d33d2460323ab21921 | 1,073 | py | Python | scraping_data.py | WeiTaKuan/TPEX_StockBot | e8a7d694dd08efdc66989a827518a629e380de16 | [
"MIT"
] | null | null | null | scraping_data.py | WeiTaKuan/TPEX_StockBot | e8a7d694dd08efdc66989a827518a629e380de16 | [
"MIT"
] | null | null | null | scraping_data.py | WeiTaKuan/TPEX_StockBot | e8a7d694dd08efdc66989a827518a629e380de16 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#--------------------------------#
"""
File name: TPEX_STOCKBOT/main.py
Author: WEI-TA KUAN
Date created: 12/9/2021
Date last modified: 9/10/2021
Version: 1.0
Python Version: 3.8.8
Status: Developing
"""
#--------------------------------#
from scraping_data import stock_da... | 29 | 90 | 0.649581 | 151 | 1,073 | 4.536424 | 0.529801 | 0.075912 | 0.091971 | 0.084672 | 0.213139 | 0.125547 | 0.125547 | 0.125547 | 0.125547 | 0 | 0 | 0.029508 | 0.147251 | 1,073 | 37 | 91 | 29 | 0.719126 | 0.37931 | 0 | 0.133333 | 0 | 0 | 0.164363 | 0.070661 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4ec073c949edac61a57ee7d6306e6b0a094db09d | 3,959 | py | Python | l1t_cli/commands/list/twikis/__init__.py | kreczko/l1t-cli | f708f001b6f434d4245da6631a068a7eeb9edf30 | [
"Apache-2.0"
] | null | null | null | l1t_cli/commands/list/twikis/__init__.py | kreczko/l1t-cli | f708f001b6f434d4245da6631a068a7eeb9edf30 | [
"Apache-2.0"
] | null | null | null | l1t_cli/commands/list/twikis/__init__.py | kreczko/l1t-cli | f708f001b6f434d4245da6631a068a7eeb9edf30 | [
"Apache-2.0"
] | null | null | null | """
list twikis:
List all L1 Trigger Offline Twikis
Usage:
list twikis [check=1]
Parameters:
check: force a check of the twiki URL before printing.
Useful when adding new entries. Default: 0
"""
import logging
import urllib
import hepshell
LOG = log... | 32.186992 | 97 | 0.605961 | 475 | 3,959 | 4.873684 | 0.332632 | 0.036285 | 0.054428 | 0.062203 | 0.234557 | 0.206911 | 0.190497 | 0.142117 | 0.142117 | 0 | 0 | 0.010559 | 0.258399 | 3,959 | 122 | 98 | 32.45082 | 0.777929 | 0.090174 | 0 | 0.022989 | 0 | 0 | 0.36315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057471 | false | 0 | 0.034483 | 0 | 0.149425 | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4ec139a98dfaa140655178c0f7864e5e8a59aecf | 1,528 | py | Python | examples/surrogates/corrnoise.py | manu-mannattil/nolitsa | 40befcb1ce5535703f90ffe87209181bcdb5eb5c | [
"BSD-3-Clause"
] | 118 | 2017-06-21T08:38:07.000Z | 2022-03-29T05:39:44.000Z | examples/surrogates/corrnoise.py | tanmaymaloo/nolitsa | 40befcb1ce5535703f90ffe87209181bcdb5eb5c | [
"BSD-3-Clause"
] | 2 | 2018-06-17T03:49:53.000Z | 2019-10-21T14:45:01.000Z | examples/surrogates/corrnoise.py | tanmaymaloo/nolitsa | 40befcb1ce5535703f90ffe87209181bcdb5eb5c | [
"BSD-3-Clause"
] | 35 | 2018-06-16T22:41:24.000Z | 2022-02-19T19:42:45.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""IAAFT surrogates for correlated noise.
The properties of linearly correlated noise can be captured quite
accurately by IAAFT surrogates. Thus, they cannot easily fool
a dimension estimator (here we use Takens's maximum likelihood estimator
for the correlation dimensio... | 26.807018 | 72 | 0.685864 | 272 | 1,528 | 3.805147 | 0.411765 | 0.011594 | 0.052174 | 0.054106 | 0.289855 | 0.13913 | 0.13913 | 0.13913 | 0.13913 | 0.13913 | 0 | 0.04099 | 0.153796 | 1,528 | 56 | 73 | 27.285714 | 0.759474 | 0.309555 | 0 | 0 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.096774 | 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 |
4ec177a61c4b2700cdcadf9e2506e37171a32c85 | 1,853 | py | Python | test/pubmed/test_entrez.py | aaronnorrish/PubMedConnections | dc17e141d94afe6d26a9b49b2183c06f3630e561 | [
"CC-BY-4.0"
] | 4 | 2022-03-09T05:20:46.000Z | 2022-03-13T11:18:58.000Z | test/pubmed/test_entrez.py | aaronnorrish/PubMedConnections | dc17e141d94afe6d26a9b49b2183c06f3630e561 | [
"CC-BY-4.0"
] | null | null | null | test/pubmed/test_entrez.py | aaronnorrish/PubMedConnections | dc17e141d94afe6d26a9b49b2183c06f3630e561 | [
"CC-BY-4.0"
] | 1 | 2022-03-09T05:21:53.000Z | 2022-03-09T05:21:53.000Z | import time
from unittest import TestCase
from app.pubmed.source_entrez import *
class TestEntrez(TestCase):
def test_do_rate_limit(self):
# Serial Test
start = time.time()
do_rate_limit()
do_rate_limit()
do_rate_limit()
do_rate_limit()
elapsed = time.time()... | 36.333333 | 115 | 0.636805 | 230 | 1,853 | 4.908696 | 0.286957 | 0.077945 | 0.068202 | 0.06023 | 0.654562 | 0.618246 | 0.618246 | 0.618246 | 0.571302 | 0.474756 | 0 | 0.028798 | 0.250405 | 1,853 | 50 | 116 | 37.06 | 0.784017 | 0.076093 | 0 | 0.486486 | 0 | 0 | 0.079719 | 0 | 0 | 0 | 0 | 0 | 0.297297 | 1 | 0.108108 | false | 0.027027 | 0.081081 | 0 | 0.216216 | 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 |
4ec4dd9e5afd36d15c0c2a204aed4c3badf824b1 | 1,799 | py | Python | bankapi.py | robinstauntoncollins/bank-api | b19cadf5a65f5e66ca14688af8774f400d4fb0f8 | [
"Unlicense"
] | null | null | null | bankapi.py | robinstauntoncollins/bank-api | b19cadf5a65f5e66ca14688af8774f400d4fb0f8 | [
"Unlicense"
] | null | null | null | bankapi.py | robinstauntoncollins/bank-api | b19cadf5a65f5e66ca14688af8774f400d4fb0f8 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
import os
import click
from bank_api import create_app, db, models, utils
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
@app.shell_context_processor
def make_shell_context():
return {
'db': db,
'Account': models.Account,
'Customer': models.Customer,
... | 32.125 | 105 | 0.612007 | 210 | 1,799 | 5.004762 | 0.4 | 0.074215 | 0.05138 | 0.074215 | 0.201713 | 0.147479 | 0.147479 | 0.104662 | 0.104662 | 0 | 0 | 0.015251 | 0.234575 | 1,799 | 55 | 106 | 32.709091 | 0.748003 | 0.011673 | 0 | 0 | 0 | 0 | 0.203151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.142857 | 0.02381 | 0.214286 | 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 |
4ecc15d4ccded89291e34497472b06937ec1df8b | 18,554 | py | Python | WS_CNN.py | Aks-Dmv/WSDDN | 71fe1ccb17d5e779c8dac94a84227c871bd3aa73 | [
"MIT"
] | null | null | null | WS_CNN.py | Aks-Dmv/WSDDN | 71fe1ccb17d5e779c8dac94a84227c871bd3aa73 | [
"MIT"
] | null | null | null | WS_CNN.py | Aks-Dmv/WSDDN | 71fe1ccb17d5e779c8dac94a84227c871bd3aa73 | [
"MIT"
] | null | null | null | import argparse
import os
import shutil
import time
import sys
import sklearn
import sklearn.metrics
import torch
torch.cuda.init()
import torch.nn as nn
import torch.nn.parallel
import torch.nn.functional as F
import torch.backends.cudnn as cudnn
import torch.distributed as dist
import torch.optim
import torch.utils.... | 32.955595 | 129 | 0.579929 | 2,289 | 18,554 | 4.543906 | 0.169506 | 0.037496 | 0.027786 | 0.01846 | 0.474858 | 0.43765 | 0.415441 | 0.365349 | 0.357658 | 0.340833 | 0 | 0.028642 | 0.298103 | 18,554 | 562 | 130 | 33.014235 | 0.770022 | 0.122453 | 0 | 0.422785 | 0 | 0 | 0.118358 | 0.015596 | 0 | 0 | 0 | 0.001779 | 0 | 1 | 0.025316 | false | 0 | 0.058228 | 0.002532 | 0.101266 | 0.055696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4ecd621ab56bfd508e9835987ea7537a72ff3b56 | 1,093 | py | Python | fuc/cli/vcf_index.py | sbslee/fuc | f4eb5f6b95b533252ee877920278cd4e4c964bb8 | [
"MIT"
] | 17 | 2021-06-09T23:23:56.000Z | 2022-03-10T11:58:46.000Z | fuc/cli/vcf_index.py | sbslee/fuc | f4eb5f6b95b533252ee877920278cd4e4c964bb8 | [
"MIT"
] | 27 | 2021-04-21T06:25:22.000Z | 2022-03-30T23:25:36.000Z | fuc/cli/vcf_index.py | sbslee/fuc | f4eb5f6b95b533252ee877920278cd4e4c964bb8 | [
"MIT"
] | null | null | null | import sys
from .. import api
import pysam
description = """
Index a VCF file.
This command will create an index file (.tbi) for the input VCF.
"""
epilog = f"""
[Example] Index a compressed VCF file:
$ fuc {api.common._script_name()} in.vcf.gz
[Example] Index an uncompressed VCF file (will create a compressed ... | 25.418605 | 78 | 0.643184 | 148 | 1,093 | 4.662162 | 0.425676 | 0.050725 | 0.065217 | 0.082609 | 0.078261 | 0.078261 | 0.078261 | 0 | 0 | 0 | 0 | 0 | 0.247027 | 1,093 | 42 | 79 | 26.02381 | 0.838396 | 0 | 0 | 0.117647 | 0 | 0 | 0.510522 | 0.049405 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.088235 | 0 | 0.147059 | 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 |
4ecec912c81fe613d6387ded4c0e5121003a14a5 | 640 | py | Python | main.py | sergioyahni/captcha | f8235a4c3b64fadf71c00d9932fae7f1bf1962f5 | [
"MIT"
] | null | null | null | main.py | sergioyahni/captcha | f8235a4c3b64fadf71c00d9932fae7f1bf1962f5 | [
"MIT"
] | null | null | null | main.py | sergioyahni/captcha | f8235a4c3b64fadf71c00d9932fae7f1bf1962f5 | [
"MIT"
] | null | null | null | from captcha.image import ImageCaptcha
import random
def create_captcha():
captcha_text = str(hex(random.randint(3000, 5999) * random.randint(100, 199)))
image = ImageCaptcha(width=280, height=90)
data = image.generate(captcha_text)
image.write(captcha_text, 'cImg.png')
return captcha_tex... | 23.703704 | 83 | 0.6 | 76 | 640 | 4.894737 | 0.578947 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04955 | 0.30625 | 640 | 26 | 84 | 24.615385 | 0.788288 | 0 | 0 | 0 | 0 | 0 | 0.037459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ed15e1a4c599c5f5acf73a58c9805ac84372eae | 4,045 | py | Python | openstates/openstates-master/openstates/mi/events.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/openstates/mi/events.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/openstates/mi/events.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | from openstates.utils import LXMLMixin
import datetime as dt
import re
from billy.scrape.events import Event, EventScraper
import lxml.html
import pytz
mi_events = "http://legislature.mi.gov/doc.aspx?CommitteeMeetings"
class MIEventScraper(EventScraper, LXMLMixin):
jurisdiction = 'mi'
_tz = pytz.timezone('... | 32.36 | 85 | 0.528307 | 424 | 4,045 | 4.95283 | 0.375 | 0.02619 | 0.032857 | 0.032857 | 0.074286 | 0.033333 | 0.033333 | 0 | 0 | 0 | 0 | 0.006006 | 0.341409 | 4,045 | 124 | 86 | 32.620968 | 0.782282 | 0.0267 | 0 | 0.07 | 0 | 0 | 0.203459 | 0.053662 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.06 | 0 | 0.14 | 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 |
4ed2ebd3e68752d3caa55e15dd92ce5cc345106b | 418 | py | Python | code/0190-reverseBits.py | RRRoger/LeetCodeExercise | 0019a048fcfac9ac9e6f37651b17d01407c92c7d | [
"MIT"
] | null | null | null | code/0190-reverseBits.py | RRRoger/LeetCodeExercise | 0019a048fcfac9ac9e6f37651b17d01407c92c7d | [
"MIT"
] | null | null | null | code/0190-reverseBits.py | RRRoger/LeetCodeExercise | 0019a048fcfac9ac9e6f37651b17d01407c92c7d | [
"MIT"
] | null | null | null | class Solution:
# @param n, an integer
# @return an integer
def reverseBits(self, n):
ret, power = 0, 31
while n:
ret += (n & 1) << power # n & 1 means: 末位是1则是1, 0则是0 向右移位
n = n >> 1 # n 左移移位
power -= 1 # 位数-1
return ret
if "__main__... | 19.904762 | 69 | 0.5 | 51 | 418 | 3.941176 | 0.54902 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078125 | 0.38756 | 418 | 20 | 70 | 20.9 | 0.707031 | 0.198565 | 0 | 0 | 0 | 0 | 0.024316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.25 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4ed342ee0815f43f923a49b70459817dc28094de | 1,018 | py | Python | muria/db/preload.py | xakiy/muria | 0d16ae02f65d2a4b8cfe31419a4d9343ccbe6905 | [
"MIT"
] | 1 | 2020-02-10T00:12:27.000Z | 2020-02-10T00:12:27.000Z | muria/db/preload.py | xakiy/muria | 0d16ae02f65d2a4b8cfe31419a4d9343ccbe6905 | [
"MIT"
] | 8 | 2019-12-07T16:48:08.000Z | 2021-08-31T06:31:34.000Z | muria/db/preload.py | xakiy/muria | 0d16ae02f65d2a4b8cfe31419a4d9343ccbe6905 | [
"MIT"
] | null | null | null | """Some preloads of database content."""
tables = list()
roles = list()
roles.append({"id": 1, "name": "administrator"})
roles.append({"id": 2, "name": "contributor"})
roles.append({"id": 3, "name": "staff"})
roles.append({"id": 4, "name": "parent"})
roles.append({"id": 5, "name": "caretaker"})
roles.append... | 22.130435 | 69 | 0.52554 | 114 | 1,018 | 4.675439 | 0.298246 | 0.135084 | 0.146341 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039642 | 0.231827 | 1,018 | 45 | 70 | 22.622222 | 0.641944 | 0.033399 | 0 | 0 | 0 | 0 | 0.217578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ed3a96b67e22aff964a1489de5d4c55aa41991d | 6,689 | py | Python | src/meeting_timer/settings.py | andrewjrobinson/meeting_timer | cad3303f6925d2e8961b262c6cfbecf4a30a1ce5 | [
"MIT"
] | null | null | null | src/meeting_timer/settings.py | andrewjrobinson/meeting_timer | cad3303f6925d2e8961b262c6cfbecf4a30a1ce5 | [
"MIT"
] | null | null | null | src/meeting_timer/settings.py | andrewjrobinson/meeting_timer | cad3303f6925d2e8961b262c6cfbecf4a30a1ce5 | [
"MIT"
] | null | null | null | #
# MIT License
#
# Copyright (c) 2020 Andrew Robinson
#
# 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,... | 32.470874 | 87 | 0.575123 | 752 | 6,689 | 5.019947 | 0.303191 | 0.043709 | 0.063576 | 0.02649 | 0.270199 | 0.179338 | 0.148079 | 0.13457 | 0.111788 | 0.111788 | 0 | 0.005081 | 0.323217 | 6,689 | 205 | 88 | 32.629268 | 0.828805 | 0.276274 | 0 | 0.29 | 0 | 0 | 0.081254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11 | false | 0 | 0.04 | 0 | 0.23 | 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 |
4ed623c2f06e37c570057cd2950ac913943aac09 | 651 | py | Python | python/191122.py | Xanonymous-GitHub/main | 53120110bd8dc9ab33424fa26d1a8ca5b9256ebe | [
"Apache-2.0"
] | 1 | 2019-09-27T17:46:41.000Z | 2019-09-27T17:46:41.000Z | python/191122.py | Xanonymous-GitHub/main | 53120110bd8dc9ab33424fa26d1a8ca5b9256ebe | [
"Apache-2.0"
] | null | null | null | python/191122.py | Xanonymous-GitHub/main | 53120110bd8dc9ab33424fa26d1a8ca5b9256ebe | [
"Apache-2.0"
] | 5 | 2019-09-30T16:41:14.000Z | 2019-10-25T11:13:39.000Z | from os import getcwd
def rdfile():
data = list()
# 顯示這個程式碼檔案是在哪裡被執行
print(getcwd())
with open("pm25.txt", 'r') as fd:
for line in fd:
try:
data.append(float(line.replace('\n', '')))
except:
pass
print('Max =', max(data))
print('M... | 21.7 | 78 | 0.533026 | 86 | 651 | 3.837209 | 0.546512 | 0.121212 | 0.145455 | 0.145455 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029213 | 0.316436 | 651 | 29 | 79 | 22.448276 | 0.71236 | 0.024578 | 0 | 0 | 0 | 0 | 0.123223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.045455 | 0.045455 | 0 | 0.136364 | 0.227273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4ed6b577e511cc21f5108b75969a300169a86b9c | 5,534 | py | Python | treeplotter/plotter.py | Luke-Poeppel/treeplotter | 940e08b02d30f69972b0df1a5668f3b2ade02027 | [
"MIT"
] | 7 | 2021-06-12T17:48:17.000Z | 2022-01-27T09:47:12.000Z | treeplotter/plotter.py | Luke-Poeppel/treeplotter | 940e08b02d30f69972b0df1a5668f3b2ade02027 | [
"MIT"
] | 36 | 2021-06-09T18:31:44.000Z | 2022-03-17T12:06:59.000Z | treeplotter/plotter.py | Luke-Poeppel/treeplotter | 940e08b02d30f69972b0df1a5668f3b2ade02027 | [
"MIT"
] | 2 | 2021-12-07T18:41:53.000Z | 2022-03-09T10:46:52.000Z | ####################################################################################################
# File: plotter.py
# Purpose: Plotting module.
#
# Author: Luke Poeppel
#
# Location: Kent, 2021
####################################################################################################
import logging... | 28.091371 | 100 | 0.696061 | 732 | 5,534 | 5.02459 | 0.285519 | 0.032898 | 0.028276 | 0.014682 | 0.057096 | 0.034802 | 0.02012 | 0.02012 | 0 | 0 | 0 | 0.002324 | 0.144742 | 5,534 | 197 | 101 | 28.091371 | 0.77435 | 0.15721 | 0 | 0.082759 | 0 | 0 | 0.145707 | 0.005604 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.055172 | 0 | 0.124138 | 0.027586 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4ed70f9df4c3c063308c836d1a779ff6d33f1046 | 3,814 | py | Python | filewriter.py | FrederikBjorne/python-serial-logging | e553bc2421699a2bb38f21abffbb08ee70c81a21 | [
"MIT"
] | null | null | null | filewriter.py | FrederikBjorne/python-serial-logging | e553bc2421699a2bb38f21abffbb08ee70c81a21 | [
"MIT"
] | null | null | null | filewriter.py | FrederikBjorne/python-serial-logging | e553bc2421699a2bb38f21abffbb08ee70c81a21 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import logging
from threading import Thread, Event
from Queue import Queue, Empty as QueueEmpty
import codecs
class FileWriter(Thread):
"""
This thread reads log lines from a queue and writes these to a file passed as log_file_path.
The log line queue is filled with new log lines b... | 40.574468 | 113 | 0.588621 | 473 | 3,814 | 4.515856 | 0.321353 | 0.032772 | 0.036049 | 0.02809 | 0.045412 | 0.029026 | 0.029026 | 0 | 0 | 0 | 0 | 0.001169 | 0.327216 | 3,814 | 93 | 114 | 41.010753 | 0.831255 | 0.299423 | 0 | 0.036364 | 0 | 0 | 0.07177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0 | 0.072727 | 0.018182 | 0.254545 | 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 |
4ed8c0b61feb32ca367f3590a99a8b047fcbbc95 | 610 | py | Python | adv/pipple.py | XenoXilus/dl | cdfce03835cd67aac553140d6d88bc4c5c5d60ff | [
"Apache-2.0"
] | null | null | null | adv/pipple.py | XenoXilus/dl | cdfce03835cd67aac553140d6d88bc4c5c5d60ff | [
"Apache-2.0"
] | null | null | null | adv/pipple.py | XenoXilus/dl | cdfce03835cd67aac553140d6d88bc4c5c5d60ff | [
"Apache-2.0"
] | null | null | null | from core.advbase import *
def module():
return Pipple
class Pipple(Adv):
conf = {}
conf['slots.a'] = ['Proper_Maintenance', 'Brothers_in_Arms']
conf['slots.frostbite.a'] = conf['slots.a']
conf['slots.d'] = 'Gaibhne_and_Creidhne'
conf['acl'] = """
`dragon(c3-s-end),x=5
`s2, (x=... | 25.416667 | 64 | 0.568852 | 82 | 610 | 4.012195 | 0.682927 | 0.109422 | 0.06079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019481 | 0.242623 | 610 | 24 | 65 | 25.416667 | 0.692641 | 0 | 0 | 0 | 0 | 0 | 0.451718 | 0.03437 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0.05 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4edad0b70551d7b3c45fcd8cf2f69ef8cc0ea351 | 3,799 | py | Python | test/testFactorMethods.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | 1 | 2021-05-26T19:22:17.000Z | 2021-05-26T19:22:17.000Z | test/testFactorMethods.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | null | null | null | test/testFactorMethods.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | null | null | null | import unittest
import logging
import nzmath.factor.methods as mthd
try:
_log = logging.getLogger('test.testFactorMethod')
except:
try:
_log = logging.getLogger('nzmath.test.testFactorMethod')
except:
_log = logging.getLogger('testFactorMethod')
_log.setLevel(logging.INFO)
class FactorTest... | 39.164948 | 84 | 0.609108 | 476 | 3,799 | 4.796218 | 0.254202 | 0.144547 | 0.049058 | 0.018397 | 0.427946 | 0.426194 | 0.367061 | 0.346036 | 0.263688 | 0.263688 | 0 | 0.138597 | 0.223217 | 3,799 | 96 | 85 | 39.572917 | 0.635039 | 0.064491 | 0 | 0.16 | 0 | 0 | 0.034979 | 0.013822 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.133333 | false | 0 | 0.04 | 0 | 0.213333 | 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 |
14c1c00575d1e7a958fc95661cce6a81b4fbbd6f | 2,057 | py | Python | LeetCode/0151-reverse-words-in-a-string/solution.py | RyouMon/road-of-master | 02e18c2e524db9c7df4e6f8db56b3c8408a9fc6b | [
"Apache-2.0"
] | null | null | null | LeetCode/0151-reverse-words-in-a-string/solution.py | RyouMon/road-of-master | 02e18c2e524db9c7df4e6f8db56b3c8408a9fc6b | [
"Apache-2.0"
] | null | null | null | LeetCode/0151-reverse-words-in-a-string/solution.py | RyouMon/road-of-master | 02e18c2e524db9c7df4e6f8db56b3c8408a9fc6b | [
"Apache-2.0"
] | null | null | null | import collections
class Solution01:
"""
使用内置API
"""
def reverseWords(self, s: str) -> str:
return ' '.join(reversed(s.split()))
class Solution02:
"""
自己实现对应的功能
"""
def trim_space(self, s: str) -> list:
left, right = 0, len(s) - 1
# 去除首尾空格
while s[le... | 22.855556 | 62 | 0.427807 | 224 | 2,057 | 3.901786 | 0.241071 | 0.045767 | 0.036613 | 0.06865 | 0.244851 | 0.244851 | 0.073227 | 0.073227 | 0.073227 | 0.073227 | 0 | 0.022165 | 0.429752 | 2,057 | 89 | 63 | 23.11236 | 0.722933 | 0.056393 | 0 | 0.462963 | 0 | 0 | 0.005832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.018519 | 0.018519 | 0.259259 | 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 |
14c1f4a62cb93b24d14dc7d0ea4f4f2eb0f1a413 | 3,154 | py | Python | setup.py | Tiksagol/hype | 1485b80fe16a7678605afe209b2494a2a875df3f | [
"MIT"
] | 13 | 2021-07-31T12:07:06.000Z | 2022-03-24T15:00:50.000Z | setup.py | Tiksagol/hype | 1485b80fe16a7678605afe209b2494a2a875df3f | [
"MIT"
] | 2 | 2021-08-02T14:04:58.000Z | 2021-09-06T09:35:20.000Z | setup.py | Tiksagol/hype | 1485b80fe16a7678605afe209b2494a2a875df3f | [
"MIT"
] | 3 | 2021-08-07T13:23:54.000Z | 2022-01-24T13:23:08.000Z |
# Copyright (c) 2021, Serum Studio
# 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, mer... | 38.938272 | 91 | 0.679138 | 383 | 3,154 | 5.462141 | 0.506527 | 0.042065 | 0.071702 | 0.062141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010891 | 0.214014 | 3,154 | 81 | 92 | 38.938272 | 0.832997 | 0.366519 | 0 | 0 | 0 | 0 | 0.480347 | 0.026544 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.04 | 0 | 0.08 | 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 |
14c57c94bb76c89fd6223c07cfaec40385ecbc9c | 1,133 | py | Python | setup.py | travisliu/data-spec-validator | 7ee0944ca9899d565ad04ed82ca26bb402970958 | [
"MIT"
] | 23 | 2021-08-11T08:53:15.000Z | 2022-02-14T04:44:13.000Z | setup.py | travisliu/data-spec-validator | 7ee0944ca9899d565ad04ed82ca26bb402970958 | [
"MIT"
] | 2 | 2021-09-11T08:59:12.000Z | 2022-03-29T00:40:42.000Z | setup.py | travisliu/data-spec-validator | 7ee0944ca9899d565ad04ed82ca26bb402970958 | [
"MIT"
] | 1 | 2022-01-04T07:45:22.000Z | 2022-01-04T07:45:22.000Z | import os
import setuptools
CUR_DIR = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(CUR_DIR, "data_spec_validator", "__version__.py"), "r") as f:
exec(f.read(), about)
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name... | 29.815789 | 84 | 0.672551 | 130 | 1,133 | 5.615385 | 0.615385 | 0.054795 | 0.116438 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004283 | 0.17564 | 1,133 | 37 | 85 | 30.621622 | 0.777302 | 0 | 0 | 0.0625 | 0 | 0 | 0.390997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 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 |
14c7234590ee0036166bb3c285dac3557145714c | 9,204 | py | Python | prisms_influxdb.py | VDL-PRISM/home-assistant-components | 2041d2a257aede70613ddf8fe1e76bcc1877ef2e | [
"Apache-2.0"
] | null | null | null | prisms_influxdb.py | VDL-PRISM/home-assistant-components | 2041d2a257aede70613ddf8fe1e76bcc1877ef2e | [
"Apache-2.0"
] | null | null | null | prisms_influxdb.py | VDL-PRISM/home-assistant-components | 2041d2a257aede70613ddf8fe1e76bcc1877ef2e | [
"Apache-2.0"
] | null | null | null | """
A component which allows you to send data to an Influx database.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/influxdb/
"""
from datetime import timedelta
import functools
import logging
import itertools
import json
from persistent_queue import P... | 34.215613 | 94 | 0.624402 | 1,111 | 9,204 | 4.976598 | 0.229523 | 0.022789 | 0.029843 | 0.008682 | 0.197504 | 0.1465 | 0.105987 | 0.093688 | 0.093688 | 0.093688 | 0 | 0.004412 | 0.285854 | 9,204 | 268 | 95 | 34.343284 | 0.836756 | 0.092243 | 0 | 0.158163 | 0 | 0 | 0.128831 | 0.006129 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0.015306 | 0.081633 | 0.005102 | 0.183673 | 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 |
14c9c1f833fdc6508d89df41045c267b53031119 | 587 | py | Python | utils/callbacks/callbacks_weather.py | Chris1nexus/carla-data-collector | 333019622cb07dc53bbe8f1c07cfb12fbfaae60c | [
"MIT"
] | null | null | null | utils/callbacks/callbacks_weather.py | Chris1nexus/carla-data-collector | 333019622cb07dc53bbe8f1c07cfb12fbfaae60c | [
"MIT"
] | null | null | null | utils/callbacks/callbacks_weather.py | Chris1nexus/carla-data-collector | 333019622cb07dc53bbe8f1c07cfb12fbfaae60c | [
"MIT"
] | null | null | null | import numpy as np
import os
from ..helpers import save_json
def callback_weather_fn(sensor_data, custom_args):
## note that in this function, sensor data comes from the
## 'weather' custom arg
## the sensor is used just to trigger the callback at the correct timestamp
weather = custom_args['weather']... | 29.35 | 79 | 0.722317 | 89 | 587 | 4.516854 | 0.494382 | 0.079602 | 0.069652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194208 | 587 | 20 | 80 | 29.35 | 0.849894 | 0.253833 | 0 | 0 | 0 | 0 | 0.039352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
14cbaa1dbf623ab97aaa48323072de223e8374d1 | 1,393 | py | Python | exp2.py | advaithca/CG_LAB | 07c4424be2f37d21ed7af804361f0a992a8124ac | [
"MIT"
] | null | null | null | exp2.py | advaithca/CG_LAB | 07c4424be2f37d21ed7af804361f0a992a8124ac | [
"MIT"
] | null | null | null | exp2.py | advaithca/CG_LAB | 07c4424be2f37d21ed7af804361f0a992a8124ac | [
"MIT"
] | null | null | null | #drawing a line using DDA
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
import sys
import math
def init():
glClearColor(1.0,2.0,1.0,1.0)
gluOrtho2D(-100.0,100.0,-100.0,100.0)
x1 = 0
x2 = 0
y1 = 0
y2 = 0
def plotpoints():
global x1, y1, x2, y2
glClear(G... | 21.106061 | 52 | 0.557789 | 196 | 1,393 | 3.887755 | 0.397959 | 0.010499 | 0.027559 | 0.031496 | 0.215223 | 0.104987 | 0.08399 | 0 | 0 | 0 | 0 | 0.080713 | 0.315147 | 1,393 | 66 | 53 | 21.106061 | 0.718029 | 0.017229 | 0 | 0.111111 | 0 | 0 | 0.118098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.092593 | 0 | 0.148148 | 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 |
14cc76852586183e306354dd7443e72f19468e4e | 4,884 | py | Python | landlab/io/netcdf/dump.py | clebouteiller/landlab | e6f47db76ea0814c4c5a24e695bbafb74c722ff7 | [
"MIT"
] | 1 | 2022-01-07T02:36:07.000Z | 2022-01-07T02:36:07.000Z | landlab/io/netcdf/dump.py | clebouteiller/landlab | e6f47db76ea0814c4c5a24e695bbafb74c722ff7 | [
"MIT"
] | 1 | 2021-11-11T21:23:46.000Z | 2021-11-11T21:23:46.000Z | landlab/io/netcdf/dump.py | clebouteiller/landlab | e6f47db76ea0814c4c5a24e695bbafb74c722ff7 | [
"MIT"
] | 2 | 2019-08-19T08:58:10.000Z | 2022-01-07T02:36:01.000Z | import pathlib
import numpy as np
import xarray as xr
def to_netcdf(
grid, path, include="*", exclude=None, time=None, format="NETCDF4", mode="w"
):
"""Write landlab a grid to a netcdf file.
Write the data and grid information for *grid* to *path* as NetCDF.
If the *append* keyword argument in True,... | 33.682759 | 84 | 0.600328 | 650 | 4,884 | 4.383077 | 0.287692 | 0.046332 | 0.016848 | 0.022464 | 0.089856 | 0.03861 | 0 | 0 | 0 | 0 | 0 | 0.015267 | 0.275799 | 4,884 | 144 | 85 | 33.916667 | 0.790218 | 0.551392 | 0 | 0 | 0 | 0 | 0.059655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.06383 | 0 | 0.106383 | 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 |
14cccb90d3e5e893e8714d97f092815310280afd | 4,053 | py | Python | app.py | ethylomat/MathPhysTheoTS | 76144c3990d9511817cfaa007a75ec55bc8e7310 | [
"MIT"
] | 1 | 2019-04-29T22:23:22.000Z | 2019-04-29T22:23:22.000Z | app.py | ethylomat/MathPhysTheoTS | 76144c3990d9511817cfaa007a75ec55bc8e7310 | [
"MIT"
] | 2 | 2016-08-11T14:26:47.000Z | 2016-08-11T14:29:44.000Z | app.py | ethylomat/MathPhysTheoTS | 76144c3990d9511817cfaa007a75ec55bc8e7310 | [
"MIT"
] | null | null | null | from flask import request, url_for, g
from flask_api import FlaskAPI, status, exceptions
from flask_sqlalchemy import SQLAlchemy
import arrow
from flask_admin import Admin
from flask_admin.contrib.sqla import ModelView
from flask_cors import CORS
app = FlaskAPI(__name__)
cors = CORS(app, resources={r"/*": {"origins... | 29.583942 | 100 | 0.635085 | 479 | 4,053 | 5.164927 | 0.212944 | 0.07882 | 0.059418 | 0.076395 | 0.548504 | 0.498787 | 0.407842 | 0.381164 | 0.377526 | 0.377526 | 0 | 0.002588 | 0.237355 | 4,053 | 136 | 101 | 29.801471 | 0.7978 | 0.020725 | 0 | 0.346535 | 0 | 0 | 0.100605 | 0.005799 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09901 | false | 0 | 0.069307 | 0.059406 | 0.356436 | 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 |
14d5f7d082a22edb6ba40c486b8faa869556d8a1 | 2,649 | py | Python | simsiam/engine/supervised.py | tillaczel/simsiam | d4d03aae625314ac2f24155fac3ca5bfc31502c7 | [
"MIT"
] | null | null | null | simsiam/engine/supervised.py | tillaczel/simsiam | d4d03aae625314ac2f24155fac3ca5bfc31502c7 | [
"MIT"
] | null | null | null | simsiam/engine/supervised.py | tillaczel/simsiam | d4d03aae625314ac2f24155fac3ca5bfc31502c7 | [
"MIT"
] | null | null | null | from omegaconf import DictConfig
import pytorch_lightning as pl
import numpy as np
import torch
import wandb
from simsiam.models import get_resnet
from simsiam.metrics import get_accuracy
from simsiam.optimizer import get_optimizer, get_scheduler
class SupervisedEngine(pl.LightningModule):
def __init__(self, co... | 33.531646 | 123 | 0.645527 | 357 | 2,649 | 4.605042 | 0.296919 | 0.034063 | 0.012165 | 0.026764 | 0.19708 | 0.1691 | 0.1691 | 0.1691 | 0.135037 | 0.087591 | 0 | 0.003471 | 0.238581 | 2,649 | 78 | 124 | 33.961538 | 0.811601 | 0.02416 | 0 | 0.033898 | 0 | 0 | 0.024087 | 0.01049 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152542 | false | 0 | 0.135593 | 0 | 0.40678 | 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 |
14de21cf53b113f2413b7d529932853ff2790fae | 2,420 | py | Python | demo.py | allenjhuang/rsys_api | 41bc05fbeda5b5c76232a548aa16d33d05bfa8e4 | [
"Unlicense"
] | null | null | null | demo.py | allenjhuang/rsys_api | 41bc05fbeda5b5c76232a548aa16d33d05bfa8e4 | [
"Unlicense"
] | null | null | null | demo.py | allenjhuang/rsys_api | 41bc05fbeda5b5c76232a548aa16d33d05bfa8e4 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
import config
import rsys_api
import secrets
import json
import logging
import sys
def main():
logging.basicConfig(
level=logging.DEBUG,
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
datefmt="%Y/%m/%d %H:%M:%S",
filename="demo.log"
)
... | 30.632911 | 73 | 0.605372 | 304 | 2,420 | 4.615132 | 0.279605 | 0.085531 | 0.038489 | 0.055595 | 0.620813 | 0.620813 | 0.571632 | 0.565217 | 0.48325 | 0.431932 | 0 | 0.007576 | 0.290909 | 2,420 | 78 | 74 | 31.025641 | 0.810023 | 0.171488 | 0 | 0.349206 | 0 | 0 | 0.155311 | 0.071142 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015873 | false | 0.031746 | 0.095238 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
14debfd1d4eddfbeadc1ea54fc7d19ccc2df866b | 4,377 | py | Python | algorithms/common/runner.py | Fluidy/twc2020 | 0c65ab3508675a81e3edc831e45d59729dab159d | [
"MIT"
] | 1 | 2021-09-05T01:56:45.000Z | 2021-09-05T01:56:45.000Z | algorithms/common/runner.py | Fluidy/twc2020 | 0c65ab3508675a81e3edc831e45d59729dab159d | [
"MIT"
] | null | null | null | algorithms/common/runner.py | Fluidy/twc2020 | 0c65ab3508675a81e3edc831e45d59729dab159d | [
"MIT"
] | null | null | null | from utils import save_params, load_params
from importlib import import_module
from environments.env import Env
def run(algorithm_name, exp_name, env_name, agent_params, train_params, use_ray, use_gpu, is_train,
num_runs=None, test_run_id=None, test_model_id=None):
"""
Runner for training or t... | 39.432432 | 111 | 0.59767 | 527 | 4,377 | 4.679317 | 0.189753 | 0.06326 | 0.098135 | 0.087591 | 0.413625 | 0.230333 | 0.175182 | 0.150852 | 0.150852 | 0.150852 | 0 | 0.002998 | 0.314142 | 4,377 | 110 | 112 | 39.790909 | 0.818454 | 0.064656 | 0 | 0.293333 | 0 | 0 | 0.156045 | 0.062418 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0 | 0.226667 | 0 | 0.253333 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
14e118dd6032aaabd75d35019107d6e409ebb6bc | 875 | py | Python | login/middleWare/auth.py | csk17k/WebPanel | fdb0ae1b2fd12d006fbca65c779369e2d3d62928 | [
"Apache-2.0"
] | null | null | null | login/middleWare/auth.py | csk17k/WebPanel | fdb0ae1b2fd12d006fbca65c779369e2d3d62928 | [
"Apache-2.0"
] | null | null | null | login/middleWare/auth.py | csk17k/WebPanel | fdb0ae1b2fd12d006fbca65c779369e2d3d62928 | [
"Apache-2.0"
] | 1 | 2021-06-24T13:38:23.000Z | 2021-06-24T13:38:23.000Z | import re
from django.conf import settings
from django.shortcuts import redirect
from django.http import HttpResponseRedirect
EXEMPT_URLS=[]
if hasattr(settings,'LOGIN_EXEMPT_URLS'):
EXEMPT_URLS+=[re.compile(url) for url in settings.LOGIN_EXEMPT_URLS]
class AuthenticationMiddleware(object):
def __init__(self, get_... | 31.25 | 69 | 0.76 | 119 | 875 | 5.386555 | 0.512605 | 0.078003 | 0.070203 | 0.071763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133714 | 875 | 27 | 70 | 32.407407 | 0.845646 | 0.148571 | 0 | 0 | 0 | 0 | 0.080972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.45 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
14e28f82f57d04fe78acc078756343daa686d910 | 579 | py | Python | tests/domain/entities/metadata_test.py | keigohtr/autify-web-scraper | 007ed78c461b31007328b5560957278856908979 | [
"Apache-2.0"
] | null | null | null | tests/domain/entities/metadata_test.py | keigohtr/autify-web-scraper | 007ed78c461b31007328b5560957278856908979 | [
"Apache-2.0"
] | null | null | null | tests/domain/entities/metadata_test.py | keigohtr/autify-web-scraper | 007ed78c461b31007328b5560957278856908979 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime, timedelta, timezone
import freezegun
from autifycli.domain.entities.metadata import Metadata
JST = timezone(timedelta(hours=+9), "JST")
@freezegun.freeze_time("2021-08-12")
def test_metadata():
site = "https://example.com"
num_links = 0
num_images = 0
last_fetch = dat... | 25.173913 | 55 | 0.716753 | 82 | 579 | 4.902439 | 0.426829 | 0.11194 | 0.074627 | 0.094527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023013 | 0.174439 | 579 | 22 | 56 | 26.318182 | 0.817992 | 0 | 0 | 0 | 0 | 0 | 0.055268 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 1 | 0.0625 | false | 0 | 0.1875 | 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 |
14e8b8ee0a1f85b70e2cc66661f3d254f3aee85e | 3,720 | py | Python | keepthis/KeepThis.py | puhoshville/keepthis | 70447ec367b78caba03c302470f591df2dcc1e7e | [
"MIT"
] | 4 | 2020-02-18T12:29:29.000Z | 2020-11-12T10:19:37.000Z | keepthis/KeepThis.py | puhoshville/keepthis | 70447ec367b78caba03c302470f591df2dcc1e7e | [
"MIT"
] | 79 | 2019-12-26T14:00:11.000Z | 2022-03-18T02:20:45.000Z | keepthis/KeepThis.py | puhoshville/keepthis | 70447ec367b78caba03c302470f591df2dcc1e7e | [
"MIT"
] | 3 | 2019-09-25T22:47:25.000Z | 2019-10-03T15:07:36.000Z | import hashlib
import json
import numpy as np
import pandas as pd
from pymemcache import serde
from pymemcache.client import base
from keepthis.MemcachedConnection import MemcachedConnection
from keepthis.exceptions import KeepThisValueError
class KeepThis:
def __init__(
self,
memcached_... | 32.631579 | 92 | 0.608065 | 393 | 3,720 | 5.475827 | 0.272265 | 0.048327 | 0.031599 | 0.036245 | 0.201673 | 0.159851 | 0.104089 | 0.069703 | 0.069703 | 0.069703 | 0 | 0.003521 | 0.312903 | 3,720 | 113 | 93 | 32.920354 | 0.838419 | 0.049194 | 0 | 0.133333 | 0 | 0 | 0.040514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.088889 | 0.011111 | 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 |
14ec81da7a7909c65783eff82c284b4266341daf | 1,016 | py | Python | sbx_bgsvc_starterpack/sbx_cfg.py | parkssie/sbx-bgsvc-starterpack | 9f2cb80cc677b9ab73cbf085a910d30c40194449 | [
"MIT"
] | null | null | null | sbx_bgsvc_starterpack/sbx_cfg.py | parkssie/sbx-bgsvc-starterpack | 9f2cb80cc677b9ab73cbf085a910d30c40194449 | [
"MIT"
] | null | null | null | sbx_bgsvc_starterpack/sbx_cfg.py | parkssie/sbx-bgsvc-starterpack | 9f2cb80cc677b9ab73cbf085a910d30c40194449 | [
"MIT"
] | null | null | null | import json
from pathlib import Path
from sbx_bgsvc_starterpack.sbx_json_default import json_default
def load(default_cfg: dict = {}, file: str = './cfg/cfg.json', encoding: str = 'utf-8-sig') -> dict:
# 1. 설정 파일이 없는경우 생성
cfg_file1 = Path(file)
if not cfg_file1.is_file():
save(default_cfg, file, ... | 31.75 | 100 | 0.662402 | 161 | 1,016 | 4.062112 | 0.490683 | 0.076453 | 0.027523 | 0.039755 | 0.174312 | 0.094801 | 0.094801 | 0.094801 | 0.094801 | 0 | 0 | 0.012438 | 0.208661 | 1,016 | 31 | 101 | 32.774194 | 0.800995 | 0.160433 | 0 | 0.117647 | 0 | 0 | 0.059172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.352941 | 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 |
14ededd86abda0dc6be68373dfe57be0e413a26e | 10,880 | py | Python | pyi_updater/client/patcher.py | rsumner31/PyUpdater1 | d9658000472e57453267ee8fa174ae914dd8d33c | [
"BSD-2-Clause"
] | null | null | null | pyi_updater/client/patcher.py | rsumner31/PyUpdater1 | d9658000472e57453267ee8fa174ae914dd8d33c | [
"BSD-2-Clause"
] | null | null | null | pyi_updater/client/patcher.py | rsumner31/PyUpdater1 | d9658000472e57453267ee8fa174ae914dd8d33c | [
"BSD-2-Clause"
] | null | null | null | # --------------------------------------------------------------------------
# Copyright 2014 Digital Sapphire Development Team
#
# 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://... | 36.881356 | 79 | 0.583732 | 1,286 | 10,880 | 4.763608 | 0.206843 | 0.027424 | 0.020568 | 0.013059 | 0.217107 | 0.125204 | 0.089781 | 0.080966 | 0.044727 | 0.031995 | 0 | 0.002309 | 0.323254 | 10,880 | 294 | 80 | 37.006803 | 0.829689 | 0.19614 | 0 | 0.261307 | 0 | 0 | 0.118379 | 0 | 0 | 0 | 0 | 0.003401 | 0 | 1 | 0.055276 | false | 0 | 0.070352 | 0 | 0.211055 | 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 |
14eee5ee3d7b6b1d697c697b8f6b60cc9529087d | 3,090 | py | Python | tests/test_absort.py | MapleCCC/ABSort | fa020d7f2d6025603910c12fdfe775922d33afbc | [
"MIT"
] | null | null | null | tests/test_absort.py | MapleCCC/ABSort | fa020d7f2d6025603910c12fdfe775922d33afbc | [
"MIT"
] | null | null | null | tests/test_absort.py | MapleCCC/ABSort | fa020d7f2d6025603910c12fdfe775922d33afbc | [
"MIT"
] | null | null | null | from __future__ import annotations
import ast
import os
import re
import sys
from itertools import product
from pathlib import Path
import attr
from hypothesis import given, settings
from hypothesis.strategies import sampled_from
from absort.__main__ import (
CommentStrategy,
FormatOption,
NameRedefiniti... | 30 | 128 | 0.726537 | 419 | 3,090 | 5.145585 | 0.410501 | 0.025046 | 0.025046 | 0.033395 | 0.130334 | 0.130334 | 0.108071 | 0.092764 | 0.092764 | 0.048237 | 0 | 0.001166 | 0.167638 | 3,090 | 102 | 129 | 30.294118 | 0.837092 | 0.214887 | 0 | 0 | 0 | 0 | 0.08126 | 0.04063 | 0 | 0 | 0 | 0.009804 | 0.061538 | 1 | 0.030769 | false | 0.015385 | 0.215385 | 0.015385 | 0.323077 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
14ef95586e2cc40aadbf1094d06743d8533ef65a | 4,593 | py | Python | BrickBreaker/brick_breaker.py | Urosh91/BrickBreaker | 527564eb7fbab31e215a60ca8d46843a5a13791b | [
"MIT"
] | null | null | null | BrickBreaker/brick_breaker.py | Urosh91/BrickBreaker | 527564eb7fbab31e215a60ca8d46843a5a13791b | [
"MIT"
] | null | null | null | BrickBreaker/brick_breaker.py | Urosh91/BrickBreaker | 527564eb7fbab31e215a60ca8d46843a5a13791b | [
"MIT"
] | null | null | null | import pygame
from BrickBreaker import *
from BrickBreaker.Scenes import *
from BrickBreaker.Shared import *
class BrickBreaker:
def __init__(self):
self._lives = 5
self._score = 0
self._bonus = 1
self._level = Level(self)
self._level.load_random()
self._pad = P... | 28.886792 | 95 | 0.609188 | 526 | 4,593 | 4.998099 | 0.193916 | 0.034614 | 0.078737 | 0.077216 | 0.54089 | 0.527957 | 0.476987 | 0.429821 | 0.351845 | 0.351845 | 0 | 0.018683 | 0.289136 | 4,593 | 158 | 96 | 29.06962 | 0.786524 | 0 | 0 | 0.310345 | 0 | 0 | 0.004572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181034 | false | 0 | 0.034483 | 0.051724 | 0.275862 | 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 |
14f0fe0a265ae04fc3df046e751c6650ca481d2f | 2,188 | py | Python | mow/strong/phase2/predict.py | tychen5/Audio_Tagging_Challenge | 4602400433d37958d95ebf40a3c0798d17cc53c6 | [
"MIT"
] | 3 | 2019-01-22T03:14:32.000Z | 2019-08-17T02:22:06.000Z | mow/strong/phase2/predict.py | tychen5/Audio_Tagging_Challenge | 4602400433d37958d95ebf40a3c0798d17cc53c6 | [
"MIT"
] | null | null | null | mow/strong/phase2/predict.py | tychen5/Audio_Tagging_Challenge | 4602400433d37958d95ebf40a3c0798d17cc53c6 | [
"MIT"
] | null | null | null | '''
###################################
Modified from Mike's predict_acc.py
###################################
'''
import os
import sys
import random
import pickle
import numpy as np
import pandas as pd
from keras.utils import to_categorical
from keras.models import load_model
from sklearn.metrics import accuracy_s... | 25.741176 | 111 | 0.706581 | 375 | 2,188 | 3.904 | 0.272 | 0.032787 | 0.040984 | 0.051913 | 0.246585 | 0.121585 | 0.088798 | 0 | 0 | 0 | 0 | 0.038304 | 0.105119 | 2,188 | 84 | 112 | 26.047619 | 0.709397 | 0.048903 | 0 | 0 | 0 | 0 | 0.199807 | 0.144788 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.157895 | 0.122807 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
14f3c981162924e41ccbbaedac2e774e7979b26d | 2,267 | py | Python | environments/locomotion/scene_stadium.py | wx-b/unsup-3d-keypoints | 8a2e687b802d19b750aeadffa9bb6970f5956d4d | [
"MIT"
] | 28 | 2021-06-15T03:38:14.000Z | 2022-03-15T04:12:41.000Z | environments/locomotion/scene_stadium.py | wx-b/unsup-3d-keypoints | 8a2e687b802d19b750aeadffa9bb6970f5956d4d | [
"MIT"
] | 3 | 2021-12-25T17:57:47.000Z | 2022-03-24T09:52:43.000Z | environments/locomotion/scene_stadium.py | wx-b/unsup-3d-keypoints | 8a2e687b802d19b750aeadffa9bb6970f5956d4d | [
"MIT"
] | 5 | 2021-11-02T17:38:36.000Z | 2021-12-11T02:57:39.000Z | import os
import pybullet_data
from environments.locomotion.scene_abstract import Scene
import pybullet as p
class StadiumScene(Scene):
zero_at_running_strip_start_line = True # if False, center of coordinates (0,0,0) will be at the middle of the stadium
stadium_halflen = 105 * 0.25 # FOOBALL_FIELD_HALFLEN
... | 42.773585 | 123 | 0.666961 | 295 | 2,267 | 4.918644 | 0.444068 | 0.024121 | 0.028946 | 0.037216 | 0.209511 | 0.16816 | 0.114404 | 0.057891 | 0.057891 | 0 | 0 | 0.025656 | 0.243494 | 2,267 | 52 | 124 | 43.596154 | 0.820408 | 0.32554 | 0 | 0 | 0 | 0.030303 | 0.103768 | 0.01853 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.121212 | 0 | 0.484848 | 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 |
14f46540bddbc3d9b12cae1ca8aeeee6d852e367 | 522 | py | Python | src/python/providers/movement/standard_move.py | daboross/dxnr | 8f73e9d5f4473b97dcfe05804a40c9a0826e51b6 | [
"MIT"
] | null | null | null | src/python/providers/movement/standard_move.py | daboross/dxnr | 8f73e9d5f4473b97dcfe05804a40c9a0826e51b6 | [
"MIT"
] | null | null | null | src/python/providers/movement/standard_move.py | daboross/dxnr | 8f73e9d5f4473b97dcfe05804a40c9a0826e51b6 | [
"MIT"
] | null | null | null | from defs import *
from utilities import warnings
def move_to(creep: Creep, target: RoomPosition) -> int:
result = creep.moveTo(target, {
'ignoreCreeps': True,
})
if result == ERR_NO_PATH:
result = creep.moveTo(target, {
'ignoreCreeps': False,
})
if result != OK an... | 27.473684 | 89 | 0.603448 | 57 | 522 | 5.421053 | 0.561404 | 0.106796 | 0.110032 | 0.148867 | 0.226537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272031 | 522 | 18 | 90 | 29 | 0.813158 | 0 | 0 | 0.285714 | 0 | 0 | 0.132184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
14f8101f9071baa5ade2230825bde845717654bf | 4,817 | py | Python | pyshop/helpers/timeseries.py | sintef-energy/pyshop | 2991372f023e75c69ab83ece54a47fa9c3b73d60 | [
"MIT"
] | 1 | 2022-03-08T07:20:16.000Z | 2022-03-08T07:20:16.000Z | pyshop/helpers/timeseries.py | sintef-energy/pyshop | 2991372f023e75c69ab83ece54a47fa9c3b73d60 | [
"MIT"
] | 2 | 2022-02-09T13:53:16.000Z | 2022-03-16T14:36:21.000Z | pyshop/helpers/timeseries.py | sintef-energy/pyshop | 2991372f023e75c69ab83ece54a47fa9c3b73d60 | [
"MIT"
] | null | null | null | from typing import Dict, Sequence, Union
from .typing_annotations import DataFrameOrSeries
import pandas as pd
import numpy as np
def create_constant_time_series(value:Union[int,float], start:pd.Timestamp) -> pd.Series:
return pd.Series([value], index=[start])
def remove_consecutive_duplicates(df:DataFrameOrSeri... | 44.192661 | 166 | 0.686734 | 651 | 4,817 | 4.940092 | 0.299539 | 0.041978 | 0.028296 | 0.022388 | 0.139614 | 0.107898 | 0.043532 | 0.029851 | 0.029851 | 0.029851 | 0 | 0.005606 | 0.222338 | 4,817 | 108 | 167 | 44.601852 | 0.85291 | 0.277143 | 0 | 0.104478 | 0 | 0 | 0.01196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059701 | false | 0 | 0.059701 | 0.014925 | 0.179104 | 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 |
14fbebb9df421f915a2a0442fc7bcdd045fbbef0 | 2,787 | py | Python | openweave/tlv/schema/tests/test_VENDOR.py | robszewczyk/openweave-tlv-schema | c0acbccce4fcaf213a09261f79d6a141ae94f7e8 | [
"Apache-2.0"
] | 1 | 2020-05-19T22:52:27.000Z | 2020-05-19T22:52:27.000Z | openweave/tlv/schema/tests/test_VENDOR.py | robszewczyk/openweave-tlv-schema | c0acbccce4fcaf213a09261f79d6a141ae94f7e8 | [
"Apache-2.0"
] | null | null | null | openweave/tlv/schema/tests/test_VENDOR.py | robszewczyk/openweave-tlv-schema | c0acbccce4fcaf213a09261f79d6a141ae94f7e8 | [
"Apache-2.0"
] | 1 | 2021-02-15T16:14:17.000Z | 2021-02-15T16:14:17.000Z | #!/usr/bin/env python3
#
# Copyright (c) 2020 Google LLC.
# 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.... | 34.8375 | 76 | 0.614281 | 315 | 2,787 | 5.384127 | 0.342857 | 0.100236 | 0.051887 | 0.080189 | 0.548349 | 0.53066 | 0.465802 | 0.40684 | 0.40684 | 0.40684 | 0 | 0.02887 | 0.279153 | 2,787 | 79 | 77 | 35.278481 | 0.815331 | 0.239684 | 0 | 0.533333 | 0 | 0 | 0.348904 | 0 | 0 | 0 | 0.00286 | 0 | 0.288889 | 1 | 0.088889 | false | 0 | 0.044444 | 0 | 0.155556 | 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 |
14fc3caa752fb624866d5cfe60083c14dfb17ed9 | 336 | py | Python | app/services/events.py | fufuok/FF.PyAdmin | 031fcafe70ecb78488876d0c61e30ca4fb4290af | [
"MIT"
] | 56 | 2019-11-26T15:42:29.000Z | 2022-03-10T12:28:07.000Z | app/services/events.py | fufuok/FF.PyAdmin | 031fcafe70ecb78488876d0c61e30ca4fb4290af | [
"MIT"
] | 4 | 2020-03-20T01:51:47.000Z | 2022-03-30T22:10:56.000Z | app/services/events.py | fufuok/FF.PyAdmin | 031fcafe70ecb78488876d0c61e30ca4fb4290af | [
"MIT"
] | 15 | 2019-11-26T15:42:33.000Z | 2022-03-09T05:41:44.000Z | # -*- coding:utf-8 -*-
"""
events.py
~~~~~~~~
自定义信号, 事件
:author: Fufu, 2019/12/20
"""
from blinker import signal
# 用户登录成功
event_user_logined = signal('event_user_logined')
# 系统管理操作(用户授权/权限组管理等)
event_sys_admin = signal('event_sys_admin')
# app 上下文环境示例
event_async_with_app_demo = signal('event_async_... | 17.684211 | 63 | 0.690476 | 47 | 336 | 4.595745 | 0.638298 | 0.152778 | 0.148148 | 0.157407 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031802 | 0.157738 | 336 | 18 | 64 | 18.666667 | 0.731449 | 0.345238 | 0 | 0 | 0 | 0 | 0.300518 | 0.129534 | 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 |
14fe677b2376deed69fc96644a350773e0c985ca | 1,635 | py | Python | ai_finger_counting.py | dnovai/advancedCVProject | de3e75247c7b7ae617a578800c51c42fadbdc844 | [
"MIT"
] | 1 | 2022-02-25T02:36:02.000Z | 2022-02-25T02:36:02.000Z | ai_finger_counting.py | dnovai/advancedCVProject | de3e75247c7b7ae617a578800c51c42fadbdc844 | [
"MIT"
] | null | null | null | ai_finger_counting.py | dnovai/advancedCVProject | de3e75247c7b7ae617a578800c51c42fadbdc844 | [
"MIT"
] | null | null | null | import cv2
import os
import time
import advancedcv.hand_tracking as htm
import numpy as np
import itertools
patterns = np.array(list(itertools.product([0, 1], repeat=5)))
p_time = 0
cap = cv2.VideoCapture(0)
# w_cam, h_cam = 648, 480
# cap.set(3, w_cam)
# cap.set(4, h_cam)
folder_path = "finger_images"
my_list = os... | 24.044118 | 100 | 0.601223 | 260 | 1,635 | 3.6 | 0.373077 | 0.038462 | 0.038462 | 0.051282 | 0.215812 | 0.132479 | 0.068376 | 0 | 0 | 0 | 0 | 0.050654 | 0.251376 | 1,635 | 68 | 101 | 24.044118 | 0.714052 | 0.048318 | 0 | 0.130435 | 0 | 0 | 0.055448 | 0.029658 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
14ff741d0e6a57229801a6e6be5e98e3344172dd | 3,085 | py | Python | convert.py | AndreiBaias/PAS | 8905f86db15806647ab7879fd32c9057a9b93868 | [
"MIT"
] | null | null | null | convert.py | AndreiBaias/PAS | 8905f86db15806647ab7879fd32c9057a9b93868 | [
"MIT"
] | 3 | 2022-03-30T15:43:12.000Z | 2022-03-30T15:43:41.000Z | convert.py | AndreiBaias/PAS | 8905f86db15806647ab7879fd32c9057a9b93868 | [
"MIT"
] | null | null | null |
import numpy as np
import collections, numpy
import glob
from PIL import Image
from matplotlib.pyplot import cm
nrImages = 1
imageSize = 449
finalImageSize = 449
ImageNumber = 0
sourceFolder = 'images'
# sourceFolder = "testInput"
destinationFolder = 'final_text_files_2'
# destinationFolder = "testOutpu... | 24.68 | 83 | 0.491086 | 373 | 3,085 | 4.048257 | 0.211796 | 0.019868 | 0.015894 | 0.037086 | 0.493377 | 0.417881 | 0.417881 | 0.377483 | 0.349669 | 0.349669 | 0 | 0.03443 | 0.359806 | 3,085 | 125 | 84 | 24.68 | 0.730127 | 0.23436 | 0 | 0.466667 | 0 | 0 | 0.0271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.055556 | 0 | 0.122222 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09003d15be83a3b390c12acd09219a14eb6cb09a | 15,291 | py | Python | kempnn/trainer.py | ttyhasebe/KEMPNN | d52ec0a82d758431120c0831738b104a535f2264 | [
"BSD-3-Clause"
] | 4 | 2022-01-14T08:43:52.000Z | 2022-03-02T11:06:03.000Z | kempnn/trainer.py | ttyhasebe/KEMPNN | d52ec0a82d758431120c0831738b104a535f2264 | [
"BSD-3-Clause"
] | null | null | null | kempnn/trainer.py | ttyhasebe/KEMPNN | d52ec0a82d758431120c0831738b104a535f2264 | [
"BSD-3-Clause"
] | null | null | null | #
# Copyright 2021 by Tatsuya Hasebe, Hitachi, Ltd.
# All rights reserved.
#
# This file is part of the KEMPNN package,
# and is released under the "BSD 3-Clause License". Please see the LICENSE
# file that should have been included as part of this package.
#
import datetime
import json
import os
import pickle
import ... | 33.459519 | 80 | 0.511804 | 1,737 | 15,291 | 4.219344 | 0.153138 | 0.020467 | 0.018556 | 0.011461 | 0.338109 | 0.27207 | 0.233183 | 0.203848 | 0.152408 | 0.145586 | 0 | 0.00828 | 0.391799 | 15,291 | 456 | 81 | 33.532895 | 0.779785 | 0.092538 | 0 | 0.221893 | 0 | 0 | 0.100355 | 0.021649 | 0 | 0 | 0 | 0 | 0.008876 | 1 | 0.02071 | false | 0.002959 | 0.029586 | 0.002959 | 0.076923 | 0.02071 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0903fb75c589ec651b3db5a68d90addf520bf4a1 | 696 | py | Python | app.py | KaceyHirth/Library-DBMS-System | 40b425ed5c7b46627b7c48724b2d20e7a64cf025 | [
"MIT"
] | null | null | null | app.py | KaceyHirth/Library-DBMS-System | 40b425ed5c7b46627b7c48724b2d20e7a64cf025 | [
"MIT"
] | null | null | null | app.py | KaceyHirth/Library-DBMS-System | 40b425ed5c7b46627b7c48724b2d20e7a64cf025 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bootstrap import Bootstrap
from flask_login import LoginManager, UserMixin, login_user, login_required, logout_user, current_user
import os
basePath = os.path.abspath(os.path.dirname(__file__))
template_dir = os.path.join(basePath, 'templates')... | 27.84 | 102 | 0.806034 | 93 | 696 | 5.698925 | 0.462366 | 0.067925 | 0.045283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093391 | 696 | 24 | 103 | 29 | 0.839937 | 0 | 0 | 0 | 0 | 0 | 0.165706 | 0.131124 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.294118 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09047cdff4106518ddb7312a4ad2e4fbacd7ac5f | 6,167 | py | Python | xdl/blueprints/chasm2.py | mcrav/xdl | c120a1cf50a9b668a79b118700930eb3d60a9298 | [
"MIT"
] | null | null | null | xdl/blueprints/chasm2.py | mcrav/xdl | c120a1cf50a9b668a79b118700930eb3d60a9298 | [
"MIT"
] | null | null | null | xdl/blueprints/chasm2.py | mcrav/xdl | c120a1cf50a9b668a79b118700930eb3d60a9298 | [
"MIT"
] | null | null | null | from ..constants import JSON_PROP_TYPE
from .base_blueprint import BaseProcedureBlueprint
from ..steps import placeholders
from ..reagents import Reagent
DEFAULT_VESSEL: str = 'reactor'
DEFAULT_SEPARATION_VESSEL: str = 'separator'
DEFAULT_EVAPORATION_VESSEL: str = 'rotavap'
class Chasm2(BaseProcedureBlueprint):
... | 31.304569 | 78 | 0.592995 | 593 | 6,167 | 5.939292 | 0.175379 | 0.077513 | 0.059341 | 0.043725 | 0.22402 | 0.105338 | 0.0636 | 0.0636 | 0.037479 | 0.037479 | 0 | 0.024441 | 0.303389 | 6,167 | 196 | 79 | 31.464286 | 0.795391 | 0 | 0 | 0.273256 | 0 | 0 | 0.089995 | 0.00373 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05814 | false | 0 | 0.023256 | 0.005814 | 0.162791 | 0.011628 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09050f807c744801e59522d4a44d059ae276259e | 570 | py | Python | pandaharvester/harvestercore/plugin_base.py | tsulaiav/harvester | ca3f78348019dd616738f2da7d50e81700a8e6b9 | [
"Apache-2.0"
] | 11 | 2017-06-01T10:16:58.000Z | 2019-11-22T08:41:36.000Z | pandaharvester/harvestercore/plugin_base.py | tsulaiav/harvester | ca3f78348019dd616738f2da7d50e81700a8e6b9 | [
"Apache-2.0"
] | 34 | 2016-10-25T19:15:24.000Z | 2021-03-05T12:59:04.000Z | pandaharvester/harvestercore/plugin_base.py | tsulaiav/harvester | ca3f78348019dd616738f2da7d50e81700a8e6b9 | [
"Apache-2.0"
] | 17 | 2016-10-24T13:29:45.000Z | 2021-03-23T17:35:27.000Z | from future.utils import iteritems
from pandaharvester.harvestercore import core_utils
class PluginBase(object):
def __init__(self, **kwarg):
for tmpKey, tmpVal in iteritems(kwarg):
setattr(self, tmpKey, tmpVal)
# make logger
def make_logger(self, base_log, token=None, method_name=Non... | 33.529412 | 96 | 0.685965 | 72 | 570 | 5.222222 | 0.527778 | 0.079787 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22807 | 570 | 16 | 97 | 35.625 | 0.854545 | 0.019298 | 0 | 0 | 0 | 0 | 0.019749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0905ad16307a5af70bde741ea4817b4a93ef0e8a | 1,762 | py | Python | preprocessing/MEG/filtering.py | athiede13/neural_sources | 3435f26a4b99b7f705c7ed6b43ab9c741fdd1502 | [
"MIT"
] | null | null | null | preprocessing/MEG/filtering.py | athiede13/neural_sources | 3435f26a4b99b7f705c7ed6b43ab9c741fdd1502 | [
"MIT"
] | null | null | null | preprocessing/MEG/filtering.py | athiede13/neural_sources | 3435f26a4b99b7f705c7ed6b43ab9c741fdd1502 | [
"MIT"
] | null | null | null | """
Filtering of MEG data
Created on 13.9.2017
@author: Anja Thiede <anja.thiede@helsinki.fi>
"""
import os
from os import walk
import datetime
import numpy as np
import mne
now = datetime.datetime.now()
def processedcount(file_list):
n = 0
for item in file_list:
if item[-8:-4] == 'filt':
... | 27.53125 | 88 | 0.611805 | 249 | 1,762 | 4.184739 | 0.497992 | 0.03071 | 0.024952 | 0.023033 | 0.028791 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020898 | 0.266742 | 1,762 | 63 | 89 | 27.968254 | 0.785604 | 0.238365 | 0 | 0 | 0 | 0 | 0.086298 | 0.031794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.125 | 0 | 0.175 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09098bec23281af47e835daa26b81dccca6d2e2c | 22,972 | py | Python | src/pds_doi_service/core/db/doi_database.py | NASA-PDS/pds-doi-service | b994381a5757700229865e8fe905553559684e0d | [
"Apache-2.0"
] | 2 | 2020-11-03T19:29:11.000Z | 2021-09-26T01:42:41.000Z | src/pds_doi_service/core/db/doi_database.py | NASA-PDS/pds-doi-service | b994381a5757700229865e8fe905553559684e0d | [
"Apache-2.0"
] | 222 | 2020-05-07T21:05:23.000Z | 2021-12-16T22:14:54.000Z | src/pds_doi_service/core/db/doi_database.py | NASA-PDS/pds-doi-service | b994381a5757700229865e8fe905553559684e0d | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2020–21, by the California Institute of Technology. ALL RIGHTS
# RESERVED. United States Government Sponsorship acknowledged. Any commercial
# use must be negotiated with the Office of Technology Transfer at the
# California Institute of Technology.
#
"""
===============
doi_database.py
=============... | 36.176378 | 119 | 0.632596 | 2,923 | 22,972 | 4.759152 | 0.138898 | 0.056933 | 0.01409 | 0.02135 | 0.400906 | 0.316081 | 0.276831 | 0.23715 | 0.188412 | 0.157717 | 0 | 0.00261 | 0.282779 | 22,972 | 634 | 120 | 36.233438 | 0.841648 | 0.292399 | 0 | 0.282895 | 0 | 0 | 0.147412 | 0.009331 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092105 | false | 0 | 0.032895 | 0.026316 | 0.203947 | 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 |
0909f5e66b19795a40b888634a2cf23b87f0cd63 | 786 | py | Python | amnesia/modules/search/views/tag.py | silenius/amnesia | ba5e3ac79a89da599c22206ad1fd17541855f74c | [
"BSD-2-Clause"
] | 4 | 2015-05-08T10:57:56.000Z | 2021-05-17T04:32:11.000Z | amnesia/modules/search/views/tag.py | silenius/amnesia | ba5e3ac79a89da599c22206ad1fd17541855f74c | [
"BSD-2-Clause"
] | 6 | 2019-12-26T16:43:41.000Z | 2022-02-28T11:07:54.000Z | amnesia/modules/search/views/tag.py | silenius/amnesia | ba5e3ac79a89da599c22206ad1fd17541855f74c | [
"BSD-2-Clause"
] | 1 | 2019-09-23T14:08:11.000Z | 2019-09-23T14:08:11.000Z | # -*- coding: utf-8 -*-
# pylint: disable=E1101
from pyramid.view import view_config
from pyramid.httpexceptions import HTTPNotFound
from amnesia.modules.tag import Tag
from amnesia.modules.search import SearchResource
def includeme(config):
''' Pyramid includeme func'''
config.scan(__name__)
@view_confi... | 23.117647 | 70 | 0.683206 | 99 | 786 | 5.252525 | 0.444444 | 0.046154 | 0.069231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012618 | 0.193384 | 786 | 33 | 71 | 23.818182 | 0.807571 | 0.085242 | 0 | 0 | 0 | 0 | 0.076056 | 0.043662 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.210526 | 0 | 0.368421 | 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 |
090a042fdb172133fc8a7549c6014b2194047447 | 12,410 | py | Python | compute_mainmodes.py | mehrdad-bm/mobility_shift | 242f12b60dc8e07e3da13b5f1199456fd0fd697e | [
"MIT"
] | 1 | 2020-06-24T12:49:49.000Z | 2020-06-24T12:49:49.000Z | compute_mainmodes.py | mehrdad-bm/mobility_shift | 242f12b60dc8e07e3da13b5f1199456fd0fd697e | [
"MIT"
] | null | null | null | compute_mainmodes.py | mehrdad-bm/mobility_shift | 242f12b60dc8e07e3da13b5f1199456fd0fd697e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 27 00:17:55 2020
@author: mehrdad
"""
import json
import numpy as np
import pandas as pd
import time
import math
#import blist
import tslib.mining
import tslib.common
import tslib.trip_detection
import tslib.trip
STORE_RESULTS = False
#output_fol... | 40.032258 | 135 | 0.652458 | 1,641 | 12,410 | 4.606947 | 0.175503 | 0.053704 | 0.046032 | 0.035185 | 0.41918 | 0.363757 | 0.294577 | 0.246693 | 0.197355 | 0.187037 | 0 | 0.011665 | 0.21249 | 12,410 | 309 | 136 | 40.161812 | 0.761895 | 0.319581 | 0 | 0.167702 | 0 | 0 | 0.100156 | 0.022616 | 0 | 0 | 0 | 0.003236 | 0 | 1 | 0.068323 | false | 0.006211 | 0.055901 | 0 | 0.149068 | 0.062112 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
090a8d868906c9c97d5b54db58497792e9cd606d | 24,054 | py | Python | envs/env.py | CMU-Light-Curtains/SafetyEnvelopes | e2b32f99437ea36c8b22f97470c5a7f406d3ec78 | [
"BSD-3-Clause"
] | null | null | null | envs/env.py | CMU-Light-Curtains/SafetyEnvelopes | e2b32f99437ea36c8b22f97470c5a7f406d3ec78 | [
"BSD-3-Clause"
] | null | null | null | envs/env.py | CMU-Light-Curtains/SafetyEnvelopes | e2b32f99437ea36c8b22f97470c5a7f406d3ec78 | [
"BSD-3-Clause"
] | null | null | null | from abc import ABC, abstractmethod
import gym
import matplotlib.pyplot as plt
import numpy as np
from pathlib import Path
import time
from setcpp import SmoothnessDPL1Cost, SmoothnessDPPairGridCost, SmoothnessGreedy
import tqdm
from typing import Optional, Tuple, NoReturn
from data.synthia import Frame, append_xyz_to... | 46.436293 | 130 | 0.547435 | 2,692 | 24,054 | 4.706538 | 0.180906 | 0.03899 | 0.016575 | 0.009945 | 0.23236 | 0.149961 | 0.115943 | 0.080189 | 0.059669 | 0.056196 | 0 | 0.009218 | 0.278374 | 24,054 | 517 | 131 | 46.526112 | 0.720705 | 0.326058 | 0 | 0.15748 | 0 | 0 | 0.034915 | 0 | 0 | 0 | 0 | 0 | 0.011811 | 1 | 0.102362 | false | 0.003937 | 0.055118 | 0.023622 | 0.216535 | 0.007874 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
090ac8191b92a41692dec58a6457de7f58261791 | 17,884 | py | Python | pw_console/py/pw_console/plugins/clock_pane.py | octml/pigweed | e273d46024ef7b5a7c7ec584e4aaada41c541fc4 | [
"Apache-2.0"
] | 86 | 2021-03-09T23:49:40.000Z | 2022-03-30T08:14:51.000Z | pw_console/py/pw_console/plugins/clock_pane.py | octml/pigweed | e273d46024ef7b5a7c7ec584e4aaada41c541fc4 | [
"Apache-2.0"
] | 4 | 2021-07-27T20:32:03.000Z | 2022-03-08T10:39:07.000Z | pw_console/py/pw_console/plugins/clock_pane.py | octml/pigweed | e273d46024ef7b5a7c7ec584e4aaada41c541fc4 | [
"Apache-2.0"
] | 22 | 2021-03-11T15:15:47.000Z | 2022-02-09T06:16:36.000Z | # Copyright 2021 The Pigweed Authors
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 41.207373 | 132 | 0.597238 | 2,021 | 17,884 | 5.158832 | 0.213756 | 0.05563 | 0.036831 | 0.014579 | 0.181278 | 0.13217 | 0.118262 | 0.075005 | 0.05352 | 0.05352 | 0 | 0.001452 | 0.306755 | 17,884 | 433 | 133 | 41.30254 | 0.83949 | 0.364684 | 0 | 0.364706 | 0 | 0 | 0.209482 | 0.080991 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043137 | false | 0 | 0.035294 | 0 | 0.117647 | 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 |
090c9c265a0fb2fb0dad7a18bd49965eaa38157a | 3,816 | py | Python | mono/model/mono_autoencoder/layers.py | Jenaer/FeatDepth | 64128b03873b27ffa5e99a5cb1712dd8aa15cb0d | [
"MIT"
] | 179 | 2020-08-21T08:57:22.000Z | 2022-03-26T21:55:20.000Z | mono/model/mono_autoencoder/layers.py | sconlyshootery/feature_metric_depth | 550420b3fb51a027549716b74c6fbce41651d3a5 | [
"MIT"
] | 84 | 2020-08-30T14:25:19.000Z | 2022-03-08T12:29:37.000Z | mono/model/mono_autoencoder/layers.py | sconlyshootery/feature_metric_depth | 550420b3fb51a027549716b74c6fbce41651d3a5 | [
"MIT"
] | 31 | 2020-10-01T12:12:19.000Z | 2022-03-06T08:04:18.000Z | from __future__ import absolute_import, division, print_function
import torch
import torch.nn as nn
import torch.nn.functional as F
class SSIM(nn.Module):
def __init__(self):
super(SSIM, self).__init__()
self.mu_x_pool = nn.AvgPool2d(3, 1)
self.mu_y_pool = nn.AvgPool2d(3, 1)
s... | 33.473684 | 128 | 0.586478 | 577 | 3,816 | 3.637782 | 0.183709 | 0.034302 | 0.026679 | 0.042878 | 0.400667 | 0.335398 | 0.315388 | 0.292997 | 0.243449 | 0.16627 | 0 | 0.037024 | 0.270964 | 3,816 | 114 | 129 | 33.473684 | 0.717469 | 0 | 0 | 0.221053 | 0 | 0 | 0.00917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147368 | false | 0 | 0.042105 | 0.010526 | 0.336842 | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
090caec635d034601a9a45a30d2d0ee7c652da16 | 2,413 | py | Python | pdnn/helpers/the_graveyard.py | alamorre/pdnn-experiment | b07b509e8610c324b11aa81204cfca06b8437f16 | [
"BSD-2-Clause-FreeBSD"
] | 17 | 2017-06-14T16:36:12.000Z | 2021-01-31T18:16:10.000Z | pdnn/helpers/the_graveyard.py | alamorre/pdnn-experiment | b07b509e8610c324b11aa81204cfca06b8437f16 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2018-02-26T16:04:48.000Z | 2018-03-01T06:42:57.000Z | pdnn/helpers/the_graveyard.py | alamorre/pdnn-experiment | b07b509e8610c324b11aa81204cfca06b8437f16 | [
"BSD-2-Clause-FreeBSD"
] | 5 | 2017-09-12T13:20:02.000Z | 2019-02-06T08:41:58.000Z | import numpy as np
from plato.core import as_floatx, create_shared_variable, symbolic, add_update
from theano import tensor as tt
class FutureWeightGradCalculator(object):
def __init__(self, kp, kd, shapes):
"""
:param kp:
:param kd:
:param shapes: A tuple that specifies (minibatc... | 29.426829 | 86 | 0.61293 | 427 | 2,413 | 3.199063 | 0.203747 | 0.061493 | 0.102489 | 0.096633 | 0.317716 | 0.259151 | 0.225476 | 0.225476 | 0.17716 | 0 | 0 | 0.006098 | 0.252383 | 2,413 | 82 | 87 | 29.426829 | 0.751109 | 0.123498 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.068182 | 0 | 0.204545 | 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 |
090cd84d945d6fe0adc3e503a0af7a8286c3e451 | 5,603 | py | Python | shop/views/cart_views.py | cuescience/cuescience-shop | bf5ea159f9277d1d6ab7acfcad3f2517723a225c | [
"MIT"
] | null | null | null | shop/views/cart_views.py | cuescience/cuescience-shop | bf5ea159f9277d1d6ab7acfcad3f2517723a225c | [
"MIT"
] | null | null | null | shop/views/cart_views.py | cuescience/cuescience-shop | bf5ea159f9277d1d6ab7acfcad3f2517723a225c | [
"MIT"
] | null | null | null | import logging
from cart import Cart
from django.conf import settings
from django.contrib.sites.models import get_current_site
from django.utils import translation
from mailtemplates.models import EMailTemplate
from payment.models import PrePayment
from payment.services.paypal import paypal
from shop.checkout_wizard im... | 35.916667 | 116 | 0.641442 | 621 | 5,603 | 5.624799 | 0.238325 | 0.022903 | 0.014887 | 0.014601 | 0.338391 | 0.308045 | 0.279702 | 0.223876 | 0.223876 | 0.223876 | 0 | 0.006023 | 0.259147 | 5,603 | 155 | 117 | 36.148387 | 0.835461 | 0.016955 | 0 | 0.3 | 0 | 0 | 0.091553 | 0.044323 | 0 | 0 | 0 | 0.006452 | 0 | 1 | 0.05 | false | 0 | 0.125 | 0.008333 | 0.291667 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
090d1859bb4cd8c066260b4c5385d95d8db098d8 | 498 | py | Python | solutions/python3/984.py | sm2774us/amazon_interview_prep_2021 | f580080e4a6b712b0b295bb429bf676eb15668de | [
"MIT"
] | 42 | 2020-08-02T07:03:49.000Z | 2022-03-26T07:50:15.000Z | solutions/python3/984.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | null | null | null | solutions/python3/984.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | 40 | 2020-02-08T02:50:24.000Z | 2022-03-26T15:38:10.000Z | class Solution:
def strWithout3a3b(self, A: int, B: int) -> str:
if not A and not B: return ''
if A >= B:
a = 2 if A >= 2 else 1
b = 2 if A - a - B < 1 and B >= 2 else 1 if B else 0
return a * 'a' + b * 'b' + self.strWithout3a3b(A - a, B - b)
else:
... | 41.5 | 72 | 0.421687 | 89 | 498 | 2.359551 | 0.191011 | 0.047619 | 0.114286 | 0.057143 | 0.209524 | 0.209524 | 0 | 0 | 0 | 0 | 0 | 0.080586 | 0.451807 | 498 | 12 | 73 | 41.5 | 0.688645 | 0 | 0 | 0 | 0 | 0 | 0.008016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
090e30708a609fe03c64ef91c96c83167bd3b51a | 4,178 | py | Python | niftypad/api/__init__.py | AMYPAD/NiftyPAD | 80bc005ca409f503a8df3a13a071d2f3f413553f | [
"Apache-2.0"
] | null | null | null | niftypad/api/__init__.py | AMYPAD/NiftyPAD | 80bc005ca409f503a8df3a13a071d2f3f413553f | [
"Apache-2.0"
] | 2 | 2021-09-06T21:38:43.000Z | 2021-10-05T11:07:08.000Z | niftypad/api/__init__.py | AMYPAD/NiftyPAD | 80bc005ca409f503a8df3a13a071d2f3f413553f | [
"Apache-2.0"
] | null | null | null | """Clean API"""
import logging
from pathlib import Path
from . import readers
log = logging.getLogger(__name__)
def kinetic_model(src, dst=None, params=None, model='srtmb_basis', input_interp_method='linear',
w=None, r1=1, k2p=0.000250, beta_lim=None, n_beta=40, linear_phase_start=500,
... | 43.978947 | 99 | 0.66539 | 629 | 4,178 | 4.195548 | 0.284579 | 0.041682 | 0.025767 | 0.022736 | 0.200834 | 0.158393 | 0.158393 | 0.13111 | 0.089428 | 0.089428 | 0 | 0.020782 | 0.228339 | 4,178 | 94 | 100 | 44.446809 | 0.797767 | 0.4045 | 0 | 0.04 | 0 | 0.02 | 0.104044 | 0.032435 | 0 | 0 | 0 | 0 | 0.02 | 1 | 0.02 | false | 0 | 0.18 | 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 |
09112b983864e08dcf3260b85da5bc6f69581ccc | 1,360 | py | Python | cli/src/accretion_cli/_commands/raw/__init__.py | mattsb42/accretion | 7cce5f4ed6d290bd9314b116be91417ded6b0f64 | [
"Apache-2.0"
] | 1 | 2019-10-19T11:18:17.000Z | 2019-10-19T11:18:17.000Z | cli/src/accretion_cli/_commands/raw/__init__.py | mattsb42/accretion | 7cce5f4ed6d290bd9314b116be91417ded6b0f64 | [
"Apache-2.0"
] | 13 | 2019-06-10T07:03:26.000Z | 2019-11-06T01:09:38.000Z | cli/src/accretion_cli/_commands/raw/__init__.py | mattsb42/accretion | 7cce5f4ed6d290bd9314b116be91417ded6b0f64 | [
"Apache-2.0"
] | null | null | null | """Raw CLI commands."""
from typing import IO
import click
from ..._templates import artifact_builder, replication_listener, source_region_core
from ..._util.workers_zip import build_and_write_workers
from .add import add_to_deployment
from .init import init_project
_TEMPLATES = {"builder": artifact_builder, "listen... | 27.2 | 111 | 0.733088 | 191 | 1,360 | 5.015707 | 0.319372 | 0.037578 | 0.05428 | 0.075157 | 0.236952 | 0.174322 | 0.135699 | 0 | 0 | 0 | 0 | 0.00172 | 0.144853 | 1,360 | 49 | 112 | 27.755102 | 0.822012 | 0.264706 | 0 | 0.095238 | 0 | 0 | 0.066028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 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 |
0914e1a28a157c416a8a2c605a43e0263d7aefd4 | 701 | py | Python | distil/utils/config_helper.py | ansunsujoe/distil | cf6cae2b88ef129d09c159aae0569978190e9f98 | [
"MIT"
] | 83 | 2021-01-06T06:50:30.000Z | 2022-03-31T05:16:32.000Z | distil/utils/config_helper.py | ansunsujoe/distil | cf6cae2b88ef129d09c159aae0569978190e9f98 | [
"MIT"
] | 30 | 2021-02-27T06:09:47.000Z | 2021-12-23T11:03:36.000Z | distil/utils/config_helper.py | ansunsujoe/distil | cf6cae2b88ef129d09c159aae0569978190e9f98 | [
"MIT"
] | 13 | 2021-03-05T18:26:58.000Z | 2022-03-12T01:53:17.000Z | import json
import os
def read_config_file(filename):
"""
Loads and returns a configuration from the supplied filename / path.
Parameters
----------
filename: string
The name/path of the config file to load.
Returns
----------
config: object
The resulting configura... | 24.172414 | 72 | 0.600571 | 86 | 701 | 4.872093 | 0.569767 | 0.071599 | 0.066826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003953 | 0.278174 | 701 | 29 | 73 | 24.172414 | 0.824111 | 0.350927 | 0 | 0 | 0 | 0 | 0.165842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0915536721dec4fcf77cccd8a1e6caa20567b01f | 1,944 | py | Python | Easy/26.py | Hellofafar/Leetcode | 7a459e9742958e63be8886874904e5ab2489411a | [
"CNRI-Python"
] | 6 | 2017-09-25T18:05:50.000Z | 2019-03-27T00:23:15.000Z | Easy/26.py | Hellofafar/Leetcode | 7a459e9742958e63be8886874904e5ab2489411a | [
"CNRI-Python"
] | 1 | 2017-10-29T12:04:41.000Z | 2018-08-16T18:00:37.000Z | Easy/26.py | Hellofafar/Leetcode | 7a459e9742958e63be8886874904e5ab2489411a | [
"CNRI-Python"
] | null | null | null | # ------------------------------
# 26. Remove Duplicates from Sorted Array
#
# Description:
# Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
# Do not allocate extra space for another array, you must do this in place with constant memory.
#
# For... | 34.714286 | 161 | 0.587963 | 270 | 1,944 | 4.192593 | 0.492593 | 0.029152 | 0.031802 | 0.045936 | 0.132509 | 0.077739 | 0.077739 | 0.077739 | 0.077739 | 0.077739 | 0 | 0.023138 | 0.28858 | 1,944 | 56 | 162 | 34.714286 | 0.795372 | 0.640432 | 0 | 0.1 | 0 | 0 | 0.012422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.2 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0919fdf2ce825bd818ddbc07ef5fd14d15e3d623 | 6,373 | py | Python | ncpsort/cluster_synthetic_data/inference_plot_synthetic.py | yueqiw/ncp-sort | 045361d93bc9d8ef2596cdda7c485b6ffd77dd81 | [
"MIT"
] | 2 | 2019-08-06T10:10:37.000Z | 2020-09-30T12:11:28.000Z | ncpsort/cluster_synthetic_data/inference_plot_synthetic.py | yueqiw/ncp-sort | 045361d93bc9d8ef2596cdda7c485b6ffd77dd81 | [
"MIT"
] | 1 | 2021-04-14T12:09:02.000Z | 2021-07-19T04:06:05.000Z | ncpsort/cluster_synthetic_data/inference_plot_synthetic.py | yueqiw/ncp-sort | 045361d93bc9d8ef2596cdda7c485b6ffd77dd81 | [
"MIT"
] | null | null | null |
"""Plot clustered spikes
Usage:
python ncpsort.cluster_synthetic_data.inference_plot_synthetic \
--inference_dir ./inference_synthetic_N-1000/cluster_S-150-beam_NCP-10000 \
--min_cls_size 50 --plot_type overlay
or --inference_dir --min_cls_size 50 --plot_type tsne
"""
import numpy as np
imp... | 45.198582 | 132 | 0.661541 | 927 | 6,373 | 4.210356 | 0.197411 | 0.026134 | 0.03587 | 0.024596 | 0.415322 | 0.3464 | 0.287215 | 0.255957 | 0.207789 | 0.182168 | 0 | 0.024128 | 0.213086 | 6,373 | 140 | 133 | 45.521429 | 0.754138 | 0.102464 | 0 | 0.108911 | 0 | 0 | 0.102402 | 0.018587 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.108911 | 0 | 0.108911 | 0.039604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
091cc72f8820abb4968972f3dd6375ff59862250 | 27,920 | py | Python | src/loanpy/loanfinder.py | martino-vic/Framework-for-computer-aided-borrowing-detection | efce90390db14009fd27d96f32b1252a74aac1ef | [
"AFL-3.0"
] | 4 | 2020-05-18T15:10:44.000Z | 2020-10-10T05:06:26.000Z | src/loanpy/loanfinder.py | martino-vic/Soundchange | 09a276e16daed2828b144227a21e53746cbb72e4 | [
"AFL-3.0"
] | null | null | null | src/loanpy/loanfinder.py | martino-vic/Soundchange | 09a276e16daed2828b144227a21e53746cbb72e4 | [
"AFL-3.0"
] | null | null | null | """
Find (old) loanwords between two languages
"""
from ast import literal_eval
from functools import partial
from logging import getLogger
from pandas import DataFrame, Series, concat, read_csv
from tqdm import tqdm
from panphon.distance import Distance
from loanpy.helpers import gensim_multiword
from loanpy.adrc ... | 42.691131 | 79 | 0.641261 | 3,388 | 27,920 | 5.150826 | 0.178276 | 0.023838 | 0.015243 | 0.020686 | 0.354994 | 0.286746 | 0.263137 | 0.226348 | 0.206865 | 0.198384 | 0 | 0.012456 | 0.263861 | 27,920 | 653 | 80 | 42.756508 | 0.833212 | 0.624749 | 0 | 0.233333 | 0 | 0 | 0.087365 | 0.003365 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0.006667 | 0.053333 | 0 | 0.18 | 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 |
091cd8c5724529a22ff674589812a3252e946388 | 1,172 | py | Python | scripts/tmp.py | always-newbie161/pyprobml | eb70c84f9618d68235ef9ba7da147c009b2e4a80 | [
"MIT"
] | 2 | 2021-06-22T05:43:25.000Z | 2021-06-22T08:40:16.000Z | scripts/tmp.py | always-newbie161/pyprobml | eb70c84f9618d68235ef9ba7da147c009b2e4a80 | [
"MIT"
] | 1 | 2021-04-19T12:25:26.000Z | 2021-04-19T12:25:26.000Z | scripts/tmp.py | always-newbie161/pyprobml | eb70c84f9618d68235ef9ba7da147c009b2e4a80 | [
"MIT"
] | 1 | 2021-06-21T01:18:07.000Z | 2021-06-21T01:18:07.000Z |
import scipy
from scipy.io import loadmat
import random
import numpy as np
from sklearn.metrics import zero_one_loss
from sklearn.naive_bayes import BernoulliNB,MultinomialNB,GaussianNB
import matplotlib.pyplot as plt
from sklearn.feature_selection import mutual_info_classif
import os
data = loadmat('../data/Xwindo... | 25.478261 | 72 | 0.726962 | 180 | 1,172 | 4.6 | 0.461111 | 0.039855 | 0.039855 | 0.048309 | 0.10628 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01462 | 0.124573 | 1,172 | 45 | 73 | 26.044444 | 0.792398 | 0 | 0 | 0 | 0 | 0 | 0.138343 | 0.023057 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.28125 | 0 | 0.28125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
091da9e65fdc6e81e6f673354f6d6d367b942a8d | 5,961 | py | Python | src/google/events/firebase/remoteconfig/v1/RemoteConfigEventData.py | eclipselu/google-cloudevents-python | aa7ae3a593f94bd5810f68ca9b7c36eb1e32192d | [
"Apache-2.0"
] | 10 | 2020-09-19T10:43:34.000Z | 2022-02-05T14:28:12.000Z | src/google/events/firebase/remoteconfig/v1/RemoteConfigEventData.py | eclipselu/google-cloudevents-python | aa7ae3a593f94bd5810f68ca9b7c36eb1e32192d | [
"Apache-2.0"
] | 39 | 2020-07-15T22:58:46.000Z | 2022-02-03T23:19:26.000Z | src/google/events/firebase/remoteconfig/v1/RemoteConfigEventData.py | eclipselu/google-cloudevents-python | aa7ae3a593f94bd5810f68ca9b7c36eb1e32192d | [
"Apache-2.0"
] | 6 | 2020-06-30T12:58:02.000Z | 2021-01-23T02:53:44.000Z | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 38.458065 | 264 | 0.694347 | 804 | 5,961 | 4.962687 | 0.217662 | 0.042105 | 0.055388 | 0.06015 | 0.284962 | 0.241604 | 0.186466 | 0.134336 | 0.072682 | 0.072682 | 0 | 0.001667 | 0.195101 | 5,961 | 154 | 265 | 38.707792 | 0.829929 | 0.153665 | 0 | 0.149425 | 0 | 0 | 0.051364 | 0.004773 | 0 | 0 | 0 | 0 | 0.08046 | 1 | 0.16092 | false | 0.011494 | 0.034483 | 0.034483 | 0.471264 | 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 |
0925149b145bd29447f47950402ae72fc46058f2 | 18,374 | py | Python | Converter_V09102021_gkernel_stop.py | SolaleT/KTMnet | ded379cceac560eccfc9a05e8e0c55292544f8b9 | [
"MIT"
] | null | null | null | Converter_V09102021_gkernel_stop.py | SolaleT/KTMnet | ded379cceac560eccfc9a05e8e0c55292544f8b9 | [
"MIT"
] | null | null | null | Converter_V09102021_gkernel_stop.py | SolaleT/KTMnet | ded379cceac560eccfc9a05e8e0c55292544f8b9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed May 8 12:43:42 2019
@author: solale
In this version I will try to shrink the network and reduce the tensorization
"""
# Multilayer Perceptron
import pandas
import numpy
# fix random seed for reproducibility
seed = 7
numpy.random.seed(seed)
# from tensorflow import set_rando... | 39.770563 | 140 | 0.637967 | 2,584 | 18,374 | 4.301084 | 0.157895 | 0.008638 | 0.018805 | 0.020245 | 0.414252 | 0.317437 | 0.256163 | 0.185262 | 0.11688 | 0.107162 | 0 | 0.026424 | 0.136987 | 18,374 | 461 | 141 | 39.856833 | 0.674466 | 0.157886 | 0 | 0.086505 | 0 | 0 | 0.190125 | 0.04379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010381 | false | 0 | 0.083045 | 0 | 0.100346 | 0.214533 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09252c654e5dd6c2c427adfbd63c5afde450b576 | 1,641 | py | Python | sentiment_analysis.py | Submanifold/us-inauguration-speeches | d86221c47cc8b34363cc4ca9faaa4236436fc9c0 | [
"MIT"
] | null | null | null | sentiment_analysis.py | Submanifold/us-inauguration-speeches | d86221c47cc8b34363cc4ca9faaa4236436fc9c0 | [
"MIT"
] | null | null | null | sentiment_analysis.py | Submanifold/us-inauguration-speeches | d86221c47cc8b34363cc4ca9faaa4236436fc9c0 | [
"MIT"
] | 1 | 2019-08-12T11:40:28.000Z | 2019-08-12T11:40:28.000Z | #!/usr/bin/env python3
#
# Calculates sentiment polarity scores over the progression of a speech
# and writes them to STDOUT. The output can be parsed by gnuplot.
#
# Original author: Bastian Rieck
from textblob import TextBlob
import os
import sys
"""
Calculates sentiments over the progression of a given speech. Th... | 22.791667 | 72 | 0.652651 | 228 | 1,641 | 4.592105 | 0.464912 | 0.025788 | 0.034384 | 0.038204 | 0.17001 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.224863 | 1,641 | 71 | 73 | 23.112676 | 0.813679 | 0.1883 | 0 | 0.114286 | 0 | 0 | 0.032081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.085714 | 0 | 0.171429 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
092739ee8d9e52a0a47febefb10eeb7490145d9b | 8,174 | py | Python | EGEF_operation.py | zahraghh/Operation-Planning | dfa1fbbcce8d07544e96131f4e1f42c1846ce95b | [
"MIT"
] | null | null | null | EGEF_operation.py | zahraghh/Operation-Planning | dfa1fbbcce8d07544e96131f4e1f42c1846ce95b | [
"MIT"
] | null | null | null | EGEF_operation.py | zahraghh/Operation-Planning | dfa1fbbcce8d07544e96131f4e1f42c1846ce95b | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import warnings
import pandas as pd
import scipy.stats as st
import statsmodels as sm
import seaborn as sns
import math
import collections
from collections import Counter
import statistics
import matplotlib
# By state level - Fuels emission factors - 1999 t... | 57.160839 | 279 | 0.725104 | 1,218 | 8,174 | 4.6289 | 0.167488 | 0.081412 | 0.023413 | 0.023058 | 0.364314 | 0.280241 | 0.238737 | 0.217453 | 0.164597 | 0.159986 | 0 | 0.023535 | 0.152679 | 8,174 | 142 | 280 | 57.56338 | 0.7905 | 0.151456 | 0 | 0.047619 | 0 | 0 | 0.125129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0 | 0.095238 | 0.007937 | 0.15873 | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09292afd918a49c812addd31394b503bc8e8b012 | 16,757 | py | Python | Core_Functions.py | CadellVDH/gardinette | e8200a0f8369e4a6d5a5a73c11d04282e98a927f | [
"MIT"
] | 3 | 2020-10-31T23:19:37.000Z | 2021-04-06T06:57:50.000Z | Core_Functions.py | CadellVDH/gardinette | e8200a0f8369e4a6d5a5a73c11d04282e98a927f | [
"MIT"
] | null | null | null | Core_Functions.py | CadellVDH/gardinette | e8200a0f8369e4a6d5a5a73c11d04282e98a927f | [
"MIT"
] | 2 | 2020-11-01T01:10:16.000Z | 2020-11-07T23:01:31.000Z | import os #tools for working with the CLI
import logging #needed for logging
import pigpio #needed for GPIO control
import time #needed for function timing
import threading #needed for OLED data continuous updating
import csv #needed for temporary data logging
import config as global_vars #import global variable initia... | 50.933131 | 173 | 0.617652 | 2,196 | 16,757 | 4.604281 | 0.165756 | 0.037583 | 0.035308 | 0.019286 | 0.452972 | 0.406587 | 0.367521 | 0.342894 | 0.312531 | 0.280586 | 0 | 0.012909 | 0.306558 | 16,757 | 328 | 174 | 51.088415 | 0.857229 | 0.330429 | 0 | 0.454545 | 0 | 0 | 0.05205 | 0.001978 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051948 | false | 0 | 0.04329 | 0 | 0.147186 | 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 |
092b8a66d28f45edb39d1f480fa99961ca8a29ee | 257 | py | Python | en/en.py | iremlaya/brainhack17 | 95e0374785dd7aa7856cac149e04c2949d3ee852 | [
"MIT"
] | 2 | 2017-06-04T10:01:49.000Z | 2017-10-23T23:40:09.000Z | en/en.py | iremlaya/brainhack17 | 95e0374785dd7aa7856cac149e04c2949d3ee852 | [
"MIT"
] | 3 | 2017-10-23T22:54:43.000Z | 2018-10-02T15:57:22.000Z | en/en.py | iremlaya/brainhack17 | 95e0374785dd7aa7856cac149e04c2949d3ee852 | [
"MIT"
] | 2 | 2018-10-02T16:00:23.000Z | 2018-10-02T18:05:27.000Z | nums = list(map(int,input().split(" ")))
list = []
for j in range(0,5):
sum = 0
for i in range(0,4):
sum += nums[i]
list.append(sum)
temp = nums[0]
del nums[0]
nums.append(temp)
print("{} {}".format(min(list), max(list)))
| 17.133333 | 43 | 0.525292 | 42 | 257 | 3.214286 | 0.52381 | 0.103704 | 0.118519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036649 | 0.256809 | 257 | 14 | 44 | 18.357143 | 0.670157 | 0 | 0 | 0 | 0 | 0 | 0.023346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
092d7b160711ea95b44c682ad660b8ddb0e66742 | 352 | py | Python | src/test_instrumenter/if_expr.py | joeldentici/python_stepper | ab32c62d0d0333ad901d7329fb198c7a23988007 | [
"MIT"
] | 1 | 2020-11-29T20:00:39.000Z | 2020-11-29T20:00:39.000Z | src/test_instrumenter/if_expr.py | joeldentici/python_stepper | ab32c62d0d0333ad901d7329fb198c7a23988007 | [
"MIT"
] | null | null | null | src/test_instrumenter/if_expr.py | joeldentici/python_stepper | ab32c62d0d0333ad901d7329fb198c7a23988007 | [
"MIT"
] | null | null | null | import instrumenter
import unittest
class TestIfExpr(unittest.TestCase):
def test_if_expr(self):
src = """
5 if x > 7 else 10
""".strip()
expected = """
stepper_lib.if_expr(x > 7, 5, 10)
""".strip()
actual = instrumenter.instrument(src, "ifexpr").strip()
self.assertEqual(actual, expected)
if __name__... | 17.6 | 57 | 0.676136 | 46 | 352 | 4.913043 | 0.586957 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027211 | 0.164773 | 352 | 20 | 58 | 17.6 | 0.741497 | 0 | 0 | 0.142857 | 0 | 0 | 0.206799 | 0.05949 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
092e872c851914a08cabf8af551b3897a9d46816 | 1,394 | py | Python | Server/Python/src/dbs/dao/Oracle/Run/SummaryList.py | vkuznet/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 8 | 2015-08-14T04:01:32.000Z | 2021-06-03T00:56:42.000Z | Server/Python/src/dbs/dao/Oracle/Run/SummaryList.py | yuyiguo/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 162 | 2015-01-07T21:34:47.000Z | 2021-10-13T09:42:41.000Z | Server/Python/src/dbs/dao/Oracle/Run/SummaryList.py | yuyiguo/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 16 | 2015-01-22T15:27:29.000Z | 2021-04-28T09:23:28.000Z | """
This module provides Run.SummaryList data access object
"""
from WMCore.Database.DBFormatter import DBFormatter
from dbs.utils.dbsExceptionHandler import dbsExceptionHandler
class SummaryList(DBFormatter):
def __init__(self, logger, dbi, owner=""):
DBFormatter.__init__(self, logger, dbi)
self... | 39.828571 | 97 | 0.65208 | 173 | 1,394 | 5.109827 | 0.416185 | 0.033937 | 0.031674 | 0.038462 | 0.054299 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003683 | 0.220947 | 1,394 | 34 | 98 | 41 | 0.810313 | 0.039455 | 0 | 0 | 0 | 0 | 0.220887 | 0.051841 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | 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 |
0933f309561e041149760fb500eeef98ca5f1483 | 4,650 | py | Python | PyGame/racey.py | esserafael/PythonStuff | 97900e48f989b64ccde02f5d676f7f823ec0eed7 | [
"MIT"
] | 1 | 2020-08-03T00:19:05.000Z | 2020-08-03T00:19:05.000Z | PyGame/racey.py | esserafael/PythonStuff | 97900e48f989b64ccde02f5d676f7f823ec0eed7 | [
"MIT"
] | 1 | 2021-08-23T20:43:21.000Z | 2021-08-23T20:43:21.000Z | PyGame/racey.py | esserafael/python-learning-stuff | 97900e48f989b64ccde02f5d676f7f823ec0eed7 | [
"MIT"
] | null | null | null | import pygame
import time
import random
pygame.init()
# display
display_width = 1024
display_height = 768
gameDisplay = pygame.display.set_mode((display_width,display_height))
pygame.display.set_caption('Relâmpago Marquinhos')
# colors
black = (0,0,0)
white = (255,255,255)
red = (255,0,0)
# car
ca... | 30.392157 | 143 | 0.550108 | 583 | 4,650 | 4.090909 | 0.176672 | 0.04696 | 0.054507 | 0.050314 | 0.315304 | 0.232285 | 0.163522 | 0.163522 | 0.103145 | 0.066247 | 0 | 0.021396 | 0.346667 | 4,650 | 153 | 144 | 30.392157 | 0.76366 | 0.072903 | 0 | 0.11 | 0 | 0 | 0.013913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.03 | 0 | 0.1 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0934154c75f6f3525bf51eb76b65fd596ded22e6 | 9,521 | py | Python | src/tuco/base.py | eatfirst/python-tuco | 47e58a3ebaf3f7e8ac3e2ba18dfaf9ce993f82db | [
"MIT"
] | 8 | 2018-01-05T15:25:45.000Z | 2018-02-19T02:41:43.000Z | src/tuco/base.py | eatfirst/python-tuco | 47e58a3ebaf3f7e8ac3e2ba18dfaf9ce993f82db | [
"MIT"
] | 7 | 2018-01-04T15:51:32.000Z | 2021-04-28T21:54:57.000Z | src/tuco/base.py | eatfirst/python-tuco | 47e58a3ebaf3f7e8ac3e2ba18dfaf9ce993f82db | [
"MIT"
] | null | null | null | """Base classes to be used in FSM."""
import copy
from datetime import datetime
from typing import Dict, Iterator, List, Tuple, Type # noqa
import pytz
from tuco.exceptions import (
TucoAlreadyLockedError,
TucoEventNotFoundError,
TucoInvalidStateChangeError,
TucoInvalidStateHolderError,
)
from tuco.l... | 34.496377 | 114 | 0.635648 | 1,135 | 9,521 | 5.10837 | 0.163877 | 0.078648 | 0.057951 | 0.031735 | 0.238875 | 0.160228 | 0.125905 | 0.106244 | 0.09417 | 0.065195 | 0 | 0 | 0.276967 | 9,521 | 275 | 115 | 34.621818 | 0.842243 | 0.160802 | 0 | 0.256983 | 0 | 0 | 0.034217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128492 | false | 0 | 0.055866 | 0 | 0.379888 | 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 |
093766ed7bbbb3c00312fb45947b1f3698212662 | 2,342 | py | Python | rest_framework_apidoc/apidoc.py | jespino/django-rest-framework-apidoc | 94e47811f96058bcfe33e37e433eda065096c053 | [
"BSD-3-Clause"
] | 3 | 2015-04-23T02:06:26.000Z | 2017-12-06T12:52:04.000Z | rest_framework_apidoc/apidoc.py | jespino/django-rest-framework-apidoc | 94e47811f96058bcfe33e37e433eda065096c053 | [
"BSD-3-Clause"
] | null | null | null | rest_framework_apidoc/apidoc.py | jespino/django-rest-framework-apidoc | 94e47811f96058bcfe33e37e433eda065096c053 | [
"BSD-3-Clause"
] | null | null | null | from django.conf import settings
from rest_framework.settings import import_from_string
from .mixins import FileContentMixin, DocStringContentMixin, MarkupProcessMixin, NoProcessMixin, SafeProcessMixin
APIDOC_DEFAULT_DOCUMENTER_CLASSES = getattr(
settings,
'APIDOC_DEFAULT_DOCUMENTER_CLASSES',
['rest_fra... | 28.560976 | 113 | 0.760034 | 210 | 2,342 | 8.304762 | 0.290476 | 0.028096 | 0.031537 | 0.051606 | 0.036697 | 0.036697 | 0.036697 | 0 | 0 | 0 | 0 | 0 | 0.163108 | 2,342 | 81 | 114 | 28.91358 | 0.889796 | 0 | 0 | 0.16 | 0 | 0 | 0.09351 | 0.049103 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.04 | 0.08 | 0 | 0.64 | 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 |
09382774afac9a4d300d0854f84c2849faef3aed | 541 | py | Python | malcolm/modules/ADAndor/parts/andordriverpart.py | MattTaylorDLS/pymalcolm | 995a8e4729bd745f8f617969111cc5a34ce1ac14 | [
"Apache-2.0"
] | null | null | null | malcolm/modules/ADAndor/parts/andordriverpart.py | MattTaylorDLS/pymalcolm | 995a8e4729bd745f8f617969111cc5a34ce1ac14 | [
"Apache-2.0"
] | null | null | null | malcolm/modules/ADAndor/parts/andordriverpart.py | MattTaylorDLS/pymalcolm | 995a8e4729bd745f8f617969111cc5a34ce1ac14 | [
"Apache-2.0"
] | null | null | null | from malcolm.modules.ADCore.parts import ExposureDetectorDriverPart
class AndorDriverPart(ExposureDetectorDriverPart):
def setup_detector(self, child, completed_steps, steps_to_do, params=None):
fs = super(AndorDriverPart, self).setup_detector(
child, completed_steps, steps_to_do, params)
... | 41.615385 | 79 | 0.728281 | 64 | 541 | 5.953125 | 0.625 | 0.068241 | 0.099738 | 0.125984 | 0.178478 | 0.178478 | 0.178478 | 0 | 0 | 0 | 0 | 0 | 0.19963 | 541 | 12 | 80 | 45.083333 | 0.879908 | 0.09427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
093956eeb27c748398dcb88a46fcaaac217e34f7 | 2,674 | py | Python | setup.py | addisonElliott/pyqt5AutoCompile | 5945a85f6230a97f3467c79441d87f5f9cdb478d | [
"MIT"
] | 8 | 2018-10-31T04:53:18.000Z | 2020-11-18T18:47:48.000Z | setup.py | addisonElliott/pyqt5AutoCompile | 5945a85f6230a97f3467c79441d87f5f9cdb478d | [
"MIT"
] | 24 | 2020-03-27T11:38:39.000Z | 2020-10-23T07:12:41.000Z | setup.py | addisonElliott/pyqt5AutoCompile | 5945a85f6230a97f3467c79441d87f5f9cdb478d | [
"MIT"
] | 3 | 2019-05-08T16:41:26.000Z | 2021-08-23T12:37:55.000Z | import os
import re
from setuptools import setup
currentPath = os.path.abspath(os.path.dirname(__file__))
def find_version(filename):
with open(filename, 'r') as fh:
# Read first 2048 bytes, __version__ string will be within that
data = fh.read(2048)
match = re.search(r'^__version__ = [... | 30.735632 | 116 | 0.597233 | 295 | 2,674 | 5.325424 | 0.508475 | 0.072565 | 0.095481 | 0.08275 | 0.088479 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016828 | 0.266642 | 2,674 | 86 | 117 | 31.093023 | 0.784294 | 0.118549 | 0 | 0.074627 | 0 | 0 | 0.370638 | 0.02 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0 | 0.044776 | 0 | 0.074627 | 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 |
093974a11fcf0bc9652927c15386f72ab4614908 | 8,738 | py | Python | Progetto_dataset_adult/Utils/Analisi_variabili.py | pasqualefiore/Adult_dataset_analysis | c13b229e1f69df765fc2da5f0b64084816ad39c3 | [
"Apache-2.0"
] | null | null | null | Progetto_dataset_adult/Utils/Analisi_variabili.py | pasqualefiore/Adult_dataset_analysis | c13b229e1f69df765fc2da5f0b64084816ad39c3 | [
"Apache-2.0"
] | null | null | null | Progetto_dataset_adult/Utils/Analisi_variabili.py | pasqualefiore/Adult_dataset_analysis | c13b229e1f69df765fc2da5f0b64084816ad39c3 | [
"Apache-2.0"
] | null | null | null | import matplotlib.pyplot as plt
import seaborn as sns
from scipy.stats import kendalltau,chi2_contingency, pearsonr
import pandas as pd
def plot_var_num(dataset,variabile):
""" Plot delle variabili numeriche
--------------
Parametri:
dataset: dataset di riferimento
variabile: variabile da plott... | 42.009615 | 111 | 0.653353 | 1,015 | 8,738 | 5.529064 | 0.207882 | 0.027798 | 0.053457 | 0.048111 | 0.582145 | 0.484854 | 0.444761 | 0.428902 | 0.41536 | 0.396115 | 0 | 0.019029 | 0.23621 | 8,738 | 207 | 112 | 42.21256 | 0.821846 | 0.387961 | 0 | 0.456522 | 0 | 0 | 0.086807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.043478 | 0 | 0.152174 | 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 |
093ee142adce433cf7aaa24dd679b5d6c4fc05b5 | 638 | py | Python | shares/urls.py | ab1cd2eefre3/stock-trading-website | f19b3ff11c5348ed9758816dab0ea0b44ec027a9 | [
"MIT"
] | null | null | null | shares/urls.py | ab1cd2eefre3/stock-trading-website | f19b3ff11c5348ed9758816dab0ea0b44ec027a9 | [
"MIT"
] | null | null | null | shares/urls.py | ab1cd2eefre3/stock-trading-website | f19b3ff11c5348ed9758816dab0ea0b44ec027a9 | [
"MIT"
] | null | null | null |
from django.urls import path
from . import views
urlpatterns = [
path("login", views.login_view, name="login"),
path("logout", views.logout_view, name="logout"),
path("register", views.register, name="register"),
path("", views.index, name="index"),
path("open", views.openPage, name="openPage"),
... | 33.578947 | 67 | 0.647335 | 82 | 638 | 5.012195 | 0.292683 | 0.038929 | 0.043796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003663 | 0.144201 | 638 | 19 | 68 | 33.578947 | 0.749084 | 0 | 0 | 0 | 0 | 0 | 0.233542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 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 |
094372a474d52adb03ce58de44449d7f0c3ddd56 | 295 | py | Python | Intermediate/collections_namedtuple.py | BjornChrisnach/Python_6hour_course | 0949387c2e423ed0ba7914db7c58af2f913bda1c | [
"MIT"
] | null | null | null | Intermediate/collections_namedtuple.py | BjornChrisnach/Python_6hour_course | 0949387c2e423ed0ba7914db7c58af2f913bda1c | [
"MIT"
] | null | null | null | Intermediate/collections_namedtuple.py | BjornChrisnach/Python_6hour_course | 0949387c2e423ed0ba7914db7c58af2f913bda1c | [
"MIT"
] | null | null | null | # Collections namedTuple nr7
import collections
from collections import namedtuple
Point = namedtuple("Point", {"x": 0, "y": 0, "z": 0})
newP = Point(3, 4, 5)
print(newP.x, newP.y, newP.z)
print(newP._fields)
newP = newP._replace(x=6)
print(newP)
p2 = Point._make(["a", "b", "c"])
print(p2)
| 18.4375 | 53 | 0.661017 | 48 | 295 | 4 | 0.479167 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039526 | 0.142373 | 295 | 15 | 54 | 19.666667 | 0.719368 | 0.088136 | 0 | 0 | 0 | 0 | 0.041199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09440d91afca8dc4e9e6734e9c8588fc67d05760 | 2,879 | py | Python | bootstrap_ranks.py | baprice/Genewise-Cohort-Integration | d1a7434f2a461f572fd85ed8bdeebcda268ef29c | [
"MIT"
] | null | null | null | bootstrap_ranks.py | baprice/Genewise-Cohort-Integration | d1a7434f2a461f572fd85ed8bdeebcda268ef29c | [
"MIT"
] | null | null | null | bootstrap_ranks.py | baprice/Genewise-Cohort-Integration | d1a7434f2a461f572fd85ed8bdeebcda268ef29c | [
"MIT"
] | null | null | null | import os
from pathlib import Path
import argparse
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from jive.AJIVE import AJIVE
from jive.PCA import PCA
import warnings
import time, datetime
from random import shuffle
warnings.filterwarnings(action='once')
def getVarianceE... | 34.686747 | 140 | 0.740188 | 457 | 2,879 | 4.512035 | 0.299781 | 0.026188 | 0.041222 | 0.038797 | 0.238118 | 0.204656 | 0.125121 | 0.038797 | 0 | 0 | 0 | 0.010588 | 0.114276 | 2,879 | 82 | 141 | 35.109756 | 0.798039 | 0.046544 | 0 | 0 | 0 | 0 | 0.071585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032787 | false | 0 | 0.213115 | 0 | 0.278689 | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
094aa257693558a2208948c81f0f7751ce318d41 | 736 | py | Python | annoying_dogbone/code.py | Tobi-Swali/pypy-Gamejam | a6e9455802ae0ea460fd7e2b497d58f94ee35228 | [
"MIT"
] | 1 | 2019-10-12T13:45:09.000Z | 2019-10-12T13:45:09.000Z | annoying_dogbone/code.py | Tobi-Swali/pypy-Gamejam | a6e9455802ae0ea460fd7e2b497d58f94ee35228 | [
"MIT"
] | 2 | 2019-10-13T17:50:42.000Z | 2019-10-13T17:53:18.000Z | annoying_dogbone/code.py | Tobi-Swali/pypy-Gamejam | a6e9455802ae0ea460fd7e2b497d58f94ee35228 | [
"MIT"
] | 3 | 2019-10-12T13:33:23.000Z | 2019-10-12T17:15:45.000Z | # /bin/hacken GameJam 2019, f0wL
"""This example lights up the third NeoPixel while button A is being pressed, and lights up the
eighth NeoPixel while button B is being pressed."""
from adafruit_circuitplayground.express import cpx
import random
import time
import math
cpx.pixels.brightness = 0.1
while True:
... | 26.285714 | 95 | 0.618207 | 109 | 736 | 4.12844 | 0.449541 | 0.133333 | 0.106667 | 0.126667 | 0.284444 | 0.075556 | 0 | 0 | 0 | 0 | 0 | 0.069418 | 0.275815 | 736 | 27 | 96 | 27.259259 | 0.774859 | 0.235054 | 0 | 0.111111 | 0 | 0 | 0.025135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 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 |
094d11be09267ae59e086160b2251d8815fde678 | 22,234 | py | Python | lib/id3c/cli/command/manifest.py | UWIT-IAM/uw-redcap-client | 38a1eb426fa80697446df7a466a41e0305382606 | [
"MIT"
] | 21 | 2019-04-19T22:45:22.000Z | 2022-01-28T01:32:09.000Z | lib/id3c/cli/command/manifest.py | UWIT-IAM/uw-redcap-client | 38a1eb426fa80697446df7a466a41e0305382606 | [
"MIT"
] | 219 | 2019-04-19T21:42:24.000Z | 2022-03-29T21:41:04.000Z | lib/id3c/cli/command/manifest.py | UWIT-IAM/uw-redcap-client | 38a1eb426fa80697446df7a466a41e0305382606 | [
"MIT"
] | 9 | 2020-03-11T20:07:26.000Z | 2022-03-05T00:36:11.000Z | """
Parse, diff, and upload sample manifests.
Manifests are listings of known samples with associated barcodes and other,
minimal metadata. They are usually produced by the lab processing collection
tubes and contain the link between encounter survey data and molecular biology
results.
The workflow for processing ne... | 36.509031 | 225 | 0.655707 | 2,775 | 22,234 | 5.164685 | 0.187748 | 0.026375 | 0.017583 | 0.013676 | 0.303865 | 0.28691 | 0.264513 | 0.248395 | 0.221811 | 0.201716 | 0 | 0.0047 | 0.244041 | 22,234 | 608 | 226 | 36.569079 | 0.846561 | 0.453854 | 0 | 0.111111 | 0 | 0.00823 | 0.23385 | 0.01409 | 0 | 0 | 0 | 0 | 0.012346 | 1 | 0.049383 | false | 0.004115 | 0.078189 | 0 | 0.156379 | 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 |