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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d8965469242d4e72828c54c19635f40c52cf043e | 850 | py | Python | douyu/douyu/spiders/spider.py | smujm/ScrapyProjects | 04e9eb42c64805475893be595db4f3b6530ba597 | [
"MIT"
] | null | null | null | douyu/douyu/spiders/spider.py | smujm/ScrapyProjects | 04e9eb42c64805475893be595db4f3b6530ba597 | [
"MIT"
] | null | null | null | douyu/douyu/spiders/spider.py | smujm/ScrapyProjects | 04e9eb42c64805475893be595db4f3b6530ba597 | [
"MIT"
] | null | null | null | import scrapy
import json
from douyu.items import DouyuItem
class SpiderSpider(scrapy.Spider):
name = 'douyu'
allowed_domains = ['https://www.douyu.com']
base_url = 'http://capi.douyucdn.cn/api/v1/getVerticalRoom?limit=20&offset='
offset = 0
start_urls = [base_url + str(offset)]
def parse(sel... | 29.310345 | 80 | 0.611765 | 105 | 850 | 4.847619 | 0.580952 | 0.041257 | 0.039293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012759 | 0.262353 | 850 | 28 | 81 | 30.357143 | 0.799043 | 0.038824 | 0 | 0 | 0 | 0 | 0.169533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.142857 | 0 | 0.52381 | 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 |
d897d34629e02e537f13d11f12451d99e9ab865b | 521 | py | Python | synonym.py | amber5634/Synonym-Generator-using-Word-Net | 5ce0f71d4639bbae39ee0d279103e576065c094a | [
"MIT"
] | null | null | null | synonym.py | amber5634/Synonym-Generator-using-Word-Net | 5ce0f71d4639bbae39ee0d279103e576065c094a | [
"MIT"
] | null | null | null | synonym.py | amber5634/Synonym-Generator-using-Word-Net | 5ce0f71d4639bbae39ee0d279103e576065c094a | [
"MIT"
] | null | null | null | import nltk
from nltk.corpus import wordnet
class Keyword:
def synonymn_generator(self):
synonyms = []
antonyms = []
word = input("enter the word : ")
for syn in wordnet.synsets(word):
for l in syn.lemmas():
synonyms.append(l.name()) ... | 26.05 | 60 | 0.520154 | 55 | 521 | 4.890909 | 0.545455 | 0.126394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009063 | 0.364683 | 521 | 20 | 61 | 26.05 | 0.803625 | 0 | 0 | 0 | 0 | 0 | 0.033797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d89df34e44c6bfd5607bac84838a10b568961067 | 3,846 | py | Python | scripts/src/__main__.py | 9999years/dotfiles | 763c2ca5f8aeb3b64eb28262e6708135e6cd2005 | [
"MIT"
] | 1 | 2020-09-09T15:06:43.000Z | 2020-09-09T15:06:43.000Z | scripts/src/__main__.py | 9999years/dotfiles | 763c2ca5f8aeb3b64eb28262e6708135e6cd2005 | [
"MIT"
] | 2 | 2020-09-09T14:16:21.000Z | 2020-09-29T17:31:15.000Z | scripts/src/__main__.py | 9999years/dotfiles | 763c2ca5f8aeb3b64eb28262e6708135e6cd2005 | [
"MIT"
] | 2 | 2020-09-04T14:55:57.000Z | 2020-10-30T19:08:58.000Z | """Entry point for linking dotfiles.
"""
from __future__ import annotations
import argparse
import os
import subprocess
import sys
from dataclasses import dataclass
from pathlib import Path
from typing import Optional
from . import log
from .link import Linker
from .resolver import Resolver
from .scan import Scanner... | 26.524138 | 84 | 0.595684 | 450 | 3,846 | 4.957778 | 0.348889 | 0.035858 | 0.0381 | 0.008068 | 0.040341 | 0.026894 | 0 | 0 | 0 | 0 | 0 | 0.001103 | 0.292772 | 3,846 | 144 | 85 | 26.708333 | 0.81875 | 0.111544 | 0 | 0.1 | 0 | 0 | 0.152959 | 0 | 0 | 0 | 0 | 0.006944 | 0 | 1 | 0.04 | false | 0.02 | 0.13 | 0 | 0.26 | 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 |
d89ebf9a6b581abb7634d793d29dd4afbd5a6f07 | 3,778 | py | Python | verified.py | tophersmith/veracode-verified-checker | f2f85dbb4b8039c9ccd9848367a37b9caab0c9aa | [
"MIT"
] | null | null | null | verified.py | tophersmith/veracode-verified-checker | f2f85dbb4b8039c9ccd9848367a37b9caab0c9aa | [
"MIT"
] | null | null | null | verified.py | tophersmith/veracode-verified-checker | f2f85dbb4b8039c9ccd9848367a37b9caab0c9aa | [
"MIT"
] | null | null | null | import sys
import json
import requests
from veracode_api_signing.plugin_requests import RequestsAuthPluginVeracodeHMAC
from pprint import pprint
from datetime import datetime
from app_definition import AppDefinition
from verified_check import VerifiedStandard, VerifiedTeam, VerifiedContinuous
from verified_report impor... | 32.568966 | 123 | 0.724722 | 553 | 3,778 | 4.79566 | 0.264014 | 0.033937 | 0.016968 | 0.016968 | 0.274887 | 0.267722 | 0.226244 | 0.226244 | 0.226244 | 0.226244 | 0 | 0.006627 | 0.161196 | 3,778 | 116 | 124 | 32.568966 | 0.83023 | 0.080731 | 0 | 0.27907 | 0 | 0.011628 | 0.178705 | 0.008717 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.116279 | 0 | 0.22093 | 0.104651 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8a4ffb4de362b2f4a2070e30f28d8fd00e06627 | 206 | py | Python | try-except.py | arhue/python-learning | 058c93315fd5aa76584e32432e7c80cb3972478e | [
"MIT"
] | null | null | null | try-except.py | arhue/python-learning | 058c93315fd5aa76584e32432e7c80cb3972478e | [
"MIT"
] | null | null | null | try-except.py | arhue/python-learning | 058c93315fd5aa76584e32432e7c80cb3972478e | [
"MIT"
] | null | null | null | x=input("Enter a no. I will convert to integer")
z=1
try:
y=int(float(x))
z="float"
except:
z="wrong"
if z=="wrong":
print("fix your input")
else:
print("int of your input is:", y)
| 15.846154 | 48 | 0.57767 | 37 | 206 | 3.216216 | 0.675676 | 0.10084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.247573 | 206 | 12 | 49 | 17.166667 | 0.76129 | 0 | 0 | 0 | 0 | 0 | 0.42233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d8a7d33720089c11a74552c8c79ff625254ee85a | 769 | py | Python | cuhk03/init_env.py | cwpeng-cn/TorchReID | e6cf1d38bfc3100ea19e3e92aa4306b79fd3517b | [
"MIT"
] | null | null | null | cuhk03/init_env.py | cwpeng-cn/TorchReID | e6cf1d38bfc3100ea19e3e92aa4306b79fd3517b | [
"MIT"
] | null | null | null | cuhk03/init_env.py | cwpeng-cn/TorchReID | e6cf1d38bfc3100ea19e3e92aa4306b79fd3517b | [
"MIT"
] | null | null | null | import zipfile
import os
def download_and_prepare():
reid_path = "/content/drive/My Drive/Colab/datasets/reid.zip"
file_zip = zipfile.ZipFile(reid_path, 'r')
for file in file_zip.namelist():
file_zip.extract(file, r'.')
with open("/content/drive/My Drive/Colab/ReID works/CVPR fintuning/resnet... | 34.954545 | 118 | 0.559168 | 106 | 769 | 3.896226 | 0.40566 | 0.087167 | 0.101695 | 0.138015 | 0.40678 | 0.348668 | 0.348668 | 0.261501 | 0.261501 | 0.261501 | 0 | 0.011132 | 0.29909 | 769 | 21 | 119 | 36.619048 | 0.755102 | 0 | 0 | 0.25 | 0 | 0 | 0.314694 | 0.097529 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 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 |
d8a907f41af888797cb8bfb82d2555a46654432c | 2,109 | py | Python | myutils/dictionaries.py | joeledwardson/betfair-browser | b641f134e60307250a0e51bafa849422ecf5264b | [
"MIT"
] | 3 | 2021-11-23T19:03:02.000Z | 2021-11-24T08:44:23.000Z | myutils/dictionaries.py | joeledwardson/betfair-browser | b641f134e60307250a0e51bafa849422ecf5264b | [
"MIT"
] | 2 | 2021-11-23T18:47:31.000Z | 2021-12-08T15:36:11.000Z | myutils/dictionaries.py | joeledwardson/betfair-browser | b641f134e60307250a0e51bafa849422ecf5264b | [
"MIT"
] | null | null | null | from typing import Iterable, Dict
import copy
from collections.abc import Mapping
from .exceptions import DictException
def validate_config(cfg: Dict, cfg_spec: Dict):
_cfg = copy.deepcopy(cfg)
for k, spec in cfg_spec.items():
exist = k in _cfg
val = _cfg.pop(k, None)
if not spec.get('... | 31.954545 | 113 | 0.573732 | 305 | 2,109 | 3.888525 | 0.239344 | 0.040472 | 0.037943 | 0.047218 | 0.194772 | 0.171164 | 0.118887 | 0.118887 | 0.053963 | 0.053963 | 0 | 0.000706 | 0.328118 | 2,109 | 66 | 114 | 31.954545 | 0.836274 | 0.181129 | 0 | 0.232558 | 0 | 0 | 0.124267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.093023 | 0 | 0.325581 | 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 |
d8aa39d9d29606bfc3d0bf3b107305b6d1c667aa | 3,406 | py | Python | metallic/metalearners/mbml/base.py | Renovamen/metallic | c3992e4b322f9d41d9b7997c472baf99c843046c | [
"MIT"
] | 5 | 2021-04-14T07:31:06.000Z | 2021-12-11T08:12:10.000Z | metallic/metalearners/mbml/base.py | Renovamen/metallic | c3992e4b322f9d41d9b7997c472baf99c843046c | [
"MIT"
] | 1 | 2021-04-14T07:44:36.000Z | 2021-04-15T14:01:52.000Z | metallic/metalearners/mbml/base.py | Renovamen/metallic | c3992e4b322f9d41d9b7997c472baf99c843046c | [
"MIT"
] | null | null | null | import os
from abc import ABC, abstractmethod
from typing import Callable, Optional, Tuple
import torch
from torch import nn, optim
from ..base import MetaLearner
class MBML(MetaLearner, ABC):
"""
A base class for metric-based meta-learning algorithms.
Parameters
----------
model : torch.nn.Modul... | 26.818898 | 75 | 0.579272 | 391 | 3,406 | 4.933504 | 0.2711 | 0.055988 | 0.023328 | 0.017626 | 0.050804 | 0.050804 | 0 | 0 | 0 | 0 | 0 | 0.00087 | 0.325308 | 3,406 | 126 | 76 | 27.031746 | 0.838555 | 0.192601 | 0 | 0 | 0 | 0 | 0.053127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068493 | false | 0.013699 | 0.082192 | 0 | 0.205479 | 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 |
d8aadfacb7f4de5abfc2dccb19ef5736e4d36538 | 593 | py | Python | python/sorting/group_0s_1s.py | amitsaha/playground | 82cb5ac02ac90d3fa858a5153b0a5705187c14ce | [
"Unlicense"
] | 4 | 2018-04-14T16:28:39.000Z | 2021-11-14T12:08:02.000Z | python/sorting/group_0s_1s.py | amitsaha/playground | 82cb5ac02ac90d3fa858a5153b0a5705187c14ce | [
"Unlicense"
] | 3 | 2022-02-14T10:38:51.000Z | 2022-02-27T16:01:16.000Z | python/sorting/group_0s_1s.py | amitsaha/playground | 82cb5ac02ac90d3fa858a5153b0a5705187c14ce | [
"Unlicense"
] | 4 | 2015-07-07T01:01:27.000Z | 2019-04-12T05:38:26.000Z | '''
Groups the 0s and 1s together from a random array
Reference: http://www.geeksforgeeks.org/segregate-0s-and-1s-in-an-array-by-traversing-array-once/
'''
from __future__ import print_function
def rearrange(arr):
p1 = 0
p2 = len(arr) - 1
while p1 < p2:
if arr[p1] == 0:
p1 += 1
... | 21.962963 | 97 | 0.548061 | 100 | 593 | 3.2 | 0.36 | 0.04375 | 0.0375 | 0.0375 | 0.15 | 0.15 | 0.125 | 0.125 | 0.125 | 0 | 0 | 0.111628 | 0.274874 | 593 | 26 | 98 | 22.807692 | 0.632558 | 0.247892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 0.3125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8ad33478b60fc223af35de65ba50412bd1bf355 | 3,039 | py | Python | GABClient/GAB.Client/wwwroot/ml/pipeline1/mu.py | intelequia/GAB2019ScienceLab.Client | 982bcfacc31c25201755eb2353aef2204923261b | [
"MIT"
] | null | null | null | GABClient/GAB.Client/wwwroot/ml/pipeline1/mu.py | intelequia/GAB2019ScienceLab.Client | 982bcfacc31c25201755eb2353aef2204923261b | [
"MIT"
] | null | null | null | GABClient/GAB.Client/wwwroot/ml/pipeline1/mu.py | intelequia/GAB2019ScienceLab.Client | 982bcfacc31c25201755eb2353aef2204923261b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
from scipy.signal import savgol_filter
import sys
def Interpolate(time, mask, y):
yy = np.array(y)
t_ = np.delete(time, mask)
y_ = np.delete(y, mask, axis = 0)
if len(yy.shape) == 1:
yy[mask] = np.interp(time[mask], t_, y_)
e... | 29.504854 | 102 | 0.524844 | 453 | 3,039 | 3.472406 | 0.284768 | 0.045772 | 0.050858 | 0.045772 | 0.159568 | 0.094723 | 0.053401 | 0.053401 | 0 | 0 | 0 | 0.023717 | 0.320171 | 3,039 | 102 | 103 | 29.794118 | 0.737657 | 0.01382 | 0 | 0.101124 | 0 | 0 | 0.07379 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 1 | 0.078652 | false | 0 | 0.033708 | 0 | 0.213483 | 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 |
d8ad658c4df19c485095900714b12cbc63dc40bd | 544 | py | Python | setup.py | farouk-muha/pav_bsc | f12e2365e97146d05a1e60f1a6112bb3e08295dd | [
"MIT"
] | null | null | null | setup.py | farouk-muha/pav_bsc | f12e2365e97146d05a1e60f1a6112bb3e08295dd | [
"MIT"
] | null | null | null | setup.py | farouk-muha/pav_bsc | f12e2365e97146d05a1e60f1a6112bb3e08295dd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('requirements.txt') as f:
install_requires = f.read().strip().split('\n')
# get version from __version__ variable in pav_bsc/__init__.py
from pav_bsc import __version__ as version
setup(
name='pav_bsc',
version=version,
description='Pa... | 25.904762 | 65 | 0.766544 | 75 | 544 | 5.24 | 0.693333 | 0.114504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004158 | 0.115809 | 544 | 20 | 66 | 27.2 | 0.81289 | 0.150735 | 0 | 0 | 0 | 0 | 0.237473 | 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 |
d8adc735050a0fd5a61d2b42aa76a945a006c221 | 2,957 | py | Python | components/resnet-cmle/resnet/deploy.py | cbreuel/pipelines | 22a85b4af642b896b57293c0d15d0f20c995be99 | [
"Apache-2.0"
] | 9 | 2019-03-28T02:20:45.000Z | 2021-12-01T22:43:36.000Z | components/resnet-cmle/resnet/deploy.py | cbreuel/pipelines | 22a85b4af642b896b57293c0d15d0f20c995be99 | [
"Apache-2.0"
] | 2 | 2019-10-17T16:51:43.000Z | 2019-10-18T01:18:35.000Z | components/resnet-cmle/resnet/deploy.py | cbreuel/pipelines | 22a85b4af642b896b57293c0d15d0f20c995be99 | [
"Apache-2.0"
] | 4 | 2019-04-11T12:09:59.000Z | 2020-10-11T15:53:53.000Z | # Copyright 2018 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 41.069444 | 131 | 0.600609 | 347 | 2,957 | 5.017291 | 0.420749 | 0.034463 | 0.058587 | 0.031017 | 0.080414 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006185 | 0.289144 | 2,957 | 72 | 132 | 41.069444 | 0.822074 | 0.195807 | 0 | 0.163265 | 0 | 0 | 0.249894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0.020408 | 0.142857 | 0 | 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 |
d8adf264910375ea507ebd88b7147dd9829ca904 | 3,506 | py | Python | tests/test_quickbooks_payroll.py | fulfilio/trytond-quickbooks-payroll | 18148e6f366025268b4335a89f07d2506ad5f446 | [
"BSD-3-Clause"
] | null | null | null | tests/test_quickbooks_payroll.py | fulfilio/trytond-quickbooks-payroll | 18148e6f366025268b4335a89f07d2506ad5f446 | [
"BSD-3-Clause"
] | null | null | null | tests/test_quickbooks_payroll.py | fulfilio/trytond-quickbooks-payroll | 18148e6f366025268b4335a89f07d2506ad5f446 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
tests/test_quickbooks_payroll.py
"""
import csv
import tempfile
class TestQuickBooksPayroll:
def test_views(self, install_module):
"Test all tryton views"
from trytond.tests.test_tryton import test_view
test_view('quickbooks_payroll')
def test_depend... | 31.303571 | 78 | 0.553622 | 350 | 3,506 | 5.351429 | 0.302857 | 0.076348 | 0.063534 | 0.033636 | 0.148959 | 0.100908 | 0.086492 | 0.048051 | 0.048051 | 0 | 0 | 0.014114 | 0.312892 | 3,506 | 111 | 79 | 31.585586 | 0.763387 | 0.061894 | 0 | 0.222222 | 0 | 0 | 0.195892 | 0.018756 | 0 | 0 | 0 | 0 | 0.024691 | 1 | 0.037037 | false | 0 | 0.160494 | 0 | 0.209877 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d8aed52f5f4d4d6a14a346f71946749b037d0d84 | 4,284 | py | Python | general/cc12m.py | robvanvolt/DALLE-datasets | 527e54aeac879bc4da669fa5c5b64c9354890728 | [
"MIT"
] | 60 | 2021-05-09T02:51:10.000Z | 2022-03-27T06:36:04.000Z | general/cc12m.py | robvanvolt/DALLE-datasets | 527e54aeac879bc4da669fa5c5b64c9354890728 | [
"MIT"
] | 4 | 2021-07-07T21:24:33.000Z | 2021-11-17T21:54:17.000Z | general/cc12m.py | robvanvolt/DALLE-datasets | 527e54aeac879bc4da669fa5c5b64c9354890728 | [
"MIT"
] | 9 | 2021-05-20T14:38:59.000Z | 2022-02-18T11:51:20.000Z | import pandas as pd
import os
import requests
from pathlib import Path
from PIL import Image
from tqdm import tqdm
from multiprocessing import Pool
import gc
import glob
cc_url = 'https://storage.googleapis.com/conceptual_12m/cc12m.tsv'
root_folder = './'
total = 12423374
maxwidth = 256
maxheight = 256
thread_count = ... | 37.578947 | 137 | 0.635854 | 595 | 4,284 | 4.433613 | 0.29916 | 0.026535 | 0.021228 | 0.024261 | 0.259666 | 0.216831 | 0.184989 | 0.184989 | 0.166035 | 0.166035 | 0 | 0.029325 | 0.211951 | 4,284 | 113 | 138 | 37.911504 | 0.752073 | 0 | 0 | 0.15625 | 0 | 0.010417 | 0.147292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.03125 | 0.09375 | 0.010417 | 0.145833 | 0.072917 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8b00b965eee02af4b8f3676c77e8a154d98eecb | 5,707 | py | Python | src/itint/widget.py | ColorsWind/iTint | 48d18ed42d9ca44caa2c71104cf4f489fe54d98d | [
"MIT"
] | 1 | 2022-01-15T07:01:41.000Z | 2022-01-15T07:01:41.000Z | src/itint/widget.py | ColorsWind/iTint | 48d18ed42d9ca44caa2c71104cf4f489fe54d98d | [
"MIT"
] | null | null | null | src/itint/widget.py | ColorsWind/iTint | 48d18ed42d9ca44caa2c71104cf4f489fe54d98d | [
"MIT"
] | null | null | null | import numpy as np
from PySide2.QtCore import Qt, QUrl, QSize, QEventLoop
from PySide2.QtGui import QPixmap, QDropEvent, QDragEnterEvent, QMouseEvent, QResizeEvent, QHideEvent
from PySide2.QtWidgets import QApplication, QWidget, QHBoxLayout, QFileDialog, QWidgetItem
from itint.octree import Octree
from itint.ui_widge... | 39.909091 | 109 | 0.656913 | 611 | 5,707 | 5.92144 | 0.255319 | 0.056385 | 0.084577 | 0.058043 | 0.264234 | 0.209232 | 0.153676 | 0.153676 | 0.153676 | 0.153676 | 0 | 0.003514 | 0.251971 | 5,707 | 142 | 110 | 40.190141 | 0.843992 | 0.003855 | 0 | 0.278261 | 0 | 0 | 0.007394 | 0.005458 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121739 | false | 0 | 0.078261 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d8b41261c2c681fcdb62fde84ac5266ed078c65f | 816 | py | Python | hwtLib/examples/statements/constDriver_test.py | optical-o/hwtLib | edad621f5ad4cdbea20a5751ff4468979afe2f77 | [
"MIT"
] | null | null | null | hwtLib/examples/statements/constDriver_test.py | optical-o/hwtLib | edad621f5ad4cdbea20a5751ff4468979afe2f77 | [
"MIT"
] | null | null | null | hwtLib/examples/statements/constDriver_test.py | optical-o/hwtLib | edad621f5ad4cdbea20a5751ff4468979afe2f77 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from hwt.hdl.constants import Time
from hwt.simulator.simTestCase import SingleUnitSimTestCase
from hwtLib.examples.statements.constDriver import ConstDriverUnit
class ConstDriverTC(SingleUnitSimTestCase):
@classmethod
def getUnit(cls):
cls.u = ConstDri... | 26.322581 | 66 | 0.699755 | 93 | 816 | 6.010753 | 0.612903 | 0.025045 | 0.0322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016541 | 0.185049 | 816 | 30 | 67 | 27.2 | 0.82406 | 0.11152 | 0 | 0 | 0 | 0 | 0.01108 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.105263 | false | 0 | 0.210526 | 0 | 0.421053 | 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 |
d8b44009ab655e1119911f81cd812061c34aa19f | 491 | py | Python | tutorial_web_scraper.py | mariusciurea/webscraping-tutorials | 9fb53252c4cc08d5e2b8b0d46e67c2374e7c84c5 | [
"Unlicense"
] | null | null | null | tutorial_web_scraper.py | mariusciurea/webscraping-tutorials | 9fb53252c4cc08d5e2b8b0d46e67c2374e7c84c5 | [
"Unlicense"
] | null | null | null | tutorial_web_scraper.py | mariusciurea/webscraping-tutorials | 9fb53252c4cc08d5e2b8b0d46e67c2374e7c84c5 | [
"Unlicense"
] | null | null | null | import requests
from bs4 import BeautifulSoup
# with open('index.html', 'rb') as hf:
# soup = BeautifulSoup(hf, 'html.parser')
# print(soup.prettify())
# print(soup.head.title.text)
# print(soup.li.a.h2.text)
# print(soup.li.a.p.text)
source_code = requests.get('https://mariusciurea.github.io/links/')
... | 28.882353 | 83 | 0.684318 | 72 | 491 | 4.625 | 0.638889 | 0.108108 | 0.078078 | 0.09009 | 0.096096 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004796 | 0.150713 | 491 | 16 | 84 | 30.6875 | 0.793765 | 0.366599 | 0 | 0 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d8ba6e17bc85f2ea591e7b78c0b6ba596ae2eb60 | 2,866 | py | Python | google_assist.py | eholic/dash-assistant | 97204e1402fbb742fb7838e995110a22ea814ab5 | [
"MIT"
] | null | null | null | google_assist.py | eholic/dash-assistant | 97204e1402fbb742fb7838e995110a22ea814ab5 | [
"MIT"
] | null | null | null | google_assist.py | eholic/dash-assistant | 97204e1402fbb742fb7838e995110a22ea814ab5 | [
"MIT"
] | null | null | null | import os
import sys
import requests
import logging
import json
import google.auth.transport.grpc
import google.auth.transport.requests
import google.oauth2.credentials
from google.assistant.embedded.v1alpha2 import (
embedded_assistant_pb2,
embedded_assistant_pb2_grpc
)
from config import Config
# Ref: htt... | 34.95122 | 135 | 0.665736 | 316 | 2,866 | 5.756329 | 0.386076 | 0.074766 | 0.08796 | 0.042881 | 0.04508 | 0.04508 | 0.04508 | 0 | 0 | 0 | 0 | 0.0127 | 0.2582 | 2,866 | 81 | 136 | 35.382716 | 0.842897 | 0.075715 | 0 | 0.046154 | 0 | 0 | 0.03177 | 0.012103 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0 | 0.153846 | 0 | 0.230769 | 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 |
d8bd67134893a262683665a0dbc9878a51447c79 | 15,809 | py | Python | menu.py | Jasonlmx/Touhou-Star-Salvation | a8804450625957af7b81d0075873a68708374db8 | [
"MIT"
] | 4 | 2021-10-15T13:18:43.000Z | 2022-03-05T10:49:47.000Z | menu.py | Jasonlmx/Touhou-Star-Salvation | a8804450625957af7b81d0075873a68708374db8 | [
"MIT"
] | null | null | null | menu.py | Jasonlmx/Touhou-Star-Salvation | a8804450625957af7b81d0075873a68708374db8 | [
"MIT"
] | 1 | 2021-11-29T04:17:32.000Z | 2021-11-29T04:17:32.000Z | import pygame,sys
import random
import math
from pygame.locals import *
from pygame.sprite import Group
import gF
import Bullet
import DADcharacter
import Slave
import global_var
import Effect
import Item
import gameRule
class titleStar(pygame.sprite.Sprite):
def __init__(self):
super(titleStar,self).__in... | 42.727027 | 161 | 0.567651 | 1,953 | 15,809 | 4.456221 | 0.119304 | 0.053775 | 0.056532 | 0.080087 | 0.531541 | 0.493853 | 0.444904 | 0.427439 | 0.395266 | 0.369298 | 0 | 0.040084 | 0.310393 | 15,809 | 370 | 162 | 42.727027 | 0.75821 | 0.021001 | 0 | 0.427746 | 0 | 0 | 0.042475 | 0.005883 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060694 | false | 0 | 0.037572 | 0 | 0.106936 | 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 |
d8c1279c1f035fd1c0ca93502531ba20b1cf610a | 2,323 | py | Python | app/product/tests/test_product_api.py | RamzeyXD/varanus-ecommerce-api | 4688fc393b73d70a4923d471006caee2ec624f68 | [
"MIT"
] | null | null | null | app/product/tests/test_product_api.py | RamzeyXD/varanus-ecommerce-api | 4688fc393b73d70a4923d471006caee2ec624f68 | [
"MIT"
] | 5 | 2021-03-19T04:52:44.000Z | 2021-09-22T19:12:07.000Z | app/product/tests/test_product_api.py | RamzeyXD/varanus-ecommerce-api | 4688fc393b73d70a4923d471006caee2ec624f68 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.urls import reverse
from django.test import TestCase
from rest_framework import status
from rest_framework.test import APIClient
from core.models import Product
from product.serializers import ProductSerializer
PRODUCTS_URL = reverse('product:product-list'... | 28.679012 | 71 | 0.671545 | 262 | 2,323 | 5.828244 | 0.358779 | 0.039293 | 0.02554 | 0.031434 | 0.125737 | 0.125737 | 0.085134 | 0.085134 | 0.085134 | 0.085134 | 0 | 0.007795 | 0.226862 | 2,323 | 80 | 72 | 29.0375 | 0.842428 | 0.112355 | 0 | 0.117647 | 0 | 0 | 0.103159 | 0.010859 | 0 | 0 | 0 | 0 | 0.078431 | 1 | 0.137255 | false | 0.019608 | 0.137255 | 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 |
d8c141a49a479e74699dc9b65661ce60383e9e67 | 4,686 | py | Python | src/face_feature.py | ryota0051/facial_expressions | 763f1108fc56f5360fbd6603e0dc3e40c27a3d1b | [
"MIT"
] | null | null | null | src/face_feature.py | ryota0051/facial_expressions | 763f1108fc56f5360fbd6603e0dc3e40c27a3d1b | [
"MIT"
] | null | null | null | src/face_feature.py | ryota0051/facial_expressions | 763f1108fc56f5360fbd6603e0dc3e40c27a3d1b | [
"MIT"
] | null | null | null | import os
from typing import Dict, Tuple, List
import json
import time
import tensorflow as tf
import numpy as np
from type_def import BOUNDARY_BOX_TYPE, PERSONAL_INFO_TYPE
class FaceFeatureExtractor():
def __init__(self, base_model_path: str, nationality_model_path: str, label_path: str) -> None:
'''必要な... | 28.573171 | 116 | 0.522621 | 412 | 4,686 | 5.682039 | 0.36165 | 0.038445 | 0.01666 | 0.01965 | 0.058095 | 0.026484 | 0 | 0 | 0 | 0 | 0 | 0.009299 | 0.357448 | 4,686 | 163 | 117 | 28.748466 | 0.768183 | 0.33312 | 0 | 0 | 0 | 0 | 0.039241 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 1 | 0.152174 | false | 0 | 0.152174 | 0 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d8c15c388c58bbae49aac02c97bdee96b885e94e | 3,234 | py | Python | app/main/routes.py | Tsolmon1/company | 270d88e40e0c709247a7338cd41942b0ceb67c5e | [
"MIT"
] | null | null | null | app/main/routes.py | Tsolmon1/company | 270d88e40e0c709247a7338cd41942b0ceb67c5e | [
"MIT"
] | null | null | null | app/main/routes.py | Tsolmon1/company | 270d88e40e0c709247a7338cd41942b0ceb67c5e | [
"MIT"
] | null | null | null | from datetime import datetime
from flask import render_template, flash, redirect, url_for, request, g, \
jsonify, current_app
from flask_login import current_user, login_required
from flask_babel import _, get_locale
#from guess_language import guess_language
from app import db
from app.main.forms import CompanyFor... | 32.019802 | 141 | 0.682746 | 425 | 3,234 | 5.002353 | 0.237647 | 0.0381 | 0.023518 | 0.039981 | 0.419567 | 0.327375 | 0.194732 | 0.11524 | 0.057385 | 0.057385 | 0 | 0.002728 | 0.206555 | 3,234 | 101 | 142 | 32.019802 | 0.825799 | 0.087508 | 0 | 0.135593 | 0 | 0 | 0.152069 | 0.079655 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.135593 | 0 | 0.305085 | 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 |
d8c4609c13c1b5b024cb78f178101d21b07a60ae | 31,034 | py | Python | opentisim/containers/container_defaults.py | TUDelft-CITG/OpenTISim | 443b20572eb2aae2f1909a8a01e95e31be53b675 | [
"MIT"
] | 7 | 2020-02-15T01:34:29.000Z | 2022-02-28T01:24:05.000Z | opentisim/containers/container_defaults.py | TUDelft-CITG/OpenTISim | 443b20572eb2aae2f1909a8a01e95e31be53b675 | [
"MIT"
] | 2 | 2020-02-14T18:44:31.000Z | 2020-04-06T15:39:17.000Z | opentisim/containers/container_defaults.py | TUDelft-CITG/OpenTISim | 443b20572eb2aae2f1909a8a01e95e31be53b675 | [
"MIT"
] | 2 | 2019-07-19T08:50:31.000Z | 2020-02-05T11:14:07.000Z | """
Main generic object classes:
- 1. Quay_wall
- 2. Berth
- 3. Cyclic_Unloader
- STS crane
- 4. Horizontal transport
- Tractor trailer
- 5. Commodity
- TEU
- 6. Containers
- Laden
- Reefer
- Empty
- OOG
- 7. Laden and reefer stack
- 8. Stack equipment
- 9. Empty stack
- 10. OOG stack
- 11. ... | 43.343575 | 142 | 0.444512 | 3,092 | 31,034 | 4.278137 | 0.136805 | 0.022679 | 0.031448 | 0.039915 | 0.587239 | 0.564636 | 0.515573 | 0.481403 | 0.442849 | 0.436045 | 0 | 0.09082 | 0.439421 | 31,034 | 715 | 143 | 43.404196 | 0.669541 | 0.20571 | 0 | 0.522998 | 0 | 0 | 0.296287 | 0.019698 | 0 | 0 | 0 | 0.001399 | 0 | 1 | 0 | false | 0 | 0.001704 | 0 | 0.001704 | 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 |
d8c9e071e19e41968b2a38fb82cb08379e2983f3 | 12,413 | py | Python | pyoogle/preprocessing/crawl/crawler.py | DanDits/Pyoogle | f860dffb574f8629d3e894074450fdcb76547a03 | [
"Apache-2.0"
] | null | null | null | pyoogle/preprocessing/crawl/crawler.py | DanDits/Pyoogle | f860dffb574f8629d3e894074450fdcb76547a03 | [
"Apache-2.0"
] | null | null | null | pyoogle/preprocessing/crawl/crawler.py | DanDits/Pyoogle | f860dffb574f8629d3e894074450fdcb76547a03 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 6 12:49:02 2016
@author: daniel
"""
import logging
import threading # For main processing thread
import urllib # For downloading websites
import urllib.error
import urllib.request
from concurrent.futures import ThreadPoolExecutor # each downloads a website
from http.... | 42.077966 | 112 | 0.634174 | 1,546 | 12,413 | 4.930789 | 0.205692 | 0.027286 | 0.023613 | 0.016398 | 0.283878 | 0.173554 | 0.122262 | 0.122262 | 0.103896 | 0.091827 | 0 | 0.004483 | 0.281157 | 12,413 | 294 | 113 | 42.221088 | 0.849826 | 0.152501 | 0 | 0.265217 | 0 | 0 | 0.092098 | 0.004295 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.069565 | 0.008696 | 0.234783 | 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 |
d8caaf44d7f053ff6f28f609749087b123ec4b34 | 2,965 | py | Python | 13.part2.py | elp2/advent_of_code_2018 | 0d359422dd04b0849481796005e97d05c30e9eb4 | [
"Apache-2.0"
] | 1 | 2021-12-02T15:19:36.000Z | 2021-12-02T15:19:36.000Z | 13.part2.py | elp2/advent_of_code_2018 | 0d359422dd04b0849481796005e97d05c30e9eb4 | [
"Apache-2.0"
] | null | null | null | 13.part2.py | elp2/advent_of_code_2018 | 0d359422dd04b0849481796005e97d05c30e9eb4 | [
"Apache-2.0"
] | null | null | null | from collections import defaultdict
def return_default():
return 0
REAL=open("13.txt").readlines()
SAMPLE=open("13.sample2").readlines()
def parse_lines(lines):
return list(map(list, lines))
CARTS = "^>v<"
DIRS = [(0, -1), (1, 0), (0, 1), (-1, 0)]
def cart_positions(start, facing, board):
poses = []
... | 27.201835 | 77 | 0.43204 | 355 | 2,965 | 3.56338 | 0.230986 | 0.012648 | 0.01581 | 0.006324 | 0.151779 | 0.0917 | 0.072727 | 0.072727 | 0.072727 | 0 | 0 | 0.033175 | 0.430691 | 2,965 | 108 | 78 | 27.453704 | 0.716232 | 0.038786 | 0 | 0.186813 | 0 | 0 | 0.026353 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 1 | 0.043956 | false | 0.010989 | 0.010989 | 0.021978 | 0.098901 | 0.043956 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8cb54d17428f4a861ab1eb4f8524561f2936c44 | 844 | py | Python | docs/_downloads/485d1a22616717976d2f85cbaf046db3/plot__jitterdodge_position.py | IKupriyanov-HORIS/lets-plot-docs | 30fd31cb03dc649a03518b0c9348639ebfe09d53 | [
"MIT"
] | null | null | null | docs/_downloads/485d1a22616717976d2f85cbaf046db3/plot__jitterdodge_position.py | IKupriyanov-HORIS/lets-plot-docs | 30fd31cb03dc649a03518b0c9348639ebfe09d53 | [
"MIT"
] | null | null | null | docs/_downloads/485d1a22616717976d2f85cbaf046db3/plot__jitterdodge_position.py | IKupriyanov-HORIS/lets-plot-docs | 30fd31cb03dc649a03518b0c9348639ebfe09d53 | [
"MIT"
] | null | null | null | """
Jitterdodge Position
====================
Position adjustments determine how to arrange geoms that would otherwise
occupy the same space.
Simultaneously dodge and jitter in one function:
``position_jitterdodge()``.
See
`position_jitterdodge() <https://jetbrains.github.io/lets-plot-docs/pages... | 27.225806 | 151 | 0.703791 | 103 | 844 | 5.563107 | 0.669903 | 0.165794 | 0.041885 | 0.094241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00277 | 0.14455 | 844 | 31 | 152 | 27.225806 | 0.790859 | 0.569905 | 0 | 0 | 0 | 0.142857 | 0.329193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d8ceaa47207dcd451d3a6b75d0d1b483e1ba9218 | 2,537 | py | Python | mask_example/classification_vars.py | ami-a/MaskDetection | 9df329a24a987e63331c17db154319b3ebcaad74 | [
"MIT"
] | 1 | 2021-04-09T09:08:33.000Z | 2021-04-09T09:08:33.000Z | mask_example/classification_vars.py | ami-a/MaskDetection | 9df329a24a987e63331c17db154319b3ebcaad74 | [
"MIT"
] | null | null | null | mask_example/classification_vars.py | ami-a/MaskDetection | 9df329a24a987e63331c17db154319b3ebcaad74 | [
"MIT"
] | null | null | null | """loading the classification model variables for the detector object"""
import numpy as np
import cv2
from TrackEverything.tool_box import ClassificationVars
def get_class_vars(class_model_path):
"""loading the classification model variables for the detector object
We define here the model interpolation functi... | 41.590164 | 97 | 0.658652 | 330 | 2,537 | 4.972727 | 0.421212 | 0.092626 | 0.053626 | 0.042048 | 0.076782 | 0.070689 | 0.070689 | 0.070689 | 0.070689 | 0 | 0 | 0.023433 | 0.276705 | 2,537 | 60 | 98 | 42.283333 | 0.870845 | 0.564446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0 | 0.318182 | 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 |
d8d26259abf1d70bfe1abffb2493230cee42b319 | 668 | py | Python | detector/urls.py | SPIN-RD/data_analysis | b2ec9ca008781f3015ec3780a858de0dac4549b9 | [
"MIT"
] | null | null | null | detector/urls.py | SPIN-RD/data_analysis | b2ec9ca008781f3015ec3780a858de0dac4549b9 | [
"MIT"
] | null | null | null | detector/urls.py | SPIN-RD/data_analysis | b2ec9ca008781f3015ec3780a858de0dac4549b9 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import (
MeasurementCreateView,
MeasurementRetrieveView,
energy_spectrum_analysis,
half_life_analysis,
index,
)
urlpatterns = [
path("api/measurements/", MeasurementCreateView.as_view()),
path(
"api/measurements/<str:device_id>/<str:mode>", ... | 23.857143 | 88 | 0.646707 | 67 | 668 | 6.253731 | 0.373134 | 0.133652 | 0.157518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22006 | 668 | 27 | 89 | 24.740741 | 0.804223 | 0 | 0 | 0.4 | 0 | 0 | 0.270958 | 0.211078 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 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 |
d8d586caec5e48f58983b527adfdcf89eb123054 | 6,604 | py | Python | bin/pylint_runner.py | PickBas/meta-social | f6fb0a50c30e240086a75917b705dfdc71dbebf9 | [
"MIT"
] | null | null | null | bin/pylint_runner.py | PickBas/meta-social | f6fb0a50c30e240086a75917b705dfdc71dbebf9 | [
"MIT"
] | 15 | 2020-06-07T07:58:05.000Z | 2022-01-19T16:53:47.000Z | bin/pylint_runner.py | PickBas/meta-social | f6fb0a50c30e240086a75917b705dfdc71dbebf9 | [
"MIT"
] | null | null | null | '''
The MIT License (MIT)
Copyright (c) 2015 Matthew Peveler
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... | 36.087432 | 139 | 0.629164 | 842 | 6,604 | 4.789786 | 0.30285 | 0.024795 | 0.016861 | 0.011158 | 0.062485 | 0.0243 | 0 | 0 | 0 | 0 | 0 | 0.003151 | 0.279073 | 6,604 | 182 | 140 | 36.285714 | 0.84394 | 0.271048 | 0 | 0.073395 | 0 | 0 | 0.078764 | 0.005293 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073395 | false | 0 | 0.06422 | 0.009174 | 0.211009 | 0.045872 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8d6b4d53e13b0fd18dcd2609163a130f5b31c93 | 1,311 | py | Python | mysite/polls/migrations/0007_auto_20150314_0332.py | aaronkrolik/rule46 | 20d3e384768caced5b76f37e8fdefc2e9fb129d6 | [
"Apache-2.0"
] | null | null | null | mysite/polls/migrations/0007_auto_20150314_0332.py | aaronkrolik/rule46 | 20d3e384768caced5b76f37e8fdefc2e9fb129d6 | [
"Apache-2.0"
] | null | null | null | mysite/polls/migrations/0007_auto_20150314_0332.py | aaronkrolik/rule46 | 20d3e384768caced5b76f37e8fdefc2e9fb129d6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('polls', '0006_auto_20150314_0320'),
]
operations = [
migrations.CreateModel(
name='Accolade',
fields... | 29.133333 | 114 | 0.536995 | 115 | 1,311 | 5.93913 | 0.495652 | 0.065886 | 0.052709 | 0.118594 | 0.338214 | 0.338214 | 0.175695 | 0.175695 | 0.175695 | 0.175695 | 0 | 0.030928 | 0.334096 | 1,311 | 44 | 115 | 29.795455 | 0.751432 | 0.016018 | 0 | 0.368421 | 0 | 0 | 0.088509 | 0.017857 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.131579 | 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 |
d8d80406f757e14704187e04f0b5d07b32575e58 | 1,071 | py | Python | core/objs/zona.py | aanacleto/erp- | 9c2d5388248cfe4b8cdb8454f6f47df4cb521f0e | [
"MIT"
] | null | null | null | core/objs/zona.py | aanacleto/erp- | 9c2d5388248cfe4b8cdb8454f6f47df4cb521f0e | [
"MIT"
] | null | null | null | core/objs/zona.py | aanacleto/erp- | 9c2d5388248cfe4b8cdb8454f6f47df4cb521f0e | [
"MIT"
] | 2 | 2017-12-04T14:59:22.000Z | 2018-12-06T18:50:29.000Z | # !/usr/bin/env python3
# -*- encoding: utf-8 -*-
"""
ERP+
"""
__author__ = 'António Anacleto'
__credits__ = []
__version__ = "1.0"
__maintainer__ = "António Anacleto"
__status__ = "Development"
__model_name__ = 'zona.Zona'
import auth, base_models
from orm import *
from form import *
class Zona(Model, View):
def ... | 29.75 | 164 | 0.605042 | 119 | 1,071 | 4.773109 | 0.554622 | 0.06338 | 0.045775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0.238095 | 1,071 | 35 | 165 | 30.6 | 0.686275 | 0.047619 | 0 | 0 | 0 | 0 | 0.20099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.111111 | 0 | 0.185185 | 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 |
d8d85cecefde2c0134f937fbe84f1d254b9a273b | 4,383 | py | Python | biothings/hub/upgrade.py | sirloon/biothings.api | 8a981fa2151e368d0ca76aaf226eb565d794d4fb | [
"Apache-2.0"
] | null | null | null | biothings/hub/upgrade.py | sirloon/biothings.api | 8a981fa2151e368d0ca76aaf226eb565d794d4fb | [
"Apache-2.0"
] | null | null | null | biothings/hub/upgrade.py | sirloon/biothings.api | 8a981fa2151e368d0ca76aaf226eb565d794d4fb | [
"Apache-2.0"
] | null | null | null | import sys
from biothings.utils.hub_db import get_src_dump, get_data_plugin, get_hub_db_conn, backup, restore
from biothings import config
logging = config.logger
def migrate_0dot1_to_0dot2():
"""
mongodb src_dump/data_plugin changed:
1. "data_folder" and "release" under "download"
2. "data_fo... | 44.72449 | 145 | 0.531371 | 525 | 4,383 | 4.293333 | 0.257143 | 0.048802 | 0.006655 | 0.022626 | 0.213398 | 0.116238 | 0.116238 | 0.090506 | 0.035492 | 0.035492 | 0 | 0.004806 | 0.335387 | 4,383 | 97 | 146 | 45.185567 | 0.768967 | 0.080995 | 0 | 0.216216 | 0 | 0.027027 | 0.254395 | 0.006027 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.040541 | 0 | 0.067568 | 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 |
d8d8d4bab6bca93fe7ec5b879bc940d20a949497 | 22,052 | py | Python | capirca/lib/gce.py | supertylerc/capirca | 31235e964c9893f3f3432d84604fbaa727384047 | [
"Apache-2.0"
] | null | null | null | capirca/lib/gce.py | supertylerc/capirca | 31235e964c9893f3f3432d84604fbaa727384047 | [
"Apache-2.0"
] | null | null | null | capirca/lib/gce.py | supertylerc/capirca | 31235e964c9893f3f3432d84604fbaa727384047 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# unless required by applicable law or a... | 38.02069 | 83 | 0.640169 | 2,853 | 22,052 | 4.809674 | 0.173502 | 0.043725 | 0.018365 | 0.027984 | 0.289899 | 0.224457 | 0.185396 | 0.161347 | 0.157557 | 0.080601 | 0 | 0.006492 | 0.266597 | 22,052 | 579 | 84 | 38.086356 | 0.841959 | 0.232269 | 0 | 0.227041 | 0 | 0 | 0.175992 | 0.004603 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02551 | false | 0 | 0.02551 | 0 | 0.135204 | 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 |
d8dab0f4aacf85ce7a8eb87b58a351fa764a3691 | 134,339 | py | Python | myhabitatagent.py | karkuspeter/habitat-challenge | 4b61be2b24b43d03246c94435febc691b6172ab6 | [
"MIT"
] | null | null | null | myhabitatagent.py | karkuspeter/habitat-challenge | 4b61be2b24b43d03246c94435febc691b6172ab6 | [
"MIT"
] | null | null | null | myhabitatagent.py | karkuspeter/habitat-challenge | 4b61be2b24b43d03246c94435febc691b6172ab6 | [
"MIT"
] | null | null | null | import argparse
import habitat
import random
import numpy as np
import scipy
import os
import cv2
import time
from habitat.tasks.nav.shortest_path_follower import ShortestPathFollower
from habitat.utils.visualizations import maps
from gibsonagents.expert import Expert
from gibsonagents.pathplanners import Dstar_planner... | 54.78752 | 241 | 0.615592 | 18,049 | 134,339 | 4.278741 | 0.066319 | 0.034379 | 0.014503 | 0.012172 | 0.545975 | 0.444016 | 0.367514 | 0.328279 | 0.298354 | 0.261877 | 0 | 0.026285 | 0.283224 | 134,339 | 2,451 | 242 | 54.809874 | 0.775732 | 0.197009 | 0 | 0.246377 | 0 | 0.002415 | 0.04629 | 0.002715 | 0 | 0 | 0 | 0.000408 | 0.049517 | 1 | 0.013889 | false | 0.001208 | 0.019928 | 0.000604 | 0.052536 | 0.024155 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8db1da409aa926ae0d4a1dd1326712356ef588d | 2,890 | py | Python | examples/nightlight/nightlight.py | pimoroni/breakout-garden | 15f6886a1d011363cc660df1a350fd23d6cf4b78 | [
"MIT"
] | 68 | 2018-08-20T21:45:01.000Z | 2022-03-17T20:45:47.000Z | examples/nightlight/nightlight.py | pimoroni/breakout-garden | 15f6886a1d011363cc660df1a350fd23d6cf4b78 | [
"MIT"
] | 24 | 2018-08-20T14:04:13.000Z | 2022-03-09T12:26:24.000Z | examples/nightlight/nightlight.py | pimoroni/breakout-garden | 15f6886a1d011363cc660df1a350fd23d6cf4b78 | [
"MIT"
] | 14 | 2018-08-25T13:33:49.000Z | 2021-12-09T09:02:35.000Z | #!/usr/bin/env python3
import time
from ltr559 import LTR559
from rgbmatrix5x5 import RGBMatrix5x5
print("""This Pimoroni Breakout Garden example requires an
LTR-559 Light and Proximity Breakout and a 5x5 RGB Matrix Breakout.
This example creates a little nightlight that can be toggled on or
off by tapping the proxi... | 27.788462 | 67 | 0.623529 | 386 | 2,890 | 4.585492 | 0.331606 | 0.045763 | 0.039548 | 0.036158 | 0.19435 | 0.177401 | 0.167232 | 0.062147 | 0.062147 | 0.062147 | 0 | 0.041667 | 0.310727 | 2,890 | 103 | 68 | 28.058252 | 0.846888 | 0.215225 | 0 | 0.358209 | 0 | 0 | 0.175922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0.014925 | 0.044776 | 0 | 0.059701 | 0.074627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8de1a0557c16a820290ec65f2861645cf8269e4 | 6,595 | py | Python | leaguedirector/sequence/sequenceTrackView.py | santutu/league-director | 631ab416e31a0391ab207f9b657638c8e350a48c | [
"Apache-2.0"
] | null | null | null | leaguedirector/sequence/sequenceTrackView.py | santutu/league-director | 631ab416e31a0391ab207f9b657638c8e350a48c | [
"Apache-2.0"
] | null | null | null | leaguedirector/sequence/sequenceTrackView.py | santutu/league-director | 631ab416e31a0391ab207f9b657638c8e350a48c | [
"Apache-2.0"
] | null | null | null | import copy
import statistics
from operator import attrgetter
from PySide2.QtCore import Signal, Qt, QEvent
from PySide2.QtGui import QPen, QMouseEvent
from PySide2.QtWidgets import QGraphicsView, QGraphicsScene, QAbstractScrollArea, QApplication, QGraphicsItem
from leaguedirector.libs.memoryCache import MemoryCache
... | 40.962733 | 112 | 0.660197 | 660 | 6,595 | 6.575758 | 0.239394 | 0.019355 | 0.009217 | 0.010138 | 0.290553 | 0.236175 | 0.204378 | 0.186406 | 0.119355 | 0.119355 | 0 | 0.004796 | 0.241243 | 6,595 | 160 | 113 | 41.21875 | 0.86251 | 0 | 0 | 0.214815 | 0 | 0 | 0.010159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.088889 | 0.014815 | 0.274074 | 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 |
d8de56f1954539d2d33e25fa9d9007b69553e370 | 23,746 | py | Python | annealed_flow_transport/flows.py | LaudateCorpus1/annealed_flow_transport | 28f348bb41e3acec5bc925355063d476f2e2aea2 | [
"Apache-2.0"
] | 23 | 2021-08-13T14:00:10.000Z | 2022-02-15T12:44:20.000Z | annealed_flow_transport/flows.py | deepmind/annealed_flow_transport | 28f348bb41e3acec5bc925355063d476f2e2aea2 | [
"Apache-2.0"
] | 1 | 2021-10-05T16:19:25.000Z | 2021-10-05T16:19:25.000Z | annealed_flow_transport/flows.py | LaudateCorpus1/annealed_flow_transport | 28f348bb41e3acec5bc925355063d476f2e2aea2 | [
"Apache-2.0"
] | 4 | 2021-10-05T16:14:58.000Z | 2022-01-03T15:17:36.000Z | # Copyright 2020 DeepMind Technologies Limited.
#
# 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... | 38.361874 | 88 | 0.67902 | 3,101 | 23,746 | 4.868752 | 0.13802 | 0.016691 | 0.018479 | 0.012717 | 0.477679 | 0.434826 | 0.356736 | 0.309246 | 0.282951 | 0.238442 | 0 | 0.005879 | 0.240714 | 23,746 | 618 | 89 | 38.423948 | 0.831503 | 0.235703 | 0 | 0.312662 | 0 | 0 | 0.022103 | 0.002805 | 0 | 0 | 0 | 0 | 0.010336 | 1 | 0.098191 | false | 0.002584 | 0.020672 | 0.010336 | 0.193798 | 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 |
d8df2a64ed17e68830f228cf62337f3dea5df521 | 7,373 | py | Python | 2.ReinforcementLearning/CartPole/CartPole-PPO/cartpole_ppo.py | link-kut/deeplink_public | 688c379bfeb63156e865d78d0428f97d7d203cc1 | [
"MIT"
] | null | null | null | 2.ReinforcementLearning/CartPole/CartPole-PPO/cartpole_ppo.py | link-kut/deeplink_public | 688c379bfeb63156e865d78d0428f97d7d203cc1 | [
"MIT"
] | 11 | 2020-01-28T22:33:49.000Z | 2022-03-11T23:41:08.000Z | 2.ReinforcementLearning/CartPole/CartPole-PPO/cartpole_ppo.py | link-kut/deeplink_public | 688c379bfeb63156e865d78d0428f97d7d203cc1 | [
"MIT"
] | 2 | 2019-06-01T04:14:52.000Z | 2020-05-31T08:13:23.000Z | # Initial framework taken from https://github.com/OctThe16th/PPO-Keras/blob/master/Main.py
import numpy as np
import gym
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Input, Dense
from tensorflow.keras import backend as K
from tensorflow.keras.optimizers import Adam
import tensorflow as... | 30.720833 | 104 | 0.563814 | 886 | 7,373 | 4.527088 | 0.215576 | 0.041137 | 0.033159 | 0.023934 | 0.242583 | 0.150835 | 0.10197 | 0.078783 | 0.059835 | 0.059835 | 0 | 0.021544 | 0.320087 | 7,373 | 240 | 105 | 30.720833 | 0.778576 | 0.052489 | 0 | 0.20765 | 0 | 0 | 0.023772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060109 | false | 0 | 0.065574 | 0 | 0.169399 | 0.027322 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8df48a2c6778c32363c444430a9dcd1859230a7 | 8,721 | py | Python | models/san_lowrank.py | LegionChang/CoTNet | b1bc456c0b13b282b807d1082a1598b71014b4fe | [
"Apache-2.0"
] | 360 | 2021-07-26T07:23:29.000Z | 2022-03-16T03:03:25.000Z | python_developer_tools/cv/bases/conv/CoTNet/CoTNet-master/models/san_lowrank.py | HonestyBrave/python_developer_tools | fc0dcf5c4ef088e2e535206dc82f09bbfd01f280 | [
"Apache-2.0"
] | 22 | 2021-07-29T15:05:00.000Z | 2022-03-17T04:28:14.000Z | python_developer_tools/cv/bases/conv/CoTNet/CoTNet-master/models/san_lowrank.py | HonestyBrave/python_developer_tools | fc0dcf5c4ef088e2e535206dc82f09bbfd01f280 | [
"Apache-2.0"
] | 47 | 2021-07-27T02:14:21.000Z | 2022-02-25T09:15:12.000Z | import math
import numpy as np
import torch
from torch import nn as nn
from config import IMAGENET_DEFAULT_MEAN, IMAGENET_DEFAULT_STD
from .helpers import build_model_with_cfg
from .layers import SelectiveKernelConv, ConvBnAct, create_attn
from .registry import register_model
from .resnet import ResNet
from .layers im... | 44.269036 | 155 | 0.624928 | 1,306 | 8,721 | 3.981623 | 0.124809 | 0.103846 | 0.061923 | 0.031154 | 0.551346 | 0.470962 | 0.395769 | 0.338077 | 0.280962 | 0.2125 | 0 | 0.040728 | 0.231395 | 8,721 | 197 | 156 | 44.269036 | 0.735044 | 0.045522 | 0 | 0.178344 | 0 | 0 | 0.009737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082803 | false | 0 | 0.070064 | 0.019108 | 0.235669 | 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 |
d8e1107cf7ccb8c88d2d79f53d1ffccc5940049b | 1,262 | py | Python | qa/admin.py | thebenwaters/openclickio | c5e08d89b37c5f415810dca088803dba25af5e1a | [
"MIT"
] | null | null | null | qa/admin.py | thebenwaters/openclickio | c5e08d89b37c5f415810dca088803dba25af5e1a | [
"MIT"
] | 1 | 2017-10-21T19:29:18.000Z | 2017-10-21T19:29:18.000Z | qa/admin.py | thebenwaters/openclickio | c5e08d89b37c5f415810dca088803dba25af5e1a | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Answer, AnswerOption, AnswerInstance, Question,\
OpenEndedResponse, ClosedEndedQuestion
# Register your models here.
@admin.register(AnswerOption)
class AnswerOptionAdmin(admin.ModelAdmin):
list_display = ('id', 'text')
@admin.register(Answer)
class AnswerAdmin(a... | 29.348837 | 88 | 0.759113 | 142 | 1,262 | 6.65493 | 0.359155 | 0.068783 | 0.100529 | 0.137566 | 0.275132 | 0.245503 | 0.171429 | 0.093122 | 0 | 0 | 0 | 0 | 0.108558 | 1,262 | 43 | 89 | 29.348837 | 0.84 | 0.020602 | 0 | 0.129032 | 0 | 0 | 0.098785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.064516 | 0 | 0.612903 | 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 |
d8e180bf8b4b157c9e27b0c8c553c612b8e2d1ec | 6,212 | py | Python | Bot/Cogs/jisho.py | No767/Rin-Bot | b4c64e0ebccc9465100006ec2cb023eecb425570 | [
"Apache-2.0"
] | null | null | null | Bot/Cogs/jisho.py | No767/Rin-Bot | b4c64e0ebccc9465100006ec2cb023eecb425570 | [
"Apache-2.0"
] | null | null | null | Bot/Cogs/jisho.py | No767/Rin-Bot | b4c64e0ebccc9465100006ec2cb023eecb425570 | [
"Apache-2.0"
] | null | null | null | import re
import discord
import requests
import ujson
from discord.ext import commands
from dotenv import load_dotenv
from jamdict import Jamdict
load_dotenv()
jam = Jamdict()
# Use Array Loop Instead
def kanjiv2(search):
res = jam.lookup(search.replace("\n", " "))
for c in res.chars:
return str(c)... | 33.042553 | 195 | 0.56246 | 732 | 6,212 | 4.702186 | 0.209016 | 0.085415 | 0.067112 | 0.034863 | 0.556944 | 0.531958 | 0.438408 | 0.377978 | 0.311737 | 0.311737 | 0 | 0.010327 | 0.251771 | 6,212 | 187 | 196 | 33.219251 | 0.730207 | 0.012878 | 0 | 0.386667 | 0 | 0.013333 | 0.188285 | 0.040463 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.046667 | 0 | 0.233333 | 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 |
d8e67ae78b6e8735abac8eb28c78858b399f444d | 1,207 | py | Python | scripts/executor_action.py | rezhajulio/azkaban | 974e2e45f4e2f1cd14a3e160f9326aa067b606c2 | [
"Apache-2.0"
] | 3 | 2019-12-19T00:04:36.000Z | 2020-05-07T02:54:56.000Z | scripts/executor_action.py | rezhajulio/azkaban | 974e2e45f4e2f1cd14a3e160f9326aa067b606c2 | [
"Apache-2.0"
] | null | null | null | scripts/executor_action.py | rezhajulio/azkaban | 974e2e45f4e2f1cd14a3e160f9326aa067b606c2 | [
"Apache-2.0"
] | 3 | 2018-03-15T04:54:50.000Z | 2019-07-15T06:33:58.000Z | #!/usr/bin/python3
import requests
import sys
import time
from wait_for_port_ready import wait_for_port_ready
import traceback
import json
action = sys.argv[1]
assert action in ('activate', 'deactivate', 'getStatus', 'shutdown')
url = 'http://localhost:12321/executor?action={action}'.format(action=action)
if actio... | 24.632653 | 77 | 0.591549 | 145 | 1,207 | 4.827586 | 0.462069 | 0.03 | 0.047143 | 0.068571 | 0.254286 | 0.191429 | 0.122857 | 0 | 0 | 0 | 0 | 0.029308 | 0.293289 | 1,207 | 48 | 78 | 25.145833 | 0.791325 | 0.014085 | 0 | 0.114286 | 0 | 0 | 0.163162 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 1 | 0 | false | 0 | 0.171429 | 0 | 0.171429 | 0.114286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8e8a2245da2f5f3c3aaee9fd554b9ee96a551e9 | 22,494 | py | Python | axonius_api_client/http.py | geransmith/axonius_api_client | 09fd564d62f0ddf7aa44db14a509eaafaf0c930f | [
"MIT"
] | null | null | null | axonius_api_client/http.py | geransmith/axonius_api_client | 09fd564d62f0ddf7aa44db14a509eaafaf0c930f | [
"MIT"
] | null | null | null | axonius_api_client/http.py | geransmith/axonius_api_client | 09fd564d62f0ddf7aa44db14a509eaafaf0c930f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""HTTP client."""
import logging
import warnings
from urllib.parse import urlparse, urlunparse
import requests
from .constants import (
LOG_LEVEL_HTTP,
MAX_BODY_LEN,
REQUEST_ATTR_MAP,
RESPONSE_ATTR_MAP,
TIMEOUT_CONNECT,
TIMEOUT_RESPONSE,
)
from .exceptions import HttpE... | 35.479495 | 88 | 0.563973 | 2,584 | 22,494 | 4.744582 | 0.117647 | 0.017618 | 0.020147 | 0.013703 | 0.38385 | 0.296982 | 0.24739 | 0.179038 | 0.143638 | 0.129201 | 0 | 0.001963 | 0.32053 | 22,494 | 633 | 89 | 35.535545 | 0.800183 | 0.375834 | 0 | 0.128114 | 0 | 0 | 0.067447 | 0.014706 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088968 | false | 0.007117 | 0.032028 | 0.003559 | 0.202847 | 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 |
d8edf7cbcf7cedddc71ad9cf461c4f588b745f8c | 427 | py | Python | tests/test.py | alex-panda/PDFCompiler | 3454ee01a6e5ebb2d2bccdcdc32678bf1def895d | [
"MIT"
] | null | null | null | tests/test.py | alex-panda/PDFCompiler | 3454ee01a6e5ebb2d2bccdcdc32678bf1def895d | [
"MIT"
] | null | null | null | tests/test.py | alex-panda/PDFCompiler | 3454ee01a6e5ebb2d2bccdcdc32678bf1def895d | [
"MIT"
] | null | null | null | from fpdf import FPDF
import os
pdf = FPDF()
pdf.add_page()
#pdf.add_font('CMUSerif-UprightItalic', fname=os.path.abspath('./src/Fonts/Computer Modern/cmunui.ttf'), uni=True)
#pdf.set_font('CMUSerif-UprightItalic', size=16)
pdf.add_font('BerlinSansFB-Bold', fname='C:\\Windows\\Fonts\\VINERITC.TTF', uni=True)
pdf.set_f... | 35.583333 | 114 | 0.735363 | 69 | 427 | 4.478261 | 0.608696 | 0.058252 | 0.064725 | 0.084142 | 0.12945 | 0.12945 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.0726 | 427 | 11 | 115 | 38.818182 | 0.765152 | 0.374707 | 0 | 0 | 0 | 0 | 0.422642 | 0.120755 | 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 |
d8f564b8365eed4a07a4dd31237eb8da98838a5f | 3,064 | py | Python | docs/talks/xdc2016/compare_cairo.py | juhapekka/ezbench_work | ac0cb9ccbc205746d4790a9e33e598fbd5732741 | [
"BSD-3-Clause"
] | 3 | 2019-06-25T16:49:25.000Z | 2021-04-30T06:36:54.000Z | docs/talks/xdc2016/compare_cairo.py | juhapekka/ezbench_work | ac0cb9ccbc205746d4790a9e33e598fbd5732741 | [
"BSD-3-Clause"
] | 4 | 2019-12-10T00:50:49.000Z | 2022-03-10T06:18:42.000Z | docs/talks/xdc2016/compare_cairo.py | juhapekka/ezbench_work | ac0cb9ccbc205746d4790a9e33e598fbd5732741 | [
"BSD-3-Clause"
] | 1 | 2021-04-30T06:36:36.000Z | 2021-04-30T06:36:36.000Z | #!/usr/bin/env python3
"""
Copyright (c) 2015, Intel Corporation
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions an... | 41.972603 | 126 | 0.72748 | 437 | 3,064 | 4.98627 | 0.409611 | 0.033043 | 0.019275 | 0.021111 | 0.245067 | 0.190913 | 0.165213 | 0.133089 | 0.133089 | 0.133089 | 0 | 0.009182 | 0.182441 | 3,064 | 72 | 127 | 42.555556 | 0.860679 | 0.514687 | 0 | 0.066667 | 0 | 0 | 0.21327 | 0.039269 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
d8f89ca57ebf1d8154f7f2629edeea9594a44b41 | 9,541 | py | Python | generator/blocks/write_back/base/memory_block_base.py | biarmic/OpenCache | bb9e110e434deb83900de328cc76b63901ba582f | [
"BSD-3-Clause"
] | null | null | null | generator/blocks/write_back/base/memory_block_base.py | biarmic/OpenCache | bb9e110e434deb83900de328cc76b63901ba582f | [
"BSD-3-Clause"
] | null | null | null | generator/blocks/write_back/base/memory_block_base.py | biarmic/OpenCache | bb9e110e434deb83900de328cc76b63901ba582f | [
"BSD-3-Clause"
] | null | null | null | # See LICENSE for licensing information.
#
# Copyright (c) 2021 Regents of the University of California and The Board
# of Regents for the Oklahoma Agricultural and Mechanical College
# (acting for and on behalf of Oklahoma State University)
# All rights reserved.
#
from block_base import block_base
from amaranth impor... | 42.977477 | 110 | 0.570276 | 1,400 | 9,541 | 3.802857 | 0.132857 | 0.021788 | 0.038881 | 0.039068 | 0.633546 | 0.584711 | 0.54846 | 0.480278 | 0.422239 | 0.422239 | 0 | 0.003808 | 0.339482 | 9,541 | 222 | 111 | 42.977477 | 0.841003 | 0.440625 | 0 | 0.455556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004505 | 0 | 1 | 0.133333 | false | 0 | 0.033333 | 0 | 0.177778 | 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 |
d8fb835e064c6068c174aaab9d60c797f66b3c26 | 319 | py | Python | combinatorics/p11069.py | sajjadt/competitive-programming | fb0844afba95383441f0c4c0c3b1a38078d24ec9 | [
"MIT"
] | 10 | 2019-03-29T08:37:10.000Z | 2021-12-29T14:06:57.000Z | combinatorics/p11069.py | sajjadt/competitive-programming | fb0844afba95383441f0c4c0c3b1a38078d24ec9 | [
"MIT"
] | 1 | 2020-07-03T08:25:38.000Z | 2020-07-03T08:25:38.000Z | combinatorics/p11069.py | sajjadt/competitive-programming | fb0844afba95383441f0c4c0c3b1a38078d24ec9 | [
"MIT"
] | 4 | 2019-05-30T16:04:48.000Z | 2020-10-22T21:42:25.000Z |
# f(n) = number of valid sequencess with n items
# f(n) = {"attaching n to"} f(n-2) + {"attaching n-1 to "} f(n-3)
LIMIT = 76 + 1
f_table = [0, 1, 2, 2]
for i in range(LIMIT):
f_table.append(f_table[-2] + f_table[-3])
while True:
try:
n = int(input())
print(f_table[n])
except(EOFError):
break
| 19.9375 | 69 | 0.579937 | 60 | 319 | 3 | 0.516667 | 0.166667 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 0.23511 | 319 | 15 | 70 | 21.266667 | 0.688525 | 0.354232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
d8fee123a93215beee41ff7185b11c6c92c2b7c1 | 3,566 | py | Python | aita/api/course.py | ze-lin/AITA | 0f2fe4e630c37fcc566a54621880b78ec67eefa6 | [
"MIT"
] | null | null | null | aita/api/course.py | ze-lin/AITA | 0f2fe4e630c37fcc566a54621880b78ec67eefa6 | [
"MIT"
] | null | null | null | aita/api/course.py | ze-lin/AITA | 0f2fe4e630c37fcc566a54621880b78ec67eefa6 | [
"MIT"
] | 1 | 2020-12-29T19:45:28.000Z | 2020-12-29T19:45:28.000Z | import datetime, time, os
from flask import Blueprint, jsonify, request, g
from aita.auth import login_required
from aita.db import get_collection
from werkzeug.utils import secure_filename
bp = Blueprint('course', __name__, url_prefix='/course')
@bp.route('/getall', methods=['GET'])
def get_all_course():
COURS... | 26.029197 | 66 | 0.633763 | 450 | 3,566 | 4.853333 | 0.204444 | 0.065476 | 0.070513 | 0.091575 | 0.448718 | 0.318223 | 0.243132 | 0.185897 | 0.185897 | 0.185897 | 0 | 0.000699 | 0.19742 | 3,566 | 136 | 67 | 26.220588 | 0.762404 | 0.010095 | 0 | 0.375 | 0 | 0 | 0.121117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086538 | false | 0 | 0.048077 | 0 | 0.230769 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b078da4ba018d0ed23b38cf26025965f628a808 | 3,658 | py | Python | main.py | AuroraBTH/minecraft-modpack-randomizer | 797fb6a438a3365da69fbcbc22d856668a90ed27 | [
"MIT"
] | null | null | null | main.py | AuroraBTH/minecraft-modpack-randomizer | 797fb6a438a3365da69fbcbc22d856668a90ed27 | [
"MIT"
] | null | null | null | main.py | AuroraBTH/minecraft-modpack-randomizer | 797fb6a438a3365da69fbcbc22d856668a90ed27 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
from requests import get
import json
def get_amount_of_pages(minecraft_version):
initial_site_response = get("https://www.curseforge.com/minecraft/mc-mods?filter-game-version=" + minecraft_version + "&filter-sort=5&")
soup = BeautifulSoup(initial_site_response.text, "html.... | 43.547619 | 146 | 0.642701 | 492 | 3,658 | 4.45122 | 0.252033 | 0.03653 | 0.047489 | 0.02968 | 0.321005 | 0.261187 | 0.16621 | 0.16621 | 0.16621 | 0.16621 | 0 | 0.024721 | 0.214872 | 3,658 | 83 | 147 | 44.072289 | 0.737813 | 0 | 0 | 0 | 0 | 0 | 0.21035 | 0.012028 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0 | 0.046875 | 0 | 0.125 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b09394715e3c0dcf590faefc51ab0a74f18287b | 540 | py | Python | product/views/brand_details.py | Rafeen/Inventory-Management-and-POS | c6b93fd83e76d8cdee1bdbe1042a29b23bfc36ac | [
"MIT"
] | null | null | null | product/views/brand_details.py | Rafeen/Inventory-Management-and-POS | c6b93fd83e76d8cdee1bdbe1042a29b23bfc36ac | [
"MIT"
] | 10 | 2019-07-03T21:28:41.000Z | 2022-01-13T01:13:35.000Z | product/views/brand_details.py | Rafeen/Inventory-Management-and-POS | c6b93fd83e76d8cdee1bdbe1042a29b23bfc36ac | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect, get_object_or_404
from product.models.brand_model import Brand
from django.contrib.auth.decorators import login_required
@login_required(login_url='/login/')
def brand_detail_view(request, id):
"""
This view renders User Detail page with a details of selecte... | 21.6 | 74 | 0.709259 | 72 | 540 | 5.097222 | 0.555556 | 0.054496 | 0.059946 | 0.076294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013857 | 0.198148 | 540 | 24 | 75 | 22.5 | 0.833718 | 0.122222 | 0 | 0 | 0 | 0 | 0.113586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2b0a6f1bbc8afafe4db77b3247308ff00dd67a64 | 1,264 | py | Python | 1-100q/40.py | rampup01/Leetcode | 8450a95a966ef83b24ffe6450f06ce8de92b3efb | [
"MIT"
] | 990 | 2018-06-05T11:49:22.000Z | 2022-03-31T08:59:17.000Z | 1-100q/40.py | rampup01/Leetcode | 8450a95a966ef83b24ffe6450f06ce8de92b3efb | [
"MIT"
] | 1 | 2021-11-01T01:29:38.000Z | 2021-11-01T01:29:38.000Z | 1-100q/40.py | rampup01/Leetcode | 8450a95a966ef83b24ffe6450f06ce8de92b3efb | [
"MIT"
] | 482 | 2018-06-12T22:16:53.000Z | 2022-03-29T00:23:29.000Z | '''
Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers sums to target.
Each number in candidates may only be used once in the combination.
Note:
All numbers (including target) will be positive integers.
The so... | 26.893617 | 170 | 0.609968 | 152 | 1,264 | 5.072368 | 0.460526 | 0.083009 | 0.097276 | 0.083009 | 0.124514 | 0.124514 | 0 | 0 | 0 | 0 | 0 | 0.028698 | 0.283228 | 1,264 | 47 | 171 | 26.893617 | 0.822296 | 0.44462 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 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 |
2b0caaaf1b41e4b4941d55d16c265dd9df819b1f | 8,651 | py | Python | src/clustar_project/clustarray.py | jz5jx/Test_Repo | 8796f45021943984ed02232fd34ff02e17123d71 | [
"MIT"
] | 1 | 2021-04-24T21:52:53.000Z | 2021-04-24T21:52:53.000Z | src/clustar_project/clustarray.py | jz5jx/Test_Repo | 8796f45021943984ed02232fd34ff02e17123d71 | [
"MIT"
] | null | null | null | src/clustar_project/clustarray.py | jz5jx/Test_Repo | 8796f45021943984ed02232fd34ff02e17123d71 | [
"MIT"
] | null | null | null | import warnings
import numpy as np
import itertools
class ClustArray:
''' Class for working with data from FITS images
Initialized from a numpy array from an image
Methods for denoising images
'''
def __init__(self, np_array):
self.im_array = np_array
self.noise_est = None
... | 35.310204 | 136 | 0.573229 | 1,171 | 8,651 | 4.114432 | 0.204953 | 0.022416 | 0.034247 | 0.010585 | 0.401619 | 0.389788 | 0.337069 | 0.326692 | 0.32171 | 0.271897 | 0 | 0.020081 | 0.343775 | 8,651 | 244 | 137 | 35.454918 | 0.828607 | 0.399029 | 0 | 0.168142 | 0 | 0 | 0.015926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061947 | false | 0.00885 | 0.026549 | 0 | 0.123894 | 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 |
2b0d1ad6e91ffdcea74efa0272a18d860ad0c2ae | 7,151 | py | Python | rpa_logger/task.py | kangasta/rpa_logger | 63fb9d2472cc8039b6d794c5a09f4fbb77f5ac23 | [
"MIT"
] | null | null | null | rpa_logger/task.py | kangasta/rpa_logger | 63fb9d2472cc8039b6d794c5a09f4fbb77f5ac23 | [
"MIT"
] | null | null | null | rpa_logger/task.py | kangasta/rpa_logger | 63fb9d2472cc8039b6d794c5a09f4fbb77f5ac23 | [
"MIT"
] | null | null | null | '''Constants and helpers for describing RPA tasks and their status.
'''
from collections import Counter
from dataclasses import dataclass
from typing import Any, Dict, Hashable, List, Union
from uuid import uuid4
from .utils import timestamp
from .utils.output import OutputText
STARTED = 'STARTED'
SUCCESS = 'SUCCESS'... | 29.549587 | 78 | 0.586212 | 889 | 7,151 | 4.654668 | 0.173228 | 0.030449 | 0.030449 | 0.028758 | 0.389319 | 0.337361 | 0.332286 | 0.278154 | 0.195505 | 0.182697 | 0 | 0.002063 | 0.322193 | 7,151 | 241 | 79 | 29.672199 | 0.851661 | 0.351419 | 0 | 0.214286 | 0 | 0 | 0.018021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173469 | false | 0 | 0.061224 | 0.020408 | 0.459184 | 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 |
2b0d8b35ff7e943b202f21481e50e5769f2ff2f4 | 13,760 | py | Python | src/graph_construction.py | chrisdxie/rice | c3e42822226af9ac28d95d434cd582386122b679 | [
"MIT"
] | 16 | 2021-07-01T16:18:26.000Z | 2022-02-21T05:19:39.000Z | src/graph_construction.py | chrisdxie/rice | c3e42822226af9ac28d95d434cd582386122b679 | [
"MIT"
] | 1 | 2022-02-22T22:46:37.000Z | 2022-02-22T22:46:37.000Z | src/graph_construction.py | chrisdxie/rice | c3e42822226af9ac28d95d434cd582386122b679 | [
"MIT"
] | 1 | 2021-11-08T19:52:40.000Z | 2021-11-08T19:52:40.000Z | import sys, os
import numpy as np
import cv2
import torch
import torch.nn.functional as F
from torch_geometric.data import Data, Batch
import torchvision.transforms as transforms
from . import constants
from .util import utilities as util_
def get_resnet50_fpn_model(pretrained=True, trainable_layer_names=[]):
"... | 38.328691 | 142 | 0.622892 | 1,975 | 13,760 | 4.11038 | 0.170633 | 0.018724 | 0.004435 | 0.004435 | 0.215447 | 0.166174 | 0.130574 | 0.112097 | 0.098793 | 0.066272 | 0 | 0.018933 | 0.282195 | 13,760 | 358 | 143 | 38.435754 | 0.802977 | 0.308067 | 0 | 0.030928 | 0 | 0 | 0.048015 | 0.005687 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056701 | false | 0 | 0.056701 | 0 | 0.170103 | 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 |
2b12bcc09d43893147348ccc3696625e690b010c | 3,817 | py | Python | src/views/botones/informacion/boton_informacion.py | julianVelandia/UI_RETEDECON | 87b707f5c1553446fc92265db9da50f292e2f2d1 | [
"MIT"
] | 3 | 2022-02-27T02:15:52.000Z | 2022-02-28T15:16:40.000Z | src/views/botones/informacion/boton_informacion.py | julianVelandia/UI_RETEDECON | 87b707f5c1553446fc92265db9da50f292e2f2d1 | [
"MIT"
] | null | null | null | src/views/botones/informacion/boton_informacion.py | julianVelandia/UI_RETEDECON | 87b707f5c1553446fc92265db9da50f292e2f2d1 | [
"MIT"
] | null | null | null | from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
#locals
from .funciones_informacion import Funcion_informacion
from src.views.botones.inicio.funciones import *
class Boton_informacion(Funcion_informacion):
def boton_informacion_manual(self, widget):
self.informacion_manu... | 59.640625 | 113 | 0.632172 | 420 | 3,817 | 5.640476 | 0.309524 | 0.183622 | 0.079781 | 0.042212 | 0.295061 | 0.246095 | 0.192486 | 0.164626 | 0.164626 | 0.087801 | 0 | 0.019445 | 0.272465 | 3,817 | 64 | 114 | 59.640625 | 0.833633 | 0.03039 | 0 | 0.035088 | 0 | 0 | 0.193557 | 0.036004 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.087719 | 0 | 0.175439 | 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 |
2b13c9bdd22e18cff242d5292bbf3eb9e6c0efa1 | 263 | py | Python | 1030 Brick Layout.py | ansabgillani/binarysearchcomproblems | 12fe8632f8cbb5058c91a55bae53afa813a3247e | [
"MIT"
] | null | null | null | 1030 Brick Layout.py | ansabgillani/binarysearchcomproblems | 12fe8632f8cbb5058c91a55bae53afa813a3247e | [
"MIT"
] | null | null | null | 1030 Brick Layout.py | ansabgillani/binarysearchcomproblems | 12fe8632f8cbb5058c91a55bae53afa813a3247e | [
"MIT"
] | null | null | null | class Solution:
def solve(self, bricks, width, height):
dp = [0]*(width+1)
dp[0] = 1
for i in range(len(dp)):
for brick in bricks:
dp[i] += dp[i-brick] if i-brick >= 0 else 0
return dp[-1]**height
| 23.909091 | 59 | 0.48289 | 40 | 263 | 3.175 | 0.5 | 0.047244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042424 | 0.372624 | 263 | 10 | 60 | 26.3 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2b15e166bdadb8379f269e4e1a5eb613b13e1d82 | 3,173 | py | Python | src/feature_creation.py | aswain571/m5_forecasting | 3b7fccd56a4c14c38bbcff6b11f82cd440132730 | [
"MIT"
] | null | null | null | src/feature_creation.py | aswain571/m5_forecasting | 3b7fccd56a4c14c38bbcff6b11f82cd440132730 | [
"MIT"
] | null | null | null | src/feature_creation.py | aswain571/m5_forecasting | 3b7fccd56a4c14c38bbcff6b11f82cd440132730 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import pickle
from preprocess import process_ds
from sklearn.preprocessing import LabelEncoder
def transform_cat_feats(df):
"""makes null columns into unknown and cat columns
are label encoded
Args:
df (pd.DataFrame): Dataframe with the sales data.
Returns:
... | 25.58871 | 78 | 0.632524 | 423 | 3,173 | 4.524823 | 0.316785 | 0.032915 | 0.031348 | 0.043887 | 0.241902 | 0.22675 | 0.211076 | 0.211076 | 0.163009 | 0.163009 | 0 | 0.019027 | 0.254649 | 3,173 | 123 | 79 | 25.796748 | 0.790275 | 0.300347 | 0 | 0.081967 | 0 | 0 | 0.143612 | 0.011047 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065574 | false | 0 | 0.081967 | 0 | 0.196721 | 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 |
2b178eeae032ec25548f56cb6c96df9b289d22b5 | 6,545 | py | Python | cosmosis/output/fits_output.py | annis/cosmosis | 55efc1bc2260ca39298c584ae809fa2a8e72a38e | [
"BSD-2-Clause"
] | 2 | 2021-06-18T14:11:59.000Z | 2022-02-23T19:19:36.000Z | cosmosis/output/fits_output.py | annis/cosmosis | 55efc1bc2260ca39298c584ae809fa2a8e72a38e | [
"BSD-2-Clause"
] | 2 | 2021-11-02T12:44:24.000Z | 2022-03-30T15:09:48.000Z | cosmosis/output/fits_output.py | annis/cosmosis | 55efc1bc2260ca39298c584ae809fa2a8e72a38e | [
"BSD-2-Clause"
] | 2 | 2022-03-25T21:26:27.000Z | 2022-03-29T06:37:46.000Z | from .output_base import OutputBase
from . import utils
import numpy as np
import os
from glob import glob
from collections import OrderedDict
try:
import fitsio
except ImportError:
fitsio = None
comment_indicator = "_cosmosis_comment_indicator_"
final_metadata_indicator = "FINALMETA"
unreserve_indicator = "UN... | 33.055556 | 201 | 0.603209 | 751 | 6,545 | 5.070573 | 0.28229 | 0.04438 | 0.019695 | 0.016544 | 0.089811 | 0.054622 | 0.030462 | 0.030462 | 0.030462 | 0.030462 | 0 | 0.003902 | 0.295187 | 6,545 | 197 | 202 | 33.22335 | 0.821591 | 0.073644 | 0 | 0.087838 | 0 | 0.006757 | 0.086957 | 0.01058 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087838 | false | 0 | 0.054054 | 0.006757 | 0.195946 | 0.006757 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2b1c1953cad2c24ae38087460d540f5ab88ef710 | 278 | py | Python | app.py | M3nin0/selectToTex | 423cfdafdd0bd391c30cbbf70386f74e93844c2f | [
"BSD-2-Clause"
] | 4 | 2018-06-06T15:35:51.000Z | 2020-01-19T15:47:23.000Z | app.py | M3nin0/selectToTex | 423cfdafdd0bd391c30cbbf70386f74e93844c2f | [
"BSD-2-Clause"
] | null | null | null | app.py | M3nin0/selectToTex | 423cfdafdd0bd391c30cbbf70386f74e93844c2f | [
"BSD-2-Clause"
] | null | null | null | from selecttotex.totex import Totex
# Criando instância do SelectToTex
tt = Totex()
# Comandos que serão utilizados
commands = ['SELECT * FROM aluno;', 'SELECT * FROM materia;', 'SELECT * FROM matricula;']
# Chama a função para a conversão
tt.to_tex(commands, 'tabelas.txt')
| 25.272727 | 89 | 0.733813 | 37 | 278 | 5.486486 | 0.702703 | 0.147783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154676 | 278 | 10 | 90 | 27.8 | 0.86383 | 0.33813 | 0 | 0 | 0 | 0 | 0.427778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2b1da2d3ed1a52018f6ec06f4c582bd00a0d9184 | 6,682 | py | Python | python/vtool/maya_lib/ui.py | louisVottero/vtool | 4e2592df5841829e790251dc6923e45c8d013091 | [
"MIT"
] | 3 | 2022-02-22T01:00:59.000Z | 2022-03-07T16:19:27.000Z | python/vtool/maya_lib/ui.py | louisVottero/vtool | 4e2592df5841829e790251dc6923e45c8d013091 | [
"MIT"
] | 4 | 2022-03-04T05:25:44.000Z | 2022-03-11T04:51:35.000Z | python/vtool/maya_lib/ui.py | louisVottero/vtool | 4e2592df5841829e790251dc6923e45c8d013091 | [
"MIT"
] | 1 | 2022-03-31T23:07:09.000Z | 2022-03-31T23:07:09.000Z | # Copyright (C) 2022 Louis Vottero louis.vot@gmail.com All rights reserved.
from __future__ import absolute_import
import maya.cmds as cmds
import maya.utils
import maya.mel as mel
from maya.app.general.mayaMixin import MayaQWidgetBaseMixin, MayaQWidgetDockableMixin
from maya import OpenMayaUI as omui
... | 28.678112 | 140 | 0.611344 | 713 | 6,682 | 5.464236 | 0.238429 | 0.021561 | 0.01694 | 0.0154 | 0.274384 | 0.179415 | 0.119867 | 0.094456 | 0.069302 | 0.069302 | 0 | 0.002365 | 0.303951 | 6,682 | 233 | 141 | 28.678112 | 0.835304 | 0.063903 | 0 | 0.195652 | 0 | 0 | 0.023778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123188 | false | 0 | 0.144928 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2b1e286ea315966366a86b5a9f5142b3ebdb896b | 4,748 | py | Python | xtbservice/models.py | cheminfo-py/xtbservice | d9227ea9e4647fe302cc3c1e9d57838fff938cd4 | [
"MIT"
] | 2 | 2022-01-28T02:59:28.000Z | 2022-01-31T15:47:30.000Z | xtbservice/models.py | cheminfo-py/xtbservice | d9227ea9e4647fe302cc3c1e9d57838fff938cd4 | [
"MIT"
] | 17 | 2021-09-13T12:26:57.000Z | 2022-01-31T22:35:49.000Z | xtbservice/models.py | cheminfo-py/xtbservice | d9227ea9e4647fe302cc3c1e9d57838fff938cd4 | [
"MIT"
] | 1 | 2022-01-26T08:17:50.000Z | 2022-01-26T08:17:50.000Z | # -*- coding: utf-8 -*-
from dataclasses import dataclass
from typing import Dict, List, Optional
import numpy as np
from ase import Atoms
from pydantic import BaseModel, Field, validator
ALLOWED_METHODS = ("GFNFF", "GFN2xTB", "GFN1xTB")
ALLOWED_FF = ("uff", "mmff94", "mmff94s")
@dataclass
class OptimizationResult:... | 40.931034 | 502 | 0.68829 | 574 | 4,748 | 5.679443 | 0.34669 | 0.046933 | 0.104294 | 0.042331 | 0.321779 | 0.312883 | 0.30092 | 0.244172 | 0.221472 | 0.221472 | 0 | 0.006223 | 0.221567 | 4,748 | 115 | 503 | 41.286957 | 0.875812 | 0.004423 | 0 | 0.22449 | 0 | 0.071429 | 0.486138 | 0.004868 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.05102 | 0 | 0.408163 | 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 |
2b219b5d2c6acf165fc3fb183df871cbdfc2a9e9 | 3,068 | py | Python | Aprior.py | zhangmingming-chb/Aprior | 69bea22f34d20bdc9984faf1fa021fac6e60ef38 | [
"MIT"
] | null | null | null | Aprior.py | zhangmingming-chb/Aprior | 69bea22f34d20bdc9984faf1fa021fac6e60ef38 | [
"MIT"
] | null | null | null | Aprior.py | zhangmingming-chb/Aprior | 69bea22f34d20bdc9984faf1fa021fac6e60ef38 | [
"MIT"
] | null | null | null | #-*-coding:utf-8-*-
from typing import List
from itertools import chain
class Aprior():
def __init__(self, support, confidence):
self.support = support
self.confidence = confidence
def set_transactions(self, transactions: List[List[str]]) -> None:
self.transactions = transactions
... | 29.5 | 81 | 0.496415 | 383 | 3,068 | 3.872063 | 0.227154 | 0.047202 | 0.051922 | 0.030344 | 0.057991 | 0.021578 | 0 | 0 | 0 | 0 | 0 | 0.021919 | 0.330834 | 3,068 | 103 | 82 | 29.786408 | 0.700438 | 0.117666 | 0 | 0.055556 | 0 | 0 | 0.009294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097222 | false | 0 | 0.027778 | 0.027778 | 0.222222 | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b23c62c9bf29b77cf256e932af29e6d9da15c7b | 686 | py | Python | dlex/tf/models/base_v2.py | dvtrung/dl-torch | b49e57d10d32bb223e2d7643f2579ccc32c63a9a | [
"MIT"
] | null | null | null | dlex/tf/models/base_v2.py | dvtrung/dl-torch | b49e57d10d32bb223e2d7643f2579ccc32c63a9a | [
"MIT"
] | null | null | null | dlex/tf/models/base_v2.py | dvtrung/dl-torch | b49e57d10d32bb223e2d7643f2579ccc32c63a9a | [
"MIT"
] | null | null | null | import tensorflow as tf
from dlex import Params
from dlex.datasets.tf import Dataset
class BaseModel(tf.keras.Model):
def __init__(self, params: Params, dataset: Dataset):
super().__init__()
self.params = params
self.dataset = dataset
self._optimizer = None
self.... | 25.407407 | 58 | 0.603499 | 76 | 686 | 5.302632 | 0.421053 | 0.039702 | 0.069479 | 0.099256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006342 | 0.310496 | 686 | 27 | 59 | 25.407407 | 0.845666 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.136364 | 0.045455 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2b2476addfb055d48f5d5ac598a8041fdc9fee29 | 1,259 | py | Python | pi/commands/token/reset.py | pan-net-security/pi-bundle | 1819caede77357331465216e0355eb2499d09cb4 | [
"MIT"
] | 2 | 2017-12-15T20:50:58.000Z | 2020-10-21T15:48:48.000Z | pi/commands/token/reset.py | pan-net-security/pi-bundle | 1819caede77357331465216e0355eb2499d09cb4 | [
"MIT"
] | 1 | 2017-10-26T09:28:30.000Z | 2017-10-26T10:33:41.000Z | pi/commands/token/reset.py | pan-net-security/pi-bundle | 1819caede77357331465216e0355eb2499d09cb4 | [
"MIT"
] | null | null | null | from pi.commands.token.base import TokenBase
import json
import re
class Reset(TokenBase):
def __init__(self):
super().__init__()
def run(self):
handler = self.parse_subcommand_
handler()
def reset(self):
results = []
# currently supporting just one argument
... | 26.787234 | 85 | 0.599682 | 144 | 1,259 | 5.076389 | 0.534722 | 0.105335 | 0.04104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002286 | 0.305004 | 1,259 | 47 | 85 | 26.787234 | 0.833143 | 0.17077 | 0 | 0 | 0 | 0 | 0.099134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0.034483 | 0.103448 | 0 | 0.310345 | 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 |
2b25709c41a264855b79fbdf3a37d395af6fdc3b | 4,500 | py | Python | canaries/canaries.py | wyatt-howe/canaries | 0bd0783e388dcee21fd3addd09a9299940627536 | [
"MIT"
] | null | null | null | canaries/canaries.py | wyatt-howe/canaries | 0bd0783e388dcee21fd3addd09a9299940627536 | [
"MIT"
] | null | null | null | canaries/canaries.py | wyatt-howe/canaries | 0bd0783e388dcee21fd3addd09a9299940627536 | [
"MIT"
] | null | null | null | """Library for loading dynamic library files.
Python library for choosing and loading dynamic library
files compatible with the operating environment.
"""
import doctest
import sys
import os.path
import platform
from ctypes import cdll, create_string_buffer
from multiprocessing import Pool
class canaries():
"""
... | 29.220779 | 79 | 0.543778 | 496 | 4,500 | 4.866935 | 0.340726 | 0.024855 | 0.02237 | 0.021127 | 0.110605 | 0.083679 | 0.083679 | 0.083679 | 0.083679 | 0.083679 | 0 | 0.002829 | 0.371556 | 4,500 | 153 | 80 | 29.411765 | 0.850778 | 0.241778 | 0 | 0.255556 | 0 | 0 | 0.042373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077778 | false | 0 | 0.077778 | 0 | 0.233333 | 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 |
2b28b58e2579cbe5e2ab26c5528edcabd5571c91 | 1,074 | py | Python | docs/end-to-end/library/GeocontribOnCoordinatesLibrary.py | hcharp/geocontrib | 87ee241c737aae23eff358d2550bddba714f9c7b | [
"Apache-2.0"
] | 3 | 2020-12-02T09:44:41.000Z | 2021-04-17T13:05:30.000Z | docs/end-to-end/library/GeocontribOnCoordinatesLibrary.py | hcharp/geocontrib | 87ee241c737aae23eff358d2550bddba714f9c7b | [
"Apache-2.0"
] | 14 | 2020-01-27T09:49:33.000Z | 2021-06-14T08:04:10.000Z | docs/end-to-end/library/GeocontribOnCoordinatesLibrary.py | hcharp/geocontrib | 87ee241c737aae23eff358d2550bddba714f9c7b | [
"Apache-2.0"
] | 9 | 2020-01-16T12:37:39.000Z | 2021-04-22T09:57:59.000Z | # Copyright (c) 2017-2021 Neogeo-Technologies.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 42.96 | 113 | 0.76257 | 168 | 1,074 | 4.732143 | 0.630952 | 0.075472 | 0.032704 | 0.040252 | 0.067925 | 0.067925 | 0 | 0 | 0 | 0 | 0 | 0.016112 | 0.133147 | 1,074 | 24 | 114 | 44.75 | 0.837809 | 0.546555 | 0 | 0 | 0 | 0.142857 | 0.182203 | 0.182203 | 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 |
2b2938cdd0a73902522794999f575e5ff3fb8b89 | 3,341 | py | Python | torch/quantization/fx/qconfig_utils.py | deltabravozulu/pytorch | c6eef589971e45bbedacc7f65533d1b8f80a6895 | [
"Intel"
] | 1 | 2021-06-17T13:02:45.000Z | 2021-06-17T13:02:45.000Z | torch/quantization/fx/qconfig_utils.py | deltabravozulu/pytorch | c6eef589971e45bbedacc7f65533d1b8f80a6895 | [
"Intel"
] | 1 | 2022-01-18T12:17:29.000Z | 2022-01-18T12:17:29.000Z | torch/quantization/fx/qconfig_utils.py | deltabravozulu/pytorch | c6eef589971e45bbedacc7f65533d1b8f80a6895 | [
"Intel"
] | 2 | 2021-07-02T10:18:21.000Z | 2021-08-18T10:10:28.000Z | import torch
from collections import OrderedDict
from typing import Union, Callable, Any, Dict
import re
from .utils import _parent_name
QConfigAny = Union[torch.quantization.QConfig,
torch.quantization.QConfigDynamic, None]
def get_flattened_qconfig_dict(qconfig_dict):
""" flatten the global,... | 33.41 | 81 | 0.701287 | 427 | 3,341 | 5.128806 | 0.192037 | 0.141553 | 0.057534 | 0.067123 | 0.267123 | 0.210959 | 0.130594 | 0.116895 | 0.042009 | 0 | 0 | 0.001148 | 0.2176 | 3,341 | 99 | 82 | 33.747475 | 0.836649 | 0.243939 | 0 | 0.037736 | 0 | 0 | 0.045811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150943 | false | 0 | 0.09434 | 0.018868 | 0.415094 | 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 |
2b2a9c9a4b580fa5f2d5bbe38b2d93f37f8e19c1 | 3,062 | py | Python | researchmap/wrapper.py | RTa-technology/researchmap.py | 6aa427e1564644b20ba2001dfecf63457ef40463 | [
"MIT"
] | null | null | null | researchmap/wrapper.py | RTa-technology/researchmap.py | 6aa427e1564644b20ba2001dfecf63457ef40463 | [
"MIT"
] | null | null | null | researchmap/wrapper.py | RTa-technology/researchmap.py | 6aa427e1564644b20ba2001dfecf63457ef40463 | [
"MIT"
] | null | null | null | from typing import List
import urllib.parse
from .adapter import Adapter
__all__ = ['Wrapper']
class Wrapper:
"""Wrapper class for the Adapter class.
This class is used to wrap the Adapter class and provide a more
convenient interface for the user.
"""
def __init__(self, adapter: Adapter)... | 26.17094 | 95 | 0.612998 | 387 | 3,062 | 4.726098 | 0.173127 | 0.045927 | 0.039366 | 0.06561 | 0.588846 | 0.562603 | 0.551668 | 0.49754 | 0.49754 | 0.49754 | 0 | 0.000448 | 0.270738 | 3,062 | 116 | 96 | 26.396552 | 0.81863 | 0.423253 | 0 | 0.153846 | 0 | 0 | 0.023125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0 | 0.076923 | 0.025641 | 0.435897 | 0.102564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b2dc91a67e56678c390a41ec58ff7af3ed3237a | 2,888 | py | Python | demo/MagicMind/python/calibrator_custom_data.py | huismiling/YOLOX | d9d1c1e8c6362c71703d34e25765a2dfe8618e4a | [
"Apache-2.0"
] | null | null | null | demo/MagicMind/python/calibrator_custom_data.py | huismiling/YOLOX | d9d1c1e8c6362c71703d34e25765a2dfe8618e4a | [
"Apache-2.0"
] | null | null | null | demo/MagicMind/python/calibrator_custom_data.py | huismiling/YOLOX | d9d1c1e8c6362c71703d34e25765a2dfe8618e4a | [
"Apache-2.0"
] | null | null | null | from typing import List
import cv2
import numpy
import magicmind.python.runtime as mm
from magicmind.python.common.types import get_numpy_dtype_by_datatype
import os
import sys
def preprocess(img, input_size, swap=(2, 0, 1)):
if len(img.shape) == 3:
padded_img = numpy.ones((input_size[0], input_size[1], ... | 35.219512 | 132 | 0.655125 | 400 | 2,888 | 4.465 | 0.28 | 0.040314 | 0.050392 | 0.06439 | 0.182531 | 0.113102 | 0.050392 | 0.050392 | 0.050392 | 0 | 0 | 0.017671 | 0.235803 | 2,888 | 81 | 133 | 35.654321 | 0.791572 | 0.020429 | 0 | 0.096774 | 0 | 0 | 0.003891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.112903 | 0.048387 | 0.387097 | 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 |
2b2eb592acc995c4132c3288aeaefe49afa5e490 | 66,478 | py | Python | probreg/main.py | albertvisser/probreg | 5f685616221e3261afe0d8ae8506cad9a719fa82 | [
"MIT"
] | null | null | null | probreg/main.py | albertvisser/probreg | 5f685616221e3261afe0d8ae8506cad9a719fa82 | [
"MIT"
] | null | null | null | probreg/main.py | albertvisser/probreg | 5f685616221e3261afe0d8ae8506cad9a719fa82 | [
"MIT"
] | null | null | null | #! usr/bin/env python
"""Actie (was: problemen) Registratie, GUI toolkit onafhankelijke code
"""
import os
# import sys
import pathlib
import functools
import probreg.gui as gui
import probreg.shared as shared # import DataError, et_projnames
import probreg.dml_django as dmls
import probreg.dml_xml as dmlx
LIN = True... | 45.346521 | 101 | 0.55295 | 7,727 | 66,478 | 4.651352 | 0.116863 | 0.068167 | 0.047077 | 0.018697 | 0.468128 | 0.38118 | 0.320804 | 0.259036 | 0.218664 | 0.186945 | 0 | 0.007514 | 0.335344 | 66,478 | 1,465 | 102 | 45.377474 | 0.805907 | 0.123665 | 0 | 0.307882 | 0 | 0 | 0.12979 | 0.002902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067323 | false | 0.003284 | 0.005747 | 0 | 0.10509 | 0.01642 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b30462f4e15d1e7277002cce72ced8525343755 | 982 | py | Python | dailyblink/media.py | ptrstn/dailyblink | 16fe482552b101d83412bfbb662b8754682ba7d2 | [
"MIT"
] | 25 | 2020-05-01T16:34:11.000Z | 2022-02-19T09:39:20.000Z | dailyblink/media.py | ptrstn/dailyblink | 16fe482552b101d83412bfbb662b8754682ba7d2 | [
"MIT"
] | 24 | 2020-12-07T21:07:11.000Z | 2022-03-15T18:18:00.000Z | dailyblink/media.py | ptrstn/dailyblink | 16fe482552b101d83412bfbb662b8754682ba7d2 | [
"MIT"
] | 6 | 2021-03-05T09:19:37.000Z | 2022-01-01T08:25:14.000Z | import pathlib
from mutagen.mp4 import MP4
def create_file(content, path, mode):
pathlib.Path(path).parent.mkdir(parents=True, exist_ok=True)
with open(path, mode) as file:
file.write(content)
def save_media(media, file_path):
create_file(content=media, path=file_path, mode="wb")
def save_te... | 20.458333 | 64 | 0.647658 | 137 | 982 | 4.445255 | 0.357664 | 0.108374 | 0.083744 | 0.059113 | 0.082102 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015915 | 0.232179 | 982 | 47 | 65 | 20.893617 | 0.791777 | 0 | 0 | 0 | 0 | 0 | 0.03666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2b307d66d8ef01ec6b560b96a1fec0c928cc9a2d | 22,878 | py | Python | src/server/server.py | HanseMerkur/cassh | 947023ad7971a0922d56aaaee5afcdf9294334e3 | [
"Apache-2.0"
] | null | null | null | src/server/server.py | HanseMerkur/cassh | 947023ad7971a0922d56aaaee5afcdf9294334e3 | [
"Apache-2.0"
] | null | null | null | src/server/server.py | HanseMerkur/cassh | 947023ad7971a0922d56aaaee5afcdf9294334e3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
Sign a user's SSH public key.
"""
from argparse import ArgumentParser
from json import dumps
from os import remove
from re import compile as re_compile, IGNORECASE
from tempfile import NamedTemporaryFile
from urllib.parse import unquote_plus
# Third party library imports
from configparser im... | 33.447368 | 110 | 0.563992 | 2,549 | 22,878 | 4.910553 | 0.137309 | 0.053687 | 0.075098 | 0.033954 | 0.526244 | 0.468483 | 0.44835 | 0.439722 | 0.430375 | 0.405928 | 0 | 0.01281 | 0.314145 | 22,878 | 683 | 111 | 33.49634 | 0.784909 | 0.085978 | 0 | 0.528421 | 0 | 0.006316 | 0.188702 | 0.014493 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031579 | false | 0.014737 | 0.025263 | 0 | 0.197895 | 0.029474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b349e7b7c259815a84ae590fa15ba7d1700f32b | 2,339 | py | Python | app/api/inventory_routes.py | jon-wehner/MyPantry | 01f833b99d4318b4676abd542272dce61d0b8c61 | [
"MIT"
] | 9 | 2021-03-02T16:52:40.000Z | 2021-03-03T16:51:46.000Z | app/api/inventory_routes.py | jon-wehner/PantryStock | 01f833b99d4318b4676abd542272dce61d0b8c61 | [
"MIT"
] | 50 | 2021-03-12T16:04:49.000Z | 2022-03-17T20:47:00.000Z | app/api/inventory_routes.py | jon-wehner/PantryStock | 01f833b99d4318b4676abd542272dce61d0b8c61 | [
"MIT"
] | null | null | null | from flask import Blueprint, request
from app.models import UserItem, User, db
from app.forms import InventoryItemForm
from flask_login import login_required
from app.utils import validation_errors_to_error_messages
inventory_routes = Blueprint('inventory', __name__)
# Get all of a user's Items
@inventory_routes.rou... | 33.898551 | 75 | 0.655408 | 296 | 2,339 | 4.952703 | 0.216216 | 0.04502 | 0.034106 | 0.047067 | 0.579809 | 0.558663 | 0.366985 | 0.350614 | 0.257844 | 0.257844 | 0 | 0 | 0.218469 | 2,339 | 68 | 76 | 34.397059 | 0.801969 | 0.024369 | 0 | 0.491525 | 0 | 0 | 0.129443 | 0.012286 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0 | 0.084746 | 0 | 0.237288 | 0.050847 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b37b39bc7440eb3efd9fb78397787d52e20da21 | 760 | py | Python | src/doremi/__init__.py | jpivarski/doremi | 0f8fb1fc8e9664b2e4b61fffc5382e41d8d624d6 | [
"BSD-3-Clause"
] | 1 | 2022-01-09T00:32:44.000Z | 2022-01-09T00:32:44.000Z | src/doremi/__init__.py | jpivarski/doremi | 0f8fb1fc8e9664b2e4b61fffc5382e41d8d624d6 | [
"BSD-3-Clause"
] | null | null | null | src/doremi/__init__.py | jpivarski/doremi | 0f8fb1fc8e9664b2e4b61fffc5382e41d8d624d6 | [
"BSD-3-Clause"
] | null | null | null | # BSD 3-Clause License; see https://github.com/jpivarski/doremi/blob/main/LICENSE
from ._version import version as __version__
from typing import Optional
import doremi.parsing
import doremi.abstract
import doremi.concrete
def compose(
source: str,
scale: doremi.concrete.AnyScale = "C major",
bpm: floa... | 26.206897 | 81 | 0.743421 | 92 | 760 | 5.913043 | 0.48913 | 0.128676 | 0.069853 | 0.110294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0078 | 0.156579 | 760 | 28 | 82 | 27.142857 | 0.840874 | 0.103947 | 0 | 0 | 0 | 0 | 0.036819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.277778 | 0 | 0.388889 | 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 |
2b3e41b019fe6b2d3864d763d679862e197cea39 | 7,447 | py | Python | Lib/glyphsLib/interpolation.py | anthrotype/glyphsLib | ab98c4ae3981aec72ae70a053c3efb0ca2dd6b93 | [
"Apache-2.0"
] | null | null | null | Lib/glyphsLib/interpolation.py | anthrotype/glyphsLib | ab98c4ae3981aec72ae70a053c3efb0ca2dd6b93 | [
"Apache-2.0"
] | null | null | null | Lib/glyphsLib/interpolation.py | anthrotype/glyphsLib | ab98c4ae3981aec72ae70a053c3efb0ca2dd6b93 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 35.293839 | 79 | 0.674903 | 970 | 7,447 | 5.004124 | 0.257732 | 0.046972 | 0.00618 | 0.009271 | 0.152452 | 0.112279 | 0.082818 | 0.057684 | 0.057684 | 0.041203 | 0 | 0.003903 | 0.243051 | 7,447 | 210 | 80 | 35.461905 | 0.857194 | 0.291795 | 0 | 0.132231 | 0 | 0 | 0.055966 | 0 | 0 | 0 | 0 | 0 | 0.008264 | 1 | 0.041322 | false | 0 | 0.066116 | 0 | 0.157025 | 0.008264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b3fd90b08b658e73198cb9b547400cb33e29f70 | 10,934 | py | Python | code/analysis/plot_group_statistics.py | INM-6/reproducing-polychronization | fbce7040450a92996ef64bb081558ea02f6a72da | [
"MIT"
] | 2 | 2019-09-05T13:26:55.000Z | 2019-11-27T17:23:13.000Z | code/analysis/plot_group_statistics.py | INM-6/reproducing-polychronization | fbce7040450a92996ef64bb081558ea02f6a72da | [
"MIT"
] | null | null | null | code/analysis/plot_group_statistics.py | INM-6/reproducing-polychronization | fbce7040450a92996ef64bb081558ea02f6a72da | [
"MIT"
] | 3 | 2018-09-20T13:03:05.000Z | 2021-12-09T09:31:07.000Z | import argparse
import numpy as np
import os
import sys
import matplotlib
matplotlib.use('Agg')
import json
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import mpl_toolkits.axes_grid.inset_locator
import helper as hf
import plot_helper as phf
import seaborn as sns
import scipy.stats as stat
fr... | 36.691275 | 247 | 0.587525 | 1,479 | 10,934 | 4.161596 | 0.194726 | 0.033144 | 0.040942 | 0.020471 | 0.549472 | 0.48026 | 0.438993 | 0.426645 | 0.380829 | 0.347035 | 0 | 0.03156 | 0.252332 | 10,934 | 298 | 248 | 36.691275 | 0.721346 | 0.110664 | 0 | 0.190045 | 0 | 0 | 0.206313 | 0.028987 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00905 | false | 0 | 0.067873 | 0.004525 | 0.085973 | 0.027149 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b3fdcb67a067b54f957d1bd2d0f7f8ff8e0d97e | 4,306 | py | Python | api-back/extract_resume.py | Bitseat/demo | e5a12d975ef8162e89eaa3e67aaa0967e4c24d75 | [
"MIT"
] | null | null | null | api-back/extract_resume.py | Bitseat/demo | e5a12d975ef8162e89eaa3e67aaa0967e4c24d75 | [
"MIT"
] | 1 | 2020-08-11T15:40:02.000Z | 2020-08-11T15:40:02.000Z | api-back/extract_resume.py | Bitseat/demo | e5a12d975ef8162e89eaa3e67aaa0967e4c24d75 | [
"MIT"
] | null | null | null | # importing all required libraries
import os
import traceback
# importing libraries for computer vision
import numpy as np
import cv2
import imutils
from imutils import contours
from imutils.perspective import four_point_transform
from skimage.filters import threshold_local
# importing libraries to read text from im... | 30.323944 | 114 | 0.594055 | 537 | 4,306 | 4.571695 | 0.22905 | 0.068432 | 0.044807 | 0.039919 | 0.446029 | 0.39389 | 0.343788 | 0.194705 | 0.194705 | 0.194705 | 0 | 0.012751 | 0.271482 | 4,306 | 141 | 115 | 30.539007 | 0.769844 | 0.071296 | 0 | 0.304348 | 0 | 0 | 0.05423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0.01087 | 0.217391 | 0 | 0.23913 | 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 |
2b421ace835f65630586818249ab3197ef13ff58 | 1,991 | py | Python | week12_telegram_bots/Peter Sergeev Homework/mysubstratedb.py | pserg1/msai-python | 57908933d0af0614a9c7f5c6dcdcc1b46abb2184 | [
"MIT"
] | null | null | null | week12_telegram_bots/Peter Sergeev Homework/mysubstratedb.py | pserg1/msai-python | 57908933d0af0614a9c7f5c6dcdcc1b46abb2184 | [
"MIT"
] | null | null | null | week12_telegram_bots/Peter Sergeev Homework/mysubstratedb.py | pserg1/msai-python | 57908933d0af0614a9c7f5c6dcdcc1b46abb2184 | [
"MIT"
] | null | null | null | import sqlalchemy
import pyodbc
from sqlalchemy import create_engine
from sqlalchemy import Column, Integer, String, DateTime, Float
from sqlalchemy.sql import func
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy_utils import database_exists, create_database
from sqlalchemy.orm import sessionmak... | 28.855072 | 115 | 0.705173 | 239 | 1,991 | 5.740586 | 0.376569 | 0.061224 | 0.029155 | 0.040816 | 0.119534 | 0.119534 | 0.119534 | 0.119534 | 0.119534 | 0.119534 | 0 | 0.010962 | 0.175289 | 1,991 | 68 | 116 | 29.279412 | 0.824604 | 0.028127 | 0 | 0 | 0 | 0.051282 | 0.13737 | 0.054688 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0.025641 | 0.205128 | 0 | 0.512821 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b452016fd5d89254447c86f05dc5c9a851e0645 | 7,251 | py | Python | figuras/Pycharm_Papoulis_Probability_Report/buffon_needle_long.py | bor9/estudiando_el_papoulis | ef40ac18d7aece3415cd9ce72d1f9684c762d6df | [
"MIT"
] | null | null | null | figuras/Pycharm_Papoulis_Probability_Report/buffon_needle_long.py | bor9/estudiando_el_papoulis | ef40ac18d7aece3415cd9ce72d1f9684c762d6df | [
"MIT"
] | null | null | null | figuras/Pycharm_Papoulis_Probability_Report/buffon_needle_long.py | bor9/estudiando_el_papoulis | ef40ac18d7aece3415cd9ce72d1f9684c762d6df | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import math
from matplotlib import patches
from matplotlib import transforms
import matplotlib.colors as colors
from matplotlib import cm
from matplotlib import rc
__author__ = 'ernesto'
# if use latex or mathtext
rc('text', usetex=False)
rc('mathtext', fontset='cm... | 35.028986 | 119 | 0.655358 | 1,291 | 7,251 | 3.563904 | 0.170411 | 0.05564 | 0.058683 | 0.015214 | 0.331232 | 0.27907 | 0.254727 | 0.146055 | 0.089111 | 0.078244 | 0 | 0.062714 | 0.153358 | 7,251 | 206 | 120 | 35.199029 | 0.686757 | 0.098193 | 0 | 0.06015 | 0 | 0 | 0.086783 | 0.020772 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06015 | 0 | 0.06015 | 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 |
2b46780622ca167e59a3a3ad6cc2146cc6ba62f4 | 4,309 | py | Python | app.py | chrisvoncsefalvay/dash-sir-interactive-model | 97d854774fb5395452127b5627efab39bddcdbdf | [
"BSD-3-Clause"
] | 3 | 2020-11-29T06:36:23.000Z | 2021-11-28T13:10:46.000Z | app.py | chrisvoncsefalvay/dash-sir-interactive-model | 97d854774fb5395452127b5627efab39bddcdbdf | [
"BSD-3-Clause"
] | null | null | null | app.py | chrisvoncsefalvay/dash-sir-interactive-model | 97d854774fb5395452127b5627efab39bddcdbdf | [
"BSD-3-Clause"
] | null | null | null | import os
import flask
import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import plotly.graph_objects as go
import dash_defer_js_import as dji
import numpy as np
from components import solve
external_sty... | 33.403101 | 159 | 0.609654 | 591 | 4,309 | 4.301184 | 0.301184 | 0.014162 | 0.033045 | 0.027144 | 0.29701 | 0.241935 | 0.155389 | 0.142801 | 0.038552 | 0.038552 | 0 | 0.025867 | 0.21049 | 4,309 | 128 | 160 | 33.664063 | 0.72134 | 0.032954 | 0 | 0.054945 | 0 | 0.065934 | 0.317197 | 0.012765 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021978 | false | 0 | 0.131868 | 0.010989 | 0.175824 | 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 |
2b489fbcfce2c4d5dd4a28fb019c7e2eb148afb0 | 18,525 | py | Python | autoesk_main/anual_defis.py | SilasPDJ/autoesk_project_v2 | 249730307ad350a1aaacfd5abe08b0781253854e | [
"MIT"
] | 1 | 2021-03-12T00:40:13.000Z | 2021-03-12T00:40:13.000Z | autoesk_main/anual_defis.py | SilasPDJ/autoesk_project_v2 | 249730307ad350a1aaacfd5abe08b0781253854e | [
"MIT"
] | 1 | 2021-04-02T04:40:38.000Z | 2021-04-02T04:42:20.000Z | autoesk_main/anual_defis.py | SilasPDJ/autoesk_project_v2 | 249730307ad350a1aaacfd5abe08b0781253854e | [
"MIT"
] | null | null | null | from imports import WDShorcuts
from imports import press_key_b4, activate_window, tk_msg
from imports import TimeoutException, ElementClickInterceptedException, NoSuchElementException, NoAlertPresentException
from imports import ActionChains
from imports import Keys, By, WebDriverWait, expected_conditions
from imports ... | 40.097403 | 134 | 0.577436 | 2,139 | 18,525 | 4.755493 | 0.238429 | 0.023594 | 0.027133 | 0.045222 | 0.312033 | 0.257275 | 0.229847 | 0.186197 | 0.145989 | 0.128293 | 0 | 0.017665 | 0.309366 | 18,525 | 461 | 135 | 40.184382 | 0.777396 | 0.095007 | 0 | 0.341463 | 0 | 0.030488 | 0.155126 | 0.0379 | 0 | 0 | 0 | 0.002169 | 0 | 1 | 0.02439 | false | 0.006098 | 0.054878 | 0 | 0.085366 | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b4920cd2300bafcb005d22098eb6361aa94da89 | 15,125 | py | Python | src/Python/Bezier.py | rparak/Bezier_Curve_Simple | 06531e17601a52c65aef36c38d61673fee676751 | [
"MIT"
] | 2 | 2021-04-09T20:38:57.000Z | 2022-01-03T09:19:27.000Z | src/Python/Bezier.py | rparak/Bezier_Curve_Simple | 06531e17601a52c65aef36c38d61673fee676751 | [
"MIT"
] | null | null | null | src/Python/Bezier.py | rparak/Bezier_Curve_Simple | 06531e17601a52c65aef36c38d61673fee676751 | [
"MIT"
] | null | null | null | """
## =========================================================================== ##
MIT License
Copyright (c) 2021 Roman Parak
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... | 42.130919 | 204 | 0.579967 | 2,160 | 15,125 | 3.89537 | 0.14213 | 0.008082 | 0.032802 | 0.005229 | 0.522106 | 0.492988 | 0.451985 | 0.440694 | 0.421678 | 0.407297 | 0 | 0.032933 | 0.295339 | 15,125 | 358 | 205 | 42.248603 | 0.755864 | 0.559669 | 0 | 0.317757 | 0 | 0 | 0.108252 | 0 | 0 | 0 | 0 | 0 | 0.140187 | 1 | 0.084112 | false | 0 | 0.018692 | 0 | 0.242991 | 0.121495 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b4a35412c05702e2d3412785226759c63a9cac5 | 1,175 | py | Python | dist/weewx-4.5.1/examples/basic/install.py | v0rts/docker-weewx | 70b2f252051dfead4fcb74e74662b297831e6342 | [
"Apache-2.0"
] | 10 | 2017-01-05T17:30:48.000Z | 2021-09-18T15:04:20.000Z | dist/weewx-4.5.1/examples/basic/install.py | v0rts/docker-weewx | 70b2f252051dfead4fcb74e74662b297831e6342 | [
"Apache-2.0"
] | 2 | 2019-07-21T10:48:42.000Z | 2022-02-16T20:36:45.000Z | dist/weewx-4.5.1/examples/basic/install.py | v0rts/docker-weewx | 70b2f252051dfead4fcb74e74662b297831e6342 | [
"Apache-2.0"
] | 12 | 2017-01-05T18:50:30.000Z | 2021-10-05T07:35:45.000Z | # installer for the 'basic' skin
# Copyright 2014 Matthew Wall
from weecfg.extension import ExtensionInstaller
def loader():
return BasicInstaller()
class BasicInstaller(ExtensionInstaller):
def __init__(self):
super(BasicInstaller, self).__init__(
version="0.1",
name='basic... | 32.638889 | 74 | 0.469787 | 99 | 1,175 | 5.434343 | 0.525253 | 0.130112 | 0.04461 | 0.063197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008633 | 0.408511 | 1,175 | 35 | 75 | 33.571429 | 0.765468 | 0.049362 | 0 | 0 | 0 | 0 | 0.29982 | 0.182226 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.035714 | 0.035714 | 0.178571 | 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 |
2b5509332abe32e34973d35ac1a06d05d2a1a9d0 | 1,581 | py | Python | Code/ReceiverZX.py | eastOffice/MsgBrokerTest | 5139fff386c73bf05afdfa63c827b6ba36405cdb | [
"MIT"
] | null | null | null | Code/ReceiverZX.py | eastOffice/MsgBrokerTest | 5139fff386c73bf05afdfa63c827b6ba36405cdb | [
"MIT"
] | null | null | null | Code/ReceiverZX.py | eastOffice/MsgBrokerTest | 5139fff386c73bf05afdfa63c827b6ba36405cdb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pika
import random
import time
import sys
import datetime
import QoECurve
'''
MsgBroker Configuration
'''
max_priority = 250
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
channel = connection.channel()
c_properties = dict()
c_properties['x-max-priority'] = ... | 29.277778 | 96 | 0.68754 | 212 | 1,581 | 4.957547 | 0.424528 | 0.125595 | 0.045671 | 0.028544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02144 | 0.173941 | 1,581 | 53 | 97 | 29.830189 | 0.783308 | 0.259962 | 0 | 0 | 0 | 0 | 0.074977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.266667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2b5653d2af00c13103b575ebb27d1a523e5c40b6 | 1,723 | py | Python | problem12.py | rentes/Euler | e28b536a15f2e795f886a5df261d38bb0181be07 | [
"MIT"
] | 1 | 2019-05-29T23:54:24.000Z | 2019-05-29T23:54:24.000Z | problem12.py | rentes/Euler | e28b536a15f2e795f886a5df261d38bb0181be07 | [
"MIT"
] | null | null | null | problem12.py | rentes/Euler | e28b536a15f2e795f886a5df261d38bb0181be07 | [
"MIT"
] | null | null | null | """Project Euler - Problem 12 - http://projecteuler.net/problem=12"""
import sys
import time
import tools.timeutils as timeutils
def number_of_factors(n):
"""
Returns the number of factors of number n
Using a list to keep the factors found of number n
"""
max_limit = 0
nr_factors = 2 # 1 and... | 29.706897 | 77 | 0.612304 | 253 | 1,723 | 4.047431 | 0.418972 | 0.054688 | 0.102539 | 0.035156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040644 | 0.314568 | 1,723 | 57 | 78 | 30.22807 | 0.826418 | 0.434707 | 0 | 0 | 0 | 0 | 0.008602 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 1 | 0.103448 | false | 0 | 0.103448 | 0 | 0.241379 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2b56b38a493baecfbe24f9c81a16e03dcfd892d0 | 5,203 | py | Python | external_code/Correlations_pipeline/MultivariateXWASCorr.py | SamuelDiai/Dash-Website | e064e432f14a86de1b54cf31ab311997c5643129 | [
"MIT"
] | null | null | null | external_code/Correlations_pipeline/MultivariateXWASCorr.py | SamuelDiai/Dash-Website | e064e432f14a86de1b54cf31ab311997c5643129 | [
"MIT"
] | null | null | null | external_code/Correlations_pipeline/MultivariateXWASCorr.py | SamuelDiai/Dash-Website | e064e432f14a86de1b54cf31ab311997c5643129 | [
"MIT"
] | null | null | null | from scipy import stats
import pandas as pd
import numpy as np
path_mutlivariate_feat_imps = '/n/groups/patel/samuel/EWAS/feature_importances_paper/'
Environmental = ['Clusters_Alcohol', 'Clusters_Diet', 'Clusters_Education', 'Clusters_ElectronicDevices',
'Clusters_Employment', 'Clusters_FamilyHistory'... | 74.328571 | 573 | 0.645397 | 478 | 5,203 | 6.711297 | 0.42887 | 0.01995 | 0.016833 | 0.027431 | 0.201995 | 0.160848 | 0.155237 | 0.155237 | 0.155237 | 0.155237 | 0 | 0.007758 | 0.231982 | 5,203 | 69 | 574 | 75.405797 | 0.795045 | 0.004228 | 0 | 0.183333 | 0 | 0 | 0.443221 | 0.25956 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.066667 | 0 | 0.083333 | 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 |
2b58d366bf3ed1f98d609fd61a964c71dab67651 | 8,544 | py | Python | dataset2/Channel-PFLocalization-DataSet2.py | herolab-uga/pf-doa-localization | f6d4f3b5bafdde7a9afa905b96378fdc113f70f6 | [
"MIT"
] | 3 | 2022-01-17T14:29:26.000Z | 2022-03-31T13:06:55.000Z | dataset2/Channel-PFLocalization-DataSet2.py | herolab-uga/pf-doa-localization | f6d4f3b5bafdde7a9afa905b96378fdc113f70f6 | [
"MIT"
] | null | null | null | dataset2/Channel-PFLocalization-DataSet2.py | herolab-uga/pf-doa-localization | f6d4f3b5bafdde7a9afa905b96378fdc113f70f6 | [
"MIT"
] | null | null | null | import math
import numpy as np
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import pyplot as pb
import random
from datetime import datetime
import time
import sys
import csv
def dist(x, y, pos):
return math.sqrt((pos[0]-x)**2 + (pos[1]-y)**2)
area... | 42.934673 | 193 | 0.622659 | 1,273 | 8,544 | 3.996858 | 0.150039 | 0.053459 | 0.028105 | 0.02162 | 0.253931 | 0.178459 | 0.15173 | 0.10908 | 0.050904 | 0.045204 | 0 | 0.035241 | 0.196278 | 8,544 | 198 | 194 | 43.151515 | 0.705694 | 0.375585 | 0 | 0.081818 | 0 | 0 | 0.052761 | 0.006263 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0.009091 | 0.1 | 0.009091 | 0.136364 | 0.027273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b5d21bc7f3bf38099a6104d053f835c59544b6b | 2,764 | py | Python | test/connectivity/acts/tests/google/bt/native/BtNativeTest.py | Keneral/atools | 055e76621340c7dced125e9de56e2645b5e1cdfb | [
"Unlicense"
] | null | null | null | test/connectivity/acts/tests/google/bt/native/BtNativeTest.py | Keneral/atools | 055e76621340c7dced125e9de56e2645b5e1cdfb | [
"Unlicense"
] | null | null | null | test/connectivity/acts/tests/google/bt/native/BtNativeTest.py | Keneral/atools | 055e76621340c7dced125e9de56e2645b5e1cdfb | [
"Unlicense"
] | 1 | 2018-02-24T19:13:01.000Z | 2018-02-24T19:13:01.000Z | #/usr/bin/env python3.4
#
# Copyright (C) 2016 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 35.435897 | 79 | 0.678365 | 353 | 2,764 | 5.070822 | 0.354108 | 0.044693 | 0.043575 | 0.037989 | 0.249721 | 0.164246 | 0.040223 | 0.040223 | 0.040223 | 0.040223 | 0 | 0.007703 | 0.248553 | 2,764 | 77 | 80 | 35.896104 | 0.854117 | 0.213821 | 0 | 0.269231 | 0 | 0 | 0.094576 | 0.055169 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.096154 | 0 | 0.442308 | 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 |
2b61d7390ab2819c257c38fbffc3a703a9852f12 | 5,176 | py | Python | PEPit/examples/unconstrained_convex_minimization/accelerated_gradient_convex.py | PerformanceEstimation/PEPit | 7005bc9a9da11dea448966437365c897734ec341 | [
"MIT"
] | 1 | 2022-03-30T11:18:37.000Z | 2022-03-30T11:18:37.000Z | PEPit/examples/unconstrained_convex_minimization/accelerated_gradient_convex.py | PerformanceEstimation/PEPit | 7005bc9a9da11dea448966437365c897734ec341 | [
"MIT"
] | 1 | 2022-02-23T10:26:38.000Z | 2022-02-23T10:26:38.000Z | PEPit/examples/unconstrained_convex_minimization/accelerated_gradient_convex.py | PerformanceEstimation/PEPit | 7005bc9a9da11dea448966437365c897734ec341 | [
"MIT"
] | null | null | null | from PEPit import PEP
from PEPit.functions import SmoothStronglyConvexFunction
def wc_accelerated_gradient_convex(mu, L, n, verbose=1):
"""
Consider the convex minimization problem
.. math:: f_\\star \\triangleq \\min_x f(x),
where :math:`f` is :math:`L`-smooth and :math:`\\mu`-strongly convex (:mat... | 41.079365 | 118 | 0.624614 | 750 | 5,176 | 4.193333 | 0.285333 | 0.048331 | 0.006677 | 0.008903 | 0.204452 | 0.1469 | 0.121463 | 0.108744 | 0.108744 | 0.07186 | 0 | 0.03353 | 0.24517 | 5,176 | 125 | 119 | 41.408 | 0.77118 | 0.68296 | 0 | 0 | 0 | 0.071429 | 0.188897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2b62bceba3f71a5c3bc433ee4f5eefd5ac1873e5 | 4,052 | py | Python | 2_import/rna_seq/01_import_merged_tsv.py | weng-lab/SCREEN | e8e7203e2f9baa2de70e2f75bdad3ae24b568367 | [
"MIT"
] | 5 | 2020-07-30T02:35:20.000Z | 2020-12-24T01:26:47.000Z | 2_import/rna_seq/01_import_merged_tsv.py | weng-lab/SCREEN | e8e7203e2f9baa2de70e2f75bdad3ae24b568367 | [
"MIT"
] | 6 | 2021-03-04T10:30:11.000Z | 2022-03-16T16:47:47.000Z | 2_import/rna_seq/01_import_merged_tsv.py | weng-lab/SCREEN | e8e7203e2f9baa2de70e2f75bdad3ae24b568367 | [
"MIT"
] | 2 | 2020-12-08T10:05:02.000Z | 2022-03-10T09:41:19.000Z | #!/usr/bin/env python
# SPDX-License-Identifier: MIT
# Copyright (c) 2016-2020 Michael Purcaro, Henry Pratt, Jill Moore, Zhiping Weng
from __future__ import print_function
import os
import sys
import json
import psycopg2
import argparse
import gzip
sys.path.append(os.path.join(os.path.dirname(__file__), '../../comm... | 32.15873 | 107 | 0.67152 | 436 | 4,052 | 6.087156 | 0.357798 | 0.024115 | 0.019593 | 0.025622 | 0.105501 | 0.105501 | 0.082894 | 0.058779 | 0.027129 | 0 | 0 | 0.007653 | 0.226061 | 4,052 | 125 | 108 | 32.416 | 0.838648 | 0.048371 | 0 | 0.105263 | 0 | 0 | 0.191589 | 0.01324 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115789 | false | 0 | 0.221053 | 0.021053 | 0.389474 | 0.063158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b663e447ff6dde531cade9c45704d5b63408a17 | 4,618 | py | Python | code/src/helpers/sequencer.py | mcd01/arvalus-experiments | 1c075853885d0d81284eee55988ba8747d33584e | [
"MIT"
] | null | null | null | code/src/helpers/sequencer.py | mcd01/arvalus-experiments | 1c075853885d0d81284eee55988ba8747d33584e | [
"MIT"
] | null | null | null | code/src/helpers/sequencer.py | mcd01/arvalus-experiments | 1c075853885d0d81284eee55988ba8747d33584e | [
"MIT"
] | null | null | null | import torch
from src.transforms import MultiNodeData
import collections
import dill
import os
from src.utils import create_dirs
class Sequencer(object):
"Determines sequences in a dataset and annotates elements accordingly."
def __init__(self, path_to_dir : str, node_classes : list = [], graph_classes :... | 40.867257 | 153 | 0.60654 | 513 | 4,618 | 4.927875 | 0.241715 | 0.028481 | 0.065269 | 0.037975 | 0.191851 | 0.105222 | 0.105222 | 0.078323 | 0.078323 | 0.078323 | 0 | 0.004342 | 0.301862 | 4,618 | 113 | 154 | 40.867257 | 0.779777 | 0.062148 | 0 | 0.1125 | 0 | 0.025 | 0.132737 | 0.053408 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.075 | 0.025 | 0.2875 | 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 |
2b676d4042d46bee66b146595fc707221e3e2e2a | 2,184 | py | Python | pymix/lattice_classes.py | vpbereznev/Pymix | 74f87a099169f8d215399f5d52eed80a574c8b3b | [
"MIT"
] | null | null | null | pymix/lattice_classes.py | vpbereznev/Pymix | 74f87a099169f8d215399f5d52eed80a574c8b3b | [
"MIT"
] | null | null | null | pymix/lattice_classes.py | vpbereznev/Pymix | 74f87a099169f8d215399f5d52eed80a574c8b3b | [
"MIT"
] | null | null | null | from math import sqrt, sin, cos, pi, ceil
class HexLattice:
def __init__(self, pitch, pattern):
self.pitch = pitch
self.pattern = pattern
def num_nodes(self):
return len(self.pattern)
def num_rings(self):
return ceil((1 + sqrt(1 + 4 / 3 * (self.num_nodes() - 1))) / 2)
... | 33.6 | 104 | 0.42674 | 311 | 2,184 | 2.932476 | 0.157556 | 0.065789 | 0.013158 | 0.017544 | 0.361842 | 0.323465 | 0.316886 | 0.22807 | 0.144737 | 0.144737 | 0 | 0.053797 | 0.421245 | 2,184 | 64 | 105 | 34.125 | 0.667722 | 0 | 0 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.019231 | 0.038462 | 0.326923 | 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 |
2b6e420a92dfca372820374b206351ebdc97a95a | 1,105 | py | Python | Leetcode/medium/binary-tree-from-postorder-and-inorder.py | jen-sjen/data-structures-basics-leetcode | addac32974b16e0a37aa60c210ab7820b349b279 | [
"MIT"
] | 6 | 2021-07-29T03:26:20.000Z | 2022-01-28T15:11:45.000Z | Leetcode/medium/binary-tree-from-postorder-and-inorder.py | jen-sjen/data-structures-basics-leetcode | addac32974b16e0a37aa60c210ab7820b349b279 | [
"MIT"
] | 2 | 2021-09-30T09:47:23.000Z | 2022-01-31T03:08:24.000Z | Leetcode/medium/binary-tree-from-postorder-and-inorder.py | jen-sjen/data-structures-basics-leetcode | addac32974b16e0a37aa60c210ab7820b349b279 | [
"MIT"
] | 5 | 2021-08-10T06:41:11.000Z | 2022-01-29T17:50:20.000Z | """
# CREATE BINARY TREE FROM POSTORDER AND INORDER
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
For example, given
inorder = [9,3,15,20,7]
postorder = [9,15,7,20,3]
Return the following binary tree:
3
- -
9 20... | 24.021739 | 75 | 0.58733 | 152 | 1,105 | 4.243421 | 0.355263 | 0.062016 | 0.037209 | 0.031008 | 0.049612 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037516 | 0.300452 | 1,105 | 46 | 76 | 24.021739 | 0.796895 | 0.335747 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2b76612269c85e9f247752fe2f6a4d09415e6758 | 2,644 | py | Python | hyper_param/utils.py | EnisBerk/hyperopt-keras-sample | dc6892f023b83ee3b5b92f2a258676ad6bbc0a94 | [
"MIT"
] | null | null | null | hyper_param/utils.py | EnisBerk/hyperopt-keras-sample | dc6892f023b83ee3b5b92f2a258676ad6bbc0a94 | [
"MIT"
] | null | null | null | hyper_param/utils.py | EnisBerk/hyperopt-keras-sample | dc6892f023b83ee3b5b92f2a258676ad6bbc0a94 | [
"MIT"
] | null | null | null |
"""Json utils to print, save and load training results."""
import os
import json
from bson import json_util
import tensorflow as tf
from tensorflow.python.saved_model import builder as saved_model_builder, tag_constants
from tensorflow.python.client import device_lib
import keras.backend as K
from gradient_sdk impor... | 28.430108 | 87 | 0.655446 | 358 | 2,644 | 4.617318 | 0.332402 | 0.036298 | 0.033878 | 0.039927 | 0.119782 | 0.095584 | 0.061706 | 0.061706 | 0.061706 | 0.061706 | 0 | 0.002963 | 0.234115 | 2,644 | 92 | 88 | 28.73913 | 0.813333 | 0.095688 | 0 | 0.064516 | 0 | 0 | 0.067596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0 | 0.129032 | 0.016129 | 0.322581 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2b774945cd3adbd39f821d0dd8b129b94b59f146 | 2,941 | py | Python | cog_modules/taunts/cog.py | michael-byrd/HammerBot | f9ad90179b486949f76a2e69a1e8b26414e2b21a | [
"MIT"
] | 3 | 2021-12-30T19:45:24.000Z | 2022-03-07T19:14:26.000Z | cog_modules/taunts/cog.py | michael-byrd/HammerBot | f9ad90179b486949f76a2e69a1e8b26414e2b21a | [
"MIT"
] | 29 | 2022-01-07T20:07:48.000Z | 2022-03-30T01:10:16.000Z | cog_modules/taunts/cog.py | michael-byrd/HammerBot | f9ad90179b486949f76a2e69a1e8b26414e2b21a | [
"MIT"
] | 4 | 2022-01-07T20:17:56.000Z | 2022-03-24T00:20:50.000Z | import os
import disnake
from disnake.ext import commands, tasks
from dotenv import load_dotenv
class Taunts(commands.Cog):
"""Replies with taunts from AoE2"""
def __init__(self, bot: commands.Bot):
self.bot = bot
@commands.command(name="1")
async def yes_1(self, ctx: commands... | 29.118812 | 80 | 0.555593 | 338 | 2,941 | 4.807692 | 0.227811 | 0.083077 | 0.105231 | 0.121846 | 0.505846 | 0.345231 | 0.320615 | 0.128615 | 0.090462 | 0 | 0 | 0.040159 | 0.314179 | 2,941 | 100 | 81 | 29.41 | 0.764998 | 0.063244 | 0 | 0.2 | 0 | 0 | 0.122383 | 0.012882 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.088889 | 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 |
2b77f7eedc8e7e3dc9ed83b6fd8ae34f45c97d94 | 2,475 | py | Python | sources/models/DeepCNN2.py | cwi-dis/affect-gan | aea0f7dd7dc412f7e3fc44bc2db3526b09aaf131 | [
"MIT"
] | null | null | null | sources/models/DeepCNN2.py | cwi-dis/affect-gan | aea0f7dd7dc412f7e3fc44bc2db3526b09aaf131 | [
"MIT"
] | null | null | null | sources/models/DeepCNN2.py | cwi-dis/affect-gan | aea0f7dd7dc412f7e3fc44bc2db3526b09aaf131 | [
"MIT"
] | null | null | null | import config
import tensorflow as tf
import tensorflow.keras.layers as layers
from models.Blocks import *
class DeepCNN(tf.keras.Model):
def __init__(self, hparams, *args, **kwargs):
super(DeepCNN, self).__init__(*args, **kwargs)
self.layers_count = hparams[config.HP_DEEP_LAYERS]
self.d... | 35.869565 | 93 | 0.623434 | 333 | 2,475 | 4.315315 | 0.24024 | 0.08142 | 0.093946 | 0.092554 | 0.458594 | 0.426583 | 0.306889 | 0.192763 | 0.192763 | 0.192763 | 0 | 0.01055 | 0.272323 | 2,475 | 68 | 94 | 36.397059 | 0.78734 | 0 | 0 | 0.166667 | 0 | 0 | 0.017778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.074074 | 0 | 0.203704 | 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 |
2b78cd2e8c328cd6e908ab353389cea7a0e9d949 | 4,517 | py | Python | z3/finding_celebrities.py | Wikunia/hakank | 030bc928d2efe8dcbc5118bda3f8ae9575d0fd13 | [
"MIT"
] | 279 | 2015-01-10T09:55:35.000Z | 2022-03-28T02:34:03.000Z | z3/finding_celebrities.py | Wikunia/hakank | 030bc928d2efe8dcbc5118bda3f8ae9575d0fd13 | [
"MIT"
] | 10 | 2017-10-05T15:48:50.000Z | 2021-09-20T12:06:52.000Z | z3/finding_celebrities.py | Wikunia/hakank | 030bc928d2efe8dcbc5118bda3f8ae9575d0fd13 | [
"MIT"
] | 83 | 2015-01-20T03:44:00.000Z | 2022-03-13T23:53:06.000Z | #!/usr/bin/python -u
# -*- coding: latin-1 -*-
#
# Finding celebrities problem in Z3
#
# From Uwe Hoffmann
# "Finding celebrities at a party"
# http://www.codemanic.com/papers/celebs/celebs.pdf
# """
# Problem: Given a list of people at a party and for each person the list of
# people they know at the party, we want t... | 26.570588 | 109 | 0.590658 | 787 | 4,517 | 3.360864 | 0.219822 | 0.054442 | 0.045369 | 0.037807 | 0.20794 | 0.166352 | 0.14707 | 0.118715 | 0.104348 | 0.080151 | 0 | 0.099592 | 0.239761 | 4,517 | 169 | 110 | 26.727811 | 0.670646 | 0.484171 | 0 | 0.432836 | 0 | 0 | 0.048466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0 | 0.014925 | 0 | 0.029851 | 0.134328 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b79194f124eff83fdb228ce81236856c628bf5e | 3,495 | py | Python | features/count_encoding_present_domains.py | wantedly/recsys2020-challenge | d9967860cc4767380d28d2ed7af00d467cc6941a | [
"Apache-2.0"
] | 35 | 2020-06-23T05:33:50.000Z | 2021-11-22T08:22:42.000Z | features/count_encoding_present_domains.py | wantedly/recsys2020-challenge | d9967860cc4767380d28d2ed7af00d467cc6941a | [
"Apache-2.0"
] | 15 | 2020-12-28T05:31:06.000Z | 2021-01-22T06:49:28.000Z | features/count_encoding_present_domains.py | wantedly/recsys2020-challenge | d9967860cc4767380d28d2ed7af00d467cc6941a | [
"Apache-2.0"
] | 2 | 2020-06-30T10:02:05.000Z | 2021-05-22T09:57:19.000Z | import os
import pandas as pd
from base import BaseFeature
from encoding_func import target_encoding
from google.cloud import storage, bigquery
from google.cloud import bigquery_storage_v1beta1
class CountEncodingPresentDomains(BaseFeature):
def import_columns(self):
return [
"tweet_id",
... | 35.663265 | 109 | 0.578827 | 389 | 3,495 | 4.858612 | 0.277635 | 0.088889 | 0.050265 | 0.036508 | 0.189947 | 0.174603 | 0.174603 | 0.174603 | 0.174603 | 0.122751 | 0 | 0.005291 | 0.351073 | 3,495 | 97 | 110 | 36.030928 | 0.828042 | 0.007725 | 0 | 0.072289 | 0 | 0 | 0.45528 | 0.021639 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036145 | false | 0 | 0.084337 | 0.012048 | 0.168675 | 0.048193 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b7933c47db153c1ec83f5874cfd167e2b409ed3 | 1,214 | py | Python | IntroDataScience/ejercicios/06/mean.py | aess14/Cursos-Uniandes | be016b25f2f49788235fbe91ec577fd16b9ad613 | [
"MIT"
] | null | null | null | IntroDataScience/ejercicios/06/mean.py | aess14/Cursos-Uniandes | be016b25f2f49788235fbe91ec577fd16b9ad613 | [
"MIT"
] | null | null | null | IntroDataScience/ejercicios/06/mean.py | aess14/Cursos-Uniandes | be016b25f2f49788235fbe91ec577fd16b9ad613 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
def prior(mu):
"""
Densidad de probabilidad de mu
"""
p = np.ones(len(mu))/(mu.max()-mu.min())
return p
def like(x, sigma, mu):
"""
Likelihod de tener un dato x e incertidumbre sigma
"""
L = np.ones(len(mu))
for x_i,sigma_i in ... | 22.072727 | 86 | 0.581549 | 212 | 1,214 | 3.29717 | 0.363208 | 0.042918 | 0.025751 | 0.031474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046218 | 0.215815 | 1,214 | 54 | 87 | 22.481481 | 0.688025 | 0.132619 | 0 | 0 | 0 | 0 | 0.055666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2b795e47993f764317453f8d08fc171b991375f7 | 582 | py | Python | quickSorting.py | slowy07/pythonApps | 22f9766291dbccd8185035745950c5ee4ebd6a3e | [
"MIT"
] | 10 | 2020-10-09T11:05:18.000Z | 2022-02-13T03:22:10.000Z | quickSorting.py | khairanabila/pythonApps | f90b8823f939b98f7bf1dea7ed35fe6e22e2f730 | [
"MIT"
] | null | null | null | quickSorting.py | khairanabila/pythonApps | f90b8823f939b98f7bf1dea7ed35fe6e22e2f730 | [
"MIT"
] | 6 | 2020-11-26T12:49:43.000Z | 2022-03-06T06:46:43.000Z | def partition(arr, low, high):
i = (low - 1)
pivot = arr[high]
for j in range(low, high):
if arr[j] <= pivot:
i = i + 1
arr[i], arr[j] = arr[j], arr[i]
arr[i + 1], arr[high] = arr[high], arr[i + 1]
return i + 1
def quickSorting(arr, low, high):
if low < hig... | 25.304348 | 49 | 0.536082 | 94 | 582 | 3.319149 | 0.319149 | 0.112179 | 0.096154 | 0.121795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043902 | 0.295533 | 582 | 23 | 50 | 25.304348 | 0.717073 | 0 | 0 | 0 | 0 | 0 | 0.042882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.157895 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |