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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fabe5ef5a7fa43380653371b3d38cfe0eb9b4b2b | 7,503 | py | Python | BioNetGen-2.3.0/source_Atomizer/SBMLparser/testing/evaluate.py | joseph-hellerstein/RuleBasedProgramming | fb88118ab764035979dc7c2bf8c89a7b484e4472 | [
"MIT"
] | null | null | null | BioNetGen-2.3.0/source_Atomizer/SBMLparser/testing/evaluate.py | joseph-hellerstein/RuleBasedProgramming | fb88118ab764035979dc7c2bf8c89a7b484e4472 | [
"MIT"
] | null | null | null | BioNetGen-2.3.0/source_Atomizer/SBMLparser/testing/evaluate.py | joseph-hellerstein/RuleBasedProgramming | fb88118ab764035979dc7c2bf8c89a7b484e4472 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 7 18:20:33 2013
@author: proto
"""
from os import listdir
from os.path import isfile, join
import os
import subprocess
import time
import datetime
import signal
def evaluate(fileName):
timeout = 30
with open('temp.tmp', "w") as outfile:
d = open('dummy... | 40.122995 | 148 | 0.507797 | 849 | 7,503 | 4.474676 | 0.204947 | 0.013425 | 0.02527 | 0.02369 | 0.610424 | 0.580679 | 0.580679 | 0.571203 | 0.571203 | 0.536983 | 0 | 0.019195 | 0.354258 | 7,503 | 187 | 149 | 40.122995 | 0.764912 | 0.058377 | 0 | 0.506667 | 0 | 0 | 0.121104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053333 | null | null | 0.06 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fabf29406c261139ce1b62a0e7ac8dabc1c92784 | 29,467 | py | Python | pyleecan/Classes/OutElec.py | EmileDvs/pyleecan | ad2f5f25c089a981f373557a198da51c62407928 | [
"Apache-2.0"
] | 95 | 2019-01-23T04:19:45.000Z | 2022-03-17T18:22:10.000Z | pyleecan/Classes/OutElec.py | EmileDvs/pyleecan | ad2f5f25c089a981f373557a198da51c62407928 | [
"Apache-2.0"
] | 366 | 2019-02-20T07:15:08.000Z | 2022-03-31T13:37:23.000Z | pyleecan/Classes/OutElec.py | EmileDvs/pyleecan | ad2f5f25c089a981f373557a198da51c62407928 | [
"Apache-2.0"
] | 74 | 2019-01-24T01:47:31.000Z | 2022-02-25T05:44:42.000Z | # -*- coding: utf-8 -*-
# File generated according to Generator/ClassesRef/Output/OutElec.csv
# WARNING! All changes made in this file will be lost!
"""Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Output/OutElec
"""
from os import linesep
from sys import getsizeof
fro... | 33.831228 | 106 | 0.554926 | 3,640 | 29,467 | 4.225275 | 0.073352 | 0.039012 | 0.029844 | 0.016385 | 0.395579 | 0.285891 | 0.244213 | 0.172432 | 0.16788 | 0.148765 | 0 | 0.003004 | 0.344792 | 29,467 | 870 | 107 | 33.870115 | 0.793598 | 0.098008 | 0 | 0.225434 | 1 | 0 | 0.117494 | 0.006356 | 0 | 0 | 0 | 0 | 0.001445 | 1 | 0.062139 | false | 0.001445 | 0.050578 | 0 | 0.208092 | 0 | 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 |
fabf8744e9694fe2d3f7ede969edc077f268741e | 676 | py | Python | 13_Dinosaurios/Triceraptors.py | igijon/sge_2022 | 48228dad24c3d9fbcd7b0975c28095c40b15c4c3 | [
"MIT"
] | null | null | null | 13_Dinosaurios/Triceraptors.py | igijon/sge_2022 | 48228dad24c3d9fbcd7b0975c28095c40b15c4c3 | [
"MIT"
] | null | null | null | 13_Dinosaurios/Triceraptors.py | igijon/sge_2022 | 48228dad24c3d9fbcd7b0975c28095c40b15c4c3 | [
"MIT"
] | null | null | null | from Dinosaurio import Dinosaurio
from Constantes import *
import random
class Triceraptors(Dinosaurio):
POSIB_ATAQUE=0
def __init__(self, id, energia, pos_x, aldea):
super().__init__(id, energia, pos_x, True, HERBIVORO, False, aldea)
def desplazar(self, distancia, direccion):
super().des... | 33.8 | 82 | 0.714497 | 84 | 676 | 5.535714 | 0.547619 | 0.047312 | 0.051613 | 0.055914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009225 | 0.198225 | 676 | 20 | 83 | 33.8 | 0.848708 | 0.16568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.230769 | 0.076923 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fad11dc955522c6a48b12d06557cb7acc30fc18a | 769 | py | Python | installer/setup.py | thomascswalker/bettergameexporter | 4db3683a599d523e28c2f93bdcac889277130153 | [
"MIT"
] | null | null | null | installer/setup.py | thomascswalker/bettergameexporter | 4db3683a599d523e28c2f93bdcac889277130153 | [
"MIT"
] | null | null | null | installer/setup.py | thomascswalker/bettergameexporter | 4db3683a599d523e28c2f93bdcac889277130153 | [
"MIT"
] | null | null | null | setup(
name="better-max-tools-installer",
version="1.0.0",
description="Installer for the Better Max Tools Python package.",
long_description="",
long_description_content_type="text/markdown",
url="https://github.com/thomascswalker/better-max-tools",
author="Thomas Walker",
author_email=... | 32.041667 | 81 | 0.650195 | 81 | 769 | 6 | 0.617284 | 0.074074 | 0.115226 | 0.09465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008143 | 0.20156 | 769 | 23 | 82 | 33.434783 | 0.783388 | 0 | 0 | 0 | 0 | 0 | 0.511053 | 0.130039 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fad33f856f18dbf004d1c3b9e4b25a996d9b26c7 | 2,222 | py | Python | server/key_manager.py | MlsDmitry/license_verification_software | 5c48ab7f23eff642602a611e031e5b5e7d0676f6 | [
"Apache-2.0"
] | null | null | null | server/key_manager.py | MlsDmitry/license_verification_software | 5c48ab7f23eff642602a611e031e5b5e7d0676f6 | [
"Apache-2.0"
] | null | null | null | server/key_manager.py | MlsDmitry/license_verification_software | 5c48ab7f23eff642602a611e031e5b5e7d0676f6 | [
"Apache-2.0"
] | null | null | null | from Crypto import Signature
from Crypto.PublicKey import RSA
from Crypto.Hash import SHA512
from Crypto.Signature import pss
import os
RSA_KEY_SIZE = 2048
pubkey = None
privkey = None
def _load_keys_from_file():
"""
returns public and private keys
"""
global pubkey, privkey
if os.path.exists('p... | 22.907216 | 96 | 0.643564 | 294 | 2,222 | 4.693878 | 0.309524 | 0.028986 | 0.026087 | 0.047826 | 0.097101 | 0.072464 | 0.052174 | 0.052174 | 0 | 0 | 0 | 0.028043 | 0.245725 | 2,222 | 96 | 97 | 23.145833 | 0.795346 | 0.036904 | 0 | 0.210526 | 0 | 0 | 0.060701 | 0.013605 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.140351 | false | 0 | 0.140351 | 0 | 0.385965 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
fadb238fafec46f4d9d9eb5c51a28c79317af322 | 242 | py | Python | aux_funcs.py | Hack4Eugene/mural-way-finding-by-byte-me | 513b68deaf2dc2b0f3001e55f78af12a81faacc4 | [
"MIT"
] | 1 | 2018-04-06T21:39:40.000Z | 2018-04-06T21:39:40.000Z | aux_funcs.py | Hack4Eugene/mural-way-finding-by-byte-me | 513b68deaf2dc2b0f3001e55f78af12a81faacc4 | [
"MIT"
] | null | null | null | aux_funcs.py | Hack4Eugene/mural-way-finding-by-byte-me | 513b68deaf2dc2b0f3001e55f78af12a81faacc4 | [
"MIT"
] | null | null | null | import pymongo
from math import sqrt
def euclidean(A, B):
sumSq = 0.0
# add up the squared differences
for i in range(len(A)):
sumSq += (A[i] - B[i]) ** 2
# take the square root of the result
return sqrt(sumSq)
| 18.615385 | 40 | 0.603306 | 40 | 242 | 3.65 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017442 | 0.289256 | 242 | 12 | 41 | 20.166667 | 0.831395 | 0.268595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fadb524909845e44c806ed18b4d10ea7d0f5dd48 | 1,785 | py | Python | stanCode_Projects/my_drawing/draw_line.py | wilson51678/sc-projects | a4b9a0c542449372181f6bd20d4ad81b87bfcb46 | [
"MIT"
] | null | null | null | stanCode_Projects/my_drawing/draw_line.py | wilson51678/sc-projects | a4b9a0c542449372181f6bd20d4ad81b87bfcb46 | [
"MIT"
] | null | null | null | stanCode_Projects/my_drawing/draw_line.py | wilson51678/sc-projects | a4b9a0c542449372181f6bd20d4ad81b87bfcb46 | [
"MIT"
] | null | null | null | """
File: draw_line
Name:Wilson Wang
-------------------------
TODO:
"""
from campy.graphics.gobjects import GOval, GLine
from campy.graphics.gwindow import GWindow
from campy.gui.events.mouse import onmouseclicked
# this constant is use for oval size
SIZE = 10
# this is a window which can use in every f... | 27.461538 | 115 | 0.638095 | 269 | 1,785 | 4.189591 | 0.364312 | 0.031056 | 0.048802 | 0.014197 | 0.033718 | 0.033718 | 0 | 0 | 0 | 0 | 0 | 0.021756 | 0.278992 | 1,785 | 64 | 116 | 27.890625 | 0.853924 | 0.533333 | 0 | 0 | 0 | 0 | 0.011429 | 0 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.076923 | false | 0 | 0.115385 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
fae4838e4177b0f1cdb71538d4363f6f5b31a546 | 847 | py | Python | upgrade.py | baosen/upgrade.py | 29ebc4201eaaca92d2960ff02cbdd34bee2a1084 | [
"MIT"
] | null | null | null | upgrade.py | baosen/upgrade.py | 29ebc4201eaaca92d2960ff02cbdd34bee2a1084 | [
"MIT"
] | 1 | 2019-07-27T21:33:46.000Z | 2019-07-27T21:33:46.000Z | upgrade.py | baosen/upgrade.py | 29ebc4201eaaca92d2960ff02cbdd34bee2a1084 | [
"MIT"
] | 1 | 2019-07-27T21:11:18.000Z | 2019-07-27T21:11:18.000Z | #!/usr/bin/env python3
import os
import psutil
import sys
# Check if upgrade is running.
def isrunning():
count = 0
for pid in psutil.pids():
p = psutil.Process(pid) # TODO: Race condition bug here when program exits when called, then the pid does not exists anymore.
if p.name() == "upgrade.py"... | 29.206897 | 133 | 0.681228 | 128 | 847 | 4.507813 | 0.546875 | 0.048527 | 0.048527 | 0.055459 | 0.138648 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005935 | 0.20425 | 847 | 28 | 134 | 30.25 | 0.850148 | 0.417946 | 0 | 0 | 0 | 0 | 0.292181 | 0.045267 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0.058824 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
fae7537df3a96f6c5398f4f69c7747de523902e0 | 1,936 | py | Python | observations/r/duncan.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | observations/r/duncan.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | observations/r/duncan.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def duncan(path):
"""Duncan's Occupational Prestige Data
The `Duncan` ... | 28.470588 | 71 | 0.686467 | 274 | 1,936 | 4.748175 | 0.547445 | 0.027671 | 0.036895 | 0.035357 | 0.099923 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02096 | 0.236054 | 1,936 | 67 | 72 | 28.895522 | 0.858688 | 0.567149 | 0 | 0 | 0 | 0 | 0.09009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.409091 | 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 |
faea39bc7b9439efc85cbb6e7a9247115545dde9 | 533 | py | Python | app.py | Lunga001/pmg-cms-2 | 10cea3979711716817b0ba2a41987df73f2c7642 | [
"Apache-2.0"
] | 2 | 2019-06-11T20:46:43.000Z | 2020-08-27T22:50:32.000Z | app.py | Lunga001/pmg-cms-2 | 10cea3979711716817b0ba2a41987df73f2c7642 | [
"Apache-2.0"
] | 70 | 2017-05-26T14:04:06.000Z | 2021-06-30T10:21:58.000Z | app.py | OpenUpSA/pmg-cms-2 | ec5f259dae81674ac7a8cdb80f124a8b0f167780 | [
"Apache-2.0"
] | 4 | 2017-08-29T10:09:30.000Z | 2021-05-25T11:29:03.000Z | from pmg import app
from pmg.tasks import StartScheduler
from pmg.models.soundcloud_track import SoundcloudTrack
from flask_script import Server, Manager
from flask_migrate import MigrateCommand
app.debug = True
manager = Manager(app)
manager.add_command("runserver", Server(port=5000, threaded=True, host="0.0.0.0"))
... | 24.227273 | 82 | 0.787992 | 70 | 533 | 5.771429 | 0.5 | 0.05198 | 0.126238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016842 | 0.108818 | 533 | 21 | 83 | 25.380952 | 0.833684 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 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 |
faeab4b6ef882a9d4819fa036ee0e5bb0b78eb90 | 9,751 | py | Python | dltb/thirdparty/keras/adversarial.py | Petr-By/qtpyvis | 0b9a151ee6b9a56b486c2bece9c1f03414629efc | [
"MIT"
] | 3 | 2017-10-04T14:51:26.000Z | 2017-10-22T09:35:50.000Z | dltb/thirdparty/keras/adversarial.py | CogSciUOS/DeepLearningToolbox | bf07578b9486d8c48e25df357bc4b9963b513b46 | [
"MIT"
] | 13 | 2017-09-05T12:56:11.000Z | 2017-11-22T10:38:27.000Z | dltb/thirdparty/keras/adversarial.py | CogSciUOS/DeepLearningToolbox | bf07578b9486d8c48e25df357bc4b9963b513b46 | [
"MIT"
] | 2 | 2017-09-24T21:39:42.000Z | 2017-10-04T15:29:54.000Z | # FIXME[hack]: this is just using a specific keras network as proof of
# concept. It has to be modularized and integrated into the framework
import os
import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
import tensorflow as tf
from tensorflow import keras
import numpy as np
print(f"nu... | 36.114815 | 157 | 0.628961 | 1,192 | 9,751 | 4.846477 | 0.22651 | 0.015579 | 0.031158 | 0.018176 | 0.167042 | 0.083261 | 0.053488 | 0.053488 | 0.047429 | 0.021118 | 0 | 0.006672 | 0.277613 | 9,751 | 269 | 158 | 36.249071 | 0.813458 | 0.155676 | 0 | 0.087209 | 0 | 0.011628 | 0.13442 | 0.029163 | 0 | 0 | 0 | 0.011152 | 0.005814 | 1 | 0.087209 | false | 0.005814 | 0.104651 | 0.005814 | 0.267442 | 0.110465 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
faecad577000a2b0fdbaab0ea566f5fccd7e6e59 | 667 | py | Python | fixProj.py | jessehamner/OpenDataDay | 21090aeea3c8d512456ed68e7b4736297e4453de | [
"MIT"
] | 2 | 2015-02-21T19:31:50.000Z | 2015-02-27T19:08:36.000Z | fixProj.py | jessehamner/OpenDataDay | 21090aeea3c8d512456ed68e7b4736297e4453de | [
"MIT"
] | null | null | null | fixProj.py | jessehamner/OpenDataDay | 21090aeea3c8d512456ed68e7b4736297e4453de | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# I didn't write this. It was borrowed from elsewhere.
# http://gis.stackexchange.com/questions/55196/how-can-i-get-the-proj4-string-or-epsg-code-from-a-shapefile-prj-file
# Accessed on Feb 21 2015
import sys
from osgeo import osr
def esriprj2standards(shapeprj_path):
prj_file = open(shape... | 27.791667 | 116 | 0.710645 | 100 | 667 | 4.67 | 0.65 | 0.025696 | 0.038544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030035 | 0.151424 | 667 | 23 | 117 | 29 | 0.795053 | 0.32084 | 0 | 0 | 0 | 0 | 0.111857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.230769 | null | null | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
faf33efe401339904bf64f5c106dc82ab33af0e0 | 14,009 | py | Python | tests/test_component/test_tmgr.py | dalg24/radical.entk | 4aa68d8de7804e09ca64629035ccda0b79ac0b76 | [
"MIT"
] | null | null | null | tests/test_component/test_tmgr.py | dalg24/radical.entk | 4aa68d8de7804e09ca64629035ccda0b79ac0b76 | [
"MIT"
] | null | null | null | tests/test_component/test_tmgr.py | dalg24/radical.entk | 4aa68d8de7804e09ca64629035ccda0b79ac0b76 | [
"MIT"
] | null | null | null | from radical.entk.execman.base import Base_TaskManager as BaseTmgr
from radical.entk.execman.base import Base_ResourceManager as BaseRmgr
from radical.entk.execman.rp import TaskManager as RPTmgr
from radical.entk.execman.rp import ResourceManager as RPRmgr
from radical.entk.execman.mock import TaskManager as MockTmgr
... | 30.257019 | 99 | 0.54829 | 1,522 | 14,009 | 4.805519 | 0.132063 | 0.053322 | 0.022559 | 0.034454 | 0.744736 | 0.702215 | 0.637681 | 0.596937 | 0.587914 | 0.550725 | 0 | 0.015932 | 0.341352 | 14,009 | 462 | 100 | 30.322511 | 0.776742 | 0.086587 | 0 | 0.661585 | 0 | 0 | 0.06862 | 0.00376 | 0 | 0 | 0 | 0 | 0.143293 | 1 | 0.042683 | false | 0.006098 | 0.073171 | 0 | 0.115854 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
faf5357fff41daeb2d2e6053cf290da6d716e39a | 446 | py | Python | library_api/baseviews.py | SousaPedro11/loan-books-api | 584e75a82109eb477f6c510d5744a1977f3b6baf | [
"MIT"
] | null | null | null | library_api/baseviews.py | SousaPedro11/loan-books-api | 584e75a82109eb477f6c510d5744a1977f3b6baf | [
"MIT"
] | null | null | null | library_api/baseviews.py | SousaPedro11/loan-books-api | 584e75a82109eb477f6c510d5744a1977f3b6baf | [
"MIT"
] | null | null | null | from django_filters.rest_framework import DjangoFilterBackend
from rest_framework.filters import OrderingFilter
from rest_framework.viewsets import ModelViewSet
class BaseDefaultViewset(ModelViewSet):
filter_backends = [DjangoFilterBackend, OrderingFilter]
class Meta:
abstract = True
def get_que... | 26.235294 | 61 | 0.755605 | 47 | 446 | 7.042553 | 0.595745 | 0.117825 | 0.102719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190583 | 446 | 16 | 62 | 27.875 | 0.916898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
faf5d0f9305a575908fe92a1d92638e4a3ab4166 | 976 | py | Python | genius.py | favitor/Genius | 85eb017c45add645de0fd5b76b71487db413411a | [
"MIT"
] | null | null | null | genius.py | favitor/Genius | 85eb017c45add645de0fd5b76b71487db413411a | [
"MIT"
] | null | null | null | genius.py | favitor/Genius | 85eb017c45add645de0fd5b76b71487db413411a | [
"MIT"
] | null | null | null | import lyricsgenius
import pylast
#The LastFM keys
API_KEY= ''
API_SECRET = ''
#The genius key
genius = lyricsgenius.Genius("")
#Your usename and password
username = 'username'
password_hash = pylast.md5('password')
#Access LastFm
network = pylast.LastFMNetwork(api_key=API_KEY, api_secret=API_SECRET,
... | 24.4 | 81 | 0.709016 | 136 | 976 | 4.963235 | 0.375 | 0.026667 | 0.04 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003764 | 0.183402 | 976 | 39 | 82 | 25.025641 | 0.843162 | 0.286885 | 0 | 0 | 0 | 0 | 0.057364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.111111 | 0 | 0.111111 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
faff92cb0a7f286da1cef9a4fa34f6519fcd5ed0 | 266 | py | Python | game/message/S/S_USER_STATUS.py | jeff-alves/Tera | 2d45c1c38defaef71fbfc3e2081d9b5468938e40 | [
"MIT"
] | 1 | 2016-09-30T14:54:55.000Z | 2016-09-30T14:54:55.000Z | game/message/S/S_USER_STATUS.py | jeff-alves/Tera | 2d45c1c38defaef71fbfc3e2081d9b5468938e40 | [
"MIT"
] | null | null | null | game/message/S/S_USER_STATUS.py | jeff-alves/Tera | 2d45c1c38defaef71fbfc3e2081d9b5468938e40 | [
"MIT"
] | null | null | null | from util.tipo import tipo
class S_USER_STATUS(object):
def __init__(self, tracker, time, direction, opcode, data):
dic = {}
id = data.read(tipo.uint64)
dic['in_battle'] = data.read(tipo.byte)
tracker.get_entity(id).status(dic)
| 26.6 | 63 | 0.639098 | 37 | 266 | 4.378378 | 0.702703 | 0.098765 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009756 | 0.229323 | 266 | 9 | 64 | 29.555556 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0.033835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 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 |
4f01d2fea2c76188ce4599ee065b7530def141dc | 504 | py | Python | intelligence/apis.py | macdaliot/exist | 65244f79c602c5a00c3ea6a7eef512ce9c21e60a | [
"MIT"
] | null | null | null | intelligence/apis.py | macdaliot/exist | 65244f79c602c5a00c3ea6a7eef512ce9c21e60a | [
"MIT"
] | 2 | 2020-06-05T20:20:55.000Z | 2021-06-10T21:22:19.000Z | intelligence/apis.py | macdaliot/exist | 65244f79c602c5a00c3ea6a7eef512ce9c21e60a | [
"MIT"
] | null | null | null | from rest_framework.routers import DefaultRouter
from apps.reputation.api import blViewSet
from apps.twitter.api import twViewSet
from apps.exploit.api import exViewSet
from apps.threat.api import threatEventViewSet, threatAttrViewSet
router = DefaultRouter(trailing_slash=False)
router.register('reputation', blViewSet... | 36 | 65 | 0.84127 | 56 | 504 | 7.535714 | 0.428571 | 0.165877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 504 | 13 | 66 | 38.769231 | 0.901709 | 0 | 0 | 0 | 0 | 0 | 0.099404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4f096402b884a6cb917b084ea530b4e9dd7e537d | 4,986 | py | Python | src/core/tests/test_integration.py | Votechain-LUT/Votechain-Core | 12c02a393ce005f1c7e2e852ad35aaa798517d90 | [
"MIT"
] | null | null | null | src/core/tests/test_integration.py | Votechain-LUT/Votechain-Core | 12c02a393ce005f1c7e2e852ad35aaa798517d90 | [
"MIT"
] | 3 | 2021-01-24T16:40:33.000Z | 2021-02-10T12:05:47.000Z | src/core/tests/test_integration.py | Votechain-LUT/Votechain-Core | 12c02a393ce005f1c7e2e852ad35aaa798517d90 | [
"MIT"
] | null | null | null | from datetime import timedelta
from rest_framework.test import APITestCase, APIRequestFactory, URLPatternsTestCase, \
force_authenticate
from rest_framework import status
from django.contrib.auth import get_user_model
from django.utils import timezone
from django.urls import include, path, reverse
from votec... | 38.353846 | 87 | 0.61432 | 509 | 4,986 | 5.848723 | 0.202358 | 0.070541 | 0.069533 | 0.034263 | 0.671817 | 0.651663 | 0.651663 | 0.637219 | 0.637219 | 0.620759 | 0 | 0.009124 | 0.274569 | 4,986 | 129 | 88 | 38.651163 | 0.813934 | 0.043722 | 0 | 0.60177 | 0 | 0 | 0.05977 | 0 | 0 | 0 | 0 | 0 | 0.141593 | 1 | 0.061947 | false | 0 | 0.079646 | 0 | 0.176991 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f0b8ede90dde3a792020ae23ca545c2ad5f1dcf | 828 | py | Python | apparse/__init__.py | alexitx/ap-parse | a2aa49e13c46b1dd1bad2b6f70695d2953779aa2 | [
"MIT"
] | null | null | null | apparse/__init__.py | alexitx/ap-parse | a2aa49e13c46b1dd1bad2b6f70695d2953779aa2 | [
"MIT"
] | null | null | null | apparse/__init__.py | alexitx/ap-parse | a2aa49e13c46b1dd1bad2b6f70695d2953779aa2 | [
"MIT"
] | null | null | null | from ._version import (
__author__,
__author_email__,
__license__,
__title__,
__url__,
__version__
)
from .iw_device_parser import IwDeviceParser
from .iw_station_parser import IwStationParser
from .iwinfo_device_parser import IwinfoDeviceParser
from .iwinfo_station_parser import IwinfoStationP... | 21.789474 | 54 | 0.743961 | 102 | 828 | 5.627451 | 0.254902 | 0.083624 | 0.069686 | 0.08885 | 0.421603 | 0.341463 | 0.222997 | 0.222997 | 0 | 0 | 0 | 0 | 0.173913 | 828 | 37 | 55 | 22.378378 | 0.839181 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.25 | 0 | 0.65 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
87816b3e00d85f02954fc05fde166ce3e4f977c2 | 546 | py | Python | deprecated/rcbu/common/weekdays.py | nloadholtes/python-cloudbackup-sdk | 1866e23aaaac41c35be4cb6ab964fcd0ba9a8fe6 | [
"Apache-2.0"
] | 4 | 2015-02-10T14:28:12.000Z | 2016-12-26T22:52:07.000Z | deprecated/rcbu/common/weekdays.py | nloadholtes/python-cloudbackup-sdk | 1866e23aaaac41c35be4cb6ab964fcd0ba9a8fe6 | [
"Apache-2.0"
] | 17 | 2015-01-22T21:58:36.000Z | 2018-01-25T19:47:43.000Z | deprecated/rcbu/common/weekdays.py | nloadholtes/python-cloudbackup-sdk | 1866e23aaaac41c35be4cb6ab964fcd0ba9a8fe6 | [
"Apache-2.0"
] | 9 | 2015-01-26T19:25:45.000Z | 2018-11-01T20:14:12.000Z | class Weekdays(object):
"""A mock enum. When pep 435 rolls out, this can be upgraded to be a proper
enum.
ref: http://www.python.org/dev/peps/pep-0435/
"""
Sunday = 0
Monday = 1
Tuesday = 2
Wednesday = 3
Thursday = 4
Friday = 5
Saturday = 6
_to_string = {
0: 'Su... | 19.5 | 79 | 0.520147 | 69 | 546 | 4.057971 | 0.666667 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059659 | 0.355311 | 546 | 27 | 80 | 20.222222 | 0.735795 | 0.228938 | 0 | 0 | 0 | 0 | 0.124378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0.05 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8781cd8ce8caf56fef188e826c6affe53e2ff852 | 2,750 | py | Python | schema/test_job_states.py | ramrod-project/database-brain | b024cb44f34cabb9d80af38271ddb65c25767083 | [
"MIT"
] | null | null | null | schema/test_job_states.py | ramrod-project/database-brain | b024cb44f34cabb9d80af38271ddb65c25767083 | [
"MIT"
] | 13 | 2018-06-06T19:10:51.000Z | 2021-06-01T22:11:11.000Z | schema/test_job_states.py | ramrod-project/database-brain | b024cb44f34cabb9d80af38271ddb65c25767083 | [
"MIT"
] | null | null | null |
from pytest import raises
from .brain.jobs import verify_state, transition_success, transition_fail, \
transition, InvalidStateTransition, InvalidState, JobsError
from .brain.jobs import STATES, SUCCESS, FAILURE, TRANSITION, BEGIN, READY, ERROR
INVALID_STATE = "INVALID SATE"
def test_states_verify():
for sta... | 31.25 | 81 | 0.709455 | 345 | 2,750 | 5.33913 | 0.136232 | 0.083062 | 0.084691 | 0.06949 | 0.545603 | 0.428882 | 0.399566 | 0.399566 | 0.363735 | 0.241585 | 0 | 0 | 0.219273 | 2,750 | 88 | 82 | 31.25 | 0.857941 | 0 | 0 | 0.367647 | 0 | 0 | 0.013818 | 0 | 0 | 0 | 0 | 0 | 0.191176 | 1 | 0.235294 | false | 0 | 0.044118 | 0 | 0.279412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
87856857749cae0aa2d1a1408fda9fce27b66db8 | 557 | py | Python | mysite/initdb.py | wuchunlong0/reptilian_videoplay | 8d244f121c95ba402a6c31041debe82d008253d8 | [
"Apache-2.0"
] | null | null | null | mysite/initdb.py | wuchunlong0/reptilian_videoplay | 8d244f121c95ba402a6c31041debe82d008253d8 | [
"Apache-2.0"
] | null | null | null | mysite/initdb.py | wuchunlong0/reptilian_videoplay | 8d244f121c95ba402a6c31041debe82d008253d8 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
import os
import sys
import django
import random
import datetime
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
django.setup()
from django.contrib.auth.models import User, Group, Permission
user = User.objects.create_superu... | 27.85 | 70 | 0.621185 | 64 | 557 | 5.234375 | 0.609375 | 0.035821 | 0.035821 | 0.101493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012225 | 0.265709 | 557 | 20 | 71 | 27.85 | 0.806846 | 0.249551 | 0 | 0 | 0 | 0 | 0.173913 | 0.05314 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8788a9b87d6607cde786b19de462aeb0566f989d | 572 | py | Python | src/sentry/web/frontend/organization_audit_log.py | kl07/sentry | 427b456f18c4040127f7a05805089f372e920df0 | [
"BSD-3-Clause"
] | 20 | 2016-10-01T04:29:24.000Z | 2020-10-09T07:23:34.000Z | src/sentry/web/frontend/organization_audit_log.py | tobetterman/sentry | fe85d3aee19dcdbfdd27921c4fb04529fc995a79 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/web/frontend/organization_audit_log.py | tobetterman/sentry | fe85d3aee19dcdbfdd27921c4fb04529fc995a79 | [
"BSD-3-Clause"
] | 7 | 2016-10-27T05:12:45.000Z | 2021-05-01T14:29:53.000Z | from __future__ import absolute_import
from sentry.models import AuditLogEntry
from sentry.web.frontend.base import OrganizationView
class OrganizationAuditLogView(OrganizationView):
required_scope = 'org:write'
def get(self, request, organization):
queryset = AuditLogEntry.objects.filter(
... | 28.6 | 74 | 0.706294 | 57 | 572 | 6.894737 | 0.684211 | 0.050891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199301 | 572 | 19 | 75 | 30.105263 | 0.858079 | 0 | 0 | 0 | 0 | 0 | 0.15035 | 0.059441 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
878b1e82d0576f11712a0e3749eed620a2ad4403 | 365 | py | Python | arcade_solutions/the_core/construct_square.py | nickaigi/automatic-dollop | eb8222475c7871c1d5710242c5aed8c70ea0d2c8 | [
"Unlicense"
] | null | null | null | arcade_solutions/the_core/construct_square.py | nickaigi/automatic-dollop | eb8222475c7871c1d5710242c5aed8c70ea0d2c8 | [
"Unlicense"
] | null | null | null | arcade_solutions/the_core/construct_square.py | nickaigi/automatic-dollop | eb8222475c7871c1d5710242c5aed8c70ea0d2c8 | [
"Unlicense"
] | null | null | null | def construct_square(s):
p = len(s)
d_max = int((10**p)**.5)
d_min = int((10**(p-1))**.5)
for d in range(d_max, d_min -1, -1):
n = str(d * d)
if sorted(s.count(c) for c in set(s)) == sorted(n.count(c) for c in set(n)):
return int(n)
return -1
if __name__ == '__main__':... | 22.8125 | 84 | 0.512329 | 67 | 365 | 2.58209 | 0.41791 | 0.17341 | 0.184971 | 0.115607 | 0.17341 | 0.17341 | 0 | 0 | 0 | 0 | 0 | 0.03861 | 0.290411 | 365 | 15 | 85 | 24.333333 | 0.629344 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.25 | 0.083333 | 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 |
878cfb22f7a02e1220321ebc75044dd7e795d697 | 1,088 | py | Python | src/scopes/nonlocal.py | sethlu/rmbr | 51807ff74f1a3f19cf019e4a676295150609fdd0 | [
"Apache-2.0"
] | null | null | null | src/scopes/nonlocal.py | sethlu/rmbr | 51807ff74f1a3f19cf019e4a676295150609fdd0 | [
"Apache-2.0"
] | null | null | null | src/scopes/nonlocal.py | sethlu/rmbr | 51807ff74f1a3f19cf019e4a676295150609fdd0 | [
"Apache-2.0"
] | null | null | null | # Lexical scoping in Python and an interesting scenario with resolving value in class.
# Author: Zhuo Lu
# Test suite 1
def test1():
"""
Try to change a nonlocal variable of a parent frame.
"""
def noeffect():
# Uncomment the following line to show that local variable referenced before assign... | 22.666667 | 95 | 0.600184 | 145 | 1,088 | 4.503448 | 0.462069 | 0.091884 | 0.053599 | 0.052067 | 0.119449 | 0.042879 | 0 | 0 | 0 | 0 | 0 | 0.013587 | 0.323529 | 1,088 | 47 | 96 | 23.148936 | 0.873641 | 0.621324 | 0 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.222222 | 0.388889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
878d00799f88d2de04031690b3394cb8fe2d57f7 | 270 | py | Python | app.py | mohitsahoo/api-pydev | d3603e8df1760ff360787aeffa02edf32dd6060d | [
"Unlicense"
] | null | null | null | app.py | mohitsahoo/api-pydev | d3603e8df1760ff360787aeffa02edf32dd6060d | [
"Unlicense"
] | null | null | null | app.py | mohitsahoo/api-pydev | d3603e8df1760ff360787aeffa02edf32dd6060d | [
"Unlicense"
] | null | null | null | from flask import Flask
from flask_restful import Api
from resources.books import Books
app = Flask(__name__) # Flask intialization
api = Api(app) # API intialization
api.add_resource(Books, "/books") # api url
if __name__ == "__main__":
app.run(debug=True)
| 19.285714 | 44 | 0.733333 | 38 | 270 | 4.842105 | 0.473684 | 0.097826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17037 | 270 | 13 | 45 | 20.769231 | 0.821429 | 0.166667 | 0 | 0 | 0 | 0 | 0.063348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
87916ba5b19854a51fe056f4872ed503a98fd504 | 682 | py | Python | sample-programs/week6/nested2.py | scottwedge/CSC110 | 8d1e39de183e3ea477dac993d0fa9b721feca1ca | [
"MIT"
] | null | null | null | sample-programs/week6/nested2.py | scottwedge/CSC110 | 8d1e39de183e3ea477dac993d0fa9b721feca1ca | [
"MIT"
] | 1 | 2020-09-04T02:04:33.000Z | 2020-09-04T02:04:33.000Z | sample-programs/week6/nested2.py | scottwedge/CSC110 | 8d1e39de183e3ea477dac993d0fa9b721feca1ca | [
"MIT"
] | 1 | 2020-09-04T01:51:55.000Z | 2020-09-04T01:51:55.000Z | # nested2.py
#
# Nested loop Example 2
# CSC 110
# Fall 2011
#accumulators for the outer loop
sumOuter = 0
for outer in [1, 2, 3, 4]:
print('Outer loop iteration', outer)
sumOuter += outer
sumInner = 0 # accumulator for this inner loop
# notice that the inner loop's repetitions is based on the va... | 23.517241 | 68 | 0.64956 | 98 | 682 | 4.520408 | 0.438776 | 0.10158 | 0.081264 | 0.099323 | 0.13544 | 0.13544 | 0 | 0 | 0 | 0 | 0 | 0.034 | 0.266862 | 682 | 28 | 69 | 24.357143 | 0.852 | 0.44868 | 0 | 0 | 0 | 0 | 0.225275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
879960e3aafbb1fce14a84f27789c98b1cd5a47a | 4,182 | py | Python | intermol/atom.py | JoshuaSBrown/InterMol | de2ce24a84bd487392ab3fc6f40183524db7c1f3 | [
"MIT"
] | 109 | 2015-03-27T16:34:47.000Z | 2022-03-21T23:48:29.000Z | intermol/atom.py | naokicc/InterMol | 23ef90cc79af855c29ecfa11b1dc3cbe71bfccb9 | [
"MIT"
] | 215 | 2015-01-23T21:16:05.000Z | 2022-03-24T08:26:13.000Z | intermol/atom.py | naokicc/InterMol | 23ef90cc79af855c29ecfa11b1dc3cbe71bfccb9 | [
"MIT"
] | 43 | 2015-01-25T18:47:46.000Z | 2022-03-08T03:47:27.000Z | class Atom(object):
""" """
def __init__(self, index, name=None, residue_index=-1, residue_name=None):
"""Create an Atom object
Args:
index (int): index of atom in the molecule
name (str): name of the atom (eg., N, CH)
residue_index (int): index of residue i... | 24.892857 | 78 | 0.54089 | 485 | 4,182 | 4.540206 | 0.160825 | 0.045413 | 0.020436 | 0.020436 | 0.289737 | 0.213896 | 0.168483 | 0.147593 | 0.147593 | 0.147593 | 0 | 0.002242 | 0.360115 | 4,182 | 167 | 79 | 25.041916 | 0.820628 | 0.232664 | 0 | 0.294737 | 0 | 0 | 0.066413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.052632 | 0 | 0.073684 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
879baa5ee8004c2f146d7263491a5bd1220edec3 | 1,817 | py | Python | useradm/rbopt.py | VoyTechnology/redbrick-useradm | 5238f618d2dd3f43e74045dcc9f2df90b37ef919 | [
"Unlicense"
] | null | null | null | useradm/rbopt.py | VoyTechnology/redbrick-useradm | 5238f618d2dd3f43e74045dcc9f2df90b37ef919 | [
"Unlicense"
] | null | null | null | useradm/rbopt.py | VoyTechnology/redbrick-useradm | 5238f618d2dd3f43e74045dcc9f2df90b37ef919 | [
"Unlicense"
] | null | null | null | #-----------------------------------------------------------------------------#
# MODULE DESCRIPTION #
#-----------------------------------------------------------------------------#
"""RedBrick Options Module; contains RBOpt class."""
#------------------------... | 33.648148 | 79 | 0.346175 | 128 | 1,817 | 4.820313 | 0.476563 | 0.246353 | 0.06483 | 0.082658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001654 | 0.334618 | 1,817 | 53 | 80 | 34.283019 | 0.508685 | 0.510732 | 0 | 0 | 0 | 0 | 0.036428 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.034483 | 0 | 0 | 0.068966 | 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 |
87a166a84761238151d4dec88d0fe7c5d0f5bbaf | 3,622 | py | Python | budget-rnn/src/utils/testing_utils.py | tejaskannan/ml-models | ad5acad2c0ce75773062ffcdff088a6fbe5ffc17 | [
"Apache-2.0"
] | 1 | 2021-06-28T15:40:41.000Z | 2021-06-28T15:40:41.000Z | budget-rnn/src/utils/testing_utils.py | tejaskannan/ml-models | ad5acad2c0ce75773062ffcdff088a6fbe5ffc17 | [
"Apache-2.0"
] | 5 | 2021-03-04T19:42:15.000Z | 2022-02-10T05:46:15.000Z | budget-rnn/src/utils/testing_utils.py | tejaskannan/budget-rnn | ad5acad2c0ce75773062ffcdff088a6fbe5ffc17 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from enum import Enum, auto
from collections import namedtuple, defaultdict
from typing import DefaultDict, Dict, Union, List, Optional, Tuple
from sklearn.metrics import f1_score, recall_score, precision_score
from utils.constants import SMALL_NUMBER
class ClassificationMetric(Enum):
ACCURACY... | 43.638554 | 175 | 0.718112 | 412 | 3,622 | 6.087379 | 0.213592 | 0.095694 | 0.066986 | 0.066986 | 0.595295 | 0.595295 | 0.595295 | 0.573365 | 0.522329 | 0.467703 | 0 | 0.00472 | 0.181115 | 3,622 | 82 | 176 | 44.170732 | 0.840863 | 0 | 0 | 0.208955 | 0 | 0 | 0.081447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0 | 0.089552 | 0 | 0.552239 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
87a51eeebc4b8900ee0a0a30a2f69f6e1e73363a | 3,132 | py | Python | api/api/urls.py | logolive/desec-stack | 5bcc242d1e4863e9ff3ba904cd6411dbd58f95d3 | [
"MIT"
] | 197 | 2016-10-13T16:44:54.000Z | 2022-03-24T08:33:25.000Z | api/api/urls.py | logolive/desec-stack | 5bcc242d1e4863e9ff3ba904cd6411dbd58f95d3 | [
"MIT"
] | 455 | 2016-12-08T15:23:04.000Z | 2022-03-29T12:58:02.000Z | api/api/urls.py | logolive/desec-stack | 5bcc242d1e4863e9ff3ba904cd6411dbd58f95d3 | [
"MIT"
] | 25 | 2016-10-13T16:45:02.000Z | 2022-02-23T17:57:04.000Z | from django.urls import include, path
#
# On Reversing URLs
# =================
#
# Recommended Usage:
# Always use rest_framework.reverse.reverse, do not directly use django.urls.reverse.
# If a request object r is available, use reverse(name, request=r). With the name as defined
# in desecapi.urls.v1 or desecapi.ur... | 48.9375 | 113 | 0.714559 | 449 | 3,132 | 4.955457 | 0.314031 | 0.025169 | 0.013483 | 0.039551 | 0.203146 | 0.203146 | 0.187865 | 0.110112 | 0.055281 | 0.055281 | 0 | 0.010819 | 0.173691 | 3,132 | 63 | 114 | 49.714286 | 0.848918 | 0.880268 | 0 | 0 | 0 | 0 | 0.26875 | 0.2125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87a8e4b025dbb05622cafea2bcc2bc687ebc39f9 | 767 | py | Python | lambdata/examples_test.py | timrocar/lambdata | 1f270e140bd44f95b0339b74f3a38ad10acf0971 | [
"MIT"
] | 1 | 2020-08-31T16:32:57.000Z | 2020-08-31T16:32:57.000Z | lambdata/examples_test.py | timrocar/lambdata | 1f270e140bd44f95b0339b74f3a38ad10acf0971 | [
"MIT"
] | null | null | null | lambdata/examples_test.py | timrocar/lambdata | 1f270e140bd44f95b0339b74f3a38ad10acf0971 | [
"MIT"
] | 1 | 2020-09-02T02:23:01.000Z | 2020-09-02T02:23:01.000Z | """
Examples tests using standard documentation.
https://docs.python.org/3/library/unittest.html
"""
import unittest
class TestStringMethods(unittest.TestCase):
def test_upper(self):
self.assertEqual('foo'.upper(), 'FOO')
def test_isupper(self):
self.assertTrue('FOO'.isupper())
sel... | 23.242424 | 69 | 0.621904 | 94 | 767 | 4.946809 | 0.56383 | 0.060215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003419 | 0.237288 | 767 | 32 | 70 | 23.96875 | 0.791453 | 0.199478 | 0 | 0 | 0 | 0 | 0.10396 | 0 | 0 | 0 | 0 | 0 | 0.388889 | 1 | 0.222222 | false | 0 | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87ab2c7418da7a1dd913084973f847276e1c4dbe | 886 | py | Python | dapricot/pages/migrations/0001_initial.py | softapr/django_apricot | 911b6627a5ffaf3f7b13a099ca129f3a2ffda558 | [
"BSD-3-Clause"
] | null | null | null | dapricot/pages/migrations/0001_initial.py | softapr/django_apricot | 911b6627a5ffaf3f7b13a099ca129f3a2ffda558 | [
"BSD-3-Clause"
] | null | null | null | dapricot/pages/migrations/0001_initial.py | softapr/django_apricot | 911b6627a5ffaf3f7b13a099ca129f3a2ffda558 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.2.1 on 2019-06-01 05:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('flatpages', '0001_initial'),
]
operations = [
migrations.CreateModel(
name=... | 31.642857 | 197 | 0.613995 | 100 | 886 | 5.31 | 0.65 | 0.045198 | 0.056497 | 0.082863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029186 | 0.265237 | 886 | 27 | 198 | 32.814815 | 0.786482 | 0.05079 | 0 | 0 | 1 | 0 | 0.222884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87bbd86d3062b19117da7377a678e38130cd482d | 790 | py | Python | Week-07/rock-paper-scissors.py | ltagliaferri/dh-rutgers | a3a54a7267dea3ce6388c7cad49396685ba1f800 | [
"MIT"
] | 5 | 2022-01-20T21:00:31.000Z | 2022-01-21T04:52:34.000Z | Week-07/rock-paper-scissors.py | ltagliaferri/dh-rutgers | a3a54a7267dea3ce6388c7cad49396685ba1f800 | [
"MIT"
] | 1 | 2022-01-26T20:23:04.000Z | 2022-01-26T20:23:04.000Z | Week-07/rock-paper-scissors.py | ltagliaferri/dh-rutgers | a3a54a7267dea3ce6388c7cad49396685ba1f800 | [
"MIT"
] | 11 | 2022-01-19T23:19:05.000Z | 2022-01-26T17:42:00.000Z | # rock = 0
# paper = 1
# scissors = 2
# paper beats rock
# scissors beats paper
# rock beats scissors
print("Player 1: Type 0 for rock, type 1 for paper, type 2 for scissors")
first_player = int(input())
print("Player 2: Type 0 for rock, type 1 for paper, type 2 for scissors")
second_player = int(input())
if first_pl... | 29.259259 | 73 | 0.682278 | 131 | 790 | 4.007634 | 0.183206 | 0.167619 | 0.091429 | 0.091429 | 0.434286 | 0.39619 | 0.39619 | 0.15619 | 0.15619 | 0.15619 | 0 | 0.045959 | 0.201266 | 790 | 26 | 74 | 30.384615 | 0.786054 | 0.112658 | 0 | 0.333333 | 0 | 0 | 0.324207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
87cec999748f54fda820a9768c8dbaa076ce5181 | 7,760 | py | Python | python/openreadingframe/orf_prediction_part1.py | lotharwissler/bioinformatics | 83a53771222ecb0759e3b4bfa2018d2cd7647643 | [
"MIT"
] | 10 | 2016-01-13T00:39:30.000Z | 2020-11-30T05:56:19.000Z | python/openreadingframe/orf_prediction_part1.py | lotharwissler/bioinformatics | 83a53771222ecb0759e3b4bfa2018d2cd7647643 | [
"MIT"
] | 1 | 2017-02-09T22:46:49.000Z | 2017-02-09T22:46:49.000Z | python/openreadingframe/orf_prediction_part1.py | lotharwissler/bioinformatics | 83a53771222ecb0759e3b4bfa2018d2cd7647643 | [
"MIT"
] | 10 | 2015-10-09T00:29:16.000Z | 2019-06-09T05:32:15.000Z | #!/usr/bin/python
import os, sys, getopt, string, math
from Bio.Seq import Seq
from Bio.Blast import NCBIXML
from Bio.Alphabet import IUPAC
OUTFILEPART2 = 'tmp.orf.part2.fasta'
#==============================================================================
def show_help():
print """%s uses parsed BLASTX output to ... | 36.952381 | 205 | 0.612629 | 920 | 7,760 | 5.109783 | 0.234783 | 0.021059 | 0.027654 | 0.026803 | 0.224208 | 0.145288 | 0.116996 | 0.056584 | 0.056584 | 0.022974 | 0 | 0.009003 | 0.169845 | 7,760 | 209 | 206 | 37.129187 | 0.720739 | 0.28067 | 0 | 0.174242 | 0 | 0 | 0.194035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030303 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
87d73eef920d6b557ec311b4e5edfe19a9daba9f | 4,089 | py | Python | pysnmp/HUAWEI-RIPV2-EXT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/HUAWEI-RIPV2-EXT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/HUAWEI-RIPV2-EXT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HUAWEI-RIPV2-EXT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-RIPV2-EXT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:36:24 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 104.846154 | 477 | 0.760088 | 464 | 4,089 | 6.693966 | 0.280172 | 0.007727 | 0.010625 | 0.014166 | 0.332582 | 0.251449 | 0.217321 | 0.217321 | 0.217321 | 0.217321 | 0 | 0.098765 | 0.088775 | 4,089 | 38 | 478 | 107.605263 | 0.734836 | 0.081683 | 0 | 0.066667 | 0 | 0 | 0.200747 | 0.011746 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.233333 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87ddc3796f546cecbc43d7882cad94383f6fc90d | 4,531 | py | Python | disent/dataset/sampling/_random__episodes.py | nmichlo/disent | c4fb871cdcdbf833e95e88a4637700c5b0e75613 | [
"MIT"
] | 47 | 2020-04-29T18:57:09.000Z | 2022-03-21T02:26:29.000Z | disent/dataset/sampling/_random__episodes.py | nmichlo/msc-research | 625e57eca77bbfbc4728ccebdb0733e1613bd258 | [
"MIT"
] | 29 | 2021-03-14T21:36:43.000Z | 2022-02-23T16:52:42.000Z | disent/dataset/sampling/_random__episodes.py | nmichlo/msc-research | 625e57eca77bbfbc4728ccebdb0733e1613bd258 | [
"MIT"
] | 7 | 2021-05-28T08:59:40.000Z | 2022-03-03T15:13:58.000Z | # ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
# MIT License
#
# Copyright (c) 2021 Nathan Juraj Michlo
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Softwar... | 46.234694 | 140 | 0.556169 | 490 | 4,531 | 5.038776 | 0.402041 | 0.068044 | 0.017011 | 0.017821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005124 | 0.267711 | 4,531 | 97 | 141 | 46.71134 | 0.738999 | 0.527036 | 0 | 0 | 0 | 0 | 0.100768 | 0 | 0 | 0 | 0 | 0.010309 | 0.081081 | 1 | 0.135135 | false | 0 | 0.081081 | 0.027027 | 0.324324 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
87e47d2f9e6d76d05a9840ee76b6fd2188f03022 | 1,605 | py | Python | task_manager/tasks/tests/test_apiview.py | kunatastic/kunatastic-task-manager | 06f60d5ba8bb5bc1b10ab98b6475a64780341416 | [
"MIT"
] | null | null | null | task_manager/tasks/tests/test_apiview.py | kunatastic/kunatastic-task-manager | 06f60d5ba8bb5bc1b10ab98b6475a64780341416 | [
"MIT"
] | null | null | null | task_manager/tasks/tests/test_apiview.py | kunatastic/kunatastic-task-manager | 06f60d5ba8bb5bc1b10ab98b6475a64780341416 | [
"MIT"
] | null | null | null | from django.test import TestCase, RequestFactory
from django.contrib.auth.models import User
from tasks.models import Task, STATUS_CHOICES
from rest_framework import status
class ApiViewTestCase(TestCase):
def setUp(self):
self.factory = RequestFactory()
self.user = User.objects.create(usernam... | 34.148936 | 89 | 0.616822 | 184 | 1,605 | 5.266304 | 0.293478 | 0.04128 | 0.058824 | 0.065015 | 0.606811 | 0.606811 | 0.606811 | 0.575851 | 0.575851 | 0.355005 | 0 | 0.022053 | 0.265421 | 1,605 | 47 | 90 | 34.148936 | 0.79983 | 0 | 0 | 0.55 | 0 | 0 | 0.116438 | 0.031133 | 0 | 0 | 0 | 0 | 0.075 | 1 | 0.075 | false | 0.075 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
87e94131fe68ead5a4a03414ff5a375f345cdefe | 365 | py | Python | api/migrations/0012_auto_20181130_1622.py | apigram/jade-api | 1aece29c3109db68897fdf854be431554e7f2863 | [
"Apache-2.0"
] | null | null | null | api/migrations/0012_auto_20181130_1622.py | apigram/jade-api | 1aece29c3109db68897fdf854be431554e7f2863 | [
"Apache-2.0"
] | null | null | null | api/migrations/0012_auto_20181130_1622.py | apigram/jade-api | 1aece29c3109db68897fdf854be431554e7f2863 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.2 on 2018-11-30 05:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0011_auto_20181130_1533'),
]
operations = [
migrations.RenameField(
model_name='orderitem',
old_name='price',
... | 19.210526 | 47 | 0.586301 | 40 | 365 | 5.175 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121569 | 0.30137 | 365 | 18 | 48 | 20.277778 | 0.690196 | 0.123288 | 0 | 0 | 1 | 0 | 0.157233 | 0.072327 | 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 |
87eef9c4df849134f2f163bb99a1952208882266 | 11,391 | py | Python | appengine/monorail/features/test/inboundemail_test.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | appengine/monorail/features/test/inboundemail_test.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | appengine/monorail/features/test/inboundemail_test.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is govered by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
"""Unittests for monorail.feature.inboundemail."""
import unittest
import mox
from features i... | 39.27931 | 80 | 0.717233 | 1,322 | 11,391 | 6.031014 | 0.164902 | 0.033363 | 0.035746 | 0.020068 | 0.647937 | 0.586856 | 0.585727 | 0.579707 | 0.574062 | 0.55713 | 0 | 0.011103 | 0.169783 | 11,391 | 289 | 81 | 39.415225 | 0.831976 | 0.025898 | 0 | 0.57265 | 0 | 0 | 0.102817 | 0.017212 | 0 | 0 | 0 | 0 | 0.136752 | 0 | null | null | 0 | 0.055556 | 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 |
87efedf51f034fde0023d5cc5504ec876828cd6a | 298 | py | Python | backend/apps/dorm/migrations/0002_delete_organizationdormmanager.py | YernarT/dormitory_management_system | b9e1edc6a85d93f3d10a8985c1b6042fc60d318c | [
"MIT"
] | 1 | 2022-03-24T10:15:14.000Z | 2022-03-24T10:15:14.000Z | backend/apps/dorm/migrations/0002_delete_organizationdormmanager.py | YernarT/dormitory_management_system | b9e1edc6a85d93f3d10a8985c1b6042fc60d318c | [
"MIT"
] | null | null | null | backend/apps/dorm/migrations/0002_delete_organizationdormmanager.py | YernarT/dormitory_management_system | b9e1edc6a85d93f3d10a8985c1b6042fc60d318c | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2022-05-02 10:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dorm', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name='OrganizationDormManager',
),
]
| 17.529412 | 47 | 0.607383 | 30 | 298 | 6 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088785 | 0.281879 | 298 | 16 | 48 | 18.625 | 0.752336 | 0.151007 | 0 | 0 | 1 | 0 | 0.155378 | 0.091633 | 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 |
87f1699917fa0618a3eb737348c6e1fb33e375d8 | 7,649 | py | Python | base/settings.py | SimonF24/ChironLearning | 42cb7bc8b277d0bbad712d7bc60e9acf511f4a25 | [
"Unlicense"
] | null | null | null | base/settings.py | SimonF24/ChironLearning | 42cb7bc8b277d0bbad712d7bc60e9acf511f4a25 | [
"Unlicense"
] | 3 | 2020-06-06T01:55:54.000Z | 2021-06-10T22:58:02.000Z | base/settings.py | SimonF24/ChironLearning | 42cb7bc8b277d0bbad712d7bc60e9acf511f4a25 | [
"Unlicense"
] | null | null | null | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | 29.419231 | 120 | 0.645705 | 817 | 7,649 | 5.877601 | 0.348837 | 0.029988 | 0.03207 | 0.036443 | 0.143274 | 0.13307 | 0.091837 | 0.091837 | 0.050396 | 0.025406 | 0 | 0.008567 | 0.221728 | 7,649 | 259 | 121 | 29.532819 | 0.798085 | 0.210224 | 0 | 0.108696 | 1 | 0 | 0.452091 | 0.287285 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.048913 | 0.005435 | 0 | 0.005435 | 0 | 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 |
87fc075e3b96cb1ea561a3629d1b8be8091ddf10 | 18,790 | py | Python | test_scrubby.py | creachadair/scrubby | fb485c7e929eb4db321d2e8b1dbe4b6fb75ee8aa | [
"BSD-3-Clause"
] | 1 | 2019-09-20T09:28:39.000Z | 2019-09-20T09:28:39.000Z | test_scrubby.py | creachadair/scrubby | fb485c7e929eb4db321d2e8b1dbe4b6fb75ee8aa | [
"BSD-3-Clause"
] | null | null | null | test_scrubby.py | creachadair/scrubby | fb485c7e929eb4db321d2e8b1dbe4b6fb75ee8aa | [
"BSD-3-Clause"
] | null | null | null | ##
## Name: test_scrubby.py
## Purpose: Unit tests for scrubby.py
##
## Copyright (C) 2009, Michael J. Fromberger, All Rights Reserved.
##
import scrubby as S
import unittest, functools
# {{ class test_scanner
class test_scanner(unittest.TestCase):
"""Low-level tests for the markup_scanner class. Only test... | 38.902692 | 79 | 0.535285 | 2,523 | 18,790 | 3.919144 | 0.136346 | 0.160801 | 0.124595 | 0.031857 | 0.447512 | 0.350829 | 0.258091 | 0.217638 | 0.147553 | 0.103459 | 0 | 0.031064 | 0.283874 | 18,790 | 482 | 80 | 38.983402 | 0.703775 | 0.148057 | 0 | 0.190909 | 0 | 0.012121 | 0.105467 | 0.011655 | 0 | 0 | 0 | 0 | 0.542424 | 1 | 0.081818 | false | 0 | 0.006061 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e2049f929d5c4844a518ceded225b28fa0cf13eb | 247 | py | Python | examples/fullproject/settings.py | cnkailyn/toapi | 03a49d02dd0a55f1f83270154144e1a08fae6b78 | [
"Apache-2.0"
] | null | null | null | examples/fullproject/settings.py | cnkailyn/toapi | 03a49d02dd0a55f1f83270154144e1a08fae6b78 | [
"Apache-2.0"
] | null | null | null | examples/fullproject/settings.py | cnkailyn/toapi | 03a49d02dd0a55f1f83270154144e1a08fae6b78 | [
"Apache-2.0"
] | 1 | 2019-11-12T20:15:50.000Z | 2019-11-12T20:15:50.000Z | from toapi.settings import Settings
class MySettings(Settings):
cache = {
'type': 'redis',
'url': '127.0.0.0.1:6789/0'
}
storage = {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'db.sqlite3',
}
| 19 | 47 | 0.534413 | 28 | 247 | 4.714286 | 0.75 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.291498 | 247 | 12 | 48 | 20.583333 | 0.674286 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 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 |
e20b93e7445d727a6962bad5d531694cf395a841 | 2,952 | py | Python | gateways/Wunderground.py | AnsgarSchmidt/EpicFabLabWeather | 147372b396a61faecfa461ccaeffba13697dd313 | [
"Apache-2.0"
] | null | null | null | gateways/Wunderground.py | AnsgarSchmidt/EpicFabLabWeather | 147372b396a61faecfa461ccaeffba13697dd313 | [
"Apache-2.0"
] | null | null | null | gateways/Wunderground.py | AnsgarSchmidt/EpicFabLabWeather | 147372b396a61faecfa461ccaeffba13697dd313 | [
"Apache-2.0"
] | null | null | null | import time
import urllib
import requests
import threading
import ConfigParser
from datetime import datetime
class Wunderground(threading.Thread):
def __init__(self, data):
threading.Thread.__init__(self)
self.setDaemon(True)
self._data = data
self._config = ConfigParser.ConfigPar... | 45.415385 | 108 | 0.519648 | 303 | 2,952 | 4.90099 | 0.376238 | 0.057239 | 0.137374 | 0.137374 | 0.103704 | 0.068687 | 0.020202 | 0 | 0 | 0 | 0 | 0.042543 | 0.323171 | 2,952 | 64 | 109 | 46.125 | 0.700701 | 0.007791 | 0 | 0 | 0 | 0 | 0.25521 | 0.030748 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018519 | 0.111111 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e20f92d2f2b1bfaf5e2f4d388f789214b697711d | 3,439 | py | Python | distribution.py | jstac/production_chains | 8e68ffab1902fa31f0bd839de142bd7cb4361777 | [
"MIT"
] | 4 | 2018-01-29T19:20:59.000Z | 2019-11-24T01:37:12.000Z | distribution.py | jstac/production_chains | 8e68ffab1902fa31f0bd839de142bd7cb4361777 | [
"MIT"
] | null | null | null | distribution.py | jstac/production_chains | 8e68ffab1902fa31f0bd839de142bd7cb4361777 | [
"MIT"
] | 2 | 2017-12-03T07:04:05.000Z | 2019-12-27T17:22:47.000Z |
"""
Computes distribution of firm size, as measured by in-house production or
value added
This file is largely depreciated but may contain useful code.
John Stachurski, August 2012.
"""
from __init__ import *
from rp import RPline, RPtree
from scipy.stats import linregress, lognorm, norm
k = 1
if k == 1:
# G... | 26.05303 | 73 | 0.587962 | 579 | 3,439 | 3.454231 | 0.309154 | 0.0225 | 0.018 | 0.0105 | 0.169 | 0.149 | 0.136 | 0.136 | 0.115 | 0.115 | 0 | 0.036877 | 0.258796 | 3,439 | 131 | 74 | 26.251908 | 0.747744 | 0.210526 | 0 | 0.1375 | 0 | 0 | 0.051807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e2138335c97d2e952832d927cf1e7f0dbbd45506 | 801 | py | Python | rocketman/types/launch.py | Batucho/Rocketman | ff93b7e68be269e4b1b04b4d72611e308e73a76b | [
"MIT"
] | null | null | null | rocketman/types/launch.py | Batucho/Rocketman | ff93b7e68be269e4b1b04b4d72611e308e73a76b | [
"MIT"
] | null | null | null | rocketman/types/launch.py | Batucho/Rocketman | ff93b7e68be269e4b1b04b4d72611e308e73a76b | [
"MIT"
] | null | null | null | from typing import Dict, List, TypedDict, Union
class FairingData(TypedDict):
recovered: bool
recovery_attempt: bool
reused: bool
ships: List[str]
class FailureData(TypedDict):
time: Union[int, None]
altitude: Union[float, None]
reason: Union[str, None]
class LaunchData(TypedDict):
... | 19.536585 | 47 | 0.66417 | 103 | 801 | 5.038835 | 0.475728 | 0.067437 | 0.046243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253433 | 801 | 40 | 48 | 20.025 | 0.867893 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.029412 | 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 |
e213cb6fd04be702427fe9eca99b077d18f48fd4 | 393 | py | Python | post/migrations/0004_auto_20190911_0341.py | abhiabhi94/blog | 0da1522361e47af3bbfba974f801277e14c7a397 | [
"MIT"
] | null | null | null | post/migrations/0004_auto_20190911_0341.py | abhiabhi94/blog | 0da1522361e47af3bbfba974f801277e14c7a397 | [
"MIT"
] | 12 | 2019-09-11T18:37:19.000Z | 2019-09-16T21:51:35.000Z | post/migrations/0004_auto_20190911_0341.py | abhiabhi94/blog | 0da1522361e47af3bbfba974f801277e14c7a397 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-09-11 03:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('post', '0003_auto_20190909_2139'),
]
operations = [
migrations.AlterField(
model_name='post',
name='title',
... | 20.684211 | 63 | 0.597964 | 44 | 393 | 5.227273 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117438 | 0.284987 | 393 | 18 | 64 | 21.833333 | 0.701068 | 0.114504 | 0 | 0 | 1 | 0 | 0.104046 | 0.066474 | 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 |
35546a53ac2158913adaa7db7a3df9c8fa9de110 | 591 | py | Python | project_manager/task_creator.py | trompamusic/crowd_task_manager | f606212e65b4a17743670b79e901225c374dbd38 | [
"Apache-2.0"
] | 1 | 2021-03-25T20:55:43.000Z | 2021-03-25T20:55:43.000Z | project_manager/task_creator.py | trompamusic/crowd_task_manager | f606212e65b4a17743670b79e901225c374dbd38 | [
"Apache-2.0"
] | 24 | 2020-03-18T13:37:17.000Z | 2022-03-12T00:19:47.000Z | project_manager/task_creator.py | trompamusic/crowd_task_manager | f606212e65b4a17743670b79e901225c374dbd38 | [
"Apache-2.0"
] | 2 | 2020-03-19T18:16:32.000Z | 2020-11-17T14:56:20.000Z | VALID_TASK_TYPES = {"transcription", "find", "fix", "verify"}
class TaskProfile:
def __init__(self, project=str, task_name=str, task_type=str, priority,
segment_size):
self.project = project
self.task_name = task_name
self.task_type = task_type
self.segment_size = ... | 29.55 | 75 | 0.598985 | 69 | 591 | 4.826087 | 0.463768 | 0.072072 | 0.09009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004831 | 0.299492 | 591 | 19 | 76 | 31.105263 | 0.799517 | 0 | 0 | 0 | 0 | 0 | 0.043993 | 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 |
3554f92f96ce263a57ce96f16a587af6e5830187 | 480 | py | Python | oldplugins/b64.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | 1 | 2019-06-27T08:45:23.000Z | 2019-06-27T08:45:23.000Z | oldplugins/b64.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | null | null | null | oldplugins/b64.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | null | null | null | import base64
helpstring = "b64 encode|decode <string>"
minlevel = 1
arguments = ["self", "info", "args"]
def main(connection, info, args) :
"""Decodes/encodes using base64"""
if args[1] == "encode" :
connection.msg(info["channel"], "%s: %s" % (info["sender"], base64.b64encode(" ".join(args[2:]))))
... | 40 | 131 | 0.589583 | 59 | 480 | 4.79661 | 0.542373 | 0.056537 | 0.120141 | 0.169611 | 0.29682 | 0.29682 | 0.29682 | 0.29682 | 0.29682 | 0 | 0 | 0.047146 | 0.160417 | 480 | 11 | 132 | 43.636364 | 0.655087 | 0.058333 | 0 | 0 | 0 | 0 | 0.20852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 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 |
3555c066524abd7a4e0f5ab8403c61d71341a451 | 956 | py | Python | project_data/views.py | joyliao07/ec2_pipeline | b27ce6cfb38d9308d8dd718ef4b524eccec3a61b | [
"MIT"
] | null | null | null | project_data/views.py | joyliao07/ec2_pipeline | b27ce6cfb38d9308d8dd718ef4b524eccec3a61b | [
"MIT"
] | null | null | null | project_data/views.py | joyliao07/ec2_pipeline | b27ce6cfb38d9308d8dd718ef4b524eccec3a61b | [
"MIT"
] | null | null | null | from django.shortcuts import render, get_list_or_404, get_object_or_404
from django.core.cache.backends.base import DEFAULT_TIMEOUT
from django.views.decorators.cache import cache_page
from django.core.paginator import Paginator
from django.conf import settings
from .models import Kickstarter
CACHE_TTL = getattr(sett... | 27.314286 | 71 | 0.733264 | 122 | 956 | 5.52459 | 0.344262 | 0.074184 | 0.026706 | 0.035608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019975 | 0.162134 | 956 | 34 | 72 | 28.117647 | 0.821473 | 0.210251 | 0 | 0 | 0 | 0 | 0.07327 | 0.039349 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
356c5e591030b2919e7ea4a29eef3b7dbedb0e9c | 281 | py | Python | wrapperR/functions/cor.py | manuparra/oc2dm | 5459c1fdde909fdd4d59b3ad29d7d5c962b23694 | [
"MIT"
] | 1 | 2019-11-27T18:34:12.000Z | 2019-11-27T18:34:12.000Z | wrapperR/functions/cor.py | manuparra/oc2dm | 5459c1fdde909fdd4d59b3ad29d7d5c962b23694 | [
"MIT"
] | null | null | null | wrapperR/functions/cor.py | manuparra/oc2dm | 5459c1fdde909fdd4d59b3ad29d7d5c962b23694 | [
"MIT"
] | 1 | 2020-04-10T14:44:44.000Z | 2020-04-10T14:44:44.000Z | import rpy2.robjects as ro
def cor (parameterCore):
cor = ro.r("""
dataset = read.csv(file="{0}", header = TRUE, sep=',')
resultfit = cor({1})
saveRDS(resultfit, "{2}")
""".format(parameterCore.dataset['ruta'], parameterCore.parameters, parameterCore.outputPMML)) | 35.125 | 98 | 0.658363 | 33 | 281 | 5.606061 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016736 | 0.149466 | 281 | 8 | 98 | 35.125 | 0.757322 | 0 | 0 | 0 | 0 | 0 | 0.43617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3571e850b0bdf1b7e48f43abae550eb7557a1743 | 8,867 | py | Python | sdk/python/pulumi_aws/connect/get_hours_of_operation.py | dmelo/pulumi-aws | dd1a08d1fb93bab0d046aa410ca660f05ca0a58c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/connect/get_hours_of_operation.py | dmelo/pulumi-aws | dd1a08d1fb93bab0d046aa410ca660f05ca0a58c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/connect/get_hours_of_operation.py | dmelo/pulumi-aws | dd1a08d1fb93bab0d046aa410ca660f05ca0a58c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 36.945833 | 181 | 0.662682 | 1,076 | 8,867 | 5.193309 | 0.139405 | 0.073908 | 0.168933 | 0.074087 | 0.523085 | 0.429313 | 0.383679 | 0.372405 | 0.318898 | 0.297065 | 0 | 0.01091 | 0.245404 | 8,867 | 239 | 182 | 37.100418 | 0.824242 | 0.291418 | 0 | 0.112903 | 1 | 0 | 0.145362 | 0.056681 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104839 | false | 0 | 0.048387 | 0 | 0.258065 | 0 | 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 |
357685bc5169ef9a08b96c03043e6d6127072d62 | 1,299 | py | Python | app/models.py | cobujo/flask-dance-google-security-sqla | e8b5f30d00e737453d5048925b00e3181cd912e5 | [
"MIT"
] | 2 | 2020-10-14T14:21:50.000Z | 2022-02-17T15:47:23.000Z | app/models.py | cobujo/flask-dance-google-security-sqla | e8b5f30d00e737453d5048925b00e3181cd912e5 | [
"MIT"
] | 3 | 2020-05-01T14:39:41.000Z | 2021-12-09T10:13:17.000Z | app/models.py | cobujo/flask-dance-google-security-sqla | e8b5f30d00e737453d5048925b00e3181cd912e5 | [
"MIT"
] | 6 | 2020-04-04T17:50:10.000Z | 2022-01-15T08:56:48.000Z | from flask_sqlalchemy import SQLAlchemy
from flask_security import UserMixin, RoleMixin, SQLAlchemyUserDatastore, Security
from flask_dance.consumer.storage.sqla import OAuthConsumerMixin
db = SQLAlchemy()
roles_users = db.Table(
"roles_users",
db.Column("user_id", db.Integer(), db.ForeignKey("user.id")),
... | 30.928571 | 82 | 0.719784 | 174 | 1,299 | 5.281609 | 0.304598 | 0.104461 | 0.108814 | 0.087051 | 0.252448 | 0.130577 | 0.071817 | 0.071817 | 0 | 0 | 0 | 0.012534 | 0.140108 | 1,299 | 41 | 83 | 31.682927 | 0.810206 | 0.015396 | 0 | 0 | 0 | 0 | 0.039937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.035714 | 0.107143 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3581396c7c0a39cc1f50bd2ac6a9842765c5eb8c | 6,264 | py | Python | ciphers.py | nils-wisiol/ntru | 9e8848c8883ffd61724604a7ad6dc39498331e2d | [
"MIT"
] | 1 | 2020-03-12T15:09:55.000Z | 2020-03-12T15:09:55.000Z | ciphers.py | nils-wisiol/ntru | 9e8848c8883ffd61724604a7ad6dc39498331e2d | [
"MIT"
] | 1 | 2020-02-06T19:25:46.000Z | 2020-02-06T19:25:46.000Z | ciphers.py | nils-wisiol/ntru | 9e8848c8883ffd61724604a7ad6dc39498331e2d | [
"MIT"
] | null | null | null | from math import gcd, ceil, sqrt
from numpy import around, int32, zeros
from numpy.random import RandomState
from polymod import Poly
def isprime(n):
"""
>>> isprime(1109)
True
>>> isprime(10**6)
False
"""
# this is slow and basic, but saves the sympy dependency
# alternatively, fro... | 36.847059 | 125 | 0.589879 | 947 | 6,264 | 3.783527 | 0.203801 | 0.049121 | 0.025398 | 0.039073 | 0.363104 | 0.293888 | 0.232208 | 0.232208 | 0.232208 | 0.196483 | 0 | 0.043411 | 0.279215 | 6,264 | 169 | 126 | 37.065089 | 0.750166 | 0.459291 | 0 | 0.032787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 0.131148 | 1 | 0.131148 | false | 0.016393 | 0.065574 | 0.016393 | 0.344262 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
358c0257fc7326374f608ab35c4ee1e3e8f5beb1 | 397 | py | Python | visitors/migrations/0018_auto_20201128_1544.py | rmaceissoft/django-manolo | 7a447b6b06a5a9a0bbc3ed5daf754721a48bbd76 | [
"BSD-3-Clause"
] | null | null | null | visitors/migrations/0018_auto_20201128_1544.py | rmaceissoft/django-manolo | 7a447b6b06a5a9a0bbc3ed5daf754721a48bbd76 | [
"BSD-3-Clause"
] | null | null | null | visitors/migrations/0018_auto_20201128_1544.py | rmaceissoft/django-manolo | 7a447b6b06a5a9a0bbc3ed5daf754721a48bbd76 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.1.1 on 2020-11-28 15:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('visitors', '0017_auto_20201127_0024'),
]
operations = [
migrations.AlterField(
model_name='visitor',
name='date',
... | 20.894737 | 61 | 0.602015 | 44 | 397 | 5.318182 | 0.795455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108772 | 0.282116 | 397 | 18 | 62 | 22.055556 | 0.712281 | 0.11335 | 0 | 0 | 1 | 0 | 0.12 | 0.065714 | 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 |
358d6a94d2026160fd732a73e9ca799a275c01cc | 621 | py | Python | novice/python/Inflammation.py | NelleV/2014-05-19-scilifelab | c1df25eb893d09b1947be861b1dc18360a6b71ba | [
"CC-BY-3.0"
] | 2 | 2015-02-24T21:18:51.000Z | 2015-11-17T15:07:53.000Z | novice/python/Inflammation.py | NelleV/2014-05-19-scilifelab | c1df25eb893d09b1947be861b1dc18360a6b71ba | [
"CC-BY-3.0"
] | null | null | null | novice/python/Inflammation.py | NelleV/2014-05-19-scilifelab | c1df25eb893d09b1947be861b1dc18360a6b71ba | [
"CC-BY-3.0"
] | null | null | null |
# coding: utf-8
# In[ ]:
def analyze(filename):
data = np.loadtxt(fname=filename, delimiter=',')
plt.figure(figsize=(10.0, 3.0))
plt.subplot(1, 3, 1)
plt.ylabel('average')
plt.plot(data.mean(0))
plt.subplot(1, 3, 2)
plt.ylabel('max')
plt.plot(data.max(0))
plt.subplot(1,... | 17.25 | 52 | 0.589372 | 90 | 621 | 3.966667 | 0.477778 | 0.044818 | 0.092437 | 0.10084 | 0.109244 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040598 | 0.246377 | 621 | 35 | 53 | 17.742857 | 0.722222 | 0.043478 | 0 | 0 | 0 | 0 | 0.044218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
358de1e772884739dd6e5f17a47ecb55c707d753 | 1,240 | py | Python | Spell Compendium/scr/Spell1130 - Shield of Warding.py | Sagenlicht/ToEE_Mods | a4b07f300df6067f834e09fcbc4c788f1f4e417b | [
"MIT"
] | 1 | 2021-04-26T08:03:56.000Z | 2021-04-26T08:03:56.000Z | Spell Compendium/scr/Spell1130 - Shield of Warding.py | Sagenlicht/ToEE_Mods | a4b07f300df6067f834e09fcbc4c788f1f4e417b | [
"MIT"
] | 2 | 2021-06-11T05:55:01.000Z | 2021-08-03T23:41:02.000Z | Spell Compendium/scr/Spell1130 - Shield of Warding.py | Sagenlicht/ToEE_Mods | a4b07f300df6067f834e09fcbc4c788f1f4e417b | [
"MIT"
] | 1 | 2021-05-17T15:37:58.000Z | 2021-05-17T15:37:58.000Z | from toee import *
def OnBeginSpellCast(spell):
print "Shield of Warding OnBeginSpellCast"
print "spell.target_list=", spell.target_list
print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level
def OnSpellEffect(spell):
print "Shield of Warding OnSpellEffect"
spell.duration ... | 37.575758 | 115 | 0.716935 | 162 | 1,240 | 5.308642 | 0.419753 | 0.097674 | 0.087209 | 0.083721 | 0.193023 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01472 | 0.178226 | 1,240 | 33 | 116 | 37.575758 | 0.829244 | 0.029839 | 0 | 0.08 | 0 | 0 | 0.194838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0.24 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3597eaa5cf73a08dfc25c7a33602f4dd4fca1fb2 | 277 | py | Python | draft/research/mock_example/index.py | qorzj/lessweb | d21473d724216c3afa1101729137573ff21b7015 | [
"MIT"
] | 17 | 2017-11-02T02:07:35.000Z | 2020-07-23T06:33:36.000Z | draft/research/mock_example/index.py | qorzj/lessweb | d21473d724216c3afa1101729137573ff21b7015 | [
"MIT"
] | 12 | 2018-02-06T05:52:04.000Z | 2021-02-07T14:43:35.000Z | draft/research/mock_example/index.py | qorzj/lessweb | d21473d724216c3afa1101729137573ff21b7015 | [
"MIT"
] | 2 | 2018-06-06T09:30:44.000Z | 2018-09-19T02:03:16.000Z | from lessweb import Application
from lessweb.plugin import database
from controller import list_reply
database.init(uri='mysql+mysqlconnector://root:pwd@localhost/db')
app = Application()
app.add_get_mapping('/reply/list', list_reply)
if __name__ == '__main__':
app.run() | 27.7 | 65 | 0.779783 | 38 | 277 | 5.368421 | 0.657895 | 0.107843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101083 | 277 | 10 | 66 | 27.7 | 0.819277 | 0 | 0 | 0 | 0 | 0 | 0.226619 | 0.158273 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
35998834819a1cd81b1bb26d69fb8abae1df28c3 | 840 | py | Python | keras_ai#6.py | evandrocapo/Keras | 5e2f73254e38d99ea1027b07c8e887be0d71fcac | [
"MIT"
] | null | null | null | keras_ai#6.py | evandrocapo/Keras | 5e2f73254e38d99ea1027b07c8e887be0d71fcac | [
"MIT"
] | null | null | null | keras_ai#6.py | evandrocapo/Keras | 5e2f73254e38d99ea1027b07c8e887be0d71fcac | [
"MIT"
] | null | null | null | from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Conv2D, MaxPooling2D, Flatten
from keras.utils import np_utils
import matplotlib.pyplot as plt
import numpy as np
(X_train, Y_train), (X_test, Y_test) = mnist.load_data()
X_train = X_train.reshape(X_train.shape[0],28,... | 30 | 81 | 0.758333 | 142 | 840 | 4.295775 | 0.387324 | 0.098361 | 0.072131 | 0.039344 | 0.052459 | 0.052459 | 0 | 0 | 0 | 0 | 0 | 0.049934 | 0.094048 | 840 | 28 | 82 | 30 | 0.751643 | 0.089286 | 0 | 0 | 0 | 0 | 0.055046 | 0.031455 | 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 |
359abba9284f2f81511e44de3784c88e020a34a1 | 521 | py | Python | python_sample/cloud_API_endpoint/my_driving/edge_endpoint/app.py | alexcourouble/automotive-iot-samples | ead3549e052968b7f2c0a30c3787f34e15e373fd | [
"Apache-2.0"
] | 11 | 2019-09-02T12:38:05.000Z | 2021-01-03T17:52:32.000Z | python_sample/cloud_API_endpoint/my_driving/edge_endpoint/app.py | alexcourouble/automotive-iot-samples | ead3549e052968b7f2c0a30c3787f34e15e373fd | [
"Apache-2.0"
] | 34 | 2019-12-29T21:31:35.000Z | 2021-10-06T03:08:21.000Z | python_sample/cloud_API_endpoint/my_driving/edge_endpoint/app.py | alexcourouble/automotive-iot-samples | ead3549e052968b7f2c0a30c3787f34e15e373fd | [
"Apache-2.0"
] | 7 | 2019-04-28T22:14:26.000Z | 2021-02-17T16:58:34.000Z | from flask import Flask
from flask_cors import CORS
from flask import request
from flask import json
from db import write_event
# Initiating the flask app
app = Flask(__name__)
# CORS wrapper to allow cross domain requests
CORS(app)
@app.route('/add_event', methods=['POST'])
def add_event():
"""
Recieve th... | 16.806452 | 45 | 0.702495 | 78 | 521 | 4.525641 | 0.423077 | 0.101983 | 0.127479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21881 | 521 | 30 | 46 | 17.366667 | 0.867322 | 0.293666 | 0 | 0 | 0 | 0 | 0.107246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
359f6bfc94b7b756786a4035dd739d6f3f462d2e | 8,678 | py | Python | ceph_deploy/new.py | osynge/ceph-deploy | 8cd1e4e03fddef953c67501573030cfedf5aa70d | [
"MIT"
] | null | null | null | ceph_deploy/new.py | osynge/ceph-deploy | 8cd1e4e03fddef953c67501573030cfedf5aa70d | [
"MIT"
] | null | null | null | ceph_deploy/new.py | osynge/ceph-deploy | 8cd1e4e03fddef953c67501573030cfedf5aa70d | [
"MIT"
] | null | null | null | import errno
import logging
import os
import uuid
import struct
import time
import base64
import socket
from ceph_deploy.cliutil import priority
from ceph_deploy import conf, hosts, exc
from ceph_deploy.util import arg_validators, ssh, net
from ceph_deploy.misc import mon_hosts
from ceph_deploy.lib import remoto
from ... | 30.992857 | 110 | 0.602904 | 1,141 | 8,678 | 4.462752 | 0.266433 | 0.010801 | 0.023566 | 0.011194 | 0.111155 | 0.075412 | 0.034564 | 0.034564 | 0.034564 | 0.034564 | 0 | 0.007468 | 0.290159 | 8,678 | 279 | 111 | 31.103943 | 0.819156 | 0.094607 | 0 | 0.170732 | 0 | 0 | 0.201928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019512 | 0.068293 | 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 |
35a181e1b609e6ddfd7f18b8ed39316475955af5 | 396 | py | Python | volunteer_categories/migrations/0004_auto_20200808_2105.py | UFestYeg/UFestVolunteerSite | 3802cc54e893fb3596483aa3946cd622415d1150 | [
"MIT"
] | null | null | null | volunteer_categories/migrations/0004_auto_20200808_2105.py | UFestYeg/UFestVolunteerSite | 3802cc54e893fb3596483aa3946cd622415d1150 | [
"MIT"
] | null | null | null | volunteer_categories/migrations/0004_auto_20200808_2105.py | UFestYeg/UFestVolunteerSite | 3802cc54e893fb3596483aa3946cd622415d1150 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-08-09 03:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('volunteer_categories', '0003_auto_20200808_1221'),
]
operations = [
migrations.RenameField(
model_name='role',
old_name='num... | 20.842105 | 60 | 0.618687 | 44 | 396 | 5.318182 | 0.818182 | 0.08547 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108392 | 0.277778 | 396 | 18 | 61 | 22 | 0.70979 | 0.113636 | 0 | 0 | 1 | 0 | 0.232092 | 0.065903 | 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 |
35a2ed28dd30ce51ad07b5876ef47757701b92a3 | 852 | py | Python | models/option.py | Zechee/flask-test | baedc51e102bb0317a78e9751d68ef38870bce0f | [
"MIT"
] | null | null | null | models/option.py | Zechee/flask-test | baedc51e102bb0317a78e9751d68ef38870bce0f | [
"MIT"
] | null | null | null | models/option.py | Zechee/flask-test | baedc51e102bb0317a78e9751d68ef38870bce0f | [
"MIT"
] | null | null | null | from db import db
from datetime import datetime
from sqlalchemy import ForeignKey, func
class OptionModel(db.Model):
__tablename__ = "options"
id = db.Column(db.Integer, primary_key=True)
option_name = db.Column(db.String, nullable=False, unique=True)
option_length = db.Column(db.Integer)
op_defau... | 29.37931 | 67 | 0.680751 | 120 | 852 | 4.658333 | 0.441667 | 0.100179 | 0.125224 | 0.091234 | 0.221825 | 0.153846 | 0.153846 | 0.153846 | 0.153846 | 0 | 0 | 0.001458 | 0.194836 | 852 | 28 | 68 | 30.428571 | 0.813411 | 0 | 0 | 0.095238 | 0 | 0 | 0.019953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.047619 | 0.761905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
35a650e7da06c05db983adf0cb321d9eb3782824 | 3,324 | py | Python | ml-service/ml-server/test_TeamAssigner.py | AmitMandliya/TeamFormationAssistant | 6063fb2cad431f2a14191ecfe0ea87eccba1ba62 | [
"MIT"
] | 3 | 2020-10-01T02:55:21.000Z | 2020-10-05T01:37:50.000Z | ml-service/ml-server/test_TeamAssigner.py | AmitMandliya/TeamFormationAssistant | 6063fb2cad431f2a14191ecfe0ea87eccba1ba62 | [
"MIT"
] | 40 | 2020-09-26T17:35:36.000Z | 2020-10-27T23:16:32.000Z | ml-service/ml-server/test_TeamAssigner.py | AmitMandliya/TeamFormationAssistant | 6063fb2cad431f2a14191ecfe0ea87eccba1ba62 | [
"MIT"
] | 5 | 2020-10-27T03:21:57.000Z | 2021-09-19T19:58:35.000Z | import warnings
import unittest
import pytest
from unittest.mock import MagicMock, patch
import localAssigner
import pandas as pd
import mysql.connector
class testTeamAssigner(unittest.TestCase):
def testSetEmployeeAssignment(self):
""" Tests the method setEmployeeAssignment of localAssigner.py """
... | 42.075949 | 110 | 0.686221 | 335 | 3,324 | 6.740299 | 0.271642 | 0.049601 | 0.04783 | 0.031887 | 0.695748 | 0.695748 | 0.695748 | 0.695748 | 0.621789 | 0.621789 | 0 | 0.005273 | 0.201264 | 3,324 | 78 | 111 | 42.615385 | 0.845198 | 0.084236 | 0 | 0.631579 | 0 | 0.017544 | 0.152087 | 0.040755 | 0 | 0 | 0 | 0 | 0.315789 | 1 | 0.070175 | false | 0 | 0.122807 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35b32ca90f82453bd8c2a2a211530431746fb3b8 | 382 | py | Python | tasks-around-university/rest/alias/migrations/0002_aliasmaingame_words_right.py | JaliJuhola/tasks-around-tampere | 87853210187764fc7cfcf89397256efbcd324c09 | [
"MIT"
] | null | null | null | tasks-around-university/rest/alias/migrations/0002_aliasmaingame_words_right.py | JaliJuhola/tasks-around-tampere | 87853210187764fc7cfcf89397256efbcd324c09 | [
"MIT"
] | 2 | 2020-06-05T19:08:46.000Z | 2021-06-10T20:51:31.000Z | tasks-around-university/rest/alias/migrations/0002_aliasmaingame_words_right.py | JaliJuhola/tasks-around-tampere | 87853210187764fc7cfcf89397256efbcd324c09 | [
"MIT"
] | 1 | 2019-02-18T08:58:04.000Z | 2019-02-18T08:58:04.000Z | # Generated by Django 2.0.1 on 2019-01-08 23:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('alias', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='aliasmaingame',
name='words_right',
... | 20.105263 | 49 | 0.594241 | 40 | 382 | 5.6 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073801 | 0.290576 | 382 | 18 | 50 | 21.222222 | 0.752768 | 0.117801 | 0 | 0 | 1 | 0 | 0.122388 | 0 | 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 |
35b34e30a846d6b37d44dcd15ca75538b74ab931 | 1,178 | py | Python | aiida_vasp/calcs/tests/test_base.py | DropD/aiida_vasp | 9967f5501a6fc1c67981154068135cec7be5396a | [
"MIT"
] | 3 | 2016-11-18T07:19:57.000Z | 2016-11-28T08:28:38.000Z | aiida_vasp/calcs/tests/test_base.py | DropD/aiida_vasp | 9967f5501a6fc1c67981154068135cec7be5396a | [
"MIT"
] | null | null | null | aiida_vasp/calcs/tests/test_base.py | DropD/aiida_vasp | 9967f5501a6fc1c67981154068135cec7be5396a | [
"MIT"
] | null | null | null | """Unit tests for aiida_vasp.calcs.base."""
# pylint: disable=unused-import,unused-argument,redefined-outer-name, import-outside-toplevel
import pytest
from aiida.common.extendeddicts import AttributeDict
from aiida.engine.utils import instantiate_process
from aiida.manage.manager import get_manager
from aiida_vasp.u... | 39.266667 | 108 | 0.758913 | 155 | 1,178 | 5.651613 | 0.529032 | 0.05137 | 0.031963 | 0.041096 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001998 | 0.150255 | 1,178 | 29 | 109 | 40.62069 | 0.873127 | 0.353141 | 0 | 0.125 | 0 | 0 | 0.069519 | 0.032086 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
35c0ae9dbd5c01d2909482532106065aa98da4f6 | 1,229 | py | Python | accounts/schema/mutations.py | daniel-waruo/e-commerse-api | 6b080039398fb4099a34335317d649dd67783f63 | [
"Apache-2.0"
] | 6 | 2019-11-21T10:09:49.000Z | 2021-06-19T09:52:59.000Z | accounts/schema/mutations.py | daniel-waruo/e-commerse-api | 6b080039398fb4099a34335317d649dd67783f63 | [
"Apache-2.0"
] | null | null | null | accounts/schema/mutations.py | daniel-waruo/e-commerse-api | 6b080039398fb4099a34335317d649dd67783f63 | [
"Apache-2.0"
] | null | null | null | import graphene
from .types import UserType
from ..serializers import UserEditSerializer
class UserEditMutation(graphene.Mutation):
"""
Edit User Information Mutation
This class is used to edit information
that a user has provided in the application
The args to be placed in mutation are:-... | 30.725 | 96 | 0.676973 | 131 | 1,229 | 6.290076 | 0.450382 | 0.038835 | 0.069175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247356 | 1,229 | 39 | 97 | 31.512821 | 0.890811 | 0.164361 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
35c63c692ec1d09544f55412b81d3cf70a304535 | 1,460 | py | Python | source/action/action.py | alexander-l-stone/RogueAcademy | 726ac13448436f74729b6cc98d16e208c77e7674 | [
"MIT"
] | null | null | null | source/action/action.py | alexander-l-stone/RogueAcademy | 726ac13448436f74729b6cc98d16e208c77e7674 | [
"MIT"
] | null | null | null | source/action/action.py | alexander-l-stone/RogueAcademy | 726ac13448436f74729b6cc98d16e208c77e7674 | [
"MIT"
] | null | null | null | from source.entity.entity import Entity
class Action:
"""
Class for holding an action, extend this to make new actions
"""
def __init__(self, originator:Entity, time_remaining:int, **kwargs):
self.originator = originator
self.time:int = time_remaining
self.kwargs:dict = kwargs
... | 29.795918 | 72 | 0.578767 | 179 | 1,460 | 4.569832 | 0.284916 | 0.08802 | 0.110024 | 0.132029 | 0.594132 | 0.594132 | 0.594132 | 0.594132 | 0.594132 | 0.594132 | 0 | 0.002024 | 0.323288 | 1,460 | 48 | 73 | 30.416667 | 0.825911 | 0.09589 | 0 | 0.411765 | 0 | 0 | 0.092116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.029412 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
35ccf66702190d85369cde2a5bd93981cb9ee714 | 7,502 | py | Python | WGAN-GP/main.py | LiubovSobolevskaya/tf2-gan | b2838649302043a1793ced8d187bf5f7aacfb58d | [
"MIT"
] | 2 | 2020-09-30T17:17:19.000Z | 2020-12-23T07:01:11.000Z | WGAN-GP/main.py | LiubovSobolevskaya/tf2-gan | b2838649302043a1793ced8d187bf5f7aacfb58d | [
"MIT"
] | null | null | null | WGAN-GP/main.py | LiubovSobolevskaya/tf2-gan | b2838649302043a1793ced8d187bf5f7aacfb58d | [
"MIT"
] | 1 | 2020-11-26T13:50:25.000Z | 2020-11-26T13:50:25.000Z | """Main file for training of Deep Convolutional Generative Adversarial Network to generate images"""
import glob
import os
import imageio
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
import tensorflow_datasets as tfds
from absl import app, flags
from tqdm import tqdm
from model import Di... | 36.417476 | 100 | 0.637563 | 920 | 7,502 | 4.972826 | 0.245652 | 0.024481 | 0.027541 | 0.018361 | 0.191257 | 0.171148 | 0.094863 | 0.078251 | 0.05071 | 0.027541 | 0 | 0.017924 | 0.256332 | 7,502 | 205 | 101 | 36.595122 | 0.802115 | 0.023327 | 0 | 0.077922 | 1 | 0 | 0.067387 | 0.007108 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.064935 | 0 | 0.142857 | 0.006494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35ce1561e9dfaad663d4501cb6d53c71d5a609dd | 383 | py | Python | citymngmt/migrations/0025_alter_city_polygon.py | NazarenoCavazzon/mibus-api | 1213971d410d9183d8fc1d51eb996bd5ce7158bf | [
"MIT"
] | null | null | null | citymngmt/migrations/0025_alter_city_polygon.py | NazarenoCavazzon/mibus-api | 1213971d410d9183d8fc1d51eb996bd5ce7158bf | [
"MIT"
] | null | null | null | citymngmt/migrations/0025_alter_city_polygon.py | NazarenoCavazzon/mibus-api | 1213971d410d9183d8fc1d51eb996bd5ce7158bf | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-24 16:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('citymngmt', '0024_auto_20210923_0138'),
]
operations = [
migrations.AlterField(
model_name='city',
name='polygon',
... | 20.157895 | 49 | 0.5953 | 41 | 383 | 5.463415 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113971 | 0.289817 | 383 | 18 | 50 | 21.277778 | 0.709559 | 0.117493 | 0 | 0 | 1 | 0 | 0.127976 | 0.068452 | 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 |
35d4dc90083af436ab0dde85756afa345912839f | 1,473 | py | Python | tests/test_vision_models_unet.py | JiahuaWU/fastai | 13a2df812d875abf0558004283392ab40d9bdea1 | [
"Apache-2.0"
] | 59 | 2020-08-18T03:41:35.000Z | 2022-03-23T03:51:55.000Z | tests/test_vision_models_unet.py | JiahuaWU/fastai | 13a2df812d875abf0558004283392ab40d9bdea1 | [
"Apache-2.0"
] | 17 | 2020-08-25T14:15:32.000Z | 2022-03-27T02:12:19.000Z | tests/test_vision_models_unet.py | JiahuaWU/fastai | 13a2df812d875abf0558004283392ab40d9bdea1 | [
"Apache-2.0"
] | 89 | 2020-08-17T23:45:42.000Z | 2022-03-27T20:53:43.000Z | import pytest
from fastai.gen_doc.doctest import this_tests
from fastai.vision.models import *
from fastai.vision.learner import create_body
import torch.nn as nn
import torch
@pytest.fixture
def model():
body = create_body(resnet18, pretrained=False)
for param in body.parameters():
param.requires_grad... | 28.882353 | 78 | 0.697895 | 219 | 1,473 | 4.538813 | 0.401826 | 0.080483 | 0.032193 | 0.038229 | 0.060362 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035923 | 0.187373 | 1,473 | 50 | 79 | 29.46 | 0.794486 | 0.050917 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.214286 | false | 0 | 0.142857 | 0.02381 | 0.452381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
35d6f38d9348b9ed081437c0136d6298aa4cba4d | 3,339 | py | Python | test_dataframe.py | UWSEDS/homework-4-documentation-and-style-Yandi1120 | cd2cf1b556946cf9394c33078e4f4a1c8c5298e7 | [
"MIT"
] | null | null | null | test_dataframe.py | UWSEDS/homework-4-documentation-and-style-Yandi1120 | cd2cf1b556946cf9394c33078e4f4a1c8c5298e7 | [
"MIT"
] | 1 | 2019-11-14T18:38:32.000Z | 2019-11-14T18:38:32.000Z | test_dataframe.py | UWSEDS/homework-4-documentation-and-style-Yandi1120 | cd2cf1b556946cf9394c33078e4f4a1c8c5298e7 | [
"MIT"
] | null | null | null | '''
The module reads in a url and creates a dataframe,
and returns True if the dataframe satisfies the following:
1. Contains only the columns that are specified
2. Values in each column have the same python type
3. Has at least 10 rows
Also, there are 3 tests that check if all columns have values of the corect type;
i... | 30.633028 | 82 | 0.669362 | 515 | 3,339 | 4.205825 | 0.285437 | 0.018467 | 0.020776 | 0.024007 | 0.260849 | 0.192521 | 0.180979 | 0.111727 | 0.082179 | 0.037858 | 0 | 0.019101 | 0.247379 | 3,339 | 108 | 83 | 30.916667 | 0.842817 | 0.437856 | 0 | 0.277778 | 0 | 0.018519 | 0.119577 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.111111 | false | 0.055556 | 0.055556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
35d79ffed3fb9d901f1869dc2e8a314e6750d09b | 659 | py | Python | setup.py | waxlamp/elgato | 4026e56a0a75120d40645230bf5675da9c7722f6 | [
"Apache-2.0"
] | 7 | 2020-10-07T00:46:01.000Z | 2022-02-01T21:53:49.000Z | setup.py | waxlamp/elgato | 4026e56a0a75120d40645230bf5675da9c7722f6 | [
"Apache-2.0"
] | 5 | 2020-09-06T00:29:03.000Z | 2021-04-11T22:55:40.000Z | setup.py | waxlamp/elgato | 4026e56a0a75120d40645230bf5675da9c7722f6 | [
"Apache-2.0"
] | null | null | null | """setup.py for elgato package."""
from setuptools import setup
setup(
name="PyElgato",
use_scm_version=True,
author="Roni Choudhury",
author_email="aichoudh@gmail.com",
packages=["elgato"],
entry_points={
"console_scripts": ["elgato=elgato.__main__:main"],
},
url="https://gith... | 24.407407 | 61 | 0.637329 | 73 | 659 | 5.534247 | 0.739726 | 0.074257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005758 | 0.209408 | 659 | 26 | 62 | 25.346154 | 0.769674 | 0.042489 | 0 | 0.086957 | 0 | 0 | 0.3648 | 0.0432 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea01401b69dcd67921c5c09dcf9b186ffeae1e5b | 421 | py | Python | portal/migrations/0007_auto_20190714_1541.py | ansonpinhero/Shepherd | f600b11c5e37d87126b3cc596d9640b82d28711c | [
"MIT"
] | null | null | null | portal/migrations/0007_auto_20190714_1541.py | ansonpinhero/Shepherd | f600b11c5e37d87126b3cc596d9640b82d28711c | [
"MIT"
] | null | null | null | portal/migrations/0007_auto_20190714_1541.py | ansonpinhero/Shepherd | f600b11c5e37d87126b3cc596d9640b82d28711c | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-14 10:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portal', '0006_request_phoneno'),
]
operations = [
migrations.AlterField(
model_name='request',
name='req_descriptio... | 22.157895 | 79 | 0.619952 | 45 | 421 | 5.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071197 | 0.266033 | 421 | 18 | 80 | 23.388889 | 0.754045 | 0.106888 | 0 | 0 | 1 | 0 | 0.157754 | 0 | 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 |
ea0bae4e6c8500f0ef887db6797059bfa35be3e4 | 674 | py | Python | ingest.py | DrArindamGhosh/Data-Pipeline-Using-Streaming-Data | f809650f94697ced2e6c42424fa742e92ffb41fb | [
"MIT"
] | null | null | null | ingest.py | DrArindamGhosh/Data-Pipeline-Using-Streaming-Data | f809650f94697ced2e6c42424fa742e92ffb41fb | [
"MIT"
] | null | null | null | ingest.py | DrArindamGhosh/Data-Pipeline-Using-Streaming-Data | f809650f94697ced2e6c42424fa742e92ffb41fb | [
"MIT"
] | null | null | null | import requests
import psycopg2
with requests.get("http://127.0.0.1:5000/very_large_request/100000000", stream=True) as r:
conn = psycopg2.connect(dbname="stream_test",
user="drarindamghosh",
password="postgres")
cur = conn.cursor()
sql = "INSERT INT... | 30.636364 | 90 | 0.529674 | 81 | 674 | 4.345679 | 0.691358 | 0.011364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055188 | 0.327893 | 674 | 21 | 91 | 32.095238 | 0.721854 | 0 | 0 | 0.111111 | 0 | 0 | 0.221068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.111111 | 0 | 0.111111 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ea13a9e2407c7be41a781a1517fa2a14fde48a76 | 908 | py | Python | setup.py | cblopez/nmapthon2 | 38e0f00fda05b45d75f76b6dac9271bdf5161ca2 | [
"Apache-2.0"
] | 8 | 2021-12-09T09:52:58.000Z | 2022-03-16T06:06:53.000Z | setup.py | cblopez/nmapthon2 | 38e0f00fda05b45d75f76b6dac9271bdf5161ca2 | [
"Apache-2.0"
] | 2 | 2021-12-09T20:27:23.000Z | 2022-01-21T21:52:04.000Z | setup.py | cblopez/nmapthon2 | 38e0f00fda05b45d75f76b6dac9271bdf5161ca2 | [
"Apache-2.0"
] | 1 | 2021-12-09T20:20:31.000Z | 2021-12-09T20:20:31.000Z | from setuptools import setup
with open('README.md') as f:
setup(
name='nmapthon2',
version='0.1.5',
packages=['nmapthon2'],
url='https://github.com/cblopez/nmapthon2',
license='Apache-2.0',
author='cblopez',
author_email='cbarrallopez@gmail.com',
desc... | 37.833333 | 110 | 0.57489 | 90 | 908 | 5.744444 | 0.766667 | 0.058027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016641 | 0.272026 | 908 | 23 | 111 | 39.478261 | 0.765507 | 0 | 0 | 0 | 0 | 0 | 0.472467 | 0.024229 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ea1575f81fcadeca9d0a12eb8160b5ba3a854a27 | 1,236 | py | Python | openstack/identity/version.py | NeCTAR-RC/openstacksdk | 60a24f6c4717a1f9a0e545c9a07e68afaedc5a27 | [
"Apache-2.0"
] | 99 | 2018-03-28T15:41:45.000Z | 2022-01-23T17:22:13.000Z | openstack/identity/version.py | NeCTAR-RC/openstacksdk | 60a24f6c4717a1f9a0e545c9a07e68afaedc5a27 | [
"Apache-2.0"
] | 5 | 2018-05-25T16:54:23.000Z | 2021-11-21T02:27:16.000Z | openstack/identity/version.py | NeCTAR-RC/openstacksdk | 60a24f6c4717a1f9a0e545c9a07e68afaedc5a27 | [
"Apache-2.0"
] | 104 | 2018-04-06T14:33:54.000Z | 2022-03-01T01:58:09.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... | 30.9 | 75 | 0.679612 | 164 | 1,236 | 5.054878 | 0.579268 | 0.072376 | 0.031363 | 0.038601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004215 | 0.232201 | 1,236 | 39 | 76 | 31.692308 | 0.869336 | 0.441748 | 0 | 0 | 0 | 0 | 0.068047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ea15d0fa9c16a0c1e40a0318b6d9861fb574c269 | 904 | py | Python | wizer/tests/integration_tests/test_views.py | pa3kDaWae/workoutizer | 15501d0060711bbd8308642bc89b45c1442d4d0f | [
"MIT"
] | null | null | null | wizer/tests/integration_tests/test_views.py | pa3kDaWae/workoutizer | 15501d0060711bbd8308642bc89b45c1442d4d0f | [
"MIT"
] | null | null | null | wizer/tests/integration_tests/test_views.py | pa3kDaWae/workoutizer | 15501d0060711bbd8308642bc89b45c1442d4d0f | [
"MIT"
] | null | null | null | from django.urls import reverse
import pytest
from wizer.models import Activity
def test_help_view(db, client):
response = client.get(reverse('help'))
assert response.status_code == 200
assert "Keyboard Navigation" in response.content.decode('UTF-8')
def test_dashboard_view(db, client):
response = ... | 27.393939 | 68 | 0.725664 | 122 | 904 | 5.237705 | 0.319672 | 0.054773 | 0.075117 | 0.150235 | 0.525822 | 0.483568 | 0.328639 | 0.159624 | 0 | 0 | 0 | 0.022251 | 0.154867 | 904 | 32 | 69 | 28.25 | 0.814136 | 0 | 0 | 0.190476 | 0 | 0 | 0.097345 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.238095 | false | 0 | 0.142857 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ea1a19aceea7ec1f173be85ef28028342834ad35 | 467 | py | Python | app/sql_app/schemas.py | grostaco/CoreHDF | f3acf7792e99994a7c1f0a3be797ae873b04a0b6 | [
"MIT"
] | 1 | 2021-03-25T06:00:15.000Z | 2021-03-25T06:00:15.000Z | app/sql_app/schemas.py | grostaco/CoreHDF | f3acf7792e99994a7c1f0a3be797ae873b04a0b6 | [
"MIT"
] | 3 | 2021-03-22T07:58:25.000Z | 2021-03-23T11:06:55.000Z | app/sql_app/schemas.py | grostaco/CoreHDF | f3acf7792e99994a7c1f0a3be797ae873b04a0b6 | [
"MIT"
] | 2 | 2021-03-22T07:54:06.000Z | 2021-03-23T09:09:57.000Z | from pydantic import BaseModel
from typing import List
class UserBase(BaseModel):
username: str
email: str
full_name: str
class UserCreate(UserBase):
password: str
class User(UserBase):
id: str
hashed_password: str
is_active: bool = True
permissions: int = 0
class Config:
... | 13.735294 | 30 | 0.665953 | 58 | 467 | 5.293103 | 0.586207 | 0.078176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002907 | 0.263383 | 467 | 33 | 31 | 14.151515 | 0.889535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.095238 | 0.095238 | 0 | 0.952381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ea1cccf64383491515729f72bf1a79bf936d90a6 | 3,029 | py | Python | test/other_tests/location_parser.py | thautwarm/rbnf-rts | f491c02bad453652d089dc0634183ee3213d7f21 | [
"MIT"
] | 4 | 2019-09-10T04:11:38.000Z | 2020-08-02T13:27:25.000Z | test/other_tests/location_parser.py | thautwarm/rbnf-rts | f491c02bad453652d089dc0634183ee3213d7f21 | [
"MIT"
] | 2 | 2020-01-10T16:23:44.000Z | 2020-08-02T21:39:16.000Z | test/other_tests/location_parser.py | thautwarm/rbnf-rts | f491c02bad453652d089dc0634183ee3213d7f21 | [
"MIT"
] | null | null | null | # this file is auto-generated by RBNF.hs and the Python package rbnf-rts
from rbnf_rts.rbnf_linker import link
from rbnf_rts.utils import ImmutableMap
from rbnf_rts.lexical import *
__all__ = ['lexicals', 'run_lexer', 'mk_parser']
(lexicals, run_lexer) = lexer(r(W='\\s+'), l['a'], ignores=['W'], reserved_map=Immutable... | 36.493976 | 174 | 0.497854 | 400 | 3,029 | 3.275 | 0.1875 | 0.058015 | 0.103053 | 0.059542 | 0.357252 | 0.29771 | 0.29771 | 0.29771 | 0.29771 | 0.29771 | 0 | 0.047181 | 0.426213 | 3,029 | 82 | 175 | 36.939024 | 0.706559 | 0.02311 | 0 | 0.394737 | 1 | 0 | 0.032804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.052632 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea1e7728079ec90e72d2d1cd6ef5ac72da120709 | 264 | py | Python | 2021-10-26-v7-random-progress.py | TheodoreEhrenborg/phutball | 9abcb5869addbf5877cae1dfe8af2f5d861fba19 | [
"MIT"
] | null | null | null | 2021-10-26-v7-random-progress.py | TheodoreEhrenborg/phutball | 9abcb5869addbf5877cae1dfe8af2f5d861fba19 | [
"MIT"
] | null | null | null | 2021-10-26-v7-random-progress.py | TheodoreEhrenborg/phutball | 9abcb5869addbf5877cae1dfe8af2f5d861fba19 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import pickle
board_pairs = []
with open(
"2021-10-26-mcts-v7-boards15-random.pickle", "rb"
) as f:
try:
while True:
board_pairs.append(pickle.load(f))
except EOFError:
pass
print(len(board_pairs))
| 16.5 | 53 | 0.617424 | 37 | 264 | 4.324324 | 0.810811 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060302 | 0.246212 | 264 | 15 | 54 | 17.6 | 0.743719 | 0.079545 | 0 | 0 | 0 | 0 | 0.177686 | 0.169421 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.090909 | 0 | 0.090909 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ea20256c1da154d8193512f0261be5e43f74179c | 2,047 | py | Python | ListsAndTuples.py | Nikuchan/Python | 3312175d4bc1299b70a74a64011f3f7c402eaabc | [
"MIT"
] | null | null | null | ListsAndTuples.py | Nikuchan/Python | 3312175d4bc1299b70a74a64011f3f7c402eaabc | [
"MIT"
] | null | null | null | ListsAndTuples.py | Nikuchan/Python | 3312175d4bc1299b70a74a64011f3f7c402eaabc | [
"MIT"
] | null | null | null | # Lists
courses=['History','Math','Physics','Compsci']
courses_2=['Football','Basketball']
print("Slicing Examples")
print(len(courses))
print(courses)
print(courses[-1])
print(courses[0:3])
print(courses[::-1])
print("\nAdd")
courses.append('Art')
print(courses)
print("\nInsert at the beginning")
co... | 21.322917 | 117 | 0.701026 | 296 | 2,047 | 4.814189 | 0.351351 | 0.143158 | 0.107368 | 0.033684 | 0.107368 | 0.044912 | 0 | 0 | 0 | 0 | 0 | 0.011534 | 0.152907 | 2,047 | 95 | 118 | 21.547368 | 0.810265 | 0.049341 | 0 | 0.212121 | 0 | 0.015152 | 0.372017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.712121 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ea263f91354e6ad85cd787315e11b891f27bafeb | 1,051 | py | Python | ip2int.py | nbari/waf | cce48601e937d114deb0eb03e1ece06856e4bfd2 | [
"BSD-3-Clause"
] | 1 | 2021-03-01T16:32:59.000Z | 2021-03-01T16:32:59.000Z | ip2int.py | nbari/waf | cce48601e937d114deb0eb03e1ece06856e4bfd2 | [
"BSD-3-Clause"
] | null | null | null | ip2int.py | nbari/waf | cce48601e937d114deb0eb03e1ece06856e4bfd2 | [
"BSD-3-Clause"
] | 2 | 2020-03-05T05:24:13.000Z | 2021-05-20T07:35:18.000Z | #!/usr/bin/env python
import argparse
from netaddr import IPNetwork
def GetIPs(cidr):
try:
ip = IPNetwork(cidr)
except Exception as e:
print e
exit(1)
if ip.size > 1:
print "min: %s network: %s" % (ip.first, ip.network)
max = "max: %s broadcast: %s " % (ip.las... | 22.847826 | 65 | 0.538535 | 135 | 1,051 | 4.111111 | 0.459259 | 0.016216 | 0.025225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009915 | 0.328259 | 1,051 | 45 | 66 | 23.355556 | 0.776204 | 0.01903 | 0 | 0.060606 | 0 | 0 | 0.18835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060606 | null | null | 0.30303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ea26c9f81374ec34d9fd2d250e4c1e227869f444 | 2,234 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/shader_subroutine.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/shader_subroutine.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/shader_subroutine.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''OpenGL extension ARB.shader_subroutine
This module customises the behaviour of the
OpenGL.raw.GL.ARB.shader_subroutine to provide a more
Python-friendly API
Overview (from the spec)
This extension adds support to shaders for "indirect subroutine calls",
where a single shader can include many subrou... | 41.37037 | 94 | 0.787825 | 256 | 2,234 | 6.816406 | 0.460938 | 0.048138 | 0.054441 | 0.038968 | 0.159312 | 0.159312 | 0.14212 | 0.14212 | 0.096275 | 0.096275 | 0 | 0.002052 | 0.127574 | 2,234 | 54 | 95 | 41.37037 | 0.893279 | 0.41316 | 0 | 0.193548 | 0 | 0 | 0.049497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0.225806 | 0.225806 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ea45e4a6c87600cf32458f011f7c637dfb6b32e3 | 14,337 | py | Python | BotBase/modules/admin.py | AndreiJirohHaliliDev2006/BotBase | 52b18b0b9320f9c671febd829ca521b50898c3d4 | [
"Apache-2.0"
] | 10 | 2020-06-07T09:11:31.000Z | 2021-04-17T09:15:49.000Z | BotBase/modules/admin.py | AndreiJirohHaliliDev2006/BotBase | 52b18b0b9320f9c671febd829ca521b50898c3d4 | [
"Apache-2.0"
] | 2 | 2020-08-27T07:15:34.000Z | 2021-02-14T16:49:35.000Z | BotBase/modules/admin.py | AndreiJirohHaliliDev2006/BotBase | 52b18b0b9320f9c671febd829ca521b50898c3d4 | [
"Apache-2.0"
] | 2 | 2020-06-15T06:16:16.000Z | 2020-08-18T11:46:42.000Z | from ..config import ADMINS, USER_INFO, INVALID_SYNTAX, ERROR, NONNUMERIC_ID, USERS_COUNT, \
NO_PARAMETERS, ID_MISSING, GLOBAL_MESSAGE_STATS, NAME, WHISPER_FROM, USER_INFO_UPDATED, USER_INFO_UNCHANGED, \
USER_BANNED, USER_UNBANNED, CANNOT_BAN_ADMIN, USER_ALREADY_BANNED, USER_NOT_BANNED, YOU_ARE_BANNED, YOU_ARE_... | 53.898496 | 150 | 0.596917 | 1,729 | 14,337 | 4.779641 | 0.083864 | 0.066554 | 0.108906 | 0.139158 | 0.756655 | 0.716118 | 0.653437 | 0.622096 | 0.589303 | 0.51198 | 0 | 0.006338 | 0.273697 | 14,337 | 265 | 151 | 54.101887 | 0.786805 | 0 | 0 | 0.452282 | 0 | 0.037344 | 0.205692 | 0.117249 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049793 | false | 0 | 0.037344 | 0 | 0.087137 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ea50d524aafa2fc1c8b4b32d82ab3b87f80d09aa | 722 | py | Python | WiFiResult.py | yrajab/PiFi | f649ea43b88645299e9de5938099e33137e7201c | [
"Apache-2.0"
] | null | null | null | WiFiResult.py | yrajab/PiFi | f649ea43b88645299e9de5938099e33137e7201c | [
"Apache-2.0"
] | null | null | null | WiFiResult.py | yrajab/PiFi | f649ea43b88645299e9de5938099e33137e7201c | [
"Apache-2.0"
] | null | null | null | import subprocess
import re
def wifi_result():
stats={}
data = str(subprocess.check_output(['iwconfig', 'wlan0']))
R = re.search("Rate=(\d+)", data).group(1)
stats["Rate"] = int(R)
T = re.search("Power=(\d+)", data).group(1)
stats["TXPower"] = int(T)
Q = re.search("Quality=(\d+)", data).gro... | 34.380952 | 72 | 0.566482 | 103 | 722 | 3.941748 | 0.378641 | 0.118227 | 0.147783 | 0.162562 | 0.374384 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025126 | 0.17313 | 722 | 21 | 73 | 34.380952 | 0.654941 | 0 | 0 | 0 | 0 | 0 | 0.206086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.157895 | 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 |
ea6427d74ad548f89b16a6c26bcdef458aa8a1b7 | 433 | py | Python | setup.py | vlinhart/django_shares_count | ad95a95422eb3a289409b5e801094344cbf623b7 | [
"MIT"
] | 2 | 2016-03-13T14:53:01.000Z | 2016-07-19T04:14:11.000Z | setup.py | vlinhart/django_shares_count | ad95a95422eb3a289409b5e801094344cbf623b7 | [
"MIT"
] | null | null | null | setup.py | vlinhart/django_shares_count | ad95a95422eb3a289409b5e801094344cbf623b7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='shares_count',
version='1.0',
author='vlinhart',
author_email='vladimir.linhart@gmail.com',
packages=find_packages(),
include_package_data=True,
install_requires=['socialshares~=1.0.0'],
scripts=[],
... | 25.470588 | 48 | 0.648961 | 49 | 433 | 5.510204 | 0.77551 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014451 | 0.200924 | 433 | 16 | 49 | 27.0625 | 0.765896 | 0.046189 | 0 | 0 | 0 | 0 | 0.18932 | 0.063107 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ea6670f1e708715b886150e7f5489bf75aa084b6 | 5,918 | py | Python | src/programy/services/rest/cocktaildb/service.py | RonKhondji/program-y | 422c5dea440e569469d7512d80315a731c5e35d6 | [
"MIT"
] | 345 | 2016-11-23T22:37:04.000Z | 2022-03-30T20:44:44.000Z | src/programy/services/rest/cocktaildb/service.py | sofi2305/Nik | e8bb4a6614c16c334cd0df3a16b30a9daac0070d | [
"MIT"
] | 275 | 2016-12-07T10:30:28.000Z | 2022-02-08T21:28:33.000Z | src/programy/services/rest/cocktaildb/service.py | sofi2305/Nik | e8bb4a6614c16c334cd0df3a16b30a9daac0070d | [
"MIT"
] | 159 | 2016-11-28T18:59:30.000Z | 2022-03-20T18:02:44.000Z | """
Copyright (c) 2016-2020 Keith Sterling http://www.keithsterling.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, m... | 35.437126 | 120 | 0.698378 | 697 | 5,918 | 5.733142 | 0.295552 | 0.028028 | 0.021021 | 0.018769 | 0.302302 | 0.215215 | 0.141642 | 0.123123 | 0.104104 | 0.058058 | 0 | 0.007077 | 0.212065 | 5,918 | 166 | 121 | 35.650602 | 0.849882 | 0.184353 | 0 | 0.268519 | 0 | 0.018519 | 0.116265 | 0.004992 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212963 | false | 0 | 0.055556 | 0.083333 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ea6af4bbe8d09ce4e4caa648bfe4ed023e8eb626 | 422 | py | Python | src/ReinforcementLearning/tests/testCarlaBenchMark.py | B-C-WANG/ReinforcementLearningInAutoPilot | 8d3c0b81e3db2fb4be0e52e25b700c54f5e569dc | [
"MIT"
] | 27 | 2019-05-14T01:06:05.000Z | 2022-03-06T03:12:40.000Z | src/ReinforcementLearning/tests/testCarlaBenchMark.py | B-C-WANG/ReinforcementLearningInAutoPilot | 8d3c0b81e3db2fb4be0e52e25b700c54f5e569dc | [
"MIT"
] | null | null | null | src/ReinforcementLearning/tests/testCarlaBenchMark.py | B-C-WANG/ReinforcementLearningInAutoPilot | 8d3c0b81e3db2fb4be0e52e25b700c54f5e569dc | [
"MIT"
] | 10 | 2020-01-20T09:39:51.000Z | 2022-03-31T18:30:53.000Z | # Type: Private Author: Baochuan Wang
import sys
carla_egg_path="/home/wang/Desktop/carla/PythonAPI/carla/dist/carla-0.9.5-py2.7-linux-x86_64.egg",
carla_pythonAPI_path="/home/wang/Desktop/carla/PythonAPI/carla",
sys.path.append(carla_egg_path)
sys.path.append(carla_pythonAPI_path)
#from carla.driving_benchmark.exp... | 30.142857 | 98 | 0.829384 | 64 | 422 | 5.28125 | 0.46875 | 0.16568 | 0.071006 | 0.112426 | 0.224852 | 0.224852 | 0.224852 | 0 | 0 | 0 | 0 | 0.032911 | 0.063981 | 422 | 13 | 99 | 32.461538 | 0.822785 | 0.281991 | 0 | 0 | 0 | 0.142857 | 0.4 | 0.4 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ea6d37f6ab4ff1b0e1427f3582561defd28b52c6 | 651 | py | Python | fastrunner/migrations/0019_auto_20210411_2040.py | FuxiongYang/faster | 91cb3f3912f68ea0dde9a5b6d6ef8179310fbbdb | [
"MIT"
] | 227 | 2020-12-25T12:26:27.000Z | 2022-03-31T16:00:45.000Z | fastrunner/migrations/0019_auto_20210411_2040.py | FuxiongYang/faster | 91cb3f3912f68ea0dde9a5b6d6ef8179310fbbdb | [
"MIT"
] | 3 | 2021-01-18T02:51:34.000Z | 2022-03-03T06:17:44.000Z | fastrunner/migrations/0019_auto_20210411_2040.py | FuxiongYang/faster | 91cb3f3912f68ea0dde9a5b6d6ef8179310fbbdb | [
"MIT"
] | 32 | 2021-01-04T01:53:55.000Z | 2022-03-04T12:25:35.000Z | # Generated by Django 2.2 on 2021-04-11 20:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fastrunner', '0018_auto_20210410_1950'),
]
operations = [
migrations.AddField(
model_name='project',
name='yapi_base_u... | 27.125 | 98 | 0.614439 | 68 | 651 | 5.691176 | 0.632353 | 0.062016 | 0.118863 | 0.139535 | 0.403101 | 0.403101 | 0.217054 | 0 | 0 | 0 | 0 | 0.075472 | 0.267281 | 651 | 23 | 99 | 28.304348 | 0.735849 | 0.066052 | 0 | 0.352941 | 1 | 0 | 0.184818 | 0.037954 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea78ebc76f7cd9adef0ef1300e80a10afb221d45 | 3,772 | py | Python | examples/orders.py | Iceberg-Marketplace/Iceberg-API-PYTHON | 5f8314376ebb6e5a8099253ec79fd40ea835beac | [
"MIT"
] | null | null | null | examples/orders.py | Iceberg-Marketplace/Iceberg-API-PYTHON | 5f8314376ebb6e5a8099253ec79fd40ea835beac | [
"MIT"
] | 2 | 2015-01-26T10:22:41.000Z | 2015-01-26T10:22:41.000Z | examples/orders.py | Iceberg-Marketplace/Iceberg-API-PYTHON | 5f8314376ebb6e5a8099253ec79fd40ea835beac | [
"MIT"
] | 3 | 2016-12-30T15:08:57.000Z | 2019-09-24T14:13:44.000Z | # -*- coding: utf-8 -*-
from datetime import datetime
import logging
logger = logging.getLogger(__name__)
def pass_3d_secure_page(url):
import time
from selenium import webdriver
driver = webdriver.Chrome()
try:
driver.get(url)
time.sleep(3) # Wait 5 secs to be sure browser will go ... | 26.751773 | 108 | 0.613203 | 431 | 3,772 | 5.162413 | 0.440835 | 0.088989 | 0.02427 | 0.014382 | 0.038652 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024618 | 0.289236 | 3,772 | 140 | 109 | 26.942857 | 0.805297 | 0.142895 | 0 | 0.178571 | 0 | 0 | 0.087363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.035714 | 0.083333 | null | null | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea7c156806e1cacdf2d7064bcdf56f57115ecfb4 | 231 | py | Python | examples/matrix/octahedral.py | fding253/nxviz | e52fa46a751196af9b4c4833ff7529fdda2bcaf7 | [
"MIT"
] | 385 | 2016-07-18T02:14:58.000Z | 2022-03-28T16:02:08.000Z | examples/matrix/octahedral.py | fding253/nxviz | e52fa46a751196af9b4c4833ff7529fdda2bcaf7 | [
"MIT"
] | 318 | 2016-07-17T22:53:34.000Z | 2021-11-11T13:17:35.000Z | examples/matrix/octahedral.py | fding253/nxviz | e52fa46a751196af9b4c4833ff7529fdda2bcaf7 | [
"MIT"
] | 79 | 2016-07-17T21:49:55.000Z | 2022-02-24T11:08:28.000Z | """
Displays a NetworkX octahedral graph to screen using a MatrixPlot.
"""
import matplotlib.pyplot as plt
import networkx as nx
from nxviz.plots import MatrixPlot
G = nx.octahedral_graph()
c = MatrixPlot(G)
c.draw()
plt.show()
| 16.5 | 66 | 0.753247 | 35 | 231 | 4.942857 | 0.628571 | 0.17341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 231 | 13 | 67 | 17.769231 | 0.882653 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ea7f236757fdde3ecd6ad476628c3246970b1706 | 961 | py | Python | hangups_api/startup.py | sokky/hangups_api | 55d2ecb482b8495b39d6101a9a3b3e41e0168859 | [
"MIT"
] | null | null | null | hangups_api/startup.py | sokky/hangups_api | 55d2ecb482b8495b39d6101a9a3b3e41e0168859 | [
"MIT"
] | null | null | null | hangups_api/startup.py | sokky/hangups_api | 55d2ecb482b8495b39d6101a9a3b3e41e0168859 | [
"MIT"
] | null | null | null | from api.hangups import HangupsApi
from api.models import HangupsApiUser, HangupsApiToken
import threading
import tempfile
'''
serverがstartする時にあらかじめ呼び出すメソッドをここに定義する。
'''
def get_hangout_info():
"""Hangoutのアカウント情報から会話の履歴などを取得する"""
users = HangupsApiUser.objects.all()
for u in users:
try:
... | 26.694444 | 71 | 0.595213 | 95 | 961 | 5.915789 | 0.526316 | 0.053381 | 0.037367 | 0.039146 | 0.064057 | 0.064057 | 0 | 0 | 0 | 0 | 0 | 0 | 0.315297 | 961 | 35 | 72 | 27.457143 | 0.854103 | 0.093652 | 0 | 0 | 0 | 0 | 0.001224 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea8315d47e69d2278ebb5bb56bf014b4317cb21d | 2,341 | py | Python | refinery/units/formats/pe/perc.py | larsborn/refinery | c8b19156b17e5fa5de5c72bc668a14d646584560 | [
"BSD-3-Clause"
] | null | null | null | refinery/units/formats/pe/perc.py | larsborn/refinery | c8b19156b17e5fa5de5c72bc668a14d646584560 | [
"BSD-3-Clause"
] | null | null | null | refinery/units/formats/pe/perc.py | larsborn/refinery | c8b19156b17e5fa5de5c72bc668a14d646584560 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import enum
import pefile
import re
from .. import UnpackResult, PathExtractorUnit
class RSRC(enum.IntEnum):
CURSOR = 0x01 # noqa
BITMAP = 0x02 # noqa
ICON = 0x03 # noqa
MENU = 0x04 # noqa
DIALOG = 0x05 # n... | 33.927536 | 111 | 0.535669 | 270 | 2,341 | 4.585185 | 0.474074 | 0.028271 | 0.017771 | 0.019386 | 0.033926 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042056 | 0.360103 | 2,341 | 68 | 112 | 34.426471 | 0.784379 | 0.070483 | 0 | 0.035714 | 0 | 0.017857 | 0.068692 | 0.009813 | 0 | 0 | 0.035514 | 0 | 0 | 1 | 0.071429 | false | 0.017857 | 0.071429 | 0 | 0.553571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ea87e06dfa9cee13167d3f73791931ef99e8a585 | 607 | py | Python | feature_weights.py | cs-mac/stance_detection | 4de9c6dadcffd6daa6cba40b44aef2956b955915 | [
"Apache-2.0"
] | null | null | null | feature_weights.py | cs-mac/stance_detection | 4de9c6dadcffd6daa6cba40b44aef2956b955915 | [
"Apache-2.0"
] | null | null | null | feature_weights.py | cs-mac/stance_detection | 4de9c6dadcffd6daa6cba40b44aef2956b955915 | [
"Apache-2.0"
] | null | null | null | from itertools import product
feature_weighting_cartesian_prod = {
'text_high': [0.5, 1],
'word_n_grams': [0, 0.5, 1],
'char_n_grams': [0, 0.5, 1],
'sentiment': [0, 0.5, 1],
'opinion_towards': [0.5, 1],
'target': [0, 0.5, 1],
}
feature_weightings_to_check = [dict(zip(feat... | 37.9375 | 168 | 0.634267 | 91 | 607 | 3.934066 | 0.373626 | 0.03352 | 0.050279 | 0.324022 | 0.463687 | 0.26257 | 0.206704 | 0 | 0 | 0 | 0 | 0.057143 | 0.192751 | 607 | 15 | 169 | 40.466667 | 0.673469 | 0 | 0 | 0 | 0 | 0 | 0.207578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.083333 | 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 |
ea90ad9aad861fdbf0f32b59a76e624843625a4e | 3,625 | py | Python | interviews/views.py | Fabrice-64/advocacy_project | 33eb8b71e057ea197be578020436defb015fa000 | [
"MIT"
] | null | null | null | interviews/views.py | Fabrice-64/advocacy_project | 33eb8b71e057ea197be578020436defb015fa000 | [
"MIT"
] | null | null | null | interviews/views.py | Fabrice-64/advocacy_project | 33eb8b71e057ea197be578020436defb015fa000 | [
"MIT"
] | null | null | null | """
These views deal with the advocacy topics and the interviews.
As Interviews with the officials should contain sensitive data,
the information sharing is strictly controlled: the assessment of
an interview is exclusively accessible either to the volunteeer
designated to lead it or to a manager.
... | 36.616162 | 98 | 0.783448 | 380 | 3,625 | 7.273684 | 0.339474 | 0.058611 | 0.091172 | 0.04631 | 0.464182 | 0.464182 | 0.315847 | 0.230463 | 0.212012 | 0.212012 | 0 | 0.001304 | 0.153655 | 3,625 | 98 | 99 | 36.989796 | 0.899609 | 0.165517 | 0 | 0.389831 | 0 | 0 | 0.245626 | 0.230821 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0.033898 | 0.118644 | 0 | 0.966102 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ea9427037e665379f1ea8db3318d80cf84f1201e | 4,245 | py | Python | vgg19.py | debodeepkar/adni_research | d8061d0a68e1aca6517b8f15089a3331dd6819e6 | [
"MIT"
] | null | null | null | vgg19.py | debodeepkar/adni_research | d8061d0a68e1aca6517b8f15089a3331dd6819e6 | [
"MIT"
] | null | null | null | vgg19.py | debodeepkar/adni_research | d8061d0a68e1aca6517b8f15089a3331dd6819e6 | [
"MIT"
] | null | null | null | import tensorflow as tf
from tensorflow.keras.metrics import categorical_crossentropy
from tensorflow.keras.preprocessing.image import ImageDataGenerator
from tensorflow.keras.regularizers import l2
from tensorflow.keras.models import Sequential
from tensorflow.keras.optimizers import SGD
from sklearn.metrics import ac... | 45.645161 | 218 | 0.694464 | 565 | 4,245 | 5.090265 | 0.223009 | 0.065716 | 0.106398 | 0.124131 | 0.641864 | 0.641864 | 0.614743 | 0.614743 | 0.614743 | 0.614743 | 0 | 0.055198 | 0.159246 | 4,245 | 92 | 219 | 46.141304 | 0.75063 | 0 | 0 | 0.518519 | 0 | 0 | 0.04311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.259259 | 0 | 0.259259 | 0.024691 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea95b588023521b246c1edd5b84ad1b3109dce56 | 7,125 | py | Python | src/KeePassLibrary/keywords/keepassgroups.py | loomanw/robotframework-keepasslibrary | 5e494e91a5898e11d2cecc55a8e50f494325091d | [
"MIT"
] | 1 | 2021-06-16T15:25:45.000Z | 2021-06-16T15:25:45.000Z | src/KeePassLibrary/keywords/keepassgroups.py | loomanw/robotframework-keepasslibrary | 5e494e91a5898e11d2cecc55a8e50f494325091d | [
"MIT"
] | 5 | 2019-06-11T14:24:26.000Z | 2022-03-11T11:40:30.000Z | src/KeePassLibrary/keywords/keepassgroups.py | loomanw/robotframework-keepasslibrary | 5e494e91a5898e11d2cecc55a8e50f494325091d | [
"MIT"
] | 2 | 2020-05-21T17:04:12.000Z | 2021-01-27T06:45:15.000Z | """Library components."""
from KeePassLibrary.base import keyword, LibraryComponent, UUID
from KeePassLibrary.errors import DatabaseNotLoaded
from robot.utils import is_truthy
class KeePassGroups(LibraryComponent):
# FIXME: Catch uuid string and convert to class
@keyword
def get_groups(self, recursive... | 50.892857 | 218 | 0.524632 | 744 | 7,125 | 4.965054 | 0.157258 | 0.051164 | 0.037899 | 0.030861 | 0.644829 | 0.548186 | 0.507038 | 0.501354 | 0.501354 | 0.432323 | 0 | 0.00817 | 0.398737 | 7,125 | 140 | 219 | 50.892857 | 0.854108 | 0.407158 | 0 | 0.676471 | 0 | 0 | 0.056077 | 0 | 0 | 0 | 0 | 0.007143 | 0 | 1 | 0.088235 | false | 0.132353 | 0.044118 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
575c8e00d93223cf09c06d7784ff78aa3ac7c873 | 3,432 | py | Python | api/contests/migrations/0001_initial.py | ucpr/onlinejudge | 472b4671dc8fde8bd2f2b139ce61bc52e8137fcc | [
"MIT"
] | null | null | null | api/contests/migrations/0001_initial.py | ucpr/onlinejudge | 472b4671dc8fde8bd2f2b139ce61bc52e8137fcc | [
"MIT"
] | null | null | null | api/contests/migrations/0001_initial.py | ucpr/onlinejudge | 472b4671dc8fde8bd2f2b139ce61bc52e8137fcc | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-05-06 07:18
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contest',
fields=[
... | 44.571429 | 114 | 0.549242 | 316 | 3,432 | 5.816456 | 0.287975 | 0.106094 | 0.117519 | 0.156692 | 0.454842 | 0.349293 | 0.349293 | 0.290533 | 0.238303 | 0.238303 | 0 | 0.017939 | 0.301573 | 3,432 | 76 | 115 | 45.157895 | 0.748853 | 0.013112 | 0 | 0.376812 | 1 | 0 | 0.110192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028986 | 0 | 0.086957 | 0 | 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.