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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cfbad1f6c17648b152ae02e148a38ce075fb4e62 | 252 | py | Python | gpvdm_data/shape/Gaus/example.py | roderickmackenzie/gpvdm | 914fd2ee93e7202339853acaec1d61d59b789987 | [
"BSD-3-Clause"
] | 12 | 2016-09-13T08:58:13.000Z | 2022-01-17T07:04:52.000Z | gpvdm_core/inp_template/shape/example.py | roderickmackenzie/gpvdm | 914fd2ee93e7202339853acaec1d61d59b789987 | [
"BSD-3-Clause"
] | 3 | 2017-11-11T12:33:02.000Z | 2019-03-08T00:48:08.000Z | gpvdm_data/shape/Gaus/example.py | roderickmackenzie/gpvdm | 914fd2ee93e7202339853acaec1d61d59b789987 | [
"BSD-3-Clause"
] | 6 | 2019-01-03T06:17:12.000Z | 2022-01-01T15:59:00.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
from gpvdm_api import gpvdm_api
def run():
a=gpvdm_api(verbose=True)
a.set_save_dir(device_data)
a.edit("light.inp","#light_model","qe")
a.edit("jv0.inp","#Vstop","0.8")
a.run() | 19.384615 | 40 | 0.674603 | 46 | 252 | 3.543478 | 0.673913 | 0.147239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022321 | 0.111111 | 252 | 13 | 41 | 19.384615 | 0.705357 | 0.170635 | 0 | 0 | 0 | 0 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cfbb704f9aaa960b7d69d0dfa8df0111d8a29aa0 | 2,454 | py | Python | scripts/npc/make_ston.py | varenty-x/v204.1 | 804302399f100bcec713f58a89b3352f114c36f5 | [
"MIT"
] | 9 | 2021-04-26T11:59:29.000Z | 2021-12-20T13:15:27.000Z | scripts/npc/make_ston.py | varenty-x/v203.4 | 359d6575ef8256bb2d6df87bf4156c4608243232 | [
"MIT"
] | null | null | null | scripts/npc/make_ston.py | varenty-x/v203.4 | 359d6575ef8256bb2d6df87bf4156c4608243232 | [
"MIT"
] | 6 | 2021-07-14T06:32:05.000Z | 2022-02-06T02:32:56.000Z | # Eurek the Alchemist (2040050)
from net.swordie.ms.constants import JobConstants
echoDict = {
112: 1005, # Hero
122: 1005, # Paladin
132: 1005, # Dark Knight
212: 1005, # F/P
222: 1005, # I/L
232: 1005, # Bishop
312: 1005, # Bowmaster
322: 1005, # Marksman
412: 1005, # Night Lord
... | 35.057143 | 131 | 0.597392 | 300 | 2,454 | 4.886667 | 0.663333 | 0.028649 | 0.016371 | 0.018417 | 0.032742 | 0.032742 | 0 | 0 | 0 | 0 | 0 | 0.242702 | 0.288101 | 2,454 | 69 | 132 | 35.565217 | 0.596451 | 0.158924 | 0 | 0.046875 | 0 | 0.015625 | 0.227498 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015625 | 0 | 0.015625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfc428f974aa00ff3dee6c7b4e66ce2e5079c59d | 1,755 | py | Python | archives/learning/bp/ch24/asynchat-example-1.py | mcxiaoke/python-labs | 61c0a1f91008ba82fc2f5a5deb19e60aec9df960 | [
"Apache-2.0"
] | 7 | 2016-07-08T10:53:13.000Z | 2021-07-20T00:20:10.000Z | archives/learning/bp/ch24/asynchat-example-1.py | mcxiaoke/python-labs | 61c0a1f91008ba82fc2f5a5deb19e60aec9df960 | [
"Apache-2.0"
] | 1 | 2021-05-11T05:20:18.000Z | 2021-05-11T05:20:18.000Z | archives/learning/bp/ch24/asynchat-example-1.py | mcxiaoke/python-labs | 61c0a1f91008ba82fc2f5a5deb19e60aec9df960 | [
"Apache-2.0"
] | 7 | 2016-10-31T06:31:54.000Z | 2020-08-31T20:55:00.000Z | # File: asynchat-example-1.py
import asyncore, asynchat
import os, socket, string
PORT = 8000
class HTTPChannel(asynchat.async_chat):
def __init__(self, server, sock, addr):
asynchat.async_chat.__init__(self, sock)
self.set_terminator("\r\n")
self.request = None
self.data = ""
... | 27 | 69 | 0.577778 | 228 | 1,755 | 4.320175 | 0.447368 | 0.018274 | 0.04264 | 0.048731 | 0.067005 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019763 | 0.279202 | 1,755 | 64 | 70 | 27.421875 | 0.758893 | 0.155556 | 0 | 0.05 | 0 | 0 | 0.088296 | 0.030801 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfc8ebb474939216aa62bdb9e6ffae2fd8ff8ede | 6,124 | py | Python | algolib/graphs/simple_graph.py | ref-humbold/AlgoLib_Python | 05f725504656ec93b879374a8cd87464d88fff77 | [
"Apache-2.0"
] | null | null | null | algolib/graphs/simple_graph.py | ref-humbold/AlgoLib_Python | 05f725504656ec93b879374a8cd87464d88fff77 | [
"Apache-2.0"
] | null | null | null | algolib/graphs/simple_graph.py | ref-humbold/AlgoLib_Python | 05f725504656ec93b879374a8cd87464d88fff77 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Structure of simple graph"""
from abc import ABCMeta, abstractmethod
from typing import Any, Iterable, Optional, Union
from .graph import Edge, Graph, Vertex
class _GraphRepresentation:
def __init__(self, vertex_ids=None):
self._properties = {}
if vertex_ids is not Non... | 34.59887 | 98 | 0.652351 | 758 | 6,124 | 5.034301 | 0.131926 | 0.054245 | 0.061321 | 0.035377 | 0.349057 | 0.263103 | 0.205451 | 0.167191 | 0.138365 | 0.092243 | 0 | 0.000219 | 0.255879 | 6,124 | 176 | 99 | 34.795455 | 0.837174 | 0.101241 | 0 | 0.185841 | 0 | 0 | 0.050567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.265487 | false | 0 | 0.026549 | 0.097345 | 0.495575 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfd3f97eb4d130eda425f8c300f730959a8cb016 | 281 | py | Python | views.py | pythonran/easy_server | 2840d76db45ac9103d2a1b7f9f044687d4f1a77e | [
"Apache-2.0"
] | null | null | null | views.py | pythonran/easy_server | 2840d76db45ac9103d2a1b7f9f044687d4f1a77e | [
"Apache-2.0"
] | null | null | null | views.py | pythonran/easy_server | 2840d76db45ac9103d2a1b7f9f044687d4f1a77e | [
"Apache-2.0"
] | null | null | null | from view_core import View
from easyserver import easyResponse
import json
class Index(View):
def get(self, request):
print request
data = {
"body": request.body,
"option": "test"
}
return easyResponse(json.dumps(data))
| 21.615385 | 45 | 0.597865 | 31 | 281 | 5.387097 | 0.645161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313167 | 281 | 12 | 46 | 23.416667 | 0.865285 | 0 | 0 | 0 | 0 | 0 | 0.049822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.272727 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfda25ea8c41e2c58ebbd422c6cbddbd5774f03e | 311 | py | Python | Deployment/extract_chorus.py | Parvez13/Predicting-Hit-Songs-Using-Repeated-Chorus | 00ef57c05c729ee43a6ad7ad6276f1a403452f2d | [
"MIT"
] | null | null | null | Deployment/extract_chorus.py | Parvez13/Predicting-Hit-Songs-Using-Repeated-Chorus | 00ef57c05c729ee43a6ad7ad6276f1a403452f2d | [
"MIT"
] | null | null | null | Deployment/extract_chorus.py | Parvez13/Predicting-Hit-Songs-Using-Repeated-Chorus | 00ef57c05c729ee43a6ad7ad6276f1a403452f2d | [
"MIT"
] | null | null | null | from pychorus import find_and_output_chorus
def extract_song_chorus(path, main):
# songname = path.split('/',2)[0].split('.')[0]
Newpath = main + '/' + "song_to_predict"+'.wav'
chorus = find_and_output_chorus(path, Newpath, 15)
if chorus == None:
return None
else:
return Newpath
| 19.4375 | 52 | 0.655949 | 42 | 311 | 4.619048 | 0.595238 | 0.072165 | 0.134021 | 0.195876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020161 | 0.202572 | 311 | 15 | 53 | 20.733333 | 0.762097 | 0.144695 | 0 | 0 | 0 | 0 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfdc5fe206c24d67d093476b18ea47335843481f | 806 | py | Python | aula7/exercicio/exercicio2.py | diegocolombo1989/Trabalho-Python | 4603117bebfb6e801c3289e108b4e8f29442ab6f | [
"MIT"
] | null | null | null | aula7/exercicio/exercicio2.py | diegocolombo1989/Trabalho-Python | 4603117bebfb6e801c3289e108b4e8f29442ab6f | [
"MIT"
] | null | null | null | aula7/exercicio/exercicio2.py | diegocolombo1989/Trabalho-Python | 4603117bebfb6e801c3289e108b4e8f29442ab6f | [
"MIT"
] | null | null | null | #--- Exercício 2 - Dicionários
#--- Escreva um programa que leia os dados de 11 jogadores
#--- Jogador: Nome, Posicao, Numero, PernaBoa
#--- Crie um dicionario para armazenar os dados
#--- Imprima todos os jogadores e seus dados
#--- Resolução Nicole Gruber
lista_jogadores=[]
for i in range(1,3):
Nome=input('Digi... | 38.380952 | 138 | 0.702233 | 104 | 806 | 5.413462 | 0.451923 | 0.078153 | 0.042629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007331 | 0.153846 | 806 | 21 | 138 | 38.380952 | 0.818182 | 0.305211 | 0 | 0 | 0 | 0.1 | 0.473874 | 0.201802 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfde219f134665c1545cb687c39a9a1a9fe75755 | 5,561 | py | Python | Step02_Build_CNN_model/makeFiles4Basset.py | talkowski-lab/SMC_CNN_Model | 19eee4eac060e5dea72387335bc960693941b703 | [
"MIT"
] | 1 | 2021-06-12T00:56:22.000Z | 2021-06-12T00:56:22.000Z | Step02_Build_CNN_model/makeFiles4Basset.py | talkowski-lab/SMC_CNN_Model | 19eee4eac060e5dea72387335bc960693941b703 | [
"MIT"
] | null | null | null | Step02_Build_CNN_model/makeFiles4Basset.py | talkowski-lab/SMC_CNN_Model | 19eee4eac060e5dea72387335bc960693941b703 | [
"MIT"
] | 1 | 2021-11-08T22:05:05.000Z | 2021-11-08T22:05:05.000Z | #!/usr/bin/env python
from __future__ import division
import numpy.random as npr
import pysam
from Bio.Seq import reverse_complement
BASSET_FOLDER = ""
def makeBed(a,cl,inside=25,outside=75,reg=2):
d=[]
genome = pysam.Fastafile("../Input_data/GRCh37.fa")
with open(a,"r") as f:
d0=f.readline... | 31.241573 | 156 | 0.517173 | 795 | 5,561 | 3.574843 | 0.226415 | 0.028149 | 0.028501 | 0.025334 | 0.348698 | 0.237861 | 0.167488 | 0.163969 | 0.065447 | 0.040816 | 0 | 0.047188 | 0.264521 | 5,561 | 177 | 157 | 31.418079 | 0.647677 | 0.048013 | 0 | 0.1 | 0 | 0 | 0.124433 | 0.029501 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026667 | null | null | 0.073333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfe32d1805ca5c9b99d405aebfbc9ec70014e365 | 1,702 | py | Python | vaultier/vaultier/urls_api.py | dz0ny/Vaultier | e23d86c7576f4785b4e369242d7b5f7125e4d8c6 | [
"BSD-3-Clause"
] | 30 | 2015-07-13T11:11:23.000Z | 2021-01-25T14:21:18.000Z | vaultier/vaultier/urls_api.py | corpusops/vaultier | 3baef4346add0b3bdff322257467f74b2a0c856c | [
"BSD-3-Clause"
] | null | null | null | vaultier/vaultier/urls_api.py | corpusops/vaultier | 3baef4346add0b3bdff322257467f74b2a0c856c | [
"BSD-3-Clause"
] | 31 | 2015-08-10T12:10:16.000Z | 2020-09-18T09:43:28.000Z | from django.conf.urls import patterns, url
from rest_framework import routers
from accounts.api import UserViewSet, LostKeyViewSet, AuthView, MemberViewSet
from nodes.api import NodeViewSet, NodePathView, NodeDataView, PolicyViewSet
from news.api import NewsApiView
from search.api import SearchView
from vaultier.views... | 37.822222 | 77 | 0.716804 | 216 | 1,702 | 5.550926 | 0.305556 | 0.026689 | 0.066722 | 0.016681 | 0.021685 | 0.021685 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 1,702 | 44 | 78 | 38.681818 | 0.810135 | 0.034665 | 0 | 0 | 0 | 0 | 0.181651 | 0.030581 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0 | false | 0 | 0.272727 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cff1acb028a442105c7a88da1c72d65ee9945c3b | 1,416 | py | Python | adapter/acumos/tests/fixtures/models/example-model-listofm/example_model.py | onap/dcaegen2-platform | 9e930892d28fc4a3378fad8f942c9f91cffe4698 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | adapter/acumos/tests/fixtures/models/example-model-listofm/example_model.py | onap/dcaegen2-platform | 9e930892d28fc4a3378fad8f942c9f91cffe4698 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | adapter/acumos/tests/fixtures/models/example-model-listofm/example_model.py | onap/dcaegen2-platform | 9e930892d28fc4a3378fad8f942c9f91cffe4698 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2021-10-15T15:02:20.000Z | 2021-10-15T15:02:20.000Z | # ============LICENSE_START====================================================
# org.onap.dcae
# =============================================================================
# Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
# ====================================================================... | 33.714286 | 80 | 0.552966 | 158 | 1,416 | 4.892405 | 0.607595 | 0.07762 | 0.033635 | 0.041397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006826 | 0.172316 | 1,416 | 41 | 81 | 34.536585 | 0.65273 | 0.646893 | 0 | 0 | 0 | 0 | 0.051044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cff604b05a37b829ebc45bdab750338b3e114a56 | 410 | py | Python | test-grandchild-zombie.py | tsaarni/11th-init | 32e28cfafbd8c12a1dc369dae54bce13a7c819e4 | [
"Apache-2.0"
] | null | null | null | test-grandchild-zombie.py | tsaarni/11th-init | 32e28cfafbd8c12a1dc369dae54bce13a7c819e4 | [
"Apache-2.0"
] | null | null | null | test-grandchild-zombie.py | tsaarni/11th-init | 32e28cfafbd8c12a1dc369dae54bce13a7c819e4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env -S python3 -u
import os
import time
pid = os.fork()
if pid != 0:
print("Child pid={}".format(pid))
time.sleep(999999)
else:
time.sleep(1)
# child forks grandchild and exits
pid2 = os.fork()
if pid2 != 0:
print("Grandchild pid={}".format(pid2))
time.sleep(5)
print("Child exits a... | 19.52381 | 54 | 0.646341 | 61 | 410 | 4.344262 | 0.47541 | 0.101887 | 0.060377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043344 | 0.212195 | 410 | 20 | 55 | 20.5 | 0.77709 | 0.236585 | 0 | 0.133333 | 0 | 0 | 0.225806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.133333 | 0 | 0.133333 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cff6ef64731c31c3337a745a26d8620d5ecfffab | 1,024 | py | Python | HuberyBlog/extra_apps/django_comments/migrations/0004_auto_20190130_1520.py | SomnambulistOfChina/ChineseSomnambulist | dc6efcb4ea1bc02f8999cd78bebfd648253631a6 | [
"Apache-2.0"
] | 5 | 2019-05-21T08:26:18.000Z | 2021-07-20T11:32:49.000Z | HuberyBlog/extra_apps/django_comments/migrations/0004_auto_20190130_1520.py | SomnambulistOfChina/ChineseSomnambulist | dc6efcb4ea1bc02f8999cd78bebfd648253631a6 | [
"Apache-2.0"
] | null | null | null | HuberyBlog/extra_apps/django_comments/migrations/0004_auto_20190130_1520.py | SomnambulistOfChina/ChineseSomnambulist | dc6efcb4ea1bc02f8999cd78bebfd648253631a6 | [
"Apache-2.0"
] | 2 | 2019-07-20T08:35:04.000Z | 2020-02-29T07:34:42.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2019-01-30 15:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('django_comments', '0003_add_submit_date_index'),
]
operations = [
migration... | 29.257143 | 162 | 0.584961 | 102 | 1,024 | 5.656863 | 0.588235 | 0.076257 | 0.119584 | 0.140381 | 0.325823 | 0.218371 | 0.152513 | 0 | 0 | 0 | 0 | 0.034014 | 0.282227 | 1,024 | 34 | 163 | 30.117647 | 0.75102 | 0.066406 | 0 | 0.444444 | 1 | 0 | 0.203568 | 0.027282 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cff7b4aaadc6503b4d3c0b54bed2cfd5a237b248 | 1,489 | py | Python | inputs/stations/extract_china_station_raw.py | bearlin/tool_get_famous_scenery_station_airport_and_their_scws_tokens | 210adf69118065e01d7ae50e57b7c773a1a1bd65 | [
"MIT"
] | null | null | null | inputs/stations/extract_china_station_raw.py | bearlin/tool_get_famous_scenery_station_airport_and_their_scws_tokens | 210adf69118065e01d7ae50e57b7c773a1a1bd65 | [
"MIT"
] | null | null | null | inputs/stations/extract_china_station_raw.py | bearlin/tool_get_famous_scenery_station_airport_and_their_scws_tokens | 210adf69118065e01d7ae50e57b7c773a1a1bd65 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from sys import argv
import re
import codecs
print "Start."
script, filename = argv
print "script: %r." % script
print "filename: %r." % filename
print "Opening the rawfile..."
rawfile = codecs.open(filename, 'r', encoding='utf-8')
dumpfile = codecs.open(filename + ".dump", 'w', encoding='utf-8')
... | 26.122807 | 77 | 0.661518 | 193 | 1,489 | 5.103627 | 0.414508 | 0.018274 | 0.036548 | 0.036548 | 0.117767 | 0.117767 | 0.117767 | 0.117767 | 0.117767 | 0.117767 | 0 | 0.016813 | 0.161182 | 1,489 | 56 | 78 | 26.589286 | 0.771817 | 0.26595 | 0 | 0 | 0 | 0 | 0.143386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085714 | null | null | 0.228571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cffe84fc8998209b2c270a0a862cd75d59cdea30 | 19,967 | py | Python | APMSSO_Ansible/plugins/callback/apmsso_callback_log.py | CA-APM/infra-agent-automation | 172bc08ba9d911e904f1bf61bd7e5a6cecbc58b1 | [
"Apache-2.0"
] | null | null | null | APMSSO_Ansible/plugins/callback/apmsso_callback_log.py | CA-APM/infra-agent-automation | 172bc08ba9d911e904f1bf61bd7e5a6cecbc58b1 | [
"Apache-2.0"
] | null | null | null | APMSSO_Ansible/plugins/callback/apmsso_callback_log.py | CA-APM/infra-agent-automation | 172bc08ba9d911e904f1bf61bd7e5a6cecbc58b1 | [
"Apache-2.0"
] | 1 | 2020-10-27T11:21:47.000Z | 2020-10-27T11:21:47.000Z | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
# (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = '''
callback: default
type:... | 44.272727 | 227 | 0.609355 | 2,636 | 19,967 | 4.379742 | 0.115706 | 0.108099 | 0.083932 | 0.081074 | 0.666869 | 0.617843 | 0.592724 | 0.477956 | 0.4479 | 0.44175 | 0 | 0.033117 | 0.221165 | 19,967 | 450 | 228 | 44.371111 | 0.709279 | 0.014324 | 0 | 0.338462 | 0 | 0.012821 | 0.163557 | 0.038039 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005128 | 0.041026 | null | null | 0.164103 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32057b2f2625521defc8d8e72d5b52ef1fd8a76a | 464 | py | Python | validator/setup.py | acmiyaguchi/mozschema-validator | 04d265bb9359107580f8726bce5102b14a68f156 | [
"MIT"
] | null | null | null | validator/setup.py | acmiyaguchi/mozschema-validator | 04d265bb9359107580f8726bce5102b14a68f156 | [
"MIT"
] | 2 | 2018-04-13T20:54:16.000Z | 2018-05-01T01:11:32.000Z | validator/setup.py | acmiyaguchi/schema-validator | 04d265bb9359107580f8726bce5102b14a68f156 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
from setuptools import setup
setup(
name='validator',
version='0.1.0',
author='Anthony Miyaguchi',
author_email='amiyaguchi@mozilla.com',
description='Spark schema validation job',
url='https://github.com/acmiyaguchi/schema-validator',
install_requir... | 22.095238 | 58 | 0.637931 | 49 | 464 | 5.979592 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01084 | 0.204741 | 464 | 20 | 59 | 23.2 | 0.783198 | 0.077586 | 0 | 0 | 0 | 0 | 0.413146 | 0.051643 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3210ad0eb9f3c039c04a54147643c60d613ffab0 | 429 | py | Python | tests/mocks.py | Mahir-Sparkess/django-haystack-elasticsearch | dd47f0e9c492908d4cc090ad4377fe7fc5e5efb8 | [
"BSD-3-Clause"
] | 25 | 2016-12-29T14:08:00.000Z | 2019-03-08T06:41:02.000Z | tests/mocks.py | Mahir-Sparkess/django-haystack-elasticsearch | dd47f0e9c492908d4cc090ad4377fe7fc5e5efb8 | [
"BSD-3-Clause"
] | 3 | 2017-05-02T14:55:31.000Z | 2021-11-15T17:47:04.000Z | tests/mocks.py | Mahir-Sparkess/django-haystack-elasticsearch | dd47f0e9c492908d4cc090ad4377fe7fc5e5efb8 | [
"BSD-3-Clause"
] | 14 | 2017-01-12T03:33:43.000Z | 2021-05-10T04:39:37.000Z | # encoding: utf-8
from __future__ import absolute_import, division, print_function, unicode_literals
from django.apps import apps
from haystack.models import SearchResult
class MockSearchResult(SearchResult):
def __init__(self, app_label, model_name, pk, score, **kwargs):
super(MockSearchResult, self)._... | 33 | 90 | 0.762238 | 55 | 429 | 5.545455 | 0.581818 | 0.088525 | 0.085246 | 0.111475 | 0.196721 | 0.196721 | 0.196721 | 0 | 0 | 0 | 0 | 0.002717 | 0.142191 | 429 | 12 | 91 | 35.75 | 0.826087 | 0.034965 | 0 | 0 | 0 | 0 | 0.009709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
32123a8dc6e051f2c7fb4618cac502b6d5f56cc8 | 1,520 | py | Python | src/utils/boolmask.py | r39ashmi/LastMileRoutingResearchChallenge | 529fd68c69393501e0aedc55e957f927608eb393 | [
"MIT"
] | null | null | null | src/utils/boolmask.py | r39ashmi/LastMileRoutingResearchChallenge | 529fd68c69393501e0aedc55e957f927608eb393 | [
"MIT"
] | null | null | null | src/utils/boolmask.py | r39ashmi/LastMileRoutingResearchChallenge | 529fd68c69393501e0aedc55e957f927608eb393 | [
"MIT"
] | 1 | 2022-02-06T07:27:49.000Z | 2022-02-06T07:27:49.000Z | import torch
def _mask_long2byte(mask, n=None):
if n is None:
n = 8 * mask.size(-1)
return (mask[..., None] >> (torch.arange(8, out=mask.new()) * 8))[..., :n].to(torch.uint8).view(*mask.size()[:-1], -1)[..., :n]
def _mask_byte2bool(mask, n=None):
if n is None:
n = 8 * mask.size(-1)
r... | 40 | 131 | 0.621711 | 237 | 1,520 | 3.907173 | 0.379747 | 0.051836 | 0.058315 | 0.038877 | 0.218143 | 0.172786 | 0.092873 | 0.092873 | 0.092873 | 0.092873 | 0 | 0.031852 | 0.215132 | 1,520 | 37 | 132 | 41.081081 | 0.744342 | 0.324342 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32147d157b7f67d07b64ae72daa2b900f0c45344 | 1,401 | py | Python | w20data.py | zhuligs/Pallas | c8d77d0963c080fa7331560f1659001488b0328f | [
"MIT"
] | null | null | null | w20data.py | zhuligs/Pallas | c8d77d0963c080fa7331560f1659001488b0328f | [
"MIT"
] | null | null | null | w20data.py | zhuligs/Pallas | c8d77d0963c080fa7331560f1659001488b0328f | [
"MIT"
] | null | null | null | import fppy
class Wstorage(object):
def __init__(self, ediff=0.001, fpdiff=0.001,
ntyp=None):
self.minima = []
self.saddle = []
self.ediff = float(ediff)
self.fpdiff = float(fpdiff)
self.ntyp = ntyp
# self.types = types
def add_minima(self, new)... | 28.591837 | 60 | 0.511777 | 186 | 1,401 | 3.736559 | 0.306452 | 0.057554 | 0.03741 | 0.046043 | 0.115108 | 0.054676 | 0 | 0 | 0 | 0 | 0 | 0.039728 | 0.371163 | 1,401 | 48 | 61 | 29.1875 | 0.749149 | 0.012848 | 0 | 0.090909 | 0 | 0 | 0.001448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022727 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3215f19ecc641f982700a40585e4986b5ee1a928 | 467 | py | Python | tests/script/tavern_chars.py | ufosc/MuddySwamp | 2e28f9db1f0f4e1c4aafccdf7f58bf2a22b82366 | [
"MIT"
] | 10 | 2018-10-14T00:29:27.000Z | 2020-05-02T23:59:30.000Z | tests/script/tavern_chars.py | ufosc/MuddySwamp | 2e28f9db1f0f4e1c4aafccdf7f58bf2a22b82366 | [
"MIT"
] | 36 | 2018-06-13T05:48:10.000Z | 2020-02-05T18:51:52.000Z | tests/script/tavern_chars.py | ufosc/MuddySwamp | 2e28f9db1f0f4e1c4aafccdf7f58bf2a22b82366 | [
"MIT"
] | 8 | 2018-08-30T03:13:13.000Z | 2020-05-15T21:42:52.000Z | """a few CharacterClasses for testing the 'find' method
(see save 'tavern.yaml')"""
from swampymud.character import Character
class Humanoid(Character):
"""a base class for all other classes in this group"""
class Merchant(Humanoid):
"""good with coin (especially other people's)"""
class Wizard(Humanoid):
... | 24.578947 | 58 | 0.700214 | 61 | 467 | 5.360656 | 0.721311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167024 | 467 | 18 | 59 | 25.944444 | 0.840617 | 0.51606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32164d5e1796ce8618580e0c6f7288cde383f143 | 256 | py | Python | iptfe/blog/urls.py | I-prefer-the-front-end/I-prefer-the-front-end | 62e3c3e6b40ea350104bde5bd99bc88065506234 | [
"MIT"
] | null | null | null | iptfe/blog/urls.py | I-prefer-the-front-end/I-prefer-the-front-end | 62e3c3e6b40ea350104bde5bd99bc88065506234 | [
"MIT"
] | null | null | null | iptfe/blog/urls.py | I-prefer-the-front-end/I-prefer-the-front-end | 62e3c3e6b40ea350104bde5bd99bc88065506234 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from blog import views
urlpatterns = [
url(r'^archive/$', views.archive, name='archive'),
url(r'^comment/$', views.comment, name='comment'),
url(r'^(?P<slug>[A-Za-z0-9_\-.]+)?/?$', views.post, name='post'),
]
| 25.6 | 69 | 0.617188 | 37 | 256 | 4.243243 | 0.540541 | 0.076433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00905 | 0.136719 | 256 | 9 | 70 | 28.444444 | 0.701357 | 0 | 0 | 0 | 0 | 0 | 0.269531 | 0.121094 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32165aca27fde8f36646a522b8ab5e04657a70e7 | 10,473 | py | Python | gui/qt_ui/OptimizationQT.py | victorgabr/pps | dfe3fae64fd4dedde85204643f9c797c0373f96c | [
"BSD-3-Clause"
] | 7 | 2018-11-18T07:11:05.000Z | 2021-05-06T21:53:40.000Z | gui/qt_ui/OptimizationQT.py | victorgabr/pps | dfe3fae64fd4dedde85204643f9c797c0373f96c | [
"BSD-3-Clause"
] | 9 | 2019-09-23T16:34:09.000Z | 2020-05-26T18:49:43.000Z | gui/qt_ui/OptimizationQT.py | victorgabr/pps | dfe3fae64fd4dedde85204643f9c797c0373f96c | [
"BSD-3-Clause"
] | 2 | 2019-04-18T14:34:31.000Z | 2019-06-19T19:34:33.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\Victor\Dropbox\DFR\film2dose\qt_ui\evo_widget.ui'
#
# Created: Tue Sep 29 14:54:23 2015
# by: pyside-uic 0.2.15 running on PySide 1.2.2
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
... | 64.648148 | 187 | 0.584264 | 1,146 | 10,473 | 5.213787 | 0.139616 | 0.130879 | 0.100084 | 0.115481 | 0.655397 | 0.437824 | 0.343766 | 0.297071 | 0.243347 | 0.159498 | 0 | 0.032738 | 0.288361 | 10,473 | 161 | 188 | 65.049689 | 0.768952 | 0.025781 | 0 | 0.182432 | 1 | 0 | 0.129083 | 0.040412 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013514 | false | 0 | 0.006757 | 0 | 0.027027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3218111e5ba3d23ed7e14e3bec03d4945cc872d0 | 713 | py | Python | bin_env/MapperData.py | ArChiiii/TSP_DRL_PtrNet | 8218a508c563d9641b341dff5a6241d90e4e031b | [
"MIT"
] | null | null | null | bin_env/MapperData.py | ArChiiii/TSP_DRL_PtrNet | 8218a508c563d9641b341dff5a6241d90e4e031b | [
"MIT"
] | null | null | null | bin_env/MapperData.py | ArChiiii/TSP_DRL_PtrNet | 8218a508c563d9641b341dff5a6241d90e4e031b | [
"MIT"
] | null | null | null |
from dataclasses import dataclass
from typing import List
from enum import Enum
class IterationResult(Enum):
Success = 1
Failure = 2
BiggerThanBestContainer = 3
SmallerThanCombinedImages = 4
@dataclass
class ContainerStats():
rectangleAddAttempts: int
nbrCellsGenerated: int
lowestFree... | 16.581395 | 35 | 0.730715 | 66 | 713 | 7.893939 | 0.560606 | 0.080614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007105 | 0.210379 | 713 | 42 | 36 | 16.97619 | 0.918295 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3219b2872136a395e8a2e3e3549ad44159209de5 | 2,661 | py | Python | scripts/variability_study_run.py | cshunk/covidsim | 9776efb0726af4f59b83fe6afcc9b7e6b9e967aa | [
"BSD-2-Clause"
] | null | null | null | scripts/variability_study_run.py | cshunk/covidsim | 9776efb0726af4f59b83fe6afcc9b7e6b9e967aa | [
"BSD-2-Clause"
] | null | null | null | scripts/variability_study_run.py | cshunk/covidsim | 9776efb0726af4f59b83fe6afcc9b7e6b9e967aa | [
"BSD-2-Clause"
] | 1 | 2021-03-08T16:48:38.000Z | 2021-03-08T16:48:38.000Z | """
Runs the susceptibility variability study.
Modify the params variable to set the parameters of the study.
Parameters:
pInfect: Rate of infection
pRemove: Rate of removal
pInfected: Starting percent of population that is infected
population: Approximate popul... | 40.318182 | 119 | 0.706877 | 338 | 2,661 | 5.467456 | 0.414201 | 0.010823 | 0.019481 | 0.031385 | 0.051407 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021941 | 0.229237 | 2,661 | 65 | 120 | 40.938462 | 0.879083 | 0.692973 | 0 | 0 | 0 | 0 | 0.065839 | 0.027329 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.041667 | false | 0 | 0.166667 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c4f330b1eecb840bd796102bfa5afeb13757022 | 410 | py | Python | aula2/exercicio1.py | ArseniumGX/bluemer-modulo1-python | 2f7c69252a9a86cc573c192d1d9685b0c20466f8 | [
"MIT"
] | null | null | null | aula2/exercicio1.py | ArseniumGX/bluemer-modulo1-python | 2f7c69252a9a86cc573c192d1d9685b0c20466f8 | [
"MIT"
] | null | null | null | aula2/exercicio1.py | ArseniumGX/bluemer-modulo1-python | 2f7c69252a9a86cc573c192d1d9685b0c20466f8 | [
"MIT"
] | null | null | null | """ 01
E os 10% do garçom?**
Defina uma variável para o valor de uma refeição que custou R$ 42,54;
Defina uma variável para o valor da taxa de serviço que é de 10%;
Defina uma variável que calcula o valor total da conta e exiba-o no console com essa
formatação: R$ XXXX.XX.
"""
valor = 42.5... | 22.777778 | 88 | 0.65122 | 74 | 410 | 3.608108 | 0.513514 | 0.089888 | 0.191011 | 0.157303 | 0.202247 | 0.202247 | 0 | 0 | 0 | 0 | 0 | 0.064935 | 0.24878 | 410 | 18 | 89 | 22.777778 | 0.801948 | 0.668293 | 0 | 0 | 0 | 0 | 0.295238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c4fcde5d930a8c52566bd9877af8e54344d9963 | 9,969 | py | Python | CAAPR/CAAPR_AstroMagic/PTS/pts/do/modeling/seba/check_heating.py | wdobbels/CAAPR | 50d0b32642a61af614c22f1c6dc3c4a00a1e71a3 | [
"MIT"
] | 7 | 2016-05-20T21:56:39.000Z | 2022-02-07T21:09:48.000Z | CAAPR/CAAPR_AstroMagic/PTS/pts/do/modeling/seba/check_heating.py | wdobbels/CAAPR | 50d0b32642a61af614c22f1c6dc3c4a00a1e71a3 | [
"MIT"
] | 1 | 2019-03-21T16:10:04.000Z | 2019-03-22T17:21:56.000Z | CAAPR/CAAPR_AstroMagic/PTS/pts/do/modeling/seba/check_heating.py | wdobbels/CAAPR | 50d0b32642a61af614c22f1c6dc3c4a00a1e71a3 | [
"MIT"
] | 1 | 2020-05-19T16:17:17.000Z | 2020-05-19T16:17:17.000Z | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | 35.476868 | 121 | 0.641388 | 1,385 | 9,969 | 4.46787 | 0.184116 | 0.006787 | 0.039916 | 0.028442 | 0.529735 | 0.482385 | 0.446186 | 0.380414 | 0.363607 | 0.337427 | 0 | 0.044559 | 0.185074 | 9,969 | 281 | 122 | 35.476868 | 0.717011 | 0.19992 | 0 | 0.342105 | 0 | 0 | 0.089408 | 0.046863 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039474 | null | null | 0.013158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c518a7aefaa27641c2404d80d6ad365a3bb2bb2 | 40,140 | py | Python | Clock/PyQtPiClock.py | tonymorris/PiClock | d5a1b96eaef012834844b4c34e2344ec5671031b | [
"MIT"
] | 2 | 2017-07-03T16:13:27.000Z | 2017-07-03T16:13:49.000Z | Clock/PyQtPiClock.py | tonymorris/PiClock | d5a1b96eaef012834844b4c34e2344ec5671031b | [
"MIT"
] | null | null | null | Clock/PyQtPiClock.py | tonymorris/PiClock | d5a1b96eaef012834844b4c34e2344ec5671031b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*- # NOQA
import sys
import os
import platform
import signal
import datetime
import time
import json
import locale
import random
import re
from PyQt4 import QtGui, QtCore, QtNetwork
from PyQt4.QtGui import QPixmap, QMovie, QBrush, QColor, QPainter
from PyQt4.QtCore import QUrl
fro... | 34.33704 | 150 | 0.555605 | 4,153 | 40,140 | 5.348904 | 0.152661 | 0.003421 | 0.036283 | 0.010084 | 0.329072 | 0.267669 | 0.245026 | 0.224858 | 0.205951 | 0.19042 | 0 | 0.030765 | 0.306029 | 40,140 | 1,168 | 151 | 34.366438 | 0.766334 | 0.04285 | 0 | 0.321897 | 0 | 0.001009 | 0.120394 | 0.01243 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004036 | 0.020182 | null | null | 0.012109 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c58a0d52b8cef211264dbb50ca9899b22373ef3 | 632 | py | Python | invenio_records_resources/services/records/params/__init__.py | jrcastro2/invenio-records-resources | a9760846080bfa1da4ed55c6f5b1f7bb96acd0b5 | [
"MIT"
] | null | null | null | invenio_records_resources/services/records/params/__init__.py | jrcastro2/invenio-records-resources | a9760846080bfa1da4ed55c6f5b1f7bb96acd0b5 | [
"MIT"
] | null | null | null | invenio_records_resources/services/records/params/__init__.py | jrcastro2/invenio-records-resources | a9760846080bfa1da4ed55c6f5b1f7bb96acd0b5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2020 CERN.
#
# Invenio-Records-Resources is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see LICENSE file for more
# details.
"""Search parameter interpreter API."""
from .base import ParamInterpreter
from .facets import Facets... | 23.407407 | 76 | 0.727848 | 71 | 632 | 6.422535 | 0.71831 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009579 | 0.174051 | 632 | 26 | 77 | 24.307692 | 0.863985 | 0.375 | 0 | 0 | 0 | 0 | 0.224543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5c5cf1c2f2bcf20985787c9b1a6a054234532e3c | 4,651 | py | Python | floodviz/linked_data_utils.py | USGS-VIZLAB/active-flood-viz | fff04a5703967969aa8d01a5f67fe95772ea4aec | [
"CC0-1.0"
] | 3 | 2021-04-16T04:24:40.000Z | 2022-02-11T22:17:14.000Z | floodviz/linked_data_utils.py | USGS-VIZLAB/active-flood-viz | fff04a5703967969aa8d01a5f67fe95772ea4aec | [
"CC0-1.0"
] | 22 | 2017-06-19T15:05:08.000Z | 2022-02-14T22:15:04.000Z | floodviz/linked_data_utils.py | USGS-VIZLAB/active-flood-viz | fff04a5703967969aa8d01a5f67fe95772ea4aec | [
"CC0-1.0"
] | 8 | 2017-06-19T13:59:23.000Z | 2017-07-10T20:40:10.000Z | from datetime import date
class LinkedData:
"""
Generates JSON-LD based on gages and the flood event.
"""
def __init__(self):
self.ld = self._blank_thing("WebSite")
self.ld.update({
"name": "Active flood visualization placeholder name",
"datePublished": str(date... | 29.624204 | 104 | 0.488927 | 493 | 4,651 | 4.505071 | 0.27789 | 0.043224 | 0.038271 | 0.045025 | 0.076542 | 0.022512 | 0 | 0 | 0 | 0 | 0 | 0.002805 | 0.386799 | 4,651 | 156 | 105 | 29.814103 | 0.775947 | 0.212427 | 0 | 0.114583 | 1 | 0 | 0.171084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114583 | false | 0 | 0.010417 | 0 | 0.197917 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c67075d9a02f5436a7386d8c0f32d76899c0dc6 | 1,342 | py | Python | src/prodstats/cq/__init__.py | la-mar/prodstats | 4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824 | [
"MIT"
] | null | null | null | src/prodstats/cq/__init__.py | la-mar/prodstats | 4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824 | [
"MIT"
] | null | null | null | src/prodstats/cq/__init__.py | la-mar/prodstats | 4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824 | [
"MIT"
] | 1 | 2021-01-05T18:58:08.000Z | 2021-01-05T18:58:08.000Z | # flake8: noqa
import functools
import logging
from celery.schedules import crontab
import config as conf
import cq.signals
import cq.tasks as tasks
import db
import loggers
from const import HoleDirection, IHSPath
from cq.worker import celery_app
logger = logging.getLogger(__name__)
@celery_app.on_after_configure... | 26.84 | 90 | 0.670641 | 184 | 1,342 | 4.63587 | 0.358696 | 0.073857 | 0.065651 | 0.093787 | 0.297773 | 0.279015 | 0.213365 | 0.152403 | 0 | 0 | 0 | 0.021475 | 0.201937 | 1,342 | 49 | 91 | 27.387755 | 0.774977 | 0.275708 | 0 | 0.1 | 0 | 0 | 0.066736 | 0.021898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.333333 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5c6c2c785d2c2f358098daac5406d05ec819f892 | 6,030 | py | Python | zprime_search/python/Systematics.py | cdragoiu/particle_physics | 1814ea2f072ccfbf1412397b19a3b5dad7ddb639 | [
"MIT"
] | null | null | null | zprime_search/python/Systematics.py | cdragoiu/particle_physics | 1814ea2f072ccfbf1412397b19a3b5dad7ddb639 | [
"MIT"
] | null | null | null | zprime_search/python/Systematics.py | cdragoiu/particle_physics | 1814ea2f072ccfbf1412397b19a3b5dad7ddb639 | [
"MIT"
] | null | null | null | import math, ROOT, sys
from PlotStyle import *
# estimate systematics -----------------------------------------------------------------------------
def GetSys(basePath, baseRunType, sysPath, sysRunType, N, ybin):
if 'ele' in baseRunType:
data = 'DoubleElectron'
elif 'hf' in baseRunType:
data = ... | 41.586207 | 100 | 0.550415 | 708 | 6,030 | 4.635593 | 0.241525 | 0.02986 | 0.012797 | 0.023461 | 0.353748 | 0.319013 | 0.253199 | 0.19287 | 0.106033 | 0.106033 | 0 | 0.031414 | 0.271476 | 6,030 | 144 | 101 | 41.875 | 0.715684 | 0.049088 | 0 | 0.253623 | 0 | 0 | 0.148866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014493 | null | null | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c6f6066b3c7cb622e5718a9e9136600fd2f5a6b | 375 | py | Python | src/api/urls.py | rjuppa/onepip | dd8de82ba58f5f192792fa21b466f9726227e0c5 | [
"MIT"
] | null | null | null | src/api/urls.py | rjuppa/onepip | dd8de82ba58f5f192792fa21b466f9726227e0c5 | [
"MIT"
] | null | null | null | src/api/urls.py | rjuppa/onepip | dd8de82ba58f5f192792fa21b466f9726227e0c5 | [
"MIT"
] | null | null | null | from django.conf.urls import url, include
from rest_framework import routers
from . import views
# Routers provide an easy way of automatically determining the URL conf.
router = routers.DefaultRouter()
router.register(r'users', views.UserViewSet)
urlpatterns = [
url(r'^prices/(?P<mid>[0-9]+)/$', views.PriceLis... | 22.058824 | 72 | 0.72 | 52 | 375 | 5.153846 | 0.653846 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006192 | 0.138667 | 375 | 16 | 73 | 23.4375 | 0.823529 | 0.186667 | 0 | 0 | 0 | 0 | 0.10299 | 0.083056 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5c73899f8a7a4e6cae0196f83d72e8c2a0f1bcf4 | 18,505 | py | Python | logiq/src/Qmath.py | Bnz-0/logiq | 5b7c4cf894f00aa5648192f9c4bece6a45c9f894 | [
"MIT"
] | 1 | 2019-12-04T13:45:14.000Z | 2019-12-04T13:45:14.000Z | logiq/src/Qmath.py | Bnz-0/logiq | 5b7c4cf894f00aa5648192f9c4bece6a45c9f894 | [
"MIT"
] | null | null | null | logiq/src/Qmath.py | Bnz-0/logiq | 5b7c4cf894f00aa5648192f9c4bece6a45c9f894 | [
"MIT"
] | null | null | null | from random import random, sample
from .Qerrors import DimensionError, GenericLogiqError, InitializationError
from .qtils import equal, isScalar, math, mod_square, np
#### Qmath.py
#
# This file contains 2 classes that wrap the numpy.matrix class: the vector and the matrix class,
# it contains also other mathematica... | 30.187602 | 247 | 0.565685 | 2,583 | 18,505 | 4.056523 | 0.125048 | 0.006299 | 0.012025 | 0.017179 | 0.563562 | 0.479481 | 0.412006 | 0.38347 | 0.333842 | 0.304066 | 0 | 0.016294 | 0.296893 | 18,505 | 612 | 248 | 30.236928 | 0.76689 | 0.226533 | 0 | 0.343243 | 0 | 0.005405 | 0.106474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0.002703 | 0.008108 | 0.048649 | 0.440541 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c7b005e76d1d272f859bd8434eb849b792f547e | 1,349 | py | Python | djfw/pagination/middleware.py | kozzztik/tulius | 81b8f6484eefdc453047f62173a08f5e6f640cd6 | [
"MIT"
] | 1 | 2020-04-21T15:09:18.000Z | 2020-04-21T15:09:18.000Z | djfw/pagination/middleware.py | kozzztik/tulius | 81b8f6484eefdc453047f62173a08f5e6f640cd6 | [
"MIT"
] | 70 | 2019-04-10T22:32:32.000Z | 2022-03-11T23:12:54.000Z | djfw/pagination/middleware.py | kozzztik/tulius | 81b8f6484eefdc453047f62173a08f5e6f640cd6 | [
"MIT"
] | 1 | 2019-04-12T14:55:39.000Z | 2019-04-12T14:55:39.000Z | import asyncio
def get_page(self):
"""
A function which will be monkeypatched onto the request to get the current
integer representing the current page.
"""
try:
if self.POST:
p = self.POST['page']
else:
p = self.GET['page']
if p == 'last':
... | 25.942308 | 79 | 0.673091 | 157 | 1,349 | 5.541401 | 0.369427 | 0.151724 | 0.103448 | 0.05977 | 0.222989 | 0.222989 | 0.222989 | 0.222989 | 0.222989 | 0.222989 | 0 | 0.000985 | 0.247591 | 1,349 | 51 | 80 | 26.45098 | 0.856158 | 0.188288 | 0 | 0.2 | 0 | 0 | 0.015152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.033333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5c7dd017cb985d2be70863e2a6c94eef99b97a29 | 11,416 | py | Python | eteach/com/pybsoft/eteach/regression/mvlinear.py | juanmr82/e-teach | 710bc119ece349c08f0228c274922d3479bec452 | [
"Apache-2.0"
] | null | null | null | eteach/com/pybsoft/eteach/regression/mvlinear.py | juanmr82/e-teach | 710bc119ece349c08f0228c274922d3479bec452 | [
"Apache-2.0"
] | null | null | null | eteach/com/pybsoft/eteach/regression/mvlinear.py | juanmr82/e-teach | 710bc119ece349c08f0228c274922d3479bec452 | [
"Apache-2.0"
] | null | null | null | '''
Created on Aug 10, 2018
@author: Juan Reina
@contact: juanmr82@gmail.com
This module uses tensorflow on a dataset to implement a multivarian linear regression.
The following input arguments are needed and for practical purposes, in CSV format
and only float values
1. File name. Must be specified with -... | 37.676568 | 122 | 0.567537 | 1,423 | 11,416 | 4.481377 | 0.260014 | 0.018347 | 0.028226 | 0.01035 | 0.178767 | 0.1634 | 0.151482 | 0.148189 | 0.133448 | 0.094402 | 0 | 0.009728 | 0.333655 | 11,416 | 302 | 123 | 37.801325 | 0.828579 | 0.190872 | 0 | 0.278107 | 0 | 0.017751 | 0.223974 | 0 | 0 | 0 | 0 | 0.016556 | 0 | 1 | 0.023669 | false | 0 | 0.029586 | 0 | 0.071006 | 0.272189 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c7eab84cedcd9a684eaec97ef3ab71e3134b344 | 287 | py | Python | Kattis/joinstrings.py | MilladMuhammadi/Competitive-Programming | 9f84a2d2734a5efe0e1fde0062e51782cd5af2c6 | [
"MIT"
] | null | null | null | Kattis/joinstrings.py | MilladMuhammadi/Competitive-Programming | 9f84a2d2734a5efe0e1fde0062e51782cd5af2c6 | [
"MIT"
] | null | null | null | Kattis/joinstrings.py | MilladMuhammadi/Competitive-Programming | 9f84a2d2734a5efe0e1fde0062e51782cd5af2c6 | [
"MIT"
] | null | null | null | li = []
nli = []
n = int(input())
for i in range(n):
li.append(input())
nli.append([i])
a=0
#print(nli)
for i in range(n-1):
a,b = map(int,input().split())
a-=1
b-=1
nli[a]+=nli[b]
nli[b] = []
res = ""
for i in range(n):
print(li[nli[a][i]],sep='',end='') | 16.882353 | 38 | 0.484321 | 55 | 287 | 2.527273 | 0.363636 | 0.086331 | 0.129496 | 0.23741 | 0.258993 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.240418 | 287 | 17 | 38 | 16.882353 | 0.619266 | 0.034843 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c7fadc6def96acb36e9f974704042ce02aa463a | 2,356 | py | Python | Sleep_stage_classifier/score_newpatient.py | bdh-team-12/sleep-predictions-through-deep-learning | 7664cdffc0a0b0e732bffc95fd01e3ea27687025 | [
"MIT"
] | 7 | 2019-02-23T17:57:25.000Z | 2021-03-19T13:32:28.000Z | Sleep_stage_classifier/score_newpatient.py | bdh-team-12/sleep-predictions-through-deep-learning | 7664cdffc0a0b0e732bffc95fd01e3ea27687025 | [
"MIT"
] | 7 | 2019-03-02T16:55:57.000Z | 2019-04-27T20:11:12.000Z | Sleep_stage_classifier/score_newpatient.py | bdh-team-12/sleep-predictions-through-deep-learning | 7664cdffc0a0b0e732bffc95fd01e3ea27687025 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 21 23:01:59 2019
@author: CRNZ
"""
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 21 21:24:21 2019
@author: CRNZ
"""
import numpy as np
import pandas as pd
import scipy.signal as ssignal
import os
import matplotlib.pyplot as plt
"""this is from Blake... | 28.385542 | 142 | 0.720289 | 365 | 2,356 | 4.476712 | 0.424658 | 0.029376 | 0.0306 | 0.058752 | 0.094247 | 0.094247 | 0.094247 | 0.094247 | 0.0612 | 0 | 0 | 0.025628 | 0.155348 | 2,356 | 83 | 143 | 28.385542 | 0.795477 | 0.040323 | 0 | 0 | 0 | 0.018868 | 0.116576 | 0.039351 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.358491 | 0 | 0.396226 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5c8f7ac03387dbc75bca001d6ea7901ce4e37956 | 2,705 | py | Python | ipregistry/request.py | sebspion/ipregistry-python | 5d71e3fcf785a5be99d004ef96ced976c57dd60a | [
"Apache-2.0"
] | 7 | 2019-07-28T08:29:54.000Z | 2021-08-06T10:42:31.000Z | ipregistry/request.py | sebspion/ipregistry-python | 5d71e3fcf785a5be99d004ef96ced976c57dd60a | [
"Apache-2.0"
] | 15 | 2020-07-05T15:22:58.000Z | 2022-01-10T17:01:20.000Z | ipregistry/request.py | sebspion/ipregistry-python | 5d71e3fcf785a5be99d004ef96ced976c57dd60a | [
"Apache-2.0"
] | 3 | 2020-01-06T13:43:41.000Z | 2020-09-25T11:59:04.000Z | """
Copyright 2019 Ipregistry (https://ipregistry.co).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by app... | 31.823529 | 138 | 0.648799 | 323 | 2,705 | 5.331269 | 0.424149 | 0.034843 | 0.034843 | 0.018583 | 0.260163 | 0.164925 | 0.164925 | 0.164925 | 0.164925 | 0.164925 | 0 | 0.004442 | 0.251017 | 2,705 | 84 | 139 | 32.202381 | 0.845508 | 0.212569 | 0 | 0.444444 | 0 | 0 | 0.040346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.148148 | 0.037037 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5ca55240c2125f62a6b90ba9a21b1bb79de7d0a8 | 605 | py | Python | reverse_api_call.py | ericpanyc/INFO550_Project | 92b91537e94dc859931eef3f5f7b29795dcbb87c | [
"MIT"
] | null | null | null | reverse_api_call.py | ericpanyc/INFO550_Project | 92b91537e94dc859931eef3f5f7b29795dcbb87c | [
"MIT"
] | null | null | null | reverse_api_call.py | ericpanyc/INFO550_Project | 92b91537e94dc859931eef3f5f7b29795dcbb87c | [
"MIT"
] | null | null | null | import requests
import xml.etree.ElementTree as ET
import urllib.request, urllib.parse, urllib.error
import json
import ssl
import sys
import re
import getopt
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
lon = str(37.7812808)
lat = str(-122.4152363)
url = "https://no... | 23.269231 | 92 | 0.757025 | 97 | 605 | 4.618557 | 0.587629 | 0.058036 | 0.058036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037313 | 0.11405 | 605 | 25 | 93 | 24.2 | 0.798507 | 0 | 0 | 0 | 0 | 0.05 | 0.165289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
5cb3d1baec8827e58e067298c08cef15ddaef136 | 3,903 | py | Python | hesiod.py | ebroder/python-hesiod | 2b11f727fe934efe8935ac3543fe538d14b8fafe | [
"MIT"
] | 3 | 2015-11-23T10:57:33.000Z | 2017-01-12T19:38:11.000Z | hesiod.py | ebroder/python-hesiod | 2b11f727fe934efe8935ac3543fe538d14b8fafe | [
"MIT"
] | 1 | 2019-12-12T18:38:26.000Z | 2019-12-13T01:28:26.000Z | hesiod.py | ebroder/python-hesiod | 2b11f727fe934efe8935ac3543fe538d14b8fafe | [
"MIT"
] | 1 | 2019-12-10T00:50:36.000Z | 2019-12-10T00:50:36.000Z | """
Present both functional and object-oriented interfaces for executing
lookups in Hesiod, Project Athena's service name resolution protocol.
"""
from _hesiod import bind, resolve
from pwd import struct_passwd
from grp import struct_group
class HesiodParseError(Exception):
pass
class Lookup(object):
"""
... | 33.93913 | 72 | 0.478606 | 353 | 3,903 | 5.093484 | 0.252125 | 0.048943 | 0.036707 | 0.055617 | 0.262514 | 0.219132 | 0.172414 | 0.172414 | 0.172414 | 0.129032 | 0 | 0.012324 | 0.417884 | 3,903 | 114 | 73 | 34.236842 | 0.779049 | 0.041507 | 0 | 0.318182 | 0 | 0 | 0.043034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0.125 | 0.034091 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5cb8bdd032359f6049176403be6a28a63908a5f4 | 3,488 | py | Python | Doulist-book-Spider/spider.py | bujige/Python-practice | c1eb76b0caaada628f23a477303f07d6be3f707c | [
"Apache-2.0"
] | null | null | null | Doulist-book-Spider/spider.py | bujige/Python-practice | c1eb76b0caaada628f23a477303f07d6be3f707c | [
"Apache-2.0"
] | null | null | null | Doulist-book-Spider/spider.py | bujige/Python-practice | c1eb76b0caaada628f23a477303f07d6be3f707c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#-*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf8')
from bs4 import BeautifulSoup
import re
import urllib2
import xlwt
#得到页面全部内容
def askURL(url):
request = urllib2.Request(url)#发送请求
try:
response = urllib2.urlopen(request)#取得响应
html= response.read()#获取... | 32 | 87 | 0.537844 | 434 | 3,488 | 4.306452 | 0.412442 | 0.064205 | 0.042804 | 0.029963 | 0.077582 | 0.021402 | 0 | 0 | 0 | 0 | 0 | 0.020235 | 0.291571 | 3,488 | 109 | 88 | 32 | 0.736139 | 0.088303 | 0 | 0.045455 | 0 | 0 | 0.12014 | 0.032186 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056818 | null | null | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cc027723f5b3b780d5950c42ab9f7f49e9095b9 | 899 | py | Python | objets/rectangles.py | houahidi/exos-python | 60055ff2933a07876213aa8e5f03c9388f628b99 | [
"Apache-2.0"
] | null | null | null | objets/rectangles.py | houahidi/exos-python | 60055ff2933a07876213aa8e5f03c9388f628b99 | [
"Apache-2.0"
] | null | null | null | objets/rectangles.py | houahidi/exos-python | 60055ff2933a07876213aa8e5f03c9388f628b99 | [
"Apache-2.0"
] | null | null | null | """ Gestion des rectangles"""
from objets import points as p
from objets.formes import Forme
class Rectangle(Forme):
""" Rectangle avec 2D"""
def __init__(self, origine, longueur=0, largeur=0):
Forme.__init__(self,origine)
self.longueur = longueur
self.largeur = largeur
def __str__... | 29 | 96 | 0.621802 | 106 | 899 | 5.04717 | 0.415094 | 0.08972 | 0.142056 | 0.128972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.252503 | 899 | 30 | 97 | 29.966667 | 0.775298 | 0 | 0 | 0 | 0 | 0 | 0.135863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cc481688e70e209f8ed80b1bc42132901de5460 | 1,893 | py | Python | rackspaceauth/loading/v2.py | serzh/rackspace-keystoneauth-plugin | 5c51d7f1a9b15dfd6a683e948853401896e78bb7 | [
"Apache-2.0"
] | 1 | 2017-04-26T04:45:45.000Z | 2017-04-26T04:45:45.000Z | rackspaceauth/loading/v2.py | serzh/rackspace-keystoneauth-plugin | 5c51d7f1a9b15dfd6a683e948853401896e78bb7 | [
"Apache-2.0"
] | 6 | 2016-01-12T18:35:12.000Z | 2017-05-31T13:51:41.000Z | rackspaceauth/loading/v2.py | serzh/rackspace-keystoneauth-plugin | 5c51d7f1a9b15dfd6a683e948853401896e78bb7 | [
"Apache-2.0"
] | 4 | 2016-01-11T23:53:57.000Z | 2020-10-28T13:23:56.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 27.042857 | 75 | 0.587427 | 212 | 1,893 | 5.193396 | 0.410377 | 0.054496 | 0.073569 | 0.081744 | 0.378747 | 0.378747 | 0.299728 | 0.266122 | 0.266122 | 0.121708 | 0 | 0.00931 | 0.31907 | 1,893 | 69 | 76 | 27.434783 | 0.844841 | 0.275753 | 0 | 0.511628 | 0 | 0 | 0.077999 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0.116279 | 0.046512 | 0.069767 | 0.395349 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5ccc43f2af35e3202201e7a59cefaf44ae5c6723 | 5,080 | py | Python | 2019/day9.py | ellull/codeofadvent2017 | 6e6530dd179dab1bef35e1ba94c1f86f990af4ae | [
"Unlicense"
] | null | null | null | 2019/day9.py | ellull/codeofadvent2017 | 6e6530dd179dab1bef35e1ba94c1f86f990af4ae | [
"Unlicense"
] | 4 | 2021-03-18T20:13:06.000Z | 2022-03-11T23:12:20.000Z | 2019/day9.py | ellull/adventofcode | 6e6530dd179dab1bef35e1ba94c1f86f990af4ae | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
import fileinput
from collections import defaultdict
from threading import Thread
from queue import Queue
class Memory(defaultdict):
def __init__(self, content):
super(Memory, self).__init__(int, enumerate(content))
def __getitem__(self, address):
if address < 0:
... | 44.955752 | 132 | 0.625 | 626 | 5,080 | 4.808307 | 0.183706 | 0.204319 | 0.100997 | 0.157807 | 0.524917 | 0.503654 | 0.457143 | 0.4299 | 0.4299 | 0.4299 | 0 | 0.056614 | 0.266339 | 5,080 | 112 | 133 | 45.357143 | 0.751006 | 0.004134 | 0 | 0.16129 | 0 | 0 | 0.027481 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.096774 | false | 0 | 0.043011 | 0 | 0.236559 | 0.021505 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ccc7127c44d4142b170576b830eded68fe36b7d | 1,495 | py | Python | test/runtime/frontend_test/onnx_test/defs_test/nn_test/average_pool_test.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | 1 | 2021-04-09T15:55:35.000Z | 2021-04-09T15:55:35.000Z | test/runtime/frontend_test/onnx_test/defs_test/nn_test/average_pool_test.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | null | null | null | test/runtime/frontend_test/onnx_test/defs_test/nn_test/average_pool_test.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | null | null | null | import chainer
import numpy as np
from test.runtime.frontend_test.onnx_test.util import make_node, make_tensor_value_info, make_model
from test.util import wrap_template, generate_kernel_test_case
from webdnn.frontend.onnx import ONNXConverter
@wrap_template
def template(N=2, H=5, W=5, C=7, KH=3, KW=3, SH=1, SW=1, P... | 23.730159 | 104 | 0.621405 | 239 | 1,495 | 3.728033 | 0.34728 | 0.047138 | 0.022447 | 0.063973 | 0.051627 | 0.042649 | 0.042649 | 0.042649 | 0.042649 | 0.042649 | 0 | 0.029711 | 0.21204 | 1,495 | 62 | 105 | 24.112903 | 0.726655 | 0 | 0 | 0 | 1 | 0 | 0.052843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.121951 | 0 | 0.292683 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cd33629275ce906ddd9c7290b07ab76b7a71763 | 262 | py | Python | Ex0014/ex0014.py | Rodrigo-Antonio-Silva/ExerciciosPythonCursoemVideo | 3b2d68094dd5d60f0e45a75590eb2be9be030640 | [
"MIT"
] | null | null | null | Ex0014/ex0014.py | Rodrigo-Antonio-Silva/ExerciciosPythonCursoemVideo | 3b2d68094dd5d60f0e45a75590eb2be9be030640 | [
"MIT"
] | null | null | null | Ex0014/ex0014.py | Rodrigo-Antonio-Silva/ExerciciosPythonCursoemVideo | 3b2d68094dd5d60f0e45a75590eb2be9be030640 | [
"MIT"
] | null | null | null | #utf-8
#Exercício 14 do curso em vídeo de Python
celsius = float((input('Informe a temperatura em °C: ')))
#transformando de celsius para fahrenheit
fahr = (celsius * 9/5) + 32
print('A temperatura de {}°C corresponde a {}°F!'.format(celsius, fahr))
| 26.2 | 73 | 0.675573 | 42 | 262 | 4.285714 | 0.690476 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032864 | 0.187023 | 262 | 9 | 74 | 29.111111 | 0.798122 | 0.324427 | 0 | 0 | 0 | 0 | 0.424242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cd33fb997d932e9651b3a4a601eb452df40b550 | 370 | py | Python | NestedLoops/SpecialNumbers.py | Mirkonito/Softuni-Python-Basic | 762b80ea1e0d087613925cde9a03312c83b78168 | [
"MIT"
] | 1 | 2020-09-22T13:25:34.000Z | 2020-09-22T13:25:34.000Z | NestedLoops/SpecialNumbers.py | Mirkonito/Softuni-Python-Basic | 762b80ea1e0d087613925cde9a03312c83b78168 | [
"MIT"
] | null | null | null | NestedLoops/SpecialNumbers.py | Mirkonito/Softuni-Python-Basic | 762b80ea1e0d087613925cde9a03312c83b78168 | [
"MIT"
] | 1 | 2020-10-17T09:27:46.000Z | 2020-10-17T09:27:46.000Z | number = int(input())
for numbers in range(1111, 9999):
is_Magic = True
number_as_string = str(numbers)
for digit in number_as_string:
if int(digit) == 0:
is_Magic = False
break
elif number % int(digit) != 0:
is_Magic = False
break
if is_Ma... | 28.461538 | 45 | 0.551351 | 49 | 370 | 3.959184 | 0.489796 | 0.14433 | 0.216495 | 0.113402 | 0.268041 | 0.268041 | 0.268041 | 0 | 0 | 0 | 0 | 0.041322 | 0.345946 | 370 | 13 | 45 | 28.461538 | 0.760331 | 0 | 0 | 0.307692 | 0 | 0 | 0.051213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cd49ebaea1513f51afa5fbff160017ddd106d58 | 1,028 | py | Python | pyscrap3/template/+package.name+/+package.name+/items.py | Zincr0/pyscrap3 | 2eaf03f3598953eddfd6df9de3ea85ee0b75d441 | [
"Apache-2.0"
] | 1 | 2015-01-17T13:16:25.000Z | 2015-01-17T13:16:25.000Z | pyscrap3/template/+package.name+/+package.name+/items.py | Zincr0/pyscrap3 | 2eaf03f3598953eddfd6df9de3ea85ee0b75d441 | [
"Apache-2.0"
] | null | null | null | pyscrap3/template/+package.name+/+package.name+/items.py | Zincr0/pyscrap3 | 2eaf03f3598953eddfd6df9de3ea85ee0b75d441 | [
"Apache-2.0"
] | null | null | null | #you may not use this file except in compliance with the License.
#You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#Unless required by applicable law or agreed to in writing, software
#distributed under the License is distributed on an "AS IS" BASIS,
#WITHOUT WARRANTIES OR CO... | 34.266667 | 73 | 0.727626 | 146 | 1,028 | 5.013699 | 0.671233 | 0.068306 | 0.040984 | 0.057377 | 0.087432 | 0.087432 | 0.087432 | 0 | 0 | 0 | 0 | 0.004837 | 0.195525 | 1,028 | 29 | 74 | 35.448276 | 0.88029 | 0.653697 | 0 | 0.363636 | 0 | 0 | 0.045732 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cd578165db56b96203e8e97a41fc891e99c158b | 850 | py | Python | lib/horizontal_lines.py | rafelafrance/boyd-bird-journal | 289744703220015cb61d22a8e6f8eff0040b296f | [
"MIT"
] | null | null | null | lib/horizontal_lines.py | rafelafrance/boyd-bird-journal | 289744703220015cb61d22a8e6f8eff0040b296f | [
"MIT"
] | 5 | 2017-11-02T17:12:31.000Z | 2021-04-21T19:07:39.000Z | lib/horizontal_lines.py | rafelafrance/boyd-bird-journal | 289744703220015cb61d22a8e6f8eff0040b296f | [
"MIT"
] | null | null | null | """Contains logic that is unique to the horizontal grid lines."""
from lib.grid_lines import GridLines
class Horizontal(GridLines):
"""Contains logic that is unique to the horizontal grid lines."""
def __init__(self, image):
"""Build horizontal grid lines."""
super().__init__(image)
... | 32.692308 | 74 | 0.645882 | 116 | 850 | 4.568966 | 0.448276 | 0.10566 | 0.107547 | 0.071698 | 0.184906 | 0.184906 | 0.184906 | 0.184906 | 0.184906 | 0.184906 | 0 | 0.024653 | 0.236471 | 850 | 25 | 75 | 34 | 0.791988 | 0.311765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cd582135ab7d44f2ce3fd5f31c437f5392bb7ee | 1,419 | py | Python | Testing/StatusChangerTest.py | crzdg/TrainControlSystem | b75fa98eef7fbbe7b7c9a2ffaade40e8a9346962 | [
"MIT"
] | 2 | 2020-08-13T09:16:25.000Z | 2020-08-13T16:41:46.000Z | Testing/StatusChangerTest.py | crzdg/TrainControlSystem | b75fa98eef7fbbe7b7c9a2ffaade40e8a9346962 | [
"MIT"
] | null | null | null | Testing/StatusChangerTest.py | crzdg/TrainControlSystem | b75fa98eef7fbbe7b7c9a2ffaade40e8a9346962 | [
"MIT"
] | null | null | null | import StatusChanger.StatusChanger as StatusChanger
from States.States import States
import unittest
class StatusChangerTest(unittest.TestCase):
def test_motor(self):
# start motor, slow
StatusChanger.status_changer(132)
self.assertTrue(States.MOTOR_STARTED)
self.assertTrue(States... | 30.191489 | 52 | 0.696265 | 153 | 1,419 | 6.228758 | 0.254902 | 0.103882 | 0.167891 | 0.136411 | 0.249738 | 0.202518 | 0.202518 | 0.202518 | 0.119622 | 0 | 0 | 0.020871 | 0.223397 | 1,419 | 47 | 53 | 30.191489 | 0.84392 | 0.051445 | 0 | 0.1875 | 0 | 0 | 0.005966 | 0 | 0 | 0 | 0 | 0 | 0.46875 | 1 | 0.125 | false | 0 | 0.09375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cdcb8f44c6e045cceed885a2032e200b8e88365 | 4,563 | py | Python | modules/User/UserServices.py | Ankush1122/TripIndia | 9e53c7327df872fcae5365a5f78c3f54acbd138d | [
"MIT"
] | 3 | 2022-01-20T06:15:55.000Z | 2022-02-22T11:41:45.000Z | modules/User/UserServices.py | Ankush1122/TripIndia | 9e53c7327df872fcae5365a5f78c3f54acbd138d | [
"MIT"
] | null | null | null | modules/User/UserServices.py | Ankush1122/TripIndia | 9e53c7327df872fcae5365a5f78c3f54acbd138d | [
"MIT"
] | 1 | 2022-03-11T01:24:44.000Z | 2022-03-11T01:24:44.000Z | from flask import session
from User import UserRepo
import bcrypt
from datetime import date
class UserServices:
def __init__(self, db) -> None:
self.db = UserRepo.Repo(db)
def login(self, user):
if('@' not in user.userid or len(user.userid) < 3):
return [False, "Invalid Email"]
... | 36.214286 | 113 | 0.582731 | 490 | 4,563 | 5.418367 | 0.255102 | 0.040678 | 0.030132 | 0.040678 | 0.34049 | 0.287759 | 0.221092 | 0.208286 | 0.155932 | 0.102448 | 0 | 0.009645 | 0.295639 | 4,563 | 125 | 114 | 36.504 | 0.816428 | 0 | 0 | 0.358491 | 0 | 0 | 0.138505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132075 | false | 0.216981 | 0.037736 | 0 | 0.433962 | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5cdfd7e1aeaff8d47ea33c610cb3c43f0e69f60b | 1,216 | py | Python | keylog_no_display.py | Reyogin/py-keylogger | 74d481864d2be8feafa19b1c3d533566326cda2d | [
"MIT"
] | null | null | null | keylog_no_display.py | Reyogin/py-keylogger | 74d481864d2be8feafa19b1c3d533566326cda2d | [
"MIT"
] | null | null | null | keylog_no_display.py | Reyogin/py-keylogger | 74d481864d2be8feafa19b1c3d533566326cda2d | [
"MIT"
] | null | null | null | from pynput.keyboard import Key, Listener
import logging
import datetime
import sys
log_file='/home/bertrand/Desktop/file_no_display.log'
logging.basicConfig(filename=log_file, level=logging.DEBUG, format='%(message)s')
message = ""
# stop = False
def on_press(key):
global message
if (hasattr(key, 'name')):
... | 27.636364 | 81 | 0.583059 | 142 | 1,216 | 4.943662 | 0.464789 | 0.049858 | 0.081197 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009368 | 0.297697 | 1,216 | 44 | 82 | 27.636364 | 0.812646 | 0.050164 | 0 | 0.243243 | 0 | 0 | 0.077257 | 0.036458 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.054054 | false | 0 | 0.108108 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a2548562ee5c125b5c6d758d30c09322862af85 | 1,989 | py | Python | tests/helpers/examples/failure_reasons/__init__.py | proofit404/userstories | aebfc088c8b7aab80a227e48e29be638411ffd86 | [
"BSD-2-Clause"
] | 187 | 2018-06-13T09:13:32.000Z | 2020-05-28T05:02:23.000Z | tests/helpers/examples/failure_reasons/__init__.py | supadrupa/stories | 3f1de66eae1216888eb5a7d2951013b8bbb4da25 | [
"BSD-2-Clause"
] | 426 | 2018-04-02T14:12:31.000Z | 2021-12-14T05:13:45.000Z | tests/helpers/examples/failure_reasons/__init__.py | proofit404/userstories | aebfc088c8b7aab80a227e48e29be638411ffd86 | [
"BSD-2-Clause"
] | 15 | 2018-11-03T09:03:38.000Z | 2020-05-10T17:16:47.000Z | from enum import Enum
from stories import story
# Base classes.
class ChildWithNull:
@story
def x(I):
I.one
class NextChildWithNull:
@story
def y(I):
I.two
class ParentWithNull:
@story
def a(I):
I.before
I.x
I.after
class SequenceParentWithNull:... | 12.75 | 60 | 0.535445 | 248 | 1,989 | 4.294355 | 0.185484 | 0.105164 | 0.067606 | 0.075117 | 0.4723 | 0.412207 | 0.325822 | 0.325822 | 0.325822 | 0.239437 | 0 | 0.016342 | 0.353947 | 1,989 | 155 | 61 | 12.832258 | 0.812451 | 0.017597 | 0 | 0.714286 | 0 | 0 | 0.025128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.019048 | 0 | 0.419048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a2d91a2be0463ad110f4e50fcc81532e82c1deb | 2,401 | py | Python | python/multi_view_learning/nn_leaveOneOut.py | thekingofkings/chicago-crime | 30550697402aa3a5a074096a0032b0c1e1264313 | [
"MIT"
] | 10 | 2016-11-08T04:31:06.000Z | 2021-07-28T15:17:52.000Z | python/multi_view_learning/nn_leaveOneOut.py | thekingofkings/chicago-crime | 30550697402aa3a5a074096a0032b0c1e1264313 | [
"MIT"
] | 24 | 2016-04-19T15:07:52.000Z | 2017-05-20T02:29:23.000Z | python/multi_view_learning/nn_leaveOneOut.py | thekingofkings/urban-flow-analysis | 30550697402aa3a5a074096a0032b0c1e1264313 | [
"MIT"
] | 5 | 2016-09-13T21:13:46.000Z | 2019-12-04T11:40:02.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Tensor flow NN model for leave-one-out evaluation.
Created on Fri Apr 7 14:25:01 2017
@author: hxw186
"""
import tensorflow as tf
import numpy as np
import sys
sys.path.append("../")
from feature_evaluation import build_features
def leaveOneOut_error(Y, D, P,... | 34.3 | 110 | 0.573928 | 330 | 2,401 | 4.048485 | 0.448485 | 0.011976 | 0.024701 | 0.031437 | 0.152695 | 0.055389 | 0.016467 | 0 | 0 | 0 | 0 | 0.024089 | 0.291129 | 2,401 | 69 | 111 | 34.797101 | 0.76087 | 0.329863 | 0 | 0 | 0 | 0 | 0.035438 | 0.013531 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.038462 | false | 0 | 0.153846 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a35bf0f4d9cc0c9d167afdd16979f69be3ead4a | 401 | py | Python | {{ cookiecutter.repo_name }}/{{cookiecutter.source_name}}/core/mixins/pickle_mixin.py | IngerMathilde/cookiecutter-data-science-dev | f0bec56aaf5b6b74b56241be47356fec957e34dc | [
"MIT"
] | 1 | 2022-01-18T22:52:10.000Z | 2022-01-18T22:52:10.000Z | {{ cookiecutter.repo_name }}/{{cookiecutter.source_name}}/core/mixins/pickle_mixin.py | IngerMathilde/cookiecutter-data-science-poetry-docker-makefile | f0bec56aaf5b6b74b56241be47356fec957e34dc | [
"MIT"
] | null | null | null | {{ cookiecutter.repo_name }}/{{cookiecutter.source_name}}/core/mixins/pickle_mixin.py | IngerMathilde/cookiecutter-data-science-poetry-docker-makefile | f0bec56aaf5b6b74b56241be47356fec957e34dc | [
"MIT"
] | null | null | null | import gzip
import pickle
class PickableMixin:
"""A mixins to make a class a pickable object"""
def dump(self, file_name: str) -> None:
with open('{}.pkl'.format(file_name), 'wb') as f:
pickle.dump(self, f)
@classmethod
def load(cls, file_name: str) -> 'PickableMixin':
wit... | 26.733333 | 57 | 0.600998 | 56 | 401 | 4.232143 | 0.535714 | 0.135021 | 0.092827 | 0.14346 | 0.21097 | 0.21097 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25187 | 401 | 14 | 58 | 28.642857 | 0.79 | 0.104738 | 0 | 0 | 0 | 0 | 0.082153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7a4859bc53bbe4a3b3dcad56a45d683fde79184d | 246 | py | Python | tests/runner/test_bobo3_profile.py | andyfase/awscfncli | 467297a93b74ac094202af980140f93b531800fd | [
"MIT"
] | 60 | 2017-01-16T09:52:36.000Z | 2021-09-07T23:27:01.000Z | tests/runner/test_bobo3_profile.py | andyfase/awscfncli | 467297a93b74ac094202af980140f93b531800fd | [
"MIT"
] | 103 | 2017-08-22T17:01:31.000Z | 2021-09-02T15:32:34.000Z | tests/runner/test_bobo3_profile.py | andyfase/awscfncli | 467297a93b74ac094202af980140f93b531800fd | [
"MIT"
] | 16 | 2017-08-22T16:24:11.000Z | 2021-06-30T11:45:51.000Z | from awscfncli2.runner import Boto3Profile
class TestStackSelector(object):
def test_update(self):
s1 = Boto3Profile('foo','bar')
s2 = Boto3Profile('foo', 'baz')
assert s1.region_name == 'bar'
s1.update(s2)
| 22.363636 | 42 | 0.634146 | 28 | 246 | 5.5 | 0.714286 | 0.194805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048128 | 0.239837 | 246 | 10 | 43 | 24.6 | 0.775401 | 0 | 0 | 0 | 0 | 0 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a53b57a7b74cbdc2de72cbc43f9edd1ac439064 | 5,251 | py | Python | mnist_TF_layers.py | hughkong/asstarer | ed331aa2b4c7665f10214117510cfee099216ede | [
"Apache-2.0"
] | 1 | 2021-06-20T11:44:05.000Z | 2021-06-20T11:44:05.000Z | mnist_TF_layers.py | hughkong/asstarer | ed331aa2b4c7665f10214117510cfee099216ede | [
"Apache-2.0"
] | null | null | null | mnist_TF_layers.py | hughkong/asstarer | ed331aa2b4c7665f10214117510cfee099216ede | [
"Apache-2.0"
] | 2 | 2020-04-12T10:52:11.000Z | 2021-02-23T14:06:58.000Z | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | 47.306306 | 126 | 0.754713 | 795 | 5,251 | 4.85283 | 0.359748 | 0.01633 | 0.032659 | 0.027994 | 0.131674 | 0.099015 | 0.075946 | 0.062727 | 0.031104 | 0.031104 | 0 | 0.024764 | 0.154066 | 5,251 | 111 | 127 | 47.306306 | 0.843764 | 0.358408 | 0 | 0.034483 | 0 | 0 | 0.018891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12069 | false | 0 | 0.172414 | 0.103448 | 0.413793 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
7a5631563abbee09e3dc6aba4770d276955ccd69 | 1,018 | py | Python | utils.py | yinziyan1206/nado_unit | 1b4f7ebbcbff05c8feafe1abbb9bd26fc1e3e75a | [
"MIT"
] | null | null | null | utils.py | yinziyan1206/nado_unit | 1b4f7ebbcbff05c8feafe1abbb9bd26fc1e3e75a | [
"MIT"
] | null | null | null | utils.py | yinziyan1206/nado_unit | 1b4f7ebbcbff05c8feafe1abbb9bd26fc1e3e75a | [
"MIT"
] | null | null | null | #!/usr/bin/python3
__author__ = 'ziyan.yin'
from threading import Lock
from typing import Dict
from .unit import units
locks: Dict[str, Lock] = dict()
def synchronized(func):
key = f"{repr(func)}"
if key not in locks:
locks[key] = Lock()
def wrapper(*args, **kwargs):
with locks[key]:
... | 20.36 | 80 | 0.590373 | 134 | 1,018 | 4.38806 | 0.402985 | 0.035714 | 0.054422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00955 | 0.279961 | 1,018 | 49 | 81 | 20.77551 | 0.792633 | 0.016699 | 0 | 0.121212 | 0 | 0 | 0.058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.515152 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7a565900a54a138a678990c731ee449abfbb87b7 | 7,107 | py | Python | code/satellite_shuffler.py | mjvakili/gambly | 611765bc42d8c42d76558b486c4025532155036a | [
"MIT"
] | 1 | 2016-01-29T20:57:07.000Z | 2016-01-29T20:57:07.000Z | code/satellite_shuffler.py | mjvakili/Gamble | 611765bc42d8c42d76558b486c4025532155036a | [
"MIT"
] | 2 | 2017-03-06T17:55:39.000Z | 2018-10-11T16:15:01.000Z | code/satellite_shuffler.py | mjvakili/Gamble | 611765bc42d8c42d76558b486c4025532155036a | [
"MIT"
] | null | null | null | '''
This is copied from Duncan Campbell's
galactic conformity repo:
https://github.com/duncandc/galactic_conformity/blob/d34499507558d90c68e50adb559aa3671d1cc420/mock/shuffling/make_satrel_shuffle_hearin_mocks.py
'''
import numpy as np
import h5py
import sys
from astropy.io import ascii
from astropy import table
def... | 52.257353 | 144 | 0.622485 | 1,051 | 7,107 | 3.978116 | 0.18078 | 0.04664 | 0.069122 | 0.045444 | 0.277685 | 0.235111 | 0.10763 | 0.064578 | 0.054054 | 0.024396 | 0 | 0.02872 | 0.240608 | 7,107 | 135 | 145 | 52.644444 | 0.74597 | 0.130716 | 0 | 0.018692 | 0 | 0 | 0.10253 | 0.021417 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046729 | null | null | 0.130841 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a5ee84e6d9c767a419743056d427e75818c7b96 | 5,957 | py | Python | bpg_file_size.py | yoshitomo-matsubara/supervised-compression | 6df52222c6407e8fac7d34d5e25b218910f686cf | [
"Apache-2.0"
] | 12 | 2021-11-02T00:38:47.000Z | 2022-03-15T12:57:03.000Z | bpg_file_size.py | yoshitomo-matsubara/supervised-compression | 6df52222c6407e8fac7d34d5e25b218910f686cf | [
"Apache-2.0"
] | null | null | null | bpg_file_size.py | yoshitomo-matsubara/supervised-compression | 6df52222c6407e8fac7d34d5e25b218910f686cf | [
"Apache-2.0"
] | 1 | 2022-02-22T06:53:35.000Z | 2022-02-22T06:53:35.000Z | import argparse
import os
import numpy as np
from torchdistill.datasets.transform import CustomCompose, CustomRandomResize
from torchdistill.datasets.util import load_coco_dataset, build_transform
from torchvision.datasets import ImageFolder, VOCSegmentation
from torchvision.transforms import transforms
from custom.t... | 44.789474 | 113 | 0.737787 | 791 | 5,957 | 5.14665 | 0.166877 | 0.119872 | 0.116188 | 0.185704 | 0.671334 | 0.642103 | 0.576026 | 0.404323 | 0.404323 | 0.404323 | 0 | 0.024825 | 0.161491 | 5,957 | 132 | 114 | 45.128788 | 0.78959 | 0 | 0 | 0.223214 | 0 | 0 | 0.136646 | 0.061272 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.071429 | 0 | 0.142857 | 0.026786 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a63ebc8faf56252bf51b4bbf71aad27de4c9ad0 | 5,492 | py | Python | postRunScripts/convergence.py | burks-pub/gecco2015 | 2a7e32381d2e978e52c824d8348cf106619bb795 | [
"BSD-2-Clause"
] | null | null | null | postRunScripts/convergence.py | burks-pub/gecco2015 | 2a7e32381d2e978e52c824d8348cf106619bb795 | [
"BSD-2-Clause"
] | null | null | null | postRunScripts/convergence.py | burks-pub/gecco2015 | 2a7e32381d2e978e52c824d8348cf106619bb795 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
import sys
import os
import re
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.lines import Line2D
import numpy as np
import scipy.stats as stats
#Matplotlib font stuff (for making figures with legible text)
font = {'size': '9'}
matplotlib.rc('font', **font)
#USE TYPE 1 FONTS!!
ma... | 28.604167 | 95 | 0.675346 | 761 | 5,492 | 4.856767 | 0.374507 | 0.00947 | 0.006494 | 0.011905 | 0.116342 | 0.0671 | 0.054113 | 0.042208 | 0.042208 | 0.042208 | 0 | 0.019323 | 0.199017 | 5,492 | 191 | 96 | 28.753927 | 0.820868 | 0.305171 | 0 | 0.148515 | 0 | 0 | 0.111465 | 0.013004 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.079208 | null | null | 0.019802 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a685330ea7dc697bfb2bb1cb1fdd5db2f1757dd | 938 | py | Python | build/platform/python/tests/test_common.py | jochenater/catboost | de2786fbc633b0d6ea6a23b3862496c6151b95c2 | [
"Apache-2.0"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | build/platform/python/tests/test_common.py | birichie/catboost | de75c6af12cf490700e76c22072fbdc15b35d679 | [
"Apache-2.0"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | build/platform/python/tests/test_common.py | birichie/catboost | de75c6af12cf490700e76c22072fbdc15b35d679 | [
"Apache-2.0"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | import subprocess
import pytest
from build.platform.python.tests import testlib
PYTHON_VERSIONS = ["2.7", "3.4", "3.5", "3.6"] # 3.7, 3.8 are not runnable
@pytest.mark.parametrize("pyver", PYTHON_VERSIONS)
def test_version_matched(pyver):
testlib.check_python_version(pyver)
@pytest.mark.parametrize("pyver",... | 29.3125 | 87 | 0.678038 | 127 | 938 | 4.834646 | 0.433071 | 0.091205 | 0.102606 | 0.127036 | 0.350163 | 0.350163 | 0.350163 | 0.249186 | 0.172638 | 0 | 0 | 0.034308 | 0.160981 | 938 | 31 | 88 | 30.258065 | 0.74587 | 0.026652 | 0 | 0.136364 | 0 | 0 | 0.1427 | 0.023052 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.136364 | false | 0 | 0.363636 | 0 | 0.5 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7a6ff3a5dd2da7887cb19a6ed2c1752b6e82d6cc | 2,834 | py | Python | src/score.py | alexwarstadt/phrase-analogies-large-vae | 2d5734ebdcdee916038f4654fd1a9339df3d2273 | [
"MIT"
] | 1 | 2021-04-22T14:52:10.000Z | 2021-04-22T14:52:10.000Z | src/score.py | alexwarstadt/phrase-analogies-large-vae | 2d5734ebdcdee916038f4654fd1a9339df3d2273 | [
"MIT"
] | 1 | 2021-04-26T22:28:42.000Z | 2021-04-28T19:09:11.000Z | src/score.py | alexwarstadt/phrase-analogies-large-vae | 2d5734ebdcdee916038f4654fd1a9339df3d2273 | [
"MIT"
] | 1 | 2021-08-06T14:55:16.000Z | 2021-08-06T14:55:16.000Z | import re
from nltk.translate import bleu_score as nltkbleu
from typing import List, Optional
import nli
def exact_calc(output, pred):
try:
assert isinstance(output, str) and isinstance(pred, str)
except AssertionError:
print("Error: Trying to compare {} and {}".format(output, pred))
... | 34.144578 | 113 | 0.673606 | 388 | 2,834 | 4.822165 | 0.407216 | 0.016034 | 0.029931 | 0.032068 | 0.35489 | 0.35489 | 0.35489 | 0.35489 | 0.35489 | 0.35489 | 0 | 0.015639 | 0.210303 | 2,834 | 82 | 114 | 34.560976 | 0.820375 | 0.402258 | 0 | 0.190476 | 0 | 0 | 0.068027 | 0.022263 | 0 | 0 | 0 | 0.012195 | 0.095238 | 1 | 0.142857 | false | 0 | 0.095238 | 0 | 0.428571 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a77403338ee31e5e87171f17d753b2434e4a1a1 | 7,341 | py | Python | appengine/findit/waterfall/try_job_util.py | eunchong/infra | ce3728559112bfb3e8b32137eada517aec6d22f9 | [
"BSD-3-Clause"
] | null | null | null | appengine/findit/waterfall/try_job_util.py | eunchong/infra | ce3728559112bfb3e8b32137eada517aec6d22f9 | [
"BSD-3-Clause"
] | null | null | null | appengine/findit/waterfall/try_job_util.py | eunchong/infra | ce3728559112bfb3e8b32137eada517aec6d22f9 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
from google.appengine.ext import ndb
from common import appengine_util
from common import constants
from model import analysis_status
from m... | 38.434555 | 80 | 0.721428 | 967 | 7,341 | 5.155119 | 0.196484 | 0.055366 | 0.071615 | 0.088465 | 0.410431 | 0.330592 | 0.247944 | 0.234704 | 0.221063 | 0.211434 | 0 | 0.001026 | 0.203378 | 7,341 | 190 | 81 | 38.636842 | 0.851402 | 0.156246 | 0 | 0.29927 | 0 | 0.007299 | 0.081397 | 0 | 0 | 0 | 0 | 0.005263 | 0 | 1 | 0.036496 | false | 0.10219 | 0.065693 | 0 | 0.175182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7a7e76d080d012d4a75a0317b71ab3a4be2a2138 | 269 | py | Python | src/boiga/util.py | amarshall/boiga | faef732a59b7308b0f3be0d1d1ea047a405d641d | [
"MIT"
] | 2 | 2018-10-30T13:17:23.000Z | 2018-11-19T06:39:49.000Z | src/boiga/util.py | amarshall/boiga | faef732a59b7308b0f3be0d1d1ea047a405d641d | [
"MIT"
] | 2 | 2020-03-24T16:15:45.000Z | 2020-03-31T00:02:27.000Z | src/boiga/util.py | amarshall/boiga | faef732a59b7308b0f3be0d1d1ea047a405d641d | [
"MIT"
] | null | null | null | import typing as T
_T = T.TypeVar('_T')
class _Container(T.Generic[_T]):
_value: _T
def __eq__(self, other: object) -> bool:
if isinstance(other, self.__class__):
return self._value == other._value
else:
return False
| 19.214286 | 46 | 0.594796 | 34 | 269 | 4.235294 | 0.588235 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29368 | 269 | 13 | 47 | 20.692308 | 0.757895 | 0 | 0 | 0 | 0 | 0 | 0.007435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7a84f01ca428f54ff44dff96ff54b827f508dc48 | 3,179 | py | Python | src/parse_settings.py | ChillerDragon-backup/TeeworldsEconMod | d41560104f79ebbeea2b9e6227ae7e93c1a90ec2 | [
"MIT"
] | 5 | 2019-05-04T00:48:12.000Z | 2021-02-22T11:03:19.000Z | src/parse_settings.py | ChillerDragon-backup/TeeworldsEconMod | d41560104f79ebbeea2b9e6227ae7e93c1a90ec2 | [
"MIT"
] | 41 | 2019-04-04T16:04:14.000Z | 2022-01-24T20:35:20.000Z | src/parse_settings.py | ChillerDragon-backup/TeeworldsEconMod | d41560104f79ebbeea2b9e6227ae7e93c1a90ec2 | [
"MIT"
] | 1 | 2018-11-04T20:16:28.000Z | 2018-11-04T20:16:28.000Z | #!/usr/bin/env python3
"""Module for parsing tem setting files"""
from base.rcon import echo
import base.settings
class TemParseError(Exception):
"""Tem Parser Exception"""
def __init__(self, value):
Exception.__init__(self)
self.value = value
def __str__(self):
return repr(self.va... | 34.934066 | 97 | 0.587921 | 420 | 3,179 | 4.27381 | 0.240476 | 0.133705 | 0.144847 | 0.160446 | 0.261838 | 0.13649 | 0.073538 | 0 | 0 | 0 | 0 | 0.01146 | 0.258886 | 3,179 | 90 | 98 | 35.322222 | 0.750424 | 0.119534 | 0 | 0.128571 | 0 | 0 | 0.068677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.028571 | 0.014286 | 0.271429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a8afbf7a5a5a3530cfe29a371a839efa2a02e4a | 491 | py | Python | Exemples cours 5/pointOBJ.py | geocot/coursPython | 74f634a96146c2244f859b9d449534330d9542fb | [
"Apache-2.0"
] | null | null | null | Exemples cours 5/pointOBJ.py | geocot/coursPython | 74f634a96146c2244f859b9d449534330d9542fb | [
"Apache-2.0"
] | null | null | null | Exemples cours 5/pointOBJ.py | geocot/coursPython | 74f634a96146c2244f859b9d449534330d9542fb | [
"Apache-2.0"
] | null | null | null | class Point:
"Classe Point géographique contenant une position"
def __init__(self,x,y):
self._x=x
self._y=y
def getx(self):
return self._x
def gety(self):
return self._y
def setx(self, x):
self._x = x
def sety(self, y):
self._y = y
... | 19.64 | 55 | 0.535642 | 68 | 491 | 3.691176 | 0.352941 | 0.119522 | 0.047809 | 0.071713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027864 | 0.342159 | 491 | 24 | 56 | 20.458333 | 0.749226 | 0.09776 | 0 | 0.2 | 0 | 0 | 0.103226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.1 | 0.45 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a8b9bc8c83018223580b28db60854c71ccc69e4 | 1,826 | py | Python | fabfile.py | zzz123-tech/zhanzhenblog | 0faafe4f1977b4d42bc9c5b992ab7f42bf3bfe0d | [
"MIT"
] | null | null | null | fabfile.py | zzz123-tech/zhanzhenblog | 0faafe4f1977b4d42bc9c5b992ab7f42bf3bfe0d | [
"MIT"
] | 5 | 2021-04-08T19:40:57.000Z | 2021-09-22T19:40:18.000Z | fabfile.py | zzz123-tech/zhanzhenblog | 0faafe4f1977b4d42bc9c5b992ab7f42bf3bfe0d | [
"MIT"
] | null | null | null | from fabric import task
from invoke import Responder
from _credentials import github_username, github_password
def _get_github_auth_responders():
"""
返回 GitHub 用户名密码自动填充器
"""
username_responder = Responder(
pattern="Username for 'https://github.com':",
r... | 38.041667 | 120 | 0.535597 | 174 | 1,826 | 5.413793 | 0.390805 | 0.025478 | 0.029724 | 0.048832 | 0.305732 | 0.305732 | 0.259023 | 0.129512 | 0.129512 | 0.129512 | 0 | 0 | 0.366375 | 1,826 | 47 | 121 | 38.851064 | 0.814175 | 0.039978 | 0 | 0.1875 | 0 | 0 | 0.20058 | 0.045217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.15625 | 0.09375 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7a8cb2e77bc04acf83fe78c12ebe944bd64c7b64 | 396 | py | Python | user/migrations/0009_user_website.py | kthaisse/website | be0d0e0763ae2a6b8351c08b432229eae9521f1d | [
"MIT"
] | 1 | 2020-03-19T09:44:16.000Z | 2020-03-19T09:44:16.000Z | user/migrations/0009_user_website.py | kthaisse/website | be0d0e0763ae2a6b8351c08b432229eae9521f1d | [
"MIT"
] | 43 | 2020-02-22T09:32:27.000Z | 2022-03-22T11:24:51.000Z | user/migrations/0009_user_website.py | kthaisse/website | be0d0e0763ae2a6b8351c08b432229eae9521f1d | [
"MIT"
] | 3 | 2020-03-06T13:27:12.000Z | 2022-02-07T09:01:07.000Z | # Generated by Django 2.2.10 on 2020-04-04 17:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("user", "0008_user_picture_restrictions")]
operations = [
migrations.AddField(
model_name="user",
name="website",
fie... | 23.294118 | 74 | 0.633838 | 46 | 396 | 5.347826 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077441 | 0.25 | 396 | 16 | 75 | 24.75 | 0.750842 | 0.116162 | 0 | 0 | 1 | 0 | 0.12931 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a9163686720b28ba98796c68d0cd6e016ed9e64 | 1,637 | py | Python | binary_for_search.py | jorgeMorfinezM/binary_search_algorithms | 75a4f6febe6ffddbaa09aa10c87ba76027cd7af3 | [
"Apache-2.0"
] | null | null | null | binary_for_search.py | jorgeMorfinezM/binary_search_algorithms | 75a4f6febe6ffddbaa09aa10c87ba76027cd7af3 | [
"Apache-2.0"
] | null | null | null | binary_for_search.py | jorgeMorfinezM/binary_search_algorithms | 75a4f6febe6ffddbaa09aa10c87ba76027cd7af3 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Algoritmo de busqueda binaria usando el ciclo while
escrito en Python.
Este metodo funciona con cadenas y numeros por igual, ya
que el lenguaje trata a las cadenas lexicograficamente;
comparando sus valores en el codigo ASCII
"""
def binary_search(list_data, search_data):
left_index,... | 25.184615 | 83 | 0.6854 | 231 | 1,637 | 4.649351 | 0.367965 | 0.102421 | 0.065177 | 0.067039 | 0.336127 | 0.336127 | 0.310056 | 0.310056 | 0.310056 | 0.231844 | 0 | 0.024409 | 0.199145 | 1,637 | 65 | 84 | 25.184615 | 0.794813 | 0.229078 | 0 | 0.222222 | 0 | 0 | 0.191283 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.037037 | false | 0 | 0 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a916a9d126a25799ce3473d1cbc7c356c7ec1da | 353 | py | Python | ressources/migrations/0005_auto_20200804_2357.py | rollanda21/Genetic-algorithm-for-time-table-generation | fb1ab13ab54da1a5d0582787baa2c444a9a838db | [
"MIT"
] | null | null | null | ressources/migrations/0005_auto_20200804_2357.py | rollanda21/Genetic-algorithm-for-time-table-generation | fb1ab13ab54da1a5d0582787baa2c444a9a838db | [
"MIT"
] | null | null | null | ressources/migrations/0005_auto_20200804_2357.py | rollanda21/Genetic-algorithm-for-time-table-generation | fb1ab13ab54da1a5d0582787baa2c444a9a838db | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-08-04 22:57
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ressources', '0004_auto_20200731_1630'),
]
operations = [
migrations.AlterModelOptions(
name='meetingtime',
options={'orderi... | 19.611111 | 50 | 0.594901 | 35 | 353 | 5.914286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121569 | 0.27762 | 353 | 17 | 51 | 20.764706 | 0.690196 | 0.127479 | 0 | 0 | 1 | 0 | 0.179739 | 0.075163 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a9c270af83981606714f4300077542e6e870eab | 378 | py | Python | archive/migrations/0007_auto_20190715_0559.py | emawind84/rrwebtv | ae22cd39ea430aed0de2b852e40c309465a7237b | [
"MIT"
] | null | null | null | archive/migrations/0007_auto_20190715_0559.py | emawind84/rrwebtv | ae22cd39ea430aed0de2b852e40c309465a7237b | [
"MIT"
] | 2 | 2020-06-05T20:13:36.000Z | 2021-06-10T21:18:43.000Z | archive/migrations/0007_auto_20190715_0559.py | emawind84/rrwebtv | ae22cd39ea430aed0de2b852e40c309465a7237b | [
"MIT"
] | null | null | null | # Generated by Django 2.0.13 on 2019-07-15 05:59
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('archive', '0006_performance_featured'),
]
operations = [
migrations.RenameField(
model_name='performance',
old_name='pilot_... | 19.894737 | 49 | 0.600529 | 39 | 378 | 5.666667 | 0.794872 | 0.081448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074627 | 0.291005 | 378 | 18 | 50 | 21 | 0.75 | 0.121693 | 0 | 0 | 1 | 0 | 0.187879 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7aa00615c0b94b6e49a52a8d141fa1c7aa174f50 | 2,089 | py | Python | Week1/main.py | EricCharnesky/CIS2001-Winter2022 | 9c74433ade96e4c7bf9029543285f1ded1fe91e5 | [
"MIT"
] | 3 | 2022-01-20T21:55:17.000Z | 2022-02-02T23:10:45.000Z | Week1/main.py | EricCharnesky/CIS2001-Winter2022 | 9c74433ade96e4c7bf9029543285f1ded1fe91e5 | [
"MIT"
] | null | null | null | Week1/main.py | EricCharnesky/CIS2001-Winter2022 | 9c74433ade96e4c7bf9029543285f1ded1fe91e5 | [
"MIT"
] | 2 | 2022-02-06T02:59:32.000Z | 2022-02-23T02:34:13.000Z | import random
value_a = int(input("enter the first number"))
value_b = int(input("enter the second number"))
value_c = int(input("enter the third number"))
print(value_b + value_a + value_c)
list_of_numbers = []
for number in range(100):
list_of_numbers.append(random.randint(1,100)) # inclusive of both values
... | 31.651515 | 191 | 0.713739 | 316 | 2,089 | 4.515823 | 0.313291 | 0.096706 | 0.20953 | 0.088297 | 0.284513 | 0.194814 | 0.17239 | 0.17239 | 0.12754 | 0 | 0 | 0.028377 | 0.156534 | 2,089 | 65 | 192 | 32.138462 | 0.781498 | 0.145524 | 0 | 0.085106 | 0 | 0 | 0.15748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.021277 | 0.191489 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7aa7b397c8a186c0ba8a769562764b679d11f2b9 | 3,613 | py | Python | train.py | Unique-Divine/Neural-Networks-for-Gravitational-Lens-Modeling | cd64ceda84bdd1486ad17585074ba8c7a0576ab5 | [
"MIT"
] | null | null | null | train.py | Unique-Divine/Neural-Networks-for-Gravitational-Lens-Modeling | cd64ceda84bdd1486ad17585074ba8c7a0576ab5 | [
"MIT"
] | null | null | null | train.py | Unique-Divine/Neural-Networks-for-Gravitational-Lens-Modeling | cd64ceda84bdd1486ad17585074ba8c7a0576ab5 | [
"MIT"
] | null | null | null | ############### OPTIMIZER:
learning_rate = 1e-6
train_step = tf.train.AdamOptimizer(learning_rate).minimize(
MeanSquareCost, var_list=train_pars)
##########################
num_batch_samples = 50
num_iterations = 1
min_eval_cost = 0.06
X = np.zeros((cycle_batch_size, numpix_side*numpix_side), dtype='float32')... | 38.849462 | 80 | 0.562137 | 505 | 3,613 | 3.736634 | 0.261386 | 0.055114 | 0.025437 | 0.028617 | 0.293588 | 0.212507 | 0.144144 | 0.077901 | 0.077901 | 0.077901 | 0 | 0.043513 | 0.313036 | 3,613 | 92 | 81 | 39.271739 | 0.716761 | 0.060614 | 0 | 0.054054 | 0 | 0.013514 | 0.058261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.094595 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7aaa78c4723caeac3fb5b1b2b9fe69e555ed2d5d | 654 | py | Python | instructors/course-2015/errors_and_introspection/project/primesieve1.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 46 | 2017-09-27T20:19:36.000Z | 2020-12-08T10:07:19.000Z | instructors/course-2015/errors_and_introspection/project/primesieve1.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 6 | 2018-01-09T08:07:37.000Z | 2020-09-07T12:25:13.000Z | instructors/course-2015/errors_and_introspection/project/primesieve1.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 18 | 2017-10-10T02:06:51.000Z | 2019-12-01T10:18:13.000Z | """
Sieve of Erasmus - Prime Sieve
Goal: Find the first n primes
What we know:
For a given integer, take every integer between 1 and itself.
Test itself modulo that integer. If results is zero, then it is nonprime.
If none of these modulo give zero, then it is prime.
"""
# range will include the first... | 17.210526 | 77 | 0.637615 | 106 | 654 | 3.811321 | 0.518868 | 0.05198 | 0.081683 | 0.059406 | 0.123762 | 0.123762 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.276758 | 654 | 37 | 78 | 17.675676 | 0.830867 | 0.102446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7aab6b0db7e62b035b739900d595c37d109328d7 | 824 | py | Python | events/migrations/0003_event_color.py | jjorissen52/golf_site2 | bcadd35f8386a20e532769cadf93eed6cea304fa | [
"MIT"
] | null | null | null | events/migrations/0003_event_color.py | jjorissen52/golf_site2 | bcadd35f8386a20e532769cadf93eed6cea304fa | [
"MIT"
] | 7 | 2019-10-21T21:55:23.000Z | 2021-06-08T19:43:12.000Z | events/migrations/0003_event_color.py | jjorissen52/golf-site | 4050f4518daf4c5b058f7fc38702a153021c2e1b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2017-11-04 03:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('events', '0002_auto_20171103_2212'),
]
operations = [
migrations.AddField(
... | 39.238095 | 428 | 0.565534 | 85 | 824 | 5.364706 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159463 | 0.18568 | 824 | 20 | 429 | 41.2 | 0.520119 | 0.082524 | 0 | 0 | 1 | 0 | 0.313413 | 0.030544 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ab3d8c6fd521a3eb09a2a807ea3c5f59c26bd3d | 692 | py | Python | pavo_cristatus/tests/interactions_tests/test_non_annotated_project_loader_interaction.py | MATTHEWFRAZER/pavo_cristatus | a4b96c0eb6c454fbe38d2092e29f63457a4ee955 | [
"MIT"
] | null | null | null | pavo_cristatus/tests/interactions_tests/test_non_annotated_project_loader_interaction.py | MATTHEWFRAZER/pavo_cristatus | a4b96c0eb6c454fbe38d2092e29f63457a4ee955 | [
"MIT"
] | null | null | null | pavo_cristatus/tests/interactions_tests/test_non_annotated_project_loader_interaction.py | MATTHEWFRAZER/pavo_cristatus | a4b96c0eb6c454fbe38d2092e29f63457a4ee955 | [
"MIT"
] | null | null | null | import os
from pavo_cristatus.interactions.non_annotated_project_loader_interaction.non_annotated_project_loader_interaction import interact
from pavo_cristatus.interactions.pavo_cristatus_status import PavoCristatusStatus
unit_test_path = os.path.split(__file__)[0]
project_root_path = os.path.normpath(os.path.join(u... | 46.133333 | 130 | 0.812139 | 90 | 692 | 5.8 | 0.444444 | 0.074713 | 0.126437 | 0.189655 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001575 | 0.08237 | 692 | 14 | 131 | 49.428571 | 0.820472 | 0 | 0 | 0 | 0 | 0 | 0.067919 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ab5d3886e481d9fd30cc1cfa29570356f13d910 | 945 | py | Python | book_env/Lib/site-packages/pandas_datareader/tests/test_base.py | als0052/Hands-On-Data-Analysis-with-Pandas | ea4e94f93a1e00cbccb493f22dde5c8007ed5e76 | [
"MIT"
] | 1 | 2018-01-11T14:11:40.000Z | 2018-01-11T14:11:40.000Z | book_env/Lib/site-packages/pandas_datareader/tests/test_base.py | als0052/Hands-On-Data-Analysis-with-Pandas | ea4e94f93a1e00cbccb493f22dde5c8007ed5e76 | [
"MIT"
] | 12 | 2020-06-06T01:22:26.000Z | 2022-03-12T00:13:42.000Z | book_env/Lib/site-packages/pandas_datareader/tests/test_base.py | als0052/Hands-On-Data-Analysis-with-Pandas | ea4e94f93a1e00cbccb493f22dde5c8007ed5e76 | [
"MIT"
] | 5 | 2018-05-19T05:08:51.000Z | 2021-04-29T16:03:45.000Z | import pytest
import requests
import pandas_datareader.base as base
class TestBaseReader(object):
def test_requests_not_monkey_patched(self):
assert not hasattr(requests.Session(), 'stor')
def test_valid_retry_count(self):
with pytest.raises(ValueError):
base._BaseReader([], retr... | 28.636364 | 54 | 0.660317 | 105 | 945 | 5.647619 | 0.447619 | 0.059022 | 0.134907 | 0.134907 | 0.382799 | 0.317032 | 0.317032 | 0.168634 | 0 | 0 | 0 | 0.001389 | 0.238095 | 945 | 32 | 55 | 29.53125 | 0.822222 | 0 | 0 | 0.208333 | 0 | 0 | 0.038095 | 0.027513 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.208333 | false | 0 | 0.125 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ab71be8f87ed1d659c3f47a1fed46f77be7dcc7 | 1,387 | py | Python | run.py | ITJoker233/RaspberryPiWebSDK | ae24ec9a84ed34efcccca59055bdf097a42c3409 | [
"MIT"
] | 4 | 2020-11-15T05:38:02.000Z | 2022-03-07T12:19:37.000Z | run.py | ITJoker233/RaspberryPiWebSDK | ae24ec9a84ed34efcccca59055bdf097a42c3409 | [
"MIT"
] | null | null | null | run.py | ITJoker233/RaspberryPiWebSDK | ae24ec9a84ed34efcccca59055bdf097a42c3409 | [
"MIT"
] | null | null | null | import uvicorn
from datetime import datetime
from typing import List, Optional
from fastapi import FastAPI
from fastapi.encoders import jsonable_encoder
from fastapi.responses import JSONResponse
from pydantic import BaseModel, EmailStr
app = FastAPI()
_version_ = '1.0.0'
class baseRequest(BaseModel):
... | 27.196078 | 114 | 0.669791 | 166 | 1,387 | 5.439759 | 0.385542 | 0.008859 | 0.083056 | 0.099668 | 0.233666 | 0.06423 | 0.06423 | 0 | 0 | 0 | 0 | 0.010526 | 0.178082 | 1,387 | 51 | 115 | 27.196078 | 0.781579 | 0.05912 | 0 | 0 | 0 | 0 | 0.19378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.184211 | 0 | 0.552632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7ab8a9c5276a11c96afe25603d9046739df569e8 | 605 | py | Python | python/show_spec.py | nox-410/MusicAndMathClassProject | 457e800b05dcf1595f97e359f75d14bf1fcc35d4 | [
"Apache-2.0"
] | null | null | null | python/show_spec.py | nox-410/MusicAndMathClassProject | 457e800b05dcf1595f97e359f75d14bf1fcc35d4 | [
"Apache-2.0"
] | null | null | null | python/show_spec.py | nox-410/MusicAndMathClassProject | 457e800b05dcf1595f97e359f75d14bf1fcc35d4 | [
"Apache-2.0"
] | null | null | null | import sys
import numpy as np
from PIL import Image
def spec_to_png(in_path, out_path):
specgram = np.load(in_path) # (channels, bins, frames)
specgram = specgram[0]
specgram = np.log2(specgram)
specgram = specgram.sum(1)[:, np.newaxis]
specgram = np.repeat(specgram, 128, axis=1)
smax, smin =... | 28.809524 | 59 | 0.672727 | 87 | 605 | 4.494253 | 0.494253 | 0.245524 | 0.046036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026423 | 0.186777 | 605 | 20 | 60 | 30.25 | 0.768293 | 0.039669 | 0 | 0 | 0 | 0 | 0.013817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7abe28c365aac27b7165b4ab17f3803fad4552ae | 7,075 | py | Python | EDA_T-20WorldCup.py | Saurabh2509/T-20_World_Cup_EDA | 39c236b97f48155a535b0b0c7730eb70d020c261 | [
"MIT"
] | null | null | null | EDA_T-20WorldCup.py | Saurabh2509/T-20_World_Cup_EDA | 39c236b97f48155a535b0b0c7730eb70d020c261 | [
"MIT"
] | null | null | null | EDA_T-20WorldCup.py | Saurabh2509/T-20_World_Cup_EDA | 39c236b97f48155a535b0b0c7730eb70d020c261 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# ## Exploratory_Data_Analysis
# In[4]:
Image("E:\DataScience\Data_Center\T_20_World_cup_data\ICC_Men's_T20_World_Cup_2021.png")
# In[1]:
pwd
# In[2]:
import os
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_style('darkgrid')
import plotly.express as px
... | 14.15 | 141 | 0.642686 | 1,065 | 7,075 | 4.124883 | 0.271362 | 0.015934 | 0.032779 | 0.027089 | 0.390394 | 0.338721 | 0.319372 | 0.281129 | 0.233326 | 0.208058 | 0 | 0.041716 | 0.159717 | 7,075 | 499 | 142 | 14.178357 | 0.697225 | 0.125371 | 0 | 0.214286 | 0 | 0 | 0.272951 | 0.045902 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064935 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f8bac00504c5bb434251bf0a0ab45ac3d403096 | 217 | py | Python | Desafios/AULA/2.1 Boliche com Tio Rubs.py | evertonROY/Python | b64f98e52700a4f1f4212400b69c9d6d080c8f88 | [
"MIT"
] | null | null | null | Desafios/AULA/2.1 Boliche com Tio Rubs.py | evertonROY/Python | b64f98e52700a4f1f4212400b69c9d6d080c8f88 | [
"MIT"
] | null | null | null | Desafios/AULA/2.1 Boliche com Tio Rubs.py | evertonROY/Python | b64f98e52700a4f1f4212400b69c9d6d080c8f88 | [
"MIT"
] | null | null | null | '''
a = qtd pistas 1
b = qtd pessoas por pistas 9
c = qtd alunos 4
'''
A, B, C = [int(x) for x in input().split()]
if (A*B) > C:
print("S")
else:
print("N")
| 16.692308 | 43 | 0.400922 | 33 | 217 | 2.636364 | 0.666667 | 0.045977 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02459 | 0.437788 | 217 | 12 | 44 | 18.083333 | 0.688525 | 0.493088 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f8efc2310eeea2e384d88b51c3b58442b2b2f34 | 809 | py | Python | src/comexio_http/tag.py | sanderd17/comexio-http-api | 08580f118365e50b9473bb3437158baff1e07c8b | [
"MIT"
] | null | null | null | src/comexio_http/tag.py | sanderd17/comexio-http-api | 08580f118365e50b9473bb3437158baff1e07c8b | [
"MIT"
] | null | null | null | src/comexio_http/tag.py | sanderd17/comexio-http-api | 08580f118365e50b9473bb3437158baff1e07c8b | [
"MIT"
] | null | null | null | from .auth import Auth
class Tag:
"""
Abstract Comexio tag,
Address is a dictionary that defines the data point in one of the following formats:
{
ext: "IO-Server",
io: "Q1",
}
{
marker: "M1"
}
{
onewire: "OT1"
}
"""
def __init__(self, address: dict, auth: Aut... | 23.794118 | 96 | 0.611867 | 110 | 809 | 4.418182 | 0.5 | 0.090535 | 0.049383 | 0.082305 | 0.152263 | 0.152263 | 0.152263 | 0 | 0 | 0 | 0 | 0.008224 | 0.248455 | 809 | 33 | 97 | 24.515152 | 0.791118 | 0.311496 | 0 | 0 | 0 | 0 | 0.056842 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f9bccca00ad377e38355adc4cdf7e077d4479ca | 1,880 | py | Python | events/urls/my.py | Ben-Peters/lnldb | 4264ce52e85c20fe1e964f9e36aa4289b0e7e3c7 | [
"MIT"
] | null | null | null | events/urls/my.py | Ben-Peters/lnldb | 4264ce52e85c20fe1e964f9e36aa4289b0e7e3c7 | [
"MIT"
] | null | null | null | events/urls/my.py | Ben-Peters/lnldb | 4264ce52e85c20fe1e964f9e36aa4289b0e7e3c7 | [
"MIT"
] | null | null | null | from django.conf.urls import include, url
from django.contrib.auth.decorators import login_required
from .. import views
app_name = 'lnldb'
# prefix: /my/
urlpatterns = [
url(r'^workorders/$', views.my.mywo, name="workorders"),
url(r'^workorders/attach/(?P<id>[0-9]+)/$', views.flow.assignattach_external, nam... | 42.727273 | 103 | 0.589362 | 267 | 1,880 | 4.097378 | 0.273408 | 0.073126 | 0.036563 | 0.076782 | 0.159049 | 0.107861 | 0.06947 | 0 | 0 | 0 | 0 | 0.015296 | 0.165426 | 1,880 | 43 | 104 | 43.72093 | 0.681963 | 0.032447 | 0 | 0.060606 | 0 | 0 | 0.344163 | 0.190529 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f9d366bd7ef0370059c3ee36ddc5d684a58e7bd | 3,463 | py | Python | python/compute_bayes_factors.py | CardiacModelling/PyHillFit | 91a9b5dd3a9455dbf0f3a2ea4785402925fab26b | [
"BSD-3-Clause"
] | 9 | 2016-11-21T13:38:59.000Z | 2021-11-16T04:03:57.000Z | python/compute_bayes_factors.py | CardiacModelling/PyHillFit | 91a9b5dd3a9455dbf0f3a2ea4785402925fab26b | [
"BSD-3-Clause"
] | 1 | 2017-02-27T23:11:54.000Z | 2017-07-31T17:55:25.000Z | python/compute_bayes_factors.py | CardiacModelling/PyHillFit | 91a9b5dd3a9455dbf0f3a2ea4785402925fab26b | [
"BSD-3-Clause"
] | 2 | 2020-04-06T11:45:05.000Z | 2020-12-17T16:50:04.000Z | import doseresponse as dr
import numpy as np
from glob import glob
import itertools as it
import os
import argparse
import sys
import multiprocessing as mp
def compute_log_py_approxn(temp):
print temp
drug,channel,chain_file,images_dir = dr.nonhierarchical_chain_file_and_figs_dir(m, top_drug, top_channel, tem... | 33.298077 | 153 | 0.688132 | 533 | 3,463 | 4.253283 | 0.290807 | 0.021173 | 0.013233 | 0.025143 | 0.145567 | 0.093516 | 0.057345 | 0.057345 | 0.057345 | 0.057345 | 0 | 0.014998 | 0.172105 | 3,463 | 103 | 154 | 33.621359 | 0.775724 | 0.085764 | 0 | 0 | 0 | 0 | 0.079239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.103896 | null | null | 0.077922 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f9e79d289f9458ec61d577f158e33314ed0402c | 4,520 | py | Python | nb/nbexp_bilibili.py | xsthunder/rss-reborn | d1bff6cefddd2e6f33af8c7c5e5939e880dc0034 | [
"MIT"
] | 2 | 2020-03-03T15:43:10.000Z | 2020-03-03T16:25:56.000Z | nb/nbexp_bilibili.py | xsthunder/rss-reborn | d1bff6cefddd2e6f33af8c7c5e5939e880dc0034 | [
"MIT"
] | null | null | null | nb/nbexp_bilibili.py | xsthunder/rss-reborn | d1bff6cefddd2e6f33af8c7c5e5939e880dc0034 | [
"MIT"
] | null | null | null |
#################################################
### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ###
#################################################
# file to edit: ./bilibili.ipynb
from nbexp_personal import sendEmail
def itemgetter(*args):
g = operator.itemgetter(*args)
def f(*args2):
return dict(... | 24.565217 | 90 | 0.58031 | 603 | 4,520 | 4.208955 | 0.301824 | 0.01379 | 0.014184 | 0.016548 | 0.040583 | 0.034673 | 0 | 0 | 0 | 0 | 0 | 0.007323 | 0.24469 | 4,520 | 184 | 91 | 24.565217 | 0.736087 | 0.098451 | 0 | 0.057851 | 1 | 0 | 0.143221 | 0.016026 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140496 | false | 0 | 0.082645 | 0.008264 | 0.347107 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8fa773d3da48d404608fe06cb4c8e55711ac793c | 239 | py | Python | notebooks/tests/test_mandelbrot_incorrect_test.py | cvdavis3/python-training | 77b53b0f84f658a2fb883ac82673404fa0c1f255 | [
"Apache-2.0"
] | null | null | null | notebooks/tests/test_mandelbrot_incorrect_test.py | cvdavis3/python-training | 77b53b0f84f658a2fb883ac82673404fa0c1f255 | [
"Apache-2.0"
] | null | null | null | notebooks/tests/test_mandelbrot_incorrect_test.py | cvdavis3/python-training | 77b53b0f84f658a2fb883ac82673404fa0c1f255 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from mandlebrot import mandelbrot
def test_mandelbrot_incorrect_test():
x = np.linspace(-1.5, -2.0, 10)
y = np.linspace(-1.25, 1.25, 10)
output = mandelbrot(x, y, 100, False)
assert np.all(output == 0.0) | 29.875 | 41 | 0.665272 | 41 | 239 | 3.804878 | 0.585366 | 0.128205 | 0.141026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098446 | 0.192469 | 239 | 8 | 42 | 29.875 | 0.709845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8faa5150622f7a7260386468cdf1dd80f3148292 | 245 | py | Python | python/destinations/Hello-Panda/quix_function.py | SteveQuixDemo/quix-library | d2ebc220aefb815170fadcb3c9873cc4b2f46fc9 | [
"Apache-2.0"
] | 7 | 2022-01-24T23:21:15.000Z | 2022-03-26T20:51:16.000Z | python/destinations/Hello-Panda/quix_function.py | SteveQuixDemo/quix-library | d2ebc220aefb815170fadcb3c9873cc4b2f46fc9 | [
"Apache-2.0"
] | 9 | 2022-01-17T12:27:34.000Z | 2022-03-31T13:11:57.000Z | python/destinations/Hello-Panda/quix_function.py | SteveQuixDemo/quix-library | d2ebc220aefb815170fadcb3c9873cc4b2f46fc9 | [
"Apache-2.0"
] | 3 | 2022-02-08T11:24:43.000Z | 2022-03-30T14:50:57.000Z | from quixstreaming import ParameterData
class QuixFunction:
# Callback triggered for each new parameter data.
def on_parameter_data_handler(self, data: ParameterData):
df = data.to_panda_frame()
print(df.to_string())
| 22.272727 | 61 | 0.726531 | 30 | 245 | 5.733333 | 0.766667 | 0.151163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204082 | 245 | 10 | 62 | 24.5 | 0.882051 | 0.191837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8fb3fcc41834373888df11ca3beac35e76e07acb | 610 | py | Python | src/domo.py | iFabio2/domo | 685a887b7440adcf2ec4780ac2386b7b2cad0209 | [
"Apache-2.0"
] | null | null | null | src/domo.py | iFabio2/domo | 685a887b7440adcf2ec4780ac2386b7b2cad0209 | [
"Apache-2.0"
] | null | null | null | src/domo.py | iFabio2/domo | 685a887b7440adcf2ec4780ac2386b7b2cad0209 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import sys, time
from domo import DomoApp, DomoLog
#main object creation
myapp = DomoApp.DomoApp()
#try:
if 1 == 1:
'''first thing we do is to create the main object
which in turn will create the rest of the objects'''
DomoLog.log('INFO', 'main', 'starting threads')
myapp.run()
... | 21.034483 | 59 | 0.598361 | 89 | 610 | 4.089888 | 0.629213 | 0.082418 | 0.076923 | 0.098901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.247541 | 610 | 28 | 60 | 21.785714 | 0.77342 | 0.254098 | 0 | 0 | 0 | 0 | 0.138643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8fb571fde8880cb6b3ed3ef3fdd2b031759c7a96 | 485 | py | Python | examples/Python/multiedges.py | var414n/ubigraph_server | 66571a68b7c2b27debc65df390426d77cbb88795 | [
"Apache-2.0"
] | 4 | 2022-01-18T00:41:39.000Z | 2022-02-04T09:45:29.000Z | examples/Python/multiedges.py | var414n/ubigraph_server | 66571a68b7c2b27debc65df390426d77cbb88795 | [
"Apache-2.0"
] | null | null | null | examples/Python/multiedges.py | var414n/ubigraph_server | 66571a68b7c2b27debc65df390426d77cbb88795 | [
"Apache-2.0"
] | 1 | 2019-01-06T12:56:32.000Z | 2019-01-06T12:56:32.000Z | import xmlrpclib
import time
# Create an object to represent our server.
server_url = 'http://127.0.0.1:20738/RPC2'
server = xmlrpclib.Server(server_url)
G = server.ubigraph
G.clear()
x = G.new_vertex()
y = G.new_vertex()
G.set_edge_style_attribute(0, "spline", "true")
G.set_vertex_style_attribute(0, "shape", "sph... | 20.208333 | 51 | 0.717526 | 86 | 485 | 3.848837 | 0.5 | 0.048338 | 0.181269 | 0.135952 | 0.226586 | 0.226586 | 0 | 0 | 0 | 0 | 0 | 0.058411 | 0.117526 | 485 | 23 | 52 | 21.086957 | 0.714953 | 0.084536 | 0 | 0 | 0 | 0 | 0.151927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8fbadd797079a59bb7c16b5b056dc3c3435e7089 | 1,390 | py | Python | tools/reuse_factors_examples.py | walkieq/LSTM-HLS | f90bc769153e667eb8a30c7c4147bd53620f02bb | [
"Apache-2.0"
] | 18 | 2021-06-17T18:25:02.000Z | 2022-03-29T09:30:50.000Z | tools/reuse_factors_examples.py | vamsikrishnabodaballa/RNN_HLS | 892b5315c27953af7dc387f4df5475962178201a | [
"Apache-2.0"
] | 3 | 2021-10-30T17:48:04.000Z | 2022-01-08T21:03:40.000Z | tools/reuse_factors_examples.py | vamsikrishnabodaballa/RNN_HLS | 892b5315c27953af7dc387f4df5475962178201a | [
"Apache-2.0"
] | 5 | 2021-06-17T18:25:06.000Z | 2022-03-17T11:05:54.000Z | import math
import numpy as np
"""
This function calculates the roots of the quadratic inequality for the Rh reuse factor.
Parameters:
lx - list of input sizes of the lstms. The size of this list is equal to the number of layers.
lh - list of input sizes of the hidden layers. The size of this ... | 28.367347 | 119 | 0.627338 | 256 | 1,390 | 3.300781 | 0.292969 | 0.091124 | 0.094675 | 0.061538 | 0.386982 | 0.31716 | 0.191716 | 0.191716 | 0.191716 | 0.139645 | 0 | 0.076007 | 0.214388 | 1,390 | 48 | 120 | 28.958333 | 0.697802 | 0.023022 | 0 | 0.090909 | 0 | 0 | 0.095941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.181818 | 0.590909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
8fbe2b88fe74cf906d86d3d7c7460534f06760eb | 1,318 | py | Python | run_evaulate.py | aayn/seaadrl-pytorch | 964ba1130ab3218c3d54ae794aced80093ab4102 | [
"MIT"
] | 3 | 2021-08-31T01:09:39.000Z | 2022-01-05T06:00:33.000Z | run_evaulate.py | aayn/seaadrl-pytorch | 964ba1130ab3218c3d54ae794aced80093ab4102 | [
"MIT"
] | null | null | null | run_evaulate.py | aayn/seaadrl-pytorch | 964ba1130ab3218c3d54ae794aced80093ab4102 | [
"MIT"
] | 1 | 2022-01-05T06:00:36.000Z | 2022-01-05T06:00:36.000Z | import os
import time
from collections import deque
import functools
import itertools
from typing import Callable, Iterable
import numpy as np
import yaml
import gym
from box import Box
import torch
# torch.multiprocessing.set_start_method("forkserver")
import torch.nn as nn
from torch.utils.data import IterableData... | 23.963636 | 92 | 0.714719 | 184 | 1,318 | 4.880435 | 0.423913 | 0.038976 | 0.055679 | 0.083519 | 0.2049 | 0.2049 | 0.2049 | 0.126949 | 0.126949 | 0.126949 | 0 | 0.008491 | 0.195751 | 1,318 | 55 | 93 | 23.963636 | 0.838679 | 0.141123 | 0 | 0 | 0 | 0 | 0.042591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.512821 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8fd112385e85f60302d92c1ec0b726f196a2d2f8 | 964 | py | Python | commercialoperator/migrations/0086_auto_20200817_1702.py | shibaken/commercialoperator | 1e0adfe683288626d9d3113e9efb44e0eba78adb | [
"Apache-2.0"
] | null | null | null | commercialoperator/migrations/0086_auto_20200817_1702.py | shibaken/commercialoperator | 1e0adfe683288626d9d3113e9efb44e0eba78adb | [
"Apache-2.0"
] | 12 | 2020-02-12T06:26:55.000Z | 2022-02-13T05:52:54.000Z | commercialoperator/migrations/0086_auto_20200817_1702.py | shibaken/commercialoperator | 1e0adfe683288626d9d3113e9efb44e0eba78adb | [
"Apache-2.0"
] | 8 | 2020-02-24T05:11:18.000Z | 2021-02-26T07:54:24.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2020-08-17 09:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('commercialoperator', '0085_proposaleventotherdetails_other_comments'),
]
operations... | 37.076923 | 299 | 0.664938 | 114 | 964 | 5.342105 | 0.552632 | 0.073892 | 0.064039 | 0.08867 | 0.35468 | 0.223317 | 0.223317 | 0 | 0 | 0 | 0 | 0.041995 | 0.209544 | 964 | 25 | 300 | 38.56 | 0.757218 | 0.070539 | 0 | 0.333333 | 1 | 0 | 0.343785 | 0.134379 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8fd627c34fe6856c059f4f50328f1da178a89cc8 | 3,527 | py | Python | diffimg/AbstractPrfLookup.py | exoplanetvetting/DAVE | aea19a30d987b214fb4c0cf01aa733f127c411b9 | [
"MIT"
] | 7 | 2019-05-07T02:01:51.000Z | 2022-03-16T08:09:39.000Z | diffimg/AbstractPrfLookup.py | barentsen/dave | 45ba97b7b535ad26dd555c33c963c6224a9af23c | [
"MIT"
] | 18 | 2015-12-09T22:18:59.000Z | 2017-04-26T13:11:44.000Z | diffimg/AbstractPrfLookup.py | barentsen/dave | 45ba97b7b535ad26dd555c33c963c6224a9af23c | [
"MIT"
] | 5 | 2017-03-08T11:42:53.000Z | 2020-05-07T00:10:37.000Z | """
Created on Sun Dec 2 14:12:41 2018
@author: fergal
"""
from __future__ import print_function
from __future__ import division
import numpy as np
class AbstractPrfLookup(object):
"""Store and lookup a previously computed PRF function
This abstract class is created in the hope that much of the functiona... | 30.938596 | 89 | 0.600227 | 477 | 3,527 | 4.410901 | 0.429769 | 0.01711 | 0.020913 | 0.013308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.309328 | 3,527 | 113 | 90 | 31.212389 | 0.84647 | 0.49277 | 0 | 0 | 0 | 0 | 0.052203 | 0 | 0 | 0 | 0 | 0.017699 | 0.055556 | 1 | 0.055556 | false | 0 | 0.083333 | 0 | 0.194444 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8fd7c61de1a9fa96c0542025479683d5e477222b | 39,478 | py | Python | main.py | Template-Latex/Export-Subtemplate | 595bf76f5c94daffdba4fbb686d51cce7ad298c8 | [
"MIT"
] | 1 | 2017-08-02T02:54:53.000Z | 2017-08-02T02:54:53.000Z | main.py | Template-Latex/Export-Subtemplate | 595bf76f5c94daffdba4fbb686d51cce7ad298c8 | [
"MIT"
] | null | null | null | main.py | Template-Latex/Export-Subtemplate | 595bf76f5c94daffdba4fbb686d51cce7ad298c8 | [
"MIT"
] | null | null | null | """
EXPORT-SUBTEMPLATE
Genera distintos sub-releases y exporta los templates
Autor: Pablo Pizarro R. @ ppizarror.com
Licencia:
The MIT License (MIT)
Copyright 2017-2021 Pablo Pizarro R.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated docum... | 41.908705 | 118 | 0.496124 | 3,817 | 39,478 | 4.937123 | 0.170291 | 0.061396 | 0.025259 | 0.020165 | 0.436668 | 0.397984 | 0.354205 | 0.343115 | 0.330751 | 0.323375 | 0 | 0.010138 | 0.390344 | 39,478 | 941 | 119 | 41.953241 | 0.77281 | 0.02566 | 0 | 0.404355 | 0 | 0 | 0.103419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031104 | null | null | 0.059098 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8fdab9e986f28b972fe777268c5b6d64795df2f2 | 2,740 | py | Python | py/_run_py3.py | FellowsFreiesWissen/- | 3e74e6531985b0e9ba2e34bf1f6a1224cc7b52f3 | [
"MIT"
] | 1 | 2021-02-08T20:33:41.000Z | 2021-02-08T20:33:41.000Z | py/_run_py3.py | FellowsFreiesWissen/- | 3e74e6531985b0e9ba2e34bf1f6a1224cc7b52f3 | [
"MIT"
] | null | null | null | py/_run_py3.py | FellowsFreiesWissen/- | 3e74e6531985b0e9ba2e34bf1f6a1224cc7b52f3 | [
"MIT"
] | 1 | 2021-01-01T17:23:40.000Z | 2021-01-01T17:23:40.000Z | __author__ = "Florian Thiery"
__copyright__ = "MIT Licence 2021, Florian Thiery"
__credits__ = ["Florian Thiery"]
__license__ = "MIT"
__version__ = "1.0"
__maintainer__ = "Florian Thiery"
__email__ = "mail@fthiery.de"
__status__ = "1.0"
__update__ = "2021-05-11"
import glob
import os
import os.path
dir_path = os.path... | 34.25 | 70 | 0.705474 | 440 | 2,740 | 4.061364 | 0.225 | 0.148853 | 0.172356 | 0.235031 | 0.552322 | 0.45775 | 0.45775 | 0.232233 | 0 | 0 | 0 | 0.016038 | 0.089781 | 2,740 | 79 | 71 | 34.683544 | 0.700481 | 0.026277 | 0 | 0.047619 | 0 | 0 | 0.297784 | 0.058956 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8fe85a2a5d2edcb245d3a863873043a418150fca | 349 | py | Python | setup.py | Huge/shamir | 10d6d74d985603c049e31d32d1ce528936989503 | [
"CC0-1.0"
] | 19 | 2018-10-27T02:45:22.000Z | 2021-07-16T06:40:03.000Z | setup.py | Huge/shamir | 10d6d74d985603c049e31d32d1ce528936989503 | [
"CC0-1.0"
] | 1 | 2020-05-15T08:46:48.000Z | 2020-05-15T08:46:48.000Z | setup.py | Huge/shamir | 10d6d74d985603c049e31d32d1ce528936989503 | [
"CC0-1.0"
] | 7 | 2018-08-11T16:37:09.000Z | 2021-08-23T14:13:35.000Z | from setuptools import setup, find_packages
setup(
name='shamir',
version='17.12.0',
url='https://github.com/kurtbrose/shamir',
author='Kurt Rose',
author_email='kurt@kurtrose.com',
decription="fast, secure, pure python shamir's secret sharing",
long_description = open('README.rst').read(),... | 29.083333 | 67 | 0.679083 | 45 | 349 | 5.177778 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017065 | 0.160458 | 349 | 12 | 68 | 29.083333 | 0.778157 | 0 | 0 | 0 | 0 | 0 | 0.397143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ff3c00aaa0d4bbcbd5ccc63aaa8ef235fba188d | 528 | py | Python | test/a.py | liaohongdong/IPProxy | 90152f02708717c661b7c1532e4a131a55103950 | [
"MIT"
] | null | null | null | test/a.py | liaohongdong/IPProxy | 90152f02708717c661b7c1532e4a131a55103950 | [
"MIT"
] | 1 | 2021-03-31T19:17:41.000Z | 2021-03-31T19:17:41.000Z | test/a.py | liaohongdong/IPProxy | 90152f02708717c661b7c1532e4a131a55103950 | [
"MIT"
] | null | null | null | import time
import json
import random
if __name__ == '__main__':
# a = 10
# while '39.108.111.222:1080':
# a -= 1
# print(a)
# if a <= 0:
# break
# a = ['a', 'b', 'c', 'd']
# a = []
# while a:
# print(time.gmtime().tm_sec)
# time.sleep(3)
# a ... | 20.307692 | 37 | 0.386364 | 74 | 528 | 2.635135 | 0.459459 | 0.030769 | 0.071795 | 0.041026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076687 | 0.382576 | 528 | 26 | 38 | 20.307692 | 0.521472 | 0.541667 | 0 | 0 | 0 | 0 | 0.044248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8ff7d3fd7850ce85b7cdc21936b6c84557edd802 | 1,539 | py | Python | twisted/plugins/tftp_plugin.py | aivins/python-tx-tftp | 46abaa3e9e054d2bdce5d8e5c76a87b1f36b218c | [
"MIT"
] | 1 | 2021-02-06T11:26:32.000Z | 2021-02-06T11:26:32.000Z | twisted/plugins/tftp_plugin.py | techman83/python-tx-tftp | 46abaa3e9e054d2bdce5d8e5c76a87b1f36b218c | [
"MIT"
] | null | null | null | twisted/plugins/tftp_plugin.py | techman83/python-tx-tftp | 46abaa3e9e054d2bdce5d8e5c76a87b1f36b218c | [
"MIT"
] | 1 | 2016-12-20T02:42:27.000Z | 2016-12-20T02:42:27.000Z | '''
@author: shylent
'''
from tftp.backend import FilesystemSynchronousBackend
from tftp.protocol import TFTP
from twisted.application import internet
from twisted.application.service import IServiceMaker
from twisted.plugin import IPlugin
from twisted.python import usage
from twisted.python.filepath import FilePath
fr... | 33.456522 | 86 | 0.662118 | 168 | 1,539 | 6.029762 | 0.458333 | 0.054294 | 0.043435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003378 | 0.230669 | 1,539 | 45 | 87 | 34.2 | 0.852196 | 0.010396 | 0 | 0 | 0 | 0 | 0.223762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.235294 | 0.029412 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8904373aaecfdf0e3fe1f208451b5f80bdc6f598 | 515 | py | Python | ar_app/scripts/renamefiles.py | osetr/ar-opencv-python | ae62ebeed176ef2e6d8d68fbaaa7d402dadc3eb3 | [
"MIT"
] | 1 | 2020-11-22T13:55:11.000Z | 2020-11-22T13:55:11.000Z | ar_app/scripts/renamefiles.py | osetr/ar-opencv-python | ae62ebeed176ef2e6d8d68fbaaa7d402dadc3eb3 | [
"MIT"
] | null | null | null | ar_app/scripts/renamefiles.py | osetr/ar-opencv-python | ae62ebeed176ef2e6d8d68fbaaa7d402dadc3eb3 | [
"MIT"
] | null | null | null | import os
from natsort import natsorted
path_to_directory = input("Enter path to directory: ") + "/"
new_name = input("Enter new name for files: ")
try:
i = 0
list_of_files = natsorted(os.listdir(path_to_directory))
for file in list_of_files:
i += 1
extension = file.split(".")[1]
o... | 27.105263 | 68 | 0.631068 | 67 | 515 | 4.641791 | 0.477612 | 0.096463 | 0.241158 | 0.115756 | 0.141479 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.260194 | 515 | 18 | 69 | 28.611111 | 0.808399 | 0 | 0 | 0 | 0 | 0 | 0.159223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.0625 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8906e41b0e2eb2a80f686b6c8428c70bf8ab1bf1 | 1,387 | py | Python | keyman44/interface/rcv_page.py | sahabi/keyman44 | 73d62eac3b96ec6951b1d88edf5e0f7c787f7440 | [
"MIT"
] | null | null | null | keyman44/interface/rcv_page.py | sahabi/keyman44 | 73d62eac3b96ec6951b1d88edf5e0f7c787f7440 | [
"MIT"
] | null | null | null | keyman44/interface/rcv_page.py | sahabi/keyman44 | 73d62eac3b96ec6951b1d88edf5e0f7c787f7440 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/rcv_page.ui'
#
# Created by: PyQt5 UI code generator 5.9
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjec... | 38.527778 | 69 | 0.695025 | 163 | 1,387 | 5.803681 | 0.447853 | 0.044397 | 0.05814 | 0.054968 | 0.063425 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035398 | 0.185292 | 1,387 | 35 | 70 | 39.628571 | 0.80177 | 0.131218 | 0 | 0 | 1 | 0 | 0.071846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.