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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79f2ae44939ea3ca90305c903790c3b9421d7d3b | 4,612 | py | Python | sqla_mixins.py | bboe/sqla_mixins | 416a81875d75f2da18e454bd479e44490830e58f | [
"BSD-2-Clause"
] | 3 | 2016-02-26T05:11:16.000Z | 2018-04-03T14:37:40.000Z | sqla_mixins.py | bboe/sqla_mixins | 416a81875d75f2da18e454bd479e44490830e58f | [
"BSD-2-Clause"
] | null | null | null | sqla_mixins.py | bboe/sqla_mixins | 416a81875d75f2da18e454bd479e44490830e58f | [
"BSD-2-Clause"
] | null | null | null | import sys
from passlib.hash import pbkdf2_sha512
from sqlalchemy import Column, DateTime, String, Integer, Unicode, func
from sqlalchemy.ext.declarative import declared_attr, has_inherited_table
if sys.version_info < (3, 0):
builtins = __import__('__builtin__')
else:
import builtins
__version__ = '0.6'
cla... | 37.803279 | 138 | 0.635299 | 557 | 4,612 | 5.075404 | 0.32675 | 0.021224 | 0.028299 | 0.015564 | 0.043155 | 0.030421 | 0.030421 | 0.030421 | 0 | 0 | 0 | 0.007467 | 0.274068 | 4,612 | 121 | 139 | 38.115702 | 0.836918 | 0.267997 | 0 | 0.108108 | 0 | 0 | 0.045129 | 0.00996 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0.162162 | 0.081081 | 0.027027 | 0.459459 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
79feab9a55a01cb85183b468a67ddad41a5b66ae | 2,462 | py | Python | cpc/asm/Instruction.py | U-Ar/Cpresto | f723458fb237c9e3e8bc8a6afdf7c81858a65363 | [
"BSD-3-Clause"
] | 1 | 2021-05-09T07:10:19.000Z | 2021-05-09T07:10:19.000Z | cpc/asm/Instruction.py | U-Ar/Cpresto | f723458fb237c9e3e8bc8a6afdf7c81858a65363 | [
"BSD-3-Clause"
] | null | null | null | cpc/asm/Instruction.py | U-Ar/Cpresto | f723458fb237c9e3e8bc8a6afdf7c81858a65363 | [
"BSD-3-Clause"
] | null | null | null | from .Assembly import Assembly
class Instruction(Assembly):
def __init__(self,a1,a2=None,a3=None,a4=None,a5=False):
if isinstance(a3,list):
self.mnemonic = a1
self.suffix = a2
self.operands = a3
self.need_relocation = a4
else :
if a4 != No... | 28.964706 | 81 | 0.522746 | 271 | 2,462 | 4.664207 | 0.243542 | 0.132911 | 0.085443 | 0.056962 | 0.289557 | 0.22943 | 0.170886 | 0.129747 | 0.129747 | 0.129747 | 0 | 0.021249 | 0.369212 | 2,462 | 84 | 82 | 29.309524 | 0.792659 | 0 | 0 | 0.231884 | 0 | 0 | 0.016247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.188406 | false | 0 | 0.014493 | 0.101449 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0305c18562770e20aa9c4985e6f05e95d8fb82f0 | 6,604 | py | Python | pretrained_mol_sim/molecule_optimization/simulation9/grammar/run_bo.py | allisontam/graph_coattention | 5edc98615d5526269452b519bb13512ec5e952da | [
"MIT"
] | null | null | null | pretrained_mol_sim/molecule_optimization/simulation9/grammar/run_bo.py | allisontam/graph_coattention | 5edc98615d5526269452b519bb13512ec5e952da | [
"MIT"
] | null | null | null | pretrained_mol_sim/molecule_optimization/simulation9/grammar/run_bo.py | allisontam/graph_coattention | 5edc98615d5526269452b519bb13512ec5e952da | [
"MIT"
] | null | null | null |
import pickle
import gzip
def decode_from_latent_space(latent_points, grammar_model):
decode_attempts = 500
decoded_molecules = []
for i in range(decode_attempts):
current_decoded_molecules = grammar_model.decode(latent_points)
current_decoded_molecules = [ x if x != '' else 'Sequence too... | 33.18593 | 118 | 0.663537 | 911 | 6,604 | 4.572997 | 0.228321 | 0.015843 | 0.030725 | 0.027604 | 0.300528 | 0.229477 | 0.168027 | 0.091695 | 0.012962 | 0 | 0 | 0.012629 | 0.220624 | 6,604 | 198 | 119 | 33.353535 | 0.796775 | 0.029376 | 0 | 0.100775 | 0 | 0 | 0.076149 | 0.05811 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.147287 | null | null | 0.062016 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
030b97049b5f6c7f42d27273e9187a8f8b623e3c | 3,295 | py | Python | bf_bid.py | dssg/mlpolicylab_fall20_bills1_public | c0b991daf24ef8d35689bbd7ad83baf142c420a2 | [
"MIT"
] | null | null | null | bf_bid.py | dssg/mlpolicylab_fall20_bills1_public | c0b991daf24ef8d35689bbd7ad83baf142c420a2 | [
"MIT"
] | null | null | null | bf_bid.py | dssg/mlpolicylab_fall20_bills1_public | c0b991daf24ef8d35689bbd7ad83baf142c420a2 | [
"MIT"
] | 1 | 2021-11-22T19:34:00.000Z | 2021-11-22T19:34:00.000Z | import pandas as pd
import psycopg2 as pg2
import yaml
import io
import ohio.ext.pandas
from sqlalchemy import create_engine
def open_db_connection(secrets_file="secrets.yaml", verbose=True):
"""
Opens connection to psql db
:return:
connection object
"""
try:
with open(secrets_... | 34.684211 | 104 | 0.675266 | 471 | 3,295 | 4.532909 | 0.348195 | 0.056206 | 0.056206 | 0.071194 | 0.181265 | 0.161593 | 0.148946 | 0.134895 | 0.096487 | 0.040281 | 0 | 0.005721 | 0.204249 | 3,295 | 94 | 105 | 35.053191 | 0.808543 | 0.257663 | 0 | 0 | 0 | 0 | 0.289564 | 0.103871 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.044444 | false | 0.022222 | 0.133333 | 0 | 0.2 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
030e64e3abb888e387c43080896e7ec7a7d414e1 | 618 | py | Python | xhale/_version.py | jupyter-xeus/xhale | fa62c6c7e8429c878a375e142db35917e8d88c99 | [
"BSD-3-Clause"
] | 2 | 2018-10-10T16:41:52.000Z | 2019-12-05T14:46:22.000Z | xhale/_version.py | QuantStack/xhale | fa62c6c7e8429c878a375e142db35917e8d88c99 | [
"BSD-3-Clause"
] | 1 | 2021-03-18T14:15:30.000Z | 2021-03-18T14:15:30.000Z | xhale/_version.py | QuantStack/xhale | fa62c6c7e8429c878a375e142db35917e8d88c99 | [
"BSD-3-Clause"
] | 2 | 2019-03-27T01:11:59.000Z | 2019-12-17T08:59:28.000Z | #############################################################################
# Copyright (c) 2018, Johan Mabille, Sylvain Corlay and Loic Gouarin #
# #
# Distributed under the terms of the BSD 3-Clause License. #
# ... | 56.181818 | 77 | 0.333333 | 43 | 618 | 4.651163 | 0.767442 | 0.11 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020356 | 0.364078 | 618 | 10 | 78 | 61.8 | 0.48855 | 0.600324 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
030f464b21f45a46e7f67ed16918ed6616069dce | 3,675 | py | Python | recipes/Python/577236_ur1ca_commandline_client/recipe-577236.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/577236_ur1ca_commandline_client/recipe-577236.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/577236_ur1ca_commandline_client/recipe-577236.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | #!/usr/bin/env python
"""ur1.py -- command-line ur1.ca client.
ur1.ca is the URL shortening services provided by status.net. This script
makes it possible to access the service from the command line. This is done
by scraping the returned page and look for the shortened URL.
USAGE:
ur1.py LONGURL
RETURN STATUS:
... | 25 | 105 | 0.675918 | 514 | 3,675 | 4.782101 | 0.356031 | 0.02441 | 0.008544 | 0.021969 | 0.08869 | 0.057771 | 0 | 0 | 0 | 0 | 0 | 0.010262 | 0.23102 | 3,675 | 146 | 106 | 25.171233 | 0.859519 | 0.020408 | 0 | 0.072727 | 0 | 0.018182 | 0.120235 | 0.046334 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072727 | null | null | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
030fac24877f1f7c968fe06e034399c4bcbb1534 | 2,379 | py | Python | examples/using_parameters.py | danielk333/pyant | 7abcada86145482a0ca63f3072c577dc441da4b7 | [
"MIT"
] | 1 | 2021-10-22T01:17:13.000Z | 2021-10-22T01:17:13.000Z | examples/using_parameters.py | danielk333/pyant | 7abcada86145482a0ca63f3072c577dc441da4b7 | [
"MIT"
] | 5 | 2020-09-22T10:31:00.000Z | 2022-03-14T07:38:34.000Z | examples/using_parameters.py | danielk333/pyant | 7abcada86145482a0ca63f3072c577dc441da4b7 | [
"MIT"
] | null | null | null | '''
Using parameters
=================
'''
import matplotlib.pyplot as plt
import numpy as np
import pyant
beam = pyant.Airy(
azimuth=[0, 45.0, 0],
elevation=[89.0, 80.0, 60.0],
frequency=[930e6, 230e6],
I0=10**4.81,
radius=np.linspace(10,23.0,num=20),
)
k = np.array([0,0,1.0]).T
#This is the sha... | 26.142857 | 89 | 0.676335 | 405 | 2,379 | 3.97284 | 0.31358 | 0.07458 | 0.052206 | 0.082039 | 0.315103 | 0.286513 | 0.216905 | 0.193288 | 0.172157 | 0.149782 | 0 | 0.05 | 0.159311 | 2,379 | 91 | 90 | 26.142857 | 0.7545 | 0.369483 | 0 | 0.422222 | 0 | 0.111111 | 0.478997 | 0.02981 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.488889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0320469c74bb6ee4102a900e5cf34c0a7eb26bd1 | 3,998 | py | Python | create-results/utils.py | jphire/iothub-testbed | 3210e9fb85246b9c6c3b81107aafd536c61b1cc9 | [
"Apache-2.0"
] | null | null | null | create-results/utils.py | jphire/iothub-testbed | 3210e9fb85246b9c6c3b81107aafd536c61b1cc9 | [
"Apache-2.0"
] | null | null | null | create-results/utils.py | jphire/iothub-testbed | 3210e9fb85246b9c6c3b81107aafd536c61b1cc9 | [
"Apache-2.0"
] | null | null | null | import os
import numpy as np
import scipy as sp
import scipy.stats
import json
tags_map = {
'feed_fetched':'Fetching-feed',
'after_data_fetch':'Fetching-data',
'execution_end':'Executing-code',
'after_data_map':'Mapping-data',
'piece_response_latency':'Hub-latency',
'dist_response_latency':'Gat... | 29.835821 | 116 | 0.570785 | 462 | 3,998 | 4.833333 | 0.32684 | 0.037618 | 0.059113 | 0.018809 | 0.031348 | 0.031348 | 0.031348 | 0 | 0 | 0 | 0 | 0.007642 | 0.312656 | 3,998 | 133 | 117 | 30.06015 | 0.804949 | 0.041771 | 0 | 0.101852 | 0 | 0 | 0.115294 | 0.023268 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046296 | null | null | 0.009259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
032743e0330a293e7d7a2d5bcea57d9d96fb7627 | 3,293 | py | Python | petridish/app/directory.py | Bhaskers-Blu-Org2/petridishnn | bf800c695a7f0774106968a0fadc5150074269ad | [
"MIT"
] | 121 | 2019-06-04T08:30:53.000Z | 2021-12-17T13:27:54.000Z | petridish/app/directory.py | arita37/petridishnn | bf800c695a7f0774106968a0fadc5150074269ad | [
"MIT"
] | 1 | 2019-11-21T04:29:09.000Z | 2019-11-21T04:29:09.000Z | petridish/app/directory.py | arita37/petridishnn | bf800c695a7f0774106968a0fadc5150074269ad | [
"MIT"
] | 22 | 2019-10-10T15:35:47.000Z | 2021-09-13T12:46:09.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import os
import glob
import re
from petridish.philly.container import is_philly
from petridish.app.multi_proc import has_stopped
"""
Dir structures
"""
def _updir(d, n=1):
for _ in range(n):
d = os.path.dirname(d)
return d
""... | 26.991803 | 89 | 0.652293 | 514 | 3,293 | 3.929961 | 0.235409 | 0.068317 | 0.047525 | 0.055446 | 0.262376 | 0.216337 | 0.151485 | 0.138614 | 0.106931 | 0.039604 | 0 | 0.004388 | 0.238688 | 3,293 | 122 | 90 | 26.991803 | 0.801356 | 0.141209 | 0 | 0.253333 | 0 | 0 | 0.014341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173333 | false | 0 | 0.066667 | 0.04 | 0.506667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
032bdb2de9a908a1fef9de65c9a3bcc72d64dc14 | 562 | py | Python | dash_mdc_neptune/themes/utils.py | noosenergy/dash-mdc-neptune | 9c36ee772e83aaf56b87bbe495a240170a058fac | [
"MIT"
] | null | null | null | dash_mdc_neptune/themes/utils.py | noosenergy/dash-mdc-neptune | 9c36ee772e83aaf56b87bbe495a240170a058fac | [
"MIT"
] | null | null | null | dash_mdc_neptune/themes/utils.py | noosenergy/dash-mdc-neptune | 9c36ee772e83aaf56b87bbe495a240170a058fac | [
"MIT"
] | null | null | null | import base64
import pathlib
from typing import List, Tuple
STATIC_DIR = pathlib.Path(__file__).parent / "static"
def _get_img_uri(img_file: str) -> str:
img_path = STATIC_DIR / img_file
with img_path.open(mode="rb") as f:
img_data = f.read()
encoded = base64.b64encode(img_data).decode("ascii")
... | 28.1 | 83 | 0.701068 | 83 | 562 | 4.506024 | 0.53012 | 0.112299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019272 | 0.169039 | 562 | 19 | 84 | 29.578947 | 0.781585 | 0 | 0 | 0 | 0 | 0 | 0.078292 | 0.05516 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | 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 |
032cc584ceb14becf409fa03236c789132e8e4fa | 10,994 | py | Python | plugins/fitter/minimizer.py | xraypy/_xraylarch_attic | a78a2d257bccb081ad15c43c831dee51d0b4845a | [
"BSD-3-Clause"
] | 1 | 2019-04-23T02:30:00.000Z | 2019-04-23T02:30:00.000Z | plugins/fitter/minimizer.py | xraypy/_xraylarch_attic | a78a2d257bccb081ad15c43c831dee51d0b4845a | [
"BSD-3-Clause"
] | null | null | null | plugins/fitter/minimizer.py | xraypy/_xraylarch_attic | a78a2d257bccb081ad15c43c831dee51d0b4845a | [
"BSD-3-Clause"
] | null | null | null | """
minimizer for Larch, similar to lmfit-py.
Minimizer is a wrapper around scipy.leastsq, allowing a user to build
a fitting model as a function of general purpose fit parameters which
can be fixed or floated, bounded, or written as larch expressions.
The user sets up a model with a Group which contains all the fitt... | 35.464516 | 93 | 0.59678 | 1,380 | 10,994 | 4.663768 | 0.228986 | 0.009323 | 0.013984 | 0.014295 | 0.086544 | 0.051274 | 0.033872 | 0.033872 | 0.01243 | 0 | 0 | 0.00486 | 0.307531 | 10,994 | 309 | 94 | 35.579288 | 0.840536 | 0.01519 | 0 | 0.062827 | 0 | 0 | 0.085641 | 0.005488 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031414 | null | null | 0.010471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
032dc859627630b504867ccdc08fce5cb6e23861 | 413 | py | Python | app/core/migrations/0019_beneficiaire_date_creation.py | rach4you/secteur-app-api | c32093bc75db0ce84681df6cec5862542132e519 | [
"MIT"
] | null | null | null | app/core/migrations/0019_beneficiaire_date_creation.py | rach4you/secteur-app-api | c32093bc75db0ce84681df6cec5862542132e519 | [
"MIT"
] | 3 | 2021-03-10T22:56:54.000Z | 2022-02-27T07:00:47.000Z | app/core/migrations/0019_beneficiaire_date_creation.py | rach4you/secteur-app-api | c32093bc75db0ce84681df6cec5862542132e519 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-06-11 11:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0018_auto_20200609_1810'),
]
operations = [
migrations.AddField(
model_name='beneficiaire',
name='date_creat... | 21.736842 | 69 | 0.617433 | 46 | 413 | 5.391304 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10299 | 0.271186 | 413 | 18 | 70 | 22.944444 | 0.72093 | 0.108959 | 0 | 0 | 1 | 0 | 0.142077 | 0.062842 | 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 |
03310efc707b79d789b1fafbda59f0464d4fc7d4 | 824 | py | Python | hydra_one_navigation/scripts/make_plan_caller.py | PrabhjotKaurGosal/ROS_projects | 03a189a307e11b84c2c628ef37febc7744fd7d3b | [
"BSD-2-Clause"
] | null | null | null | hydra_one_navigation/scripts/make_plan_caller.py | PrabhjotKaurGosal/ROS_projects | 03a189a307e11b84c2c628ef37febc7744fd7d3b | [
"BSD-2-Clause"
] | null | null | null | hydra_one_navigation/scripts/make_plan_caller.py | PrabhjotKaurGosal/ROS_projects | 03a189a307e11b84c2c628ef37febc7744fd7d3b | [
"BSD-2-Clause"
] | null | null | null | #! /usr/bin/env python
import rospy
from nav_msgs.srv import GetPlan, GetPlanRequest
import sys
rospy.init_node('service_client')
rospy.wait_for_service('/move_base/make_plan')
make_plan_service = rospy.ServiceProxy('/move_base/make_plan', GetPlan)
msg = GetPlanRequest()
msg.start.header.frame_id = 'map'
msg.start.p... | 28.413793 | 71 | 0.765777 | 143 | 824 | 4.307692 | 0.300699 | 0.071429 | 0.136364 | 0.126623 | 0.470779 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0.018742 | 0.093447 | 824 | 28 | 72 | 29.428571 | 0.80589 | 0.025485 | 0 | 0 | 0 | 0 | 0.074813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03311c6c5c8b82f8f605c79295855e4f5a3f5e82 | 5,613 | py | Python | python3/numpy/Comparisons Masks and Boolean Logic.py | Nahid-Hassan/code-snippets | 24bd4b81564887822a0801a696001fcbeb6a7a75 | [
"MIT"
] | 2 | 2020-09-29T04:09:41.000Z | 2020-10-18T13:33:36.000Z | python3/numpy/Comparisons Masks and Boolean Logic.py | Nahid-Hassan/code-snippets | 24bd4b81564887822a0801a696001fcbeb6a7a75 | [
"MIT"
] | null | null | null | python3/numpy/Comparisons Masks and Boolean Logic.py | Nahid-Hassan/code-snippets | 24bd4b81564887822a0801a696001fcbeb6a7a75 | [
"MIT"
] | 1 | 2021-12-26T04:55:55.000Z | 2021-12-26T04:55:55.000Z | # Reference Book: Python Data Science Handbook (page:(70-77))
# Date(13 April, 2019) Day-3, Time = 3:25 PM
# This section covers the use of Boolean masks to examine and manipulate values
# within NumPy arrays.
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn; seaborn.set() #set... | 36.212903 | 104 | 0.690362 | 972 | 5,613 | 3.980453 | 0.32716 | 0.018093 | 0.0168 | 0.012406 | 0.130525 | 0.07237 | 0.027397 | 0.016542 | 0 | 0 | 0 | 0.044826 | 0.20114 | 5,613 | 154 | 105 | 36.448052 | 0.817351 | 0.306253 | 0 | 0 | 0 | 0 | 0.210275 | 0.020908 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085106 | 0 | 0.085106 | 0.659574 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
033298899396980c507e160e7cb7264f90b641a4 | 252 | py | Python | 1018-Banknotes.py | OrianaCadavid/uri-oj | 256c811007712e85f636ae5b9357a59cf608daa8 | [
"MIT"
] | null | null | null | 1018-Banknotes.py | OrianaCadavid/uri-oj | 256c811007712e85f636ae5b9357a59cf608daa8 | [
"MIT"
] | null | null | null | 1018-Banknotes.py | OrianaCadavid/uri-oj | 256c811007712e85f636ae5b9357a59cf608daa8 | [
"MIT"
] | null | null | null | banknotes = [100, 50, 20, 10, 5, 2, 1]
def main():
money = int(raw_input())
print money
for bn in banknotes:
print '{} nota(s) de R$ {},00'.format(money / bn, bn)
money = money % bn
if __name__ == '__main__':
main()
| 18 | 61 | 0.535714 | 37 | 252 | 3.405405 | 0.702703 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079096 | 0.297619 | 252 | 13 | 62 | 19.384615 | 0.632768 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0335aa32513de7fd8033d82bd4c1a9b8bc1aebeb | 1,386 | py | Python | quizzes/00.organize.me/Cracking the Coding Interview/18-7-checkme.py | JiniousChoi/encyclopedia-in-code | 77bc551a03a2a3e3808e50016ece14adb5cfbd96 | [
"MIT"
] | 2 | 2018-07-20T10:15:49.000Z | 2018-07-20T10:16:54.000Z | quizzes/00.organize.me/Cracking the Coding Interview/18-7-checkme.py | JiniousChoi/encyclopedia-in-code | 77bc551a03a2a3e3808e50016ece14adb5cfbd96 | [
"MIT"
] | 2 | 2018-06-26T09:12:44.000Z | 2019-12-18T00:09:14.000Z | quizzes/00.organize.me/Cracking the Coding Interview/18-7-checkme.py | JiniousChoi/encyclopedia-in-code | 77bc551a03a2a3e3808e50016ece14adb5cfbd96 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
''' 주어진 단어 리스트에서 , 다른 언어들을 조합하여
만들 수 있는 가장 긴 단어를 찾는 프로그램을 작성하라. '''
import unittest
def find_longest_compound(words):
words.sort(key=lambda w: len(w), reverse=True)
db = {}
for word in words:
db[word] = None #value is dont-care
for word in words:
c = get_compoun... | 28.875 | 112 | 0.596681 | 193 | 1,386 | 4.150259 | 0.430052 | 0.074906 | 0.048689 | 0.059925 | 0.197253 | 0.197253 | 0.197253 | 0.197253 | 0.069913 | 0.069913 | 0 | 0.015826 | 0.270563 | 1,386 | 47 | 113 | 29.489362 | 0.776459 | 0.11544 | 0 | 0.117647 | 0 | 0 | 0.06441 | 0 | 0 | 0 | 0 | 0.021277 | 0.117647 | 1 | 0.147059 | false | 0 | 0.029412 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03412e296ba0045d46a518b94ecaeb9705c1ce78 | 13,103 | py | Python | statarb/src/python/lib/data_handlers/barra_test.py | mikimaus78/ml_monorepo | b2c2627ff0e86e27f6829170d0dac168d8e5783b | [
"BSD-3-Clause"
] | 51 | 2019-02-01T19:43:37.000Z | 2022-03-16T09:07:03.000Z | statarb/src/python/lib/data_handlers/barra_test.py | mikimaus78/ml_monorepo | b2c2627ff0e86e27f6829170d0dac168d8e5783b | [
"BSD-3-Clause"
] | 2 | 2019-02-23T18:54:22.000Z | 2019-11-09T01:30:32.000Z | statarb/src/python/lib/data_handlers/barra_test.py | mikimaus78/ml_monorepo | b2c2627ff0e86e27f6829170d0dac168d8e5783b | [
"BSD-3-Clause"
] | 35 | 2019-02-08T02:00:31.000Z | 2022-03-01T23:17:00.000Z | import os
import string
import util
import datetime
import newdb
import datafiles
#import config
database = newdb.get_db()
__CAPITALIZATION_UPDATE_THRESHOLD = 0.03 # 5%
def __capEquals(previous, new):
if previous == 0:
if new == 0: return True
else: return False
else:
return abs(new /... | 44.117845 | 181 | 0.633901 | 1,432 | 13,103 | 5.724162 | 0.21648 | 0.018787 | 0.007686 | 0.01159 | 0.374771 | 0.348298 | 0.324265 | 0.297792 | 0.255337 | 0.247774 | 0 | 0.006964 | 0.254751 | 13,103 | 296 | 182 | 44.266892 | 0.832463 | 0.198657 | 0 | 0.247423 | 0 | 0 | 0.110643 | 0 | 0 | 0 | 0 | 0 | 0.015464 | 0 | null | null | 0 | 0.030928 | null | null | 0.030928 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
034320b10304f1878591c8ba57311b84f6b003b5 | 3,699 | py | Python | cards/deck.py | doctoryes/card-play | 392e3585cd961f9aa29fea8b30f6677af54e4ab8 | [
"MIT"
] | null | null | null | cards/deck.py | doctoryes/card-play | 392e3585cd961f9aa29fea8b30f6677af54e4ab8 | [
"MIT"
] | null | null | null | cards/deck.py | doctoryes/card-play | 392e3585cd961f9aa29fea8b30f6677af54e4ab8 | [
"MIT"
] | null | null | null | """
Deck of cards.
"""
import itertools
import json
import random
SUITS = (
'Hearts',
'Diamonds',
'Clubs',
'Spades'
)
RANKS = [str(x) for x in range(2, 11)] + ['Jack', 'Queen', 'King', 'Ace']
class Card(object):
"""
A single card in a classic card deck.
"""
def __init__(self, suit=Non... | 27.198529 | 94 | 0.550419 | 467 | 3,699 | 4.194861 | 0.229122 | 0.087289 | 0.018377 | 0.022971 | 0.29658 | 0.225115 | 0.144972 | 0.144972 | 0.144972 | 0.112302 | 0 | 0.004018 | 0.327115 | 3,699 | 135 | 95 | 27.4 | 0.783045 | 0.200865 | 0 | 0.202703 | 0 | 0 | 0.038304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22973 | false | 0 | 0.040541 | 0.054054 | 0.486486 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0345ab16a0ae12eb8898b80ec9d35cfa4f92515a | 242 | py | Python | src/py/analysis_lib/video_creator/colors.py | LandonFuhr/aseen | 9a7d6b0a66930872cf1da7d3a5493326285f3bd1 | [
"MIT"
] | null | null | null | src/py/analysis_lib/video_creator/colors.py | LandonFuhr/aseen | 9a7d6b0a66930872cf1da7d3a5493326285f3bd1 | [
"MIT"
] | null | null | null | src/py/analysis_lib/video_creator/colors.py | LandonFuhr/aseen | 9a7d6b0a66930872cf1da7d3a5493326285f3bd1 | [
"MIT"
] | null | null | null | from matplotlib import cm
# (B, G, R)
mouse_colors = [
(83, 255, 18), # green
(0, 139, 232), # orange
(255, 136, 0), # blue
(0, 196, 255), # yellow
(0, 25, 255) # red
]
outline_colormap = cm.get_cmap('plasma', 100)
| 18.615385 | 45 | 0.53719 | 36 | 242 | 3.527778 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212644 | 0.280992 | 242 | 12 | 46 | 20.166667 | 0.517241 | 0.157025 | 0 | 0 | 0 | 0 | 0.030457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0345f5ab59cf50eea9ae775c655301f52d8e6c90 | 1,410 | py | Python | nsd1805/python/day10/mysql_tedu.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | nsd1805/python/day10/mysql_tedu.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | nsd1805/python/day10/mysql_tedu.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | import pymysql
conn = pymysql.connect(
host='127.0.0.1',
port=3306,
user='root',
passwd='tedu.cn',
db='tedu1805',
charset='utf8'
)
cursor = conn.cursor()
insert1 = 'INSERT INTO departments(dep_id, dep_name) VALUES (%s, %s)'
# result1 = cursor.execute(insert1, (1, '人事部'))
# result2 = cursor.exe... | 28.77551 | 77 | 0.569504 | 154 | 1,410 | 5.181818 | 0.480519 | 0.082707 | 0.095238 | 0.090226 | 0.260652 | 0.260652 | 0.260652 | 0.197995 | 0.197995 | 0.197995 | 0 | 0.043902 | 0.12766 | 1,410 | 48 | 78 | 29.375 | 0.604878 | 0.558156 | 0 | 0 | 0 | 0 | 0.308434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
034697ff35ec362dadb698d22b02de28294d462b | 735 | py | Python | project/file_upload/models.py | Tanukium/msemi | 40da6c4942cfffda31ba302ac0b8e6f8be2e86e4 | [
"MIT"
] | 9 | 2019-01-12T04:19:27.000Z | 2019-03-26T15:22:32.000Z | project/file_upload/models.py | Tanukium/msemi | 40da6c4942cfffda31ba302ac0b8e6f8be2e86e4 | [
"MIT"
] | null | null | null | project/file_upload/models.py | Tanukium/msemi | 40da6c4942cfffda31ba302ac0b8e6f8be2e86e4 | [
"MIT"
] | null | null | null | from django.db import models
import os
from django.conf import settings
from django.core.exceptions import ValidationError
# Create your models here.
# Define user directory path
def file_size(value):
limit = 524000
if value.size > limit:
raise ValidationError('File too large. Size should not exceed ... | 26.25 | 81 | 0.712925 | 102 | 735 | 5.068627 | 0.509804 | 0.046422 | 0.065764 | 0.061896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015075 | 0.187755 | 735 | 27 | 82 | 27.222222 | 0.850921 | 0.069388 | 0 | 0 | 0 | 0 | 0.082232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.235294 | 0.058824 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0347475f473fe9ec45d332c42608bba28f681d74 | 417 | py | Python | snmpv3_example1.py | maddula55/python_test | abbe6b5ee1f5f647e7de74e59df250ea97d1b4a4 | [
"Apache-2.0"
] | null | null | null | snmpv3_example1.py | maddula55/python_test | abbe6b5ee1f5f647e7de74e59df250ea97d1b4a4 | [
"Apache-2.0"
] | null | null | null | snmpv3_example1.py | maddula55/python_test | abbe6b5ee1f5f647e7de74e59df250ea97d1b4a4 | [
"Apache-2.0"
] | null | null | null | if True:
IP = " 50.76.53.27"
a_user="pysnmp"
auth_key = "galileo1"
encrypt_key= "galileo1"
snmp_user = (a_user, auth_key, encrypt_key)
pynet_rtr1 = (IP, 7961)
pynet_rtr2 = (IP, 8061)
snmp_data = snmp_helper.snmp_get_oid_v3(pynet_rtr1, snmp_user, oid="1.3.6.1.2.1.1.5.0")
# function snmp_get_oid_v3 is p... | 23.166667 | 88 | 0.697842 | 74 | 417 | 3.635135 | 0.527027 | 0.111524 | 0.104089 | 0.089219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093567 | 0.179856 | 417 | 17 | 89 | 24.529412 | 0.692982 | 0.129496 | 0 | 0 | 0 | 0 | 0.148688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
034bf8a0a07aff53b16227562b71b0e7e30fe65f | 28,503 | py | Python | code/replicate.py | tedunderwood/fiction | 33e2986fecaa3d154b5fdd609146b65d97974275 | [
"MIT"
] | 21 | 2016-05-25T00:02:19.000Z | 2021-11-23T06:51:07.000Z | code/replicate.py | tedunderwood/fiction | 33e2986fecaa3d154b5fdd609146b65d97974275 | [
"MIT"
] | null | null | null | code/replicate.py | tedunderwood/fiction | 33e2986fecaa3d154b5fdd609146b65d97974275 | [
"MIT"
] | 6 | 2016-10-18T12:56:18.000Z | 2020-09-01T01:36:02.000Z | #!/usr/bin/env python3
# replicate.py
# This master script gives me a way to record the settings I used for
# various aspects of the article "The Life Cycles of Genres," and
# (I hope) allows other scholars to reproduce the same tests.
# Generally, I've defined a separate function for each part of the
# article that... | 37.55336 | 240 | 0.703891 | 3,230 | 28,503 | 6.159443 | 0.157895 | 0.021111 | 0.015381 | 0.03056 | 0.727369 | 0.689822 | 0.673285 | 0.664036 | 0.648052 | 0.641769 | 0 | 0.022515 | 0.202189 | 28,503 | 758 | 241 | 37.602902 | 0.852375 | 0.236431 | 0 | 0.667476 | 0 | 0 | 0.200639 | 0.00709 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033981 | false | 0 | 0.004854 | 0 | 0.053398 | 0.140777 | 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 |
035183b5ede09c2b87aabcddbc848197b3cf447b | 845 | py | Python | recipes/Python/576587_Sort_sections_keys_ini/recipe-576587.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/576587_Sort_sections_keys_ini/recipe-576587.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/576587_Sort_sections_keys_ini/recipe-576587.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | #!/usr/bin/python
# -*- coding: cp1250 -*-
__version__ = '$Id: sort_ini.py 543 2008-12-19 13:44:59Z mn $'
# author: Michal Niklas
import sys
USAGE = 'USAGE:\n\tsort_ini.py file.ini'
def sort_ini(fname):
"""sort .ini file: sorts sections and in each section sorts keys"""
f = file(fname)
lines = f.readlines()
f.c... | 18.369565 | 68 | 0.633136 | 126 | 845 | 4.150794 | 0.484127 | 0.053537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034743 | 0.216568 | 845 | 45 | 69 | 18.777778 | 0.755287 | 0.072189 | 0 | 0 | 0 | 0 | 0.123249 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028571 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03564030eafe686f512d0bd2700b2231b5dfc934 | 1,570 | py | Python | alvi/tests/resources/client/local_python_client/__init__.py | alviproject/alvi | ec77919a546c11c46b178a21236792f8b0d95cbd | [
"MIT"
] | 10 | 2015-06-01T09:11:33.000Z | 2018-03-02T13:52:46.000Z | alvi/tests/resources/client/local_python_client/__init__.py | alviproject/alvi | ec77919a546c11c46b178a21236792f8b0d95cbd | [
"MIT"
] | null | null | null | alvi/tests/resources/client/local_python_client/__init__.py | alviproject/alvi | ec77919a546c11c46b178a21236792f8b0d95cbd | [
"MIT"
] | 5 | 2015-09-17T17:34:16.000Z | 2019-09-04T10:50:29.000Z | import logging
import importlib
import multiprocessing
from alvi.tests.resources.base import Resource
logger = logging.getLogger(__name__)
class LocalPythonClient(Resource):
def __init__(self):
logger.info("setting up clients")
self._clients = []
for scene in self.scenes:
modu... | 36.511628 | 74 | 0.643949 | 154 | 1,570 | 6.363636 | 0.461039 | 0.056122 | 0.036735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000862 | 0.261147 | 1,570 | 42 | 75 | 37.380952 | 0.843966 | 0.028662 | 0 | 0 | 0 | 0 | 0.296588 | 0.271654 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.083333 | false | 0 | 0.138889 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03685fbdfe4b7909a710fefd3ed2375d6f13513b | 3,585 | py | Python | sysidentpy/polynomial_basis/tests/test_simulation.py | neylsoncrepalde/sysidentpy | 3d241ff3c460a8e01f9bd8afbaf17f27ec3937f3 | [
"BSD-3-Clause"
] | 107 | 2020-05-19T12:59:56.000Z | 2022-03-29T05:25:27.000Z | sysidentpy/polynomial_basis/tests/test_simulation.py | nataliakeles/sysidentpy | d1af4243e7c3d2c0b456fb9b4fe120965a7ededc | [
"BSD-3-Clause"
] | 20 | 2020-05-24T15:56:15.000Z | 2022-03-05T19:54:02.000Z | sysidentpy/polynomial_basis/tests/test_simulation.py | nataliakeles/sysidentpy | d1af4243e7c3d2c0b456fb9b4fe120965a7ededc | [
"BSD-3-Clause"
] | 25 | 2020-05-19T14:02:17.000Z | 2022-03-15T20:17:58.000Z | from numpy.testing._private.utils import assert_allclose
from sysidentpy.polynomial_basis import PolynomialNarmax
from sysidentpy.utils.generate_data import get_miso_data, get_siso_data
import numpy as np
from numpy.testing import assert_almost_equal, assert_array_equal
from numpy.testing import assert_raises
from sysi... | 26.555556 | 85 | 0.582985 | 488 | 3,585 | 4.059426 | 0.190574 | 0.015144 | 0.015144 | 0.040384 | 0.518425 | 0.376073 | 0.376073 | 0.347804 | 0.347804 | 0.347804 | 0 | 0.106007 | 0.28954 | 3,585 | 134 | 86 | 26.753731 | 0.671771 | 0.080335 | 0 | 0.339623 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 1 | 0.066038 | false | 0 | 0.066038 | 0 | 0.132075 | 0 | 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 |
036888d7f3c7288d55840fca860797ee41cb0e1d | 895 | py | Python | hokudai_furima/chat/migrations/0005_auto_20180514_0455.py | TetsuFe/hokuma | b981a52b3bf8d7268bf791c5827bbe8af90afef6 | [
"MIT"
] | 1 | 2021-02-13T03:51:42.000Z | 2021-02-13T03:51:42.000Z | hokudai_furima/chat/migrations/0005_auto_20180514_0455.py | TetsuFe/hokuma | b981a52b3bf8d7268bf791c5827bbe8af90afef6 | [
"MIT"
] | null | null | null | hokudai_furima/chat/migrations/0005_auto_20180514_0455.py | TetsuFe/hokuma | b981a52b3bf8d7268bf791c5827bbe8af90afef6 | [
"MIT"
] | 1 | 2021-09-18T09:25:48.000Z | 2021-09-18T09:25:48.000Z | # Generated by Django 2.0.3 on 2018-05-14 04:55
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('chat', '0004_auto_201803... | 33.148148 | 159 | 0.680447 | 108 | 895 | 5.416667 | 0.435185 | 0.054701 | 0.071795 | 0.112821 | 0.509402 | 0.430769 | 0.430769 | 0.287179 | 0.287179 | 0.287179 | 0 | 0.043909 | 0.211173 | 895 | 26 | 160 | 34.423077 | 0.784703 | 0.050279 | 0 | 0.3 | 1 | 0 | 0.121462 | 0.027123 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 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 |
036d40bbe450bc692115b002e4829e0cd1d26f33 | 2,181 | py | Python | maml_vs_adapted_maml_src/dataloaders/union_sl_dataloaders.py | brando90/Does-MAML-Only-Work-via-Feature-Re-use-A-Data-Set-Centric-Perspective | 45c4fabf35d6d8d19e49092e84e8ac9fa55aee8d | [
"MIT"
] | null | null | null | maml_vs_adapted_maml_src/dataloaders/union_sl_dataloaders.py | brando90/Does-MAML-Only-Work-via-Feature-Re-use-A-Data-Set-Centric-Perspective | 45c4fabf35d6d8d19e49092e84e8ac9fa55aee8d | [
"MIT"
] | null | null | null | maml_vs_adapted_maml_src/dataloaders/union_sl_dataloaders.py | brando90/Does-MAML-Only-Work-via-Feature-Re-use-A-Data-Set-Centric-Perspective | 45c4fabf35d6d8d19e49092e84e8ac9fa55aee8d | [
"MIT"
] | null | null | null | """
Union of data sets for SL training.
"""
from typing import Union
import torchvision
from torch import Tensor
from torch.utils.data import Dataset
from pathlib import Path
import torch
from task2vec import Task2Vec
from models import get_model
import datasets
import task_similarity
def get_datasets(root: Union[s... | 31.157143 | 112 | 0.680422 | 290 | 2,181 | 4.893103 | 0.3 | 0.093023 | 0.064834 | 0.040169 | 0.296688 | 0.235377 | 0.235377 | 0.235377 | 0.186047 | 0.186047 | 0 | 0.009164 | 0.19945 | 2,181 | 69 | 113 | 31.608696 | 0.803551 | 0.158643 | 0 | 0.102564 | 0 | 0 | 0.046188 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.128205 | false | 0.025641 | 0.282051 | 0 | 0.487179 | 0.102564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
036ede6d15174e0d9d1c6520abc75e7dce977963 | 782 | py | Python | fishpass/migrations/0009_auto_20181003_1402.py | Ecotrust/FishPass | a69a4f9de46f28653ae92ef33c1e5cf7036cfb37 | [
"MIT"
] | 3 | 2019-03-01T04:00:21.000Z | 2022-02-10T22:17:20.000Z | fishpass/migrations/0009_auto_20181003_1402.py | Ecotrust/FishPass | a69a4f9de46f28653ae92ef33c1e5cf7036cfb37 | [
"MIT"
] | 165 | 2018-04-13T18:24:39.000Z | 2022-03-02T03:27:33.000Z | fishpass/migrations/0009_auto_20181003_1402.py | Ecotrust/FishPass | a69a4f9de46f28653ae92ef33c1e5cf7036cfb37 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-10-03 21:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fishpass', '0008_project_ownership_input'),
]
operations = [
migrations.Re... | 26.965517 | 145 | 0.608696 | 84 | 782 | 5.47619 | 0.690476 | 0.058696 | 0.104348 | 0.130435 | 0.265217 | 0.265217 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.282609 | 782 | 28 | 146 | 27.928571 | 0.780749 | 0.088235 | 0 | 0.380952 | 1 | 0 | 0.219718 | 0.039437 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.047619 | 0.095238 | 0 | 0.238095 | 0 | 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 |
0377bba4e392be3886603d548b54cfed69580130 | 600 | py | Python | lib/BlockerChecker.py | geirem/python-bom-tracker | dfffe8d5aa142bd8c488c4d79c215c1374920fc5 | [
"MIT"
] | null | null | null | lib/BlockerChecker.py | geirem/python-bom-tracker | dfffe8d5aa142bd8c488c4d79c215c1374920fc5 | [
"MIT"
] | null | null | null | lib/BlockerChecker.py | geirem/python-bom-tracker | dfffe8d5aa142bd8c488c4d79c215c1374920fc5 | [
"MIT"
] | null | null | null | import json
from lib.Component import Component
class BlockerChecker:
def __init__(self, file: str):
self.__blocked = {}
self.__populate_blocked_list(file)
def __populate_blocked_list(self, file: str):
with open(file, 'r') as inimage:
blocked_list = json.load(inimage)
... | 28.571429 | 72 | 0.638333 | 73 | 600 | 4.945205 | 0.410959 | 0.121884 | 0.060942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 600 | 20 | 73 | 30 | 0.820455 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
037a876666e65676009361291ada5c604dc8aea5 | 612 | py | Python | categories/models.py | ajmasia/wordplease | 0fcea3783c74f2e2faf48ffd31ce7bed76dfb789 | [
"Unlicense"
] | null | null | null | categories/models.py | ajmasia/wordplease | 0fcea3783c74f2e2faf48ffd31ce7bed76dfb789 | [
"Unlicense"
] | null | null | null | categories/models.py | ajmasia/wordplease | 0fcea3783c74f2e2faf48ffd31ce7bed76dfb789 | [
"Unlicense"
] | null | null | null | from django.contrib.auth.models import User
from django.db import models
class Category(models.Model):
"""
Categories data model per user/blog
"""
owner = models.ForeignKey(User, on_delete=models.CASCADE)
name = models.CharField(max_length=150)
created_on = models.DateTimeField(auto_now_add=... | 24.48 | 61 | 0.668301 | 77 | 612 | 5.142857 | 0.649351 | 0.050505 | 0.106061 | 0.126263 | 0.141414 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008529 | 0.23366 | 612 | 25 | 62 | 24.48 | 0.835821 | 0.171569 | 0 | 0 | 0 | 0 | 0.0282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cee53ea7ee276085040fc6e4c9218f9eaa1b0efd | 301 | py | Python | testapp/main.py | RobotHanzo/flaskfilemanager | 7c2ffdec8023a018ff7a2443fda96c7f90916ba4 | [
"Apache-2.0"
] | 21 | 2017-11-09T22:38:10.000Z | 2021-11-29T20:25:46.000Z | testapp/main.py | RobotHanzo/flaskfilemanager | 7c2ffdec8023a018ff7a2443fda96c7f90916ba4 | [
"Apache-2.0"
] | 10 | 2019-02-27T12:55:11.000Z | 2022-01-13T00:41:03.000Z | testapp/main.py | RobotHanzo/flaskfilemanager | 7c2ffdec8023a018ff7a2443fda96c7f90916ba4 | [
"Apache-2.0"
] | 8 | 2018-10-30T13:01:01.000Z | 2021-07-28T15:48:02.000Z | """
Main blueprint for test app
"""
import logging
from flask import Blueprint, render_template
__author__ = 'Stephen Brown (Little Fish Solutions LTD)'
log = logging.getLogger(__name__)
main = Blueprint('main', __name__)
@main.route('/')
def index():
return render_template('index.html')
| 15.05 | 56 | 0.724252 | 37 | 301 | 5.513514 | 0.702703 | 0.127451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152824 | 301 | 19 | 57 | 15.842105 | 0.8 | 0.089701 | 0 | 0 | 0 | 0 | 0.211321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
cee7bd3c95a2506c028f0761b40c738b2f00b2f4 | 424 | py | Python | client.py | ChargedMonk/Server-Client-communication-using-UDP-Protocol | fdf1ee6271b6dcf26829a9750664cdc8c81f8faa | [
"MIT"
] | null | null | null | client.py | ChargedMonk/Server-Client-communication-using-UDP-Protocol | fdf1ee6271b6dcf26829a9750664cdc8c81f8faa | [
"MIT"
] | null | null | null | client.py | ChargedMonk/Server-Client-communication-using-UDP-Protocol | fdf1ee6271b6dcf26829a9750664cdc8c81f8faa | [
"MIT"
] | null | null | null | import socket
def sendmsg(msgFromClient):
bytesToSend = str.encode(msgFromClient)
serverAddressPort = ("127.0.0.1", 20001)
bufferSize = 5120
UDPClientSocket = socket.socket(family=socket.AF_INET, type=socket.SOCK_DGRAM)
UDPClientSocket.sendto(bytesToSend, serverAddressPort)
... | 42.4 | 83 | 0.709906 | 42 | 424 | 7.119048 | 0.690476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049563 | 0.191038 | 424 | 9 | 84 | 47.111111 | 0.822157 | 0 | 0 | 0 | 0 | 0 | 0.033735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 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 |
ceea33a8f373033d483f21b0d3b45cf10e69a485 | 1,510 | py | Python | bmcs_beam/mxn/matresdev/db/exdb/loadtxt_novalue.py | bmcs-group/bmcs_beam | b53967d0d0461657ec914a3256ec40f9dcff80d5 | [
"MIT"
] | 1 | 2021-05-07T11:10:27.000Z | 2021-05-07T11:10:27.000Z | bmcs_beam/mxn/matresdev/db/exdb/loadtxt_novalue.py | bmcs-group/bmcs_beam | b53967d0d0461657ec914a3256ec40f9dcff80d5 | [
"MIT"
] | null | null | null | bmcs_beam/mxn/matresdev/db/exdb/loadtxt_novalue.py | bmcs-group/bmcs_beam | b53967d0d0461657ec914a3256ec40f9dcff80d5 | [
"MIT"
] | null | null | null | '''
Created on Apr 9, 2010
@author: alexander
'''
from numpy import array, vstack, zeros
from os.path import \
join
from matresdev.db.simdb.simdb import simdb
# The implementation works but is too time consuming.
# @todo: check for a faster and more simple solution!
def loadtxt_novalue(file_name):
'''Ret... | 30.2 | 88 | 0.551656 | 186 | 1,510 | 4.306452 | 0.473118 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015125 | 0.255629 | 1,510 | 49 | 89 | 30.816327 | 0.697509 | 0.168874 | 0 | 0.064516 | 0 | 0 | 0.237013 | 0.119318 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.032258 | false | 0 | 0.096774 | 0 | 0.16129 | 0.193548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ceee44d934e8b84acda78f0b31d76ab5898ee66e | 19,802 | py | Python | superai/cli.py | mysuperai/superai-sdk | 796c411c6ab69209600bf727e8fd08c20f4d67b1 | [
"Apache-2.0"
] | 1 | 2020-12-03T18:18:16.000Z | 2020-12-03T18:18:16.000Z | superai/cli.py | mysuperai/superai-sdk | 796c411c6ab69209600bf727e8fd08c20f4d67b1 | [
"Apache-2.0"
] | 13 | 2021-02-22T18:27:58.000Z | 2022-02-10T08:14:10.000Z | superai/cli.py | mysuperai/superai-sdk | 796c411c6ab69209600bf727e8fd08c20f4d67b1 | [
"Apache-2.0"
] | 1 | 2021-04-27T12:38:47.000Z | 2021-04-27T12:38:47.000Z | import os
import boto3
import click
import json
import signal
import sys
import yaml
from botocore.exceptions import ClientError
from datetime import datetime
from typing import List
from warrant import Cognito
from superai import __version__
from superai.client import Client
from superai.config import get_config_dir... | 30.844237 | 120 | 0.65554 | 2,747 | 19,802 | 4.555515 | 0.1336 | 0.056257 | 0.04435 | 0.027329 | 0.485456 | 0.425284 | 0.39316 | 0.387646 | 0.35744 | 0.340259 | 0 | 0.002817 | 0.193162 | 19,802 | 641 | 121 | 30.892356 | 0.780434 | 0.041814 | 0 | 0.426877 | 0 | 0.003953 | 0.296145 | 0.029861 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061265 | false | 0.055336 | 0.039526 | 0 | 0.104743 | 0.083004 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ceef20f2b2975b2cd4dacf83df35011ffa0ef75c | 1,815 | py | Python | interactive_check.py | jknielse/termtable | 410c559855fadbc2e8cad7c3e9ba15ef16de651e | [
"MIT"
] | null | null | null | interactive_check.py | jknielse/termtable | 410c559855fadbc2e8cad7c3e9ba15ef16de651e | [
"MIT"
] | null | null | null | interactive_check.py | jknielse/termtable | 410c559855fadbc2e8cad7c3e9ba15ef16de651e | [
"MIT"
] | null | null | null | import termtable
cols = ['Name', 'Position', 'Thingy']
rows = [
['Joe', 'CEO', 'A thing'],
['Fred', 'CFO', 'Another thing'],
['Bob', 'CTO', 'One more thing'],
['Bloop', 'Court Jester', 'Additional thing'],
]
tt = termtable.TerminalTable(cols, rows)
print 'Showing table:\n'
tt.show()
print 'Single se... | 26.304348 | 125 | 0.629201 | 233 | 1,815 | 4.854077 | 0.420601 | 0.026525 | 0.035367 | 0.050398 | 0.241379 | 0.241379 | 0.241379 | 0.208665 | 0.208665 | 0.208665 | 0 | 0.004878 | 0.209366 | 1,815 | 68 | 126 | 26.691176 | 0.783275 | 0 | 0 | 0.175439 | 0 | 0 | 0.282094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017544 | null | null | 0.245614 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cef0c036d8ee66d627079db30014ce7e1b5ae68f | 272 | py | Python | easier68k/core/enum/__init__.py | bpas247/Easier68k | 30a39883f1e73cd2bd848cf7bd356c96b8664ff4 | [
"MIT"
] | 16 | 2018-03-03T21:00:14.000Z | 2021-11-04T09:16:08.000Z | easier68k/core/enum/__init__.py | bpas247/Easier68k | 30a39883f1e73cd2bd848cf7bd356c96b8664ff4 | [
"MIT"
] | 99 | 2018-02-27T19:02:59.000Z | 2019-10-29T22:39:26.000Z | easier68k/core/enum/__init__.py | bpas247/Easier68k | 30a39883f1e73cd2bd848cf7bd356c96b8664ff4 | [
"MIT"
] | 5 | 2018-04-04T02:03:10.000Z | 2019-11-19T17:42:42.000Z | __all__ = ['condition',
'condition_status_code',
'ea_mode',
'ea_mode_bin',
'op_size',
'register',
'srecordtype',
'system_status_code',
'trap_task',
'trap_vector']
| 24.727273 | 36 | 0.4375 | 21 | 272 | 5 | 0.714286 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.444853 | 272 | 10 | 37 | 27.2 | 0.695364 | 0 | 0 | 0 | 0 | 0 | 0.427481 | 0.080153 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
30027d1aa06b6e09419bc65dbd658df0dd936a36 | 365 | py | Python | digital_badge/urls.py | CSElonewolf/Digital_Badge | f5a24c02e23cb354b3aa68e0627edfa5b8a628df | [
"MIT"
] | 1 | 2022-02-22T19:00:30.000Z | 2022-02-22T19:00:30.000Z | digital_badge/urls.py | CSElonewolf/digital_badge | f5a24c02e23cb354b3aa68e0627edfa5b8a628df | [
"MIT"
] | null | null | null | digital_badge/urls.py | CSElonewolf/digital_badge | f5a24c02e23cb354b3aa68e0627edfa5b8a628df | [
"MIT"
] | null | null | null | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path,include
from . import views
urlpatterns = [
path('admin/', admin.site.urls),
path('', views.home,name='home'),
path('badge/', include('badge.urls')),
]+ static(settings.... | 33.181818 | 64 | 0.742466 | 51 | 365 | 5.254902 | 0.411765 | 0.149254 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120548 | 365 | 11 | 64 | 33.181818 | 0.834891 | 0 | 0 | 0 | 0 | 0 | 0.071038 | 0 | 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 |
300607728d3f0f542bbd5ff56476b43549b739d9 | 929 | py | Python | python/ranks.py | alanc10n/snippets | af3222f934a812b5f4a57d3c86f8ca3604f956cc | [
"Unlicense"
] | null | null | null | python/ranks.py | alanc10n/snippets | af3222f934a812b5f4a57d3c86f8ca3604f956cc | [
"Unlicense"
] | 2 | 2015-01-20T13:22:03.000Z | 2015-02-01T22:26:48.000Z | python/ranks.py | alanc10n/snippets | af3222f934a812b5f4a57d3c86f8ca3604f956cc | [
"Unlicense"
] | null | null | null | """
Rank Vectors
Given an array (or list) of scores, return the array of ranks for each value in the array. The largest value has rank 1, the second largest value has rank 2, and so on. Ties should be handled by assigning the same rank to all tied values. For example:
ranks([9,3,6,10]) = [2,4,3,1] and ranks([3,3,3,3,... | 34.407407 | 251 | 0.643703 | 169 | 929 | 3.461538 | 0.461538 | 0.017094 | 0.015385 | 0.064957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06812 | 0.209903 | 929 | 26 | 252 | 35.730769 | 0.728883 | 0 | 0 | 0 | 0 | 0 | 0.179551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30063ddc83828d274c0f650620f74480dd2e8f53 | 4,861 | py | Python | src/pcbLibraryManager/libraries/libraryAVR.py | NiceCircuits/pcbLibraryManager | df83f24b5a558e0f7f72629d9ef7c82fcb9e6718 | [
"CC0-1.0"
] | null | null | null | src/pcbLibraryManager/libraries/libraryAVR.py | NiceCircuits/pcbLibraryManager | df83f24b5a558e0f7f72629d9ef7c82fcb9e6718 | [
"CC0-1.0"
] | 1 | 2016-04-16T08:16:36.000Z | 2016-04-16T08:16:36.000Z | src/pcbLibraryManager/libraries/libraryAVR.py | NiceCircuits/pcbLibraryManager | df83f24b5a558e0f7f72629d9ef7c82fcb9e6718 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 2 18:04:03 2015
@author: piotr at nicecircuits.com
"""
from libraryManager.library import libraryClass
from libraryManager.part import part
from footprints.footprintSmdQuad import footprintQfp
from footprints.footprintSmdDualRow import footprintSot23
from libraryManager... | 31.980263 | 107 | 0.649249 | 592 | 4,861 | 5.204392 | 0.388514 | 0.078871 | 0.024992 | 0.029211 | 0.186303 | 0.156767 | 0.130802 | 0.130802 | 0.080169 | 0.046089 | 0 | 0.067788 | 0.168484 | 4,861 | 152 | 108 | 31.980263 | 0.694458 | 0.072413 | 0 | 0.179487 | 0 | 0 | 0.150939 | 0.006563 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059829 | false | 0.051282 | 0.102564 | 0 | 0.222222 | 0.059829 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3016760a9f986d69a42bbe33c5c9ccc7dd27a5b2 | 433 | py | Python | src/data_manager/urls.py | MonkeyApproved/RealEstateScraper | 0c5dc8d07638f4e4a3d5fe5ef308568524c03e55 | [
"MIT"
] | null | null | null | src/data_manager/urls.py | MonkeyApproved/RealEstateScraper | 0c5dc8d07638f4e4a3d5fe5ef308568524c03e55 | [
"MIT"
] | null | null | null | src/data_manager/urls.py | MonkeyApproved/RealEstateScraper | 0c5dc8d07638f4e4a3d5fe5ef308568524c03e55 | [
"MIT"
] | 1 | 2022-01-02T16:36:38.000Z | 2022-01-02T16:36:38.000Z | from django.urls import path, include
from django.views.generic import TemplateView
from rest_framework.schemas import get_schema_view
from rest_framework.routers import DefaultRouter
from . import views
from scraping.xe import PropertyType, Xe
router = DefaultRouter()
router.register(r'load_config', views.LoadConfig... | 25.470588 | 53 | 0.803695 | 56 | 433 | 6.107143 | 0.535714 | 0.05848 | 0.099415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108545 | 433 | 16 | 54 | 27.0625 | 0.88601 | 0 | 0 | 0 | 0 | 0 | 0.048499 | 0 | 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 |
3021b37413a8b8459671583071a585bd58f4cbe5 | 164 | py | Python | Codeforces Online Judge Solve/47A - Triangular numbers.py | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | Codeforces Online Judge Solve/47A - Triangular numbers.py | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | Codeforces Online Judge Solve/47A - Triangular numbers.py | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | # Remon Hasan
n = int(input())
triangular = 1
i = 1
while triangular < n:
i += 1
triangular += i
if triangular == n:
print("YES")
else:
print("NO")
| 13.666667 | 21 | 0.567073 | 24 | 164 | 3.875 | 0.583333 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02521 | 0.27439 | 164 | 11 | 22 | 14.909091 | 0.756303 | 0.067073 | 0 | 0 | 0 | 0 | 0.033113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
302a24dc1e91f511bd0806c80e610a198f2edd51 | 1,694 | py | Python | app/auth/views.py | kangangi/pitchIP | 0e4f6b906d99beffad7ded263ee0d1a73feb2f8c | [
"MIT"
] | 1 | 2020-05-14T12:35:25.000Z | 2020-05-14T12:35:25.000Z | app/auth/views.py | kangangi/pitchIP | 0e4f6b906d99beffad7ded263ee0d1a73feb2f8c | [
"MIT"
] | null | null | null | app/auth/views.py | kangangi/pitchIP | 0e4f6b906d99beffad7ded263ee0d1a73feb2f8c | [
"MIT"
] | null | null | null | from flask import render_template,redirect,url_for,flash, request
from app.models import User
from .forms import RegistrationForm, LoginForm
from .. import db
from flask_login import login_user, login_required, logout_user
from . import auth
from ..email import mail_message
#Views
@auth.route('/register', methods = [... | 33.215686 | 97 | 0.680047 | 218 | 1,694 | 5.123853 | 0.311927 | 0.031334 | 0.037601 | 0.030439 | 0.082363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20425 | 1,694 | 51 | 98 | 33.215686 | 0.828635 | 0.002952 | 0 | 0.05 | 0 | 0 | 0.124926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0.1 | 0.175 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
302c402023d93ccffadcfb35a304e73c5fd86952 | 2,215 | py | Python | mandiokito/main.py | alefemoreira/mandiokito | fd749abedbe53e9aa4be87278406570fb00e54c8 | [
"MIT"
] | null | null | null | mandiokito/main.py | alefemoreira/mandiokito | fd749abedbe53e9aa4be87278406570fb00e54c8 | [
"MIT"
] | 9 | 2019-11-15T02:20:49.000Z | 2019-11-19T18:53:08.000Z | mandiokito/main.py | alefemoreira/mandiokito | fd749abedbe53e9aa4be87278406570fb00e54c8 | [
"MIT"
] | 1 | 2019-11-19T22:20:04.000Z | 2019-11-19T22:20:04.000Z | from kivy.app import App
from kivy.uix.screenmanager import ScreenManager, Screen
import re
#from kivy.config import Config
from telas import *
#from kivy.garden.mapview import MapView, MapMarker
from kivy.uix.textinput import TextInput
from kivy.clock import Clock, mainthread
from kivy.uix.popup import Popup
#from pl... | 29.144737 | 86 | 0.641535 | 286 | 2,215 | 4.811189 | 0.433566 | 0.052326 | 0.031977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023502 | 0.231603 | 2,215 | 76 | 87 | 29.144737 | 0.784959 | 0.333183 | 0 | 0 | 0 | 0 | 0.013057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171429 | false | 0 | 0.257143 | 0.028571 | 0.628571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
30319f81be1bd338248e3847dbc993f52005af83 | 5,109 | py | Python | tests/step_1_unit/test_orbs.py | logikal-code/pyorbs | f43d15efd957c9b3fa68fde64ceab3c54f3016e7 | [
"MIT"
] | 7 | 2019-07-19T15:14:56.000Z | 2019-07-31T01:57:41.000Z | tests/step_1_unit/test_orbs.py | logikal-code/pyorbs | f43d15efd957c9b3fa68fde64ceab3c54f3016e7 | [
"MIT"
] | 2 | 2019-09-16T07:29:42.000Z | 2020-05-15T13:19:52.000Z | tests/step_1_unit/test_orbs.py | logikal-code/pyorbs | f43d15efd957c9b3fa68fde64ceab3c54f3016e7 | [
"MIT"
] | null | null | null | from collections import namedtuple
from pytest import fixture, raises
from pyorbs.orbs import Orbs
@fixture
def orbs(tmp_path):
orbs = Orbs(str(tmp_path))
orbs.orbs = ['test']
return orbs
@fixture
def orb(mocker, orbs):
mocker.patch('pyorbs.orbs.exists', return_value=True)
return orbs.orb('tes... | 26.471503 | 89 | 0.694656 | 681 | 5,109 | 5.051395 | 0.138032 | 0.048837 | 0.069186 | 0.07936 | 0.52093 | 0.426744 | 0.294477 | 0.284302 | 0.208721 | 0.063953 | 0 | 0.000937 | 0.16422 | 5,109 | 192 | 90 | 26.609375 | 0.804684 | 0 | 0 | 0.320896 | 0 | 0 | 0.142298 | 0.031317 | 0 | 0 | 0 | 0 | 0.19403 | 1 | 0.208955 | false | 0 | 0.022388 | 0.007463 | 0.261194 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
30346c15c16059a7ffa18a59e3868aa7759aff7d | 410 | py | Python | django_giropay/admin.py | ParticulateSolutions/django-giropay | b94617e7ea6db151702edb0e566cf83244ab231f | [
"MIT"
] | 3 | 2020-04-06T12:25:07.000Z | 2021-05-02T15:10:59.000Z | django_giropay/admin.py | ParticulateSolutions/django-giropay | b94617e7ea6db151702edb0e566cf83244ab231f | [
"MIT"
] | 1 | 2019-02-13T09:42:21.000Z | 2019-02-13T09:42:21.000Z | django_giropay/admin.py | ParticulateSolutions/django-giropay | b94617e7ea6db151702edb0e566cf83244ab231f | [
"MIT"
] | 1 | 2019-02-13T08:22:10.000Z | 2019-02-13T08:22:10.000Z | from django.contrib import admin
from .models import GiropayTransaction
class GiropayTransactionAdmin(admin.ModelAdmin):
list_display = ('merchant_tx_id', 'reference', 'latest_response_code')
list_filter = ('latest_response_code',)
ordering = ('-created_at',)
fields = ('merchant_tx_id', 'reference', ... | 31.538462 | 74 | 0.770732 | 43 | 410 | 7.046512 | 0.604651 | 0.138614 | 0.178218 | 0.138614 | 0.257426 | 0.257426 | 0.257426 | 0 | 0 | 0 | 0 | 0 | 0.117073 | 410 | 12 | 75 | 34.166667 | 0.837017 | 0 | 0 | 0 | 0 | 0 | 0.285366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3039a7023b2baa76f330913d37e6df335047d377 | 307 | py | Python | runut.py | yzhang3beatit/dcdetector | 0776412b4e4016b44c9ae006cf23029cdbf4cece | [
"MIT"
] | null | null | null | runut.py | yzhang3beatit/dcdetector | 0776412b4e4016b44c9ae006cf23029cdbf4cece | [
"MIT"
] | null | null | null | runut.py | yzhang3beatit/dcdetector | 0776412b4e4016b44c9ae006cf23029cdbf4cece | [
"MIT"
] | null | null | null | import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../'))
import unittest
from test import test_rc
if __name__ == '__main__':
SeTestSuite = unittest.defaultTestLoader.discover(start_dir='./')
unittest.TextTestRunner(verbosity=2).run(unittest.TestSuite(SeTestSuite))
| 25.583333 | 77 | 0.752443 | 39 | 307 | 5.564103 | 0.666667 | 0.0553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007273 | 0.104235 | 307 | 11 | 78 | 27.909091 | 0.781818 | 0 | 0 | 0 | 0 | 0 | 0.042345 | 0 | 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 |
303c523dacfa0644139af8ed0b4cc55ecdff7f49 | 1,731 | py | Python | mininet/examples/helpful/exemplo_1/exemplo_1.py | gustavo978/helpful | 59e3fd062cff4451c9bf8268df78a24f93ff67b7 | [
"Unlicense"
] | null | null | null | mininet/examples/helpful/exemplo_1/exemplo_1.py | gustavo978/helpful | 59e3fd062cff4451c9bf8268df78a24f93ff67b7 | [
"Unlicense"
] | null | null | null | mininet/examples/helpful/exemplo_1/exemplo_1.py | gustavo978/helpful | 59e3fd062cff4451c9bf8268df78a24f93ff67b7 | [
"Unlicense"
] | 2 | 2018-06-06T14:10:23.000Z | 2020-04-07T17:20:55.000Z | from mininet.net import Mininet
from mininet.node import Node, Switch, RemoteController
from mininet.link import Link, Intf
from mininet.log import setLogLevel, info
from mininet.cli import CLI
from p4_mininet import P4Switch, P4Host
import mininet.ns3
from mininet.ns3 import WIFISegment
import ns.core
import ns.netw... | 24.728571 | 85 | 0.682842 | 245 | 1,731 | 4.714286 | 0.326531 | 0.066667 | 0.065801 | 0.090043 | 0.100433 | 0.05368 | 0 | 0 | 0 | 0 | 0 | 0.051372 | 0.179087 | 1,731 | 69 | 86 | 25.086957 | 0.761436 | 0.079145 | 0 | 0 | 0 | 0 | 0.107792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.326531 | 0 | 0.346939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
304b85425183d75da88ceb58b6731ed24f1b5d3c | 7,243 | py | Python | write_qpid_json.py | bendoerr/collectd-write-qpid-json | bfae1f93f1ee09b2df8fa3bcfca3a0473d644ed4 | [
"MIT"
] | null | null | null | write_qpid_json.py | bendoerr/collectd-write-qpid-json | bfae1f93f1ee09b2df8fa3bcfca3a0473d644ed4 | [
"MIT"
] | null | null | null | write_qpid_json.py | bendoerr/collectd-write-qpid-json | bfae1f93f1ee09b2df8fa3bcfca3a0473d644ed4 | [
"MIT"
] | null | null | null | # The MIT License (MIT)
#
# Copyright (c) 2015 Ben Doerr
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify,... | 34.655502 | 81 | 0.640066 | 903 | 7,243 | 5.081949 | 0.256921 | 0.01569 | 0.015254 | 0.02092 | 0.424058 | 0.400523 | 0.379168 | 0.379168 | 0.3382 | 0.320331 | 0 | 0.001404 | 0.213033 | 7,243 | 208 | 82 | 34.822115 | 0.803684 | 0.597128 | 0 | 0.155172 | 0 | 0 | 0.172384 | 0.012007 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.034483 | 0.051724 | 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 |
304bb045be00c145d948669b77dd9cebaf75c302 | 397 | py | Python | stardate/migrations/0010_remove_blog_social_auth.py | blturner/django-stardate | d3edf99aafd2233a13cd3b86bae3628803eb64ff | [
"BSD-3-Clause"
] | null | null | null | stardate/migrations/0010_remove_blog_social_auth.py | blturner/django-stardate | d3edf99aafd2233a13cd3b86bae3628803eb64ff | [
"BSD-3-Clause"
] | 9 | 2016-01-06T02:10:28.000Z | 2021-03-07T00:04:08.000Z | stardate/migrations/0010_remove_blog_social_auth.py | blturner/django-stardate | d3edf99aafd2233a13cd3b86bae3628803eb64ff | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-10 23:25
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('stardate', '0009_auto_20170301_0155'),
]
operations = [
migrations.RemoveField(
... | 19.85 | 48 | 0.617128 | 44 | 397 | 5.340909 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 0.267003 | 397 | 19 | 49 | 20.894737 | 0.694158 | 0.171285 | 0 | 0 | 1 | 0 | 0.141104 | 0.070552 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
304e5522ca5489e43ab3bdd610d654e9bfc13142 | 440 | py | Python | curriculum/profile/migrations/0002_profile_photo.py | ro199/Hoja-de-Vida | 8864467f2998aed6e0a30a9f9767806dcb38ed71 | [
"MIT"
] | null | null | null | curriculum/profile/migrations/0002_profile_photo.py | ro199/Hoja-de-Vida | 8864467f2998aed6e0a30a9f9767806dcb38ed71 | [
"MIT"
] | null | null | null | curriculum/profile/migrations/0002_profile_photo.py | ro199/Hoja-de-Vida | 8864467f2998aed6e0a30a9f9767806dcb38ed71 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-08-17 21:14
from django.db import migrations, models
import profile.models
class Migration(migrations.Migration):
dependencies = [
('profile', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='profile',
name='pho... | 22 | 97 | 0.625 | 49 | 440 | 5.530612 | 0.714286 | 0.095941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055385 | 0.261364 | 440 | 19 | 98 | 23.157895 | 0.778462 | 0.097727 | 0 | 0 | 1 | 0 | 0.078481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3055f5e5c8d4a1cc844db826e2fb831fe325b719 | 2,196 | py | Python | python/lib/tensor_embedding.py | ajoudaki/Project2020-seq-tensor-sketching | 20b19ddd19751840d33af97abe314d29b34dc0d4 | [
"MIT"
] | 7 | 2020-12-07T11:33:17.000Z | 2022-01-02T07:30:52.000Z | python/lib/tensor_embedding.py | ajoudaki/Project2020-seq-tensor-sketching | 20b19ddd19751840d33af97abe314d29b34dc0d4 | [
"MIT"
] | 26 | 2021-01-13T18:15:23.000Z | 2022-02-27T05:52:59.000Z | python/lib/tensor_embedding.py | ajoudaki/Project2020-seq-tensor-sketching | 20b19ddd19751840d33af97abe314d29b34dc0d4 | [
"MIT"
] | 2 | 2021-01-06T15:03:10.000Z | 2022-01-02T07:18:45.000Z | # TENSOR EMBEDDING
from lib.base import *
# a_1...a_t is mapped to index A^{t-1} a_1 + ... + A * a_{t-1} + 1 * a_t
@jitclass(sketchparams_spec + [('pow', nb.int32[:])])
class TE(Sketcher):
# https://github.com/numba/numba/issues/1694
__init__Sketcher = Sketcher.__init__
def __init__(self, params):
... | 33.784615 | 77 | 0.559199 | 329 | 2,196 | 3.617021 | 0.31307 | 0.033613 | 0.02521 | 0.040336 | 0.060504 | 0.026891 | 0 | 0 | 0 | 0 | 0 | 0.026596 | 0.315118 | 2,196 | 64 | 78 | 34.3125 | 0.764628 | 0.223133 | 0 | 0.119048 | 0 | 0 | 0.001771 | 0 | 0 | 0 | 0 | 0.015625 | 0.02381 | 1 | 0.142857 | false | 0 | 0.02381 | 0.02381 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
305672d34f27715a0f57a4262a688a9478bdbf13 | 493 | py | Python | users/migrations/0007_images_date.py | alerin345/Instagram | 082e4a64042ae94f3eacfc10144f925e3dfc2492 | [
"MIT"
] | 1 | 2020-12-31T00:28:24.000Z | 2020-12-31T00:28:24.000Z | users/migrations/0007_images_date.py | alerin345/Instagram | 082e4a64042ae94f3eacfc10144f925e3dfc2492 | [
"MIT"
] | null | null | null | users/migrations/0007_images_date.py | alerin345/Instagram | 082e4a64042ae94f3eacfc10144f925e3dfc2492 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-11-26 02:30
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('users', '0006_auto_20201126_0321'),
]
operations = [
migrations.AddField(
... | 23.47619 | 109 | 0.63286 | 59 | 493 | 5.220339 | 0.694915 | 0.038961 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130081 | 0.251521 | 493 | 20 | 110 | 24.65 | 0.704607 | 0.091278 | 0 | 0 | 1 | 0 | 0.085202 | 0.05157 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
305bd8016fbe9b0999bcfcb27b466d2117b27f5a | 758 | py | Python | setup.py | karimbahgat/iPandoc | 005c0efa552ca83a93fbb39704921db2db027ab7 | [
"MIT"
] | 1 | 2020-09-16T03:45:45.000Z | 2020-09-16T03:45:45.000Z | setup.py | karimbahgat/iPandoc | 005c0efa552ca83a93fbb39704921db2db027ab7 | [
"MIT"
] | 1 | 2018-04-01T10:10:09.000Z | 2018-08-07T15:02:57.000Z | setup.py | karimbahgat/iPandoc | 005c0efa552ca83a93fbb39704921db2db027ab7 | [
"MIT"
] | 1 | 2018-04-01T09:36:20.000Z | 2018-04-01T09:36:20.000Z | try: from setuptools import setup
except: from distutils.core import setup
setup( long_description=open("README.rst").read(),
name="""iPandoc""",
license="""MIT""",
author="""Karim Bahgat""",
author_email="""karim.bahgat.norway@gmail.com""",
py_modules=['ipandoc'],
url="""http://github.com/karimbahgat/iPandoc""... | 47.375 | 227 | 0.716359 | 90 | 758 | 6 | 0.722222 | 0.088889 | 0.074074 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005908 | 0.10686 | 758 | 15 | 228 | 50.533333 | 0.791728 | 0 | 0 | 0 | 0 | 0 | 0.583113 | 0.038259 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30603f526cfd7626549108267cee517cdae01bcc | 627 | py | Python | thinkutils_plus/common/think_hashlib.py | ThinkmanWang/thinkutils_plus | 65d56a1a0cfce22dff08a4f0baea6b4eb08a2e35 | [
"MIT"
] | null | null | null | thinkutils_plus/common/think_hashlib.py | ThinkmanWang/thinkutils_plus | 65d56a1a0cfce22dff08a4f0baea6b4eb08a2e35 | [
"MIT"
] | null | null | null | thinkutils_plus/common/think_hashlib.py | ThinkmanWang/thinkutils_plus | 65d56a1a0cfce22dff08a4f0baea6b4eb08a2e35 | [
"MIT"
] | null | null | null | import os
import sys
import hashlib
import requests
def md5_str(szText):
return str(hashlib.md5(szText).hexdigest())
def MD5(szText):
m = hashlib.md5()
m.update(szText)
return m.digest()
def md5_file(filePath):
with open(filePath, 'rb') as fh:
m = hashlib.md5()
whi... | 24.115385 | 52 | 0.61563 | 70 | 627 | 5.471429 | 0.457143 | 0.046997 | 0.057441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161504 | 0.279107 | 627 | 26 | 53 | 24.115385 | 0.685841 | 0.232855 | 0 | 0.105263 | 0 | 0 | 0.004415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.210526 | 0.052632 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
30661fa26830cdde28dcc12f20d1b61b27c127a1 | 4,860 | py | Python | downpour_downloader/downloader.py | ErinMorelli/em-downpour-downloader | 6695559be24db4e9a3d71cbe66d3e6fb6265eebd | [
"MIT"
] | 5 | 2017-11-30T18:50:39.000Z | 2021-08-18T15:19:17.000Z | downpour_downloader/downloader.py | ErinMorelli/em-downpour-downloader | 6695559be24db4e9a3d71cbe66d3e6fb6265eebd | [
"MIT"
] | 2 | 2021-07-07T01:06:00.000Z | 2022-02-23T21:16:52.000Z | downpour_downloader/downloader.py | ErinMorelli/em-downpour-downloader | 6695559be24db4e9a3d71cbe66d3e6fb6265eebd | [
"MIT"
] | 2 | 2021-03-26T17:34:24.000Z | 2021-09-06T07:56:50.000Z | """
Copyright (C) 2021 Erin Morelli.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope t... | 34.225352 | 78 | 0.66214 | 623 | 4,860 | 5.014446 | 0.369181 | 0.019206 | 0.014085 | 0.018246 | 0.091869 | 0.043534 | 0.025608 | 0.025608 | 0 | 0 | 0 | 0.001633 | 0.243827 | 4,860 | 141 | 79 | 34.468085 | 0.848435 | 0.36893 | 0 | 0.105263 | 0 | 0 | 0.053872 | 0.019192 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184211 | false | 0.013158 | 0.131579 | 0 | 0.513158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
30673066432f6264c59da3bb5ae407d76ed041f2 | 2,011 | py | Python | tests/unit/identity_parser_test.py | vrepsys/blockstats | 30e54ce7f90b57bd4ecf363ed9ba1fe40076db50 | [
"MIT"
] | 5 | 2019-04-25T16:28:01.000Z | 2020-02-02T16:53:59.000Z | tests/unit/identity_parser_test.py | vrepsys/blockstats | 30e54ce7f90b57bd4ecf363ed9ba1fe40076db50 | [
"MIT"
] | 1 | 2019-06-05T21:55:18.000Z | 2019-06-05T21:55:18.000Z | tests/unit/identity_parser_test.py | vrepsys/blockstats | 30e54ce7f90b57bd4ecf363ed9ba1fe40076db50 | [
"MIT"
] | 2 | 2019-06-06T07:46:53.000Z | 2019-07-13T05:20:53.000Z | import json
import pytest
from blockstats import parser
def test_parse_subdomain_identity():
assert parser.parse_identity('val.id.blockstack') == \
{'address': 'val.id.blockstack', 'namespace': 'blockstack', 'name': 'id', 'subdomain': 'val'}
def test_parse_name_identity():
assert parser.parse_identity(... | 40.22 | 111 | 0.69816 | 267 | 2,011 | 5.041199 | 0.284644 | 0.089896 | 0.053492 | 0.074294 | 0.632987 | 0.509658 | 0.401189 | 0.237741 | 0.237741 | 0.135215 | 0 | 0.016279 | 0.144704 | 2,011 | 49 | 112 | 41.040816 | 0.766279 | 0 | 0 | 0.102564 | 0 | 0.051282 | 0.367479 | 0.071109 | 0 | 0 | 0 | 0 | 0.205128 | 1 | 0.205128 | false | 0 | 0.076923 | 0 | 0.282051 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3071ec88a282b3faa9ecaaeb7a051fe9324b8e77 | 832 | py | Python | MoviesForm/moviesapp/views.py | KiralyTamas/Django | d0df4bcffa499c25602e2672c230226440879f6d | [
"MIT"
] | null | null | null | MoviesForm/moviesapp/views.py | KiralyTamas/Django | d0df4bcffa499c25602e2672c230226440879f6d | [
"MIT"
] | null | null | null | MoviesForm/moviesapp/views.py | KiralyTamas/Django | d0df4bcffa499c25602e2672c230226440879f6d | [
"MIT"
] | null | null | null | from django.shortcuts import render
from moviesapp.models import Movies
from moviesapp.forms import MoviesForm
def index(request):
return render(request, 'moviesapp/index.html')
def moviesList(request):
moviesList=Movies.objects.all()
movies_dict={'movies':moviesList}
return render(request, 'moviesapp... | 36.173913 | 74 | 0.729567 | 93 | 832 | 6.451613 | 0.333333 | 0.1 | 0.126667 | 0.186667 | 0.17 | 0.17 | 0.17 | 0.17 | 0 | 0 | 0 | 0 | 0.15625 | 832 | 23 | 75 | 36.173913 | 0.854701 | 0 | 0 | 0.1 | 0 | 0 | 0.182473 | 0.087635 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.15 | 0.05 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
307281f650d36f7bf3f1062588e8fa87636f6741 | 4,773 | py | Python | src/animo.py | MimansaSharma15/Animo | 351edbbaeb6f8bc529602a888fb39e9d2bee010d | [
"MIT"
] | 2 | 2021-04-27T18:53:53.000Z | 2021-06-12T06:14:04.000Z | src/animo.py | MimansaSharma15/Animo | 351edbbaeb6f8bc529602a888fb39e9d2bee010d | [
"MIT"
] | null | null | null | src/animo.py | MimansaSharma15/Animo | 351edbbaeb6f8bc529602a888fb39e9d2bee010d | [
"MIT"
] | null | null | null | import streamlit as st
from help import health_analysis
from load_chatmodel import load
from data import main_data
from get_medical import get_links
import torch
from tensorflow.keras.preprocessing.sequence import pad_sequences
encoder_net, decoder_net = load()
data = main_data()
max, vocab_enc, vocab_dec =... | 45.894231 | 467 | 0.694532 | 724 | 4,773 | 4.494475 | 0.345304 | 0.009219 | 0.009219 | 0.035034 | 0.308236 | 0.264905 | 0.248924 | 0.248924 | 0.248924 | 0.248924 | 0 | 0.046577 | 0.185837 | 4,773 | 103 | 468 | 46.339806 | 0.790787 | 0.009009 | 0 | 0.207317 | 0 | 0.170732 | 0.60627 | 0.126703 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085366 | 0 | 0.085366 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3073beafc006d0b285bf73d7371755866a1bad65 | 1,708 | py | Python | tests/test_log.py | InfluxGraph/influxgraph | 347c9b48f7708f1621a032ef2ca7d0915bc4a0b6 | [
"Apache-2.0"
] | 97 | 2016-10-26T15:39:44.000Z | 2021-11-29T06:57:22.000Z | tests/test_log.py | olajowon/influxgraph | 347c9b48f7708f1621a032ef2ca7d0915bc4a0b6 | [
"Apache-2.0"
] | 52 | 2016-10-25T15:14:24.000Z | 2021-01-15T15:44:02.000Z | tests/test_log.py | olajowon/influxgraph | 347c9b48f7708f1621a032ef2ca7d0915bc4a0b6 | [
"Apache-2.0"
] | 29 | 2016-11-15T21:53:58.000Z | 2021-11-05T19:19:35.000Z | import uuid
import unittest
import influxgraph
from influxdb import InfluxDBClient
class InfluxGraphLogFileTestCase(unittest.TestCase):
def setUp(self):
self.db_name = 'fakey'
self.client = InfluxDBClient(database=self.db_name)
self.client.create_database(self.db_name)
_logger = in... | 37.130435 | 72 | 0.440281 | 131 | 1,708 | 5.473282 | 0.366412 | 0.050209 | 0.083682 | 0.075314 | 0.401674 | 0.401674 | 0.401674 | 0.401674 | 0.401674 | 0.401674 | 0 | 0.009751 | 0.459602 | 1,708 | 45 | 73 | 37.955556 | 0.767064 | 0 | 0 | 0.307692 | 0 | 0 | 0.090164 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 1 | 0.102564 | false | 0.051282 | 0.102564 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3075255aa0bb8c5b3cdeb3fe8691c10afb45123d | 3,666 | py | Python | memory.py | hiroki-kyoto/memory-association-recognition | 33303da7d455807abb1363cdbb197adf1d804225 | [
"MIT"
] | null | null | null | memory.py | hiroki-kyoto/memory-association-recognition | 33303da7d455807abb1363cdbb197adf1d804225 | [
"MIT"
] | null | null | null | memory.py | hiroki-kyoto/memory-association-recognition | 33303da7d455807abb1363cdbb197adf1d804225 | [
"MIT"
] | null | null | null | # read_dataset.py
# Author : Hiroki
# Modified: 2018-1-10
import cPickle
import matplotlib.pyplot as pl
import numpy as np
def unpickle(file):
with open(file, 'rb') as fo:
dict = cPickle.load(fo)
return dict
def load_dataset():
data = unpickle('cifar-10/data_batch_1')
images = [data['data'][i]... | 34.914286 | 87 | 0.579651 | 491 | 3,666 | 4.201629 | 0.279022 | 0.122637 | 0.093068 | 0.052351 | 0.308289 | 0.263209 | 0.239457 | 0.209404 | 0.195831 | 0.195831 | 0 | 0.01957 | 0.289143 | 3,666 | 105 | 88 | 34.914286 | 0.772064 | 0.080196 | 0 | 0.184211 | 0 | 0 | 0.033752 | 0.016214 | 0 | 0 | 0 | 0 | 0.052632 | 0 | null | null | 0 | 0.039474 | null | null | 0.039474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
30771cd6b4025f28a6d7944472a629a52952f9f0 | 741 | py | Python | demo/host_game.py | hilearn/ai-game | 5eead5964fc9a4481317402374b13109e09f56c2 | [
"MIT"
] | null | null | null | demo/host_game.py | hilearn/ai-game | 5eead5964fc9a4481317402374b13109e09f56c2 | [
"MIT"
] | 3 | 2021-10-03T08:46:08.000Z | 2021-10-04T18:14:56.000Z | demo/host_game.py | hilearn/ai-game | 5eead5964fc9a4481317402374b13109e09f56c2 | [
"MIT"
] | null | null | null | import socket
from game import Game, RemotePlayer, _3X5Map, PlayerStats, Stats
def main(host, port):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.bind((host, port))
s.listen()
players = [RemotePlayer(s,
stats=PlayerStats(8, 3, 1),
... | 29.64 | 64 | 0.464238 | 77 | 741 | 4.285714 | 0.480519 | 0.048485 | 0.109091 | 0.175758 | 0.339394 | 0.339394 | 0.339394 | 0.339394 | 0.339394 | 0.339394 | 0 | 0.060748 | 0.422402 | 741 | 24 | 65 | 30.875 | 0.71028 | 0 | 0 | 0.222222 | 0 | 0 | 0.043185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.166667 | 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 |
307acd36091415587e04e73d94474c3c74326733 | 1,406 | py | Python | etl_nested/tests/unit/test_factories.py | CloverHealth/pycon2017 | 016b433866905c361973cec13485ba71fe497836 | [
"BSD-3-Clause"
] | 6 | 2017-05-10T19:38:14.000Z | 2017-08-27T04:07:57.000Z | etl_nested/tests/unit/test_factories.py | CloverHealth/pycon2017 | 016b433866905c361973cec13485ba71fe497836 | [
"BSD-3-Clause"
] | 3 | 2017-05-05T02:33:47.000Z | 2017-05-11T22:49:32.000Z | etl_nested/tests/unit/test_factories.py | CloverHealth/pycon2017 | 016b433866905c361973cec13485ba71fe497836 | [
"BSD-3-Clause"
] | 5 | 2017-05-17T20:16:58.000Z | 2019-11-30T17:20:48.000Z | import datetime
import os
import sqlalchemy.orm as sa_orm
from app import factories
from app.etl import transformers
from app.util.json import load_json_file
def test_make_response_from_nested_schema(session: sa_orm.Session, data_dir):
schema = load_json_file(os.path.join(data_dir, 'nested_schema.json'))
fo... | 33.47619 | 89 | 0.723329 | 197 | 1,406 | 4.928934 | 0.370558 | 0.113285 | 0.098867 | 0.102987 | 0.312049 | 0.257467 | 0.201854 | 0 | 0 | 0 | 0 | 0 | 0.146515 | 1,406 | 41 | 90 | 34.292683 | 0.809167 | 0.026316 | 0 | 0 | 0 | 0 | 0.193855 | 0.036576 | 0 | 0 | 0 | 0 | 0.464286 | 1 | 0.035714 | false | 0 | 0.214286 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
307b9119f8ec48d475b7276d44fac1f8ef05c332 | 1,212 | py | Python | userAgentRandomizer/__init__.py | MattWaller/userAgentRandomizer | 48efae01a2ced6d3f00ffe7df42b7b85c80cbd39 | [
"MIT"
] | null | null | null | userAgentRandomizer/__init__.py | MattWaller/userAgentRandomizer | 48efae01a2ced6d3f00ffe7df42b7b85c80cbd39 | [
"MIT"
] | null | null | null | userAgentRandomizer/__init__.py | MattWaller/userAgentRandomizer | 48efae01a2ced6d3f00ffe7df42b7b85c80cbd39 | [
"MIT"
] | null | null | null | from glob import glob
import os, random
class userAgents(object):
def __init__(self):
files_ = glob(f'{os.path.dirname(os.path.realpath(__file__))}/assets/*.txt')
self.uas,self.Chrome,self.Edge,self.Firefox,self.Opera,self.Safari = [],[],[],[],[],[]
for file_ in files_:
with open(file_,'r') as f:
record... | 26.933333 | 88 | 0.658416 | 172 | 1,212 | 4.482558 | 0.296512 | 0.070039 | 0.140078 | 0.171206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179868 | 1,212 | 45 | 89 | 26.933333 | 0.775654 | 0 | 0 | 0 | 0 | 0 | 0.108821 | 0.047815 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.04878 | 0.02439 | 0.317073 | 0.04878 | 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 |
307c0430196d04f06eeddea7f3895b3ff713a4d1 | 623 | py | Python | investments/contrib/tags/models.py | gatsinski/investments | 4b903d6d9379993501e0c5fff2a93ddcaa2437ea | [
"MIT"
] | null | null | null | investments/contrib/tags/models.py | gatsinski/investments | 4b903d6d9379993501e0c5fff2a93ddcaa2437ea | [
"MIT"
] | null | null | null | investments/contrib/tags/models.py | gatsinski/investments | 4b903d6d9379993501e0c5fff2a93ddcaa2437ea | [
"MIT"
] | null | null | null | import uuid
from django.contrib.auth import get_user_model
from django.db import models
from django.utils.translation import gettext_lazy as _
from investments.models import TimestampedModel
UserModel = get_user_model()
class Tag(TimestampedModel):
uuid = models.UUIDField(default=uuid.uuid4, primary_key=True)
... | 27.086957 | 88 | 0.731942 | 80 | 623 | 5.45 | 0.5875 | 0.068807 | 0.055046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.165329 | 623 | 22 | 89 | 28.318182 | 0.830769 | 0 | 0 | 0 | 0 | 0 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0.066667 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
307eff70dfe4a1b971b73ad513ffaf54b44d6df2 | 788 | py | Python | server/authentication/utils.py | Arun89-crypto/codechefsrm | bd793a40bf034f88deee3c98f342b86b3010d554 | [
"MIT"
] | null | null | null | server/authentication/utils.py | Arun89-crypto/codechefsrm | bd793a40bf034f88deee3c98f342b86b3010d554 | [
"MIT"
] | 1 | 2021-11-20T20:56:47.000Z | 2021-11-20T21:00:10.000Z | server/authentication/utils.py | Arun89-crypto/codechefsrm | bd793a40bf034f88deee3c98f342b86b3010d554 | [
"MIT"
] | 3 | 2021-11-20T16:48:40.000Z | 2021-12-05T13:44:17.000Z | from typing import Any, Dict
from .errors import NoTokenFound, InvalidToken
from . import tokens
def get_token(header: Dict[str, Any]):
if "Authorization" in header:
return header["Authorization"]
raise NoTokenFound()
def validate_token_type(token: str, token_type: str = "Bearer"):
_token_type,... | 27.172414 | 64 | 0.715736 | 101 | 788 | 5.425743 | 0.356436 | 0.09854 | 0.076642 | 0.083942 | 0.109489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177665 | 788 | 28 | 65 | 28.142857 | 0.845679 | 0 | 0 | 0 | 0 | 0 | 0.107868 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.157895 | false | 0 | 0.157895 | 0.052632 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
061b32efbf5f338781ef40b0f16b4e1b1bf7b0d2 | 173 | py | Python | lecture-2/loops.py | wendelsilva/CS50-Web-Programming-with-Python-and-JavaScript | 33bf46f9cd394f3afff97c55899a7fc03335eb53 | [
"MIT"
] | null | null | null | lecture-2/loops.py | wendelsilva/CS50-Web-Programming-with-Python-and-JavaScript | 33bf46f9cd394f3afff97c55899a7fc03335eb53 | [
"MIT"
] | null | null | null | lecture-2/loops.py | wendelsilva/CS50-Web-Programming-with-Python-and-JavaScript | 33bf46f9cd394f3afff97c55899a7fc03335eb53 | [
"MIT"
] | null | null | null | for i in range(6):
print(i)
names = ["Harry", "Ron", "Hermione", "Ginny"]
for name in names:
print(name)
name = "Harry"
for character in name:
print(character) | 17.3 | 45 | 0.624277 | 26 | 173 | 4.153846 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.213873 | 173 | 10 | 46 | 17.3 | 0.786765 | 0 | 0 | 0 | 0 | 0 | 0.149425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 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 |
061d255bfbb2d1d943419e7b6211ae8ab3aba674 | 996 | py | Python | themis/model/emr_model.py | igor-lema-ifood/themis | 3f6ba63b3f5e3497eb10eec431a4fadd28048b80 | [
"Apache-2.0"
] | 54 | 2016-07-18T12:57:31.000Z | 2020-11-03T11:26:34.000Z | themis/model/emr_model.py | igor-lema-ifood/themis | 3f6ba63b3f5e3497eb10eec431a4fadd28048b80 | [
"Apache-2.0"
] | 31 | 2016-07-21T05:16:53.000Z | 2020-06-09T09:19:11.000Z | themis/model/emr_model.py | igor-lema-ifood/themis | 3f6ba63b3f5e3497eb10eec431a4fadd28048b80 | [
"Apache-2.0"
] | 16 | 2016-07-28T14:36:45.000Z | 2021-01-23T09:25:16.000Z | import themis.monitoring.emr_monitoring
import themis.scaling.emr_scaling
from themis.util import aws_common
from themis import config
from themis.model.aws_model import *
class EmrCluster(Scalable, Monitorable):
def __init__(self, id=None):
super(EmrCluster, self).__init__(id)
self.type = None
... | 30.181818 | 86 | 0.717871 | 128 | 996 | 5.296875 | 0.351563 | 0.064897 | 0.079646 | 0.085546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201807 | 996 | 32 | 87 | 31.125 | 0.85283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
061fce471cd6e5f263f3aeeb50d6757f4d01c56a | 1,103 | py | Python | homeserver/__init__.py | miikama/home-server | 07a9dbb9438e3c316c37cb52ca3c709d0b059af1 | [
"MIT"
] | null | null | null | homeserver/__init__.py | miikama/home-server | 07a9dbb9438e3c316c37cb52ca3c709d0b059af1 | [
"MIT"
] | 1 | 2019-11-30T10:59:28.000Z | 2019-11-30T10:59:28.000Z | homeserver/__init__.py | miikama/home-server | 07a9dbb9438e3c316c37cb52ca3c709d0b059af1 | [
"MIT"
] | null | null | null |
import sys
import os
import logging
from flask import Flask
HOME_SERVER_DIR = os.path.dirname(os.path.abspath(__file__))
#the absolute path of this script
app_path = os.path.dirname(os.path.realpath(__file__))
#config for the project
from homeserver.server_config import load_config, setup_logging
config = load_... | 19.017241 | 75 | 0.792384 | 157 | 1,103 | 5.33121 | 0.388535 | 0.043011 | 0.031063 | 0.035842 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127833 | 1,103 | 57 | 76 | 19.350877 | 0.870062 | 0.343608 | 0 | 0 | 0 | 0 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.388889 | 0 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
062001d4b63339b6893c76b834b65656dc391ad2 | 1,511 | py | Python | tests/gen_test_clips.py | sevagh/chord-detection | 37f25b0cba1a577dfde4568613fa2d1ef0da8f80 | [
"MIT"
] | 55 | 2019-07-13T16:16:45.000Z | 2022-03-26T17:18:01.000Z | tests/gen_test_clips.py | sevagh/chord-detection | 37f25b0cba1a577dfde4568613fa2d1ef0da8f80 | [
"MIT"
] | 3 | 2019-07-23T13:37:46.000Z | 2021-10-15T16:18:12.000Z | tests/gen_test_clips.py | sevagh/chord-detection | 37f25b0cba1a577dfde4568613fa2d1ef0da8f80 | [
"MIT"
] | 7 | 2019-09-22T06:48:52.000Z | 2021-08-25T10:04:56.000Z | #!/usr/bin/env python3.7
import unittest
import numpy
import os
import librosa
import soundfile
import sys
from tempfile import TemporaryDirectory
def main():
dest = "tests/test_1_note_Csharp3.wav"
tone = librosa.tone(138.59, sr=22050, length=44100)
soundfile.write(dest, tone, 22050)
print("Created {... | 30.22 | 60 | 0.678359 | 234 | 1,511 | 4.264957 | 0.299145 | 0.099198 | 0.135271 | 0.162325 | 0.721443 | 0.635271 | 0.635271 | 0.44489 | 0.333667 | 0.333667 | 0 | 0.160643 | 0.176042 | 1,511 | 49 | 61 | 30.836735 | 0.640964 | 0.015222 | 0 | 0.210526 | 0 | 0 | 0.199059 | 0.098184 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.184211 | 0 | 0.236842 | 0.131579 | 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 |
06222df59287052653592103ab302870ff7dc6ff | 406 | py | Python | src/forum/migrations/0018_auto_20170629_2130.py | shashankmohabia/gymkhana-master | a0d399d781797a2f63fb81a1ae287714213d068b | [
"MIT"
] | 1 | 2018-08-13T09:11:27.000Z | 2018-08-13T09:11:27.000Z | src/forum/migrations/0018_auto_20170629_2130.py | shashankmohabia/gymkhana-master | a0d399d781797a2f63fb81a1ae287714213d068b | [
"MIT"
] | null | null | null | src/forum/migrations/0018_auto_20170629_2130.py | shashankmohabia/gymkhana-master | a0d399d781797a2f63fb81a1ae287714213d068b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-29 16:00
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('forum', '0017_reply'),
]
operations = [
migrations.AlterModelOptions(
n... | 20.3 | 55 | 0.610837 | 43 | 406 | 5.581395 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070234 | 0.263547 | 406 | 19 | 56 | 21.368421 | 0.732441 | 0.167488 | 0 | 0 | 1 | 0 | 0.137313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06244d4ed82194cbbc16a51f1dbb473ae1309ae8 | 2,103 | py | Python | examples/example_application.py | samson0v/python_tb_rest_client | 08ff7898740f7cec2170e85d5c3c89e222e967f7 | [
"Apache-2.0"
] | 30 | 2020-06-19T06:42:50.000Z | 2021-08-23T21:16:36.000Z | examples/example_application.py | moravcik94/python_tb_rest_client | 985361890cdf4ccce93d2b24905ad9003c8dfcaa | [
"Apache-2.0"
] | 25 | 2021-08-30T01:17:27.000Z | 2022-03-16T14:10:14.000Z | examples/example_application.py | moravcik94/python_tb_rest_client | 985361890cdf4ccce93d2b24905ad9003c8dfcaa | [
"Apache-2.0"
] | 23 | 2020-07-06T13:41:54.000Z | 2021-08-23T21:04:50.000Z | # Copyright 2020. ThingsBoard
# #
# 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 ... | 35.05 | 97 | 0.680932 | 277 | 2,103 | 5.111913 | 0.480144 | 0.070621 | 0.029661 | 0.025424 | 0.055791 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008584 | 0.224441 | 2,103 | 59 | 98 | 35.644068 | 0.859595 | 0.434142 | 0 | 0 | 0 | 0.043478 | 0.225389 | 0.018998 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.086957 | 0.130435 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
06263f18ff30c0a7bace74aef6e09c5f8381e072 | 2,865 | py | Python | alembic/versions/16c2d576e01e_add_schools_with_description_2020.py | AlonMaor14/anyway | e38f7bc6f1748a73640b3b8c762e2909745920a1 | [
"MIT"
] | 69 | 2015-03-30T17:09:46.000Z | 2021-08-15T16:45:47.000Z | alembic/versions/16c2d576e01e_add_schools_with_description_2020.py | AlonMaor14/anyway | e38f7bc6f1748a73640b3b8c762e2909745920a1 | [
"MIT"
] | 1,368 | 2015-01-12T16:33:52.000Z | 2022-03-31T21:10:18.000Z | alembic/versions/16c2d576e01e_add_schools_with_description_2020.py | AlonMaor14/anyway | e38f7bc6f1748a73640b3b8c762e2909745920a1 | [
"MIT"
] | 277 | 2015-02-16T17:52:06.000Z | 2022-02-16T18:06:44.000Z | """add_schools_with_description_2020
Revision ID: 16c2d576e01e
Revises: 7c472e4582de
Create Date: 2020-08-16 10:30:23.748793
"""
# revision identifiers, used by Alembic.
revision = '16c2d576e01e'
down_revision = '7c472e4582de'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
fro... | 50.263158 | 147 | 0.751832 | 373 | 2,865 | 5.485255 | 0.230563 | 0.123656 | 0.27957 | 0.117302 | 0.606549 | 0.542522 | 0.477517 | 0.383187 | 0.336266 | 0.265885 | 0 | 0.058411 | 0.103665 | 2,865 | 56 | 148 | 51.160714 | 0.738318 | 0.109948 | 0 | 0 | 0 | 0 | 0.385993 | 0.295265 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0626b9c4a08beb1cd0d202694a81b8da0ef9261f | 3,370 | py | Python | data/simple_analysis.py | tonitick/CacheZoom | 37e8d4b10b93f6d114f4140c47c9348ea5df1a11 | [
"MIT"
] | 13 | 2017-07-07T02:48:57.000Z | 2021-12-09T06:32:47.000Z | data/simple_analysis.py | tonitick/CacheZoom | 37e8d4b10b93f6d114f4140c47c9348ea5df1a11 | [
"MIT"
] | null | null | null | data/simple_analysis.py | tonitick/CacheZoom | 37e8d4b10b93f6d114f4140c47c9348ea5df1a11 | [
"MIT"
] | 6 | 2017-10-15T19:23:15.000Z | 2022-01-27T08:33:41.000Z | #!/usr/bin/env python
import matplotlib.pyplot as plt
import numpy as np
import operator, sys
MAX_MEASUREMENT = 50000
def get_set(addr):
return (addr >> 6) & 0b111111
def calc_threshold(set_stat):
# print '[+] Calculating eviction thresholds...'
threshold = []
for k in set_stat:
k_sorted = sorted(k.item... | 22.61745 | 89 | 0.608309 | 507 | 3,370 | 3.934911 | 0.230769 | 0.042105 | 0.02807 | 0.02406 | 0.298246 | 0.255639 | 0.157895 | 0.120301 | 0.120301 | 0.120301 | 0 | 0.030871 | 0.240653 | 3,370 | 148 | 90 | 22.77027 | 0.74873 | 0.07003 | 0 | 0.220183 | 0 | 0 | 0.011509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027523 | null | null | 0.009174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
06280bbfce3d8a8b60a428ea7da7b5522317c115 | 5,282 | py | Python | oil_lang/grammar_gen.py | msingle/oil | 5623c58d4558d37cd43e6274574d94a0e547f192 | [
"Apache-2.0"
] | null | null | null | oil_lang/grammar_gen.py | msingle/oil | 5623c58d4558d37cd43e6274574d94a0e547f192 | [
"Apache-2.0"
] | null | null | null | oil_lang/grammar_gen.py | msingle/oil | 5623c58d4558d37cd43e6274574d94a0e547f192 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
"""
grammar_gen.py - Use pgen2 to generate tables from Oil's grammar.
"""
from __future__ import print_function
import os
import sys
from _devbuild.gen.id_kind_asdl import Id, Kind
from _devbuild.gen.syntax_asdl import source
from core import alloc
from core import meta
from core.util import l... | 25.033175 | 77 | 0.638963 | 756 | 5,282 | 4.263228 | 0.32672 | 0.033509 | 0.012411 | 0.008688 | 0.134037 | 0.113559 | 0.096184 | 0.078809 | 0.054608 | 0.054608 | 0 | 0.007476 | 0.24025 | 5,282 | 210 | 78 | 25.152381 | 0.795664 | 0.177206 | 0 | 0.119403 | 1 | 0 | 0.054664 | 0 | 0 | 0 | 0 | 0.004762 | 0.014925 | 1 | 0.037313 | false | 0 | 0.119403 | 0 | 0.19403 | 0.067164 | 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 |
062b32a41fef77e7cfabc69b8264a4e790e4b3d6 | 370 | py | Python | examples/algorithms/algorithms.py | rorodata/lambdapool | da7b514496f75484541ebcbcc596f1f72dab09bf | [
"Apache-2.0"
] | null | null | null | examples/algorithms/algorithms.py | rorodata/lambdapool | da7b514496f75484541ebcbcc596f1f72dab09bf | [
"Apache-2.0"
] | null | null | null | examples/algorithms/algorithms.py | rorodata/lambdapool | da7b514496f75484541ebcbcc596f1f72dab09bf | [
"Apache-2.0"
] | 1 | 2019-12-30T12:46:24.000Z | 2019-12-30T12:46:24.000Z | def fibonacci(n):
'''A naive implementation of computing n'th fibonacci number
'''
if n==0: return 0
if n==1: return 1
return fibonacci(n-1) + fibonacci(n-2)
def factorial(n):
'''Returns factorial of a number
'''
if n<0: raise ValueError('Factorial of a negative number does not exist')
... | 26.428571 | 77 | 0.637838 | 60 | 370 | 3.933333 | 0.383333 | 0.050847 | 0.050847 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035587 | 0.240541 | 370 | 13 | 78 | 28.461538 | 0.80427 | 0.248649 | 0 | 0 | 0 | 0 | 0.171756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
062c43e61e159cff34ccc2e003976c14229096a6 | 551 | py | Python | horus_media_examples/list_recordings.py | horus-view-and-explore/horus-media-client | 24b2f2b0df60bcfd168712ffbb552dc86eefdb02 | [
"MIT"
] | 3 | 2020-09-29T10:49:02.000Z | 2022-02-24T12:20:21.000Z | horus_media_examples/list_recordings.py | horus-view-and-explore/horus-media-client | 24b2f2b0df60bcfd168712ffbb552dc86eefdb02 | [
"MIT"
] | null | null | null | horus_media_examples/list_recordings.py | horus-view-and-explore/horus-media-client | 24b2f2b0df60bcfd168712ffbb552dc86eefdb02 | [
"MIT"
] | 2 | 2020-09-09T06:53:20.000Z | 2020-10-29T15:44:50.000Z | # Copyright(C) 2020 Horus View and Explore B.V.
import psycopg2
from horus_db import Frames, Recordings, Frame, Recording
# This example shows how to iterate over all the recordings
def get_connection():
return psycopg2.connect(
"dbname=HorusWebMoviePlayer user=postgres password=horusweb")
connection =... | 23.956522 | 69 | 0.751361 | 66 | 551 | 6.227273 | 0.681818 | 0.06326 | 0.116788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.161525 | 551 | 22 | 70 | 25.045455 | 0.876623 | 0.186933 | 0 | 0.166667 | 0 | 0 | 0.134831 | 0.058427 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.166667 | 0.083333 | 0.333333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
062cabdda0af9dd0d98ddb60b85a32b97a57fa70 | 194 | py | Python | INTEST.py | ankitpipalia/codechef-solutions | d10e7f15b74a11655b0e53953a8e2bc7efbf7377 | [
"MIT"
] | 1 | 2022-01-23T08:13:17.000Z | 2022-01-23T08:13:17.000Z | INTEST.py | ankitpipalia/codechef-solutions | d10e7f15b74a11655b0e53953a8e2bc7efbf7377 | [
"MIT"
] | null | null | null | INTEST.py | ankitpipalia/codechef-solutions | d10e7f15b74a11655b0e53953a8e2bc7efbf7377 | [
"MIT"
] | null | null | null | n, divider = input().split(" ")
n = int(n)
divider = int(divider)
counter = 0
while(n > 0):
n -= 1
value = int(input())
if value % divider == 0:
counter += 1
print(counter) | 16.166667 | 31 | 0.541237 | 28 | 194 | 3.75 | 0.428571 | 0.152381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.278351 | 194 | 12 | 32 | 16.166667 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.005128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 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 |
06306fbddd9bae7620fa3c6f61fbf5930b1b14ed | 3,610 | py | Python | alerta/checker/client.py | MailOnline/alerta | 225da305485c43c49d6803f740d36cbf1bfb42be | [
"Apache-2.0"
] | null | null | null | alerta/checker/client.py | MailOnline/alerta | 225da305485c43c49d6803f740d36cbf1bfb42be | [
"Apache-2.0"
] | null | null | null | alerta/checker/client.py | MailOnline/alerta | 225da305485c43c49d6803f740d36cbf1bfb42be | [
"Apache-2.0"
] | null | null | null |
import os
import sys
import subprocess
import shlex
from alerta.common import log as logging
from alerta.common import config
from alerta.common.alert import Alert
from alerta.common.heartbeat import Heartbeat
from alerta.common import severity_code
from alerta.common.api import ApiClient
Version = '2.0.3'
LOG = lo... | 30.59322 | 84 | 0.487535 | 368 | 3,610 | 4.649457 | 0.328804 | 0.051432 | 0.056108 | 0.038574 | 0.047925 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008992 | 0.414681 | 3,610 | 118 | 85 | 30.59322 | 0.800757 | 0.015512 | 0 | 0.084211 | 0 | 0 | 0.056885 | 0.00704 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0632f9db69983e822799533eb24726e4cfa14f54 | 3,343 | py | Python | manage.py | zagaran/instant-census | 62dd5bbc62939f43776a10708ef663722ead98af | [
"MIT"
] | 1 | 2021-06-01T17:03:47.000Z | 2021-06-01T17:03:47.000Z | manage.py | zagaran/instant-census | 62dd5bbc62939f43776a10708ef663722ead98af | [
"MIT"
] | null | null | null | manage.py | zagaran/instant-census | 62dd5bbc62939f43776a10708ef663722ead98af | [
"MIT"
] | null | null | null | #!/usr/bin/python
""" DO NOT IMPORT ANYTHING HIGHER UP THAN UTILS IN THE GLOBAL SCOPE.
DOING SO WILL BREAK SERVER SETUP """
import sys
import unittest2 as unittest
from IPython import start_ipython
from utils.local import untracked_file_check, delete_pyc_files
from utils.server import TEST_RUN
COMMANDS = {"shel... | 38.872093 | 104 | 0.678732 | 450 | 3,343 | 4.862222 | 0.362222 | 0.038391 | 0.032907 | 0.038391 | 0.138026 | 0.138026 | 0.11883 | 0.11883 | 0.11883 | 0.11883 | 0 | 0.005424 | 0.227939 | 3,343 | 85 | 105 | 39.329412 | 0.842309 | 0.163027 | 0 | 0.09375 | 0 | 0 | 0.303098 | 0.008212 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015625 | 0.265625 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
063604308b7dab279556992adab530ae4e727a17 | 846 | py | Python | eb_butterflies_to_CSV.py | acic2017/Butterfly-SDM | 4b3cfe132a22d195ca3730f4fdd78c71fc958505 | [
"MIT"
] | 1 | 2017-12-04T05:02:34.000Z | 2017-12-04T05:02:34.000Z | eb_butterflies_to_CSV.py | acic2017/Butterfly-SDM | 4b3cfe132a22d195ca3730f4fdd78c71fc958505 | [
"MIT"
] | 1 | 2017-12-05T07:22:54.000Z | 2017-12-05T07:22:54.000Z | eb_butterflies_to_CSV.py | acic2017/Butterfly-SDM | 4b3cfe132a22d195ca3730f4fdd78c71fc958505 | [
"MIT"
] | 3 | 2017-12-01T03:55:10.000Z | 2018-12-14T23:42:08.000Z | #!/usr/bin/env python
#latin_name, english_name, year, month, latitude, longitude
import pandas as pd
from sqlalchemy import create_engine
query = """
WITH Location AS (SELECT *
FROM eb_butterflies.observations o JOIN eb_central.checklists c on c.checklist_id=o.checklist_id
JOIN eb_central.sites s ON s.site_id=c.... | 28.2 | 178 | 0.770686 | 137 | 846 | 4.569343 | 0.40146 | 0.083067 | 0.054313 | 0.092652 | 0.115016 | 0.115016 | 0.115016 | 0 | 0 | 0 | 0 | 0.005398 | 0.124113 | 846 | 29 | 179 | 29.172414 | 0.839406 | 0.092199 | 0 | 0 | 0 | 0.066667 | 0.763399 | 0.313725 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06366134e9782b69833677460caf337ef43be9fd | 1,992 | py | Python | pyatv/protocols/mrp/protobuf/AudioFadeResponseMessage_pb2.py | crxporter/pyatv | e694a210b3810c64044116bf40e7b75420b5fe75 | [
"MIT"
] | null | null | null | pyatv/protocols/mrp/protobuf/AudioFadeResponseMessage_pb2.py | crxporter/pyatv | e694a210b3810c64044116bf40e7b75420b5fe75 | [
"MIT"
] | null | null | null | pyatv/protocols/mrp/protobuf/AudioFadeResponseMessage_pb2.py | crxporter/pyatv | e694a210b3810c64044116bf40e7b75420b5fe75 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pyatv/protocols/mrp/protobuf/AudioFadeResponseMessage.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google... | 51.076923 | 384 | 0.850402 | 217 | 1,992 | 7.470046 | 0.410138 | 0.05182 | 0.06169 | 0.074028 | 0.206663 | 0.134485 | 0.067859 | 0.067859 | 0.067859 | 0.067859 | 0 | 0.032778 | 0.065763 | 1,992 | 38 | 385 | 52.421053 | 0.838259 | 0.158133 | 0 | 0 | 1 | 0.047619 | 0.282713 | 0.269508 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
063a5b96f6f7013c0ace24258a8afe3ef8921dd7 | 10,286 | py | Python | scripts/repo.py | mjfwest/OpenMDAO-Framework | a5521f47ad7686c25b203de74e1c7dff5fd7a52b | [
"Apache-2.0"
] | 69 | 2015-01-02T19:10:08.000Z | 2021-11-14T04:42:28.000Z | scripts/repo.py | jcchin/OpenMDAO-Framework | 038e89b06da1c74f00918f4c6fbd8bd365e25657 | [
"Apache-2.0"
] | 3 | 2015-01-15T23:08:18.000Z | 2015-03-11T16:57:35.000Z | scripts/repo.py | jcchin/OpenMDAO-Framework | 038e89b06da1c74f00918f4c6fbd8bd365e25657 | [
"Apache-2.0"
] | 31 | 2015-09-16T00:37:35.000Z | 2022-01-10T06:27:55.000Z | #!/usr/bin/env python
"""
Repository maintenance.
Can record lock/unlock state of a repository.
Useful to keep multiple developers from stepping on each other,
but requires some discipline :-(
"""
import glob
import optparse
import os.path
import platform
import shutil
import stat
import subprocess
import sys
import t... | 29.13881 | 105 | 0.552985 | 1,226 | 10,286 | 4.556281 | 0.195759 | 0.027927 | 0.028643 | 0.023631 | 0.383638 | 0.318654 | 0.210347 | 0.152703 | 0.093627 | 0.042248 | 0 | 0.006465 | 0.323255 | 10,286 | 352 | 106 | 29.221591 | 0.796006 | 0.015361 | 0 | 0.37457 | 0 | 0 | 0.13885 | 0.021625 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003436 | 0.034364 | null | null | 0.082474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0659e17cb375124f95e47f63fbc203122b2b083e | 227 | py | Python | macstats/cpu.py | cloverstd/macstats-python | d1351e3018b3edf9a7e268fa4b5995deb4ca537d | [
"MIT"
] | 1 | 2016-03-17T05:04:34.000Z | 2016-03-17T05:04:34.000Z | macstats/cpu.py | cloverstd/macstats-python | d1351e3018b3edf9a7e268fa4b5995deb4ca537d | [
"MIT"
] | null | null | null | macstats/cpu.py | cloverstd/macstats-python | d1351e3018b3edf9a7e268fa4b5995deb4ca537d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
from . import _smc
class CPU(object):
@property
def temp(self, F=False):
_temp = _smc.temp()
return (_temp * (9.0 / 5.0)) + 32.0 if F else _temp
cpu = CPU()
| 14.1875 | 59 | 0.568282 | 36 | 227 | 3.444444 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.277533 | 227 | 15 | 60 | 15.133333 | 0.707317 | 0.15859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 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 |
065dfe9a995dffbe97bac788e7da6e1d217cea64 | 2,288 | py | Python | app/models/commons.py | medsci-tech/mime_analysis_flask_2017 | 4a927219f31db433f4af6a7af3085e05c08b5c3e | [
"MIT"
] | null | null | null | app/models/commons.py | medsci-tech/mime_analysis_flask_2017 | 4a927219f31db433f4af6a7af3085e05c08b5c3e | [
"MIT"
] | null | null | null | app/models/commons.py | medsci-tech/mime_analysis_flask_2017 | 4a927219f31db433f4af6a7af3085e05c08b5c3e | [
"MIT"
] | null | null | null | from . import db
class Disease(db.Model):
__tablename__ = 'disease'
id = db.Column(db.Integer(), primary_key=True)
name_ch = db.Column('name_ch', db.String(30), nullable=False)
class Region(db.Model):
__tablename__ = 'region'
id = db.Column(db.Integer(), primary_key=True)
province = db.Colum... | 37.508197 | 87 | 0.69799 | 309 | 2,288 | 4.967638 | 0.139159 | 0.140717 | 0.078176 | 0.140717 | 0.571987 | 0.497068 | 0.403909 | 0.250163 | 0.164169 | 0.164169 | 0 | 0.01631 | 0.142483 | 2,288 | 60 | 88 | 38.133333 | 0.766055 | 0 | 0 | 0.227273 | 0 | 0 | 0.118881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022727 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0660983019c4670d1864edee5b2592f71067c9a6 | 903 | py | Python | examples/extension.py | TuXiaokang/karas | 2549502424b2d4c67047b867b0315f33b2e997c5 | [
"MIT"
] | 3 | 2019-02-28T13:53:48.000Z | 2022-01-18T12:53:37.000Z | examples/extension.py | TuXiaokang/karas | 2549502424b2d4c67047b867b0315f33b2e997c5 | [
"MIT"
] | null | null | null | examples/extension.py | TuXiaokang/karas | 2549502424b2d4c67047b867b0315f33b2e997c5 | [
"MIT"
] | 1 | 2022-01-18T12:53:42.000Z | 2022-01-18T12:53:42.000Z | import torch
from karas.training import extension
class Eval(extension.Extension):
def initialize(self, trainer):
pass
def __call__(self, trainer):
updater = trainer.updater
reporter = trainer.reporter
loader = trainer.get_loader('test')
correct = 0
updater.m... | 25.8 | 93 | 0.612403 | 103 | 903 | 5.271845 | 0.553398 | 0.066298 | 0.044199 | 0.069982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004637 | 0.283499 | 903 | 34 | 94 | 26.558824 | 0.834621 | 0.044297 | 0 | 0.083333 | 0 | 0 | 0.020906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.083333 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
066148500db9c1f83e88c0a147ed1086e9f23aca | 436 | py | Python | tests/test_log.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 17 | 2015-02-10T07:10:29.000Z | 2021-05-14T22:24:45.000Z | tests/test_log.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 459 | 2015-03-31T18:24:23.000Z | 2022-03-30T19:44:40.000Z | tests/test_log.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 9 | 2015-04-18T16:57:31.000Z | 2020-10-30T11:49:13.000Z | import logging
import log
import unittest
class TestLog(unittest.TestCase):
def test_logger_creation_and_usage(self):
logger = log.logger("worker.log", "INFO", "worker_123")
self.assertIsInstance(logger, logging.Logger)
logger.info("Test info message")
logger.error("Test error mess... | 29.066667 | 68 | 0.694954 | 54 | 436 | 5.462963 | 0.481481 | 0.047458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013966 | 0.178899 | 436 | 14 | 69 | 31.142857 | 0.810056 | 0 | 0 | 0 | 0 | 0 | 0.183486 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
067061ad2378d21750f0d8ced4d88b57e8b9a303 | 1,419 | py | Python | tests/gbe/test_coordinator_performer_autocomplete.py | bethlakshmi/gbe-divio-djangocms-python2.7 | 6e9b2c894162524bbbaaf73dcbe927988707231d | [
"Apache-2.0"
] | 1 | 2021-03-14T11:56:47.000Z | 2021-03-14T11:56:47.000Z | tests/gbe/test_coordinator_performer_autocomplete.py | bethlakshmi/gbe-divio-djangocms-python2.7 | 6e9b2c894162524bbbaaf73dcbe927988707231d | [
"Apache-2.0"
] | 180 | 2019-09-15T19:52:46.000Z | 2021-11-06T23:48:01.000Z | tests/gbe/test_coordinator_performer_autocomplete.py | bethlakshmi/gbe-divio-djangocms-python2.7 | 6e9b2c894162524bbbaaf73dcbe927988707231d | [
"Apache-2.0"
] | null | null | null | from django.test import TestCase
from django.test import Client
from django.urls import reverse
from tests.factories.gbe_factories import (
PersonaFactory,
ProfileFactory,
TroupeFactory,
)
from tests.functions.gbe_functions import (
grant_privilege,
login_as,
)
from gbe.functions import validate_pro... | 34.609756 | 77 | 0.700493 | 157 | 1,419 | 6.197452 | 0.324841 | 0.110997 | 0.160329 | 0.184995 | 0.313464 | 0.188078 | 0.188078 | 0.188078 | 0.172662 | 0.172662 | 0 | 0 | 0.205779 | 1,419 | 40 | 78 | 35.475 | 0.863354 | 0 | 0 | 0.114286 | 0 | 0 | 0.049331 | 0.023961 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.085714 | false | 0 | 0.171429 | 0 | 0.314286 | 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 |
0677172291ce6c81d9dab6c0334b073c9f40cb17 | 4,009 | py | Python | scripts/analyzeSignals.py | simras/CAP | 6e521ec89fbb1f66dfe2fbc82abbcd1fb459cef1 | [
"MIT"
] | 1 | 2019-07-14T23:37:00.000Z | 2019-07-14T23:37:00.000Z | scripts/analyzeSignals.py | simras/CAP | 6e521ec89fbb1f66dfe2fbc82abbcd1fb459cef1 | [
"MIT"
] | 2 | 2017-05-03T16:38:05.000Z | 2017-06-05T15:43:14.000Z | scripts/analyzeSignals.py | simras/CAP | 6e521ec89fbb1f66dfe2fbc82abbcd1fb459cef1 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# agrep.py
# Example cat seqs.fa | agrep.py -p gcttcatagccccttcccaat -m 3
# By Simon H. Rasmussen
# Bioinformatics Centre
# University of Copenhagen
# gcttcatagccccttcccaat
from types import *
def analyzeSignals(fn):
import os
import sys
from operator import itemgetter
... | 29.477941 | 108 | 0.472936 | 473 | 4,009 | 3.968288 | 0.27907 | 0.022376 | 0.023974 | 0.05967 | 0.376132 | 0.335109 | 0.302611 | 0.209909 | 0.209909 | 0.186468 | 0 | 0.030004 | 0.393115 | 4,009 | 135 | 109 | 29.696296 | 0.741471 | 0.130207 | 0 | 0.438095 | 0 | 0 | 0.08564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.07619 | null | null | 0.114286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
067af27f93dccd5e0508e601b99ab166afd9dc64 | 870 | py | Python | 21爬虫入门/day01/note.py | HaoZhang95/PythonAndMachineLearning | b897224b8a0e6a5734f408df8c24846a98c553bf | [
"MIT"
] | 937 | 2019-05-08T08:46:25.000Z | 2022-03-31T12:56:07.000Z | 21爬虫入门/day01/note.py | HaoZhang95/PythonAndMachineLearning | b897224b8a0e6a5734f408df8c24846a98c553bf | [
"MIT"
] | 47 | 2019-09-17T10:06:02.000Z | 2022-03-11T23:46:52.000Z | 21爬虫入门/day01/note.py | HaoZhang95/PythonAndMachineLearning | b897224b8a0e6a5734f408df8c24846a98c553bf | [
"MIT"
] | 354 | 2019-05-10T02:15:26.000Z | 2022-03-30T05:52:57.000Z | """
爬虫的用途:12306抢票,短信轰炸,数据获取
分类:通用爬虫:是搜索引擎抓取系统的重要部分,主要是把互联网上的页面下载到本地作为一个镜像备份
聚焦爬虫:对特定需求进行数据获取,会对页面的内容进行筛选,保证只抓取和需求相关的网页信息
Http:端口号80
Https: 端口号443
使用第三方的requests进行请求:支持python2和3,在urllib中2和3的语法有些不一样
"""
import requests
kw = {'wd': '长城'}
# headers伪装成一个浏览器进行的请求
# 不加这个的话,网页会识别出请求来自一个python而不是... | 21.219512 | 142 | 0.744828 | 103 | 870 | 6.281553 | 0.757282 | 0.120556 | 0.061824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055046 | 0.122989 | 870 | 40 | 143 | 21.75 | 0.792923 | 0.388506 | 0 | 0 | 0 | 0.083333 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 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 |
0684b1b002a55169701d005cc9c61aba3a012ff4 | 550 | py | Python | jolly-jellyfish/src/django_meta/urls.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 40 | 2020-08-02T07:38:22.000Z | 2021-07-26T01:46:50.000Z | jolly-jellyfish/src/django_meta/urls.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 134 | 2020-07-31T12:15:45.000Z | 2020-12-13T04:42:19.000Z | jolly-jellyfish/src/django_meta/urls.py | Artemis21/summer-code-jam-2020 | 1323288cb1e75b3aa4141c2c6e378f9219cf73d0 | [
"MIT"
] | 101 | 2020-07-31T12:00:47.000Z | 2021-11-01T09:06:58.000Z | """halfway URL Configuration"""
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.urls import path, include
urlpatterns = [
path('admin', admin.site.urls),
path('users/login', auth_views.L... | 39.285714 | 86 | 0.749091 | 77 | 550 | 5.220779 | 0.415584 | 0.124378 | 0.069652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 550 | 13 | 87 | 42.307692 | 0.820408 | 0.045455 | 0 | 0 | 0 | 0 | 0.105973 | 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 |
06883ce78e2a1dbb9e8d5c82c46fc77e5675f725 | 1,577 | py | Python | pytorch/detectron2_test.py | cicicici/deeptensor | efcd7b9ca2d758cb2461b64fa5ba1268685e4dab | [
"MIT"
] | 1 | 2018-04-04T09:00:45.000Z | 2018-04-04T09:00:45.000Z | pytorch/detectron2_test.py | cicicici/deeptensor | efcd7b9ca2d758cb2461b64fa5ba1268685e4dab | [
"MIT"
] | null | null | null | pytorch/detectron2_test.py | cicicici/deeptensor | efcd7b9ca2d758cb2461b64fa5ba1268685e4dab | [
"MIT"
] | null | null | null | from __future__ import print_function
import torch
''' Env
pip install -U torch torchvision
pip install -U cython
pip install -U 'git+https://github.com/facebookresearch/fvcore.git' 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'
git clone https://github.com/facebookresearch/detectron2 detectr... | 32.183673 | 139 | 0.794547 | 224 | 1,577 | 5.446429 | 0.508929 | 0.068852 | 0.027049 | 0.027869 | 0.065574 | 0.065574 | 0.065574 | 0.065574 | 0 | 0 | 0 | 0.029412 | 0.094483 | 1,577 | 48 | 140 | 32.854167 | 0.82493 | 0.168675 | 0 | 0 | 0 | 0 | 0.223007 | 0.171544 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.458333 | 0 | 0.458333 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
068f460b19b44e6e3a4892916136217a05b3694c | 384 | py | Python | catalog/migrations/0005_auto_20210406_1240.py | Dessand/local_library | dbdedea8dadf8252f9d1ea0644523e23f83395d9 | [
"Apache-2.0"
] | null | null | null | catalog/migrations/0005_auto_20210406_1240.py | Dessand/local_library | dbdedea8dadf8252f9d1ea0644523e23f83395d9 | [
"Apache-2.0"
] | null | null | null | catalog/migrations/0005_auto_20210406_1240.py | Dessand/local_library | dbdedea8dadf8252f9d1ea0644523e23f83395d9 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.7 on 2021-04-06 12:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalog', '0004_auto_20210405_1042'),
]
operations = [
migrations.AlterField(
model_name='book',
name='title',
... | 20.210526 | 51 | 0.596354 | 42 | 384 | 5.333333 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124542 | 0.289063 | 384 | 18 | 52 | 21.333333 | 0.695971 | 0.117188 | 0 | 0 | 1 | 0 | 0.115727 | 0.068249 | 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 |
06934f8dc4197cfd0a527660a7c7bb39f728756e | 1,063 | py | Python | EDU-CF-R102/B.py | patwadeepak/codeforces | 5da8c79ad6f27a4a2436d19fc8cbf274ecd452e2 | [
"Apache-2.0"
] | null | null | null | EDU-CF-R102/B.py | patwadeepak/codeforces | 5da8c79ad6f27a4a2436d19fc8cbf274ecd452e2 | [
"Apache-2.0"
] | null | null | null | EDU-CF-R102/B.py | patwadeepak/codeforces | 5da8c79ad6f27a4a2436d19fc8cbf274ecd452e2 | [
"Apache-2.0"
] | null | null | null | import math
def LCM(s, t):
n = len(s)
m = len(t)
s_count = {'a': 0, 'b': 0}
t_count = {'a': 0, 'b': 0}
for char in s:
s_count[char] += 1
for char in t:
t_count[char] += 1
if s_count['a']/s_count['b'] == t_count['a']/t_count['b']:
if n > m:
... | 25.309524 | 68 | 0.453434 | 157 | 1,063 | 2.859873 | 0.203822 | 0.260579 | 0.062361 | 0.035635 | 0.164811 | 0.124722 | 0 | 0 | 0 | 0 | 0 | 0.013657 | 0.380056 | 1,063 | 42 | 69 | 25.309524 | 0.667678 | 0 | 0 | 0.147059 | 0 | 0 | 0.02346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.029412 | 0 | 0.147059 | 0.029412 | 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 |
069af4063bca45f49a2a2b4af406d4e009c1cbff | 1,953 | py | Python | accounts/urls.py | 7h3qu1rkyb1t/Xarena | ae16cfde7ca103887d983e4d8beb0d978579af22 | [
"Apache-2.0"
] | null | null | null | accounts/urls.py | 7h3qu1rkyb1t/Xarena | ae16cfde7ca103887d983e4d8beb0d978579af22 | [
"Apache-2.0"
] | 6 | 2021-01-31T14:19:13.000Z | 2022-03-12T00:53:54.000Z | accounts/urls.py | hardfau18/Xarena | 37504ce1c0d64aee2eeb5b0b0b4b2e0d05f3e458 | [
"Apache-2.0"
] | null | null | null | from . import views
from django.urls import path
from django.contrib.auth import views as auth_views
urlpatterns = [
path("", views.target),
path("register/", views.register, name="register"),
path("login/", auth_views.LoginView.as_view(template_name = "accounts/login.html"), name="login"),
path("logo... | 72.333333 | 183 | 0.752688 | 248 | 1,953 | 5.709677 | 0.221774 | 0.110169 | 0.059322 | 0.076271 | 0.183616 | 0.146893 | 0.110169 | 0 | 0 | 0 | 0 | 0.002228 | 0.080901 | 1,953 | 26 | 184 | 75.115385 | 0.78663 | 0 | 0 | 0 | 0 | 0 | 0.394265 | 0.210445 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
069c2a7ef46cebeafd822840f4c5b332b9b5c273 | 629 | py | Python | job_configs.py | rajeswar18/url_benchmark | 2fdfd82a9067222106ef7627f71b1e1ae5d70a85 | [
"MIT"
] | null | null | null | job_configs.py | rajeswar18/url_benchmark | 2fdfd82a9067222106ef7627f71b1e1ae5d70a85 | [
"MIT"
] | null | null | null | job_configs.py | rajeswar18/url_benchmark | 2fdfd82a9067222106ef7627f71b1e1ae5d70a85 | [
"MIT"
] | null | null | null | import os
if os.environ["EAI_ACCOUNT_ID"] == "7c445bd5-8d23-48dd-963e-b0480d238c8a":
user = "pau"
elif os.environ["EAI_ACCOUNT_ID"] == "68fdc833-1eaa-4b60-9b64-ac27814e4b61":
user = "sai"
else:
user = "issam"
JOB_CONFIG = {
"account_id": os.environ["EAI_ACCOUNT_ID"],
"image": "registry.console.ele... | 25.16 | 77 | 0.580286 | 79 | 629 | 4.493671 | 0.683544 | 0.101408 | 0.101408 | 0.160563 | 0.177465 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103659 | 0.217806 | 629 | 24 | 78 | 26.208333 | 0.617886 | 0.022258 | 0 | 0 | 0 | 0 | 0.491028 | 0.280587 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 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 |
069e902b91802a06154762744d695b40fbab0616 | 2,105 | py | Python | analysis/HtmlAnalysis.py | matthewcornell/skeptical-toolbox | dd4b1e16a73edfea849bc3bc498898a7eaeee893 | [
"Apache-2.0"
] | null | null | null | analysis/HtmlAnalysis.py | matthewcornell/skeptical-toolbox | dd4b1e16a73edfea849bc3bc498898a7eaeee893 | [
"Apache-2.0"
] | null | null | null | analysis/HtmlAnalysis.py | matthewcornell/skeptical-toolbox | dd4b1e16a73edfea849bc3bc498898a7eaeee893 | [
"Apache-2.0"
] | null | null | null | import urllib.request
import urllib.parse
from bs4 import BeautifulSoup as bs
class HtmlAnalysis(object):
"""
Defines routines to analyze a URL and extract various resources to support a skeptical analysis of it.
"""
def __init__(self, url, html=None):
"""
:param url: string
... | 42.959184 | 146 | 0.64228 | 309 | 2,105 | 4.265372 | 0.440129 | 0.030349 | 0.015175 | 0.037936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016592 | 0.255582 | 2,105 | 48 | 147 | 43.854167 | 0.824505 | 0.340618 | 0 | 0 | 0 | 0.043478 | 0.112776 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.173913 | false | 0 | 0.130435 | 0.043478 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
06a5f542131824a212965bedecbc6bcd35f525d6 | 535 | py | Python | Conditional Statements/If.py | Adi-19/Python | 734b5c4c1008233f93a18a500dd47d03583c52be | [
"MIT"
] | null | null | null | Conditional Statements/If.py | Adi-19/Python | 734b5c4c1008233f93a18a500dd47d03583c52be | [
"MIT"
] | null | null | null | Conditional Statements/If.py | Adi-19/Python | 734b5c4c1008233f93a18a500dd47d03583c52be | [
"MIT"
] | 1 | 2020-10-07T08:51:00.000Z | 2020-10-07T08:51:00.000Z | # WAP to show the use of If statment
phone_balance = int(input("enter the balence"))
bank_balance = 100
print(phone_balance, bank_balance)
if phone_balance < 5:
phone_balance += 10
bank_balance -= 10
print(phone_balance, bank_balance)
#the lines that increment phone_balance and decrement bank_ba... | 33.4375 | 103 | 0.749533 | 89 | 535 | 4.370787 | 0.47191 | 0.215938 | 0.087404 | 0.107969 | 0.143959 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028037 | 0.2 | 535 | 15 | 104 | 35.666667 | 0.880841 | 0.562617 | 0 | 0.285714 | 0 | 0 | 0.079439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 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 |
ebf0a4f4dbd829bc994de2c287967af47b18a5b8 | 1,613 | py | Python | testing/vcsaddons/test_vcs_addons_pcoords.py | xylar/cdat | 8a5080cb18febfde365efc96147e25f51494a2bf | [
"BSD-3-Clause"
] | 62 | 2018-03-30T15:46:56.000Z | 2021-12-08T23:30:24.000Z | testing/vcsaddons/test_vcs_addons_pcoords.py | xylar/cdat | 8a5080cb18febfde365efc96147e25f51494a2bf | [
"BSD-3-Clause"
] | 114 | 2018-03-21T01:12:43.000Z | 2021-07-05T12:29:54.000Z | testing/vcsaddons/test_vcs_addons_pcoords.py | CDAT/uvcdat | 5133560c0c049b5c93ee321ba0af494253b44f91 | [
"BSD-3-Clause"
] | 14 | 2018-06-06T02:42:47.000Z | 2021-11-26T03:27:00.000Z |
import sys,os
data = sys.argv[1]
src = sys.argv[2]
import vcs.testing.regression as regression
import vcs
import vcsaddons, numpy
import cdms2
f = cdms2.open(data)
rms_xyt = f("rms_xyt")
ax1 = cdms2.createAxis(['0071-0100' ,'ACCESS1-0' ,'ACCESS1-3' ,'CCSM4' ,'CESM1-BGC' ,'CESM1-CAM5',
'CESM1-FASTCHEM' ,'CESM1-W... | 26.883333 | 115 | 0.656541 | 284 | 1,613 | 3.697183 | 0.489437 | 0.04 | 0.011429 | 0.011429 | 0.008571 | 0.008571 | 0.008571 | 0 | 0 | 0 | 0 | 0.073633 | 0.115933 | 1,613 | 59 | 116 | 27.338983 | 0.662693 | 0.065096 | 0 | 0 | 0 | 0 | 0.234198 | 0.017964 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebf615fa11250b4e34c0e0190af10c57ad1a0ce0 | 924 | py | Python | huxley/core/migrations/0043_auto_20200820_1401.py | bmun/huxley | e75200cab21dd9edabb9d71578acb7054f875817 | [
"BSD-3-Clause"
] | 18 | 2015-07-12T00:55:51.000Z | 2021-12-13T15:41:06.000Z | huxley/core/migrations/0043_auto_20200820_1401.py | bmun/huxley | e75200cab21dd9edabb9d71578acb7054f875817 | [
"BSD-3-Clause"
] | 288 | 2015-01-13T23:05:09.000Z | 2022-03-25T17:35:36.000Z | huxley/core/migrations/0043_auto_20200820_1401.py | bmun/huxley | e75200cab21dd9edabb9d71578acb7054f875817 | [
"BSD-3-Clause"
] | 47 | 2015-05-12T15:39:57.000Z | 2022-03-30T09:12:48.000Z | # Generated by Django 2.2.6 on 2020-08-20 14:01
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('core', '0042_conference_treasurer'),
]
operations = [
migrations.AddField(
model_name='conference',... | 28 | 75 | 0.602814 | 92 | 924 | 5.913043 | 0.51087 | 0.060662 | 0.104779 | 0.148897 | 0.512868 | 0.512868 | 0.512868 | 0.426471 | 0.426471 | 0.426471 | 0 | 0.033486 | 0.288961 | 924 | 32 | 76 | 28.875 | 0.794521 | 0.048701 | 0 | 0.538462 | 1 | 0 | 0.129989 | 0.028506 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 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 | 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.