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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b652e57a3a46ae812e6e009b0d244c6a413085fa | 7,042 | py | Python | src/view/ClassGraphView.py | dangbinghoo/SourceScope | 39241c9ca6ba48dee1164846e864297ad518f698 | [
"BSD-3-Clause"
] | null | null | null | src/view/ClassGraphView.py | dangbinghoo/SourceScope | 39241c9ca6ba48dee1164846e864297ad518f698 | [
"BSD-3-Clause"
] | null | null | null | src/view/ClassGraphView.py | dangbinghoo/SourceScope | 39241c9ca6ba48dee1164846e864297ad518f698 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python2
# Copyright (c) 2010 Anil Kumar
# All rights reserved.
#
# License: BSD
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from PyQt4.QtSvg import *
import os
import sys
if __name__ == '__main__':
import sys
import os
app_dir = os.path.dirname(os.path.realpath(__file__))
os.chdir(app_dir)
... | 25.70073 | 110 | 0.679068 | 1,024 | 7,042 | 4.536133 | 0.234375 | 0.039612 | 0.012917 | 0.013778 | 0.255759 | 0.236383 | 0.217869 | 0.207104 | 0.207104 | 0.207104 | 0 | 0.010905 | 0.166572 | 7,042 | 273 | 111 | 25.794872 | 0.780542 | 0.080375 | 0 | 0.178744 | 0 | 0 | 0.08088 | 0.004803 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.062802 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b6535fa64eb4a7f8deee8c105a7e383538f7682c | 1,036 | py | Python | p1379_find_corresponding_node_in_binary_tree_clone.py | hugoleeney/leetcode_problems | 0a4d36c19af8e98755e40a430b9f40dcc80564ba | [
"MIT"
] | null | null | null | p1379_find_corresponding_node_in_binary_tree_clone.py | hugoleeney/leetcode_problems | 0a4d36c19af8e98755e40a430b9f40dcc80564ba | [
"MIT"
] | null | null | null | p1379_find_corresponding_node_in_binary_tree_clone.py | hugoleeney/leetcode_problems | 0a4d36c19af8e98755e40a430b9f40dcc80564ba | [
"MIT"
] | null | null | null | """
1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree
Difficulty: medium
Given two binary trees original and cloned and given a reference to a node target in the original tree.
The cloned tree is a copy of the original tree.
Return a reference to the same node in the cloned tree.
Note that yo... | 27.263158 | 144 | 0.681467 | 156 | 1,036 | 4.5 | 0.339744 | 0.042735 | 0.051282 | 0.037037 | 0.096866 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005229 | 0.261583 | 1,036 | 37 | 145 | 28 | 0.912418 | 0.467181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b65395783ec76fe4baf22b4a1fae950f23cfd577 | 726 | py | Python | reader.py | build18-fpga-on-the-web/server | d24f76f7a9c70eca4d8be0d3202bba15cc9513f9 | [
"MIT"
] | 2 | 2019-02-13T04:17:31.000Z | 2019-02-13T04:17:35.000Z | reader.py | build18-fpga-on-the-web/server | d24f76f7a9c70eca4d8be0d3202bba15cc9513f9 | [
"MIT"
] | null | null | null | reader.py | build18-fpga-on-the-web/server | d24f76f7a9c70eca4d8be0d3202bba15cc9513f9 | [
"MIT"
] | null | null | null | import socket
import time
host = 'localhost'
port = 2540
size = 1024
def Open(host, port):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(( host,port))
return s
def SendData(conn,IR,data,length):
value = bin(data).split('0b')[1].zfill(length) #Convert from int to binary string
... | 21.352941 | 138 | 0.621212 | 108 | 726 | 4.157407 | 0.546296 | 0.053452 | 0.053452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03169 | 0.217631 | 726 | 33 | 139 | 22 | 0.758803 | 0.123967 | 0 | 0 | 0 | 0 | 0.075251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6560a3f9a6f1339d99c2f7fda28488e07d5aede | 1,272 | py | Python | collect_tweets.py | yassineAlouini/intro_to_airflow | 77aefa1aae9a8cfa879eef182caf9bbdb16984e6 | [
"MIT"
] | null | null | null | collect_tweets.py | yassineAlouini/intro_to_airflow | 77aefa1aae9a8cfa879eef182caf9bbdb16984e6 | [
"MIT"
] | null | null | null | collect_tweets.py | yassineAlouini/intro_to_airflow | 77aefa1aae9a8cfa879eef182caf9bbdb16984e6 | [
"MIT"
] | null | null | null | # Inspired from this: https://www.data-blogger.com/2017/02/24/gathering-tweets-with-python/
import tweepy
import json
# Specify the account credentials in the following variables:
# TODO: Get them from an env varibale or secret file
consumer_key = 'INSERT CONSUMER KEY HERE'
consumer_secret = 'INSERT CONSUMER SECRET ... | 29.581395 | 98 | 0.708333 | 171 | 1,272 | 5.134503 | 0.526316 | 0.087699 | 0.058087 | 0.050114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0.188679 | 1,272 | 42 | 99 | 30.285714 | 0.843023 | 0.326258 | 0 | 0 | 0 | 0 | 0.242317 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.263158 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b658e66c988a22841a89ffcf39d5c79e40ecafcc | 719 | py | Python | config.py | namhong1412/Image-Search-Engine-Python-and-Faiss | 6a7c18e080ad7ac4def9d05fe7fbceda948312cb | [
"MIT"
] | null | null | null | config.py | namhong1412/Image-Search-Engine-Python-and-Faiss | 6a7c18e080ad7ac4def9d05fe7fbceda948312cb | [
"MIT"
] | null | null | null | config.py | namhong1412/Image-Search-Engine-Python-and-Faiss | 6a7c18e080ad7ac4def9d05fe7fbceda948312cb | [
"MIT"
] | null | null | null | import psycopg2
HOSTNAME = '192.168.1.204'
USERNAME = 'postgres'
PASSWORD = '123'
DATABASE_NAME = 'data_lake'
PORT = 5432
postgres_connection_string = "postgresql://{DB_USER}:{DB_PASS}@{DB_ADDR}:{PORT}/{DB_NAME}".format(
DB_USER=USERNAME,
DB_PASS=PASSWORD,
DB_ADDR=HOSTNAME,
PORT=PORT,
DB_NAME=DATA... | 24.793103 | 98 | 0.649513 | 83 | 719 | 5.409639 | 0.46988 | 0.080178 | 0.044543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042202 | 0.242003 | 719 | 28 | 99 | 25.678571 | 0.781651 | 0 | 0 | 0 | 0 | 0 | 0.171071 | 0.114047 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.166667 | 0.041667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b65e9f6ed7aac80fa18eca10a9396e338d666970 | 4,949 | py | Python | open_vsdcli/vsd_enterprise.py | maxiterr/openvsd | 5b0b50c67863498cb7972670ea6cdcc79c12624f | [
"Apache-2.0"
] | 9 | 2015-10-15T14:11:03.000Z | 2016-11-24T20:35:30.000Z | open_vsdcli/vsd_enterprise.py | maxiterr/openvsd | 5b0b50c67863498cb7972670ea6cdcc79c12624f | [
"Apache-2.0"
] | 24 | 2015-10-15T14:37:15.000Z | 2020-02-28T10:23:11.000Z | open_vsdcli/vsd_enterprise.py | maxiterr/openvsd | 5b0b50c67863498cb7972670ea6cdcc79c12624f | [
"Apache-2.0"
] | 6 | 2015-10-25T21:11:17.000Z | 2020-03-05T16:16:05.000Z | from open_vsdcli.vsd_common import *
@vsdcli.command(name='enterprise-list')
@click.option('--filter', metavar='<filter>',
help='Filter for name, description, lastUpdatedDate, '
'creationDate, externalID')
@click.pass_context
def enterprise_list(ctx, filter):
"""Show all enterpris... | 39.277778 | 79 | 0.625177 | 564 | 4,949 | 5.400709 | 0.189716 | 0.059094 | 0.026264 | 0.052528 | 0.558766 | 0.493762 | 0.401182 | 0.332239 | 0.332239 | 0.284964 | 0 | 0.001521 | 0.202667 | 4,949 | 125 | 80 | 39.592 | 0.7704 | 0.067084 | 0 | 0.376238 | 0 | 0 | 0.25 | 0.051573 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079208 | false | 0.079208 | 0.009901 | 0 | 0.089109 | 0.059406 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b668c8bf3d7d816771d5d5c88e014cbe876e9bb0 | 11,400 | py | Python | src/server/game_mode.py | Tommimon/cunegonda-online | 9f36546ed00828f05b70d1d2f1fb56dbe73933e6 | [
"MIT"
] | null | null | null | src/server/game_mode.py | Tommimon/cunegonda-online | 9f36546ed00828f05b70d1d2f1fb56dbe73933e6 | [
"MIT"
] | null | null | null | src/server/game_mode.py | Tommimon/cunegonda-online | 9f36546ed00828f05b70d1d2f1fb56dbe73933e6 | [
"MIT"
] | 2 | 2020-04-19T15:35:33.000Z | 2020-04-25T10:26:24.000Z | # si occupa della gestione delle regole e dei dati privati del server
from server.global_var import GlobalVar
from replicated.game_state import Fase
from server.player_private import PlayerPrivate
from server.deck import Deck, Card
from threading import Timer
from tcp_basics import safe_recv_var
from socket import tim... | 50 | 120 | 0.634474 | 1,508 | 11,400 | 4.625995 | 0.204244 | 0.049025 | 0.06336 | 0.018062 | 0.321101 | 0.248567 | 0.208429 | 0.159547 | 0.12285 | 0.095614 | 0 | 0.005912 | 0.287807 | 11,400 | 227 | 121 | 50.220264 | 0.853307 | 0.187632 | 0 | 0.257426 | 0 | 0 | 0.0025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089109 | false | 0.054455 | 0.034653 | 0 | 0.158416 | 0.009901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b66d19a30d892aae82b0d084b50f427189a42d0c | 6,269 | py | Python | utils.py | byaka/CapybaraMail | c6bad864c56e8a7f4e93397b095d5013f6ba0c7f | [
"Apache-2.0"
] | null | null | null | utils.py | byaka/CapybaraMail | c6bad864c56e8a7f4e93397b095d5013f6ba0c7f | [
"Apache-2.0"
] | 5 | 2019-06-18T14:03:44.000Z | 2019-09-01T12:44:40.000Z | utils.py | byaka/CapybaraMail | c6bad864c56e8a7f4e93397b095d5013f6ba0c7f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
from importMail import ImportMail_MBox
IS_TTY=sys.stdout.isatty()
consoleColor={
# predefined colors
'fail':'\x1b[91m',
'ok':'\x1b[92m',
'warning':'\x1b[93m',
'okblue':'\x1b[94m',
'header':'\x1b[95m',
# colors
'black':'\x1b[30m',
'red':'\x1b[31m',
'gree... | 37.76506 | 181 | 0.607274 | 769 | 6,269 | 4.875163 | 0.487646 | 0.052814 | 0.020539 | 0.044812 | 0.095492 | 0.034676 | 0 | 0 | 0 | 0 | 0 | 0.018743 | 0.182964 | 6,269 | 165 | 182 | 37.993939 | 0.713198 | 0.270697 | 0 | 0.019231 | 0 | 0 | 0.200133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028846 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b671c02cf859487a9cd427f70aedb94c7c3ba542 | 408 | py | Python | apps/funcionario/migrations/0011_funcionario_imagem.py | diegocostacmp/gestao_rh | 5fc6333aa1937ecbd05528ca01f4b9cb5f5eb895 | [
"Linux-OpenIB"
] | null | null | null | apps/funcionario/migrations/0011_funcionario_imagem.py | diegocostacmp/gestao_rh | 5fc6333aa1937ecbd05528ca01f4b9cb5f5eb895 | [
"Linux-OpenIB"
] | 6 | 2020-02-08T21:28:12.000Z | 2022-03-12T00:15:11.000Z | apps/funcionario/migrations/0011_funcionario_imagem.py | diegocostacmp/gestao_rh | 5fc6333aa1937ecbd05528ca01f4b9cb5f5eb895 | [
"Linux-OpenIB"
] | null | null | null | # Generated by Django 2.1.1 on 2020-02-24 14:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("funcionario", "0010_funcionario_de_ferias"),
]
operations = [
migrations.AddField(
model_name="funcionario",
name="i... | 21.473684 | 62 | 0.607843 | 43 | 408 | 5.651163 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064189 | 0.27451 | 408 | 18 | 63 | 22.666667 | 0.756757 | 0.110294 | 0 | 0 | 1 | 0 | 0.149584 | 0.072022 | 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 |
b683231fe09a5cf6a2e088832f28e5dfccc38390 | 3,295 | py | Python | curie/null_oob_util.py | mike0615/curie | e25691f465c23cf53c39be157fcfa2eea4978b26 | [
"MIT"
] | 4 | 2019-02-26T05:18:13.000Z | 2020-07-15T00:34:41.000Z | curie/null_oob_util.py | nutanix/curie | e25691f465c23cf53c39be157fcfa2eea4978b26 | [
"MIT"
] | 3 | 2021-03-31T18:55:50.000Z | 2021-04-20T17:13:31.000Z | curie/null_oob_util.py | mike0615/curie | e25691f465c23cf53c39be157fcfa2eea4978b26 | [
"MIT"
] | 2 | 2020-01-09T02:24:00.000Z | 2020-11-04T23:09:02.000Z | #
# Copyright (c) 2016 Nutanix Inc. All rights reserved.
#
"""
Provides stub Out-of-Band management util for cases with no OoB support.
"""
from curie.curie_error_pb2 import CurieError
from curie.exception import CurieException
from curie.oob_management_util import OobInterfaceType
from curie.oob_management_util impor... | 30.509259 | 79 | 0.62519 | 378 | 3,295 | 5.367725 | 0.296296 | 0.027107 | 0.048793 | 0.103006 | 0.603746 | 0.603746 | 0.572203 | 0.556925 | 0.556925 | 0.556925 | 0 | 0.0019 | 0.201214 | 3,295 | 107 | 80 | 30.794393 | 0.768997 | 0.123217 | 0 | 0.571429 | 0 | 0 | 0.384154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028571 | 0.114286 | 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 |
b686997f5f73e143274ace334dc1a1c59262b3fb | 2,920 | py | Python | servicesCalculator.py | LincT/PythonExamples | a0b61e8c60cd0754f2406b6b72fcd562667c9bb0 | [
"MIT"
] | null | null | null | servicesCalculator.py | LincT/PythonExamples | a0b61e8c60cd0754f2406b6b72fcd562667c9bb0 | [
"MIT"
] | null | null | null | servicesCalculator.py | LincT/PythonExamples | a0b61e8c60cd0754f2406b6b72fcd562667c9bb0 | [
"MIT"
] | null | null | null | # GUI with checkboxes for itemized service charges.
# gives total when button clicked.
# procedural generation to reduce code and generate menu.
# update values in self.services dictionary to add/update/remove services.
import tkinter
__author__ = 'LincT, https://github.com/LincT/PythonExamples'
class AutoEstimateGU... | 31.73913 | 109 | 0.556164 | 314 | 2,920 | 5.143312 | 0.442675 | 0.044582 | 0.029721 | 0.032198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022763 | 0.338014 | 2,920 | 91 | 110 | 32.087912 | 0.812726 | 0.211301 | 0 | 0.086207 | 1 | 0 | 0.085965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.017241 | 0 | 0.068966 | 0 | 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 |
b686c672f024f2faefd07ac36b09a86a11e4a9b0 | 436 | py | Python | Tensorflow_InAction_Google/code/005/tensorflow/001.mnist_input_data_train_validation_test.py | lsieun/learn-AI | 0a164bc2e6317de3aa03c747c0e6f15d93e7f49a | [
"Apache-2.0"
] | 1 | 2019-03-27T23:22:44.000Z | 2019-03-27T23:22:44.000Z | Tensorflow_InAction_Google/code/005/tensorflow/001.mnist_input_data_train_validation_test.py | lsieun/learn-AI | 0a164bc2e6317de3aa03c747c0e6f15d93e7f49a | [
"Apache-2.0"
] | null | null | null | Tensorflow_InAction_Google/code/005/tensorflow/001.mnist_input_data_train_validation_test.py | lsieun/learn-AI | 0a164bc2e6317de3aa03c747c0e6f15d93e7f49a | [
"Apache-2.0"
] | null | null | null | from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets(train_dir="./path/to/MNIST_data/",one_hot=True)
print("Training data size: ", mnist.train.num_examples)
print("Validating data size: ", mnist.validation.num_examples)
print("Testing data size: ", mnist.test.num_examples)
# p... | 43.6 | 81 | 0.775229 | 64 | 436 | 5.125 | 0.46875 | 0.109756 | 0.118902 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005 | 0.082569 | 436 | 10 | 82 | 43.6 | 0.815 | 0.126147 | 0 | 0 | 0 | 0 | 0.292105 | 0.055263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b68b052568712669e1b77bccf8483d5e54975c4a | 2,341 | py | Python | opennem/core/parsers/aemo/facility_closures.py | paulculmsee/opennem | 9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1 | [
"MIT"
] | 22 | 2020-06-30T05:27:21.000Z | 2022-02-21T12:13:51.000Z | opennem/core/parsers/aemo/facility_closures.py | paulculmsee/opennem | 9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1 | [
"MIT"
] | 71 | 2020-08-07T13:06:30.000Z | 2022-03-15T06:44:49.000Z | opennem/core/parsers/aemo/facility_closures.py | paulculmsee/opennem | 9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1 | [
"MIT"
] | 13 | 2020-06-30T03:28:32.000Z | 2021-12-30T08:17:16.000Z | """
OpenNEM AEMO facility closure dates parser.
"""
import logging
from datetime import datetime
from pathlib import Path
from typing import List, Optional, Union
from openpyxl import load_workbook
from pydantic import ValidationError
from pydantic.class_validators import validator
from opennem.core.normalizers imp... | 24.904255 | 94 | 0.70141 | 293 | 2,341 | 5.331058 | 0.395904 | 0.084507 | 0.097311 | 0.033291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00269 | 0.205895 | 2,341 | 93 | 95 | 25.172043 | 0.837547 | 0.097394 | 0 | 0 | 0 | 0 | 0.115091 | 0.070201 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0.035088 | false | 0 | 0.175439 | 0 | 0.385965 | 0.035088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b68c5fa405a88ca8d3a9468fbc147dd5e94c533b | 6,450 | py | Python | camnet/environment.py | rccrdo/python-camera-net | c1280b9c5c44232ff8d2688c8e0685f4b3d98a3f | [
"Zlib"
] | 1 | 2020-11-13T23:14:49.000Z | 2020-11-13T23:14:49.000Z | camnet/environment.py | rccrdo/python-camera-net | c1280b9c5c44232ff8d2688c8e0685f4b3d98a3f | [
"Zlib"
] | null | null | null | camnet/environment.py | rccrdo/python-camera-net | c1280b9c5c44232ff8d2688c8e0685f4b3d98a3f | [
"Zlib"
] | null | null | null | # Copyright (c) 2013 Riccardo Lucchese, riccardo.lucchese at gmail.com
#
# This software is provided 'as-is', without any express or implied
# warranty. In no event will the authors be held liable for any damages
# arising from the use of this software.
#
# Permission is granted to anyone to use this software for any p... | 30 | 106 | 0.586202 | 794 | 6,450 | 4.634761 | 0.301008 | 0.017935 | 0.017935 | 0.012228 | 0.058152 | 0.015217 | 0 | 0 | 0 | 0 | 0 | 0.015529 | 0.321085 | 6,450 | 214 | 107 | 30.140187 | 0.824846 | 0.244806 | 0 | 0.115385 | 0 | 0 | 0.03894 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | null | null | 0 | 0.069231 | null | null | 0.023077 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b68e608299962dfeec12aa627d76760f39bdb812 | 940 | py | Python | apps/accounts/migrations/0005_organisatons_for_user_changes.py | developersociety/commonslibrary | 38a77a8eea9d11e1819535ca98d577430b830c02 | [
"BSD-3-Clause"
] | 4 | 2018-03-20T06:32:16.000Z | 2021-03-25T10:05:25.000Z | apps/accounts/migrations/0005_organisatons_for_user_changes.py | developersociety/commonslibrary | 38a77a8eea9d11e1819535ca98d577430b830c02 | [
"BSD-3-Clause"
] | 22 | 2018-03-01T15:16:50.000Z | 2020-04-16T10:51:29.000Z | apps/accounts/migrations/0005_organisatons_for_user_changes.py | developersociety/commonslibrary | 38a77a8eea9d11e1819535ca98d577430b830c02 | [
"BSD-3-Clause"
] | 1 | 2019-02-20T09:40:41.000Z | 2019-02-20T09:40:41.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-03-09 12:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('directory', '0001_initial'),
('accounts', '0004_organisations_remove_null'),
]
... | 30.322581 | 137 | 0.628723 | 90 | 940 | 6.377778 | 0.577778 | 0.047038 | 0.067944 | 0.08885 | 0.289199 | 0.289199 | 0 | 0 | 0 | 0 | 0 | 0.03709 | 0.254255 | 940 | 30 | 138 | 31.333333 | 0.78174 | 0.073404 | 0 | 0.347826 | 1 | 0 | 0.268433 | 0.135945 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b68eb5d69ffe82467854d34656c96c9dfc403f5e | 1,607 | py | Python | scripts/compile.py | martinphellwig/brython_wf | e169afc1e048cba0c12118b4cd6f109df6fe67c9 | [
"BSD-3-Clause"
] | null | null | null | scripts/compile.py | martinphellwig/brython_wf | e169afc1e048cba0c12118b4cd6f109df6fe67c9 | [
"BSD-3-Clause"
] | null | null | null | scripts/compile.py | martinphellwig/brython_wf | e169afc1e048cba0c12118b4cd6f109df6fe67c9 | [
"BSD-3-Clause"
] | null | null | null | ## execute this file via node.js
# $> nodejs node_bridge.js compile.py
#
# Author: Billy Earney
# Date: 04/19/2013
# License: MIT
#
# This file can be used to compile python code to javascript code
# which can be used with brython.
import os
#import dis
#fixme os.path.join doesn't work (ie, import posixpath as path,... | 28.192982 | 79 | 0.655881 | 247 | 1,607 | 4.040486 | 0.42915 | 0.036072 | 0.06012 | 0.056112 | 0.104208 | 0.104208 | 0.056112 | 0 | 0 | 0 | 0 | 0.009863 | 0.179838 | 1,607 | 56 | 80 | 28.696429 | 0.747344 | 0.291848 | 0 | 0 | 0 | 0 | 0.172906 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.1875 | false | 0.03125 | 0.03125 | 0.09375 | 0.34375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b69257761f0ca9a344113908295c6816c5a0451a | 3,186 | py | Python | evaluate.py | existentmember7/detectron2_revise | 821fca5d1d77995cf7e9b3ece1e65c033eef4f0a | [
"MIT"
] | null | null | null | evaluate.py | existentmember7/detectron2_revise | 821fca5d1d77995cf7e9b3ece1e65c033eef4f0a | [
"MIT"
] | null | null | null | evaluate.py | existentmember7/detectron2_revise | 821fca5d1d77995cf7e9b3ece1e65c033eef4f0a | [
"MIT"
] | null | null | null | import argparse
import time
import os
import numpy as np
import json
import cv2
import random
import torch
from ACID_test import test
# Setup detectron2 logger
import detectron2
from detectron2.utils.logger import setup_logger
setup_logger()
# import some common detectron2 utilities
from detectron2.model_zoo import m... | 47.552239 | 153 | 0.780603 | 436 | 3,186 | 5.493119 | 0.288991 | 0.058455 | 0.070981 | 0.041754 | 0.154071 | 0.106889 | 0.106889 | 0.106889 | 0.106889 | 0.106889 | 0 | 0.010154 | 0.103578 | 3,186 | 67 | 154 | 47.552239 | 0.828431 | 0.073446 | 0 | 0 | 0 | 0 | 0.21711 | 0.126108 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.384615 | 0 | 0.403846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b6977cd52243fa7c536ec31ce70ba6debc3ca7d8 | 7,606 | py | Python | backend/Techfesia2019/payments/tests.py | masterashu/Techfesia2019 | 8fd82c4867c8d870b82a936fc0f9e80f11ae03e7 | [
"MIT"
] | 1 | 2019-07-01T03:56:58.000Z | 2019-07-01T03:56:58.000Z | backend/Techfesia2019/payments/tests.py | masterashu/Techfesia2019 | 8fd82c4867c8d870b82a936fc0f9e80f11ae03e7 | [
"MIT"
] | null | null | null | backend/Techfesia2019/payments/tests.py | masterashu/Techfesia2019 | 8fd82c4867c8d870b82a936fc0f9e80f11ae03e7 | [
"MIT"
] | 2 | 2019-06-22T05:02:20.000Z | 2019-06-27T15:48:14.000Z | import datetime as dt
from json import dumps as json_dumps
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase
from registration.models import User
from events.models import SoloEvent
from event_registrations.models import SoloEventRegistration
from payments.mod... | 55.926471 | 111 | 0.520905 | 671 | 7,606 | 5.685544 | 0.178838 | 0.04194 | 0.042464 | 0.0519 | 0.76671 | 0.70616 | 0.67654 | 0.647444 | 0.588204 | 0.554128 | 0 | 0.029958 | 0.398764 | 7,606 | 135 | 112 | 56.340741 | 0.804286 | 0 | 0 | 0.46087 | 0 | 0 | 0.079958 | 0 | 0 | 0 | 0 | 0 | 0.078261 | 1 | 0.069565 | false | 0 | 0.078261 | 0 | 0.156522 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b69fb455a3ac1c371065bc75e2bb82213cc6ec69 | 238 | py | Python | utils/send_data.py | e0xextazy/dog_breeds_clf | 84db64ad8923c3c71532d9c8ebcfa618fe440aed | [
"MIT"
] | 1 | 2022-03-07T12:15:57.000Z | 2022-03-07T12:15:57.000Z | utils/send_data.py | e0xextazy/dog_breeds_clf | 84db64ad8923c3c71532d9c8ebcfa618fe440aed | [
"MIT"
] | 1 | 2022-01-31T13:07:02.000Z | 2022-01-31T13:07:02.000Z | utils/send_data.py | e0xextazy/dog_breeds_clf | 84db64ad8923c3c71532d9c8ebcfa618fe440aed | [
"MIT"
] | null | null | null | import requests
image = {'image': open('data/test_photo.jpeg', 'rb').read()}
r1 = requests.get("http://0.0.0.0:5000/")
print(r1.text)
r2 = requests.post("http://localhost:5000/get_prob", files=image)
print(r2.text) # "Male" or "Female" | 26.444444 | 65 | 0.672269 | 39 | 238 | 4.051282 | 0.641026 | 0.037975 | 0.037975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.092437 | 238 | 9 | 66 | 26.444444 | 0.657407 | 0.07563 | 0 | 0 | 0 | 0 | 0.351598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6a32ba2f19c0548bf763adf19d236e7157f584b | 636 | py | Python | gitvier/common.py | MasterOdin/gitvier | af886c599e605575b04ba00805e6541bfe5524ce | [
"MIT"
] | 2 | 2017-05-13T22:37:50.000Z | 2018-09-08T18:56:16.000Z | gitvier/common.py | MasterOdin/gitvier | af886c599e605575b04ba00805e6541bfe5524ce | [
"MIT"
] | null | null | null | gitvier/common.py | MasterOdin/gitvier | af886c599e605575b04ba00805e6541bfe5524ce | [
"MIT"
] | null | null | null | import subprocess
def get_input(question, default=""):
add = "[{}] ".format(default) if default != "" else ""
user = input("{}: {}".format(question, add)).strip()
if user == "":
user = default
return user
def get_yes(question, yes=False):
user = input("{}: [{}] ".format(question, 'yes' i... | 25.44 | 94 | 0.605346 | 79 | 636 | 4.860759 | 0.43038 | 0.03125 | 0.078125 | 0.119792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001984 | 0.207547 | 636 | 25 | 95 | 25.44 | 0.757937 | 0 | 0 | 0 | 0 | 0 | 0.048666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0 | 0.470588 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b6a45b8f0ca65dfdec5d6bb587a3f4b7cd91df23 | 300 | py | Python | gsem/config.py | andriykohut/gsem | 9122f558f99372fc7df7e10b5047a262fabb1c1b | [
"MIT"
] | 13 | 2015-12-25T21:39:35.000Z | 2021-03-06T21:49:59.000Z | gsem/config.py | andriykohut/gsem | 9122f558f99372fc7df7e10b5047a262fabb1c1b | [
"MIT"
] | 3 | 2018-02-01T11:08:38.000Z | 2021-03-06T21:33:43.000Z | gsem/config.py | andriykohut/gsem | 9122f558f99372fc7df7e10b5047a262fabb1c1b | [
"MIT"
] | 2 | 2016-01-10T00:48:00.000Z | 2018-04-16T13:51:48.000Z | import os
from gsem.utils import gnome_shell_version
EXTENSION_DIR = os.path.expanduser("~/.local/share/gnome-shell/extensions")
GNOME_SHELL_VERSION = gnome_shell_version()
API_ROOT = "https://extensions.gnome.org"
API_DETAIL = f"{API_ROOT}/ajax/detail"
API_SEARCH = f"{API_ROOT}/extension-query"
| 27.272727 | 75 | 0.786667 | 45 | 300 | 4.977778 | 0.533333 | 0.178571 | 0.227679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 300 | 10 | 76 | 30 | 0.811594 | 0 | 0 | 0 | 0 | 0 | 0.376667 | 0.283333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
b6ac9900e339e7147f1f05ab232f3f408838584a | 1,138 | py | Python | setup.py | typemytype/defcon | 18dc8c22a1cf84c95f4f4e4f7bb6f033a062021c | [
"MIT"
] | null | null | null | setup.py | typemytype/defcon | 18dc8c22a1cf84c95f4f4e4f7bb6f033a062021c | [
"MIT"
] | null | null | null | setup.py | typemytype/defcon | 18dc8c22a1cf84c95f4f4e4f7bb6f033a062021c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
from distutils.core import setup
try:
import fontTools
except:
print "*** Warning: defcon requires FontTools, see:"
print " fonttools.sf.net"
try:
import robofab
except:
print "*** Warning: defcon requires RoboFab, see:"
print " robofab.com"
if "sdist" ... | 22.313725 | 71 | 0.625659 | 133 | 1,138 | 5.338346 | 0.586466 | 0.025352 | 0.050704 | 0.067606 | 0.090141 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002296 | 0.234622 | 1,138 | 50 | 72 | 22.76 | 0.812859 | 0.052724 | 0 | 0.153846 | 0 | 0 | 0.321229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.179487 | null | null | 0.102564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6b068cc47c600556f40af3a26c6dae2636bcc37 | 647 | py | Python | setup.py | benlindsay/sim-tree | 87e9d4cf9bd5c704e28b4decaaf41e901a375e05 | [
"MIT"
] | null | null | null | setup.py | benlindsay/sim-tree | 87e9d4cf9bd5c704e28b4decaaf41e901a375e05 | [
"MIT"
] | null | null | null | setup.py | benlindsay/sim-tree | 87e9d4cf9bd5c704e28b4decaaf41e901a375e05 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017 Ben Lindsay <benjlindsay@gmail.com>
from distutils.core import setup
setup(
name = 'sim-tree',
packages = ['sim_tree'], # this must be the same as the name above
install_requires = ['os', 'pandas', 'time', 'string'],
version = '0.6',
descri... | 32.35 | 77 | 0.676971 | 85 | 647 | 5.105882 | 0.729412 | 0.064516 | 0.087558 | 0.078341 | 0.156682 | 0.156682 | 0.156682 | 0 | 0 | 0 | 0 | 0.016393 | 0.151468 | 647 | 19 | 78 | 34.052632 | 0.774135 | 0.211747 | 0 | 0 | 0 | 0.071429 | 0.471287 | 0.041584 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6b2e154f2df7215ec322f8a6de209e930ee2c22 | 6,381 | py | Python | atx/record/scene_detector.py | jamjven/ATX | 09571aa2745fc9c3583b17c466869db5b86bf5f5 | [
"Apache-2.0"
] | 1,132 | 2017-07-21T05:08:56.000Z | 2022-03-23T01:29:00.000Z | atx/record/scene_detector.py | jamjven/ATX | 09571aa2745fc9c3583b17c466869db5b86bf5f5 | [
"Apache-2.0"
] | 74 | 2017-07-21T06:00:32.000Z | 2019-01-25T05:10:20.000Z | atx/record/scene_detector.py | jamjven/ATX | 09571aa2745fc9c3583b17c466869db5b86bf5f5 | [
"Apache-2.0"
] | 277 | 2017-07-28T07:23:54.000Z | 2022-03-22T08:39:08.000Z | #-*- encoding: utf-8 -*-
import os
import cv2
import yaml
import numpy as np
from collections import defaultdict
def find_match(img, tmpl, rect=None, mask=None):
if rect is not None:
h, w = img.shape[:2]
x, y, x1, y1 = rect
if x1 > w or y1 > h:
return 0, None
... | 31.905 | 83 | 0.484093 | 813 | 6,381 | 3.725707 | 0.185732 | 0.055464 | 0.058105 | 0.005943 | 0.11522 | 0.056124 | 0.02245 | 0 | 0 | 0 | 0 | 0.032283 | 0.393199 | 6,381 | 200 | 84 | 31.905 | 0.75 | 0.074283 | 0 | 0.136364 | 0 | 0 | 0.014968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032468 | null | null | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fca9bb98f297faa95108ffecfb87490d55fc501c | 1,225 | py | Python | jwt_devices/middleware.py | poxip/drf-jwt-devices | 5b4606403787c22bb02e13129d9daa399bbc98fa | [
"MIT"
] | 13 | 2017-08-06T23:20:26.000Z | 2019-07-15T14:31:17.000Z | jwt_devices/middleware.py | poxip/drf-jwt-devices | 5b4606403787c22bb02e13129d9daa399bbc98fa | [
"MIT"
] | 5 | 2017-08-03T11:35:52.000Z | 2018-10-15T16:31:49.000Z | jwt_devices/middleware.py | poxip/drf-jwt-devices | 5b4606403787c22bb02e13129d9daa399bbc98fa | [
"MIT"
] | 2 | 2021-06-15T10:55:43.000Z | 2021-07-31T08:32:46.000Z | from django.http.response import JsonResponse
from django.utils.translation import ugettext_lazy as _
from rest_framework import status
from jwt_devices import views
from jwt_devices.settings import api_settings
class PermittedHeadersMiddleware(object):
"""
Middleware used to disallow sending the permanent_t... | 40.833333 | 157 | 0.716735 | 155 | 1,225 | 5.4 | 0.496774 | 0.117085 | 0.071685 | 0.054958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003115 | 0.213878 | 1,225 | 29 | 158 | 42.241379 | 0.866044 | 0.169796 | 0 | 0 | 0 | 0 | 0.10331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.263158 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fcab3f936e7f14022faedec7de43a032c29ea746 | 5,172 | py | Python | main/PythonTools/LoewnerRunFactory.py | ucapdak/loewner | a77077691ade8c37c5e5757195e1be42d17c9ada | [
"MIT"
] | null | null | null | main/PythonTools/LoewnerRunFactory.py | ucapdak/loewner | a77077691ade8c37c5e5757195e1be42d17c9ada | [
"MIT"
] | 1 | 2017-03-14T18:44:15.000Z | 2017-06-06T10:06:35.000Z | main/PythonTools/LoewnerRunFactory.py | ucapdak/loewner | a77077691ade8c37c5e5757195e1be42d17c9ada | [
"MIT"
] | 1 | 2020-12-24T18:53:29.000Z | 2020-12-24T18:53:29.000Z | from Constants import CONST_IDX, LINR_IDX, KAPPA_IDX, CALPHA_IDX, SQRTPLUS_IDX, EXACT_CUBIC_CONSTANT, STANDARD_IDXS, CUBIC_EXACT_IDXS, QUADRATIC_FORWARD_EXACT_IDXS, NOTORIGIN_IDXS
from LoewnerRun import LoewnerRun, ConstantLoewnerRun, LinearLoewnerRun, KappaLoewnerRun, CAlphaLoewnerRun, SqrtTPlusOneLoewnerRun
class Lo... | 46.178571 | 179 | 0.722931 | 721 | 5,172 | 4.961165 | 0.156727 | 0.061504 | 0.047526 | 0.049203 | 0.497624 | 0.482527 | 0.426614 | 0.393626 | 0.347498 | 0.330445 | 0 | 0.001476 | 0.21423 | 5,172 | 111 | 180 | 46.594595 | 0.878691 | 0.208043 | 0 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.032258 | 0.112903 | 0.435484 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fcad720ecde144fc0935bb1538131de8553bd90f | 4,035 | py | Python | bitcoin/exchange.py | darbik/work | 7f5640822fc5bbbd4033385d6377878b22785cb2 | [
"MIT"
] | null | null | null | bitcoin/exchange.py | darbik/work | 7f5640822fc5bbbd4033385d6377878b22785cb2 | [
"MIT"
] | 3 | 2016-08-04T18:12:05.000Z | 2016-08-09T16:55:09.000Z | bitcoin/exchange.py | darbik/bitcoin | 7f5640822fc5bbbd4033385d6377878b22785cb2 | [
"MIT"
] | null | null | null | def buy_bitcoin(price):
amount = int(raw_input("How much do you want to buy?"))
if amount > 500 or amount < 5:
while amount > 500 or amount < 5:
amount = int(raw_input("Sorry please try another amount between $5 and $500."))
amount = ('buy', amount)
return amount
def sell... | 22.416667 | 173 | 0.455266 | 369 | 4,035 | 4.945799 | 0.219512 | 0.065753 | 0.030137 | 0.03726 | 0.398356 | 0.31726 | 0.232877 | 0.168767 | 0.168767 | 0.168767 | 0 | 0.045666 | 0.468154 | 4,035 | 179 | 174 | 22.541899 | 0.804753 | 0 | 0 | 0.381443 | 0 | 0.010309 | 0.09767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.041237 | 0 | 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 |
fcade8daf2655565263b7d04ebae189c9e7d98f2 | 724 | py | Python | libraryproject/profiles/forms.py | elotgamu/libraryproject | ec7159e0efde63e7c66318f562498e0437a365ef | [
"MIT"
] | null | null | null | libraryproject/profiles/forms.py | elotgamu/libraryproject | ec7159e0efde63e7c66318f562498e0437a365ef | [
"MIT"
] | null | null | null | libraryproject/profiles/forms.py | elotgamu/libraryproject | ec7159e0efde63e7c66318f562498e0437a365ef | [
"MIT"
] | null | null | null | from django import forms
from .models import Visitor, Student, Librarian
class VisitorsForm(forms.ModelForm):
class Meta:
model = Visitor
fields = ('address',
'phone',
'id_card'
)
class StudentForm(forms.ModelForm):
class Meta:
... | 20.111111 | 47 | 0.444751 | 54 | 724 | 5.87037 | 0.444444 | 0.132492 | 0.179811 | 0.217666 | 0.416404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.46547 | 724 | 35 | 48 | 20.685714 | 0.819121 | 0 | 0 | 0.384615 | 0 | 0 | 0.118785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 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 |
fcaf8f1ab2a90669b04cf06ed91cdd32bb842b18 | 410 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/waffle_utils/testutils.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/waffle_utils/testutils.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/waffle_utils/testutils.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | """
Test utilities for waffle utilities.
"""
# Can be used with FilteredQueryCountMixin.assertNumQueries() to blacklist
# waffle tables. For example:
# QUERY_COUNT_TABLE_BLACKLIST = WAFFLE_TABLES
# with self.assertNumQueries(6, table_blacklist=QUERY_COUNT_TABLE_BLACKLIST):
WAFFLE_TABLES = [
"waffle_utils_waffl... | 27.333333 | 79 | 0.768293 | 44 | 410 | 6.840909 | 0.545455 | 0.149502 | 0.209302 | 0.159468 | 0.239203 | 0.239203 | 0 | 0 | 0 | 0 | 0 | 0.002833 | 0.139024 | 410 | 14 | 80 | 29.285714 | 0.849858 | 0.639024 | 0 | 0 | 0 | 0 | 0.576642 | 0.306569 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
fcb4a58c70510e6451c6bef5ea9369e7e949e542 | 2,598 | py | Python | services/gps/NmeaSerialGps.py | robisen1/AndroidWifiCracker | 10c966829237c48159d847b6c54889915415e260 | [
"MIT"
] | 19 | 2015-09-07T12:08:08.000Z | 2022-03-31T13:03:08.000Z | services/gps/NmeaSerialGps.py | robisen1/AndroidWifiCracker | 10c966829237c48159d847b6c54889915415e260 | [
"MIT"
] | null | null | null | services/gps/NmeaSerialGps.py | robisen1/AndroidWifiCracker | 10c966829237c48159d847b6c54889915415e260 | [
"MIT"
] | 7 | 2015-04-05T16:13:42.000Z | 2021-03-28T01:37:46.000Z | #!/usr/bin/env python
from serial import Serial
from threading import Thread
import time
from NmeaEvents import NmeaEventSource
import NmeaParser
import NmeaSentences
class NmeaSerialGps(NmeaEventSource):
"""A NMEA GPS device that is connected via a serial connection"""
def __init__(self, port, baudrate ... | 36.591549 | 79 | 0.576212 | 265 | 2,598 | 5.513208 | 0.411321 | 0.030801 | 0.026694 | 0.023272 | 0.071184 | 0.071184 | 0.071184 | 0.071184 | 0.071184 | 0 | 0 | 0.005412 | 0.359892 | 2,598 | 70 | 80 | 37.114286 | 0.873121 | 0.124711 | 0 | 0.057143 | 0 | 0 | 0.011841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.171429 | 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 |
fcb962cbbd174cf247b234b1821023ace21246e4 | 1,417 | py | Python | util/fung_metrics.py | eliagbayani/local_reference_taxonomy | 5bdb2c6e3b5b158bee72a9eade64a595d1e595fb | [
"BSD-2-Clause"
] | 8 | 2017-05-20T07:53:09.000Z | 2021-08-16T03:30:59.000Z | util/fung_metrics.py | eliagbayani/local_reference_taxonomy | 5bdb2c6e3b5b158bee72a9eade64a595d1e595fb | [
"BSD-2-Clause"
] | 257 | 2015-01-11T12:05:12.000Z | 2021-11-04T17:26:02.000Z | util/fung_metrics.py | eliagbayani/local_reference_taxonomy | 5bdb2c6e3b5b158bee72a9eade64a595d1e595fb | [
"BSD-2-Clause"
] | 4 | 2015-10-23T13:45:23.000Z | 2021-03-12T17:28:53.000Z | from org.opentreeoflife.taxa import Taxonomy
"""
Usage:
from org.opentreeoflife.taxa import Taxonomy
ott = Taxonomy.getTaxonomy('tax/ott2.8/')
import fung_metrics
fung = ott.select('Fungi')
fung.analyze()
fung_metrics.doit(fung)
"""
def doit(fung):
internal = 0
tips = 0
species = 0
fungorum = 0
n... | 28.34 | 135 | 0.522936 | 167 | 1,417 | 4.42515 | 0.383234 | 0.032476 | 0.028417 | 0.067659 | 0.105548 | 0.105548 | 0 | 0 | 0 | 0 | 0 | 0.023359 | 0.365561 | 1,417 | 49 | 136 | 28.918367 | 0.798665 | 0 | 0 | 0.055556 | 0 | 0.027778 | 0.21074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027778 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fcbcbd0eae32e7c990746b3b1f64311d71942b7f | 710 | py | Python | anime/migrations/0004_auto_20210812_1612.py | AniLite/API-v1.2 | 261625eb5918707f1a7ce74ae87b4db29fc002cc | [
"MIT"
] | 2 | 2021-09-29T17:37:58.000Z | 2021-09-29T18:10:14.000Z | anime/migrations/0004_auto_20210812_1612.py | AniLite/AniLite-API-v1.2 | 261625eb5918707f1a7ce74ae87b4db29fc002cc | [
"MIT"
] | null | null | null | anime/migrations/0004_auto_20210812_1612.py | AniLite/AniLite-API-v1.2 | 261625eb5918707f1a7ce74ae87b4db29fc002cc | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-12 10:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('anime', '0003_anime_episode_summary'),
]
operations = [
migrations.AlterModelOptions(
name='genre',
options={'orderi... | 25.357143 | 73 | 0.569014 | 72 | 710 | 5.486111 | 0.597222 | 0.091139 | 0.116456 | 0.136709 | 0.450633 | 0.450633 | 0.268354 | 0.268354 | 0.268354 | 0.268354 | 0 | 0.05071 | 0.305634 | 710 | 27 | 74 | 26.296296 | 0.750507 | 0.06338 | 0 | 0.428571 | 1 | 0 | 0.122172 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 0 | 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 |
fcbf42fb90f69e57e4d26b309466e99fc23519a4 | 2,905 | py | Python | frocket/common/tasks/registration.py | DynamicYieldProjects/funnel-rocket | 70963fddc0881cebdc6da1af2654d412f95d660c | [
"Apache-2.0"
] | 56 | 2021-04-04T08:15:33.000Z | 2022-03-14T06:31:20.000Z | frocket/common/tasks/registration.py | DynamicYieldProjects/funnel-rocket | 70963fddc0881cebdc6da1af2654d412f95d660c | [
"Apache-2.0"
] | 19 | 2021-04-01T20:35:48.000Z | 2022-03-30T22:07:27.000Z | frocket/common/tasks/registration.py | DynamicYieldProjects/funnel-rocket | 70963fddc0881cebdc6da1af2654d412f95d660c | [
"Apache-2.0"
] | 2 | 2021-07-14T13:47:00.000Z | 2021-08-12T07:58:32.000Z | """
Task request/response classes for the registration job (discovering, validating and storing metadata for a dataset)
"""
# Copyright 2021 The Funnel Rocket Maintainers
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may ... | 38.223684 | 118 | 0.787952 | 367 | 2,905 | 6.13079 | 0.468665 | 0.026667 | 0.042222 | 0.053333 | 0.029333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003245 | 0.151463 | 2,905 | 75 | 119 | 38.733333 | 0.909533 | 0.440964 | 0 | 0.268293 | 0 | 0 | 0.005653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.146341 | 0 | 0.756098 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fcc010f6408ee2f22733ece3148ba8c1bb9f94bb | 951 | py | Python | testing/main.py | igit-cn/edgex-ui-go | 6924cde71a95163c870ff6223245d33e8a78190f | [
"Apache-2.0"
] | null | null | null | testing/main.py | igit-cn/edgex-ui-go | 6924cde71a95163c870ff6223245d33e8a78190f | [
"Apache-2.0"
] | null | null | null | testing/main.py | igit-cn/edgex-ui-go | 6924cde71a95163c870ff6223245d33e8a78190f | [
"Apache-2.0"
] | null | null | null | from pages.driver import Driver
from pages.login import LoginPage
from pages.addNewDevice import AddNewDevice
from pages.devicesvc import DeviceService
from pages.appsvc import AppService
from pages.scheduler import Scheduler
from pages.notification import Notification
from pages.config import Config
import time
if __... | 22.116279 | 47 | 0.679285 | 111 | 951 | 5.747748 | 0.342342 | 0.112853 | 0.062696 | 0.037618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009198 | 0.19979 | 951 | 42 | 48 | 22.642857 | 0.829172 | 0.324921 | 0 | 0.111111 | 0 | 0 | 0.067093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
fcc84a8d0cd5a4695d2be8859e03d484c56a6668 | 689 | py | Python | NewsPaperD7(final)/NewsPaper/News/migrations/0003_auto_20210415_2224.py | GregTMJ/django-files | dfd2c8da596522b77fb3dfc8089f0d287a94d53b | [
"MIT"
] | 1 | 2021-05-29T21:17:56.000Z | 2021-05-29T21:17:56.000Z | NewsPaperD6/NewsPaper/News/migrations/0003_auto_20210415_2224.py | GregTMJ/django-files | dfd2c8da596522b77fb3dfc8089f0d287a94d53b | [
"MIT"
] | null | null | null | NewsPaperD6/NewsPaper/News/migrations/0003_auto_20210415_2224.py | GregTMJ/django-files | dfd2c8da596522b77fb3dfc8089f0d287a94d53b | [
"MIT"
] | 1 | 2021-06-30T12:43:39.000Z | 2021-06-30T12:43:39.000Z | # Generated by Django 3.2 on 2021-04-15 19:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('News', '0002_auto_20210415_2208'),
]
operations = [
migrations.RemoveField(
model_name='post',
... | 24.607143 | 112 | 0.590711 | 69 | 689 | 5.797101 | 0.623188 | 0.06 | 0.07 | 0.11 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063786 | 0.29463 | 689 | 27 | 113 | 25.518519 | 0.759259 | 0.062409 | 0 | 0.333333 | 1 | 0 | 0.118012 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 |
fccb05c00492072b8352abe0382e1a16422e555d | 410 | py | Python | Dataset/Leetcode/train/62/553.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/62/553.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/62/553.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, m: int, n: int) -> int:
ans = [[1 for _ in range(m)] for _ in range(n)]
for i in range(1,m):
for j in range(1,n):
ans[j][i] = ans[j][i-1] + ans[j-1][i]
return ans[-1][-1]
undefined
for (i = 0; i < document.getElementsByTagName("code"... | 31.538462 | 139 | 0.541463 | 64 | 410 | 3.4375 | 0.390625 | 0.127273 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026756 | 0.270732 | 410 | 12 | 140 | 34.166667 | 0.70903 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fcd0852d6bcb8a1a031b96b0e22d47eb985c43a0 | 800 | py | Python | budgetee-server/src/common/helper.py | SPQE21-22/BSPQ22-E2 | dbe8363bcd9356a962653929f7604f8d248c76dd | [
"Apache-2.0"
] | null | null | null | budgetee-server/src/common/helper.py | SPQE21-22/BSPQ22-E2 | dbe8363bcd9356a962653929f7604f8d248c76dd | [
"Apache-2.0"
] | null | null | null | budgetee-server/src/common/helper.py | SPQE21-22/BSPQ22-E2 | dbe8363bcd9356a962653929f7604f8d248c76dd | [
"Apache-2.0"
] | null | null | null | """! @package common"""
import re
from uuid import UUID
under_pat = re.compile(r'_([a-z])')
def camelize(name):
"""! It gets a string with _ and it converts it into camelized
nombre_variable => nombreVariable
@param variable string
@return variable camelized
"""
return under_pat.sub(lambda x: ... | 23.529412 | 66 | 0.625 | 116 | 800 | 4.241379 | 0.465517 | 0.042683 | 0.03252 | 0.052846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006803 | 0.265 | 800 | 34 | 67 | 23.529412 | 0.829932 | 0.4025 | 0 | 0 | 0 | 0 | 0.019465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fcd214c89ef5f4b0bef92c03078b14eb6fc4bd06 | 1,511 | py | Python | bin/snv_filter_1000genome.py | ChiLoveChuan/iTuNES-dev | de45fc26f7e98a121d0205d34d5e54cd9e710164 | [
"MIT"
] | 1 | 2018-11-21T06:09:14.000Z | 2018-11-21T06:09:14.000Z | bin/snv_filter_1000genome.py | XIAOCHIZI/iTuNES-dev | de45fc26f7e98a121d0205d34d5e54cd9e710164 | [
"MIT"
] | null | null | null | bin/snv_filter_1000genome.py | XIAOCHIZI/iTuNES-dev | de45fc26f7e98a121d0205d34d5e54cd9e710164 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import sys,getopt,os
import re
#####prepare fasta format input file for netMHC######
opts,args=getopt.getopt(sys.argv[1:],"hi:g:o:s:",["input_vcf_file","input_snv_1000G_file","out_dir","sample_id"])
input_vcf_file=""
input_snv_1000G_file =""
out_dir=""
sample_id=""
USAGE='''
This... | 24.770492 | 113 | 0.690933 | 258 | 1,511 | 3.79845 | 0.321705 | 0.073469 | 0.110204 | 0.104082 | 0.329592 | 0.138776 | 0.138776 | 0.087755 | 0.087755 | 0.087755 | 0 | 0.041085 | 0.146261 | 1,511 | 60 | 114 | 25.183333 | 0.718605 | 0.037062 | 0 | 0.2 | 0 | 0.02 | 0.356994 | 0.059847 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | 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 |
fcd2aec0d959a0bdb1d6ec9a49dce7ffb53486c1 | 1,589 | py | Python | config.py | SdeWit/stereotypes-cs | d830d2362be251537abbfd08d17ea120da4e6eb2 | [
"MIT"
] | 5 | 2020-06-30T09:14:52.000Z | 2020-10-14T13:08:27.000Z | config.py | SdeWit/stereotypes-cs | d830d2362be251537abbfd08d17ea120da4e6eb2 | [
"MIT"
] | null | null | null | config.py | SdeWit/stereotypes-cs | d830d2362be251537abbfd08d17ea120da4e6eb2 | [
"MIT"
] | 3 | 2020-06-30T09:14:59.000Z | 2020-09-22T19:07:49.000Z | # pylint: disable=too-few-public-methods
"""
Module with different configuration options for the flask application
"""
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
"""
Parent class for different configurations.
Defines default values for dependencies.
"""
D... | 24.828125 | 77 | 0.697294 | 184 | 1,589 | 5.842391 | 0.407609 | 0.050233 | 0.055814 | 0.086512 | 0.150698 | 0.072558 | 0 | 0 | 0 | 0 | 0 | 0.017174 | 0.193833 | 1,589 | 64 | 77 | 24.828125 | 0.822014 | 0.219635 | 0 | 0.129032 | 0 | 0 | 0.210572 | 0.152513 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.032258 | 0.032258 | 0 | 0.967742 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fce2671a2e81850ed9888ca3e074f1ae92c30e13 | 1,833 | py | Python | scripts/clean_data.py | alvesmatheus/fala-camarada | 47015fe95422d5f71c279e47edacdd31ea3f71b8 | [
"MIT"
] | 7 | 2021-02-11T20:36:16.000Z | 2021-02-12T17:22:05.000Z | scripts/clean_data.py | alvesmatheus/fala-camarada | 47015fe95422d5f71c279e47edacdd31ea3f71b8 | [
"MIT"
] | null | null | null | scripts/clean_data.py | alvesmatheus/fala-camarada | 47015fe95422d5f71c279e47edacdd31ea3f71b8 | [
"MIT"
] | null | null | null | import os
import re
import pandas as pd
RAW_DATA_DIR_PATH = 'data/raw'
READY_DATA_DIR_PATH = 'data/ready'
RAW_COMMITTEE_SCHEDULE_PATH = 'data/raw/agenda_comissoes.csv'
READY_COMMITTEE_SCHEDULE_PATH = 'data/ready/metadados_transcricoes.csv'
TARGET_YEARS = [year for year in range(1995, 2022)]
def fix_committee_sche... | 26.565217 | 77 | 0.684124 | 234 | 1,833 | 4.995727 | 0.277778 | 0.203593 | 0.065868 | 0.068435 | 0.265184 | 0.042772 | 0.042772 | 0 | 0 | 0 | 0 | 0.005491 | 0.205128 | 1,833 | 68 | 78 | 26.955882 | 0.796843 | 0 | 0 | 0.133333 | 0 | 0 | 0.22695 | 0.120567 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fce69c53bb8e1691601233851a9e9143d4c43d1a | 1,214 | py | Python | apis/utils/constants.py | kothiyayogesh11/yk11_api | f1bfdf9e642277e71761af7ae8f2f9399bd30282 | [
"Apache-2.0"
] | null | null | null | apis/utils/constants.py | kothiyayogesh11/yk11_api | f1bfdf9e642277e71761af7ae8f2f9399bd30282 | [
"Apache-2.0"
] | 1 | 2021-06-02T01:09:17.000Z | 2021-06-02T01:09:17.000Z | apis/utils/constants.py | kothiyayogesh11/yk11_api | f1bfdf9e642277e71761af7ae8f2f9399bd30282 | [
"Apache-2.0"
] | null | null | null | # User related settings
USER_TYPE = "Vendor"
# Email Settings
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 465
MAIL_USE_TLS = False
MAIL_USE_SSL = True
MAIL_USERNAME = 'yogesh.itechnotion@gmail.com'
MAIL_PASSWORD = 'yk11@itech'
# Server URLS
NOTIFACTION_CLIENT = "http://api.notifications.wellnessta.in/api/v1/notificat... | 31.947368 | 84 | 0.711697 | 151 | 1,214 | 5.516556 | 0.450331 | 0.030012 | 0.054022 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025341 | 0.15486 | 1,214 | 37 | 85 | 32.810811 | 0.78655 | 0.162273 | 0 | 0 | 0 | 0 | 0.469246 | 0.094246 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fcefbdd76e9e19995dc8217e3c24bb478d018cfb | 1,214 | py | Python | src/niweb/apps/noclook/migrations/0009_auto_20190902_0759.py | SUNET/ni | f652e230524346bf0801cdf8bbb6ee63f4985cc2 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/niweb/apps/noclook/migrations/0009_auto_20190902_0759.py | SUNET/ni | f652e230524346bf0801cdf8bbb6ee63f4985cc2 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2019-07-24T12:41:11.000Z | 2020-03-31T10:10:04.000Z | src/niweb/apps/noclook/migrations/0009_auto_20190902_0759.py | SUNET/ni | f652e230524346bf0801cdf8bbb6ee63f4985cc2 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-02-25T14:58:20.000Z | 2019-02-25T14:58:20.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.21 on 2019-09-02 07:59
from __future__ import unicode_literals
from django.db import migrations
import django.db.models.deletion
from apps.noclook.models import DEFAULT_ROLEGROUP_NAME, DEFAULT_ROLE_KEY, DEFAULT_ROLES
def init_default_roles(Role):
# and then get ... | 26.977778 | 87 | 0.660626 | 152 | 1,214 | 5.078947 | 0.480263 | 0.07772 | 0.041451 | 0.051813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041485 | 0.24547 | 1,214 | 44 | 88 | 27.590909 | 0.80131 | 0.14168 | 0 | 0.111111 | 1 | 0 | 0.086789 | 0.040501 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.037037 | 0.148148 | 0 | 0.37037 | 0 | 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 |
fcf1f14d4b25b9e75eb1bb7c06c78d50b0cdfffd | 22,503 | py | Python | 03a_sec-dsrg/DSRG.py | lyndonchan/wsss-analysis | 75d534894a1c9e033c43346d63de27d83c95cd1e | [
"MIT"
] | 47 | 2020-01-21T23:30:28.000Z | 2022-02-12T05:58:17.000Z | 03_sec-dsrg/DSRG.py | EassonY/wsss-analysis | 5b8bdc4e948b45785c1640273ca995001b81e4d7 | [
"MIT"
] | 3 | 2020-04-18T13:24:23.000Z | 2022-02-07T04:01:21.000Z | 03_sec-dsrg/DSRG.py | EassonY/wsss-analysis | 5b8bdc4e948b45785c1640273ca995001b81e4d7 | [
"MIT"
] | 12 | 2020-01-22T07:21:21.000Z | 2021-09-29T08:27:38.000Z | import numpy as np
import tensorflow as tf
from lib.crf import crf_inference
from lib.CC_labeling_8 import CC_lab
def single_generate_seed_step(params):
"""Implemented seeded region growing
Parameters
----------
params : 3-tuple of numpy 4D arrays
(tag) : numpy 4D array (size: B x 1 x 1 x C),... | 43.442085 | 197 | 0.560992 | 2,981 | 22,503 | 4.075813 | 0.121436 | 0.047243 | 0.022716 | 0.018436 | 0.46823 | 0.405597 | 0.364774 | 0.341728 | 0.295802 | 0.269794 | 0 | 0.02941 | 0.312492 | 22,503 | 518 | 198 | 43.442085 | 0.75593 | 0.216016 | 0 | 0.298611 | 1 | 0 | 0.07145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059028 | false | 0.003472 | 0.013889 | 0 | 0.128472 | 0 | 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 |
fcfb1781c77080c848f388e3e98a22d907a3d701 | 385 | py | Python | code/kuantum-komputers/randomp python shit.py | SoftwareCornwall/m2m-teams-july-2019 | f2c8aa365110f78d69a78ff89f132eced18b91dc | [
"MIT"
] | null | null | null | code/kuantum-komputers/randomp python shit.py | SoftwareCornwall/m2m-teams-july-2019 | f2c8aa365110f78d69a78ff89f132eced18b91dc | [
"MIT"
] | null | null | null | code/kuantum-komputers/randomp python shit.py | SoftwareCornwall/m2m-teams-july-2019 | f2c8aa365110f78d69a78ff89f132eced18b91dc | [
"MIT"
] | null | null | null | users = ["will", "ok", "roberto", "nou"]
LoggedIn=False
while not LoggedIn:
user = input("Username>> ")
for i in range(len(users)-1):
if user == users[i]:
password = input("Password>> ")
if password == users[i+1]:
print("Correct login details")
Log... | 29.615385 | 46 | 0.514286 | 43 | 385 | 4.604651 | 0.627907 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007843 | 0.337662 | 385 | 12 | 47 | 32.083333 | 0.768627 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1e02067eb6ed0f6679c600571b6d6bee4c6e6e9f | 4,645 | py | Python | tests/test_auth.py | ported-pw/asgi-webdav | 78bf1efcb7658ab3ead92292ff7ca574dfc22641 | [
"MIT"
] | null | null | null | tests/test_auth.py | ported-pw/asgi-webdav | 78bf1efcb7658ab3ead92292ff7ca574dfc22641 | [
"MIT"
] | null | null | null | tests/test_auth.py | ported-pw/asgi-webdav | 78bf1efcb7658ab3ead92292ff7ca574dfc22641 | [
"MIT"
] | null | null | null | from base64 import b64encode
import pytest
from asgi_webdav.constants import DAVPath, DAVUser
from asgi_webdav.config import update_config_from_obj, get_config
from asgi_webdav.auth import DAVPassword, DAVPasswordType, DAVAuth
from asgi_webdav.request import DAVRequest
USERNAME = "username"
PASSWORD = "password"
HAS... | 29.03125 | 96 | 0.66028 | 512 | 4,645 | 5.765625 | 0.197266 | 0.054539 | 0.065041 | 0.092141 | 0.566057 | 0.495596 | 0.495596 | 0.469851 | 0.403794 | 0.357046 | 0 | 0.038098 | 0.203229 | 4,645 | 159 | 97 | 29.213836 | 0.759524 | 0.004952 | 0 | 0.336 | 0 | 0.008 | 0.149664 | 0.06801 | 0 | 0 | 0 | 0 | 0.184 | 1 | 0.032 | false | 0.216 | 0.048 | 0.008 | 0.088 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1e09c23b892a8eb024026e20cf444fcdb3ff9221 | 2,099 | py | Python | efficientdet/test_now.py | Rambledeng/automl | 4c414c0afe253d79da88f45e5f8f39e822c5c7b9 | [
"Apache-2.0"
] | null | null | null | efficientdet/test_now.py | Rambledeng/automl | 4c414c0afe253d79da88f45e5f8f39e822c5c7b9 | [
"Apache-2.0"
] | null | null | null | efficientdet/test_now.py | Rambledeng/automl | 4c414c0afe253d79da88f45e5f8f39e822c5c7b9 | [
"Apache-2.0"
] | null | null | null | import os
import sys
import tensorflow.compat.v1 as tf
import PIL
import os
import wget
def download(m):
if m not in os.listdir():
# !wget https://storage.googleapis.com/cloud-tpu-checkpoints/efficientdet/coco/{m}.tar.gz
dl_url = 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientdet/coco/'+m+'.... | 33.854839 | 126 | 0.704621 | 308 | 2,099 | 4.574675 | 0.405844 | 0.070972 | 0.055358 | 0.029808 | 0.221434 | 0.221434 | 0.1533 | 0.1533 | 0.093683 | 0.093683 | 0 | 0.038484 | 0.170557 | 2,099 | 62 | 127 | 33.854839 | 0.770821 | 0.335398 | 0 | 0.0625 | 0 | 0.03125 | 0.19228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.21875 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e13bde32add46aaaf353333c660d7b01e0f77a6 | 1,320 | py | Python | CommandLineCalculator.py | CoderDuino/CommandLineCalculator | 8357fd36958bf8684b14ee0cf46e40572a860046 | [
"MIT"
] | null | null | null | CommandLineCalculator.py | CoderDuino/CommandLineCalculator | 8357fd36958bf8684b14ee0cf46e40572a860046 | [
"MIT"
] | null | null | null | CommandLineCalculator.py | CoderDuino/CommandLineCalculator | 8357fd36958bf8684b14ee0cf46e40572a860046 | [
"MIT"
] | null | null | null | import time
def is_number(s):
try:
float(s)
return True
except ValueError:
pass
return False
def ValidateInput(equation):
if len(equation) != 3:
return False
if not (is_number(equation[0]) and is_number(equation[2])):
return False
if not equation[1] in... | 24 | 86 | 0.587121 | 157 | 1,320 | 4.917197 | 0.401274 | 0.081606 | 0.110104 | 0.11658 | 0.196891 | 0.196891 | 0.196891 | 0.196891 | 0.196891 | 0.196891 | 0 | 0.02132 | 0.253788 | 1,320 | 54 | 87 | 24.444444 | 0.762437 | 0.054545 | 0 | 0.205128 | 0 | 0 | 0.110932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025641 | 0.025641 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1e2e023b2dd48fb3ef89dd8a0631a28b337f1d90 | 946 | py | Python | main.py | QIN2DIM/armour-email | e3465130599f783b08d2899045ab534234af3166 | [
"Apache-2.0"
] | 6 | 2021-12-16T09:51:18.000Z | 2022-03-23T16:55:14.000Z | main.py | QIN2DIM/armour-email | e3465130599f783b08d2899045ab534234af3166 | [
"Apache-2.0"
] | null | null | null | main.py | QIN2DIM/armour-email | e3465130599f783b08d2899045ab534234af3166 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Time : 2021/12/16 16:28
# Author : QIN2DIM
# Github : https://github.com/QIN2DIM
# Description: SSPanel-Uim 邮箱验证案例
# ==============================================
# TODO [√]用于项目演示的运行实例,(也许)需要使用代理
# ==============================================
# - `anti_email` 表示需要邮箱验证
# - 无标记... | 25.567568 | 59 | 0.514799 | 81 | 946 | 5.839506 | 0.666667 | 0.057082 | 0.10148 | 0.088795 | 0.105708 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021684 | 0.171247 | 946 | 36 | 60 | 26.277778 | 0.579082 | 0.496829 | 0 | 0.125 | 0 | 0 | 0.357298 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e302cdc18ff472ad8f57f3f5e01cf07e3ab6606 | 756 | py | Python | utils/LSL_Tests/SendSphericalData.py | xfleckx/BeMoBI_Tools | 90a6066648a3249e6ea22165609aaaa763e02f05 | [
"MIT"
] | null | null | null | utils/LSL_Tests/SendSphericalData.py | xfleckx/BeMoBI_Tools | 90a6066648a3249e6ea22165609aaaa763e02f05 | [
"MIT"
] | null | null | null | utils/LSL_Tests/SendSphericalData.py | xfleckx/BeMoBI_Tools | 90a6066648a3249e6ea22165609aaaa763e02f05 | [
"MIT"
] | null | null | null | import sys
sys.path.append('./pylsl') # help python find pylsl relative to this example program
from pylsl import StreamInfo, StreamOutlet
import random
import time
import math
#Send spherical coordinats
info = StreamInfo('RandomSpehricalData','3DCoord',3,100,'float32','myuid34234')
# next make an outlet
outlet = St... | 32.869565 | 125 | 0.722222 | 114 | 756 | 4.77193 | 0.587719 | 0.027574 | 0.058824 | 0.055147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029457 | 0.146825 | 756 | 22 | 126 | 34.363636 | 0.813953 | 0.337302 | 0 | 0 | 0 | 0 | 0.167677 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1e30552cc1d40501e268526ae1e0b44c4536c615 | 3,003 | py | Python | dockerfiles/examples/read-bytes-seed/scale-job.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 121 | 2015-11-18T18:15:33.000Z | 2022-03-10T01:55:00.000Z | dockerfiles/examples/read-bytes-seed/scale-job.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 1,415 | 2015-12-23T23:36:04.000Z | 2022-01-07T14:10:09.000Z | dockerfiles/examples/read-bytes-seed/scale-job.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 66 | 2015-12-03T20:38:56.000Z | 2020-07-27T15:28:11.000Z | import argparse
import datetime
import json
import logging
import sys
import os
logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s',
level=logging.DEBUG, stream=sys.stdout)
def run_algorithm(bytes_total, input_file, out_dir):
"""Read the indicated number of bytes from input... | 33.741573 | 106 | 0.648685 | 393 | 3,003 | 4.776081 | 0.300254 | 0.071923 | 0.027704 | 0.033564 | 0.085242 | 0.085242 | 0 | 0 | 0 | 0 | 0 | 0.003059 | 0.238095 | 3,003 | 88 | 107 | 34.125 | 0.817308 | 0.042291 | 0 | 0 | 0 | 0 | 0.193704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.101695 | null | null | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1e3f9404d31bf7954a2755cf4b9bdbc6c4c8b15a | 420 | py | Python | forms/file_metadata_form.py | dvrpc/tmc-uploader | e7aea6c6b2a66031daf7aecf4f264aecf298f347 | [
"MIT"
] | null | null | null | forms/file_metadata_form.py | dvrpc/tmc-uploader | e7aea6c6b2a66031daf7aecf4f264aecf298f347 | [
"MIT"
] | null | null | null | forms/file_metadata_form.py | dvrpc/tmc-uploader | e7aea6c6b2a66031daf7aecf4f264aecf298f347 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, TextField, IntegerField, FloatField
class UpdateMetadataForm(FlaskForm):
title = StringField("Title")
model_id = StringField("model ID")
lat = FloatField("lat")
lng = FloatField("lng")
legs = TextField("legs")
leg_n... | 28 | 81 | 0.709524 | 44 | 420 | 6.704545 | 0.522727 | 0.047458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 420 | 14 | 82 | 30 | 0.855072 | 0 | 0 | 0 | 0 | 0 | 0.109524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 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 |
1e4562284278bfe3830fad363b113dd5fb99e239 | 3,863 | py | Python | src/video_popup.py | OdatNurd/OdatNurdTestPackage | 0aa771e6a2d64224604d42d04ab2f6334320daf8 | [
"MIT"
] | 1 | 2021-07-17T04:01:11.000Z | 2021-07-17T04:01:11.000Z | src/video_popup.py | OdatNurd/OdatNurdTestPackage | 0aa771e6a2d64224604d42d04ab2f6334320daf8 | [
"MIT"
] | 1 | 2020-12-22T11:52:54.000Z | 2020-12-23T07:57:29.000Z | src/video_popup.py | OdatNurd/YouTubeEditor | 0aa771e6a2d64224604d42d04ab2f6334320daf8 | [
"MIT"
] | null | null | null | import sublime
import sublime_plugin
###----------------------------------------------------------------------------
_video_popup = """
<body id="youtubeeditor-video-details">
<style>
body {{
font-family: system;
margin: 0.5rem 1rem;
width: 40em;
}}
h1... | 29.265152 | 117 | 0.493917 | 400 | 3,863 | 4.6675 | 0.33 | 0.042849 | 0.047134 | 0.064274 | 0.243171 | 0.220139 | 0.20782 | 0.178897 | 0.178897 | 0.142475 | 0 | 0.021025 | 0.298214 | 3,863 | 131 | 118 | 29.48855 | 0.666913 | 0.127621 | 0 | 0.349057 | 0 | 0.037736 | 0.793031 | 0.211775 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009434 | false | 0 | 0.018868 | 0 | 0.028302 | 0 | 0 | 0 | 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 |
1e518dd2511cad21975cef20c8255a4b9b3038a7 | 1,780 | py | Python | myprodigy/urls.py | acdh-oeaw/nerdpool | fd03148797e13fb815164da5a6f9a8f27a873cbd | [
"MIT"
] | null | null | null | myprodigy/urls.py | acdh-oeaw/nerdpool | fd03148797e13fb815164da5a6f9a8f27a873cbd | [
"MIT"
] | 3 | 2021-03-30T09:41:55.000Z | 2021-06-10T07:52:29.000Z | myprodigy/urls.py | acdh-oeaw/nerdpool | fd03148797e13fb815164da5a6f9a8f27a873cbd | [
"MIT"
] | null | null | null | # generated by appcreator
from django.conf.urls import url
from . import views, api_views
app_name = 'myprodigy'
urlpatterns = [
url(
r'^annotator/detail/(?P<pk>[0-9]+)$',
views.UserDetailView.as_view(),
name='user_detail'
),
url(
r'^nerdataset/$',
views.NerDataSetLi... | 25.070423 | 46 | 0.553371 | 187 | 1,780 | 5.106952 | 0.256684 | 0.05445 | 0.136126 | 0.036649 | 0.113089 | 0.113089 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.276404 | 1,780 | 70 | 47 | 25.428571 | 0.73059 | 0.012921 | 0 | 0.338235 | 1 | 0 | 0.303134 | 0.131054 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 0 | 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 |
1e52b58bec0d413712cfede059a20a07cdd2bc5f | 1,918 | py | Python | Report2/Code/getDAWNData.py | cvanoort/USDrugUseAnalysis | 394e57e7405793c1572ca3a0ac5d364beb0743a1 | [
"0BSD"
] | null | null | null | Report2/Code/getDAWNData.py | cvanoort/USDrugUseAnalysis | 394e57e7405793c1572ca3a0ac5d364beb0743a1 | [
"0BSD"
] | null | null | null | Report2/Code/getDAWNData.py | cvanoort/USDrugUseAnalysis | 394e57e7405793c1572ca3a0ac5d364beb0743a1 | [
"0BSD"
] | null | null | null | import csv
import gc
# A small function for grabbing data from a list of dictionaries based on a shared key
def countKey(key,listDataDicts):
outDict = {}
for row in listDataDicts:
try:
outDict[row[key]] += 1
except KeyError:
outDict[row[key]] = 1
return outDict
al... | 28.205882 | 92 | 0.60219 | 254 | 1,918 | 4.53937 | 0.464567 | 0.036427 | 0.046834 | 0.052038 | 0.020815 | 0.020815 | 0.020815 | 0.020815 | 0 | 0 | 0 | 0.082163 | 0.25756 | 1,918 | 68 | 93 | 28.205882 | 0.727528 | 0.177268 | 0 | 0 | 0 | 0 | 0.131127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04878 | null | null | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e5e0fd68c06dcd974317e7026b3b6a21cab328e | 4,040 | py | Python | poc/backtest_in_memory.py | alexcwyu/python-trading | a494f602411a3ebfdecae002a16a5ea93fc7a046 | [
"Apache-2.0"
] | 17 | 2016-03-30T21:52:30.000Z | 2021-05-01T18:21:48.000Z | poc/backtest_in_memory.py | ajmal017/python-trading | a494f602411a3ebfdecae002a16a5ea93fc7a046 | [
"Apache-2.0"
] | 2 | 2016-10-04T19:29:05.000Z | 2017-02-01T19:24:39.000Z | poc/backtest_in_memory.py | ajmal017/python-trading | a494f602411a3ebfdecae002a16a5ea93fc7a046 | [
"Apache-2.0"
] | 9 | 2016-04-24T05:05:26.000Z | 2020-05-03T13:01:34.000Z | import math
from datetime import datetime
from datetime import timedelta
import numpy as np
import pandas as pd
from algotrader.config.app import BacktestingConfig
from algotrader.event.market_data import BarSize, BarType
from algotrader.chart.plotter import StrategyPlotter
from algotrader.provider.broker.sim.simulat... | 31.317829 | 116 | 0.62599 | 491 | 4,040 | 4.959267 | 0.350306 | 0.051745 | 0.025873 | 0.01807 | 0.068994 | 0.03039 | 0.03039 | 0.03039 | 0.03039 | 0 | 0 | 0.025393 | 0.259158 | 4,040 | 128 | 117 | 31.5625 | 0.788172 | 0.091584 | 0 | 0 | 0 | 0 | 0.048647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.188235 | null | null | 0.023529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1e6450c806d985055d4ff5867aede80672048d96 | 1,147 | py | Python | setup.py | authomatic/foundation-sphinx-theme | a33f249aefa22106d0e83dd84e869248c7f2de14 | [
"MIT"
] | null | null | null | setup.py | authomatic/foundation-sphinx-theme | a33f249aefa22106d0e83dd84e869248c7f2de14 | [
"MIT"
] | null | null | null | setup.py | authomatic/foundation-sphinx-theme | a33f249aefa22106d0e83dd84e869248c7f2de14 | [
"MIT"
] | 1 | 2021-02-23T11:06:13.000Z | 2021-02-23T11:06:13.000Z | from setuptools import setup, find_packages
setup(
name='foundation-sphinx-theme',
version='0.0.3',
packages=find_packages(),
package_data={'': ['*.txt', '*.rst', '*.html', '*.css', '*.js', '*.conf']},
author='Peter Hudec',
author_email='peterhudec@peterhudec.com',
description='',
long_... | 34.757576 | 79 | 0.604185 | 105 | 1,147 | 6.504762 | 0.666667 | 0.070278 | 0.09224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004515 | 0.22755 | 1,147 | 33 | 80 | 34.757576 | 0.766366 | 0 | 0 | 0 | 0 | 0 | 0.518293 | 0.061847 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.03125 | 0 | 0.03125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1e6470e9090ccc8a84793235dbbb38db8207c9c3 | 1,045 | py | Python | annotation_backend/src/server/migrations/0012_auto_20200813_2200.py | INK-USC/LEAN-LIFE | e3d6debc3e4c41145ef1c03236c4cf57bfd8be7d | [
"MIT"
] | 21 | 2020-09-29T12:45:50.000Z | 2022-03-27T13:11:12.000Z | annotation_backend/src/server/migrations/0012_auto_20200813_2200.py | INK-USC/LEAN-LIFE | e3d6debc3e4c41145ef1c03236c4cf57bfd8be7d | [
"MIT"
] | 3 | 2020-12-03T10:34:54.000Z | 2021-03-29T09:01:05.000Z | annotation_backend/src/server/migrations/0012_auto_20200813_2200.py | INK-USC/LEAN-LIFE | e3d6debc3e4c41145ef1c03236c4cf57bfd8be7d | [
"MIT"
] | 3 | 2021-02-14T08:39:02.000Z | 2021-07-29T02:33:14.000Z | # Generated by Django 2.1.7 on 2020-08-13 22:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('server', '0011_auto_20200721_1516'),
]
operations = [
migrations.AddField(
model_name='namedent... | 34.833333 | 144 | 0.654545 | 109 | 1,045 | 6.146789 | 0.431193 | 0.059701 | 0.083582 | 0.131343 | 0.447761 | 0.343284 | 0.343284 | 0.343284 | 0.343284 | 0.271642 | 0 | 0.038272 | 0.22488 | 1,045 | 29 | 145 | 36.034483 | 0.788889 | 0.043062 | 0 | 0.304348 | 1 | 0 | 0.203407 | 0.086172 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e6a064c02ec4f29c4e9bc955b80007d950c6631 | 5,831 | py | Python | 7_NN_L2_Regularizer_to_Reduce_Overfitting.py | Yazooliu/Ai_Lab_LinuxNN | 4c8a9ed5fa71b224ce694bc76e808cd9556bc5dd | [
"MIT"
] | null | null | null | 7_NN_L2_Regularizer_to_Reduce_Overfitting.py | Yazooliu/Ai_Lab_LinuxNN | 4c8a9ed5fa71b224ce694bc76e808cd9556bc5dd | [
"MIT"
] | null | null | null | 7_NN_L2_Regularizer_to_Reduce_Overfitting.py | Yazooliu/Ai_Lab_LinuxNN | 4c8a9ed5fa71b224ce694bc76e808cd9556bc5dd | [
"MIT"
] | null | null | null | #coding:utf-8
# ----------------------------------------
# 以下将实现正则化对过拟合的缓解过程
# -----------------------------------------
#
# 正则化在损失函数中引入了了模型复杂度的指标,利用给w加权重来弱化训练数据的噪声(一般不正则化参数b)
# loss = loss (y 与 y_) + Regularizer * loss (w)
# loss(y 与 y_) 表示模型中所有参数的损失函数,,如MMSE/交叉熵 , 超参数regularizer 是用来给出参数w在总的Loss中所占有的比例,也就是正则化的权重
# los... | 27.247664 | 98 | 0.626994 | 899 | 5,831 | 3.942158 | 0.290323 | 0.033578 | 0.018059 | 0.011287 | 0.450339 | 0.40886 | 0.370485 | 0.292325 | 0.284989 | 0.26693 | 0 | 0.051298 | 0.167553 | 5,831 | 213 | 99 | 27.375587 | 0.678616 | 0.409192 | 0 | 0.457831 | 0 | 0.012048 | 0.09841 | 0.015002 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036145 | null | null | 0.192771 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1e7a3a9010148a3eb9313a24f4cfd78edf389313 | 640 | py | Python | src/enums/__init__.py | Freonius/tranquillity | bb190b4a8facf643d5018a710100b3ff45d6d640 | [
"MIT"
] | null | null | null | src/enums/__init__.py | Freonius/tranquillity | bb190b4a8facf643d5018a710100b3ff45d6d640 | [
"MIT"
] | 20 | 2021-12-31T15:28:20.000Z | 2022-02-15T18:24:16.000Z | src/enums/__init__.py | Freonius/tranquillity | bb190b4a8facf643d5018a710100b3ff45d6d640 | [
"MIT"
] | null | null | null | from enum import Enum, IntFlag, auto
class ConnType(Enum):
COUCHDB = auto()
ELASTICSEARCH = auto()
MONGO = auto()
SQLITE = auto()
MYSQL = auto()
PGSQL = auto()
DB2 = auto()
MSSQL = auto()
HAZELCAST = auto()
SPRING_CONFIG = auto()
KAFKA = auto()
MQQT = auto()
RABBIT ... | 17.777778 | 36 | 0.528125 | 69 | 640 | 4.884058 | 0.507246 | 0.053412 | 0.083086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002326 | 0.328125 | 640 | 35 | 37 | 18.285714 | 0.781395 | 0 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 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 |
1e85a7c7edb2aa1c317cd2b1439a65b77b84a44a | 11,761 | py | Python | nimbus/fabnet/network.py | fabregas/nimbusfs-node | 7af3ecc14f78526b477ed29fb9e9b9eb972d6b4e | [
"Apache-2.0"
] | null | null | null | nimbus/fabnet/network.py | fabregas/nimbusfs-node | 7af3ecc14f78526b477ed29fb9e9b9eb972d6b4e | [
"Apache-2.0"
] | null | null | null | nimbus/fabnet/network.py | fabregas/nimbusfs-node | 7af3ecc14f78526b477ed29fb9e9b9eb972d6b4e | [
"Apache-2.0"
] | null | null | null | """
Package for interacting on the network at a high level.
"""
import asyncio
import random
import pickle
from .protocol import ManagementProtocol
from .utils import digest, logger, future_list, future_dict
from .storage import ForgetfulStorage
from .node import DHTNode
from .crawling import ValueSpiderCrawl
from .cr... | 34.693215 | 84 | 0.575546 | 1,457 | 11,761 | 4.566232 | 0.205216 | 0.041485 | 0.018939 | 0.019841 | 0.251616 | 0.217496 | 0.181422 | 0.158274 | 0.142041 | 0.135428 | 0 | 0.007027 | 0.334495 | 11,761 | 338 | 85 | 34.795858 | 0.842979 | 0.009863 | 0 | 0.228426 | 0 | 0 | 0.045164 | 0 | 0 | 0 | 0 | 0.005917 | 0 | 0 | null | null | 0 | 0.055838 | 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 |
1e8db2c62466e9bef6d3aaa13c9a31f3c15e831b | 508 | py | Python | dailyQuestion/2020/2020-10/10-07/python/solution_huosu.py | russellgao/algorithm | ad5e724d20a8492b8eba03fc0f24e4ff5964b3ea | [
"Apache-2.0"
] | 3 | 2020-05-18T00:47:18.000Z | 2020-06-08T01:57:13.000Z | dailyQuestion/2020/2020-10/10-07/python/solution_huosu.py | russellgao/algorithm | ad5e724d20a8492b8eba03fc0f24e4ff5964b3ea | [
"Apache-2.0"
] | null | null | null | dailyQuestion/2020/2020-10/10-07/python/solution_huosu.py | russellgao/algorithm | ad5e724d20a8492b8eba03fc0f24e4ff5964b3ea | [
"Apache-2.0"
] | null | null | null | def generateParenthesis(n: int) -> [str]:
result = []
def dfs(S, left, right) :
if len(S) == 2 * n :
result.append("".join(S))
return
if left < n :
S.append("(")
dfs(S, left+1 , right)
S.pop()
if right < left :
S.app... | 23.090909 | 41 | 0.440945 | 60 | 508 | 3.6 | 0.383333 | 0.055556 | 0.111111 | 0.12037 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0.403543 | 508 | 21 | 42 | 24.190476 | 0.693069 | 0 | 0 | 0.1 | 1 | 0 | 0.019685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e8f71bb3b665133a98cf8cd891b0347eec3239a | 583 | py | Python | tests/test_main.py | OriHoch/kvfile | e6fd021e4979cdd4730099958c3c3216179bb357 | [
"MIT"
] | null | null | null | tests/test_main.py | OriHoch/kvfile | e6fd021e4979cdd4730099958c3c3216179bb357 | [
"MIT"
] | null | null | null | tests/test_main.py | OriHoch/kvfile | e6fd021e4979cdd4730099958c3c3216179bb357 | [
"MIT"
] | null | null | null | import datetime
import decimal
def test_sanity():
from kvfile import KVFile
kv = KVFile()
data = dict(
s='value',
i=123,
d=datetime.datetime.fromtimestamp(12325),
n=decimal.Decimal('1234.56'),
ss=set(range(10)),
o=dict(d=decimal.Decimal('1234.58'), n=dat... | 22.423077 | 86 | 0.576329 | 80 | 583 | 4.1875 | 0.45 | 0.023881 | 0.173134 | 0.202985 | 0.095522 | 0.095522 | 0 | 0 | 0 | 0 | 0 | 0.062791 | 0.262436 | 583 | 25 | 87 | 23.32 | 0.716279 | 0 | 0 | 0.105263 | 0 | 0 | 0.03259 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.210526 | 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 |
1e8fd3065d3ad3d1a4ee7e4a03927e8b4f45f2b0 | 1,925 | py | Python | src/main/python/missing_item.py | mohnoor94/ProblemsSolving | fc861a5804c448d76c4785f3c98943a1e9accfd2 | [
"Apache-2.0"
] | 8 | 2018-10-13T05:46:06.000Z | 2021-10-13T10:13:05.000Z | src/main/python/missing_item.py | mohnoor94/ProblemsSolving | fc861a5804c448d76c4785f3c98943a1e9accfd2 | [
"Apache-2.0"
] | null | null | null | src/main/python/missing_item.py | mohnoor94/ProblemsSolving | fc861a5804c448d76c4785f3c98943a1e9accfd2 | [
"Apache-2.0"
] | 1 | 2020-03-31T16:25:55.000Z | 2020-03-31T16:25:55.000Z | """
*** 'Airbnb' interview question ***
Problem statement: https://youtu.be/cdCeU8DJvPM
"""
from numbers import Number
from typing import List
def find_missing1(first: list, second: list) -> Number:
"""
- Time Complexity: O(len(first))
- Space Complexity: O(len(first))
:param first: a list of items
... | 25 | 71 | 0.611948 | 291 | 1,925 | 3.979381 | 0.223368 | 0.062176 | 0.072539 | 0.098446 | 0.646805 | 0.646805 | 0.646805 | 0.646805 | 0.646805 | 0.637306 | 0 | 0.042628 | 0.256623 | 1,925 | 76 | 72 | 25.328947 | 0.766597 | 0.445195 | 0 | 0.08 | 0 | 0 | 0.008547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.08 | 0 | 0.44 | 0.16 | 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 |
1e9125010f3828c1821c2e4303183bf717707abd | 1,148 | py | Python | 2017/day10.py | iKevinY/advent | d160fb711a0a4d671f53cbd61088117e7ff0276a | [
"MIT"
] | 11 | 2019-12-03T06:32:37.000Z | 2021-12-24T12:23:57.000Z | 2017/day10.py | iKevinY/advent | d160fb711a0a4d671f53cbd61088117e7ff0276a | [
"MIT"
] | null | null | null | 2017/day10.py | iKevinY/advent | d160fb711a0a4d671f53cbd61088117e7ff0276a | [
"MIT"
] | 1 | 2019-12-07T06:21:31.000Z | 2019-12-07T06:21:31.000Z | import fileinput
def knot_hash(elems, lengths, pos=0, skip=0):
for l in lengths:
for i in range(l // 2):
x = (pos + i) % len(elems)
y = (pos + l - i - 1) % len(elems)
elems[x], elems[y] = elems[y], elems[x]
pos = pos + l + skip % len(elems)
skip += 1
... | 22.96 | 70 | 0.58101 | 190 | 1,148 | 3.489474 | 0.347368 | 0.060332 | 0.022624 | 0.031674 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055222 | 0.27439 | 1,148 | 49 | 71 | 23.428571 | 0.740696 | 0.087979 | 0 | 0 | 0 | 0 | 0.113353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032258 | null | null | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1e943b3c8f551431ad36bb9d7888a8155553b4ba | 1,667 | py | Python | docs/snippets/ov_auto_batching.py | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 1 | 2022-03-25T10:35:59.000Z | 2022-03-25T10:35:59.000Z | docs/snippets/ov_auto_batching.py | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | null | null | null | docs/snippets/ov_auto_batching.py | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | null | null | null | #include <openvino/runtime/core.hpp>
int main() {
ov::Core core;
auto model = core.read_model("sample.xml");
//! [compile_model]
{
auto compiled_model = core.compile_model(model, "GPU", ov::hint::performance_mode(ov::hint::PerformanceMode::THROUGHPUT));
}
//! [compile_model]
//! [compile_model_no_auto_ba... | 39.690476 | 126 | 0.686863 | 200 | 1,667 | 5.505 | 0.38 | 0.059946 | 0.061762 | 0.076294 | 0.396004 | 0.348774 | 0.348774 | 0.348774 | 0.348774 | 0.348774 | 0 | 0.001484 | 0.191362 | 1,667 | 41 | 127 | 40.658537 | 0.815282 | 0.025795 | 0 | 0.352941 | 0 | 0 | 0.025894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029412 | 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 |
1e95a6bc40a18758f5cff42d90761b1f18a0ec62 | 2,683 | py | Python | bin/start_worker.py | zhiyue/cola | 88a1805fc3e7fb9a88075cc89761a2ab31cb6166 | [
"Apache-2.0"
] | 1 | 2018-02-05T03:13:59.000Z | 2018-02-05T03:13:59.000Z | bin/start_worker.py | 836426094/cola | ab3ba237131aac43ecf8e290b1349a56c7631e8e | [
"Apache-2.0"
] | null | null | null | bin/start_worker.py | 836426094/cola | ab3ba237131aac43ecf8e290b1349a56c7631e8e | [
"Apache-2.0"
] | 1 | 2019-03-09T13:16:44.000Z | 2019-03-09T13:16:44.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Copyright (c) 2013 Qin Xuye <qin@qinxuye.me>
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... | 36.753425 | 87 | 0.621319 | 369 | 2,683 | 4.425474 | 0.428184 | 0.036742 | 0.031231 | 0.033068 | 0.131047 | 0.100429 | 0.04654 | 0.04654 | 0.04654 | 0.04654 | 0 | 0.007466 | 0.251211 | 2,683 | 73 | 88 | 36.753425 | 0.805376 | 0.015654 | 0 | 0.186047 | 0 | 0 | 0.197927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.116279 | null | null | 0.069767 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1e9608a09a5a4b2d88e1b6ef83559100703962fa | 2,751 | py | Python | blog/app/forms.py | shazlycode/testsite-blog | ba1373aecb9a9e8e1d14520663c848e6e9c85f31 | [
"bzip2-1.0.6"
] | 1 | 2019-09-24T14:05:13.000Z | 2019-09-24T14:05:13.000Z | blog/app/forms.py | shazlycode/testsite-blog | ba1373aecb9a9e8e1d14520663c848e6e9c85f31 | [
"bzip2-1.0.6"
] | null | null | null | blog/app/forms.py | shazlycode/testsite-blog | ba1373aecb9a9e8e1d14520663c848e6e9c85f31 | [
"bzip2-1.0.6"
] | null | null | null | from django import forms
from app.models import Post, Comment, Profile
from django.contrib.auth.models import User
class CommentForm(forms.ModelForm):
class Meta:
model = Comment
fields = ('name','email','comment_body' )
class RegisterForm(forms.ModelForm):
... | 31.62069 | 102 | 0.648128 | 307 | 2,751 | 5.710098 | 0.254072 | 0.095836 | 0.06389 | 0.091843 | 0.627496 | 0.527096 | 0.410724 | 0.410724 | 0.350257 | 0.292071 | 0 | 0.014588 | 0.227554 | 2,751 | 87 | 103 | 31.62069 | 0.810353 | 0.158124 | 0 | 0.26 | 0 | 0 | 0.165293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.16 | 0.06 | 0 | 0.64 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1e9ad02333dd182295114f41d94188f5b2a8d148 | 239 | py | Python | InayatBashir/Places/urls.py | muminfarooq190/InayatBashir.in | f172ad2278608b64aeaa577bfc9d9af33d59fe4d | [
"MIT"
] | null | null | null | InayatBashir/Places/urls.py | muminfarooq190/InayatBashir.in | f172ad2278608b64aeaa577bfc9d9af33d59fe4d | [
"MIT"
] | null | null | null | InayatBashir/Places/urls.py | muminfarooq190/InayatBashir.in | f172ad2278608b64aeaa577bfc9d9af33d59fe4d | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = 'places'
urlpatterns = [
path('', views.AllPlacesList.as_view(), name='all_places_list'),
path('places/list/<int:pk>/', views.DetailPlace.as_view(), name='detail_place')
] | 34.142857 | 83 | 0.711297 | 33 | 239 | 4.969697 | 0.606061 | 0.073171 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117155 | 239 | 7 | 84 | 34.142857 | 0.777251 | 0 | 0 | 0 | 0 | 0 | 0.225 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e9d80977546a12367075ba717fd24d2e070c41e | 3,449 | py | Python | newpipe_crash_report_importer/lmtp_server.py | TeamNewPipe/CrashReportImporter | 7562e524a3c2476c59b8e7e26a389656f3d7633e | [
"MIT",
"Unlicense"
] | 9 | 2016-12-08T15:20:57.000Z | 2022-03-16T06:28:14.000Z | newpipe_crash_report_importer/lmtp_server.py | TeamNewPipe/CrashReportImporter | 7562e524a3c2476c59b8e7e26a389656f3d7633e | [
"MIT",
"Unlicense"
] | 8 | 2019-02-24T11:18:55.000Z | 2020-07-05T20:23:23.000Z | newpipe_crash_report_importer/lmtp_server.py | TeamNewPipe/CrashReportImporter | 7562e524a3c2476c59b8e7e26a389656f3d7633e | [
"MIT",
"Unlicense"
] | 5 | 2018-04-12T17:33:59.000Z | 2022-03-16T06:28:16.000Z | import traceback
from email.parser import Parser
import sentry_sdk
from aiosmtpd.controller import Controller
from aiosmtpd.lmtp import LMTP
from aiosmtpd.smtp import Envelope
from . import make_logger
class CustomLMTP(LMTP):
"""
A relatively simple wrapper around the LMTP/SMTP classes that implements some ... | 35.556701 | 119 | 0.679907 | 459 | 3,449 | 5.002179 | 0.466231 | 0.026132 | 0.019164 | 0.026132 | 0.116725 | 0.050523 | 0.031359 | 0 | 0 | 0 | 0 | 0.008371 | 0.23804 | 3,449 | 96 | 120 | 35.927083 | 0.865297 | 0.371702 | 0 | 0 | 0 | 0 | 0.129109 | 0.046689 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155556 | false | 0 | 0.177778 | 0.066667 | 0.577778 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1eb634dcc0e8a9504a8f66be25a7b8232134dfc0 | 472 | py | Python | test/basic/kafka_test/producer.py | KentWangYQ/mongo2es | 8952640e8ac3f2b1aa6845082fce04b7c4f7bd1e | [
"Apache-2.0"
] | 5 | 2018-12-24T10:45:56.000Z | 2019-07-29T07:26:28.000Z | test/basic/kafka_test/producer.py | KentWangYQ/mongo2es | 8952640e8ac3f2b1aa6845082fce04b7c4f7bd1e | [
"Apache-2.0"
] | null | null | null | test/basic/kafka_test/producer.py | KentWangYQ/mongo2es | 8952640e8ac3f2b1aa6845082fce04b7c4f7bd1e | [
"Apache-2.0"
] | 2 | 2019-07-30T06:27:49.000Z | 2021-09-24T08:21:52.000Z | from datetime import datetime
from kafka.errors import KafkaError
from common.kafka.producer import Producer
producer = Producer()
future = producer.send('kent_topic', {'now': datetime.now().strftime('%Y-%m-%d %H:%M:%S')})
try:
record_metadata = future.get(timeout=10)
except KafkaError as ex:
# Decide what... | 22.47619 | 91 | 0.739407 | 66 | 472 | 5.212121 | 0.606061 | 0.162791 | 0.165698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004914 | 0.137712 | 472 | 20 | 92 | 23.6 | 0.840295 | 0.097458 | 0 | 0 | 0 | 0 | 0.070755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.230769 | 0 | 0.230769 | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1ebce3dca19b95ab2b8f84786d82260602aeb5f7 | 505 | py | Python | setup.py | jgorset/django-respite | 719469d11baf91d05917bab1623bd82adc543546 | [
"MIT"
] | 2 | 2015-10-24T00:36:30.000Z | 2018-01-22T07:20:49.000Z | setup.py | jgorset/django-respite | 719469d11baf91d05917bab1623bd82adc543546 | [
"MIT"
] | 5 | 2016-01-11T19:03:42.000Z | 2021-08-14T15:34:23.000Z | setup.py | jgorset/django-respite | 719469d11baf91d05917bab1623bd82adc543546 | [
"MIT"
] | 2 | 2017-03-14T20:24:15.000Z | 2017-03-21T09:13:54.000Z | from setuptools import setup
execfile('respite/version.py')
setup(
name = 'django-respite',
version = __version__,
description = "Respite conforms Django to Representational State Transfer (REST)",
long_description = open('README.rst').read(),
author = "Johannes Gorset",
author_email = "jgorse... | 33.666667 | 114 | 0.693069 | 56 | 505 | 6.142857 | 0.678571 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154455 | 505 | 14 | 115 | 36.071429 | 0.805621 | 0 | 0 | 0 | 0 | 0 | 0.50297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1ebd79486f528eb8922214863b6d891f86557d64 | 1,184 | py | Python | deciphon/output.py | EBI-Metagenomics/deciphon-py | 81df946c4f2f53c55ac96fc78ed2f95958b291d8 | [
"MIT"
] | null | null | null | deciphon/output.py | EBI-Metagenomics/deciphon-py | 81df946c4f2f53c55ac96fc78ed2f95958b291d8 | [
"MIT"
] | 1 | 2021-07-02T10:24:19.000Z | 2021-07-02T10:24:19.000Z | deciphon/output.py | EBI-Metagenomics/deciphon-py | 81df946c4f2f53c55ac96fc78ed2f95958b291d8 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import Type
from ._cdata import CData
from ._ffi import ffi, lib
from .dcp_profile import DCPProfile
__all__ = ["Output"]
class Output:
def __init__(self, dcp_output: CData):
self._dcp_output = dcp_output
if self._dcp_output == ffi.NULL:
... | 26.909091 | 75 | 0.654561 | 151 | 1,184 | 4.768212 | 0.291391 | 0.1625 | 0.126389 | 0.041667 | 0.197222 | 0.147222 | 0.086111 | 0 | 0 | 0 | 0 | 0.002268 | 0.255068 | 1,184 | 43 | 76 | 27.534884 | 0.814059 | 0 | 0 | 0.0625 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.15625 | 0.0625 | 0.46875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1ec2acffba5577e9fb12ad31a038f30b1185b4e9 | 9,044 | py | Python | polymer/filters.py | dwd/Polymer | 656d2b2f159b649fdb5281b82d938fb5453b9047 | [
"MIT"
] | 4 | 2016-04-14T06:52:02.000Z | 2019-03-30T08:43:14.000Z | polymer/filters.py | dwd/Polymer | 656d2b2f159b649fdb5281b82d938fb5453b9047 | [
"MIT"
] | null | null | null | polymer/filters.py | dwd/Polymer | 656d2b2f159b649fdb5281b82d938fb5453b9047 | [
"MIT"
] | null | null | null | #
# Copyright 2004,2005 Dave Cridland <dave@cridland.net>
#
# This file forms part of Infotrope Polymer
#
# Infotrope Polymer 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 2 of the License, or... | 47.104167 | 141 | 0.644626 | 1,100 | 9,044 | 5.226364 | 0.220909 | 0.164376 | 0.230127 | 0.093929 | 0.391546 | 0.284223 | 0.149417 | 0.128196 | 0.102105 | 0.080014 | 0 | 0.005696 | 0.223463 | 9,044 | 191 | 142 | 47.350785 | 0.8129 | 0.128151 | 0 | 0.103448 | 0 | 0 | 0.270067 | 0.238519 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.062069 | 0.027586 | 0.337931 | 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 |
1ec5f2e9e163571dc78656b1125535398aeb8d36 | 352 | py | Python | website/registration/migrations/0011_auto_20200803_0137.py | CodeJosh723/thesis-review-system | 9046eb9e803f48513f3f729f648d6b70f92cc425 | [
"MIT"
] | 1 | 2020-06-29T07:41:10.000Z | 2020-06-29T07:41:10.000Z | website/registration/migrations/0011_auto_20200803_0137.py | CodeJosh723/thesis-review-system | 9046eb9e803f48513f3f729f648d6b70f92cc425 | [
"MIT"
] | 4 | 2020-06-10T23:21:27.000Z | 2020-07-18T22:04:31.000Z | website/registration/migrations/0011_auto_20200803_0137.py | CodeJosh723/thesis-review-system | 9046eb9e803f48513f3f729f648d6b70f92cc425 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-08-02 19:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('registration', '0010_auto_20200731_1428'),
]
operations = [
migrations.AlterModelOptions(
name='user',
options={'ordering': ... | 19.555556 | 52 | 0.596591 | 35 | 352 | 5.914286 | 0.885714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122047 | 0.278409 | 352 | 17 | 53 | 20.705882 | 0.692913 | 0.127841 | 0 | 0 | 1 | 0 | 0.180328 | 0.07541 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ecad0541c0d3196508bb3d712641c0db9bb34ec | 786 | py | Python | 2021.4/run_command.py | henry1758f/Intel-Sales-Kit | e8a7c5e89fee9cd4a61c98026ec027309d946faa | [
"Apache-2.0"
] | 1 | 2021-08-13T08:43:22.000Z | 2021-08-13T08:43:22.000Z | 2021.4/run_command.py | henry1758f/Intel-Sales-Kit | e8a7c5e89fee9cd4a61c98026ec027309d946faa | [
"Apache-2.0"
] | null | null | null | 2021.4/run_command.py | henry1758f/Intel-Sales-Kit | e8a7c5e89fee9cd4a61c98026ec027309d946faa | [
"Apache-2.0"
] | null | null | null | import subprocess
import re
#cmd = 'python3 /opt/intel/openvino/deployment_tools/tools/benchmark_tool/benchmark_app.py -m /mnt/openvino_models/public/yolo-v3-tf/FP16-INT8/yolo-v3-tf.xml -d CPU -api async -t 1'
fp = open('benchmark_models_cmds.txt', "r")
for cmd in iter(fp):
print("cmd:{}".format(cmd))
stdout... | 29.111111 | 182 | 0.620865 | 110 | 786 | 4.381818 | 0.518182 | 0.087137 | 0.159751 | 0.217842 | 0.26556 | 0.107884 | 0 | 0 | 0 | 0 | 0 | 0.011925 | 0.253181 | 786 | 26 | 183 | 30.230769 | 0.809199 | 0.229008 | 0 | 0.318182 | 0 | 0 | 0.168874 | 0.041391 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.363636 | 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 |
1ecb2c9a56726eaeb232201fca73b19c0c5a5d52 | 16,637 | py | Python | task2.py | romi-lab/Control_System_of_Multitask_Orientated_Miniature_Robot_Agents | 83b78deb2fc2abbac95bf97b392ae7ff022939fa | [
"MIT"
] | 2 | 2021-06-01T04:58:38.000Z | 2022-01-26T08:06:17.000Z | task2.py | romi-lab/Control_System_of_Multitask_Orientated_Miniature_Robot_Agents | 83b78deb2fc2abbac95bf97b392ae7ff022939fa | [
"MIT"
] | null | null | null | task2.py | romi-lab/Control_System_of_Multitask_Orientated_Miniature_Robot_Agents | 83b78deb2fc2abbac95bf97b392ae7ff022939fa | [
"MIT"
] | 1 | 2021-06-21T13:30:58.000Z | 2021-06-21T13:30:58.000Z | import json
import numpy as np
import cv2
from numpy.core.records import array
import cv2.aruco as aruco
import socket
from urllib.request import urlopen
from get_img import get_img as gi
ADDRESS = ('', 10000)
central = None
conn_pool = []
central = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
central.setsockopt... | 29.815412 | 107 | 0.490713 | 1,966 | 16,637 | 4.021872 | 0.151068 | 0.052612 | 0.074364 | 0.03225 | 0.40774 | 0.321108 | 0.296446 | 0.255723 | 0.189452 | 0.14405 | 0 | 0.050113 | 0.390695 | 16,637 | 558 | 108 | 29.815412 | 0.7299 | 0.020496 | 0 | 0.396476 | 0 | 0 | 0.030463 | 0 | 0 | 0 | 0.000246 | 0 | 0 | 1 | 0.07489 | false | 0.052863 | 0.017621 | 0.002203 | 0.129956 | 0.039648 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1eccb38b64308128c10a5b30c79284c3dae959a8 | 2,183 | py | Python | spock/backend/spaces.py | fidelity/spock | 80fb2a57f4a99e48932237cf01d356962462c213 | [
"Apache-2.0"
] | 58 | 2020-08-07T20:28:28.000Z | 2022-03-14T17:32:37.000Z | spock/backend/spaces.py | fidelity/spock | 80fb2a57f4a99e48932237cf01d356962462c213 | [
"Apache-2.0"
] | 178 | 2020-08-11T15:02:07.000Z | 2022-03-30T07:18:06.000Z | spock/backend/spaces.py | fidelity/spock | 80fb2a57f4a99e48932237cf01d356962462c213 | [
"Apache-2.0"
] | 7 | 2020-08-11T13:44:50.000Z | 2022-02-24T14:35:55.000Z | # -*- coding: utf-8 -*-
# Copyright FMR LLC <opensource@fidelity.com>
# SPDX-License-Identifier: Apache-2.0
"""Handles classes/named tuples for holding class, field, and attribute value(s)"""
from collections import namedtuple
from typing import Type
from attr import Attribute
class ConfigSpace:
"""Class that... | 29.5 | 92 | 0.675676 | 262 | 2,183 | 5.530534 | 0.320611 | 0.05314 | 0.024845 | 0.034507 | 0.407177 | 0.36577 | 0.36577 | 0.31332 | 0.31332 | 0.31332 | 0 | 0.001833 | 0.250115 | 2,183 | 73 | 93 | 29.90411 | 0.883323 | 0.508475 | 0 | 0.083333 | 0 | 0 | 0.03452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.125 | 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 |
1ecf88bb54b7e96dc1c1f91aec1cc38d5bb9c00e | 2,090 | py | Python | read_mnist/check.py | your-diary/Playing-with-MNIST | 2f34732cffc95012fd7e12ec486eaef9305d6857 | [
"MIT"
] | null | null | null | read_mnist/check.py | your-diary/Playing-with-MNIST | 2f34732cffc95012fd7e12ec486eaef9305d6857 | [
"MIT"
] | null | null | null | read_mnist/check.py | your-diary/Playing-with-MNIST | 2f34732cffc95012fd7e12ec486eaef9305d6857 | [
"MIT"
] | null | null | null | import numpy as np
import sys
sys.path.append("./original_data");
from dataset.mnist import load_mnist
from PIL import Image
import pickle
#This line loads training images, training labels (in or not in one-hot representation), testing images and testing labels (in or not in one-hot representation).
(x_train, t_tra... | 27.866667 | 161 | 0.661244 | 341 | 2,090 | 3.768328 | 0.202346 | 0.079377 | 0.059922 | 0.037354 | 0.428794 | 0.3393 | 0.054475 | 0.054475 | 0 | 0 | 0 | 0.045952 | 0.125359 | 2,090 | 74 | 162 | 28.243243 | 0.657002 | 0.122488 | 0 | 0.09434 | 0 | 0 | 0.257924 | 0.103279 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.09434 | 0 | 0.188679 | 0.698113 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1ed8a8874ddaaf1b4d334b5e1886bd6a6cb6575e | 492 | py | Python | src/losses.py | codestar12/pruning-distilation-bias | 3e0c199ef9bcc4809175365744878da8fb322ba9 | [
"BSD-2-Clause"
] | 1 | 2021-07-11T07:29:53.000Z | 2021-07-11T07:29:53.000Z | src/losses.py | codestar12/pruning-distilation-bias | 3e0c199ef9bcc4809175365744878da8fb322ba9 | [
"BSD-2-Clause"
] | 1 | 2021-07-11T07:28:35.000Z | 2021-07-13T15:36:04.000Z | src/losses.py | codestar12/pruning-distilation-bias | 3e0c199ef9bcc4809175365744878da8fb322ba9 | [
"BSD-2-Clause"
] | null | null | null | import torch
from torch.nn import Module
from geomloss import SamplesLoss
class SinkhornLoss(Module):
def __init__(self, blur=0.3, scaling=.8):
super(SinkhornLoss, self).__init__()
self.loss = SamplesLoss("sinkhorn", blur=blur, scaling=scaling)
def forward(self, *args):
x... | 28.941176 | 71 | 0.638211 | 72 | 492 | 4.138889 | 0.444444 | 0.053691 | 0.087248 | 0.080537 | 0.107383 | 0.107383 | 0 | 0 | 0 | 0 | 0 | 0.018767 | 0.24187 | 492 | 17 | 72 | 28.941176 | 0.780161 | 0 | 0 | 0 | 0 | 0 | 0.016227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1edec1ecaebd50ea626a977803a52c498ab4d979 | 1,391 | py | Python | test/unittests/test_Percolation.py | rajadain/gwlf-e | ba2fb9dbc08a3d7a4ced4b83b6f0f1307814e2a3 | [
"Apache-2.0"
] | null | null | null | test/unittests/test_Percolation.py | rajadain/gwlf-e | ba2fb9dbc08a3d7a4ced4b83b6f0f1307814e2a3 | [
"Apache-2.0"
] | null | null | null | test/unittests/test_Percolation.py | rajadain/gwlf-e | ba2fb9dbc08a3d7a4ced4b83b6f0f1307814e2a3 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from .VariableUnitTest import VariableUnitTest
from gwlfe.Input.WaterBudget import Percolation
class TestPercolation(VariableUnitTest):
def test_Percolation_ground_truth(self):
z = self.z
np.testing.assert_array_almost_equal(
np.load(self.basepath + "/Percolation.n... | 53.5 | 112 | 0.584472 | 206 | 1,391 | 3.805825 | 0.247573 | 0.045918 | 0.022959 | 0.057398 | 0.697704 | 0.697704 | 0.697704 | 0.697704 | 0.697704 | 0.697704 | 0 | 0.020325 | 0.292595 | 1,391 | 25 | 113 | 55.64 | 0.776423 | 0 | 0 | 0.55 | 0 | 0 | 0.011503 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9496bc6d4d109f12d1a62bbdb0a0def0653cf479 | 262 | py | Python | lifeAssistant/enums.py | tenqaz/lifeAssistant | 8c61a073f760532ae9b271c3789bb07f04df253f | [
"MIT"
] | null | null | null | lifeAssistant/enums.py | tenqaz/lifeAssistant | 8c61a073f760532ae9b271c3789bb07f04df253f | [
"MIT"
] | 1 | 2021-12-13T20:36:17.000Z | 2021-12-13T20:36:17.000Z | lifeAssistant/enums.py | tenqaz/lifeAssistant | 8c61a073f760532ae9b271c3789bb07f04df253f | [
"MIT"
] | null | null | null | """
@author: Jim
@project: lifeAssistant
@file: enums.py
@time: 2020/1/14 11:56
@desc:
枚举
"""
from enum import IntEnum, unique
@unique
class ArticleTypeEnum(IntEnum):
"""
文章的存储方式.
"""
SpiderKind = 0 # 爬虫存储
ManualKind = 1 # 手动存储
| 12.47619 | 32 | 0.603053 | 31 | 262 | 5.096774 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06701 | 0.259542 | 262 | 20 | 33 | 13.1 | 0.747423 | 0.416031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
9496fb8d35de7b5f46eadce0cf8f62a8abea7dc7 | 2,674 | py | Python | src/probnum/linalg/linearsolvers/solutionbased.py | ralfrost/probnum | 6b0988009a9dd7ecda87ba28c9d5c0b8019981b6 | [
"MIT"
] | null | null | null | src/probnum/linalg/linearsolvers/solutionbased.py | ralfrost/probnum | 6b0988009a9dd7ecda87ba28c9d5c0b8019981b6 | [
"MIT"
] | null | null | null | src/probnum/linalg/linearsolvers/solutionbased.py | ralfrost/probnum | 6b0988009a9dd7ecda87ba28c9d5c0b8019981b6 | [
"MIT"
] | null | null | null | """
Solution-based probabilistic linear solvers.
Implementations of solution-based linear solvers which perform inference on the solution
of a linear system given linear observations.
"""
import warnings
import numpy as np
from probnum.linalg.linearsolvers.matrixbased import ProbabilisticLinearSolver
class Solutio... | 32.216867 | 88 | 0.610322 | 309 | 2,674 | 5.220065 | 0.423948 | 0.029758 | 0.018599 | 0.020459 | 0.115313 | 0.054557 | 0.054557 | 0.054557 | 0.054557 | 0.054557 | 0 | 0.009539 | 0.294316 | 2,674 | 82 | 89 | 32.609756 | 0.845257 | 0.551608 | 0 | 0 | 0 | 0 | 0.10636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
949938e251c719143b40af96b89a5552d19ceed9 | 10,491 | py | Python | collaborative/settings.py | themarshallproject/django-collaborative | 1474b9737eaea35eb11b39380b35c2a801831d9c | [
"MIT"
] | 88 | 2019-05-17T19:52:44.000Z | 2022-03-28T19:43:07.000Z | collaborative/settings.py | themarshallproject/django-collaborative | 1474b9737eaea35eb11b39380b35c2a801831d9c | [
"MIT"
] | 65 | 2019-05-17T20:06:18.000Z | 2021-01-13T03:51:07.000Z | collaborative/settings.py | themarshallproject/django-collaborative | 1474b9737eaea35eb11b39380b35c2a801831d9c | [
"MIT"
] | 15 | 2019-07-09T20:48:14.000Z | 2021-07-24T20:45:55.000Z | """
Django settings for collaborative project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os... | 32.580745 | 91 | 0.713564 | 1,356 | 10,491 | 5.380531 | 0.347345 | 0.028509 | 0.024671 | 0.023986 | 0.133498 | 0.109786 | 0.049479 | 0.049479 | 0.029331 | 0 | 0 | 0.005626 | 0.186731 | 10,491 | 321 | 92 | 32.682243 | 0.849508 | 0.462682 | 0 | 0.107784 | 1 | 0.005988 | 0.471811 | 0.380195 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.041916 | 0.035928 | 0 | 0.035928 | 0 | 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 |
949cca2c87a4fb7a60e4b0b22b0d37049956aae1 | 628 | py | Python | python/ql/test/query-tests/Summary/my_file.py | timoles/codeql | 2d24387e9e300bf03be35694816b1e76ae88a50c | [
"MIT"
] | 4,036 | 2020-04-29T00:09:57.000Z | 2022-03-31T14:16:38.000Z | python/ql/test/query-tests/Summary/my_file.py | baby636/codeql | 097b6e5e3364ecc7103586d6feb308861e15538e | [
"MIT"
] | 2,970 | 2020-04-28T17:24:18.000Z | 2022-03-31T22:40:46.000Z | python/ql/test/query-tests/Summary/my_file.py | ScriptBox99/github-codeql | 2ecf0d3264db8fb4904b2056964da469372a235c | [
"MIT"
] | 794 | 2020-04-29T00:28:25.000Z | 2022-03-30T08:21:46.000Z | """
module level docstring
is not included
"""
# this line is not code
# `tty` was chosen for stability over python versions (so we don't get diffrent results
# on different computers, that has different versions of Python).
#
# According to https://github.com/python/cpython/tree/master/Lib (at 2021-04-23) `tty`
# wa... | 23.259259 | 87 | 0.700637 | 101 | 628 | 4.356436 | 0.70297 | 0.034091 | 0.090909 | 0.1 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.197452 | 628 | 26 | 88 | 24.153846 | 0.845238 | 0.799363 | 0 | 0 | 0 | 0 | 0.276596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
94a0c98f8161cd6ee48750e2d8ed185b58ed6a8c | 4,471 | py | Python | apps/accounts/forms.py | pinkerltm/datacube-ui | 325d404a994d49c23922e7de10c7ab244b78500b | [
"Apache-2.0"
] | 1 | 2019-07-22T05:24:40.000Z | 2019-07-22T05:24:40.000Z | apps/accounts/forms.py | SivaramakrishnanKN/NE-GeoCloud | affcae49e0ccd7d29360a2771a9517147ed56590 | [
"Apache-2.0"
] | 1 | 2019-06-06T18:31:29.000Z | 2019-06-06T18:31:29.000Z | apps/accounts/forms.py | SivaramakrishnanKN/NE-GeoCloud | affcae49e0ccd7d29360a2771a9517147ed56590 | [
"Apache-2.0"
] | 5 | 2019-06-05T07:26:13.000Z | 2019-06-08T06:53:11.000Z | from django import forms
from django.forms.forms import NON_FIELD_ERRORS
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
from django.core.validators import RegexValidator
from django.contrib.auth.password_validation import validate_password
alphanumeric = RegexValida... | 48.075269 | 156 | 0.704093 | 537 | 4,471 | 5.633147 | 0.173184 | 0.087273 | 0.055537 | 0.047603 | 0.705124 | 0.62843 | 0.62843 | 0.613884 | 0.594711 | 0.594711 | 0 | 0.00947 | 0.173339 | 4,471 | 92 | 157 | 48.597826 | 0.808983 | 0 | 0 | 0.507246 | 0 | 0.014493 | 0.218296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0.463768 | 0.086957 | 0 | 0.42029 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94a1f80199dc58b0bc7339608762d6ed4f7e46d2 | 16,386 | py | Python | analysis/std/map_metrics.py | abraker-osu/osu_analyzer | f930b1e75d1c4c973dfa49fdab2afedb2a432e31 | [
"MIT"
] | null | null | null | analysis/std/map_metrics.py | abraker-osu/osu_analyzer | f930b1e75d1c4c973dfa49fdab2afedb2a432e31 | [
"MIT"
] | null | null | null | analysis/std/map_metrics.py | abraker-osu/osu_analyzer | f930b1e75d1c4c973dfa49fdab2afedb2a432e31 | [
"MIT"
] | null | null | null | import numpy as np
#from ..utils import *
from ..metrics import Metrics
from .map_data import StdMapData
class StdMapMetrics():
"""
Class used for calculating pattern attributes and difficulty.
.. warning::
Undocumented functions in this class are not supported and are experimental.
"""
... | 33.855372 | 132 | 0.604418 | 2,002 | 16,386 | 4.795205 | 0.126374 | 0.058333 | 0.049479 | 0.024792 | 0.656667 | 0.579479 | 0.54125 | 0.517083 | 0.499583 | 0.480104 | 0 | 0.011357 | 0.285305 | 16,386 | 484 | 133 | 33.855372 | 0.808385 | 0.487245 | 0 | 0.503185 | 0 | 0 | 0.005948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184713 | false | 0.050955 | 0.019108 | 0.025478 | 0.356688 | 0.006369 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94a58b7541f3933367485e74b747f35176c9758c | 354 | py | Python | server/project/config.py | charlesfranciscodev/csgames-web-2018 | 6af463f038b02ba7156154097f55f8f9fefdf312 | [
"MIT"
] | null | null | null | server/project/config.py | charlesfranciscodev/csgames-web-2018 | 6af463f038b02ba7156154097f55f8f9fefdf312 | [
"MIT"
] | null | null | null | server/project/config.py | charlesfranciscodev/csgames-web-2018 | 6af463f038b02ba7156154097f55f8f9fefdf312 | [
"MIT"
] | null | null | null | import os
class BaseConfig:
"""Base configuration"""
SQLALCHEMY_TRACK_MODIFICATIONS = False
SECRET_KEY = "9a39bf1d2039ceab910f5905149e74a0"
TOKEN_EXPIRATION_DAYS = 30
TOKEN_EXPIRATION_SECONDS = 0
class DevelopmentConfig(BaseConfig):
"""Development configuration"""
SQLALCHEMY_DATABASE_URI... | 23.6 | 60 | 0.757062 | 34 | 354 | 7.588235 | 0.764706 | 0.178295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080808 | 0.161017 | 354 | 14 | 61 | 25.285714 | 0.787879 | 0.124294 | 0 | 0 | 0 | 0 | 0.147157 | 0.107023 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 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 |
94b2e1dc903a57e0f48070df9c2242df34182798 | 1,470 | py | Python | tests/test_cook_board_ethics.py | pg/city-scrapers | 1cce23f17550e41c48ad5cba1f8c0d56a0fc4752 | [
"MIT"
] | null | null | null | tests/test_cook_board_ethics.py | pg/city-scrapers | 1cce23f17550e41c48ad5cba1f8c0d56a0fc4752 | [
"MIT"
] | null | null | null | tests/test_cook_board_ethics.py | pg/city-scrapers | 1cce23f17550e41c48ad5cba1f8c0d56a0fc4752 | [
"MIT"
] | null | null | null | from datetime import datetime
from city_scrapers_core.constants import BOARD, PASSED
from freezegun import freeze_time
from tests.utils import file_response
from city_scrapers.spiders.cook_board_ethics import CookBoardEthicsSpider
test_response = file_response(
'files/cook_board_ethics.html',
url='https://ww... | 21 | 100 | 0.69932 | 194 | 1,470 | 5.118557 | 0.391753 | 0.084592 | 0.045317 | 0.046324 | 0.155086 | 0.114804 | 0.114804 | 0.114804 | 0.114804 | 0.114804 | 0 | 0.040486 | 0.159864 | 1,470 | 69 | 101 | 21.304348 | 0.763563 | 0 | 0 | 0 | 0 | 0.04878 | 0.260544 | 0.051701 | 0 | 0 | 0 | 0 | 0.292683 | 1 | 0.292683 | false | 0.04878 | 0.121951 | 0 | 0.414634 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94b93da6724fb45f6a29385000e8a6553628aa9c | 1,090 | py | Python | src/routes.py | jkpawlowski96/TRD-client-api | d85c182981e155e94b185c8f1367841143fd33e0 | [
"Unlicense"
] | null | null | null | src/routes.py | jkpawlowski96/TRD-client-api | d85c182981e155e94b185c8f1367841143fd33e0 | [
"Unlicense"
] | null | null | null | src/routes.py | jkpawlowski96/TRD-client-api | d85c182981e155e94b185c8f1367841143fd33e0 | [
"Unlicense"
] | null | null | null | from src import app, api
from flask_restful import Resource
from src.data import Data
from src.models import Pair, Interval
data = Data()
class HelloWorld(Resource):
def get(self):
return {'hello': 'world'}
class Test(Resource):
def get(self):
return {'results':data.test()}
class History(Res... | 33.030303 | 135 | 0.701835 | 150 | 1,090 | 4.926667 | 0.233333 | 0.056834 | 0.075778 | 0.097429 | 0.489851 | 0.303112 | 0.243572 | 0.243572 | 0.243572 | 0.124493 | 0 | 0.013187 | 0.165138 | 1,090 | 32 | 136 | 34.0625 | 0.798901 | 0 | 0 | 0.230769 | 0 | 0.038462 | 0.169881 | 0.14876 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94be538c1caf4278b812fb05627847bfb3abdfc9 | 290 | py | Python | sheets/admin.py | LD31D/django_sheets | fa626012fd00d69fbbac4fe4542150902d2be8cb | [
"MIT"
] | null | null | null | sheets/admin.py | LD31D/django_sheets | fa626012fd00d69fbbac4fe4542150902d2be8cb | [
"MIT"
] | null | null | null | sheets/admin.py | LD31D/django_sheets | fa626012fd00d69fbbac4fe4542150902d2be8cb | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Sheet, Cell
@admin.register(Sheet)
class SheetAdmin(admin.ModelAdmin):
list_display = ('name', 'key', 'owner')
readonly_fields = ('key', )
search_fields = ('name', )
@admin.register(Cell)
class CellAdmin(admin.ModelAdmin):
pass
| 18.125 | 40 | 0.724138 | 36 | 290 | 5.75 | 0.611111 | 0.125604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131034 | 290 | 15 | 41 | 19.333333 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.065517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.2 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94bf9fe4b94bb0ae7b97e644b3a1c9c2774c21e8 | 1,923 | py | Python | test/test_mapping.py | EngineerCoding/Data2DNA | 70cac6ea1037cb1bcc4f538f82f36a8e196272cf | [
"MIT"
] | null | null | null | test/test_mapping.py | EngineerCoding/Data2DNA | 70cac6ea1037cb1bcc4f538f82f36a8e196272cf | [
"MIT"
] | null | null | null | test/test_mapping.py | EngineerCoding/Data2DNA | 70cac6ea1037cb1bcc4f538f82f36a8e196272cf | [
"MIT"
] | null | null | null | from unittest import TestCase
from mapping import Mapping
from mapping import Value
class MappingTestCase(TestCase):
def setUp(self):
self.mapping = Mapping(Value.zero, Value.one, Value.two, Value.three)
def test_distinct_values_correct(self):
try:
Mapping(Value.zero, Value.one, Value.two, Value.three)
... | 32.05 | 72 | 0.778991 | 285 | 1,923 | 4.989474 | 0.189474 | 0.126582 | 0.063291 | 0.126582 | 0.471871 | 0.409986 | 0.243319 | 0.059072 | 0.059072 | 0 | 0 | 0.011014 | 0.102964 | 1,923 | 59 | 73 | 32.59322 | 0.813333 | 0 | 0 | 0 | 0 | 0 | 0.00468 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.227273 | false | 0 | 0.068182 | 0 | 0.340909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94c3b657a8c2f3eb461e36d6d555cc1f2477661d | 394 | py | Python | rain/models.py | Ronyonka/rain-drop | ad9ba2bd70cd587e5ab5f45f317c4054c5960bbd | [
"Unlicense"
] | null | null | null | rain/models.py | Ronyonka/rain-drop | ad9ba2bd70cd587e5ab5f45f317c4054c5960bbd | [
"Unlicense"
] | 4 | 2019-12-04T23:38:38.000Z | 2022-02-10T07:55:43.000Z | rain/models.py | Ronyonka/rain-drop | ad9ba2bd70cd587e5ab5f45f317c4054c5960bbd | [
"Unlicense"
] | null | null | null | from django.db import models
from .managers import GeneralManager
class Rain(models.Model):
amount = models.IntegerField()
date = models.DateField(auto_now=False)
objects = models.Manager()
my_query = GeneralManager()
class Meta:
ordering = ['date']
def __str__(self):
... | 23.176471 | 72 | 0.642132 | 46 | 394 | 5.369565 | 0.695652 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248731 | 394 | 16 | 73 | 24.625 | 0.834459 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0.090909 | 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 |
94c85dd9a8623229a3254f349eb2e294cbe7a7c5 | 844 | py | Python | rpc/cmd_walletpassphrasechange.py | Adenium/Adenium | d2eb9952b1c93670113e49affe482c76d4033a99 | [
"MIT"
] | 7 | 2021-02-24T14:16:30.000Z | 2022-01-02T18:01:53.000Z | rpc/cmd_walletpassphrasechange.py | Adenium/Adenium | d2eb9952b1c93670113e49affe482c76d4033a99 | [
"MIT"
] | 1 | 2021-02-28T02:13:47.000Z | 2021-03-08T09:51:24.000Z | rpc/cmd_walletpassphrasechange.py | Adenium/Adenium | d2eb9952b1c93670113e49affe482c76d4033a99 | [
"MIT"
] | 4 | 2021-04-08T20:05:42.000Z | 2022-01-02T18:06:32.000Z | # import commands
import commands
# password helper
from getpass import getpass
# define 'walletpassphrasechange' command
def parse(cmd, arguments, connection):
if len(arguments) != 2:
print("error: '"+cmd.name+"' requires one argument.")
else:
name = arguments[1]
old = getpass('... | 32.461538 | 98 | 0.598341 | 90 | 844 | 5.6 | 0.511111 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003263 | 0.273697 | 844 | 25 | 99 | 33.76 | 0.818923 | 0.084123 | 0 | 0.105263 | 0 | 0 | 0.231771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.263158 | 0.105263 | 0 | 0.210526 | 0.263158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94cd42224ade40e2ddc3ef1b66725fcb60c0f243 | 728 | py | Python | tests/test_team.py | aspic2/NCAABB | b2a92e22f6c430fd8c02dae5657983c5a13250d1 | [
"MIT"
] | 1 | 2019-01-27T09:31:52.000Z | 2019-01-27T09:31:52.000Z | tests/test_team.py | aspic2/ncaabb | b2a92e22f6c430fd8c02dae5657983c5a13250d1 | [
"MIT"
] | 10 | 2018-03-07T18:22:16.000Z | 2018-08-23T20:28:11.000Z | tests/test_team.py | aspic2/ncaabb | b2a92e22f6c430fd8c02dae5657983c5a13250d1 | [
"MIT"
] | null | null | null |
import unittest
from ncaabb import team
class TestTeam(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.team_one = team.Team(["Team One", "Region", 1, True, 30, 30])
def test_calculate_rating(self):
self.assertNotEqual(self.team_one, self.team_one.calculate_rating()... | 28 | 77 | 0.652473 | 91 | 728 | 5 | 0.461538 | 0.061538 | 0.048352 | 0.057143 | 0.065934 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017889 | 0.232143 | 728 | 25 | 78 | 29.12 | 0.796064 | 0.083791 | 0 | 0 | 0 | 0 | 0.135938 | 0 | 0 | 0 | 0 | 0.04 | 0.2 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94cee3829969ded45a04fc05b4e18856a58605c0 | 486 | py | Python | assn5/palindrome.py | vardhan2000/1st-sem-python-assignments | 9f38ab2b15c36b5ae1c6a725f4d4effe026e0bb4 | [
"MIT"
] | null | null | null | assn5/palindrome.py | vardhan2000/1st-sem-python-assignments | 9f38ab2b15c36b5ae1c6a725f4d4effe026e0bb4 | [
"MIT"
] | null | null | null | assn5/palindrome.py | vardhan2000/1st-sem-python-assignments | 9f38ab2b15c36b5ae1c6a725f4d4effe026e0bb4 | [
"MIT"
] | null | null | null | def recurse(n, i):
## Your code - begin
n1 = [j.lower() for j in n] # converting each of the element to lowercase
if i == int((len(n1) - 1) / 2) and (n1[i] == n1[len(n1) - i - 1]):
return True
elif i <= int((len(n1) - 1) / 2) and (n1[i] != n1[len(n1) - i - 1]):
return False
else:
return recurse(n, i + 1)
#... | 23.142857 | 75 | 0.590535 | 84 | 486 | 3.309524 | 0.488095 | 0.071942 | 0.064748 | 0.064748 | 0.230216 | 0.230216 | 0.230216 | 0.230216 | 0.230216 | 0.230216 | 0 | 0.045333 | 0.228395 | 486 | 20 | 76 | 24.3 | 0.696 | 0.160494 | 0 | 0 | 0 | 0 | 0.054726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94e333a9a872d91e54df88957b827457af85a6c4 | 580 | py | Python | app/python/zbrank/src/rank_start.py | fengshiyou/live | 197df45d0a27ced191684d5cbee9faad6b72ac1e | [
"MIT"
] | null | null | null | app/python/zbrank/src/rank_start.py | fengshiyou/live | 197df45d0a27ced191684d5cbee9faad6b72ac1e | [
"MIT"
] | null | null | null | app/python/zbrank/src/rank_start.py | fengshiyou/live | 197df45d0a27ced191684d5cbee9faad6b72ac1e | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
# 自定义py导入开始
# from getList import getList
import zbrank
# 导入拓展包开始
import json
import time
# 导入拓展包结束
# 自定义py导入结束
now = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))
class status_start:
def __init__(self):
# 主url
self.main_url = "http://www.zbrank.com/ra... | 19.333333 | 69 | 0.651724 | 71 | 580 | 5.183099 | 0.56338 | 0.119565 | 0.054348 | 0.086957 | 0.141304 | 0.141304 | 0 | 0 | 0 | 0 | 0 | 0.002151 | 0.198276 | 580 | 29 | 70 | 20 | 0.789247 | 0.234483 | 0 | 0 | 0 | 0 | 0.223502 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94e640476408c003e166fb78263d8d44ddcca781 | 67,435 | py | Python | book-code/numpy-ml/numpy_ml/rl_models/agents.py | yangninghua/code_library | b769abecb4e0cbdbbb5762949c91847a0f0b3c5a | [
"MIT"
] | null | null | null | book-code/numpy-ml/numpy_ml/rl_models/agents.py | yangninghua/code_library | b769abecb4e0cbdbbb5762949c91847a0f0b3c5a | [
"MIT"
] | null | null | null | book-code/numpy-ml/numpy_ml/rl_models/agents.py | yangninghua/code_library | b769abecb4e0cbdbbb5762949c91847a0f0b3c5a | [
"MIT"
] | null | null | null | """Reinforcement learning agents that can be run on OpenAI gym environs"""
from abc import ABC, abstractmethod
from collections import defaultdict
import numpy as np
from .rl_utils import EnvModel, env_stats, tile_state_space
from ..utils.data_structures import Dict
class AgentBase(ABC):
def __init__(self, env... | 35.19572 | 103 | 0.573204 | 8,761 | 67,435 | 4.290606 | 0.075334 | 0.006119 | 0.003751 | 0.011067 | 0.717478 | 0.690317 | 0.675632 | 0.654403 | 0.634983 | 0.623437 | 0 | 0.008136 | 0.33106 | 67,435 | 1,915 | 104 | 35.214099 | 0.825006 | 0.506517 | 0 | 0.644904 | 0 | 0 | 0.070505 | 0.009347 | 0 | 0 | 0 | 0.002611 | 0.012739 | 1 | 0.082803 | false | 0 | 0.007962 | 0 | 0.143312 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94fa6c3127ccce4c118f7900fe41dbdf78d2341a | 483 | py | Python | meetings/osf_oauth2_adapter/adapter.py | CenterForOpenScience/osf-meetings | db118278634a06185bf01fda46513ac7e483a2ba | [
"Apache-2.0"
] | null | null | null | meetings/osf_oauth2_adapter/adapter.py | CenterForOpenScience/osf-meetings | db118278634a06185bf01fda46513ac7e483a2ba | [
"Apache-2.0"
] | 41 | 2016-07-05T13:25:48.000Z | 2016-09-14T14:42:57.000Z | meetings/osf_oauth2_adapter/adapter.py | CenterForOpenScience/osf-meetings | db118278634a06185bf01fda46513ac7e483a2ba | [
"Apache-2.0"
] | 11 | 2016-06-30T17:34:39.000Z | 2021-04-05T04:33:57.000Z | from allauth.account.adapter import DefaultAccountAdapter
from django.conf import settings
import urlparse
class OsfMeetingsAdapter(DefaultAccountAdapter):
def get_login_redirect_url(self, request):
try:
refererUrl = request.environ['HTTP_REFERER']
nextUrl = urlparse.parse_qs(
... | 30.1875 | 63 | 0.691511 | 49 | 483 | 6.653061 | 0.734694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002725 | 0.240166 | 483 | 15 | 64 | 32.2 | 0.885559 | 0 | 0 | 0 | 0 | 0 | 0.033126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
94fc70544fb36d11559e1a16816690ec87b72dbb | 2,011 | py | Python | django_digest/test/__init__.py | gushil/django-digest | 52d1d124eb3f6c88ac75acb13194caa58a9b32d5 | [
"BSD-3-Clause"
] | 5 | 2016-05-24T22:05:41.000Z | 2022-03-24T12:47:56.000Z | django_digest/test/__init__.py | gushil/django-digest | 52d1d124eb3f6c88ac75acb13194caa58a9b32d5 | [
"BSD-3-Clause"
] | 12 | 2015-07-17T21:23:57.000Z | 2018-05-11T09:38:53.000Z | django_digest/test/__init__.py | gushil/django-digest | 52d1d124eb3f6c88ac75acb13194caa58a9b32d5 | [
"BSD-3-Clause"
] | 9 | 2015-08-26T15:11:36.000Z | 2020-09-28T17:27:18.000Z | from __future__ import absolute_import
from __future__ import unicode_literals
import django.test
from django_digest.test.methods.basic import BasicAuth
from django_digest.test.methods.detect import DetectAuth
from django_digest.test.methods.digest import DigestAuth
class Client(django.test.Client):
AUTH_METHODS... | 37.943396 | 79 | 0.617106 | 216 | 2,011 | 5.587963 | 0.310185 | 0.053024 | 0.081193 | 0.04971 | 0.267606 | 0.200497 | 0.144159 | 0.144159 | 0.144159 | 0.144159 | 0 | 0.002119 | 0.295873 | 2,011 | 52 | 80 | 38.673077 | 0.850282 | 0.06912 | 0 | 0.15 | 0 | 0 | 0.027302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.125 | 0.15 | 0 | 0.325 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a20b9e87ae9526e0cc790ac28cf78cc47b38fd46 | 822 | py | Python | high-availability-endpoint/python/region_lookup.py | fortunecookiezen/aws-health-tools | 37ca9a3f03bc0468ce90e0dea78762f712489672 | [
"Apache-2.0"
] | 825 | 2017-02-01T05:01:09.000Z | 2022-03-28T03:27:32.000Z | high-availability-endpoint/python/region_lookup.py | lapolinarweb/aws-health-tools | bc06ee172ddb77e8bda6435958650227de9a13c1 | [
"Apache-2.0"
] | 46 | 2017-02-02T19:43:08.000Z | 2022-01-11T17:10:19.000Z | high-availability-endpoint/python/region_lookup.py | coralogix/aws-health-tools | d534f1311b6777f6b8ad01c0cdbce34abc3ccbac | [
"Apache-2.0"
] | 218 | 2017-02-01T08:24:19.000Z | 2022-03-31T07:47:21.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import dns.resolver
class RegionLookupError(Exception):
"""Rasied when there was a problem when looking up the active region"""
pass
def active_region():
qname = 'global.health.amazonaws.com'
try... | 43.263158 | 126 | 0.677616 | 112 | 822 | 4.946429 | 0.607143 | 0.064982 | 0.101083 | 0.108303 | 0.090253 | 0.090253 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.182482 | 822 | 19 | 127 | 43.263158 | 0.8125 | 0.357664 | 0 | 0 | 0 | 0 | 0.192308 | 0.051923 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.071429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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.