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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
06274af203a120ff736b3555a30e9a1003120ec1 | 4,324 | py | Python | BlenderAddon/game_gamekit/config.py | slagusev/gamekit | a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d | [
"MIT"
] | 1 | 2017-01-16T11:53:44.000Z | 2017-01-16T11:53:44.000Z | BlenderAddon/game_gamekit/config.py | slagusev/gamekit | a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d | [
"MIT"
] | null | null | null | BlenderAddon/game_gamekit/config.py | slagusev/gamekit | a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d | [
"MIT"
] | null | null | null | #Copyright (c) 2010 harkon.kr
#
# ***** BEGIN MIT LICENSE BLOCK *****
#
#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... | 30.885714 | 78 | 0.563136 | 519 | 4,324 | 4.645472 | 0.38921 | 0.009954 | 0.009954 | 0.009954 | 0.056823 | 0.04355 | 0.039403 | 0.026545 | 0 | 0 | 0 | 0.009685 | 0.331406 | 4,324 | 139 | 79 | 31.107914 | 0.824282 | 0.279602 | 0 | 0.25 | 0 | 0 | 0.085437 | 0.008414 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.043478 | 0 | 0.402174 | 0.01087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
06277cec3797e9fe624139a04c8d08693f4a94d7 | 5,063 | py | Python | app/models/__init__.py | LIhDi/python-atendimento-agendamento-back-end | affb722440678415d1d6293e84be3f1743c915b7 | [
"MIT"
] | null | null | null | app/models/__init__.py | LIhDi/python-atendimento-agendamento-back-end | affb722440678415d1d6293e84be3f1743c915b7 | [
"MIT"
] | null | null | null | app/models/__init__.py | LIhDi/python-atendimento-agendamento-back-end | affb722440678415d1d6293e84be3f1743c915b7 | [
"MIT"
] | null | null | null | from enum import Enum
class StatusType(Enum):
DEFAULT = "dflag updated_at created_at".split()
class UnidadesType(Enum):
DEFAULT = "dflag updated_at created_at".split()
class AssuntoType(Enum):
DEFAULT = "dflag updated_at created_at".split()
class PersonsType(Enum):
DEFAULT = "dflag updated_at create... | 35.405594 | 109 | 0.635197 | 563 | 5,063 | 5.35524 | 0.147425 | 0.066335 | 0.069652 | 0.038143 | 0.360862 | 0.326036 | 0.326036 | 0.31476 | 0.31476 | 0.185075 | 0 | 0 | 0.254395 | 5,063 | 142 | 110 | 35.65493 | 0.798676 | 0 | 0 | 0.252174 | 0 | 0 | 0.111199 | 0.004148 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147826 | false | 0 | 0.008696 | 0.008696 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
06282a67e7f0b15f67df455cc6ff5d4a87a91f5b | 550 | py | Python | 2018/day01.py | leandrocoding/aoc | 8e7d072d2302fcdec3bd441970ccf81d1479f1ef | [
"MIT"
] | 1 | 2020-12-31T13:32:52.000Z | 2020-12-31T13:32:52.000Z | 2018/day01.py | leandrocoding/aoc | 8e7d072d2302fcdec3bd441970ccf81d1479f1ef | [
"MIT"
] | null | null | null | 2018/day01.py | leandrocoding/aoc | 8e7d072d2302fcdec3bd441970ccf81d1479f1ef | [
"MIT"
] | null | null | null | import os
path = os.path.join(os.path.dirname(__file__), 'day01.txt')
with open(path) as f:
inputdata = f.readlines()
def part1():
total = 0
freqlist = {}
for line in inputdata:
total += int(line)
return total
def part2():
total = 0
freqlist = set()
while True:
for lin... | 21.153846 | 59 | 0.56 | 75 | 550 | 4.053333 | 0.52 | 0.059211 | 0.092105 | 0.118421 | 0.197368 | 0.197368 | 0.197368 | 0 | 0 | 0 | 0 | 0.041885 | 0.305455 | 550 | 26 | 60 | 21.153846 | 0.753927 | 0 | 0 | 0.363636 | 0 | 0 | 0.116152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.227273 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
062887e67ee371cc8403b61489299bbce2f354a5 | 2,259 | py | Python | setup.py | abhijithneilabraham/signs | 1ce8f6fe5468ec9a69d2d29646be3b3e400879d2 | [
"MIT"
] | 13 | 2018-06-22T21:30:28.000Z | 2022-01-26T20:58:24.000Z | setup.py | abhijithneilabraham/signs | 1ce8f6fe5468ec9a69d2d29646be3b3e400879d2 | [
"MIT"
] | 13 | 2018-07-29T14:41:52.000Z | 2022-02-09T08:22:27.000Z | setup.py | abhijithneilabraham/signs | 1ce8f6fe5468ec9a69d2d29646be3b3e400879d2 | [
"MIT"
] | 3 | 2018-08-06T06:42:39.000Z | 2022-02-10T14:53:02.000Z | #! /usr/bin/env python
#
# Copyright (C) 2018 Mikko Kotila
import os
DESCRIPTION = "Signs Text Processing for Deep Learning"
LONG_DESCRIPTION = """\
Signs is a utility for text preprocessing, vectorizing, and analysis
such as semantic similarity, mainly for the purpose of using unstructured
data in deep learning mode... | 30.945205 | 78 | 0.557769 | 199 | 2,259 | 6.211055 | 0.582915 | 0.048544 | 0.063107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006057 | 0.342187 | 2,259 | 72 | 79 | 31.375 | 0.825707 | 0.023462 | 0 | 0 | 0 | 0 | 0.388561 | 0.039946 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
062a23a5f74a1d166ea135fc95ab88b6338d9bd7 | 856 | py | Python | burstInfer/get_adjusted.py | ManchesterBioinference/burstInfer | 933bc76ae8e7fadc36bab1b6bf07ed18e5978a01 | [
"Apache-2.0"
] | 1 | 2021-05-05T05:09:53.000Z | 2021-05-05T05:09:53.000Z | burstInfer/get_adjusted.py | ManchesterBioinference/burstInfer | 933bc76ae8e7fadc36bab1b6bf07ed18e5978a01 | [
"Apache-2.0"
] | 2 | 2022-02-08T20:42:30.000Z | 2022-02-11T17:57:22.000Z | burstInfer/get_adjusted.py | ManchesterBioinference/burstInfer | 933bc76ae8e7fadc36bab1b6bf07ed18e5978a01 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 9 08:46:08 2020
@author: Jon
"""
from numba import jit
import numpy as np
@jit(nopython=True)
def get_adjusted(state, K, W, ms2_coeff):
#ms2_coeff_flipped = np.flip(ms2_coeff_flipped, 1)
ms2_coeff_flipped = ms2_coeff
one_accumulator = 0
zero_ac... | 24.457143 | 80 | 0.603972 | 112 | 856 | 4.392857 | 0.419643 | 0.113821 | 0.152439 | 0.105691 | 0.130081 | 0.130081 | 0 | 0 | 0 | 0 | 0 | 0.047386 | 0.285047 | 856 | 34 | 81 | 25.176471 | 0.756536 | 0.214953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
062db264f7e87f340fddb2744772935245986efa | 5,542 | py | Python | Snow-Cooling/Libraries/HT_thermal_resistance.py | CarlGriffinsteed/UVM-ME144-Heat-Transfer | 9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca | [
"CC-BY-3.0"
] | 7 | 2017-06-02T20:31:22.000Z | 2021-04-05T13:52:33.000Z | Snow-Cooling/Libraries/HT_thermal_resistance.py | CarlGriffinsteed/UVM-ME144-Heat-Transfer | 9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca | [
"CC-BY-3.0"
] | null | null | null | Snow-Cooling/Libraries/HT_thermal_resistance.py | CarlGriffinsteed/UVM-ME144-Heat-Transfer | 9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca | [
"CC-BY-3.0"
] | 9 | 2019-01-24T17:43:41.000Z | 2021-07-25T18:08:34.000Z | """Object name: Resistance
Function name: serial_sum(R,nori,nend), performs serial sum of a resistance object list from nori to nend
Function name: parallel_sum(R,nori,nend), performs parallel sum of a resistance object list from nori to nend
"""
### definition of thermal resistance ###
from sympy.interactive ... | 39.304965 | 154 | 0.601227 | 834 | 5,542 | 3.934053 | 0.219424 | 0.006705 | 0.0064 | 0.025907 | 0.293813 | 0.230418 | 0.223712 | 0.176775 | 0.169461 | 0.169461 | 0 | 0.015159 | 0.297726 | 5,542 | 140 | 155 | 39.585714 | 0.827852 | 0.498196 | 0 | 0.442857 | 0 | 0 | 0.145439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128571 | false | 0 | 0.085714 | 0 | 0.257143 | 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 |
063bfcdb61c52f48cebfa7c465fedd55623d891f | 621 | py | Python | setup.py | OseiasBeu/speaker_ass | b7ec38c131b17c502348873f5c90450752e41b9e | [
"MIT"
] | null | null | null | setup.py | OseiasBeu/speaker_ass | b7ec38c131b17c502348873f5c90450752e41b9e | [
"MIT"
] | null | null | null | setup.py | OseiasBeu/speaker_ass | b7ec38c131b17c502348873f5c90450752e41b9e | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
from setuptools import setup
with open("README.md", "r") as fh:
readme = fh.read()
setup(name='fala_assis',
version='0.0.1',
url='https://github.com/OseiasBeu/AssistenteDeFala',
license='MIT License',
author='Oseias Beu',
long_description=readme,
long_des... | 34.5 | 110 | 0.679549 | 78 | 621 | 5.307692 | 0.75641 | 0.043478 | 0.077295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007843 | 0.178744 | 621 | 18 | 111 | 34.5 | 0.803922 | 0.033816 | 0 | 0 | 0 | 0 | 0.433962 | 0.036021 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
063ed7c5bac55d0b3c1f5775f5ccbe6840c1974c | 3,603 | py | Python | download_data/download_data.py | russelljjarvis/readabilityinscience | 353d79f11f2380fd4872242397a255a4b1da675c | [
"MIT"
] | 14 | 2017-03-24T16:01:52.000Z | 2021-01-22T17:57:48.000Z | download_data/download_data.py | russelljjarvis/readabilityinscience | 353d79f11f2380fd4872242397a255a4b1da675c | [
"MIT"
] | 3 | 2021-03-05T07:49:21.000Z | 2022-01-09T00:54:51.000Z | download_data/download_data.py | russelljjarvis/readabilityinscience | 353d79f11f2380fd4872242397a255a4b1da675c | [
"MIT"
] | 7 | 2017-08-08T09:46:36.000Z | 2021-08-23T16:18:12.000Z | #%%
#md
"""
This script downloads the dataset use in the analysis.
__It requires 2 inputs to be specified__
repo_directory and email (see first cell block).
"""
#%%
# Where is the main directory of the repo
repo_directory = './'
# Pubmed requires you to identify with an email addreesss
email = ''
#%%
import os
os... | 28.595238 | 154 | 0.686095 | 479 | 3,603 | 5.102296 | 0.36952 | 0.026596 | 0.007365 | 0.013502 | 0.486498 | 0.486498 | 0.468085 | 0.457447 | 0.457447 | 0.432079 | 0 | 0.001684 | 0.175687 | 3,603 | 125 | 155 | 28.824 | 0.821212 | 0.396614 | 0 | 0.25 | 0 | 0 | 0.178591 | 0.073696 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.138889 | 0 | 0.138889 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
063f03923348104f14d70cb5ad60e17ea2bae4f7 | 1,586 | py | Python | scripts/parser_example.py | sync-or-swim/sos-journaler | f98897b47a8025e74fae4b427af95e07363a64c8 | [
"MIT"
] | null | null | null | scripts/parser_example.py | sync-or-swim/sos-journaler | f98897b47a8025e74fae4b427af95e07363a64c8 | [
"MIT"
] | 27 | 2020-01-29T05:50:52.000Z | 2020-12-20T04:53:01.000Z | scripts/parser_example.py | BryceBeagle/sync-or-swim | f98897b47a8025e74fae4b427af95e07363a64c8 | [
"MIT"
] | null | null | null | import xml.etree.ElementTree as ET
from pathlib import Path
from argparse import ArgumentParser
import dateutil.parser
def main():
parser = ArgumentParser(
description="An example script demonstrating how to parse a few "
"values out of a FIXM XML file.")
parser.add_argument("xml_... | 32.367347 | 73 | 0.551702 | 159 | 1,586 | 5.358491 | 0.490566 | 0.032864 | 0.042254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.35309 | 1,586 | 48 | 74 | 33.041667 | 0.830409 | 0 | 0 | 0.052632 | 0 | 0 | 0.226356 | 0.013871 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.105263 | 0 | 0.131579 | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0643039f86602184a503cb24840a75bcaf50a6c2 | 10,371 | py | Python | handlers.py | martinslabber/tape-library-robot-control | ce4ca180c6d5a6be81702c252a1a8b4cde848b9b | [
"MIT"
] | null | null | null | handlers.py | martinslabber/tape-library-robot-control | ce4ca180c6d5a6be81702c252a1a8b4cde848b9b | [
"MIT"
] | 1 | 2020-05-05T09:08:20.000Z | 2020-06-19T10:15:01.000Z | handlers.py | martinslabber/tape-library-robot-control | ce4ca180c6d5a6be81702c252a1a8b4cde848b9b | [
"MIT"
] | 1 | 2020-06-15T09:02:01.000Z | 2020-06-15T09:02:01.000Z | # Handlers
import json
import logging
from aiohttp import web
def tape_library_handler_wrapper(
request,
action_name,
required_params=None,
optional_params=None,
skip_lock_check=False,
):
"""This wrapper performs error handling for the API calls.
Raises
------
Multiple exception... | 29.05042 | 89 | 0.563687 | 979 | 10,371 | 5.884576 | 0.214505 | 0.081236 | 0.137476 | 0.052074 | 0.530116 | 0.516577 | 0.478736 | 0.472487 | 0.460684 | 0.43916 | 0 | 0.020376 | 0.332755 | 10,371 | 356 | 90 | 29.132022 | 0.812139 | 0.043776 | 0 | 0.219048 | 0 | 0 | 0.115375 | 0 | 0 | 0 | 0 | 0.005618 | 0 | 1 | 0.009524 | false | 0 | 0.028571 | 0 | 0.152381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0643deae65bf97584696f33e80afdf35b197abcf | 1,677 | py | Python | robit/core/alert.py | stratusadv/robit | 7e0414d0ed3d98bb2c9a8785bf36961ac08f1d27 | [
"MIT"
] | null | null | null | robit/core/alert.py | stratusadv/robit | 7e0414d0ed3d98bb2c9a8785bf36961ac08f1d27 | [
"MIT"
] | 1 | 2021-11-01T18:51:04.000Z | 2021-11-01T18:51:04.000Z | robit/core/alert.py | stratusadv/robit | 7e0414d0ed3d98bb2c9a8785bf36961ac08f1d27 | [
"MIT"
] | null | null | null | import logging
from datetime import datetime, timedelta
from robit.core.health import Health
class Alert:
def __init__(
self,
**kwargs,
):
if 'alert_method' in kwargs:
self.method = kwargs['alert_method']
if 'alert_method_kwargs' in kwargs:
se... | 37.266667 | 119 | 0.627907 | 183 | 1,677 | 5.47541 | 0.251366 | 0.11976 | 0.11976 | 0.095808 | 0.191617 | 0.143713 | 0 | 0 | 0 | 0 | 0 | 0.004209 | 0.291592 | 1,677 | 44 | 120 | 38.113636 | 0.839226 | 0 | 0 | 0.085714 | 0 | 0 | 0.181276 | 0.073345 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.085714 | 0 | 0.171429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
064427ba3481c1d9ed4c628c04dbaf55a12eda29 | 365 | py | Python | 202-happy-number/202-happy-number.py | hyeseonko/LeetCode | 48dfc93f1638e13041d8ce1420517a886abbdc77 | [
"MIT"
] | 2 | 2021-12-05T14:29:06.000Z | 2022-01-01T05:46:13.000Z | 202-happy-number/202-happy-number.py | hyeseonko/LeetCode | 48dfc93f1638e13041d8ce1420517a886abbdc77 | [
"MIT"
] | null | null | null | 202-happy-number/202-happy-number.py | hyeseonko/LeetCode | 48dfc93f1638e13041d8ce1420517a886abbdc77 | [
"MIT"
] | null | null | null | class Solution:
def isHappy(self, n: int) -> bool:
pool = set()
pool.add(n)
result=n
while(result>1):
strn = str(result)
result = 0
for c in strn:
result+=int(c)*int(c)
if result in pool:
return False
... | 26.071429 | 38 | 0.441096 | 43 | 365 | 3.744186 | 0.55814 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.463014 | 365 | 14 | 39 | 26.071429 | 0.811224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 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 |
0648e18f81ac883f3b49a5656d1320a8eddbf0ed | 5,014 | py | Python | unitorch/score/voc_map.py | fuliucansheng/UniTorch | 47038321593ce4e7eabda555bd58c0cf89482146 | [
"MIT"
] | 2 | 2022-02-05T08:52:00.000Z | 2022-03-27T07:01:34.000Z | unitorch/score/voc_map.py | Lixin-Qian/unitorch | 47038321593ce4e7eabda555bd58c0cf89482146 | [
"MIT"
] | null | null | null | unitorch/score/voc_map.py | Lixin-Qian/unitorch | 47038321593ce4e7eabda555bd58c0cf89482146 | [
"MIT"
] | 1 | 2022-03-27T07:01:13.000Z | 2022-03-27T07:01:13.000Z | import numpy as np
from collections import defaultdict
from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union
def _voc_ap(
rec,
prec,
use_07_metric=False,
):
"""Compute VOC AP given precision and recall. If use_07_metric is true, uses
the VOC 07 11-point method (default:False).
... | 33.426667 | 103 | 0.553849 | 763 | 5,014 | 3.473132 | 0.192661 | 0.033962 | 0.049057 | 0.031698 | 0.301887 | 0.246038 | 0.230943 | 0.230943 | 0.213585 | 0.213585 | 0 | 0.028165 | 0.327284 | 5,014 | 149 | 104 | 33.651007 | 0.757486 | 0.196649 | 0 | 0.196262 | 0 | 0 | 0.000765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028037 | false | 0 | 0.028037 | 0 | 0.084112 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
064ca7c37993e4810c14d5f7e1d0f4a40a067487 | 8,098 | py | Python | video_utils.py | Domhnall-Liopa/Lip2Wav | 236ae24cd7945da8a75ddea1cfdc3da271c3c59f | [
"MIT"
] | null | null | null | video_utils.py | Domhnall-Liopa/Lip2Wav | 236ae24cd7945da8a75ddea1cfdc3da271c3c59f | [
"MIT"
] | null | null | null | video_utils.py | Domhnall-Liopa/Lip2Wav | 236ae24cd7945da8a75ddea1cfdc3da271c3c59f | [
"MIT"
] | null | null | null | import json
import random
import re
import subprocess
import tempfile
from datetime import timedelta
import cv2
import numpy as np
import requests
from vidaug import augmentors as va
# this is a static build from https://www.johnvansickle.com/ffmpeg/old-releases/ffmpeg-4.4.1-i686-static.tar.xz
# requires new ffmpeg v... | 32.785425 | 216 | 0.67918 | 1,111 | 8,098 | 4.691269 | 0.261926 | 0.110514 | 0.04317 | 0.024175 | 0.25518 | 0.220837 | 0.168841 | 0.125863 | 0.09363 | 0.080967 | 0 | 0.024603 | 0.206965 | 8,098 | 246 | 217 | 32.918699 | 0.786982 | 0.082119 | 0 | 0.222222 | 0 | 0.040936 | 0.162217 | 0.046251 | 0 | 0 | 0 | 0.004065 | 0 | 1 | 0.099415 | false | 0 | 0.05848 | 0 | 0.25731 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
064f53cd615575e4bc66f6d26d74337b90be2852 | 621 | py | Python | aflcov/vis.py | axt/afl-cov-vis | 7806fa430113732790563b0f15884a087ebd21ea | [
"BSD-2-Clause"
] | 29 | 2017-11-12T09:35:01.000Z | 2022-02-17T09:29:54.000Z | aflcov/vis.py | usc-isi-bass/afl-cov | 18e305d101443d8a06c46f9ac080dd45ca13d8bb | [
"BSD-2-Clause"
] | 2 | 2017-11-12T09:40:43.000Z | 2018-01-19T10:37:17.000Z | aflcov/vis.py | usc-isi-bass/afl-cov | 18e305d101443d8a06c46f9ac080dd45ca13d8bb | [
"BSD-2-Clause"
] | 6 | 2017-11-12T09:50:20.000Z | 2022-02-22T06:01:17.000Z | from bingraphvis.base import Content
class AflCovInfo(Content):
def __init__(self, project):
super(AflCovInfo, self).__init__('aflcovinfo', ['text'])
self.project = project
def gen_render(self, n):
node = n.obj
n.content[self.name] = {
'data': [{
... | 31.05 | 130 | 0.481481 | 63 | 621 | 4.52381 | 0.555556 | 0.154386 | 0.091228 | 0.112281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.371981 | 621 | 19 | 131 | 32.684211 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0.10306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
064faa0fae768ef7598b80938b851b966512e6ab | 3,418 | py | Python | corehq/couchapps/tests/test_all_docs.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2020-05-05T13:10:01.000Z | 2020-05-05T13:10:01.000Z | corehq/couchapps/tests/test_all_docs.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2019-12-09T14:00:14.000Z | 2019-12-09T14:00:14.000Z | corehq/couchapps/tests/test_all_docs.py | MaciejChoromanski/commcare-hq | fd7f65362d56d73b75a2c20d2afeabbc70876867 | [
"BSD-3-Clause"
] | 5 | 2015-11-30T13:12:45.000Z | 2019-07-01T19:27:07.000Z | from __future__ import absolute_import
from __future__ import unicode_literals
from corehq.dbaccessors.couchapps.all_docs import \
get_all_doc_ids_for_domain_grouped_by_db, get_doc_count_by_type, \
delete_all_docs_by_doc_type, get_doc_count_by_domain_type
from dimagi.utils.couch.database import get_db
from djan... | 50.264706 | 104 | 0.675834 | 484 | 3,418 | 4.349174 | 0.13843 | 0.049881 | 0.08361 | 0.098812 | 0.539667 | 0.531591 | 0.488361 | 0.465558 | 0.451781 | 0.43658 | 0 | 0.009894 | 0.20158 | 3,418 | 67 | 105 | 51.014925 | 0.761451 | 0 | 0 | 0.1 | 0 | 0 | 0.131949 | 0.016676 | 0 | 0 | 0 | 0 | 0.216667 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0652b6080d711fc812aa3a6054f91161bc0d0a8b | 16,913 | py | Python | lattpy/spatial.py | dylanljones/lattpy | 6779ae7755aaf9e844d63a6f63b5036fb64d9f89 | [
"MIT"
] | 11 | 2020-10-29T17:23:02.000Z | 2022-02-28T12:25:41.000Z | lattpy/spatial.py | dylanljones/lattpy | 6779ae7755aaf9e844d63a6f63b5036fb64d9f89 | [
"MIT"
] | 7 | 2021-01-12T13:53:42.000Z | 2022-03-29T11:21:58.000Z | lattpy/spatial.py | dylanljones/lattpy | 6779ae7755aaf9e844d63a6f63b5036fb64d9f89 | [
"MIT"
] | 1 | 2021-10-31T11:15:20.000Z | 2021-10-31T11:15:20.000Z | # coding: utf-8
#
# This code is part of lattpy.
#
# Copyright (c) 2021, Dylan Jones
#
# This code is licensed under the MIT License. The copyright notice in the
# LICENSE file in the root directory and this permission notice shall
# be included in all copies or substantial portions of the Software.
"""Spatial algorit... | 32.840777 | 98 | 0.586945 | 2,339 | 16,913 | 4.170158 | 0.163745 | 0.010765 | 0.005536 | 0.005229 | 0.185565 | 0.132253 | 0.099139 | 0.080172 | 0.072996 | 0.059258 | 0 | 0.017308 | 0.282623 | 16,913 | 514 | 99 | 32.904669 | 0.786615 | 0.234199 | 0 | 0.143345 | 0 | 0 | 0.030875 | 0.009359 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112628 | false | 0 | 0.027304 | 0.027304 | 0.255973 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
06540074f347487eb56749881c52a1e16c5be40a | 6,615 | py | Python | Foobar 3.3.py | SambhavG/Google-foobar | f64f1a4a367c0eab5265e4ed6e22f94b7a297cad | [
"MIT"
] | null | null | null | Foobar 3.3.py | SambhavG/Google-foobar | f64f1a4a367c0eab5265e4ed6e22f94b7a297cad | [
"MIT"
] | null | null | null | Foobar 3.3.py | SambhavG/Google-foobar | f64f1a4a367c0eab5265e4ed6e22f94b7a297cad | [
"MIT"
] | null | null | null | def printMatrix(m):
for i in range(0, len(m)):
print(m[i])
print("\n")
def convertInputToReq(data):
matrix1 = data
width = len(data)
terminalStates = []
for i in range(0, width):
#are all in the row 0?
all0 = True
rowSum = sum(data[i])
if (... | 28.636364 | 92 | 0.521088 | 839 | 6,615 | 4.108462 | 0.134684 | 0.062953 | 0.033072 | 0.057441 | 0.289527 | 0.244851 | 0.167102 | 0.062953 | 0.062953 | 0.036554 | 0 | 0.026461 | 0.343008 | 6,615 | 230 | 93 | 28.76087 | 0.766682 | 0.066213 | 0 | 0.260638 | 0 | 0 | 0.00118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101064 | false | 0 | 0 | 0 | 0.239362 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
06585c3b0c0000d446eb614d1e5895fa37089822 | 1,105 | py | Python | backend/project_requests/admin.py | mnieber/taskboard | 7925342751e2782bd0a0258eb2d43d9ec90ce9d8 | [
"MIT"
] | null | null | null | backend/project_requests/admin.py | mnieber/taskboard | 7925342751e2782bd0a0258eb2d43d9ec90ce9d8 | [
"MIT"
] | null | null | null | backend/project_requests/admin.py | mnieber/taskboard | 7925342751e2782bd0a0258eb2d43d9ec90ce9d8 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.http import HttpResponseRedirect
from django.urls import path
from faker import Faker
from .models import ProjectRequest
from .utils import create_project_request
@admin.register(ProjectRequest)
class ProjectRequestAdmin(admin.ModelAdmin):
change_list_template = "proj... | 29.864865 | 84 | 0.608145 | 117 | 1,105 | 5.538462 | 0.444444 | 0.08642 | 0.061728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291403 | 1,105 | 36 | 85 | 30.694444 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0.069683 | 0.049774 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.193548 | 0 | 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 |
0660694db2ddc7b0023f6b169f47cbe6fc31c8a7 | 916 | py | Python | topo.py | rahil-g/gpf | 234c22f500283f75454ccba4a12b765be9ddad05 | [
"MIT"
] | null | null | null | topo.py | rahil-g/gpf | 234c22f500283f75454ccba4a12b765be9ddad05 | [
"MIT"
] | null | null | null | topo.py | rahil-g/gpf | 234c22f500283f75454ccba4a12b765be9ddad05 | [
"MIT"
] | null | null | null | #Author: Rahil Gandotra
#This file consists of the custom Mininet topology used for GPF.
from mininet.topo import Topo
class MyTopo(Topo):
def __init__(self):
Topo.__init__(self)
h1 = self.addHost('h1')
h2 = self.addHost('h2')
s1 = self.addSwitch('s1', listenPort=6675, dpid='0000... | 31.586207 | 75 | 0.622271 | 112 | 916 | 5.017857 | 0.410714 | 0.156584 | 0.069395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18598 | 0.2369 | 916 | 28 | 76 | 32.714286 | 0.618026 | 0.092795 | 0 | 0 | 0 | 0 | 0.120627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0661b5f4de7b9d1818fd8ebe0cb07e2e58e19d2a | 10,819 | py | Python | Contents/Libraries/Shared/subliminal_patch/providers/legendastv.py | jippo015/Sub-Zero.bundle | 734e0f7128c05c0f639e11e7dfc77daa1014064b | [
"MIT"
] | 1,553 | 2015-11-09T02:17:06.000Z | 2022-03-31T20:24:52.000Z | Contents/Libraries/Shared/subliminal_patch/providers/legendastv.py | saiterlz/Sub-Zero.bundle | 1a0bb9c3e4be84be35d46672907783363fe5a87b | [
"MIT"
] | 691 | 2015-11-05T21:32:26.000Z | 2022-03-17T10:52:45.000Z | Contents/Libraries/Shared/subliminal_patch/providers/legendastv.py | saiterlz/Sub-Zero.bundle | 1a0bb9c3e4be84be35d46672907783363fe5a87b | [
"MIT"
] | 162 | 2015-11-06T19:38:55.000Z | 2022-03-16T02:42:41.000Z | # coding=utf-8
import logging
import rarfile
import os
from subliminal.exceptions import ConfigurationError
from subliminal.providers.legendastv import LegendasTVSubtitle as _LegendasTVSubtitle, \
LegendasTVProvider as _LegendasTVProvider, Episode, Movie, guess_matches, guessit, sanitize, region, type_map, \
r... | 41.136882 | 118 | 0.574175 | 1,192 | 10,819 | 5.061242 | 0.196309 | 0.028841 | 0.014918 | 0.009945 | 0.155644 | 0.11752 | 0.109233 | 0.086856 | 0.076579 | 0.047074 | 0 | 0.002487 | 0.331084 | 10,819 | 262 | 119 | 41.293893 | 0.831146 | 0.096589 | 0 | 0.1 | 0 | 0.0125 | 0.085711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.025 | 0.0375 | 0.00625 | 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 |
06631addf22bfb69f24be36f23cfcd2fff2aa5f2 | 1,587 | py | Python | Position.py | bubakazouba/Robinhood-for-Google-Finance | 4e0aa8955e4bc786a8528ea500459f5937f15a96 | [
"MIT"
] | 5 | 2017-11-24T08:13:47.000Z | 2021-05-05T04:48:30.000Z | Position.py | bubakazouba/Robinhood-for-Google-Finance | 4e0aa8955e4bc786a8528ea500459f5937f15a96 | [
"MIT"
] | null | null | null | Position.py | bubakazouba/Robinhood-for-Google-Finance | 4e0aa8955e4bc786a8528ea500459f5937f15a96 | [
"MIT"
] | null | null | null | import re
class Position(object):
def __init__(self):
self.total_in = None
self.total_out = None
self.ticker_symbol = None
self.total_number_of_shares = None
self.remaining_number_of_shares = None
self.open_date = None
self.close_date = None
def format_d... | 44.083333 | 352 | 0.63264 | 224 | 1,587 | 4.1875 | 0.232143 | 0.143923 | 0.11194 | 0.090618 | 0.488273 | 0.275053 | 0.275053 | 0.275053 | 0.275053 | 0.275053 | 0 | 0.009764 | 0.225583 | 1,587 | 36 | 353 | 44.083333 | 0.753458 | 0 | 0 | 0 | 0 | 0 | 0.034005 | 0.014484 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.034483 | 0.068966 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
066587c08345eadec5ce3298131ac1c2190623fb | 15,789 | py | Python | app_framework/main_window.py | planktontoolbox/plankton-toolbox | 626930120329983fb9419a9aed94712148bac219 | [
"MIT"
] | 5 | 2016-12-02T08:24:35.000Z | 2021-02-24T08:41:41.000Z | app_framework/main_window.py | planktontoolbox/plankton-toolbox | 626930120329983fb9419a9aed94712148bac219 | [
"MIT"
] | 53 | 2016-11-14T13:11:41.000Z | 2022-01-13T09:28:11.000Z | app_framework/main_window.py | planktontoolbox/plankton-toolbox | 626930120329983fb9419a9aed94712148bac219 | [
"MIT"
] | 1 | 2020-11-27T01:20:10.000Z | 2020-11-27T01:20:10.000Z | #!/usr/bin/python3
# -*- coding:utf-8 -*-
# Project: http://plankton-toolbox.org
# Copyright (c) 2010-2018 SMHI, Swedish Meteorological and Hydrological Institute
# License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit).
import time
import codecs
from PyQt5 import QtWidgets
from PyQt5 i... | 44.601695 | 104 | 0.611565 | 1,615 | 15,789 | 5.821053 | 0.251393 | 0.012126 | 0.013403 | 0.011701 | 0.122115 | 0.05425 | 0.036379 | 0.029997 | 0.012552 | 0 | 0 | 0.007356 | 0.285389 | 15,789 | 353 | 105 | 44.728045 | 0.825844 | 0.251821 | 0 | 0.033333 | 0 | 0 | 0.074397 | 0.009986 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.004762 | 0.042857 | 0 | 0.12381 | 0.004762 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
06669e5cbe5823ce5ec6dea9345b3539ee4591b9 | 1,443 | py | Python | two_buckets_and_a_lambda/terraform/lambdas/credentials-lambda.py | chariotsolutions/aws-examples | 0c0945966f3e1b118ba5db948d5db3e304bc2ac3 | [
"MIT"
] | 6 | 2020-05-20T13:58:35.000Z | 2022-02-04T13:25:05.000Z | two_buckets_and_a_lambda/terraform/lambdas/credentials-lambda.py | chariotsolutions/aws-examples | 0c0945966f3e1b118ba5db948d5db3e304bc2ac3 | [
"MIT"
] | 1 | 2021-09-02T21:19:10.000Z | 2021-09-02T21:19:10.000Z | two_buckets_and_a_lambda/terraform/lambdas/credentials-lambda.py | chariotsolutions/aws-examples | 0c0945966f3e1b118ba5db948d5db3e304bc2ac3 | [
"MIT"
] | 3 | 2019-11-14T21:03:15.000Z | 2022-01-17T19:12:02.000Z | import boto3
import json
import logging
import os
bucket = os.environ['UPLOAD_BUCKET']
role_arn = os.environ['ASSUMED_ROLE_ARN']
sts_client = boto3.client('sts')
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
def lambda_handler(event, context):
body ... | 27.226415 | 105 | 0.546778 | 143 | 1,443 | 5.335664 | 0.482517 | 0.045872 | 0.028834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016211 | 0.316008 | 1,443 | 52 | 106 | 27.75 | 0.756839 | 0 | 0 | 0 | 0 | 0 | 0.286209 | 0.035343 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.090909 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0672220769ef18bb8f7d78e648bf612a87c0cd49 | 253 | py | Python | setup.py | SodakDoubleD/dbprime | 76d2824adbe0f10d6ad04a5607a07f36874389c7 | [
"MIT"
] | null | null | null | setup.py | SodakDoubleD/dbprime | 76d2824adbe0f10d6ad04a5607a07f36874389c7 | [
"MIT"
] | null | null | null | setup.py | SodakDoubleD/dbprime | 76d2824adbe0f10d6ad04a5607a07f36874389c7 | [
"MIT"
] | null | null | null | from distutils.core import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="dbprime",
version="0.1dev",
author="Dalton Dirkson",
author_email="sodakdoubled@gmail.com",
packages=["dbprime",],
)
| 19.461538 | 42 | 0.652174 | 32 | 253 | 5.09375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009662 | 0.181818 | 253 | 12 | 43 | 21.083333 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
067270cf798fc12d58fd8f1dd276c3807b8272a4 | 4,102 | py | Python | tfsnippet/utils/misc.py | Feng37/tfsnippet | 70c7dc5c8c8f6314f9d9e44697f90068417db5cd | [
"MIT"
] | null | null | null | tfsnippet/utils/misc.py | Feng37/tfsnippet | 70c7dc5c8c8f6314f9d9e44697f90068417db5cd | [
"MIT"
] | null | null | null | tfsnippet/utils/misc.py | Feng37/tfsnippet | 70c7dc5c8c8f6314f9d9e44697f90068417db5cd | [
"MIT"
] | null | null | null | import os
import re
from contextlib import contextmanager
import numpy as np
import six
__all__ = ['humanize_duration', 'camel_to_underscore', 'NOT_SET',
'cached_property', 'clear_cached_property', 'maybe_close',
'iter_files']
def humanize_duration(seconds):
"""
Format specified time d... | 25.962025 | 73 | 0.573623 | 515 | 4,102 | 4.405825 | 0.297087 | 0.055531 | 0.044954 | 0.014103 | 0.096959 | 0.062583 | 0.039665 | 0.039665 | 0.039665 | 0.039665 | 0 | 0.01104 | 0.315456 | 4,102 | 157 | 74 | 26.127389 | 0.797009 | 0.305948 | 0 | 0.038961 | 0 | 0 | 0.074745 | 0.007928 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12987 | false | 0 | 0.064935 | 0.012987 | 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 |
0673b5944cf3b730042b94eae2844b3646f79c99 | 54,598 | py | Python | spaic/Backend/Backend.py | ZhejianglabNCRC/SPAIC | 5a08328adcc5a197316cf353746bae7ab6865337 | [
"Apache-2.0"
] | 3 | 2022-03-01T03:04:25.000Z | 2022-03-01T03:07:15.000Z | spaic/Backend/Backend.py | ZhejianglabNCRC/SPAIC | 5a08328adcc5a197316cf353746bae7ab6865337 | [
"Apache-2.0"
] | null | null | null | spaic/Backend/Backend.py | ZhejianglabNCRC/SPAIC | 5a08328adcc5a197316cf353746bae7ab6865337 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on 2020/8/6
@project: SPAIC
@filename: Backend
@author: Hong Chaofei
@contact: hongchf@gmail.com
@description:
定义网络仿真使用的backend,如 Pytorch, Tensorflow, CUDA, 达尔文芯片等,以及相应的微分方程求解方法比如 Euler, 2阶 Runge-Kutta等
"""
from abc import abstractmethod, ABC
from collections import OrderedDict
from ... | 36.447263 | 218 | 0.54502 | 6,183 | 54,598 | 4.607472 | 0.08394 | 0.031452 | 0.023554 | 0.025063 | 0.573083 | 0.503054 | 0.451488 | 0.42653 | 0.396272 | 0.355974 | 0 | 0.008308 | 0.351826 | 54,598 | 1,497 | 219 | 36.47161 | 0.796688 | 0.336826 | 0 | 0.432602 | 0 | 0.001567 | 0.06338 | 0.000682 | 0 | 0 | 0 | 0.001336 | 0 | 1 | 0.117555 | false | 0.003135 | 0.010972 | 0.001567 | 0.15674 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0673b6dfdd8c195674ae3591ed3bb93d152c2801 | 1,257 | py | Python | yuz_egitimi.py | mehdikosaca/yuz_tanima | d2d7828a1f5562d21acde3af8df60ec96a88e7c3 | [
"Apache-2.0"
] | 2 | 2021-12-30T06:38:21.000Z | 2021-12-30T06:39:24.000Z | yuz_egitimi.py | mehdikosaca/yuz_tanima | d2d7828a1f5562d21acde3af8df60ec96a88e7c3 | [
"Apache-2.0"
] | null | null | null | yuz_egitimi.py | mehdikosaca/yuz_tanima | d2d7828a1f5562d21acde3af8df60ec96a88e7c3 | [
"Apache-2.0"
] | null | null | null | import cv2
import numpy as np
from PIL import Image
import os
#Verilerin yolu
path = "veriseti"
recognizer = cv2.face.LBPHFaceRecognizer_create()
detector = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml')
#imajların alınması ve etiketlenmesi için fonksiyon
def getImageAndLabels(pa... | 36.970588 | 97 | 0.706444 | 170 | 1,257 | 5.182353 | 0.564706 | 0.027242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00666 | 0.163882 | 1,257 | 33 | 98 | 38.090909 | 0.830637 | 0.165473 | 0 | 0 | 0 | 0 | 0.187919 | 0.053691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.148148 | 0 | 0.222222 | 0.148148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
06743547989129e1af7ae30ff01eaf04b4056ad2 | 1,846 | py | Python | hello.py | jferroaq/Tarea7z | 013f1f1e8dc3b631be102d6e5731d2ffdffd3657 | [
"Apache-2.0"
] | null | null | null | hello.py | jferroaq/Tarea7z | 013f1f1e8dc3b631be102d6e5731d2ffdffd3657 | [
"Apache-2.0"
] | null | null | null | hello.py | jferroaq/Tarea7z | 013f1f1e8dc3b631be102d6e5731d2ffdffd3657 | [
"Apache-2.0"
] | null | null | null | import kivy
from kivy.app import App
from kivy.uix.button import Label
from kivy.uix.colorpicker import ColorPicker
from kivy.graphics import Color, Ellipse, Triangle
from kivy.properties import StringProperty, ObjectProperty
class Titulo(Label):
cadena=StringProperty("Jesus te ama...")
triangle=ObjectProperty(Non... | 25.287671 | 65 | 0.62026 | 274 | 1,846 | 4.062044 | 0.364964 | 0.053908 | 0.039533 | 0.026954 | 0.053908 | 0.053908 | 0.053908 | 0 | 0 | 0 | 0 | 0.036273 | 0.238353 | 1,846 | 72 | 66 | 25.638889 | 0.755334 | 0 | 0 | 0 | 0 | 0 | 0.077465 | 0.012459 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0 | 0.096774 | 0 | 0.33871 | 0.080645 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0674d6e58cd606f3c44fa44647eb41365904b800 | 356 | py | Python | mundo-02/aula13-ex054.py | fabiocoutoaraujo/CursoVideoPython | 7e3b6ab89cbbba79f640d12e40f3d1e8c22295cf | [
"MIT"
] | 1 | 2020-04-18T16:39:23.000Z | 2020-04-18T16:39:23.000Z | mundo-02/aula13-ex054.py | fabiocoutoaraujo/CursoVideoPython | 7e3b6ab89cbbba79f640d12e40f3d1e8c22295cf | [
"MIT"
] | null | null | null | mundo-02/aula13-ex054.py | fabiocoutoaraujo/CursoVideoPython | 7e3b6ab89cbbba79f640d12e40f3d1e8c22295cf | [
"MIT"
] | null | null | null | from datetime import date
maior = menor = 0
atual = date.today().year
for c in range(1, 8):
nascimento = int(input(f'Em que ano a {c}ª pessoa nasceu? '))
if atual - nascimento > 20:
maior += 1
else:
menor += 1
print(f'Ao todo, temos {maior} pessoas maiores de idade!')
print(f'Ao todo, temos ... | 29.666667 | 65 | 0.63764 | 58 | 356 | 3.913793 | 0.655172 | 0.052863 | 0.070485 | 0.105727 | 0.14978 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025735 | 0.235955 | 356 | 11 | 66 | 32.363636 | 0.808824 | 0 | 0 | 0 | 0 | 0 | 0.36236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 |
0675b9a64430a3b476aa0125ccfd22711ba0b255 | 6,356 | py | Python | Contents/Code/zdfneo.py | typekitrel/abctestard | 1df43561327694ba155f513ad152aab51c56ef42 | [
"MIT"
] | null | null | null | Contents/Code/zdfneo.py | typekitrel/abctestard | 1df43561327694ba155f513ad152aab51c56ef42 | [
"MIT"
] | null | null | null | Contents/Code/zdfneo.py | typekitrel/abctestard | 1df43561327694ba155f513ad152aab51c56ef42 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# zdfneo.py - Aufruf durch __init__.py/ZDF_get_content
#
# Die Funktionen dienen zur Auswertung der ZDF-Neo-Seiten
#
Neo_Base = 'https://www.neo-magazin-royale.de'
PREFIX = '/video/ardmediathek2016/zdfneo'
##################################################################################... | 43.834483 | 112 | 0.660321 | 814 | 6,356 | 5.035627 | 0.299754 | 0.021957 | 0.020737 | 0.021957 | 0.319102 | 0.286411 | 0.258112 | 0.258112 | 0.240059 | 0.205416 | 0 | 0.017089 | 0.143801 | 6,356 | 144 | 113 | 44.138889 | 0.736126 | 0.18927 | 0 | 0.205882 | 0 | 0.009804 | 0.207893 | 0.026648 | 0.019608 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0 | 0 | 0.107843 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
067d4e2d3158aba74160b531385178fe32b82215 | 1,379 | py | Python | src/cogs/example_cog.py | Abaan404/MagmaBot | 2149f6ad8a6a1158112ab9efb4dc77c04c3a5f8e | [
"MIT"
] | 1 | 2021-10-03T21:05:45.000Z | 2021-10-03T21:05:45.000Z | src/cogs/example_cog.py | Abaan404/MagmaBot | 2149f6ad8a6a1158112ab9efb4dc77c04c3a5f8e | [
"MIT"
] | null | null | null | src/cogs/example_cog.py | Abaan404/MagmaBot | 2149f6ad8a6a1158112ab9efb4dc77c04c3a5f8e | [
"MIT"
] | null | null | null | import discord, itertools
from discord.ext import commands, tasks
# Lava is not allowed to change the first text
PRESENCE_TEXT = itertools.cycle(["lava is cute", "*pushes you against wall* wanna play fortnite amongus?", "with ur mum", "owo.exe", "dangit jelly", "gewrhgkhewghkhfuckoiyo5uo", "MiEWcWAFT?? OWOWO"])
class... | 35.358974 | 199 | 0.645395 | 173 | 1,379 | 5.034682 | 0.543353 | 0.068886 | 0.055109 | 0.045924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004655 | 0.221175 | 1,379 | 38 | 200 | 36.289474 | 0.806331 | 0.055838 | 0 | 0 | 0 | 0.055556 | 0.258702 | 0.023518 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
068506b54ed89a62c865b814f0418d72003474e6 | 856 | py | Python | packit_dashboard/api/routes.py | lbarcziova/dashboard | 6ad1141a475d68b081a4fa2ceec5363678ae4e38 | [
"MIT"
] | null | null | null | packit_dashboard/api/routes.py | lbarcziova/dashboard | 6ad1141a475d68b081a4fa2ceec5363678ae4e38 | [
"MIT"
] | null | null | null | packit_dashboard/api/routes.py | lbarcziova/dashboard | 6ad1141a475d68b081a4fa2ceec5363678ae4e38 | [
"MIT"
] | null | null | null | from flask import Blueprint, jsonify, request
from packit_dashboard.utils import return_json
from packit_dashboard.config import API_URL
api = Blueprint("api", __name__)
# The react frontend will request information here instead of fetching directly
# from the main API.
# This is because it will be easier to implemen... | 31.703704 | 79 | 0.731308 | 130 | 856 | 4.646154 | 0.376923 | 0.092715 | 0.109272 | 0.119205 | 0.357616 | 0.357616 | 0.357616 | 0.357616 | 0.357616 | 0.357616 | 0 | 0 | 0.13785 | 856 | 26 | 80 | 32.923077 | 0.818428 | 0.221963 | 0 | 0.375 | 0 | 0 | 0.267776 | 0.173979 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.4375 | 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 |
0687810d3ca357eb81c8f40b9ee9e277ec90842e | 3,668 | py | Python | examples/mag_wmm2015.py | CHEN-Zhaohui/geoist | 06a00db3e0ed3d92abf3e45b7b3bfbef6a858a5b | [
"MIT"
] | 53 | 2018-11-17T03:29:55.000Z | 2022-03-18T02:36:25.000Z | examples/mag_wmm2015.py | CHEN-Zhaohui/geoist | 06a00db3e0ed3d92abf3e45b7b3bfbef6a858a5b | [
"MIT"
] | 3 | 2018-11-28T11:37:51.000Z | 2019-01-30T01:52:45.000Z | examples/mag_wmm2015.py | CHEN-Zhaohui/geoist | 06a00db3e0ed3d92abf3e45b7b3bfbef6a858a5b | [
"MIT"
] | 35 | 2018-11-17T03:29:57.000Z | 2022-03-23T17:57:06.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 10 18:34:07 2019
计算WMM2015模型,WMM.cof文件需要放到与py相同目录
@author: chens
"""
import numpy as np
from pathlib import Path
import xarray
import ctypes as ct
import sys
import datetime
from matplotlib.pyplot import figure
#libwmm = ct.cdll.LoadLibrary(str('D:\\MyWorks\\WMM2015-mast... | 33.045045 | 109 | 0.571156 | 527 | 3,668 | 3.931689 | 0.29222 | 0.02027 | 0.060811 | 0.046332 | 0.208494 | 0.208494 | 0.170849 | 0.170849 | 0.146718 | 0.101351 | 0 | 0.040247 | 0.248092 | 3,668 | 111 | 110 | 33.045045 | 0.711022 | 0.079335 | 0 | 0.125 | 0 | 0 | 0.080333 | 0.011009 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.025 | false | 0 | 0.1125 | 0 | 0.15 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0688619f7ef43b02605de1e45f9fd553d9142b12 | 3,089 | py | Python | test/e2e/tests/test_transit_gateway.py | timbyr/ec2-controller | d96d056fdc6ec7d31981f4c14cad8d740f6cf6ec | [
"Apache-2.0"
] | 14 | 2021-08-04T00:21:49.000Z | 2022-03-21T01:06:09.000Z | test/e2e/tests/test_transit_gateway.py | timbyr/ec2-controller | d96d056fdc6ec7d31981f4c14cad8d740f6cf6ec | [
"Apache-2.0"
] | 48 | 2021-08-03T19:00:42.000Z | 2022-03-31T22:18:42.000Z | test/e2e/tests/test_transit_gateway.py | timbyr/ec2-controller | d96d056fdc6ec7d31981f4c14cad8d740f6cf6ec | [
"Apache-2.0"
] | 9 | 2021-07-22T15:49:43.000Z | 2022-03-06T22:24:14.000Z | # Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may
# not use this file except in compliance with the License. A copy of the
# License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanyin... | 30.89 | 100 | 0.697637 | 409 | 3,089 | 5.085575 | 0.408313 | 0.034615 | 0.030769 | 0.020192 | 0.090385 | 0.057692 | 0.038462 | 0.038462 | 0 | 0 | 0 | 0.016257 | 0.223373 | 3,089 | 100 | 101 | 30.89 | 0.850771 | 0.265458 | 0 | 0.068966 | 0 | 0 | 0.063308 | 0 | 0 | 0 | 0 | 0 | 0.086207 | 1 | 0.068966 | false | 0 | 0.137931 | 0.017241 | 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 |
06897ca4a2ea127df4c4fbdc8e71310f23dfe61f | 2,862 | py | Python | Phase 4/src/search.py | ishaanshah/GameDhaBha | 5ab4f13ec7554ba74739d9a149da1154bb09041a | [
"MIT"
] | null | null | null | Phase 4/src/search.py | ishaanshah/GameDhaBha | 5ab4f13ec7554ba74739d9a149da1154bb09041a | [
"MIT"
] | null | null | null | Phase 4/src/search.py | ishaanshah/GameDhaBha | 5ab4f13ec7554ba74739d9a149da1154bb09041a | [
"MIT"
] | null | null | null | """ Contains all the functions related to the search of enitities in the Database """
from tabulate import tabulate
def SearchPlayerByName(cur, con):
""" Searches for the provided name's similar occurences in the Player's first and last name """
# Take in the input for the search query
search = {}
s... | 25.327434 | 99 | 0.568484 | 303 | 2,862 | 5.369637 | 0.353135 | 0.047941 | 0.022127 | 0.020897 | 0.403196 | 0.403196 | 0.403196 | 0.403196 | 0.403196 | 0.338045 | 0 | 0.002494 | 0.299441 | 2,862 | 112 | 100 | 25.553571 | 0.808978 | 0.139064 | 0 | 0.472222 | 0 | 0 | 0.335931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.013889 | 0 | 0.069444 | 0.208333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
068a35a559d65ea89371c4e0284f743170c94d8d | 15,413 | py | Python | machine/qemu/sources/u-boot/test/py/tests/test_efi_fit.py | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | 1 | 2021-11-21T19:56:29.000Z | 2021-11-21T19:56:29.000Z | machine/qemu/sources/u-boot/test/py/tests/test_efi_fit.py | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | null | null | null | machine/qemu/sources/u-boot/test/py/tests/test_efi_fit.py | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | null | null | null | # SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2019, Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
#
# Work based on:
# - test_net.py
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
# - test_fit.py
# Copyright (c) 2013, Google Inc.
#
# Test launching UEFI binaries from FIT images.
"""
Note: This... | 33.579521 | 99 | 0.594693 | 2,060 | 15,413 | 4.317961 | 0.191262 | 0.012816 | 0.014165 | 0.008769 | 0.337718 | 0.239123 | 0.197976 | 0.178865 | 0.158291 | 0.140079 | 0 | 0.007421 | 0.309349 | 15,413 | 458 | 100 | 33.652838 | 0.828182 | 0.405826 | 0 | 0.2723 | 0 | 0 | 0.2816 | 0.034698 | 0 | 0 | 0.000708 | 0 | 0.032864 | 1 | 0.051643 | false | 0 | 0.014085 | 0 | 0.131455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
068bed0bd09441343b0ab11a87d3f70ca8cbcf66 | 2,234 | py | Python | data_dictionary/data_dictionary.py | georgetown-analytics/DC-Bikeshare | 9f5a6a3256cff15a29f0dca6e9a9d8098ab2df28 | [
"MIT"
] | 11 | 2018-07-01T16:43:05.000Z | 2020-07-17T19:08:16.000Z | data_dictionary/data_dictionary.py | noahnewberger/Bikeshare-DC | 42676654d103cdaddfb76db76d1eece533251261 | [
"MIT"
] | 5 | 2021-02-08T20:21:12.000Z | 2021-12-13T19:47:04.000Z | data_dictionary/data_dictionary.py | noahnewberger/Bikeshare-DC | 42676654d103cdaddfb76db76d1eece533251261 | [
"MIT"
] | 5 | 2018-10-05T19:54:20.000Z | 2020-10-27T11:54:09.000Z | #!/usr/bin/env python
import report, sys
import psycopg2.extras
parser = report.get_parser(sys.argv[0])
parser.add_argument('--title', '-t', required=False, dest='title', default="Data Dictionary", help='Report Title')
args = parser.parse_args()
conn = report.get_connection(args)
curs = conn.cursor(cursor_factory=p... | 29.394737 | 114 | 0.637422 | 290 | 2,234 | 4.762069 | 0.303448 | 0.071687 | 0.043447 | 0.043447 | 0.289645 | 0.162201 | 0.137581 | 0.115858 | 0.060825 | 0.060825 | 0 | 0.019916 | 0.258281 | 2,234 | 75 | 115 | 29.786667 | 0.813518 | 0.008953 | 0 | 0.145455 | 0 | 0.018182 | 0.59286 | 0.034343 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.036364 | 0 | 0.072727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
068d0a9c6eb823b33105c8883388612ae4b08f65 | 1,112 | py | Python | LeetCode/InsertionLL.py | Jaidev810/Competitive-Questions | 5d5b28be69e8572e9b4353e9790ee39b56769fc3 | [
"MIT"
] | 1 | 2021-02-27T06:12:55.000Z | 2021-02-27T06:12:55.000Z | LeetCode/InsertionLL.py | Jaidev810/Competitive-Questions | 5d5b28be69e8572e9b4353e9790ee39b56769fc3 | [
"MIT"
] | 1 | 2021-02-02T08:52:17.000Z | 2021-02-03T08:19:12.000Z | LeetCode/InsertionLL.py | Jaidev810/Competitive-Questions | 5d5b28be69e8572e9b4353e9790ee39b56769fc3 | [
"MIT"
] | null | null | null | class LinkedList:
def __init__(self, data, next='None'):
self.data = data
self.next = next
def takeinputLL():
inputlist = [int(x) for x in input().split()]
head = None
temp = None
for cur in inputlist:
if cur == -1:
break
Newnode = LinkedList(cur)
... | 19.508772 | 52 | 0.522482 | 132 | 1,112 | 4.371212 | 0.272727 | 0.083189 | 0.031196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011561 | 0.377698 | 1,112 | 57 | 53 | 19.508772 | 0.822254 | 0 | 0 | 0.05 | 0 | 0 | 0.008985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.175 | 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 |
068db78fb9e1cc510a957bc841fd463a0fc7de6a | 2,581 | py | Python | migrations/versions/458a7da0c9da_.py | dmiklic/psiholeks-web | 68dda07228a53790ab1e797336bb236031a544de | [
"MIT"
] | null | null | null | migrations/versions/458a7da0c9da_.py | dmiklic/psiholeks-web | 68dda07228a53790ab1e797336bb236031a544de | [
"MIT"
] | 1 | 2018-05-01T09:15:12.000Z | 2018-05-01T09:25:03.000Z | migrations/versions/458a7da0c9da_.py | dmiklic/psiholeks-web | 68dda07228a53790ab1e797336bb236031a544de | [
"MIT"
] | null | null | null | """empty message
Revision ID: 458a7da0c9da
Revises:
Create Date: 2018-05-01 21:15:27.029811
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '458a7da0c9da'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | 46.089286 | 109 | 0.720651 | 371 | 2,581 | 4.719677 | 0.177898 | 0.063963 | 0.073101 | 0.091376 | 0.685323 | 0.685323 | 0.659623 | 0.588806 | 0.442033 | 0.384923 | 0 | 0.014873 | 0.114297 | 2,581 | 55 | 110 | 46.927273 | 0.751094 | 0.109647 | 0 | 0 | 0 | 0 | 0.351172 | 0.18222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.054054 | 0 | 0.108108 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
068fc5e74266b5c9c2303aed1e80240bd5fd0b7c | 573 | py | Python | mimic/modalities/MimicLateral.py | Jimmy2027/MoPoE-MIMIC | d167719b0dc7ba002b7421eb82a83e47d2437795 | [
"MIT"
] | 1 | 2021-09-30T07:56:46.000Z | 2021-09-30T07:56:46.000Z | mimic/modalities/MimicLateral.py | Jimmy2027/MoPoE-MIMIC | d167719b0dc7ba002b7421eb82a83e47d2437795 | [
"MIT"
] | null | null | null | mimic/modalities/MimicLateral.py | Jimmy2027/MoPoE-MIMIC | d167719b0dc7ba002b7421eb82a83e47d2437795 | [
"MIT"
] | null | null | null | import torch
import mimic.modalities.utils
from mimic.modalities.Modality import ModalityIMG
class MimicLateral(ModalityIMG):
def __init__(self, enc, dec, args):
self.name = 'Lateral'
self.likelihood_name = 'laplace'
self.data_size = torch.Size((1, args.img_size, args.img_size))
s... | 31.833333 | 85 | 0.687609 | 72 | 573 | 5.208333 | 0.486111 | 0.12 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002212 | 0.211169 | 573 | 17 | 86 | 33.705882 | 0.827434 | 0 | 0 | 0 | 0 | 0 | 0.031414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0693b9613a135ff67d5413df7255909db8145fcb | 1,131 | py | Python | setup.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | 5 | 2021-06-25T16:44:38.000Z | 2021-12-31T01:29:00.000Z | setup.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | null | null | null | setup.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | 1 | 2021-06-25T20:33:47.000Z | 2021-06-25T20:33:47.000Z | import os, sys, shutil
from cx_Freeze import setup, Executable
from pathlib import Path
def copytree(src, dst, symlinks=False, ignore=None):
for item in os.listdir(src):
s = os.path.join(src, item)
d = os.path.join(dst, item)
if os.path.isdir(s):
shutil.copytree(s, d, symlinks,... | 22.62 | 73 | 0.622458 | 137 | 1,131 | 5.051095 | 0.569343 | 0.080925 | 0.028902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008149 | 0.240495 | 1,131 | 49 | 74 | 23.081633 | 0.797439 | 0.062776 | 0 | 0 | 0 | 0 | 0.215705 | 0.087039 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.078947 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
069788761b0d146c14baf5d90bdb0884306cd8a1 | 472 | py | Python | python/readGeoJsonFIle.py | toddstavish/BEE-CSharp | 223e8ef64d582e625d36a3a2db4e0b53deddf057 | [
"Apache-2.0"
] | null | null | null | python/readGeoJsonFIle.py | toddstavish/BEE-CSharp | 223e8ef64d582e625d36a3a2db4e0b53deddf057 | [
"Apache-2.0"
] | null | null | null | python/readGeoJsonFIle.py | toddstavish/BEE-CSharp | 223e8ef64d582e625d36a3a2db4e0b53deddf057 | [
"Apache-2.0"
] | null | null | null | def importFromGeoJson(geoJsonName):
#driver = ogr.GetDriverByName('geojson')
dataSource = ogr.Open(geoJsonName, 0)
layer = dataSource.GetLayer()
print(layer.GetFeatureCount())
polys = []
image_id = 1
building_id = 0
for feature in layer:
building_id = building_id + 1
... | 29.5 | 142 | 0.669492 | 49 | 472 | 6.367347 | 0.591837 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01061 | 0.201271 | 472 | 16 | 143 | 29.5 | 0.816976 | 0.082627 | 0 | 0 | 0 | 0 | 0.08776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
069859b4e100fade3b9371a57b0661bbf0c77719 | 1,518 | py | Python | DailyCodingProblem/52_Google_LRU.py | RafayAK/CodingPrep | 718eccb439db0f6e727806964766a40e8234c8a9 | [
"MIT"
] | 5 | 2019-09-07T17:31:17.000Z | 2022-03-05T09:59:46.000Z | DailyCodingProblem/52_Google_LRU.py | RafayAK/CodingPrep | 718eccb439db0f6e727806964766a40e8234c8a9 | [
"MIT"
] | null | null | null | DailyCodingProblem/52_Google_LRU.py | RafayAK/CodingPrep | 718eccb439db0f6e727806964766a40e8234c8a9 | [
"MIT"
] | 2 | 2019-09-07T17:31:24.000Z | 2019-10-28T16:10:52.000Z | """
Good morning! Here's your coding interview problem for today.
This problem was asked by Google.
Implement an LRU (Least Recently Used) cache.
It should be able to be initialized with a cache size n, and contain the following methods:
set(key, value): sets key to value. If there are already n items in
... | 24.885246 | 91 | 0.601449 | 237 | 1,518 | 3.687764 | 0.417722 | 0.133867 | 0.075515 | 0.048055 | 0.131579 | 0.114416 | 0.057208 | 0.057208 | 0 | 0 | 0 | 0.011091 | 0.28722 | 1,518 | 60 | 92 | 25.3 | 0.796673 | 0.38274 | 0 | 0.214286 | 0 | 0 | 0.019481 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 1 | 0.107143 | false | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
069b851f5bdd3f1be09d224c228765a0b963eeeb | 624 | py | Python | news_buddy/tasks/post_to_solr.py | izacus/newsbuddy | f26e94f54bb8eeeb46fc48e697f6dd062607a7ea | [
"MIT"
] | null | null | null | news_buddy/tasks/post_to_solr.py | izacus/newsbuddy | f26e94f54bb8eeeb46fc48e697f6dd062607a7ea | [
"MIT"
] | null | null | null | news_buddy/tasks/post_to_solr.py | izacus/newsbuddy | f26e94f54bb8eeeb46fc48e697f6dd062607a7ea | [
"MIT"
] | null | null | null |
def post_to_solr(article):
import settings
from pysolarized import solr, to_solr_date
solr_int = solr.Solr(settings.SOLR_ENDPOINT_URLS, settings.SOLR_DEFAULT_ENDPOINT)
# Build documents for solr dispatch
doc = {"id": article["id"], "title": article["title"],
"source": article["source"]... | 34.666667 | 85 | 0.657051 | 75 | 624 | 5.253333 | 0.453333 | 0.045685 | 0.050761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195513 | 624 | 18 | 86 | 34.666667 | 0.784861 | 0.052885 | 0 | 0 | 0 | 0 | 0.185374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 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 |
069dac451eea987083fb0222c0d932e8a5b6741b | 2,462 | py | Python | services/web/project/routes/api.py | sthe0/test-bot-fullstack | 602c876177eb16958748a9e46274533759ff5792 | [
"MIT"
] | null | null | null | services/web/project/routes/api.py | sthe0/test-bot-fullstack | 602c876177eb16958748a9e46274533759ff5792 | [
"MIT"
] | null | null | null | services/web/project/routes/api.py | sthe0/test-bot-fullstack | 602c876177eb16958748a9e46274533759ff5792 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from flask import Blueprint, jsonify, request
from functools import wraps
from sqlalchemy import desc
from project.common import app, db, fb_api
from project.config import ApiConfig
from project.models import Client, Message
api = Blueprint('api', __name__)
def make_error(message):
retu... | 27.662921 | 89 | 0.675467 | 348 | 2,462 | 4.623563 | 0.227011 | 0.094469 | 0.069608 | 0.043505 | 0.462399 | 0.391548 | 0.359229 | 0.321939 | 0.303294 | 0.303294 | 0 | 0.00498 | 0.184403 | 2,462 | 88 | 90 | 27.977273 | 0.796315 | 0.00853 | 0 | 0.347826 | 0 | 0 | 0.123001 | 0.03731 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115942 | false | 0 | 0.086957 | 0.028986 | 0.405797 | 0.028986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
069f9b47635b756c567cad2b645af0001f7d8f95 | 4,045 | py | Python | multi_view_ctrl/grid_element_div.py | imldresden/mcv-displaywall | d08cf6fab869ee03d8b3af203dd0e55b42ab4605 | [
"MIT"
] | 2 | 2019-12-12T20:57:37.000Z | 2021-09-29T02:59:19.000Z | multi_view_ctrl/grid_element_div.py | imldresden/mcv-displaywall | d08cf6fab869ee03d8b3af203dd0e55b42ab4605 | [
"MIT"
] | null | null | null | multi_view_ctrl/grid_element_div.py | imldresden/mcv-displaywall | d08cf6fab869ee03d8b3af203dd0e55b42ab4605 | [
"MIT"
] | null | null | null | from libavg import avg
from events.event_dispatcher import EventDispatcher
from multi_view_ctrl.grid_element import GridElement
from multi_view_ctrl.configurations.grid_element_div_configuration import GridElementDivConfigurations
class GridElementDiv(avg.DivNode, EventDispatcher):
def __init__(self, grid_element... | 38.52381 | 135 | 0.648949 | 528 | 4,045 | 4.729167 | 0.246212 | 0.145374 | 0.134561 | 0.152183 | 0.291149 | 0.24189 | 0.148979 | 0.125751 | 0.125751 | 0.125751 | 0 | 0.00709 | 0.267738 | 4,045 | 104 | 136 | 38.894231 | 0.835922 | 0.317923 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.041667 | 0.083333 | 0 | 0.354167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
06a3f43967e178259c2fded854053a178b218002 | 208 | py | Python | src/utils/const.py | yizhongw/TagNN-PDTB | 9b944210bcc3851c65cb479ef705acbb1b45b08f | [
"MIT"
] | 14 | 2018-11-19T02:49:34.000Z | 2022-02-18T04:00:31.000Z | src/utils/const.py | lidejian/TreeLSTM-PDTB | 3f048d2a3daf3fb5e803037f9344f515d0e71450 | [
"MIT"
] | null | null | null | src/utils/const.py | lidejian/TreeLSTM-PDTB | 3f048d2a3daf3fb5e803037f9344f515d0e71450 | [
"MIT"
] | 5 | 2017-12-04T13:29:29.000Z | 2018-05-07T08:45:04.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: yizhong
# created_at: 17-5-2 下午5:00
PAD_WORD = '<blank>'
UNK_WORD = '<unk>'
BOS_WORD = '<s>'
EOS_WORD = '</s>'
NUM_WORD = '<num>'
PUNC_TAG = '<punc>'
| 16 | 27 | 0.586538 | 34 | 208 | 3.382353 | 0.764706 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045977 | 0.163462 | 208 | 12 | 28 | 17.333333 | 0.614943 | 0.403846 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
06a83d0998f9996abe66240e832c87433d984bc2 | 626 | py | Python | src/learning_language/views.py | gsi-luis/djangolearning | 4cf1e016cfe2910c907a669e518f5233ae04fb12 | [
"MIT"
] | 1 | 2020-07-05T18:33:33.000Z | 2020-07-05T18:33:33.000Z | src/learning_language/views.py | gsi-luis/djangolearning | 4cf1e016cfe2910c907a669e518f5233ae04fb12 | [
"MIT"
] | 2 | 2021-03-30T13:49:58.000Z | 2021-06-10T19:43:27.000Z | src/learning_language/views.py | gsi-luis/djangolearning | 4cf1e016cfe2910c907a669e518f5233ae04fb12 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .forms import LanguageForm
from learning_django import settings
from django.utils import translation
def index(request):
language_default = settings.LANGUAGE_CODE
if request.method == "POST":
form = LanguageForm(request.POST)
if form.is_valid():
... | 27.217391 | 76 | 0.701278 | 68 | 626 | 6.294118 | 0.426471 | 0.175234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214058 | 626 | 22 | 77 | 28.454545 | 0.869919 | 0 | 0 | 0 | 0 | 0 | 0.119808 | 0.059105 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 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 |
06ada35b71f676f14ae2a8fbfcb628afacd0c4d8 | 512 | py | Python | oj2.py | YanshuHu/combinatoricsoj2 | 51fa8cf06042e63642b8407d12de99d22f0e7a3b | [
"Apache-2.0"
] | null | null | null | oj2.py | YanshuHu/combinatoricsoj2 | 51fa8cf06042e63642b8407d12de99d22f0e7a3b | [
"Apache-2.0"
] | null | null | null | oj2.py | YanshuHu/combinatoricsoj2 | 51fa8cf06042e63642b8407d12de99d22f0e7a3b | [
"Apache-2.0"
] | null | null | null | def main():
variable1 = input()
variable2 = input()
a = variable1.split()
b = variable2.split()
first_line = []
second_line = []
for i in a:
first_line.append(int(i))
for i in b:
second_line.append(int(i))
code(first_line[0], second_line)
def code(target, number):
... | 20.48 | 40 | 0.564453 | 71 | 512 | 3.873239 | 0.380282 | 0.098182 | 0.065455 | 0.101818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 0.289063 | 512 | 24 | 41 | 21.333333 | 0.733516 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
06af865f1a3973785536a7d3858ef8ea324bb911 | 1,437 | py | Python | tests/bugs/core_4158_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2022-02-05T11:37:13.000Z | 2022-02-05T11:37:13.000Z | tests/bugs/core_4158_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-09-03T11:47:00.000Z | 2021-09-03T12:42:10.000Z | tests/bugs/core_4158_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-06-30T14:14:16.000Z | 2021-06-30T14:14:16.000Z | #coding:utf-8
#
# id: bugs.core_4158
# title: Regression: LIKE with escape does not work
# decription:
# tracker_id: CORE-4158
# min_versions: ['2.0.7']
# versions: 2.0.7
# qmid: None
import pytest
from firebird.qa import db_factory, isql_act, Action
# version: 2.0.7
# resources: Non... | 26.127273 | 70 | 0.592902 | 209 | 1,437 | 3.880383 | 0.373206 | 0.049322 | 0.086313 | 0.098644 | 0.276202 | 0.276202 | 0.21455 | 0.21455 | 0.103576 | 0.103576 | 0 | 0.059339 | 0.284621 | 1,437 | 54 | 71 | 26.611111 | 0.729572 | 0.160752 | 0 | 0.09375 | 0 | 0 | 0.58459 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.03125 | false | 0 | 0.0625 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
06afc4b209dc7b6ac90802b9ff2ce19d8ee2b910 | 18,430 | py | Python | trustyroles/arpd_update/arpd_update.py | hmcguire1/trustyroles | 5dbe3d65353538f84f12f3ecef6de2a8cc3f731f | [
"MIT"
] | 2 | 2019-12-16T15:10:13.000Z | 2020-02-24T20:13:40.000Z | trustyroles/arpd_update/arpd_update.py | hmcguire1/trustyroles | 5dbe3d65353538f84f12f3ecef6de2a8cc3f731f | [
"MIT"
] | null | null | null | trustyroles/arpd_update/arpd_update.py | hmcguire1/trustyroles | 5dbe3d65353538f84f12f3ecef6de2a8cc3f731f | [
"MIT"
] | 1 | 2019-12-05T01:12:33.000Z | 2019-12-05T01:12:33.000Z | """
arpd_update focuses on easily editing the assume role policy document of a role.
"""
import os
import json
import logging
import argparse
from datetime import datetime
from typing import List, Dict, Optional
import boto3 # type: ignore
from botocore.exceptions import ClientError # type: ignore
LOGGER = logging.... | 27.507463 | 93 | 0.566522 | 2,115 | 18,430 | 4.743735 | 0.089362 | 0.059005 | 0.033489 | 0.03947 | 0.711751 | 0.671384 | 0.624539 | 0.600817 | 0.586265 | 0.56354 | 0 | 0.006025 | 0.315572 | 18,430 | 669 | 94 | 27.54858 | 0.789361 | 0.066196 | 0 | 0.646833 | 0 | 0 | 0.135697 | 0.015612 | 0 | 0 | 0 | 0 | 0.003839 | 1 | 0.019194 | false | 0 | 0.015355 | 0 | 0.049904 | 0.026871 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
06aff71efc0dec027a46c0058c117887035af9c9 | 7,471 | py | Python | kartingpros/timetrial.py | Vishvak365/Karting-Pros | 1c482cff78e7402c8da8870ff519eea760be4a34 | [
"MIT"
] | 1 | 2021-06-28T21:55:18.000Z | 2021-06-28T21:55:18.000Z | kartingpros/timetrial.py | wboyd600/Karting-Pros | 4db4b9f075b152dfea79c89640c0bac1becce89b | [
"MIT"
] | 17 | 2020-11-27T14:33:39.000Z | 2020-12-08T00:45:18.000Z | kartingpros/timetrial.py | wboyd600/Karting-Pros | 4db4b9f075b152dfea79c89640c0bac1becce89b | [
"MIT"
] | 1 | 2021-06-27T20:27:38.000Z | 2021-06-27T20:27:38.000Z | import pygame
import time
import math
import sys
from kartingpros import track, mainmenu, car, settings, loadimage
from kartingpros.loadimage import _load_image, _load_sound, _load_font
import numpy as np
from numpy import save
from kartingpros.car import Car
from pygame.locals import *
from pygame import mix... | 33.959091 | 99 | 0.549458 | 893 | 7,471 | 4.443449 | 0.226204 | 0.041583 | 0.024194 | 0.016381 | 0.210938 | 0.177671 | 0.102823 | 0.03629 | 0 | 0 | 0 | 0.04176 | 0.342926 | 7,471 | 219 | 100 | 34.114155 | 0.766551 | 0.06465 | 0 | 0.141104 | 0 | 0 | 0.04237 | 0.014963 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02454 | false | 0 | 0.07362 | 0 | 0.122699 | 0.006135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
06b195aef83b65c429bf30fd2c08ed267c6351f6 | 2,204 | py | Python | test/create_cert.py | finsberg/pytest-tornado | 52ba5119310be5385ceed74ef94f4538660e3725 | [
"Apache-2.0"
] | 123 | 2015-03-31T17:25:34.000Z | 2021-12-16T12:14:38.000Z | test/create_cert.py | finsberg/pytest-tornado | 52ba5119310be5385ceed74ef94f4538660e3725 | [
"Apache-2.0"
] | 53 | 2015-02-04T06:02:21.000Z | 2020-11-25T20:04:52.000Z | test/create_cert.py | finsberg/pytest-tornado | 52ba5119310be5385ceed74ef94f4538660e3725 | [
"Apache-2.0"
] | 43 | 2015-02-26T05:02:44.000Z | 2021-12-17T10:08:44.000Z | # -*- coding: utf-8 -*-
"""
Create a cert with pyOpenSSL for tests.
Heavily based on python-opsi's OPSI.Util.Task.Certificate.
Source: https://github.com/opsi-org/python-opsi/blob/stable/OPSI/Util/Task/Certificate.py
"""
import argparse
import os
import random
import socket
from tempfile import NamedTemporaryFile
fro... | 23.956522 | 89 | 0.71824 | 300 | 2,204 | 5.16 | 0.563333 | 0.031654 | 0.063307 | 0.029716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023454 | 0.14882 | 2,204 | 91 | 90 | 24.21978 | 0.801706 | 0.227314 | 0 | 0.036364 | 0 | 0 | 0.111712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0 | 0.145455 | 0 | 0.218182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
06b1a7bf9e162d2f1a93b478504af2c68a143b23 | 680 | py | Python | positional_args.py | nickaigi/effective_python_tips | 1a68b6eaed2e946b003c0cd0bdea03e79b8e8990 | [
"Unlicense"
] | null | null | null | positional_args.py | nickaigi/effective_python_tips | 1a68b6eaed2e946b003c0cd0bdea03e79b8e8990 | [
"Unlicense"
] | null | null | null | positional_args.py | nickaigi/effective_python_tips | 1a68b6eaed2e946b003c0cd0bdea03e79b8e8990 | [
"Unlicense"
] | null | null | null | def log(message, *values):
""" * operator instructs python to pass items from the sequence as
positional arguments
Remember:
- using the * operator with a generator may cause your program
to run out of memory and crash.
- adding new positional parameters to functions that accept
... | 28.333333 | 70 | 0.613235 | 90 | 680 | 4.522222 | 0.744444 | 0.063882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014374 | 0.283824 | 680 | 23 | 71 | 29.565217 | 0.821355 | 0.451471 | 0 | 0 | 0 | 0 | 0.160237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.090909 | 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 |
06b2849360054f2d534889fecd3a7de975d603e4 | 4,342 | py | Python | utilities/misc.py | lebionick/stereo-transformer | 6e7df042d917c5ed00d10bd6ddb6f76e90429148 | [
"Apache-2.0"
] | 410 | 2020-11-06T02:10:17.000Z | 2022-03-25T17:12:24.000Z | utilities/misc.py | lppllppl920/stereo-transformer | f07b1ee8ced1c36e10630401688a06e355056e56 | [
"Apache-2.0"
] | 55 | 2020-11-06T10:29:16.000Z | 2022-03-30T02:10:10.000Z | utilities/misc.py | lppllppl920/stereo-transformer | f07b1ee8ced1c36e10630401688a06e355056e56 | [
"Apache-2.0"
] | 72 | 2020-11-06T07:22:39.000Z | 2022-03-19T14:20:38.000Z | # Authors: Zhaoshuo Li, Xingtong Liu, Francis X. Creighton, Russell H. Taylor, and Mathias Unberath
#
# Copyright (c) 2020. Johns Hopkins University - All rights reserved.
import copy
import numpy as np
import torch
import torch.nn as nn
class NestedTensor(object):
def __init__(self, left, right, disp=None, s... | 32.893939 | 114 | 0.649931 | 636 | 4,342 | 4.234277 | 0.275157 | 0.044189 | 0.014853 | 0.008169 | 0.380245 | 0.342369 | 0.283698 | 0.260676 | 0.230969 | 0.205719 | 0 | 0.023143 | 0.243667 | 4,342 | 131 | 115 | 33.145038 | 0.796894 | 0.242976 | 0 | 0.053333 | 0 | 0 | 0.014678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093333 | false | 0 | 0.053333 | 0.013333 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
06b306a89a539a3cbfca1d1c817821e2aac7c4eb | 28,278 | py | Python | BASS-train.py | shlpu/Statlie-Image-Processor | e40355f43f344fd02041bdc8ce57b0ee101c6cdb | [
"Apache-2.0"
] | 1 | 2019-11-23T12:58:09.000Z | 2019-11-23T12:58:09.000Z | BASS-train.py | shlpu/Statlie-Image-Processor | e40355f43f344fd02041bdc8ce57b0ee101c6cdb | [
"Apache-2.0"
] | null | null | null | BASS-train.py | shlpu/Statlie-Image-Processor | e40355f43f344fd02041bdc8ce57b0ee101c6cdb | [
"Apache-2.0"
] | 3 | 2019-03-27T00:47:08.000Z | 2022-02-05T04:52:48.000Z | import numpy as np
import scipy.io
from sklearn.metrics import confusion_matrix
from random import randint, shuffle
from argparse import ArgumentParser
from helper import getValidDataset
import tensorflow as tf
parser = ArgumentParser()
parser.add_argument('--data', type=str, default='Indian_pines')
parser.add_argumen... | 47.766892 | 169 | 0.607539 | 3,379 | 28,278 | 4.794022 | 0.097958 | 0.028891 | 0.066547 | 0.090314 | 0.64041 | 0.610902 | 0.576023 | 0.568677 | 0.555528 | 0.547812 | 0 | 0.051856 | 0.292135 | 28,278 | 591 | 170 | 47.847716 | 0.757406 | 0.026841 | 0 | 0.481651 | 0 | 0 | 0.075 | 0.003365 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022936 | false | 0 | 0.018349 | 0 | 0.057339 | 0.057339 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ebef4935fe5542a7f33a3a5e4cd173560258a38e | 4,588 | py | Python | mlmodels/model_tf/misc/tfcode2/CNN/alex-net/alexnet.py | gitter-badger/mlmodels | f08cc9b6ec202d4ad25ecdda2f44487da387569d | [
"MIT"
] | 1 | 2022-03-11T07:57:48.000Z | 2022-03-11T07:57:48.000Z | mlmodels/model_tf/misc/tfcode2/CNN/alex-net/alexnet.py | whitetiger1002/mlmodels | f70f1da7434e8855eed50adc67b49cc169f2ea24 | [
"MIT"
] | null | null | null | mlmodels/model_tf/misc/tfcode2/CNN/alex-net/alexnet.py | whitetiger1002/mlmodels | f70f1da7434e8855eed50adc67b49cc169f2ea24 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import time
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
import tensorflow as tf
from scipy.misc import imresize
from sklearn.cross_validation import train_test_split
import _pickle as cPickle
from train import train
class Alexnet:
de... | 37 | 99 | 0.649956 | 723 | 4,588 | 4.02213 | 0.237898 | 0.024759 | 0.066025 | 0.057772 | 0.462517 | 0.396492 | 0.344567 | 0.344567 | 0.27751 | 0.254127 | 0 | 0.067216 | 0.179599 | 4,588 | 123 | 100 | 37.300813 | 0.705367 | 0.022014 | 0 | 0.073171 | 0 | 0 | 0.039759 | 0.014295 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.109756 | 0 | 0.158537 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ebefcab7987e2949070f887144afd954129e8c65 | 4,184 | py | Python | p8_test/test_local/__init__.py | crazynayan/tpf1 | c81a15d88d4d1f3ed2cf043c90782a4b8509ef14 | [
"MIT"
] | 1 | 2020-01-27T10:10:40.000Z | 2020-01-27T10:10:40.000Z | p8_test/test_local/__init__.py | crazynayan/tpf1 | c81a15d88d4d1f3ed2cf043c90782a4b8509ef14 | [
"MIT"
] | 4 | 2019-08-23T05:24:23.000Z | 2021-09-16T10:05:55.000Z | p8_test/test_local/__init__.py | crazynayan/tpf1 | c81a15d88d4d1f3ed2cf043c90782a4b8509ef14 | [
"MIT"
] | null | null | null | import random
import string
import unittest
from typing import List, Union, Dict
from config import config
from p2_assembly.mac2_data_macro import DataMacro
from p3_db.test_data import TestData
from p3_db.test_data_elements import Pnr
from p4_execution.debug import get_debug_loc, add_debug_loc, get_missed_loc
from p4_... | 42.693878 | 119 | 0.633843 | 559 | 4,184 | 4.506261 | 0.280859 | 0.046447 | 0.025804 | 0.033744 | 0.250099 | 0.180627 | 0.094482 | 0.026995 | 0.026995 | 0 | 0 | 0.021519 | 0.244742 | 4,184 | 97 | 120 | 43.134021 | 0.775633 | 0 | 0 | 0.168675 | 0 | 0 | 0.090583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108434 | false | 0 | 0.120482 | 0 | 0.433735 | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ebf1ffe3b522e31d9f44e5d373462af230e2e497 | 3,199 | py | Python | src/GameController.py | salemalex11/Gomoku | e709bc161a945e5521ea3b234ce8db41d3fd5bfe | [
"MIT"
] | null | null | null | src/GameController.py | salemalex11/Gomoku | e709bc161a945e5521ea3b234ce8db41d3fd5bfe | [
"MIT"
] | null | null | null | src/GameController.py | salemalex11/Gomoku | e709bc161a945e5521ea3b234ce8db41d3fd5bfe | [
"MIT"
] | 3 | 2019-02-17T22:15:36.000Z | 2021-01-04T19:13:52.000Z | # Define imports
import pygame
from pygame import *
import sys
import time
class Controller:
"""Class responsible for interacting with the Model and View."""
def __init__(self, view):
"""Initialize a controller taking input from the View."""
self.model = view.get_model()
... | 36.352273 | 131 | 0.449203 | 294 | 3,199 | 4.744898 | 0.326531 | 0.09319 | 0.034409 | 0.034409 | 0.159857 | 0.144086 | 0.075986 | 0.075986 | 0.075986 | 0.075986 | 0 | 0.004828 | 0.482026 | 3,199 | 87 | 132 | 36.770115 | 0.837055 | 0.190685 | 0 | 0.1 | 0 | 0 | 0.021535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ebf22c5792152fe6b5cb3d25a3473aad20996bcf | 17,101 | py | Python | silverberg/test/test_client.py | TimothyZhang/silverberg | fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca | [
"Apache-2.0"
] | 1 | 2019-09-22T04:00:56.000Z | 2019-09-22T04:00:56.000Z | silverberg/test/test_client.py | TimothyZhang/silverberg | fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca | [
"Apache-2.0"
] | 14 | 2015-01-22T01:00:50.000Z | 2017-12-06T03:35:46.000Z | silverberg/test/test_client.py | TimothyZhang/silverberg | fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca | [
"Apache-2.0"
] | 4 | 2015-03-31T19:49:05.000Z | 2020-03-03T20:44:32.000Z | # Copyright 2012 Rackspace Hosting, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | 41.009592 | 103 | 0.626513 | 1,918 | 17,101 | 5.421272 | 0.169447 | 0.032699 | 0.04472 | 0.036545 | 0.622235 | 0.583478 | 0.558088 | 0.542123 | 0.523562 | 0.502404 | 0 | 0.011885 | 0.261973 | 17,101 | 416 | 104 | 41.108173 | 0.81198 | 0.151804 | 0 | 0.495935 | 0 | 0.004065 | 0.103252 | 0.03252 | 0 | 0 | 0 | 0 | 0.247967 | 1 | 0.097561 | false | 0.004065 | 0.02439 | 0.00813 | 0.142276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ebf2bc1d88e8d3404f1439f8fb4400bf3874e4c0 | 3,386 | py | Python | drawer.py | jarekwg/crossword-packer | 88f90c16272c2c2f64475dffe3b0aaeec11c0606 | [
"MIT"
] | null | null | null | drawer.py | jarekwg/crossword-packer | 88f90c16272c2c2f64475dffe3b0aaeec11c0606 | [
"MIT"
] | null | null | null | drawer.py | jarekwg/crossword-packer | 88f90c16272c2c2f64475dffe3b0aaeec11c0606 | [
"MIT"
] | null | null | null | import re
from exceptions import WordPlacementConflict
from constants import ACROSS, DOWN
def score_placements(placements, display=False):
dimensions = [
min([x for x, y, dir in placements.values()]),
min([y for x, y, dir in placements.values()]),
max([placement[0] + len(word) for word, p... | 52.092308 | 159 | 0.560543 | 429 | 3,386 | 4.39627 | 0.200466 | 0.057264 | 0.025981 | 0.025451 | 0.457052 | 0.437434 | 0.266172 | 0.229056 | 0.21421 | 0.173913 | 0 | 0.016553 | 0.304194 | 3,386 | 64 | 160 | 52.90625 | 0.783956 | 0.17218 | 0 | 0.125 | 0 | 0 | 0.005369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.0625 | 0 | 0.104167 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ebf45563a2d56576081e640ac1564e55a2546dba | 4,200 | py | Python | src/analyse/bubble_map.py | timtroendle/geographic-scale | 81ec940e10b8e692429797e6a066a177e1508a89 | [
"MIT"
] | 3 | 2020-08-19T17:56:22.000Z | 2021-08-19T08:52:21.000Z | src/analyse/bubble_map.py | timtroendle/geographic-scale | 81ec940e10b8e692429797e6a066a177e1508a89 | [
"MIT"
] | null | null | null | src/analyse/bubble_map.py | timtroendle/geographic-scale | 81ec940e10b8e692429797e6a066a177e1508a89 | [
"MIT"
] | null | null | null | import numpy as np
import shapely
import geopandas as gpd
import xarray as xr
import matplotlib.pyplot as plt
import seaborn as sns
EPSG_3035_PROJ4 = "+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +units=m +no_defs "
GREY = "#C0C0C0"
BLUE = "#4F6DB8"
YELLOW = "#FABC3C"
SUPPLY_TECHS = [
"hy... | 30.882353 | 113 | 0.662619 | 550 | 4,200 | 4.778182 | 0.329091 | 0.03653 | 0.027397 | 0.018265 | 0.226788 | 0.139269 | 0.117199 | 0.092846 | 0.092846 | 0.060122 | 0 | 0.039598 | 0.218333 | 4,200 | 135 | 114 | 31.111111 | 0.760889 | 0 | 0 | 0.151261 | 0 | 0.008403 | 0.09 | 0.010238 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033613 | false | 0 | 0.05042 | 0 | 0.109244 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ebf5ca4f90a237385342b586d5c1e142847a2572 | 4,875 | py | Python | GUI/my_lib/factory.py | EnviableYapper0/FMachineSchedulerPL | 05ba6a2169ee481062b71b917d1f32d26e240eb8 | [
"MIT"
] | null | null | null | GUI/my_lib/factory.py | EnviableYapper0/FMachineSchedulerPL | 05ba6a2169ee481062b71b917d1f32d26e240eb8 | [
"MIT"
] | null | null | null | GUI/my_lib/factory.py | EnviableYapper0/FMachineSchedulerPL | 05ba6a2169ee481062b71b917d1f32d26e240eb8 | [
"MIT"
] | null | null | null | from . import machine as m
from . import machine_calculator as mc
from . import my_time as mt
class Factory:
def __init__(self, open_time=0.00, close_time=24.00):
self.open_time = open_time
self.close_time = close_time
self.machine_id_map = {}
self.machines = []
def get_opera... | 35.326087 | 106 | 0.633231 | 726 | 4,875 | 3.862259 | 0.125344 | 0.11127 | 0.098431 | 0.03709 | 0.468616 | 0.305278 | 0.253923 | 0.21184 | 0.194722 | 0.194722 | 0 | 0.031514 | 0.270974 | 4,875 | 138 | 107 | 35.326087 | 0.757456 | 0.013538 | 0 | 0.108911 | 0 | 0 | 0.007079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128713 | false | 0.009901 | 0.029703 | 0.009901 | 0.247525 | 0.069307 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ebfa57fc6af077b8e484bb5107bce4b51e06f9f3 | 1,898 | py | Python | places/models.py | amureki/lunchtime-with-channels | 7cf6cb15b88ceefbebd53963ff1e194d8df6c25c | [
"MIT"
] | null | null | null | places/models.py | amureki/lunchtime-with-channels | 7cf6cb15b88ceefbebd53963ff1e194d8df6c25c | [
"MIT"
] | null | null | null | places/models.py | amureki/lunchtime-with-channels | 7cf6cb15b88ceefbebd53963ff1e194d8df6c25c | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from django_extensions.db.models import TimeStampedModel
from stdimage import StdImageField
from stdimage.utils import UploadToUUID
class Place(TimeStampedModel):
... | 29.2 | 67 | 0.615385 | 209 | 1,898 | 5.315789 | 0.38756 | 0.045005 | 0.050405 | 0.061206 | 0.127813 | 0.127813 | 0.127813 | 0.127813 | 0.09721 | 0.09721 | 0 | 0.005098 | 0.276607 | 1,898 | 64 | 68 | 29.65625 | 0.804079 | 0 | 0 | 0.117647 | 0 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.137255 | 0.019608 | 0.431373 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ebfc9f2828a65b31b16c43b42091b7e322b73651 | 2,363 | py | Python | models/process_dataset.py | Aremaki/MscProjectNMR | 5bb8fb129d5fe326aa73b56cb7c5b01a17aebb0d | [
"MIT"
] | null | null | null | models/process_dataset.py | Aremaki/MscProjectNMR | 5bb8fb129d5fe326aa73b56cb7c5b01a17aebb0d | [
"MIT"
] | null | null | null | models/process_dataset.py | Aremaki/MscProjectNMR | 5bb8fb129d5fe326aa73b56cb7c5b01a17aebb0d | [
"MIT"
] | 1 | 2021-07-28T11:18:00.000Z | 2021-07-28T11:18:00.000Z | import tensorflow as tf
def shuffle_and_batch_dataset(dataset, batch_size, shuffle_buffer=None):
"""
This function is used to shuffle and batch the dataset, using shuffle_buffer
and batch_size.
"""
if shuffle_buffer is not None:
dataset = dataset.shuffle(shuffle_buffer)
dataset = datas... | 41.45614 | 99 | 0.7427 | 339 | 2,363 | 4.946903 | 0.230089 | 0.053667 | 0.040549 | 0.039356 | 0.230173 | 0.141324 | 0.121646 | 0.075134 | 0.051282 | 0.051282 | 0 | 0.010864 | 0.181972 | 2,363 | 56 | 100 | 42.196429 | 0.856699 | 0.304697 | 0 | 0.071429 | 0 | 0 | 0.05623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.035714 | 0 | 0.321429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2300582ed8688ca839e05903662437f7a910f9a9 | 1,648 | py | Python | scratch/eyy/debug/bad_pair_analysis.py | sasgc6/pysmurf | a370b515ab717c982781223da147bea3c8fb3a9c | [
"BSD-3-Clause-LBNL"
] | 3 | 2019-10-17T02:37:59.000Z | 2022-03-09T16:42:34.000Z | scratch/eyy/debug/bad_pair_analysis.py | sasgc6/pysmurf | a370b515ab717c982781223da147bea3c8fb3a9c | [
"BSD-3-Clause-LBNL"
] | 446 | 2019-04-10T04:46:20.000Z | 2022-03-15T20:27:57.000Z | scratch/eyy/debug/bad_pair_analysis.py | sasgc6/pysmurf | a370b515ab717c982781223da147bea3c8fb3a9c | [
"BSD-3-Clause-LBNL"
] | 13 | 2019-02-05T18:02:05.000Z | 2021-03-02T18:41:49.000Z | import numpy as np
import matplotlib.pyplot as plt
import os
f_cutoff = .25
df_cutoff = .05
data_dir = '/data/smurf_data/20181214/1544843999/outputs'
f2, df2 = np.load(os.path.join(data_dir, 'band3_badres.npy'))
f2p, df2p = np.load(os.path.join(data_dir, 'band3_badpair.npy'))
m = np.ravel(np.where(np.logical_or(f2 >... | 26.15873 | 69 | 0.646238 | 348 | 1,648 | 2.916667 | 0.232759 | 0.029557 | 0.019704 | 0.023645 | 0.338916 | 0.112315 | 0.055172 | 0.055172 | 0 | 0 | 0 | 0.097327 | 0.114684 | 1,648 | 63 | 70 | 26.15873 | 0.598355 | 0.039442 | 0 | 0 | 0 | 0 | 0.077313 | 0.027883 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06383 | 0 | 0.06383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
230125cca40653427f41d2b5c28c03de5e593aca | 2,794 | py | Python | examples/pytorch/eager/blendcnn/utils.py | intelkevinputnam/lpot-docs | 1ff32b4d89074a6bd133ba531f7c0cea3b73152f | [
"Apache-2.0"
] | 172 | 2021-09-14T18:34:17.000Z | 2022-03-30T06:49:53.000Z | examples/pytorch/eager/blendcnn/utils.py | intelkevinputnam/lpot-docs | 1ff32b4d89074a6bd133ba531f7c0cea3b73152f | [
"Apache-2.0"
] | 40 | 2021-09-14T02:26:12.000Z | 2022-03-29T08:34:04.000Z | examples/pytorch/eager/blendcnn/utils.py | intelkevinputnam/lpot-docs | 1ff32b4d89074a6bd133ba531f7c0cea3b73152f | [
"Apache-2.0"
] | 33 | 2021-09-15T07:27:25.000Z | 2022-03-25T08:30:57.000Z | # Copyright 2018 Dong-Hyun Lee, Kakao Brain.
#
# Copyright (c) 2020 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unle... | 28.222222 | 77 | 0.65927 | 409 | 2,794 | 4.449878 | 0.422983 | 0.032967 | 0.014286 | 0.017582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014767 | 0.224409 | 2,794 | 98 | 78 | 28.510204 | 0.825104 | 0.403006 | 0 | 0 | 0 | 0.018182 | 0.120848 | 0.021764 | 0 | 0 | 0 | 0 | 0.036364 | 1 | 0.109091 | false | 0 | 0.109091 | 0 | 0.327273 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
23012fe006d829b36579833bc95d73785791bbf3 | 1,983 | py | Python | models/Nets.py | lorflea/FederatedLearningMLDL2021 | 453d273c14a06eb6d2522c1b9fe877b43212ab76 | [
"MIT"
] | 1 | 2021-11-22T01:20:29.000Z | 2021-11-22T01:20:29.000Z | models/Nets.py | lorflea/FederatedLearningMLDL2021 | 453d273c14a06eb6d2522c1b9fe877b43212ab76 | [
"MIT"
] | null | null | null | models/Nets.py | lorflea/FederatedLearningMLDL2021 | 453d273c14a06eb6d2522c1b9fe877b43212ab76 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python version: 3.6
import torch
from torch import nn
import torch.nn.functional as F
class AlexNet(nn.Module):
def __init__(self, num_classes=10):
super(AlexNet, self).__init__()
self.features = nn.Sequential(
nn.Conv2d(3, 64, kernel_si... | 30.984375 | 65 | 0.547151 | 286 | 1,983 | 3.671329 | 0.241259 | 0.095238 | 0.086667 | 0.113333 | 0.412381 | 0.355238 | 0.277143 | 0.277143 | 0.230476 | 0.230476 | 0 | 0.087872 | 0.305598 | 1,983 | 64 | 66 | 30.984375 | 0.674655 | 0.031266 | 0 | 0.283019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0 | 0.056604 | 0 | 0.207547 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
23045d3d5a94dd7bbdb73152afab227894299c52 | 3,137 | py | Python | app.py | jjchshayan/heroku | 7181631b52057a92d751e1756b7b422dfd8825c0 | [
"MIT"
] | null | null | null | app.py | jjchshayan/heroku | 7181631b52057a92d751e1756b7b422dfd8825c0 | [
"MIT"
] | null | null | null | app.py | jjchshayan/heroku | 7181631b52057a92d751e1756b7b422dfd8825c0 | [
"MIT"
] | null | null | null | from telegram.ext import Updater
from telegram import bot
#!/usr/bin/env python
# -*- coding: utf-8 -*-
updater = Updater(token='660812730:AAEGP-xXkMKoplHR6YsUECqXB8diNgvlfbs')
dispatcher = updater.dispatcher
import logging
import requests
state = 1
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s -... | 29.87619 | 140 | 0.6927 | 401 | 3,137 | 5.264339 | 0.369077 | 0.072951 | 0.080057 | 0.063003 | 0.143534 | 0.133586 | 0.133586 | 0.133586 | 0.133586 | 0.133586 | 0 | 0.018189 | 0.176283 | 3,137 | 104 | 141 | 30.163462 | 0.798762 | 0.399426 | 0 | 0 | 0 | 0 | 0.237371 | 0.024443 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.162162 | 0 | 0.243243 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
23088bb0c48cd2efc5f4f5582dd8f9fb037c941d | 3,682 | py | Python | src/sequel/hierarchical_search/functional.py | simone-campagna/sequel | a96e0f8b5000f8d0174f97f772cca5ac8a140acd | [
"Apache-2.0"
] | null | null | null | src/sequel/hierarchical_search/functional.py | simone-campagna/sequel | a96e0f8b5000f8d0174f97f772cca5ac8a140acd | [
"Apache-2.0"
] | null | null | null | src/sequel/hierarchical_search/functional.py | simone-campagna/sequel | a96e0f8b5000f8d0174f97f772cca5ac8a140acd | [
"Apache-2.0"
] | null | null | null | """
Search integral/derivative algorithm class
"""
from ..items import Items
from ..sequence import integral, derivative, summation, product
from ..utils import sequence_matches
from .base import RecursiveSearchAlgorithm
__all__ = [
"SearchSummation",
"SearchProduct",
"SearchIntegral",
"SearchDeriv... | 33.171171 | 95 | 0.608637 | 433 | 3,682 | 4.866051 | 0.163972 | 0.068344 | 0.06075 | 0.023256 | 0.63028 | 0.625534 | 0.625534 | 0.600854 | 0.600854 | 0.55719 | 0 | 0.005299 | 0.282455 | 3,682 | 110 | 96 | 33.472727 | 0.792203 | 0.137425 | 0 | 0.605263 | 0 | 0 | 0.018454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.328947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
230ca0bc145d70340fa1510e5f32fb9e40355ade | 1,662 | py | Python | tests/image/segmentation/test_backbones.py | lillekemiker/lightning-flash | a047330ba75486355378f22cbebfd053c3d63c08 | [
"Apache-2.0"
] | null | null | null | tests/image/segmentation/test_backbones.py | lillekemiker/lightning-flash | a047330ba75486355378f22cbebfd053c3d63c08 | [
"Apache-2.0"
] | null | null | null | tests/image/segmentation/test_backbones.py | lillekemiker/lightning-flash | a047330ba75486355378f22cbebfd053c3d63c08 | [
"Apache-2.0"
] | null | null | null | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 42.615385 | 118 | 0.760529 | 224 | 1,662 | 5.5 | 0.513393 | 0.048701 | 0.048701 | 0.068182 | 0.212662 | 0.193182 | 0.193182 | 0.193182 | 0.193182 | 0.193182 | 0 | 0.014768 | 0.144404 | 1,662 | 38 | 119 | 43.736842 | 0.851617 | 0.336342 | 0 | 0 | 0 | 0 | 0.110193 | 0.022957 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.045455 | false | 0 | 0.181818 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
230cbf98d0fce9a1f8d3eb7ee8c52b62685cd185 | 6,972 | py | Python | src/ExtractData.py | AntoineMeresse/Terminal-chart | eff66c32d78c394849176c7777bf7c203dbac5b3 | [
"MIT"
] | null | null | null | src/ExtractData.py | AntoineMeresse/Terminal-chart | eff66c32d78c394849176c7777bf7c203dbac5b3 | [
"MIT"
] | null | null | null | src/ExtractData.py | AntoineMeresse/Terminal-chart | eff66c32d78c394849176c7777bf7c203dbac5b3 | [
"MIT"
] | null | null | null | import sys
import re
from src.GenGraph import *
class ExtractData:
def __init__(self, genGraph):
#print("Init extractData.")
self.datas = list()
self.datasDefine = False
self.file = "pipe" # Cas de base ou l'on prend des données de stdin
self.genGraph = genGraph
... | 30.578947 | 270 | 0.49455 | 738 | 6,972 | 4.636856 | 0.227642 | 0.037989 | 0.038866 | 0.038574 | 0.524255 | 0.483928 | 0.44097 | 0.364115 | 0.364115 | 0.364115 | 0 | 0.03707 | 0.353844 | 6,972 | 227 | 271 | 30.713656 | 0.722531 | 0.510901 | 0 | 0.169014 | 0 | 0 | 0.006754 | 0 | 0 | 0 | 0 | 0 | 0.056338 | 1 | 0.15493 | false | 0 | 0.042254 | 0 | 0.28169 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
230de14d7e6fc08a01de2fd55c6b8f3b77dd5b56 | 4,456 | py | Python | chemistry/compressibilities/optimize_compressibility_factor_sigmoid_minimum.py | davidson16807/tectonics-approximations | f69570fd0a9693fad8e8ec27ccc34e0d6b3fd50b | [
"CC0-1.0"
] | null | null | null | chemistry/compressibilities/optimize_compressibility_factor_sigmoid_minimum.py | davidson16807/tectonics-approximations | f69570fd0a9693fad8e8ec27ccc34e0d6b3fd50b | [
"CC0-1.0"
] | null | null | null | chemistry/compressibilities/optimize_compressibility_factor_sigmoid_minimum.py | davidson16807/tectonics-approximations | f69570fd0a9693fad8e8ec27ccc34e0d6b3fd50b | [
"CC0-1.0"
] | null | null | null | from math import *
import csv
import random
import numpy as np
from optimize import genetic_algorithm
with open('pTZ.csv', newline='') as csvfile:
csvreader = csv.reader(csvfile, delimiter=',', quotechar='"')
next(csvreader, None) # skip header
observations = [( np.array([float(p),float(T)]), float(Z))
... | 31.380282 | 110 | 0.60772 | 742 | 4,456 | 3.615903 | 0.202156 | 0.011927 | 0.007454 | 0.008945 | 0.383899 | 0.370481 | 0.325755 | 0.23183 | 0.210958 | 0.19754 | 0 | 0.087661 | 0.183348 | 4,456 | 141 | 111 | 31.602837 | 0.649629 | 0.101661 | 0 | 0.242991 | 0 | 0.018692 | 0.120461 | 0.053844 | 0 | 0 | 0 | 0 | 0 | 1 | 0.168224 | false | 0 | 0.046729 | 0.074766 | 0.364486 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
230f8a70cf89cd6ca954075bdfb7904ee2fe3de0 | 1,364 | py | Python | backend/apps/permissions/constants.py | hovedstyret/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | 3 | 2021-11-18T09:29:14.000Z | 2022-01-13T20:12:11.000Z | backend/apps/permissions/constants.py | rubberdok/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | 277 | 2022-01-17T18:16:44.000Z | 2022-03-31T19:44:04.000Z | backend/apps/permissions/constants.py | hovedstyret/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | null | null | null | from typing import Final, Literal
DefaultPermissionsType = Final[list[tuple[str, str]]]
# Default ResponsibleGroup types
PRIMARY_TYPE: Literal["PRIMARY"] = "PRIMARY"
HR_TYPE: Literal["HR"] = "HR"
ORGANIZATION: Final = "Organization member"
INDOK: Final = "Indøk"
REGISTERED_USER: Final = "Registered user"
PRIMARY_GRO... | 28.416667 | 63 | 0.692082 | 132 | 1,364 | 6.833333 | 0.325758 | 0.077605 | 0.031042 | 0.070953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147361 | 1,364 | 47 | 64 | 29.021277 | 0.77558 | 0.021994 | 0 | 0 | 0 | 0 | 0.323574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.025641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
230ffd138e6c0b442e53f396664bbe99fe6ff440 | 1,037 | py | Python | magda/utils/logger/printers/message.py | p-mielniczuk/magda | 6359fa5721b4e27bd98f2c6af0e858b476645618 | [
"Apache-2.0"
] | 8 | 2021-02-25T14:00:25.000Z | 2022-03-10T00:32:43.000Z | magda/utils/logger/printers/message.py | p-mielniczuk/magda | 6359fa5721b4e27bd98f2c6af0e858b476645618 | [
"Apache-2.0"
] | 22 | 2021-03-24T11:56:47.000Z | 2021-11-02T15:09:50.000Z | magda/utils/logger/printers/message.py | p-mielniczuk/magda | 6359fa5721b4e27bd98f2c6af0e858b476645618 | [
"Apache-2.0"
] | 6 | 2021-04-06T07:26:47.000Z | 2021-12-07T18:55:52.000Z | from __future__ import annotations
from typing import Optional
from colorama import Fore, Style
from magda.utils.logger.parts import LoggerParts
from magda.utils.logger.printers.base import BasePrinter
from magda.utils.logger.printers.shared import with_log_level_colors
class MessagePrinter(BasePrinter):
EVENT_S... | 30.5 | 75 | 0.657666 | 130 | 1,037 | 5.030769 | 0.369231 | 0.041284 | 0.06422 | 0.091743 | 0.085627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260366 | 1,037 | 33 | 76 | 31.424242 | 0.852673 | 0 | 0 | 0 | 0 | 0 | 0.053038 | 0.051109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0.035714 | 0.5 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
23165b9f50977d462d02641d8468df5aa19bed3f | 10,872 | py | Python | priceprop/propagator.py | felixpatzelt/priceprop | 038832b5e89b8559c6162e39f1b446f4446fe7f2 | [
"MIT"
] | 17 | 2018-01-17T13:19:42.000Z | 2022-01-25T14:02:10.000Z | priceprop/propagator.py | felixpatzelt/priceprop | 038832b5e89b8559c6162e39f1b446f4446fe7f2 | [
"MIT"
] | null | null | null | priceprop/propagator.py | felixpatzelt/priceprop | 038832b5e89b8559c6162e39f1b446f4446fe7f2 | [
"MIT"
] | 7 | 2018-07-14T06:17:05.000Z | 2021-05-16T13:59:47.000Z | import numpy as np
from scipy.linalg import solve_toeplitz, solve
from scipy.signal import fftconvolve
from scipy.interpolate import Rbf
from scorr import xcorr, xcorr_grouped_df, xcorrshift, fftcrop, corr_mat
# Helpers
# =====================================================================
def integrate(x... | 30.2 | 79 | 0.545438 | 1,345 | 10,872 | 4.358364 | 0.201487 | 0.0261 | 0.019106 | 0.028659 | 0.395599 | 0.32651 | 0.28608 | 0.248038 | 0.221426 | 0.205732 | 0 | 0.014199 | 0.306843 | 10,872 | 359 | 80 | 30.284123 | 0.763668 | 0.513521 | 0 | 0.217742 | 0 | 0 | 0.037585 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 1 | 0.120968 | false | 0 | 0.040323 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2317503e6a916f16a70dd2104fe9aa18b505c980 | 3,035 | py | Python | 2020/day16/day16.py | Zojka/advent | 0f967bf308ae0502db3656d2e9e8a0d310b00594 | [
"Apache-2.0"
] | 1 | 2020-12-16T20:34:30.000Z | 2020-12-16T20:34:30.000Z | 2020/day16/day16.py | Zojka/adventofcode | 0f967bf308ae0502db3656d2e9e8a0d310b00594 | [
"Apache-2.0"
] | null | null | null | 2020/day16/day16.py | Zojka/adventofcode | 0f967bf308ae0502db3656d2e9e8a0d310b00594 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author: zparteka
"""
def read(infile):
with open(infile, 'r') as f:
line = f.readline()
rules = {}
while line != "\n":
rule = line.strip().split(':')
key = rule[0]
r1 = rule[1].split()[0].split("-")
... | 27.342342 | 119 | 0.497858 | 380 | 3,035 | 3.928947 | 0.218421 | 0.042197 | 0.028131 | 0.010717 | 0.243804 | 0.184863 | 0.184863 | 0.184863 | 0.184863 | 0.184863 | 0 | 0.020313 | 0.367381 | 3,035 | 110 | 120 | 27.590909 | 0.757292 | 0.019769 | 0 | 0.326087 | 0 | 0 | 0.010115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054348 | false | 0 | 0 | 0 | 0.097826 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
231aa17295db10591d7e97d44c06178132b509d0 | 2,481 | py | Python | core/characters.py | gnbuck/rpg_game | a0e7a0d2002230d5628f7a811e831a36b0904d2c | [
"Apache-2.0"
] | null | null | null | core/characters.py | gnbuck/rpg_game | a0e7a0d2002230d5628f7a811e831a36b0904d2c | [
"Apache-2.0"
] | null | null | null | core/characters.py | gnbuck/rpg_game | a0e7a0d2002230d5628f7a811e831a36b0904d2c | [
"Apache-2.0"
] | null | null | null | from random import randint
from core.players import Players
class Human(Players):
def __init__(self, name, classe):
super().__init__(name, classe)
self.hp = 100
self.strengh = 15
self.defense = 15
self.speed = 50
def __str__(self, super_desc=None, super_stats=None):
... | 29.188235 | 128 | 0.583636 | 330 | 2,481 | 4.175758 | 0.269697 | 0.065312 | 0.05225 | 0.040639 | 0.370102 | 0.333091 | 0.286647 | 0.286647 | 0.258345 | 0.258345 | 0 | 0.022235 | 0.293027 | 2,481 | 84 | 129 | 29.535714 | 0.763398 | 0 | 0 | 0.261538 | 0 | 0.015385 | 0.192261 | 0.017735 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184615 | false | 0 | 0.030769 | 0.030769 | 0.430769 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
231b5c3a6ff047a112893a6a6f2da0e0da9bf4d4 | 1,893 | py | Python | raytracerchallenge_python/material.py | toku345/RayTracerChallenge_Python | 40ced097f92cc61b116d24c6d6c4f27d6b13029d | [
"MIT"
] | 1 | 2020-05-13T20:54:01.000Z | 2020-05-13T20:54:01.000Z | raytracerchallenge_python/material.py | toku345/RayTracerChallenge_Python | 40ced097f92cc61b116d24c6d6c4f27d6b13029d | [
"MIT"
] | null | null | null | raytracerchallenge_python/material.py | toku345/RayTracerChallenge_Python | 40ced097f92cc61b116d24c6d6c4f27d6b13029d | [
"MIT"
] | null | null | null | from raytracerchallenge_python.tuple import Color
from math import pow
class Material:
def __init__(self):
self.color = Color(1, 1, 1)
self.ambient = 0.1
self.diffuse = 0.9
self.specular = 0.9
self.shininess = 200.0
self.pattern = None
self.reflective = 0.0
... | 33.210526 | 77 | 0.56524 | 203 | 1,893 | 5.118227 | 0.275862 | 0.043311 | 0.040423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019465 | 0.348653 | 1,893 | 56 | 78 | 33.803571 | 0.823195 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.042553 | 0.021277 | 0.191489 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
231c19be88b4ad2d044eaa6cc1261367a03e271b | 673 | py | Python | dawgmon/local.py | anvilventures/dawgmon | 59c28f430d896aa5e7afd9c2f40584113e8d52dc | [
"BSD-3-Clause"
] | 54 | 2017-09-18T21:24:25.000Z | 2021-03-11T00:11:43.000Z | dawgmon/local.py | anvilventures/dawgmon | 59c28f430d896aa5e7afd9c2f40584113e8d52dc | [
"BSD-3-Clause"
] | null | null | null | dawgmon/local.py | anvilventures/dawgmon | 59c28f430d896aa5e7afd9c2f40584113e8d52dc | [
"BSD-3-Clause"
] | 8 | 2017-09-19T09:48:45.000Z | 2020-03-22T01:18:44.000Z | import subprocess, shlex
from dawgmon import commands
def local_run(dirname, commandlist):
for cmdname in commandlist:
cmd = commands.COMMAND_CACHE[cmdname]
# shell escape such that we can pass command properly onwards
# to the Popen call
cmd_to_execute = shlex.split(cmd.command)
p = subprocess.Popen(cmd_... | 32.047619 | 86 | 0.738484 | 98 | 673 | 4.989796 | 0.581633 | 0.030675 | 0.07362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00531 | 0.160475 | 673 | 20 | 87 | 33.65 | 0.860177 | 0.257058 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
231f6aa566919c06850651c755c3b8c14c876a0c | 38,747 | py | Python | py_knots/clasper.py | Chinmaya-Kausik/py_knots | 3c9930ea0e95f6c62da9e13eb5ffcfc0e0737f9f | [
"MIT"
] | null | null | null | py_knots/clasper.py | Chinmaya-Kausik/py_knots | 3c9930ea0e95f6c62da9e13eb5ffcfc0e0737f9f | [
"MIT"
] | null | null | null | py_knots/clasper.py | Chinmaya-Kausik/py_knots | 3c9930ea0e95f6c62da9e13eb5ffcfc0e0737f9f | [
"MIT"
] | null | null | null | import tkinter as tk
from tkinter import ttk
from matplotlib.pyplot import close
from matplotlib.figure import Figure
from matplotlib.backends.backend_tkagg import (FigureCanvasTkAgg,
NavigationToolbar2Tk)
from matplotlib.mathtext import math_to_image
from io import BytesIO
from PIL import ImageTk, Image
from sympy im... | 36.901905 | 83 | 0.596666 | 4,910 | 38,747 | 4.547658 | 0.092057 | 0.033589 | 0.032021 | 0.040351 | 0.615388 | 0.562811 | 0.517936 | 0.489811 | 0.440817 | 0.396525 | 0 | 0.022448 | 0.284874 | 38,747 | 1,049 | 84 | 36.937083 | 0.783392 | 0.093298 | 0 | 0.453125 | 0 | 0 | 0.049223 | 0.001356 | 0.00142 | 0 | 0 | 0 | 0.011364 | 1 | 0.042614 | false | 0.015625 | 0.026989 | 0 | 0.09375 | 0.008523 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
23203ffa2e49d090e30c618e5403e0af89df7c09 | 17,259 | py | Python | state_graph.py | Lukx19/KR-QR | be90434de57759e077bce208398ee12e8f1ec85a | [
"MIT"
] | null | null | null | state_graph.py | Lukx19/KR-QR | be90434de57759e077bce208398ee12e8f1ec85a | [
"MIT"
] | null | null | null | state_graph.py | Lukx19/KR-QR | be90434de57759e077bce208398ee12e8f1ec85a | [
"MIT"
] | null | null | null | import copy
import queue
import pydot
class NZP:
def __init__(self):
self.names = ['-', '0', '+']
self.vals = [-1, 0, 1]
self.stationary = [False, True, False]
class ZP:
def __init__(self):
self.names = ['0', '+']
self.vals = [0, 1]
self.stationary = [True, Fa... | 39.767281 | 143 | 0.576453 | 2,054 | 17,259 | 4.730282 | 0.121714 | 0.038699 | 0.021614 | 0.034994 | 0.43557 | 0.389152 | 0.333882 | 0.306608 | 0.278716 | 0.22921 | 0 | 0.013738 | 0.2324 | 17,259 | 433 | 144 | 39.859122 | 0.719656 | 0.070282 | 0 | 0.166134 | 0 | 0 | 0.167144 | 0.004663 | 0 | 0 | 0 | 0.002309 | 0 | 1 | 0.092652 | false | 0 | 0.009585 | 0.019169 | 0.207668 | 0.070288 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2324184f8448361dc8a0618b5d05232be22a8ed2 | 6,040 | py | Python | service/logging.py | IIEG/employment-forecast-jalisco | 83de3bef5ad91706822ffa1e1d5b8b1c29e2f6c0 | [
"Apache-2.0"
] | null | null | null | service/logging.py | IIEG/employment-forecast-jalisco | 83de3bef5ad91706822ffa1e1d5b8b1c29e2f6c0 | [
"Apache-2.0"
] | 1 | 2021-06-01T22:29:58.000Z | 2021-06-01T22:29:58.000Z | service/logging.py | IIEG/employment-forecast-jalisco | 83de3bef5ad91706822ffa1e1d5b8b1c29e2f6c0 | [
"Apache-2.0"
] | null | null | null | from conf import settings
import pandas as pd
import numpy as np
import datetime
import os
def stringify_results(res, reg_conf, regression_key):
res_string = """
-------------------------------
{datetime}
SELECTED MODEL: {model}
Link Function (y-transform): {link}
Other Transformations (x-t... | 41.088435 | 108 | 0.654636 | 756 | 6,040 | 5.041005 | 0.183862 | 0.081868 | 0.138809 | 0.073209 | 0.40698 | 0.383102 | 0.368932 | 0.304644 | 0.046707 | 0.032537 | 0 | 0.004576 | 0.203974 | 6,040 | 146 | 109 | 41.369863 | 0.788062 | 0.013576 | 0 | 0 | 0 | 0 | 0.19654 | 0.012263 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040984 | false | 0 | 0.040984 | 0.008197 | 0.114754 | 0.008197 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
23271db66f8bb4de60b78338e614df097d3bd2ec | 665 | py | Python | systemtools/test/clearterminaltest.py | hayj/SystemTools | 89c32c2cac843dfa2719f0ce37a0a52cda0b0c0b | [
"MIT"
] | 11 | 2018-08-10T00:55:20.000Z | 2022-02-11T13:34:06.000Z | systemtools/test/clearterminaltest.py | hayj/SystemTools | 89c32c2cac843dfa2719f0ce37a0a52cda0b0c0b | [
"MIT"
] | 5 | 2018-05-01T14:30:37.000Z | 2021-11-18T11:48:28.000Z | systemtools/test/clearterminaltest.py | hayj/SystemTools | 89c32c2cac843dfa2719f0ce37a0a52cda0b0c0b | [
"MIT"
] | 7 | 2019-08-16T13:32:19.000Z | 2022-01-27T10:51:19.000Z |
# print("aaaaaaaaaa bbbbbbbbbb")
# # print(chr(27) + "[2J")
import os
import sys
from enum import Enum
import signal
print(getOutputType())
exit()
# import os
# os.system('cls' if os.name == 'nt' else 'clear')
size = os.get_terminal_size()
print(size[0])
if signal.getsignal(signal.SIGHUP) == signal.SIG_DFL... | 14.777778 | 71 | 0.645113 | 101 | 665 | 4.217822 | 0.574257 | 0.037559 | 0.046948 | 0.079812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025688 | 0.180451 | 665 | 45 | 72 | 14.777778 | 0.755963 | 0.239098 | 0 | 0.173913 | 0 | 0 | 0.139113 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.26087 | 0 | 0.26087 | 0.304348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
23273537cf14476c6fb5136eab49c7351f22035d | 7,674 | py | Python | polytrack/deep_learning.py | malikaratnayake/Polytrack2.0 | 4ce45f26823c6ac63469112954fa23ed5ffd04bc | [
"MIT"
] | 1 | 2022-03-24T07:06:37.000Z | 2022-03-24T07:06:37.000Z | polytrack/deep_learning.py | malikaratnayake/Polytrack2.0 | 4ce45f26823c6ac63469112954fa23ed5ffd04bc | [
"MIT"
] | null | null | null | polytrack/deep_learning.py | malikaratnayake/Polytrack2.0 | 4ce45f26823c6ac63469112954fa23ed5ffd04bc | [
"MIT"
] | null | null | null | import os
import time
import cv2
import random
import colorsys
import numpy as np
import tensorflow as tf
import pytesseract
import core.utils as utils
from core.config import cfg
import re
from PIL import Image
from polytrack.general import cal_dist
import itertools as it
import math
# import tensorflow as tf
physica... | 33.365217 | 130 | 0.690253 | 1,086 | 7,674 | 4.516575 | 0.22744 | 0.048522 | 0.022834 | 0.006116 | 0.250357 | 0.146381 | 0.103568 | 0.069725 | 0.069725 | 0.069725 | 0 | 0.016124 | 0.207975 | 7,674 | 229 | 131 | 33.510917 | 0.790885 | 0.133307 | 0 | 0.09589 | 0 | 0 | 0.008605 | 0.003623 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068493 | false | 0.020548 | 0.164384 | 0 | 0.30137 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2327a93cda5f2e2914fc9a547155549bead73408 | 765 | py | Python | pypi_uploader/setup.py | p-geon/DockerBonsai | 1b1deafe228438e5ce3b4a41026aef4748f98573 | [
"MIT"
] | 1 | 2021-11-28T13:27:41.000Z | 2021-11-28T13:27:41.000Z | docker-pypi_uploader/setup.py | p-geon/DockerBonsai | 1b1deafe228438e5ce3b4a41026aef4748f98573 | [
"MIT"
] | 8 | 2021-02-19T12:54:22.000Z | 2021-02-25T02:32:23.000Z | pypi_uploader/setup.py | p-geon/DockerBonsai | 1b1deafe228438e5ce3b4a41026aef4748f98573 | [
"MIT"
] | null | null | null | from setuptools import setup
from codecs import open
from os import path
NAME_REPO="imagechain"
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name=NAME_REPO,
packages=[NAME_REPO],
version='0.1',
lice... | 25.5 | 63 | 0.673203 | 96 | 765 | 5.197917 | 0.645833 | 0.064128 | 0.076152 | 0.12024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009631 | 0.185621 | 765 | 30 | 64 | 25.5 | 0.791332 | 0 | 0 | 0 | 0 | 0 | 0.278068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
232aa5dcc39387e06484add60fa99039e0f84ed2 | 563 | py | Python | uaa_bot/config.py | cloud-gov/uaa-bot | d2191621d364ce0fe4804283243a5195cfe84c7a | [
"CC0-1.0"
] | 1 | 2021-03-27T21:34:28.000Z | 2021-03-27T21:34:28.000Z | uaa_bot/config.py | cloud-gov/uaa-bot | d2191621d364ce0fe4804283243a5195cfe84c7a | [
"CC0-1.0"
] | 4 | 2021-02-11T18:02:16.000Z | 2022-02-23T18:55:11.000Z | uaa_bot/config.py | cloud-gov/uaa-bot | d2191621d364ce0fe4804283243a5195cfe84c7a | [
"CC0-1.0"
] | null | null | null | import os
def parse_config_env(default_dict):
config_dict = {}
for key, value in default_dict.items():
config_dict[key] = os.environ.get(key, value)
return config_dict
SMTP_KEYS = {
"SMTP_HOST": "localhost",
"SMTP_PORT": 25,
"SMTP_FROM": "no-reply@example.com",
"SMTP_USER": Non... | 18.766667 | 53 | 0.651865 | 81 | 563 | 4.197531 | 0.493827 | 0.097059 | 0.123529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004454 | 0.202487 | 563 | 29 | 54 | 19.413793 | 0.752784 | 0 | 0 | 0 | 0 | 0 | 0.26643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.047619 | 0.047619 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
232ab34c654fc84b1b9af2251151c7a436bd3f09 | 1,346 | py | Python | TcpServer.py | WinHtut/BootCampPython-1 | c784a23d73304f328b8d6a1e29a1c43e6b6c44c7 | [
"MIT"
] | null | null | null | TcpServer.py | WinHtut/BootCampPython-1 | c784a23d73304f328b8d6a1e29a1c43e6b6c44c7 | [
"MIT"
] | null | null | null | TcpServer.py | WinHtut/BootCampPython-1 | c784a23d73304f328b8d6a1e29a1c43e6b6c44c7 | [
"MIT"
] | 1 | 2021-12-04T16:08:17.000Z | 2021-12-04T16:08:17.000Z | import socket
import threading
import FetchData
class TCPserver():
def __init__(self):
self.server_ip="localhost"
self.server_port=9998
def main(self):
server = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
server.bind((self.server_ip,self.server_port))
s... | 32.829268 | 90 | 0.616642 | 140 | 1,346 | 5.742857 | 0.464286 | 0.087065 | 0.044776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012358 | 0.278603 | 1,346 | 41 | 91 | 32.829268 | 0.815654 | 0 | 0 | 0.060606 | 0 | 0 | 0.127774 | 0.017598 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.090909 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
232aee5e5c70b6ac013e320c3a04f48e6af0f6b1 | 11,122 | py | Python | Jump_Trend_labeling/Trend/jump.py | anakinanakin/neural-network-on-finance-data | 1842606294ca3d5dafa7387d6db95a1c21d323eb | [
"MIT"
] | 1 | 2021-05-11T09:11:53.000Z | 2021-05-11T09:11:53.000Z | Jump_Trend_labeling/Trend/jump.py | anakinanakin/neural-network-on-finance-data | 1842606294ca3d5dafa7387d6db95a1c21d323eb | [
"MIT"
] | null | null | null | Jump_Trend_labeling/Trend/jump.py | anakinanakin/neural-network-on-finance-data | 1842606294ca3d5dafa7387d6db95a1c21d323eb | [
"MIT"
] | 1 | 2020-07-28T03:59:31.000Z | 2020-07-28T03:59:31.000Z | #source code: https://github.com/alvarobartt/trendet
import psycopg2, psycopg2.extras
import os
import glob
import csv
import time
import datetime
import string
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from matplotlib import patches
from matplotlib.pyplot import fi... | 31.68661 | 130 | 0.573368 | 1,453 | 11,122 | 4.300757 | 0.207846 | 0.023524 | 0.009602 | 0.007681 | 0.360538 | 0.308209 | 0.24724 | 0.223236 | 0.197952 | 0.166107 | 0 | 0.008094 | 0.300126 | 11,122 | 350 | 131 | 31.777143 | 0.794707 | 0.199514 | 0 | 0.28866 | 0 | 0 | 0.135815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015464 | false | 0 | 0.087629 | 0 | 0.123711 | 0.020619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
232d44b9e301f131b81fce59b6e44322f7b61b53 | 978 | py | Python | dmatrix.py | sanchitcop19/redHackProject | 16f8d2e2a675dc5bd370e28ab5880a6b1f113a2d | [
"Apache-2.0"
] | null | null | null | dmatrix.py | sanchitcop19/redHackProject | 16f8d2e2a675dc5bd370e28ab5880a6b1f113a2d | [
"Apache-2.0"
] | 1 | 2021-06-02T00:26:30.000Z | 2021-06-02T00:26:30.000Z | dmatrix.py | sanchitcop19/redHackProject | 16f8d2e2a675dc5bd370e28ab5880a6b1f113a2d | [
"Apache-2.0"
] | 1 | 2019-09-22T08:46:11.000Z | 2019-09-22T08:46:11.000Z | import requests
import json
content = None
with open("scored_output.json") as file:
content = json.load(file)
matrix = [[0 for i in range(len(content))] for j in range(len(content))]
mapping = {}
for i, origin in enumerate(content):
mapping[i] = origin
for j, destination in enumerate(content):
pr... | 30.5625 | 211 | 0.603272 | 118 | 978 | 4.991525 | 0.474576 | 0.027165 | 0.033956 | 0.057725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015936 | 0.230061 | 978 | 31 | 212 | 31.548387 | 0.766268 | 0 | 0 | 0.083333 | 0 | 0.041667 | 0.216632 | 0.040041 | 0.041667 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
232d65d107c7ac95d64e3240caf376ce0bbcff3f | 2,416 | py | Python | src/SetExpan/util.py | jmshen1994/SetExpan | d725bb9896c45478217294d188fafaea56660858 | [
"Apache-2.0"
] | 36 | 2017-11-08T01:54:43.000Z | 2021-08-04T08:26:54.000Z | src/SetExpan/util.py | mickeystroller/SetExpan | d725bb9896c45478217294d188fafaea56660858 | [
"Apache-2.0"
] | 4 | 2017-10-30T19:47:14.000Z | 2018-11-22T02:51:55.000Z | src/SetExpan/util.py | mickeystroller/SetExpan | d725bb9896c45478217294d188fafaea56660858 | [
"Apache-2.0"
] | 10 | 2017-11-10T03:50:54.000Z | 2020-12-16T19:52:29.000Z | '''
__author__: Ellen Wu (modified by Jiaming Shen)
__description__: A bunch of utility functions
__latest_update__: 08/31/2017
'''
from collections import defaultdict
import set_expan
import eid_pair_TFIDF_selection
import extract_seed_edges
import extract_entity_pair_skipgrams
def loadEidToEntityMap(filename):
eid... | 30.974359 | 68 | 0.68005 | 292 | 2,416 | 5.55137 | 0.287671 | 0.029611 | 0.049352 | 0.052437 | 0.378779 | 0.355336 | 0.355336 | 0.355336 | 0.355336 | 0.355336 | 0 | 0.016352 | 0.189983 | 2,416 | 78 | 69 | 30.974359 | 0.811957 | 0.162252 | 0 | 0.446429 | 0 | 0 | 0.017614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089286 | false | 0 | 0.089286 | 0 | 0.267857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
232e28fbfd431f5f262b4d4fadc8f82e257b7c68 | 534 | py | Python | solutions/container-generator.py | hydrargyrum/python-exercises | f99889d18179dce45956ce68382e37a987c8f460 | [
"Unlicense"
] | null | null | null | solutions/container-generator.py | hydrargyrum/python-exercises | f99889d18179dce45956ce68382e37a987c8f460 | [
"Unlicense"
] | null | null | null | solutions/container-generator.py | hydrargyrum/python-exercises | f99889d18179dce45956ce68382e37a987c8f460 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env pytest-3
import pytest
# Exercice: iter
def multiples_of(n):
i = 0
while True:
yield i
i += n
# test
def test_iter():
gen = multiples_of(3)
for n, mult in enumerate(gen):
assert n * 3 == mult
if n >= 100:
break
for n, mult in enumerat... | 16.181818 | 36 | 0.488764 | 76 | 534 | 3.381579 | 0.381579 | 0.128405 | 0.093385 | 0.116732 | 0.521401 | 0.463035 | 0.338521 | 0.338521 | 0 | 0 | 0 | 0.059561 | 0.402622 | 534 | 32 | 37 | 16.6875 | 0.746082 | 0.078652 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2330a75a4af76c6269b983247c9bbf1f53e9a024 | 8,468 | py | Python | pds_github_util/plan/plan.py | NASA-PDS/pds-github-util | 155f60532a02bcbc7a9664b8a170a2e7ab0463d1 | [
"Apache-2.0"
] | null | null | null | pds_github_util/plan/plan.py | NASA-PDS/pds-github-util | 155f60532a02bcbc7a9664b8a170a2e7ab0463d1 | [
"Apache-2.0"
] | 42 | 2020-09-17T17:30:40.000Z | 2022-03-31T21:09:19.000Z | pds_github_util/plan/plan.py | NASA-PDS/pds-github-util | 155f60532a02bcbc7a9664b8a170a2e7ab0463d1 | [
"Apache-2.0"
] | 3 | 2020-08-12T23:02:40.000Z | 2021-09-30T11:57:59.000Z | """Release Planning."""
import argparse
import github3
import logging
import os
import sys
import traceback
from pds_github_util.issues.utils import get_labels, is_theme
from pds_github_util.zenhub.zenhub import Zenhub
from pds_github_util.utils import GithubConnection, addStandardArguments
from pkg_resources import... | 36.978166 | 164 | 0.535782 | 936 | 8,468 | 4.595085 | 0.223291 | 0.021158 | 0.02511 | 0.01953 | 0.223204 | 0.182051 | 0.14206 | 0.126715 | 0.110904 | 0.110904 | 0 | 0.004722 | 0.349787 | 8,468 | 228 | 165 | 37.140351 | 0.776426 | 0.130255 | 0 | 0.11039 | 0 | 0.012987 | 0.210182 | 0.039853 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019481 | false | 0 | 0.077922 | 0 | 0.103896 | 0.006494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2338e51f497f2917867ef18cfad79cfe5635f3ea | 717 | py | Python | setup.py | DigiKlausur/ilias2nbgrader | ef6b14969ce73f8203aa125175915f76f07c8e43 | [
"MIT"
] | 4 | 2020-01-17T08:39:00.000Z | 2021-12-13T13:54:14.000Z | setup.py | DigiKlausur/ilias2nbgrader | ef6b14969ce73f8203aa125175915f76f07c8e43 | [
"MIT"
] | 12 | 2020-01-24T14:52:35.000Z | 2020-05-26T15:34:20.000Z | setup.py | DigiKlausur/ilias2nbgrader | ef6b14969ce73f8203aa125175915f76f07c8e43 | [
"MIT"
] | 1 | 2020-03-23T17:16:06.000Z | 2020-03-23T17:16:06.000Z | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
setup(
name='ilias2nbgrader',
version='0.4.3',
license='MIT',
url='https://github.com/DigiKlausur/ilias2nbgrader',
description='Exchange submissions and feedbacks between ILIAS an... | 26.555556 | 80 | 0.668061 | 85 | 717 | 5.482353 | 0.8 | 0.051502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010292 | 0.18689 | 717 | 26 | 81 | 27.576923 | 0.789022 | 0.029289 | 0 | 0 | 0 | 0 | 0.319885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
23395cc50637ff5b0993e2601b07c4a0ab09d8ac | 2,343 | py | Python | citrees/utils.py | m0hashi/citrees | e7d4866109ce357d5d67cffa450604567f7b469e | [
"MIT"
] | null | null | null | citrees/utils.py | m0hashi/citrees | e7d4866109ce357d5d67cffa450604567f7b469e | [
"MIT"
] | null | null | null | citrees/utils.py | m0hashi/citrees | e7d4866109ce357d5d67cffa450604567f7b469e | [
"MIT"
] | null | null | null | from __future__ import absolute_import, print_function
from numba import jit
import numpy as np
# from externals.six.moves import range
def bayes_boot_probs(n):
"""Bayesian bootstrap sampling for case weights
Parameters
----------
n : int
Number of Bayesian bootstrap samples
Re... | 24.154639 | 74 | 0.599659 | 308 | 2,343 | 4.448052 | 0.412338 | 0.036496 | 0.013139 | 0.023358 | 0.043796 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005376 | 0.285531 | 2,343 | 96 | 75 | 24.40625 | 0.813023 | 0.455399 | 0 | 0.074074 | 0 | 0 | 0.016917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.111111 | 0 | 0.37037 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
233b1c9f4e244ac8cb55094347c4c0772dd724da | 4,820 | py | Python | blog/views.py | arascch/Django_blog | 091a5a4974534fbe37560bd8e451716a3b1bdcbf | [
"Apache-2.0"
] | 1 | 2019-03-04T15:02:03.000Z | 2019-03-04T15:02:03.000Z | blog/views.py | arascch/Django_blog | 091a5a4974534fbe37560bd8e451716a3b1bdcbf | [
"Apache-2.0"
] | null | null | null | blog/views.py | arascch/Django_blog | 091a5a4974534fbe37560bd8e451716a3b1bdcbf | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render, get_object_or_404
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.views.generic import ListView
from .models import Post , Comment
from .forms import EmailPostForm , CommentForm , SearchForm
from django.core.mail import send_mail
from taggit.mod... | 40.504202 | 122 | 0.567427 | 526 | 4,820 | 5.036122 | 0.290875 | 0.02265 | 0.01661 | 0.02114 | 0.05738 | 0.01661 | 0 | 0 | 0 | 0 | 0 | 0.005884 | 0.330083 | 4,820 | 119 | 123 | 40.504202 | 0.814494 | 0.062448 | 0 | 0.090909 | 0 | 0 | 0.091111 | 0.009311 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040404 | false | 0 | 0.090909 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
233d6f3fd59520be733341519e2ee7dc3d18d10a | 2,424 | py | Python | StudentAssociation/tasks.py | codertimeless/StudentAssociation | 3f6caf2b362623d4f8cf82bab9529951a375fe6a | [
"Apache-2.0"
] | null | null | null | StudentAssociation/tasks.py | codertimeless/StudentAssociation | 3f6caf2b362623d4f8cf82bab9529951a375fe6a | [
"Apache-2.0"
] | 15 | 2020-03-09T11:56:13.000Z | 2022-02-10T15:03:01.000Z | StudentAssociation/tasks.py | codertimeless/StudentAssociation | 3f6caf2b362623d4f8cf82bab9529951a375fe6a | [
"Apache-2.0"
] | null | null | null | from django.utils import timezone
from django.db.models import Q
from celery.decorators import task, periodic_task
from celery.utils.log import get_task_logger
from celery.task.schedules import crontab
from accounts.models.user_profile import ClubUserProfile
from management.models.activity_apply import ActivityApplica... | 39.737705 | 108 | 0.667904 | 305 | 2,424 | 5.081967 | 0.311475 | 0.085161 | 0.023226 | 0.023226 | 0.345161 | 0.345161 | 0.230323 | 0.230323 | 0.230323 | 0.230323 | 0 | 0.004372 | 0.24505 | 2,424 | 60 | 109 | 40.4 | 0.842623 | 0 | 0 | 0.170213 | 0 | 0 | 0.07137 | 0.035066 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0.021277 | 0.212766 | 0 | 0.319149 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
233dd3a1892a3e39ce7f0e1314827e36c01fc57e | 433 | py | Python | streaming/take_picture.py | jsse-2017-ph23/rpi-streaming | a701e6bc818b24b880a409db65b43a43e78259f8 | [
"MIT"
] | 1 | 2017-08-25T08:31:01.000Z | 2017-08-25T08:31:01.000Z | streaming/take_picture.py | jsse-2017-ph23/rpi-streaming | a701e6bc818b24b880a409db65b43a43e78259f8 | [
"MIT"
] | null | null | null | streaming/take_picture.py | jsse-2017-ph23/rpi-streaming | a701e6bc818b24b880a409db65b43a43e78259f8 | [
"MIT"
] | null | null | null | import threading
from datetime import datetime
from io import BytesIO
capture_lock = threading.Lock()
def take_picture(camera):
# Create an in-memory stream
stream = BytesIO()
camera.rotation = 180
camera.annotate_text = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
with capture_lock:
cam... | 22.789474 | 71 | 0.678984 | 57 | 433 | 5.087719 | 0.649123 | 0.075862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025937 | 0.198614 | 433 | 18 | 72 | 24.055556 | 0.809798 | 0.060046 | 0 | 0 | 0 | 0 | 0.051852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2340ff27f70c0f25fa92baa0c7cf6b801391d2c6 | 8,061 | py | Python | src/bin/shipyard_airflow/shipyard_airflow/plugins/deployment_status_operator.py | rb560u/airship-shipyard | 01b6960c1f80b44d1db31c081139649c40b82308 | [
"Apache-2.0"
] | 12 | 2018-05-18T18:59:23.000Z | 2019-05-10T12:31:44.000Z | src/bin/shipyard_airflow/shipyard_airflow/plugins/deployment_status_operator.py | rb560u/airship-shipyard | 01b6960c1f80b44d1db31c081139649c40b82308 | [
"Apache-2.0"
] | 4 | 2021-07-28T14:36:57.000Z | 2022-03-22T16:39:23.000Z | src/bin/shipyard_airflow/shipyard_airflow/plugins/deployment_status_operator.py | rb560u/airship-shipyard | 01b6960c1f80b44d1db31c081139649c40b82308 | [
"Apache-2.0"
] | 9 | 2018-05-18T16:42:41.000Z | 2019-04-18T20:12:14.000Z | # Copyright 2019 AT&T Intellectual Property. All other 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... | 36.977064 | 79 | 0.677832 | 933 | 8,061 | 5.635584 | 0.269025 | 0.034234 | 0.021681 | 0.014264 | 0.181818 | 0.136173 | 0.096995 | 0.082541 | 0.082541 | 0.050209 | 0 | 0.004141 | 0.251085 | 8,061 | 217 | 80 | 37.147465 | 0.866821 | 0.252574 | 0 | 0.110236 | 0 | 0 | 0.133862 | 0.02208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055118 | false | 0.007874 | 0.133858 | 0 | 0.259843 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |