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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5b58c3a183eab2cc223e027880b12dfe77ebaac6 | 4,609 | py | Python | hangman.py | swatisrs/Hangman | c596f9c6fa07e3fc88b2da03a30fdb1dcf6db8e5 | [
"MIT"
] | 4 | 2020-10-23T15:41:00.000Z | 2021-08-23T07:41:17.000Z | hangman.py | swatisrs/Hangman | c596f9c6fa07e3fc88b2da03a30fdb1dcf6db8e5 | [
"MIT"
] | 15 | 2020-10-19T14:10:23.000Z | 2020-10-27T09:21:14.000Z | hangman.py | swatisrs/Hangman | c596f9c6fa07e3fc88b2da03a30fdb1dcf6db8e5 | [
"MIT"
] | 8 | 2020-10-24T10:42:12.000Z | 2020-10-27T19:30:34.000Z | import random
from bs4 import BeautifulSoup
import urllib.request
import requests
def display_hangman(tries):
stages = [
"""
--------
| |
| O
| \\|/
| |
| / \\
... | 24.913514 | 114 | 0.304838 | 398 | 4,609 | 3.520101 | 0.306533 | 0.017131 | 0.028551 | 0.039258 | 0.14561 | 0.10778 | 0.074946 | 0.039971 | 0.039971 | 0.039971 | 0 | 0.028232 | 0.561944 | 4,609 | 184 | 115 | 25.048913 | 0.665676 | 0.004122 | 0 | 0.132075 | 0 | 0.009434 | 0.170841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.056604 | 0 | 0.103774 | 0.160377 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
5b6519fab19592b5d708aab835834c2316f52e19 | 215 | py | Python | applications/utopianIdentificationNumber.py | silvioedu/HackerRank-Regex-Practice | dc2f2719385626375eb719b38baf6315ff23cad4 | [
"MIT"
] | null | null | null | applications/utopianIdentificationNumber.py | silvioedu/HackerRank-Regex-Practice | dc2f2719385626375eb719b38baf6315ff23cad4 | [
"MIT"
] | null | null | null | applications/utopianIdentificationNumber.py | silvioedu/HackerRank-Regex-Practice | dc2f2719385626375eb719b38baf6315ff23cad4 | [
"MIT"
] | null | null | null | import re
if __name__ == '__main__':
regex = r'^[a-z]{0,3}\d{2,8}[A-Z]{3,}$'
dict = {True: "VALID", False: "INVALID"}
for _ in range(int(input())):
print(dict[bool(re.search(regex, input()))])
| 23.888889 | 52 | 0.544186 | 34 | 215 | 3.176471 | 0.794118 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02907 | 0.2 | 215 | 8 | 53 | 26.875 | 0.598837 | 0 | 0 | 0 | 0 | 0.166667 | 0.223256 | 0.130233 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 |
5b6bee3192af1b373757cdbbe704a4c0c306665e | 1,430 | py | Python | ssh_interface/ssh.py | ilya-rarov/scylladb_installer | fa97be79f14e3fae12fadcdcb7ff9a41b87ae82d | [
"Apache-2.0"
] | null | null | null | ssh_interface/ssh.py | ilya-rarov/scylladb_installer | fa97be79f14e3fae12fadcdcb7ff9a41b87ae82d | [
"Apache-2.0"
] | null | null | null | ssh_interface/ssh.py | ilya-rarov/scylladb_installer | fa97be79f14e3fae12fadcdcb7ff9a41b87ae82d | [
"Apache-2.0"
] | null | null | null | import paramiko
from base64 import b64decode
class MissingAuthInformation(Exception):
pass
class MissingSudoPassword(Exception):
pass
class SSHConnection:
def __init__(self, host, port, user, password=None):
self._host = host
self._port = port
self._user = user
if passw... | 32.5 | 90 | 0.582517 | 142 | 1,430 | 5.598592 | 0.429577 | 0.075472 | 0.045283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007376 | 0.336364 | 1,430 | 43 | 91 | 33.255814 | 0.830348 | 0 | 0 | 0.138889 | 0 | 0 | 0.040559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.277778 | 0.055556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5b6d16a281f19baa0b436d94162882bd61492151 | 2,381 | py | Python | test/CSRF-server.py | DanNegrea/PyRules | 0f170db131e5e5b5d0930bc2f0ac5edd25346ee4 | [
"MIT"
] | 9 | 2018-03-13T04:17:50.000Z | 2020-11-25T15:01:48.000Z | test/CSRF-server.py | DanNegrea/PyRules | 0f170db131e5e5b5d0930bc2f0ac5edd25346ee4 | [
"MIT"
] | 1 | 2017-11-20T21:39:53.000Z | 2018-05-28T06:15:49.000Z | test/CSRF-server.py | DanNegrea/PyRules | 0f170db131e5e5b5d0930bc2f0ac5edd25346ee4 | [
"MIT"
] | 2 | 2018-03-13T04:17:55.000Z | 2019-07-22T15:11:48.000Z | #!/usr/bin/env python
# Example server used to test Simple-CSRF-script.py and Advanced-CSRF-script.py
# GET creates the token
# POST verifies itand creates a new one
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
import string, random, re
html = """
<!DOCTYPE html>
... | 22.462264 | 96 | 0.695086 | 319 | 2,381 | 5.065831 | 0.37931 | 0.034653 | 0.034035 | 0.037129 | 0.288985 | 0.241955 | 0.241955 | 0.197401 | 0.197401 | 0.197401 | 0 | 0.008517 | 0.161697 | 2,381 | 106 | 97 | 22.462264 | 0.801102 | 0.083578 | 0 | 0.239437 | 0 | 0 | 0.293848 | 0.022957 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042254 | null | null | 0.084507 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5b700fd0fdb1aed7a30ebaef59014f9f7da20dc0 | 389 | py | Python | w2v_setup/jsontest.py | derdav3/tf-sparql | 6d3fe6e3b6824a4cd5468a243829b71f5b0952f2 | [
"MIT"
] | 5 | 2017-03-13T18:35:32.000Z | 2019-09-28T19:30:31.000Z | w2v_setup/jsontest.py | derdav3/tf-sparql | 6d3fe6e3b6824a4cd5468a243829b71f5b0952f2 | [
"MIT"
] | null | null | null | w2v_setup/jsontest.py | derdav3/tf-sparql | 6d3fe6e3b6824a4cd5468a243829b71f5b0952f2 | [
"MIT"
] | null | null | null | def something(a,b):
if a > 11:
print a, b
return True
else:
return False
for a in xrange(10):
for b in xrange(20):
print a, b
if something(a, b):
# Break the inner loop...
break
else:
# Continue if the inner loop wasn't broken.
... | 21.611111 | 51 | 0.51928 | 55 | 389 | 3.672727 | 0.472727 | 0.039604 | 0.108911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025862 | 0.403599 | 389 | 18 | 52 | 21.611111 | 0.844828 | 0.269923 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b73adbd20151d2e83811f8691515dba2ed5fc22 | 4,290 | py | Python | Program.py | bordaigorl/lemma9 | a60254908858c4d3d358f96b87ea2b896c24ed4d | [
"CC-BY-4.0"
] | null | null | null | Program.py | bordaigorl/lemma9 | a60254908858c4d3d358f96b87ea2b896c24ed4d | [
"CC-BY-4.0"
] | null | null | null | Program.py | bordaigorl/lemma9 | a60254908858c4d3d358f96b87ea2b896c24ed4d | [
"CC-BY-4.0"
] | 1 | 2020-07-18T08:45:41.000Z | 2020-07-18T08:45:41.000Z | from NameReprManager import NameReprManager
from Definition import Definition
from Process import Process
from InclusionCheck import check_inclusion
from secrets_leaks import get_secret_definition, get_leak_definition, get_leak_proc
from Widening import widen_iteratively
class Program(object):
def __init__(self,... | 38.303571 | 97 | 0.686946 | 538 | 4,290 | 5.16171 | 0.163569 | 0.051855 | 0.051855 | 0.064818 | 0.411955 | 0.371624 | 0.343176 | 0.294923 | 0.278358 | 0.278358 | 0 | 0.000607 | 0.232401 | 4,290 | 111 | 98 | 38.648649 | 0.842697 | 0.053147 | 0 | 0.269663 | 0 | 0 | 0.027874 | 0.00518 | 0 | 0 | 0 | 0 | 0.011236 | 0 | null | null | 0 | 0.067416 | null | null | 0.05618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5b7a7a4b5bb2ba4720ffbc3fdfa2a7b57fc282fb | 1,864 | py | Python | src/db.py | failip/coffee | a120f5e03313fa00356463ef40467a4ace41d228 | [
"MIT"
] | null | null | null | src/db.py | failip/coffee | a120f5e03313fa00356463ef40467a4ace41d228 | [
"MIT"
] | null | null | null | src/db.py | failip/coffee | a120f5e03313fa00356463ef40467a4ace41d228 | [
"MIT"
] | null | null | null | from pymongo import MongoClient
from user import User
import json
class Database:
def __init__(self):
self.client = MongoClient(
'localhost', 27017, username="root", password="root")
self.db = self.client.test_database
self.users = self.db.users
self.settings = self.db.... | 28.242424 | 72 | 0.600322 | 227 | 1,864 | 4.762115 | 0.251101 | 0.049954 | 0.036078 | 0.029602 | 0.26457 | 0.26457 | 0.26457 | 0.26457 | 0.26457 | 0.26457 | 0 | 0.00374 | 0.282725 | 1,864 | 65 | 73 | 28.676923 | 0.804787 | 0 | 0 | 0.192308 | 0 | 0 | 0.042382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.038462 | 0.057692 | 0.019231 | 0.442308 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b7d1962eb84c9ae90097a5b6d2af0a1d36307c8 | 2,244 | py | Python | toBus/base_bus.py | sherry0429/tobus | aa694024e18bc977c4f8c45dda4b2c1708aaef06 | [
"Apache-2.0"
] | 2 | 2018-01-30T02:28:28.000Z | 2018-01-30T02:28:32.000Z | toBus/base_bus.py | sherry0429/tobus | aa694024e18bc977c4f8c45dda4b2c1708aaef06 | [
"Apache-2.0"
] | null | null | null | toBus/base_bus.py | sherry0429/tobus | aa694024e18bc977c4f8c45dda4b2c1708aaef06 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Copyright (C) 2017 tianyou pan <sherry0429 at SOAPython>
"""
from threading import Thread
import time
import pickle
import redis
from base_msg import BaseMessage
class MsgBus(object):
access_modules = set()
def __init__(self, redis_ip, redis_port, redis_db):
self.redis_... | 34 | 111 | 0.578877 | 260 | 2,244 | 4.719231 | 0.307692 | 0.102689 | 0.07335 | 0.046455 | 0.150774 | 0.132844 | 0.05542 | 0 | 0 | 0 | 0 | 0.008701 | 0.334225 | 2,244 | 65 | 112 | 34.523077 | 0.812584 | 0.024955 | 0 | 0.042553 | 0 | 0 | 0.018868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.042553 | 0.106383 | null | null | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b81257b775a91e2ff60c04e10980e2251869967 | 22,363 | py | Python | MoinMoin/packages.py | RealTimeWeb/wikisite | 66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5 | [
"Apache-2.0"
] | 1 | 2016-04-01T04:02:28.000Z | 2016-04-01T04:02:28.000Z | Documentation/ManualSource/wikicmd/MoinMoin/packages.py | sleyzerzon/soar | 74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71 | [
"Unlicense"
] | 3 | 2020-06-26T21:21:32.000Z | 2020-06-26T21:21:36.000Z | Documentation/ManualSource/wikicmd/MoinMoin/packages.py | sleyzerzon/soar | 74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71 | [
"Unlicense"
] | 2 | 2017-01-25T20:06:44.000Z | 2021-03-25T18:39:55.000Z | # -*- coding: iso-8859-1 -*-
"""
MoinMoin - Package Installer
@copyright: 2005 MoinMoin:AlexanderSchremmer,
2007-2010 MoinMoin:ReimarBauer
@license: GNU GPL, see COPYING for details.
"""
import os, re, sys
import zipfile
from MoinMoin import config, wikiutil, caching, user
from MoinMoin.P... | 38.824653 | 130 | 0.604972 | 2,553 | 22,363 | 5.223658 | 0.182139 | 0.037118 | 0.009598 | 0.008098 | 0.360903 | 0.32521 | 0.316062 | 0.309163 | 0.279244 | 0.223305 | 0 | 0.006947 | 0.291911 | 22,363 | 575 | 131 | 38.892174 | 0.835238 | 0.015472 | 0 | 0.322946 | 0 | 0 | 0.127017 | 0.001349 | 0 | 0 | 0 | 0.003478 | 0 | 0 | null | null | 0.005666 | 0.031161 | null | null | 0.01983 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5b86dbe49a1aaebfd10ef679bf55100e6a0b0f65 | 415 | py | Python | bin/api/texsyn.py | wx-csy/P5C | 8800ae26902a0f8c6b31e98188545f23af7d129d | [
"MIT"
] | 1 | 2019-04-24T08:40:15.000Z | 2019-04-24T08:40:15.000Z | bin/api/texsyn.py | wx-csy/P5C | 8800ae26902a0f8c6b31e98188545f23af7d129d | [
"MIT"
] | null | null | null | bin/api/texsyn.py | wx-csy/P5C | 8800ae26902a0f8c6b31e98188545f23af7d129d | [
"MIT"
] | 1 | 2019-04-24T08:41:45.000Z | 2019-04-24T08:41:45.000Z | from .. import lang, prob
from .. import common as com
import csv, sys, pathlib
def contest() :
com.setroot()
print(r'\input{../../resource/statement/stat.tex}')
print(r'\begin{document}')
meta:dict = prob.load_problist()
for shortname in sorted(meta, key=lambda k:meta[k]['order']) :
print(... | 31.923077 | 79 | 0.640964 | 57 | 415 | 4.649123 | 0.649123 | 0.090566 | 0.120755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163855 | 415 | 12 | 80 | 34.583333 | 0.763689 | 0 | 0 | 0 | 0 | 0 | 0.301205 | 0.216867 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5b89fb7862fe177676b2020eea37a85c2aad523a | 1,493 | py | Python | libs/applus/applus/django/db/models/manager.py | cnicgpaul123/killNCP | aa153919389784354d1efa0c9669393a7ffe7cf7 | [
"MulanPSL-1.0"
] | 5 | 2020-02-24T06:29:08.000Z | 2021-03-07T06:46:26.000Z | libs/applus/applus/django/db/models/manager.py | cnicgpaul123/killNCP | aa153919389784354d1efa0c9669393a7ffe7cf7 | [
"MulanPSL-1.0"
] | 3 | 2020-06-06T01:21:19.000Z | 2021-06-10T22:36:13.000Z | libs/applus/applus/django/db/models/manager.py | cnicgpaul123/killNCP | aa153919389784354d1efa0c9669393a7ffe7cf7 | [
"MulanPSL-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
""" ManagerCacheMixin """
# pylint: disable=too-few-public-methods,no-self-use
from django.conf import settings
from django.core.cache import caches, cache
from django.utils import functional
from django.utils import module_loading
class ManagerCacheMixin:
""" ManagerCacheMixin """
SE... | 29.86 | 70 | 0.641661 | 169 | 1,493 | 5.526627 | 0.384615 | 0.09636 | 0.08137 | 0.044968 | 0.134904 | 0.089936 | 0 | 0 | 0 | 0 | 0 | 0.000895 | 0.251842 | 1,493 | 49 | 71 | 30.469388 | 0.835273 | 0.123242 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.15625 | 0 | 0.59375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5b8ac4360726b62d9df8312e9c4ba5def7a3c51d | 538 | py | Python | tests/test_s3.py | calebmarcus/awacs | ce7d32cea496c714f501bede4e4052db6f1ee8a2 | [
"BSD-2-Clause"
] | null | null | null | tests/test_s3.py | calebmarcus/awacs | ce7d32cea496c714f501bede4e4052db6f1ee8a2 | [
"BSD-2-Clause"
] | 19 | 2020-11-30T06:43:54.000Z | 2022-02-21T09:02:54.000Z | tests/test_s3.py | calebmarcus/awacs | ce7d32cea496c714f501bede4e4052db6f1ee8a2 | [
"BSD-2-Clause"
] | 1 | 2020-04-03T06:37:42.000Z | 2020-04-03T06:37:42.000Z | import unittest
from awacs.s3 import ARN
class TestARN(unittest.TestCase):
def test_aws(self):
arn = ARN("bucket/key", "us-east-1", "account")
self.assertEqual(arn.JSONrepr(), "arn:aws:s3:::bucket/key")
def test_cn(self):
arn = ARN("bucket/key", "cn-north-1", "account")
self.... | 29.888889 | 74 | 0.618959 | 78 | 538 | 4.230769 | 0.320513 | 0.163636 | 0.090909 | 0.145455 | 0.657576 | 0.490909 | 0.363636 | 0.363636 | 0 | 0 | 0 | 0.015982 | 0.185874 | 538 | 17 | 75 | 31.647059 | 0.737443 | 0 | 0 | 0 | 0 | 0 | 0.301115 | 0.14684 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.166667 | 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 |
5b8cc26b4d86d3f3ab687b2ad2e0fedd2dafeb93 | 1,700 | py | Python | research_mnist/test.py | Gaon-Choi/CSE4007 | 6ac089648c4c48407350ed0b7f1d0947c5c81d4b | [
"MIT"
] | null | null | null | research_mnist/test.py | Gaon-Choi/CSE4007 | 6ac089648c4c48407350ed0b7f1d0947c5c81d4b | [
"MIT"
] | null | null | null | research_mnist/test.py | Gaon-Choi/CSE4007 | 6ac089648c4c48407350ed0b7f1d0947c5c81d4b | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import sklearn.linear_model
import sklearn.discriminant_analysis
import sklearn.svm
import sklearn.neighbors
import sklearn.neural_network
from sklearn import datasets
from sklearn.model_selection import train_test_split
import numpy as np
import time
from openTSNE.sklearn import TSNE
f... | 35.416667 | 103 | 0.717059 | 271 | 1,700 | 4.328413 | 0.424354 | 0.055413 | 0.034101 | 0.030691 | 0.044331 | 0.044331 | 0.044331 | 0 | 0 | 0 | 0 | 0.033715 | 0.127647 | 1,700 | 48 | 104 | 35.416667 | 0.757249 | 0.027647 | 0 | 0 | 0 | 0 | 0.052695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.342105 | 0 | 0.342105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5b92ef5a25b03524fbad2efc3725c34a055743fc | 4,001 | py | Python | sec09-3_apply_cfg_netmiko/apply_cfg.py | codered-by-ec-council/Network-Automation-in-Python | c8efba489d22db4e488b0c4c1145517bdb629b22 | [
"MIT"
] | null | null | null | sec09-3_apply_cfg_netmiko/apply_cfg.py | codered-by-ec-council/Network-Automation-in-Python | c8efba489d22db4e488b0c4c1145517bdb629b22 | [
"MIT"
] | null | null | null | sec09-3_apply_cfg_netmiko/apply_cfg.py | codered-by-ec-council/Network-Automation-in-Python | c8efba489d22db4e488b0c4c1145517bdb629b22 | [
"MIT"
] | 2 | 2022-01-18T12:26:38.000Z | 2022-01-22T16:07:40.000Z | #!/usr/bin/env python3
import argparse
import getpass
import netmiko
import os
def get_creds_interactive(get_secret=False):
"""
Function to interactively query for network device credentials
:param get_secret: Optional argument to query for enable or secret. Defaults to False and sec set to pwd.
:ret... | 31.015504 | 116 | 0.677581 | 543 | 4,001 | 4.841621 | 0.311234 | 0.031951 | 0.021301 | 0.021301 | 0.242678 | 0.187904 | 0.170407 | 0.150628 | 0.150628 | 0.150628 | 0 | 0.000989 | 0.242189 | 4,001 | 128 | 117 | 31.257813 | 0.866095 | 0.368908 | 0 | 0.19697 | 0 | 0.015152 | 0.238506 | 0 | 0 | 0 | 0 | 0.007813 | 0 | 1 | 0.060606 | false | 0.075758 | 0.060606 | 0 | 0.166667 | 0.075758 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5b9df880c3d5cc66b4c61baf0e4cdd7d2ea6fba3 | 238 | py | Python | enigma/__version__.py | axevalley/enigma | fdfa5a85dbd4675f195e00e4b7e22d976a3d9015 | [
"MIT"
] | null | null | null | enigma/__version__.py | axevalley/enigma | fdfa5a85dbd4675f195e00e4b7e22d976a3d9015 | [
"MIT"
] | 28 | 2019-07-30T16:15:52.000Z | 2022-03-14T19:14:25.000Z | enigma/__version__.py | lukeshiner/enigma | 917066c8f33f67b43f092800ba46220d107f622b | [
"MIT"
] | null | null | null | """Tabler."""
__title__ = "enigma"
__description__ = "Enigma emulator"
__url__ = ""
__version__ = "0.1"
__author__ = "Luke Shiner"
__author_email__ = "luke@lukeshiner.com"
__license__ = "MIT"
__copyright__ = "Copyright 2019 Luke Shiner"
| 21.636364 | 44 | 0.726891 | 25 | 238 | 5.6 | 0.76 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.130252 | 238 | 10 | 45 | 23.8 | 0.647343 | 0.029412 | 0 | 0 | 0 | 0 | 0.368889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ba37716f480b7ee881f394b7da7cc831c4bf75d | 451 | py | Python | Dataset/Leetcode/train/111/329.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/111/329.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/111/329.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, root: TreeNode) -> int:
if not root:
return 0
self.min_depth = float('inf')
def dfs(root, depth):
if not root:
return
if not root.left and not root.right:
self.min_depth = min(self.min_depth, d... | 28.1875 | 59 | 0.507761 | 59 | 451 | 3.813559 | 0.355932 | 0.124444 | 0.213333 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.396896 | 451 | 15 | 60 | 30.066667 | 0.8125 | 0 | 0 | 0.142857 | 0 | 0 | 0.006667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 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 |
5baff347fdfa8a9c0ba2ba2303ebdefaff1759ef | 1,709 | py | Python | homeassistant/components/elgato/button.py | charithmadhuranga/core | 06329a2f43ba82df6e0c6250fa6965f9259cfe8a | [
"Apache-2.0"
] | 1 | 2021-12-02T23:28:50.000Z | 2021-12-02T23:28:50.000Z | homeassistant/components/elgato/button.py | charithmadhuranga/core | 06329a2f43ba82df6e0c6250fa6965f9259cfe8a | [
"Apache-2.0"
] | 277 | 2021-10-04T06:39:33.000Z | 2021-12-28T22:04:17.000Z | homeassistant/components/elgato/button.py | charithmadhuranga/core | 06329a2f43ba82df6e0c6250fa6965f9259cfe8a | [
"Apache-2.0"
] | 1 | 2022-02-09T00:30:51.000Z | 2022-02-09T00:30:51.000Z | """Support for Elgato button."""
from __future__ import annotations
import logging
from elgato import Elgato, ElgatoError, Info
from homeassistant.components.button import ButtonEntity, ButtonEntityDescription
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from home... | 33.509804 | 85 | 0.726156 | 183 | 1,709 | 6.584699 | 0.448087 | 0.070539 | 0.039834 | 0.049793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187244 | 1,709 | 50 | 86 | 34.18 | 0.867531 | 0.053248 | 0 | 0 | 0 | 0 | 0.083665 | 0.033201 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.323529 | 0 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5bb3635eaafedaf1eef34ac5aefbcd055b159272 | 787 | py | Python | appi2c/ext/icon/icon_controller.py | andrequeiroz2/appi2c | 82e0a6e48ae69f301173c6d8c5990ee083c95da3 | [
"MIT"
] | 9 | 2020-12-28T14:37:11.000Z | 2021-02-01T10:16:19.000Z | appi2c/ext/icon/icon_controller.py | andrequeiroz2/appi2c | 82e0a6e48ae69f301173c6d8c5990ee083c95da3 | [
"MIT"
] | 2 | 2021-01-04T11:57:10.000Z | 2021-01-28T22:06:38.000Z | appi2c/ext/icon/icon_controller.py | andrequeiroz2/appi2c | 82e0a6e48ae69f301173c6d8c5990ee083c95da3 | [
"MIT"
] | 1 | 2021-01-28T21:37:19.000Z | 2021-01-28T21:37:19.000Z | from appi2c.ext.database import db
from appi2c.ext.icon.icon_models import Icon
def list_all_icon():
icon = Icon.query.all()
return icon
def list_icon_id(id: int) -> Icon:
icon = Icon.query.filter_by(id=id).first()
return icon
def create_icon(html_class: str):
icon = Icon(html_class=html_class... | 23.147059 | 67 | 0.678526 | 122 | 787 | 4.180328 | 0.303279 | 0.109804 | 0.076471 | 0.1 | 0.241176 | 0.241176 | 0 | 0 | 0 | 0 | 0 | 0.003215 | 0.209657 | 787 | 33 | 68 | 23.848485 | 0.81672 | 0 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.086957 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5bb5096430c1dcf27a2be525359b5c7e0f505833 | 1,791 | py | Python | src/rdbms-connect/azext_rdbms_connect/vendored_sdks/postgresql_flexibleservers/models/_postgre_sql_management_client_enums.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 2 | 2021-06-05T17:51:26.000Z | 2021-11-17T11:17:56.000Z | src/rdbms-connect/azext_rdbms_connect/vendored_sdks/postgresql_flexibleservers/models/_postgre_sql_management_client_enums.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 3 | 2020-05-27T20:16:26.000Z | 2020-07-23T19:46:49.000Z | src/rdbms-connect/azext_rdbms_connect/vendored_sdks/postgresql_flexibleservers/models/_postgre_sql_management_client_enums.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 5 | 2020-05-09T17:47:09.000Z | 2020-10-01T19:52:06.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 21.070588 | 76 | 0.635958 | 169 | 1,791 | 6.656805 | 0.609467 | 0.062222 | 0.017778 | 0.037333 | 0.074667 | 0.074667 | 0.074667 | 0 | 0 | 0 | 0 | 0.003458 | 0.19263 | 1,791 | 84 | 77 | 21.321429 | 0.77455 | 0.252373 | 0 | 0.116279 | 0 | 0 | 0.218373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 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 |
5bb78fafaa40e026533684499c56e21e1ee2b2eb | 715 | py | Python | drf_msal_jwt/exceptions.py | narongdejsrn/django-rest-framework-msal | 0e969aadf7a681b24b630c008f05be1d339d0df4 | [
"MIT"
] | 3 | 2020-04-22T01:56:41.000Z | 2021-06-22T15:21:57.000Z | drf_msal_jwt/exceptions.py | narongdejsrn/django-rest-framework-msal | 0e969aadf7a681b24b630c008f05be1d339d0df4 | [
"MIT"
] | 2 | 2021-01-08T09:04:16.000Z | 2021-07-20T19:43:15.000Z | drf_msal_jwt/exceptions.py | narongdejsrn/django-rest-framework-msal | 0e969aadf7a681b24b630c008f05be1d339d0df4 | [
"MIT"
] | 4 | 2020-05-25T07:34:37.000Z | 2021-06-11T07:37:59.000Z | from rest_framework.exceptions import APIException
class CodeException(APIException):
status_code = 401
default_detail = 'Invalid authorization code'
default_code = 'code_error'
class DomainException(APIException):
status_code = 403
default_detail = "The account from the domain you sign in are n... | 27.5 | 87 | 0.756643 | 87 | 715 | 6 | 0.45977 | 0.137931 | 0.168582 | 0.143678 | 0.245211 | 0.245211 | 0.172414 | 0 | 0 | 0 | 0 | 0.020548 | 0.183217 | 715 | 25 | 88 | 28.6 | 0.873288 | 0 | 0 | 0.176471 | 0 | 0 | 0.328671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 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 |
5bbd14104e9678556b2ad24e6614ef1d8a0e04c4 | 1,030 | py | Python | image_tweet.py | pipinstallyogi/Basic_scripts | 486b66e02601abf8eab1b2ef42ae836615c23a77 | [
"MIT"
] | null | null | null | image_tweet.py | pipinstallyogi/Basic_scripts | 486b66e02601abf8eab1b2ef42ae836615c23a77 | [
"MIT"
] | null | null | null | image_tweet.py | pipinstallyogi/Basic_scripts | 486b66e02601abf8eab1b2ef42ae836615c23a77 | [
"MIT"
] | null | null | null | from selenium import webdriver
from getpass import getpass
from time import sleep
usr = input("Enter your username or Email: ")
pwd = getpass("Enter your password: ") #getpass() will help your password remain hidden
image_path = input("Please enter your image path: ")
driver =webdriver.Firefox() # or Firefox() if usi... | 35.517241 | 117 | 0.801942 | 156 | 1,030 | 5.070513 | 0.403846 | 0.063211 | 0.107459 | 0.120101 | 0.216182 | 0.212389 | 0.174463 | 0.083439 | 0 | 0 | 0 | 0.004242 | 0.084466 | 1,030 | 29 | 118 | 35.517241 | 0.834571 | 0.11068 | 0 | 0.181818 | 0 | 0 | 0.320569 | 0.167396 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.136364 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5bc8a09908c63604a4bec8356dc13d3d27ee97e1 | 1,090 | py | Python | urls.py | princeofdatamining/blueking-sample | 7d8b345d5052aa70b7f8566d3648c78655e3fced | [
"Apache-2.0"
] | null | null | null | urls.py | princeofdatamining/blueking-sample | 7d8b345d5052aa70b7f8566d3648c78655e3fced | [
"Apache-2.0"
] | null | null | null | urls.py | princeofdatamining/blueking-sample | 7d8b345d5052aa70b7f8566d3648c78655e3fced | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云(BlueKing) available.
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
You may obt... | 41.923077 | 115 | 0.762385 | 162 | 1,090 | 5.111111 | 0.654321 | 0.072464 | 0.031401 | 0.038647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007584 | 0.153211 | 1,090 | 25 | 116 | 43.6 | 0.889491 | 0.692661 | 0 | 0 | 0 | 0 | 0.16 | 0.064615 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5bc95013ec2f0a313eb8b8b94d9888aebfebd4ac | 329 | py | Python | altair_examples/simple_line_chart.py | progressivis/altair_examples | 9a453ecebdf0bd4776696d4233bee2a8f2eb3606 | [
"BSD-3-Clause"
] | 1 | 2021-10-30T03:55:24.000Z | 2021-10-30T03:55:24.000Z | altair_examples/simple_line_chart.py | progressivis/altair_examples | 9a453ecebdf0bd4776696d4233bee2a8f2eb3606 | [
"BSD-3-Clause"
] | null | null | null | altair_examples/simple_line_chart.py | progressivis/altair_examples | 9a453ecebdf0bd4776696d4233bee2a8f2eb3606 | [
"BSD-3-Clause"
] | null | null | null | """
Simple Line Chart
-----------------
This chart shows the most basic line chart, made from a dataframe with two
columns.
"""
# category: simple charts
import altair as alt
import numpy as np
x = np.arange(100)
source = alt.pd.DataFrame({"x": x, "f(x)": np.sin(x / 5)})
alt.Chart(source).mark_line().encode(x="x", y... | 20.5625 | 74 | 0.641337 | 56 | 329 | 3.75 | 0.607143 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.148936 | 329 | 15 | 75 | 21.933333 | 0.735714 | 0.43769 | 0 | 0 | 0 | 0 | 0.056497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5bd1b5cdacd4a8c14856d73dcb37eeea8e575e21 | 1,180 | py | Python | musicscore/musicxml/attributes/textdecoration.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | 2 | 2020-06-22T13:33:28.000Z | 2020-12-30T15:09:00.000Z | musicscore/musicxml/attributes/textdecoration.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | 37 | 2020-02-18T12:15:00.000Z | 2021-12-13T20:01:14.000Z | musicscore/musicxml/attributes/textdecoration.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | null | null | null | from musicscore.musicxml.attributes.attribute_abstract import AttributeAbstract
class Underline(AttributeAbstract):
""""""
def __init__(self, underline=None, *args, **kwargs):
super().__init__(*args, **kwargs)
self.generate_attribute('underline', underline, "TypeNumberOfLines")
class Overli... | 31.891892 | 120 | 0.692373 | 129 | 1,180 | 6.03876 | 0.449612 | 0.102696 | 0.056483 | 0.097561 | 0.245186 | 0.245186 | 0.207959 | 0.207959 | 0.207959 | 0.207959 | 0 | 0 | 0.180508 | 1,180 | 36 | 121 | 32.777778 | 0.805584 | 0.20678 | 0 | 0.25 | 0 | 0 | 0.089485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5bda4940258ae1a577acabde9fdc25daaafd013c | 485 | py | Python | hknweb/alumni/migrations/0003_auto_20220303_1955.py | jyxzhang/hknweb | a01ffd8587859bf63c46213be6a0c8b87164a5c2 | [
"MIT"
] | null | null | null | hknweb/alumni/migrations/0003_auto_20220303_1955.py | jyxzhang/hknweb | a01ffd8587859bf63c46213be6a0c8b87164a5c2 | [
"MIT"
] | null | null | null | hknweb/alumni/migrations/0003_auto_20220303_1955.py | jyxzhang/hknweb | a01ffd8587859bf63c46213be6a0c8b87164a5c2 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.8 on 2022-03-04 03:55
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('alumni', '0002_auto_20220228_1252'),
]
operations = [
migrations.AlterField(
model_name='alumnus',... | 24.25 | 119 | 0.645361 | 53 | 485 | 5.830189 | 0.716981 | 0.064725 | 0.12945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089189 | 0.237113 | 485 | 19 | 120 | 25.526316 | 0.745946 | 0.092784 | 0 | 0 | 1 | 0 | 0.09589 | 0.052511 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5bdc174db64ca9782764839c5c4ae71bbf09e8db | 14,149 | py | Python | sdk/python/pulumi_azure_native/network/v20151101/outputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/network/v20151101/outputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/network/v20151101/outputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | 43.535385 | 340 | 0.653756 | 1,779 | 14,149 | 5.062957 | 0.107364 | 0.022649 | 0.037748 | 0.049073 | 0.710336 | 0.667703 | 0.633951 | 0.580659 | 0.555901 | 0.523149 | 0 | 0.002016 | 0.263764 | 14,149 | 324 | 341 | 43.669753 | 0.862628 | 0.39918 | 0 | 0.338542 | 1 | 0.015625 | 0.139443 | 0.028119 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.026042 | 0 | 0.322917 | 0 | 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 |
5bdfe1bbb68fea65f13c9ebf05915e6024459ae7 | 269 | py | Python | openktn/native/microstate.py | uibcdf/OpenKinNet | 8ed5d3da561e7a0f62ac80cb02cc09116c08ac25 | [
"MIT"
] | null | null | null | openktn/native/microstate.py | uibcdf/OpenKinNet | 8ed5d3da561e7a0f62ac80cb02cc09116c08ac25 | [
"MIT"
] | null | null | null | openktn/native/microstate.py | uibcdf/OpenKinNet | 8ed5d3da561e7a0f62ac80cb02cc09116c08ac25 | [
"MIT"
] | null | null | null |
class Microstate():
def __init__(self):
self.index = None
self.label = None
self.weight = 0.0
self.probability = 0.0
self.basin = None
self.coordinates = None
self.color = None
self.size = None
| 15.823529 | 31 | 0.527881 | 31 | 269 | 4.451613 | 0.483871 | 0.289855 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.3829 | 269 | 16 | 32 | 16.8125 | 0.807229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 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 |
5be5dbabad7b20334628ec9d59b27cadafb71081 | 1,023 | py | Python | Ejercicio 1/biblioteca/admin.py | DiogenesPuig/Ejercicios-con-Django | ea04773bd0a820f800689a5fe2331964bc74bf63 | [
"MIT"
] | null | null | null | Ejercicio 1/biblioteca/admin.py | DiogenesPuig/Ejercicios-con-Django | ea04773bd0a820f800689a5fe2331964bc74bf63 | [
"MIT"
] | null | null | null | Ejercicio 1/biblioteca/admin.py | DiogenesPuig/Ejercicios-con-Django | ea04773bd0a820f800689a5fe2331964bc74bf63 | [
"MIT"
] | null | null | null | from django.contrib import admin
from biblioteca.models import Autor
from biblioteca.models import Libro
from biblioteca.models import Ejemplar
from biblioteca.models import Usuario
class LibroInline(admin.TabularInline):
model = Libro
class LibroAdmin(admin.ModelAdmin):
list_display = ('Titulo','Editorial',... | 26.230769 | 53 | 0.710655 | 105 | 1,023 | 6.847619 | 0.380952 | 0.076495 | 0.111266 | 0.144645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152493 | 1,023 | 38 | 54 | 26.921053 | 0.829296 | 0 | 0 | 0 | 0 | 0 | 0.142718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16129 | 0 | 0.645161 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5beb115929c3e6b139312340f7d99edd3fa03d85 | 767 | py | Python | run.py | tzom/yHydra | 094714069302d0f5ce1913346d8cde8e24c7a59c | [
"MIT"
] | null | null | null | run.py | tzom/yHydra | 094714069302d0f5ce1913346d8cde8e24c7a59c | [
"MIT"
] | null | null | null | run.py | tzom/yHydra | 094714069302d0f5ce1913346d8cde8e24c7a59c | [
"MIT"
] | 1 | 2022-01-11T11:30:00.000Z | 2022-01-11T11:30:00.000Z | import sys,os
os.environ['YHYDRA_CONFIG'] = sys.argv[1]
import setup_device
from load_config import CONFIG
import glob
RAWs = glob.glob(CONFIG['RAWs'])
FASTA = glob.glob(CONFIG['FASTA'])[0]
from fasta2db import digest_fasta
f = digest_fasta(FASTA,REVERSE_DECOY=False)
r = digest_fasta(FASTA,REVERSE_DECOY=True)
fr... | 23.242424 | 56 | 0.779661 | 123 | 767 | 4.658537 | 0.333333 | 0.08377 | 0.048866 | 0.080279 | 0.167539 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004444 | 0.119948 | 767 | 33 | 57 | 23.242424 | 0.844444 | 0.043025 | 0 | 0 | 0 | 0 | 0.040872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.478261 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5beff5fae47902bf1dbac53df83df60fd6dbdd87 | 326 | py | Python | eflow/_hidden/general_objects/enum.py | EricCacciavillani/eFlow | 19a4f7c08037ae1925eb098c43f802df46d52b05 | [
"MIT"
] | 1 | 2019-10-16T13:42:19.000Z | 2019-10-16T13:42:19.000Z | eflow/_hidden/general_objects/enum.py | EricCacciavillani/eFlow | 19a4f7c08037ae1925eb098c43f802df46d52b05 | [
"MIT"
] | 14 | 2020-02-03T22:13:55.000Z | 2022-03-12T00:12:27.000Z | eflow/_hidden/general_objects/enum.py | EricCacciavillani/eFlow | 19a4f7c08037ae1925eb098c43f802df46d52b05 | [
"MIT"
] | null | null | null | __author__ = "Eric Cacciavillani"
__copyright__ = "Copyright 2019, eFlow"
__credits__ = ["Eric Cacciavillani"]
__license__ = "MIT"
__maintainer__ = "EricCacciavillani"
__email__ = "eric.cacciavillani@gmail.com"
def enum(**enums):
"""
Allows for constant like variables.
"""
return type('Enum', (), ... | 25.076923 | 43 | 0.693252 | 31 | 326 | 6.516129 | 0.774194 | 0.252475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 0.171779 | 326 | 13 | 44 | 25.076923 | 0.733333 | 0.107362 | 0 | 0 | 0 | 0 | 0.400735 | 0.102941 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5bf1f7d378693344a2a82c8267c98bd310b42f17 | 443 | py | Python | tokens/urls.py | Shelo/cmdoc | 38d2da1a74ce6ab8144d5710ad3869ec73c46616 | [
"MIT"
] | null | null | null | tokens/urls.py | Shelo/cmdoc | 38d2da1a74ce6ab8144d5710ad3869ec73c46616 | [
"MIT"
] | null | null | null | tokens/urls.py | Shelo/cmdoc | 38d2da1a74ce6ab8144d5710ad3869ec73c46616 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from tokens import views
urlpatterns = [
url(
r'^(?P<document_id>[0-9]+)/create/',
views.create,
name='create'
),
url(
r'^(?P<document_id>[0-9]+)/remove/(?P<token_key>[a-zA-Z_-]+)/',
views.remove,
name='remove'
),
ur... | 19.26087 | 71 | 0.498871 | 58 | 443 | 3.706897 | 0.413793 | 0.037209 | 0.069767 | 0.181395 | 0.237209 | 0.237209 | 0.237209 | 0 | 0 | 0 | 0 | 0.025237 | 0.284424 | 443 | 22 | 72 | 20.136364 | 0.652997 | 0 | 0 | 0.315789 | 0 | 0.052632 | 0.367946 | 0.327314 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 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 |
5bf5f902a9ad04b05246dadd7442e07d809c87dd | 851 | py | Python | dataset/disp_fig.py | jajatikr/Video-Inpainting | d524d7a58cd543a0e832f3c519900a2b1880b1bb | [
"MIT"
] | 16 | 2018-07-22T11:19:34.000Z | 2021-02-19T07:44:16.000Z | dataset/disp_fig.py | jajatikr/Video-Inpainting | d524d7a58cd543a0e832f3c519900a2b1880b1bb | [
"MIT"
] | 2 | 2018-09-05T20:02:33.000Z | 2019-05-15T21:04:57.000Z | dataset/disp_fig.py | jajatikr/Video-Inpainting | d524d7a58cd543a0e832f3c519900a2b1880b1bb | [
"MIT"
] | 10 | 2018-04-20T16:05:13.000Z | 2019-09-13T21:43:52.000Z | import matplotlib.pyplot as plt
import numpy as np
class disp_fig(object):
"""
Class to display video frames
Args:
Accepts video frames numpy array to display using matplotlib
Output:
Displays 8 video frames using matplotlib window
"""
def __init__(self, arr):
self.array = a... | 23 | 64 | 0.584019 | 111 | 851 | 4.324324 | 0.504505 | 0.091667 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031304 | 0.324324 | 851 | 36 | 65 | 23.638889 | 0.803478 | 0.290247 | 0 | 0 | 0 | 0 | 0.014035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.058824 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5bfc9861b86f8ea199e60eeaa2047b564e8a6ae6 | 1,879 | py | Python | specs/egg_spec.py | jaimegildesagredo/server-expects | 972bc816be8fbf00f4689fd3a3e51675bb0b2c52 | [
"Apache-2.0"
] | 4 | 2015-01-05T17:18:02.000Z | 2017-02-26T13:59:17.000Z | specs/egg_spec.py | jaimegildesagredo/server-expects | 972bc816be8fbf00f4689fd3a3e51675bb0b2c52 | [
"Apache-2.0"
] | null | null | null | specs/egg_spec.py | jaimegildesagredo/server-expects | 972bc816be8fbf00f4689fd3a3e51675bb0b2c52 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os.path
from expects import expect
from expects.testing import failure
from server_expects import *
from .constants import c
with describe('egg'):
with describe('be_installed'):
with it('passes if package is installed'):
expect(egg(c.AN_INSTALLED_EGG_NAME)).t... | 36.843137 | 92 | 0.641299 | 244 | 1,879 | 4.704918 | 0.196721 | 0.11324 | 0.10453 | 0.118467 | 0.654181 | 0.52439 | 0.52439 | 0.483449 | 0.420732 | 0.291812 | 0 | 0.000722 | 0.262906 | 1,879 | 50 | 93 | 37.58 | 0.828159 | 0.011176 | 0 | 0.235294 | 0 | 0 | 0.203125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.117647 | 0.147059 | 0.029412 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5bfce79947abd053e8dd62d80e7cd5ec3be9b3bc | 496 | py | Python | home/migrations/0012_homepage_sector_button_text.py | uktrade/invest | 15b84c511839b46e81608fca9762d2df3f6df16c | [
"MIT"
] | 1 | 2019-01-18T03:50:46.000Z | 2019-01-18T03:50:46.000Z | home/migrations/0012_homepage_sector_button_text.py | uktrade/invest | 15b84c511839b46e81608fca9762d2df3f6df16c | [
"MIT"
] | 50 | 2018-01-24T18:04:08.000Z | 2019-01-03T03:30:30.000Z | home/migrations/0012_homepage_sector_button_text.py | uktrade/invest | 15b84c511839b46e81608fca9762d2df3f6df16c | [
"MIT"
] | 2 | 2018-02-12T15:20:52.000Z | 2019-01-18T03:51:52.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-05-09 10:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0011_auto_20180327_1341'),
]
operations = [
migrations.AddField(
... | 23.619048 | 85 | 0.637097 | 56 | 496 | 5.428571 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099196 | 0.247984 | 496 | 20 | 86 | 24.8 | 0.715818 | 0.139113 | 0 | 0 | 1 | 0 | 0.176887 | 0.054245 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7504236de18405c0e456955a84b4265e13e5a336 | 2,032 | py | Python | setup.py | ATLASControlTower/aCT | fb841bddbe086db9f0d620167c4a11ae4634ef4f | [
"Apache-2.0"
] | null | null | null | setup.py | ATLASControlTower/aCT | fb841bddbe086db9f0d620167c4a11ae4634ef4f | [
"Apache-2.0"
] | 8 | 2019-12-12T14:41:50.000Z | 2020-12-04T21:06:44.000Z | setup.py | ATLASControlTower/aCT | fb841bddbe086db9f0d620167c4a11ae4634ef4f | [
"Apache-2.0"
] | 4 | 2018-02-05T11:25:20.000Z | 2018-07-19T09:53:13.000Z | from setuptools import setup, find_packages
setup(name='aCT',
version='0.1',
description='ARC Control Tower',
url='http://github.com/ARCControlTower/aCT',
python_requires='>=3.6',
author='aCT team',
author_email='act-dev@cern.ch',
license='Apache 2.0',
package_dir = {'':... | 38.339623 | 77 | 0.54626 | 186 | 2,032 | 5.913978 | 0.553763 | 0.081818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004409 | 0.330217 | 2,032 | 52 | 78 | 39.076923 | 0.803821 | 0.091043 | 0 | 0 | 0 | 0 | 0.501903 | 0.264818 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.020408 | 0 | 0.020408 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7504cf4ca3766e8a8d1f64808d185375970af1cc | 4,834 | py | Python | philoseismos/segy/components/TextualFileHeader.py | sir-dio/old-philoseismos | 4c830971641313abd95693b24965ede261c6824b | [
"MIT"
] | 1 | 2019-10-27T14:03:00.000Z | 2019-10-27T14:03:00.000Z | philoseismos/segy/components/TextualFileHeader.py | sir-dio/old-philoseismos | 4c830971641313abd95693b24965ede261c6824b | [
"MIT"
] | null | null | null | philoseismos/segy/components/TextualFileHeader.py | sir-dio/old-philoseismos | 4c830971641313abd95693b24965ede261c6824b | [
"MIT"
] | null | null | null | """ philoseismos: with passion for the seismic method.
This file defines the TextualFileHeader object that represents
a Textual File Header of a SEG-Y file.
@author: Ivan Dubrovin
e-mail: dubrovin.io@icloud.com """
class TextualFileHeader:
""" Textual File Header for the SEG-Y file.
Textual description of... | 25.989247 | 97 | 0.559164 | 613 | 4,834 | 4.349103 | 0.257749 | 0.057764 | 0.089272 | 0.037509 | 0.250188 | 0.199925 | 0.127532 | 0.105776 | 0.069767 | 0.069767 | 0 | 0.024892 | 0.326851 | 4,834 | 185 | 98 | 26.12973 | 0.794407 | 0.46566 | 0 | 0.212766 | 0 | 0 | 0.010274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212766 | false | 0 | 0.021277 | 0.021277 | 0.276596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
750561f30f07032b527f7b72c238576bcf6d490a | 1,126 | py | Python | src/api/posts_api/serializers.py | DevHub-Azerbaycan/python_web_site | fd3b6f8d22998d47b0b1e2c74be742a5abd9f5bf | [
"MIT"
] | 25 | 2020-04-06T13:34:21.000Z | 2020-04-18T20:28:32.000Z | src/api/posts_api/serializers.py | devhub-az/python_web_site | fd3b6f8d22998d47b0b1e2c74be742a5abd9f5bf | [
"MIT"
] | 35 | 2020-03-23T11:06:45.000Z | 2020-12-16T06:18:57.000Z | src/api/posts_api/serializers.py | devhub-az/python_web_site | fd3b6f8d22998d47b0b1e2c74be742a5abd9f5bf | [
"MIT"
] | 3 | 2020-04-08T11:44:07.000Z | 2020-04-09T12:23:50.000Z | from rest_framework import serializers
from blog.models import Post
from django.contrib.auth.models import User
class UserSerializer(serializers.ModelSerializer):
fullName = serializers.SerializerMethodField()
class Meta:
model = User
fields = ['id','username','first_name','last_name','fullName... | 28.15 | 70 | 0.711368 | 123 | 1,126 | 6.276423 | 0.398374 | 0.069948 | 0.054404 | 0.062176 | 0.354922 | 0.19171 | 0.124352 | 0 | 0 | 0 | 0 | 0 | 0.193606 | 1,126 | 40 | 71 | 28.15 | 0.85022 | 0 | 0 | 0.225806 | 0 | 0 | 0.074534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.096774 | 0.096774 | 0.677419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7509856207ac8fd2db09e7bc533fe917155f9b2d | 2,480 | py | Python | 15_three_sum_sorting.py | ojhaanshu87/LeetCode | e6e4a15c4bb9f01b67c50689be3ead6c6d5df155 | [
"Unlicense"
] | null | null | null | 15_three_sum_sorting.py | ojhaanshu87/LeetCode | e6e4a15c4bb9f01b67c50689be3ead6c6d5df155 | [
"Unlicense"
] | null | null | null | 15_three_sum_sorting.py | ojhaanshu87/LeetCode | e6e4a15c4bb9f01b67c50689be3ead6c6d5df155 | [
"Unlicense"
] | null | null | null | ```
Approach 1: Hashset
Since triplets must sum up to the target value, we can try the hash table approach from the Two Sum solution. This approach won't work, however, if the sum is not necessarily equal to the target, like in 3Sum Smaller and 3Sum Closest.
We move our pivot element nums[i] and analyze elements to it... | 45.090909 | 268 | 0.66371 | 424 | 2,480 | 3.882075 | 0.334906 | 0.036452 | 0.021871 | 0.024301 | 0.134265 | 0.026731 | 0 | 0 | 0 | 0 | 0 | 0.005965 | 0.256452 | 2,480 | 54 | 269 | 45.925926 | 0.886659 | 0 | 0 | 0.090909 | 0 | 0 | 0.002823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022727 | 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 |
750c000f31d1de3b8417ee379d0c20a1968a3bfd | 5,579 | py | Python | src/training/oct_resnet.py | yutake27/P3CMQA | d25fc470d57267797ceea5614f22553656c50dbd | [
"MIT"
] | null | null | null | src/training/oct_resnet.py | yutake27/P3CMQA | d25fc470d57267797ceea5614f22553656c50dbd | [
"MIT"
] | 2 | 2021-02-15T06:32:14.000Z | 2021-05-24T09:11:24.000Z | src/training/oct_resnet.py | yutake27/P3CMQA | d25fc470d57267797ceea5614f22553656c50dbd | [
"MIT"
] | null | null | null | import chainer
import chainer.functions as F
import chainer.links as L
from octconv import OctConv
from octconv import OctConv_BN
from octconv import OctConv_BN_ACT
from octconv import oct_add, oct_function
class Building(chainer.Chain):
def __init__(self, n_in, n_mid, n_out, stride=1, alpha=0.25, bn_kwargs={}):... | 39.567376 | 136 | 0.627532 | 910 | 5,579 | 3.545055 | 0.120879 | 0.101674 | 0.055797 | 0.089275 | 0.768444 | 0.727526 | 0.654991 | 0.591135 | 0.541228 | 0.510849 | 0 | 0.059252 | 0.237677 | 5,579 | 140 | 137 | 39.85 | 0.699271 | 0.004302 | 0 | 0.425926 | 0 | 0 | 0.00144 | 0 | 0 | 0 | 0 | 0.007143 | 0 | 1 | 0.12037 | false | 0 | 0.074074 | 0 | 0.314815 | 0.009259 | 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 |
751058e9745d7638d29cbb6e42bb47d1fcf48b62 | 3,552 | py | Python | py/ftpy.py | LauriHursti/visions | c305f8ae4dac3c3b71cae6fd7b428e7acb185aff | [
"MIT"
] | 2 | 2020-08-07T20:19:34.000Z | 2020-08-30T02:39:05.000Z | py/ftpy.py | LauriHursti/visions | c305f8ae4dac3c3b71cae6fd7b428e7acb185aff | [
"MIT"
] | 4 | 2020-06-16T13:40:23.000Z | 2022-02-10T02:04:38.000Z | py/ftpy.py | LauriHursti/visions | c305f8ae4dac3c3b71cae6fd7b428e7acb185aff | [
"MIT"
] | null | null | null | # This module is a simply a wrapper for libftpy.so that acts as a remainder how its interface is defined
# C++ library libftpy must exist in same folder for this module to work
import libftpy
"""Get bounding boxes for FASText connected components found with given parameters
Parameters
----------
image : numpy array
... | 38.608696 | 170 | 0.723255 | 518 | 3,552 | 4.953668 | 0.316602 | 0.035074 | 0.028059 | 0.0265 | 0.494154 | 0.475448 | 0.456742 | 0.393609 | 0.393609 | 0.393609 | 0 | 0.017181 | 0.197072 | 3,552 | 92 | 171 | 38.608696 | 0.882539 | 0.048423 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7513d4ca630ec158ef4dc2a81608d44f92d4365e | 1,826 | py | Python | pavement.py | robotframework/HTMLChecker | b45e2c60ceaf58586465d440150b58e5ccbc2b74 | [
"ECL-2.0",
"Apache-2.0"
] | 9 | 2015-09-23T15:46:09.000Z | 2021-03-24T11:27:51.000Z | pavement.py | robotframework/HTMLChecker | b45e2c60ceaf58586465d440150b58e5ccbc2b74 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | pavement.py | robotframework/HTMLChecker | b45e2c60ceaf58586465d440150b58e5ccbc2b74 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2015-09-23T15:49:13.000Z | 2015-09-23T15:49:13.000Z | import os
from os.path import join as _join
from subprocess import call
from paver.easy import *
from paver.setuputils import setup
BASEDIR = os.path.dirname(__file__)
VERSION = '0.3'
setup(
name='robotframework-htmlchecker',
package_dir = {'': 'src'},
packages=['HTMLChecker', 'HTMLChecker.lib'],
ver... | 26.852941 | 79 | 0.648412 | 236 | 1,826 | 4.911017 | 0.461864 | 0.037964 | 0.02761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001337 | 0.180723 | 1,826 | 67 | 80 | 27.253731 | 0.773396 | 0 | 0 | 0.090909 | 0 | 0 | 0.328977 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018182 | 0.090909 | null | null | 0.054545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
75267995a71bb3a27767c30de9e1d88a64b0742f | 717 | py | Python | customer/migrations/0002_auto_20210618_2044.py | Sukikiroi/Django-Smart-lms-backend | 458fa77de3f8bd94741c480155a353530115effc | [
"MIT"
] | 1 | 2021-07-05T16:51:57.000Z | 2021-07-05T16:51:57.000Z | customer/migrations/0002_auto_20210618_2044.py | Sukikiroi/Django-Smart-lms-backend | 458fa77de3f8bd94741c480155a353530115effc | [
"MIT"
] | null | null | null | customer/migrations/0002_auto_20210618_2044.py | Sukikiroi/Django-Smart-lms-backend | 458fa77de3f8bd94741c480155a353530115effc | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-18 19:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('customer', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Messages',
fields=[
('id'... | 27.576923 | 114 | 0.567643 | 71 | 717 | 5.605634 | 0.633803 | 0.082915 | 0.090452 | 0.120603 | 0.211055 | 0.211055 | 0.211055 | 0.211055 | 0 | 0 | 0 | 0.049702 | 0.298466 | 717 | 25 | 115 | 28.68 | 0.741551 | 0.062762 | 0 | 0.105263 | 1 | 0 | 0.098507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 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 |
752b154e226e5c178db102eb87274d4d324b3141 | 297 | py | Python | src/utils/setseed.py | seung-sss/model-optimization-level3-cv-04 | 271ec0ade69177ea969957ea39c4c119937f37c8 | [
"MIT"
] | 1 | 2021-12-28T10:11:39.000Z | 2021-12-28T10:11:39.000Z | src/utils/setseed.py | seung-sss/model-optimization-level3-cv-04 | 271ec0ade69177ea969957ea39c4c119937f37c8 | [
"MIT"
] | null | null | null | src/utils/setseed.py | seung-sss/model-optimization-level3-cv-04 | 271ec0ade69177ea969957ea39c4c119937f37c8 | [
"MIT"
] | 4 | 2021-12-08T16:14:54.000Z | 2022-01-01T10:51:48.000Z | import numpy as np
import random
import torch
def setSeed(seed):
torch.manual_seed(seed)
torch.cuda.manual_seed(seed)
torch.cuda.manual_seed_all(seed) # if use multi-GPU
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False
np.random.seed(seed)
random.seed(seed) | 24.75 | 52 | 0.787879 | 47 | 297 | 4.893617 | 0.468085 | 0.13913 | 0.121739 | 0.165217 | 0.243478 | 0.243478 | 0.243478 | 0 | 0 | 0 | 0 | 0 | 0.107744 | 297 | 12 | 53 | 24.75 | 0.867925 | 0.053872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.363636 | 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 |
752cfbdca9a9b5e8cb0983ce62a986a2fd2baffd | 4,924 | py | Python | services/traction/api/endpoints/routes/v1/tenant/governance/schema_templates.py | bcgov/traction | 90cec4f1aebccd68eb986cb89dfae5819a07a2ee | [
"Apache-2.0"
] | 12 | 2022-01-29T20:30:03.000Z | 2022-03-29T11:46:14.000Z | services/traction/api/endpoints/routes/v1/tenant/governance/schema_templates.py | bcgov/traction | 90cec4f1aebccd68eb986cb89dfae5819a07a2ee | [
"Apache-2.0"
] | 38 | 2021-11-22T17:52:50.000Z | 2022-03-31T17:52:00.000Z | services/traction/api/endpoints/routes/v1/tenant/governance/schema_templates.py | bcgov/traction | 90cec4f1aebccd68eb986cb89dfae5819a07a2ee | [
"Apache-2.0"
] | 9 | 2021-11-22T18:05:48.000Z | 2022-03-29T11:25:08.000Z | import logging
from uuid import UUID
from fastapi import APIRouter, Depends
from sqlalchemy.ext.asyncio import AsyncSession
from starlette import status
from starlette.requests import Request
from api.core.config import settings
from api.endpoints.dependencies.db import get_db
from api.endpoints.dependencies.tenant_s... | 33.958621 | 84 | 0.725426 | 585 | 4,924 | 5.859829 | 0.213675 | 0.035006 | 0.028005 | 0.028005 | 0.385648 | 0.327596 | 0.320303 | 0.320303 | 0.30105 | 0.276546 | 0 | 0.003235 | 0.183794 | 4,924 | 144 | 85 | 34.194444 | 0.849714 | 0.047522 | 0 | 0.211009 | 0 | 0 | 0.118775 | 0.05097 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0 | false | 0 | 0.211009 | 0 | 0.238532 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
754186ad93697ca50b5500e080b5c106582fd4e5 | 973 | py | Python | server/sttp.py | S1ckret/stm32-esp8266-smart-house | 6141b7a1e3c041bf6e66a9d820c09af5103a61af | [
"MIT"
] | 2 | 2020-12-29T18:06:07.000Z | 2022-01-07T20:26:41.000Z | server/sttp.py | S1ckret/stm32-esp8266-smart-house | 6141b7a1e3c041bf6e66a9d820c09af5103a61af | [
"MIT"
] | 11 | 2020-09-16T15:12:24.000Z | 2020-11-12T18:46:05.000Z | server/sttp.py | LazyPride/stm32-esp12f-smart-house | 6141b7a1e3c041bf6e66a9d820c09af5103a61af | [
"MIT"
] | 1 | 2022-01-07T20:26:33.000Z | 2022-01-07T20:26:33.000Z | # S1ckret Team Transfer Protocol
import constants
dict_sensor_id_to_file = {
1 : "ledStatus.txt",
2 : "temperature.txt"
}
def handle_R_frame(msg):
sensor_id = msg[1]
payload_size = msg[2]
payload = msg[3:]
data = int.from_bytes(payload, byteorder="big")
print(f"Got frame: sensor I... | 31.387097 | 123 | 0.632066 | 131 | 973 | 4.519084 | 0.51145 | 0.081081 | 0.040541 | 0.047297 | 0.060811 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00955 | 0.24666 | 973 | 31 | 124 | 31.387097 | 0.79809 | 0.077081 | 0 | 0 | 0 | 0.041667 | 0.207852 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0.083333 | false | 0 | 0.041667 | 0 | 0.25 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7541d60d211572e9b3ba5a1c8b51f97ba28e9286 | 686 | py | Python | backend/api/migrations/0007_auto_20210930_1352.py | giacomooo/CASFEE_Project2 | 420ff488d6b9deefe6623a45ecfed299f97a4639 | [
"MIT"
] | null | null | null | backend/api/migrations/0007_auto_20210930_1352.py | giacomooo/CASFEE_Project2 | 420ff488d6b9deefe6623a45ecfed299f97a4639 | [
"MIT"
] | null | null | null | backend/api/migrations/0007_auto_20210930_1352.py | giacomooo/CASFEE_Project2 | 420ff488d6b9deefe6623a45ecfed299f97a4639 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-09-30 11:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0006_reservation_iscanceled'),
]
operations = [
migrations.AddField(
model_name='reservation',
name='Amount',... | 26.384615 | 82 | 0.603499 | 70 | 686 | 5.771429 | 0.6 | 0.089109 | 0.113861 | 0.133663 | 0.425743 | 0.425743 | 0.217822 | 0 | 0 | 0 | 0 | 0.053279 | 0.28863 | 686 | 25 | 83 | 27.44 | 0.77459 | 0.065598 | 0 | 0.421053 | 1 | 0 | 0.109546 | 0.042254 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 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 |
754cd7c49e17c86c24855408f5ed6f4ac1b3f0ac | 1,511 | py | Python | ietf/meeting/migrations/0026_cancel_107_sessions.py | hassanakbar4/ietfdb | cabee059092ae776015410640226064331c293b7 | [
"BSD-3-Clause"
] | 25 | 2022-03-05T08:26:52.000Z | 2022-03-30T15:45:42.000Z | ietf/meeting/migrations/0026_cancel_107_sessions.py | hassanakbar4/ietfdb | cabee059092ae776015410640226064331c293b7 | [
"BSD-3-Clause"
] | 219 | 2022-03-04T17:29:12.000Z | 2022-03-31T21:16:14.000Z | ietf/meeting/migrations/0026_cancel_107_sessions.py | hassanakbar4/ietfdb | cabee059092ae776015410640226064331c293b7 | [
"BSD-3-Clause"
] | 22 | 2022-03-04T15:34:34.000Z | 2022-03-28T13:30:59.000Z | # Copyright The IETF Trust 2020, All Rights Reserved
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-03-18 16:18
from __future__ import unicode_literals
from django.db import migrations
def cancel_sessions(apps, schema_editor):
Session = apps.get_model('meeting', 'Session')
SchedulingEvent = ap... | 36.853659 | 135 | 0.699537 | 172 | 1,511 | 5.947674 | 0.494186 | 0.041056 | 0.070381 | 0.055718 | 0.222874 | 0.222874 | 0.068426 | 0 | 0 | 0 | 0 | 0.025316 | 0.163468 | 1,511 | 40 | 136 | 37.775 | 0.784019 | 0.079418 | 0 | 0.214286 | 1 | 0 | 0.186734 | 0.025234 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.035714 | 0.071429 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
754d441d210662cd3952b86425cd22b9f7456d0b | 448 | py | Python | ibalert/asgi.py | ItsMilann/channels-alert | 6526397211982fad52943f386192f8a8ef89274f | [
"MIT"
] | null | null | null | ibalert/asgi.py | ItsMilann/channels-alert | 6526397211982fad52943f386192f8a8ef89274f | [
"MIT"
] | null | null | null | ibalert/asgi.py | ItsMilann/channels-alert | 6526397211982fad52943f386192f8a8ef89274f | [
"MIT"
] | null | null | null | import imp
from channels.routing import ProtocolTypeRouter, URLRouter
from channels.auth import AuthMiddlewareStack
from django.urls import path
from ibalert.consumers import NotificationConsumer
application = ProtocolTypeRouter(
{
"websocket": AuthMiddlewareStack(
URLRouter(
[
... | 24.888889 | 77 | 0.629464 | 33 | 448 | 8.515152 | 0.606061 | 0.085409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.301339 | 448 | 17 | 78 | 26.352941 | 0.897764 | 0 | 0 | 0 | 0 | 0 | 0.051339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7550feb5dc2c9bc67a0d187b88c41ca0a340b4d2 | 9,788 | py | Python | src/semantic_parsing_with_constrained_lm/configs/qdmr_break_emnlp_camera_ready.py | microsoft/semantic_parsing_with_constrained_lm | 7e3c099500c3102e46d7a47469fe6840580c2b11 | [
"MIT"
] | 17 | 2021-09-22T13:08:37.000Z | 2022-03-27T10:39:53.000Z | src/semantic_parsing_with_constrained_lm/configs/qdmr_break_emnlp_camera_ready.py | microsoft/semantic_parsing_with_constrained_lm | 7e3c099500c3102e46d7a47469fe6840580c2b11 | [
"MIT"
] | 1 | 2022-03-12T01:05:15.000Z | 2022-03-12T01:05:15.000Z | src/semantic_parsing_with_constrained_lm/configs/qdmr_break_emnlp_camera_ready.py | microsoft/semantic_parsing_with_constrained_lm | 7e3c099500c3102e46d7a47469fe6840580c2b11 | [
"MIT"
] | 1 | 2021-12-16T22:26:54.000Z | 2021-12-16T22:26:54.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
"""This config file is for running experiments needed for the EMNLP camera ready.
It will generate the following experiments (depending on the value of eval_split and model):
- 100 dev examples
- GPT-3 Constrained Canonical, n = 1000
- GPT-3 C... | 38.384314 | 102 | 0.626379 | 1,065 | 9,788 | 5.492958 | 0.191549 | 0.033846 | 0.023248 | 0.034872 | 0.551282 | 0.512308 | 0.455385 | 0.425299 | 0.425299 | 0.425299 | 0 | 0.025466 | 0.297916 | 9,788 | 254 | 103 | 38.535433 | 0.825815 | 0.186555 | 0 | 0.378947 | 1 | 0 | 0.073747 | 0.014799 | 0 | 0 | 0 | 0.003937 | 0 | 1 | 0.021053 | false | 0.010526 | 0.063158 | 0.005263 | 0.1 | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75543fe4c67582bde207dd38b4a963273b61f158 | 1,089 | py | Python | tests/mocklogin_duo.py | cloudposse/duo_unix | 55af7a94408c4da2b48dde365c7a6e8d412caa0d | [
"Apache-2.0"
] | 1 | 2019-06-06T01:03:27.000Z | 2019-06-06T01:03:27.000Z | tests/mocklogin_duo.py | cloudposse/duo_unix | 55af7a94408c4da2b48dde365c7a6e8d412caa0d | [
"Apache-2.0"
] | null | null | null | tests/mocklogin_duo.py | cloudposse/duo_unix | 55af7a94408c4da2b48dde365c7a6e8d412caa0d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os
import pexpect
import paths
PROMPT = '.* or option \(1-4\): $'
def _login_duo():
p = pexpect.spawn(paths.login_duo + ' -d -c confs/mockduo.conf ' + \
'-f foobar echo SUCCESS')
p.expect(PROMPT, timeout=2)
print '===> %r' % p.match.group(0)
return ... | 19.105263 | 72 | 0.532599 | 150 | 1,089 | 3.753333 | 0.346667 | 0.099467 | 0.099467 | 0.106572 | 0.539964 | 0.476021 | 0.44405 | 0.44405 | 0.284192 | 0.284192 | 0 | 0.029114 | 0.274564 | 1,089 | 56 | 73 | 19.446429 | 0.683544 | 0.048669 | 0 | 0.486486 | 0 | 0 | 0.156977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081081 | null | null | 0.216216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7555eff8c62a85dbfbcc9596d9341d1cb59bdeef | 1,261 | py | Python | chapter6.py | rpmva/Python1 | c642070eea506dfce3863d5534a616668dcf5575 | [
"MIT"
] | null | null | null | chapter6.py | rpmva/Python1 | c642070eea506dfce3863d5534a616668dcf5575 | [
"MIT"
] | null | null | null | chapter6.py | rpmva/Python1 | c642070eea506dfce3863d5534a616668dcf5575 | [
"MIT"
] | null | null | null | #Chapter 6 Notes
#List = ['a', 'b', 'c'];
#Character at a certain index: List[0] = 'a';
#len(List) = 3;
#Count how often something appears in a list: List.count('a') = 1; List.count('d') = 0;
#Where an index occurs: List.index('b') = 1
#Checking if a character or string is in a list: 'd' in List = False
#Adding items t... | 37.088235 | 94 | 0.61142 | 223 | 1,261 | 3.44843 | 0.381166 | 0.039012 | 0.019506 | 0.015605 | 0.154746 | 0.102731 | 0.062419 | 0 | 0 | 0 | 0 | 0.041056 | 0.188739 | 1,261 | 33 | 95 | 38.212121 | 0.710655 | 0.616971 | 0 | 0.133333 | 0 | 0 | 0.367521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
755f2c0c7e9ec05b382e0a7cb8f64a0bd6456cb9 | 605 | py | Python | generator_lesson/map_lesson.py | farooq-teqniqly/pakt-complete-python-course | 01717bbe97181f70c38166b3dc82ba7b00098430 | [
"MIT"
] | null | null | null | generator_lesson/map_lesson.py | farooq-teqniqly/pakt-complete-python-course | 01717bbe97181f70c38166b3dc82ba7b00098430 | [
"MIT"
] | null | null | null | generator_lesson/map_lesson.py | farooq-teqniqly/pakt-complete-python-course | 01717bbe97181f70c38166b3dc82ba7b00098430 | [
"MIT"
] | null | null | null | class Vehicle:
def __init__(self, make: str, model: str):
self.make = make
self.model = model
def __repr__(self):
return f"{self.make}, {self.model}"
@classmethod
def create(cls, **properties):
return cls(**properties)
if __name__ == "__main__":
makes = ["BMW", "F... | 25.208333 | 72 | 0.626446 | 77 | 605 | 4.636364 | 0.467532 | 0.067227 | 0.072829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226446 | 605 | 23 | 73 | 26.304348 | 0.762821 | 0 | 0 | 0 | 0 | 0 | 0.130579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0 | 0.125 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
7561a091fab494127c629ccfadbfc7bfb1a5971e | 432 | py | Python | create_db.py | ayushsingh-07/mailer | 07b5a098d3a16a93c1e9c46fcba1cb9d704ecfa4 | [
"MIT"
] | null | null | null | create_db.py | ayushsingh-07/mailer | 07b5a098d3a16a93c1e9c46fcba1cb9d704ecfa4 | [
"MIT"
] | 41 | 2021-09-01T17:31:47.000Z | 2022-03-28T12:13:12.000Z | create_db.py | ayushsingh-07/mailer | 07b5a098d3a16a93c1e9c46fcba1cb9d704ecfa4 | [
"MIT"
] | 1 | 2021-12-22T07:25:08.000Z | 2021-12-22T07:25:08.000Z | # -*- encoding: utf-8 -*-
"""Create all Data-Base"""
import os
# setting the environment
from dotenv import load_dotenv # Python 3.6+
from app.main import (
db, # SQLAlchemy Connector dB Object
create_app
)
from app.main.models import * # noqa: F401, F403
load_dotenv(verbose=True)
app = create... | 18.782609 | 57 | 0.675926 | 64 | 432 | 4.421875 | 0.609375 | 0.063604 | 0.077739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026012 | 0.199074 | 432 | 22 | 58 | 19.636364 | 0.791908 | 0.298611 | 0 | 0 | 0 | 0 | 0.068259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7562284695bd51c6be6a0220cc013fc9e297ccf7 | 1,235 | py | Python | deprecated_examples/affect/humor_late_fusion.py | TianhaoFu/MultiBench | b174a3187124d6f92be1ff3b487eef292f7883bb | [
"MIT"
] | null | null | null | deprecated_examples/affect/humor_late_fusion.py | TianhaoFu/MultiBench | b174a3187124d6f92be1ff3b487eef292f7883bb | [
"MIT"
] | null | null | null | deprecated_examples/affect/humor_late_fusion.py | TianhaoFu/MultiBench | b174a3187124d6f92be1ff3b487eef292f7883bb | [
"MIT"
] | null | null | null | import sys
import os
sys.path.append(os.getcwd())
import torch
from training_structures.Supervised_Learning import train, test
from fusions.common_fusions import Concat
from datasets.affect.get_data import get_dataloader
from unimodals.common_models import GRU, MLP
# Support mosi/mosi_unaligned/mosei/mosei_unaligned... | 34.305556 | 106 | 0.757895 | 184 | 1,235 | 4.961957 | 0.527174 | 0.048193 | 0.061336 | 0.092004 | 0.148959 | 0.148959 | 0.148959 | 0.078861 | 0 | 0 | 0 | 0.049327 | 0.097166 | 1,235 | 35 | 107 | 35.285714 | 0.769507 | 0.28583 | 0 | 0 | 0 | 0 | 0.136625 | 0.063146 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.388889 | 0 | 0.388889 | 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 |
f333457ae4c49055053af6bb76c865b15c999b35 | 932 | py | Python | plugins/dokuwiki.py | antoniotrento/wig | f43cc8c79444b8dd31111dc08d9426c305d7c827 | [
"BSD-2-Clause"
] | 3 | 2019-03-24T16:59:40.000Z | 2021-04-07T16:09:38.000Z | plugins/dokuwiki.py | ustayready/wig | cff1a6c42dd4d4565b8f147c208b46edb314b697 | [
"BSD-2-Clause"
] | null | null | null | plugins/dokuwiki.py | ustayready/wig | cff1a6c42dd4d4565b8f147c208b46edb314b697 | [
"BSD-2-Clause"
] | 2 | 2017-08-26T22:58:05.000Z | 2020-11-20T10:27:13.000Z | from classes.specializedRequesters import CMSReqMD5, CMSReqString, CMSReqRegex
class DokuWikiMD5(CMSReqMD5):
def __init__(self, host, cache, results):
super().__init__(host, cache, results)
self.name = "DokuWiki"
self.prefix = ["/dokuwiki", ""]
self.data_file = "data/cms/md5/dokuwiki.json"
class DokuWikiStri... | 30.064516 | 78 | 0.719957 | 110 | 932 | 5.845455 | 0.281818 | 0.139969 | 0.248834 | 0.069984 | 0.489891 | 0.489891 | 0.489891 | 0.489891 | 0.489891 | 0.489891 | 0 | 0.006173 | 0.130901 | 932 | 30 | 79 | 31.066667 | 0.787654 | 0 | 0 | 0.48 | 0 | 0 | 0.143777 | 0.089056 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.04 | 0.04 | 0.36 | 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 |
f33815a56e45c3a642314dd354f6df180bdc7dea | 328 | py | Python | Beans 1.0/clear.py | Washiii/beans | e70344466dd341c3c1b307778032671501fcd6aa | [
"MIT"
] | 1 | 2020-04-10T10:57:20.000Z | 2020-04-10T10:57:20.000Z | Beans 1.0/clear.py | Washiii/beans | e70344466dd341c3c1b307778032671501fcd6aa | [
"MIT"
] | null | null | null | Beans 1.0/clear.py | Washiii/beans | e70344466dd341c3c1b307778032671501fcd6aa | [
"MIT"
] | null | null | null | import platform
import os
sistem = platform.system()
def clear():
if sistem == "Linux" or "Darwin" and sistem != "Windows":
os.system('clear')
elif sistem == "Windows" and sistem != "Linux" or "Darwin":
os.system('cls')
else:
print('The OS detection has failed. Exiting...')
... | 23.428571 | 63 | 0.588415 | 40 | 328 | 4.825 | 0.575 | 0.11399 | 0.134715 | 0.196891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259146 | 328 | 13 | 64 | 25.230769 | 0.794239 | 0 | 0 | 0 | 0 | 0 | 0.253049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 0.090909 | 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 |
f346de43983655804097e184cfba5b6e99a9f098 | 459 | py | Python | repeat.py | arunkumarang/python | 1960e285dfe2ef54d2e3ab37584bfef8b24ecca9 | [
"Apache-2.0"
] | null | null | null | repeat.py | arunkumarang/python | 1960e285dfe2ef54d2e3ab37584bfef8b24ecca9 | [
"Apache-2.0"
] | null | null | null | repeat.py | arunkumarang/python | 1960e285dfe2ef54d2e3ab37584bfef8b24ecca9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import sys
def repeat(s, exclaim):
"""
Return the string 's' repeated 3 times.
If exclaim is true, add exclamation mark.
"""
result = s + s + s
if exclaim:
result = result + '!!!'
return result
def main():
print repeat('Yay', False)
print rep... | 17.653846 | 45 | 0.54902 | 60 | 459 | 4.066667 | 0.6 | 0.07377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006309 | 0.309368 | 459 | 26 | 46 | 17.653846 | 0.763407 | 0.102397 | 0 | 0 | 0 | 0 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | 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 |
f349bc630a6068dd09c5b89796c5a83488376974 | 3,238 | bzl | Python | bazel/spec-bundling/index.bzl | aspect-build/dev-infra | 2e81189c918f30a7153a6c263f1cd2bf764511c9 | [
"MIT"
] | 33 | 2019-06-25T19:15:43.000Z | 2022-03-28T14:33:19.000Z | bazel/spec-bundling/index.bzl | aspect-build/dev-infra | 2e81189c918f30a7153a6c263f1cd2bf764511c9 | [
"MIT"
] | 417 | 2019-06-28T05:26:09.000Z | 2022-03-31T00:15:21.000Z | bazel/spec-bundling/index.bzl | aspect-build/dev-infra | 2e81189c918f30a7153a6c263f1cd2bf764511c9 | [
"MIT"
] | 17 | 2019-08-30T13:51:45.000Z | 2022-02-23T00:17:30.000Z | load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
load("//bazel/esbuild:index.bzl", "esbuild", "esbuild_amd", "esbuild_config")
load("//bazel/spec-bundling:spec-entrypoint.bzl", "spec_entrypoint")
load("//bazel/spec-bundling:bundle-config.bzl", "spec_bundle_config_file")
"""
Starlark file exposing a macro ... | 38.547619 | 107 | 0.666461 | 419 | 3,238 | 4.98568 | 0.381862 | 0.040211 | 0.024892 | 0.027286 | 0.04404 | 0.02585 | 0 | 0 | 0 | 0 | 0 | 0.003272 | 0.244904 | 3,238 | 83 | 108 | 39.012048 | 0.851125 | 0.208153 | 0 | 0.092593 | 0 | 0 | 0.291296 | 0.100396 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.018519 | false | 0 | 0 | 0 | 0.018519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f34c22f3491f5fc71116f7769a8de8eb1c5765f7 | 215 | py | Python | benchmark/test-msgpack.py | azawawi/perl6-msgpack | d060a26e6eb03f792e978a6f2bd02f1ae0a55d50 | [
"MIT"
] | 2 | 2017-11-02T21:20:12.000Z | 2017-11-07T16:05:48.000Z | benchmark/test-msgpack.py | azawawi/perl6-msgpack | d060a26e6eb03f792e978a6f2bd02f1ae0a55d50 | [
"MIT"
] | 5 | 2018-01-11T03:28:29.000Z | 2019-12-25T17:52:00.000Z | benchmark/test-msgpack.py | azawawi/perl6-msgpack | d060a26e6eb03f792e978a6f2bd02f1ae0a55d50 | [
"MIT"
] | 1 | 2018-08-04T11:02:35.000Z | 2018-08-04T11:02:35.000Z | #!/usr/bin/env python
import msgpack
def test():
SIZE = 10000000;
data = [1] * SIZE
packed = msgpack.packb(data)
unpacked = msgpack.unpackb(packed)
for i in range(1,10 + 1):
test();
| 16.538462 | 38 | 0.581395 | 29 | 215 | 4.310345 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083871 | 0.27907 | 215 | 12 | 39 | 17.916667 | 0.722581 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f3518c58da09c4f353a80c2c9f70273d08f573d3 | 710 | py | Python | applications/plugins/Flexible/python/Flexible/sml.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/Flexible/python/Flexible/sml.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/Flexible/python/Flexible/sml.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | import SofaPython.sml
def getSolidSkinningIndicesAndWeights(solidModel, skinningArmatureBoneIndexById) :
""" Construct the indices and weights vectors for the skinning of solidModel
"""
indices = dict()
weights = dict()
for skinning in solidModel.skinnings:
currentBoneIndex = skinningArmatu... | 39.444444 | 82 | 0.680282 | 70 | 710 | 6.9 | 0.485714 | 0.037267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238028 | 710 | 17 | 83 | 41.764706 | 0.892791 | 0.174648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f353c277164924f46475beb9f6e1d91aade62e01 | 545 | py | Python | event/urls.py | vis7/connection | 10f39dcc232887ad2f8af155bd685bd536a80a2d | [
"MIT"
] | 1 | 2021-07-02T04:45:29.000Z | 2021-07-02T04:45:29.000Z | event/urls.py | vis7/connection | 10f39dcc232887ad2f8af155bd685bd536a80a2d | [
"MIT"
] | null | null | null | event/urls.py | vis7/connection | 10f39dcc232887ad2f8af155bd685bd536a80a2d | [
"MIT"
] | null | null | null | from django.urls import path
from .views import (
EventCreateView, EventUpdateView, EventDeleteView, EventDetailView, EventListView
)
app_name = 'event'
urlpatterns = [
path('create/', EventCreateView.as_view(), name='event_create'),
path('<int:pk>/update/', EventUpdateView.as_view(), name='event_upd... | 36.333333 | 85 | 0.706422 | 63 | 545 | 5.920635 | 0.380952 | 0.144772 | 0.134048 | 0.201072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121101 | 545 | 15 | 86 | 36.333333 | 0.778706 | 0 | 0 | 0 | 0 | 0 | 0.223443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f3548d7920a3f724ca86b1675627209a8b438660 | 67,823 | py | Python | cheminfo/openbabel/amon_f.py | binghuang2018/aqml | 4901f3bd85db968fb3fc7ab97fd443421909d89d | [
"MIT"
] | 19 | 2020-02-17T11:15:20.000Z | 2022-01-20T18:03:15.000Z | cheminfo/openbabel/amon_f.py | binghuang2018/aqml | 4901f3bd85db968fb3fc7ab97fd443421909d89d | [
"MIT"
] | 1 | 2020-10-11T06:49:10.000Z | 2020-10-21T07:30:53.000Z | cheminfo/openbabel/amon_f.py | binghuang2018/aqml | 4901f3bd85db968fb3fc7ab97fd443421909d89d | [
"MIT"
] | 2 | 2020-09-09T01:37:19.000Z | 2020-09-19T13:13:34.000Z | #!/usr/bin/env python
"""
Enumerate subgraphs & get amons
"""
import aqml.cheminfo.math as cim
import aqml.cheminfo.rw.pdb as crp
import aqml.cheminfo.graph as cg
import networkx as nx
from itertools import chain, product
import numpy as np
import os, re, copy, time
#from rdkit import Chem
import openbabel as ob
impo... | 37.595898 | 706 | 0.470504 | 8,935 | 67,823 | 3.499161 | 0.134639 | 0.009851 | 0.005182 | 0.008796 | 0.201503 | 0.156757 | 0.137566 | 0.110443 | 0.101743 | 0.076507 | 0 | 0.022418 | 0.39755 | 67,823 | 1,803 | 707 | 37.61675 | 0.742756 | 0.218687 | 0 | 0.237333 | 0 | 0.000889 | 0.046656 | 0.002922 | 0 | 0 | 0 | 0.000555 | 0.008 | 0 | null | null | 0.001778 | 0.013333 | null | null | 0.024889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f356b3c2ba151f03810352d6ffd8add29e6ebce7 | 616 | py | Python | feder/letters/migrations/0018_auto_20180227_1926.py | dzemeuksis/feder | 32ef7793af6256d4ecada61505c7baf334b34419 | [
"MIT"
] | 16 | 2015-08-11T17:20:26.000Z | 2022-02-11T20:15:41.000Z | feder/letters/migrations/0018_auto_20180227_1926.py | dzemeuksis/feder | 32ef7793af6256d4ecada61505c7baf334b34419 | [
"MIT"
] | 534 | 2015-08-04T00:10:54.000Z | 2022-03-17T10:44:47.000Z | feder/letters/migrations/0018_auto_20180227_1926.py | dzemeuksis/feder | 32ef7793af6256d4ecada61505c7baf334b34419 | [
"MIT"
] | 10 | 2017-08-30T13:34:32.000Z | 2022-02-18T13:00:35.000Z | # Generated by Django 1.11.10 on 2018-02-27 19:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("letters", "0017_auto_20180227_1908")]
operations = [
migrations.AlterField(
model_name="letter",
... | 26.782609 | 60 | 0.605519 | 64 | 616 | 5.65625 | 0.625 | 0.066298 | 0.077348 | 0.121547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075688 | 0.292208 | 616 | 22 | 61 | 28 | 0.754587 | 0.076299 | 0 | 0 | 1 | 0 | 0.164021 | 0.079365 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.3125 | 0 | 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 |
f35a84af2103e2292eac2e6100bc6dbb1c2731c0 | 3,319 | py | Python | aquests/protocols/http/localstorage.py | hansroh/aquests | 9de84cfff84ff5d5179d16c5c1f7be3487516843 | [
"MIT"
] | 8 | 2017-02-23T19:24:43.000Z | 2018-07-10T20:58:52.000Z | aquests/protocols/http/localstorage.py | hansroh/aquests | 9de84cfff84ff5d5179d16c5c1f7be3487516843 | [
"MIT"
] | 1 | 2017-02-23T19:52:51.000Z | 2017-02-25T04:05:34.000Z | aquests/protocols/http/localstorage.py | hansroh/aquests | 9de84cfff84ff5d5179d16c5c1f7be3487516843 | [
"MIT"
] | null | null | null | import base64
import random
try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
from . import util
g = None
def create (logger):
global g
g = LocalStorage (logger)
class LocalStorage:
def __init__ (self, logger):
self.logger = logger
self.cookie = {}
self.data = {} ... | 24.226277 | 65 | 0.607412 | 474 | 3,319 | 4.168776 | 0.151899 | 0.116397 | 0.137652 | 0.091093 | 0.34666 | 0.282389 | 0.257085 | 0.214069 | 0.214069 | 0.178644 | 0 | 0.005955 | 0.241036 | 3,319 | 136 | 66 | 24.404412 | 0.778087 | 0 | 0 | 0.350877 | 0 | 0 | 0.007836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | 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 |
f360e90785f79ed25c27e9cd9f6a890109b021f8 | 1,131 | py | Python | OOP/car.py | dimi-fn/Various-Data-Science-Scripts | 82ec30178ce4b7e2fedd9552e05cfc99e92ed52a | [
"MIT"
] | 8 | 2021-04-02T18:50:20.000Z | 2022-02-05T13:23:03.000Z | OOP/car.py | dimi-fn/Various-Data-Science-Scripts | 82ec30178ce4b7e2fedd9552e05cfc99e92ed52a | [
"MIT"
] | 1 | 2021-03-03T21:17:38.000Z | 2021-03-07T14:07:41.000Z | OOP/car.py | dimi-fn/Various-Data-Science-Scripts | 82ec30178ce4b7e2fedd9552e05cfc99e92ed52a | [
"MIT"
] | 2 | 2021-03-07T12:58:59.000Z | 2022-02-18T10:34:02.000Z | class Car:
'''
* Creating a class called "Car"
* Properties/attributes: brand, colour, horses, country production, current speed
* "current_speed" is set to 0, unless other value is assigned
* Method definitions:
* def move_car() moves the car by 10
* def accelerate_car() accelerates the car by ... | 33.264706 | 104 | 0.696729 | 153 | 1,131 | 4.980392 | 0.326797 | 0.173228 | 0.104987 | 0.062992 | 0.267717 | 0.120735 | 0.120735 | 0 | 0 | 0 | 0 | 0.00884 | 0.199823 | 1,131 | 34 | 105 | 33.264706 | 0.833149 | 0.401415 | 0 | 0 | 0 | 0 | 0.119632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0 | 0 | 0.375 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f3677a3ab0a19f437d7f8d73b9af0836e1233da3 | 1,227 | py | Python | euler-problems/euler-problem-3.py | sdenisen/test | 709bcdd16d0f83f03b04e0bc7918bb3785993c59 | [
"Unlicense"
] | null | null | null | euler-problems/euler-problem-3.py | sdenisen/test | 709bcdd16d0f83f03b04e0bc7918bb3785993c59 | [
"Unlicense"
] | 2 | 2017-08-24T18:55:37.000Z | 2017-08-24T18:59:06.000Z | euler-problems/euler-problem-3.py | sdenisen/test | 709bcdd16d0f83f03b04e0bc7918bb3785993c59 | [
"Unlicense"
] | null | null | null | __author__ = 'sdenisenko'
target_number = 600851475143
def isNatural(item, naturals):
for nat_number in naturals:
if not item % nat_number:
break
else:
return True
return False
def getNaturals(n):
naturals = []
for i in range(2, n):
if isNatural(i, naturals):
... | 23.150943 | 66 | 0.590057 | 142 | 1,227 | 5 | 0.28169 | 0.084507 | 0.025352 | 0.042254 | 0.152113 | 0.098592 | 0.098592 | 0 | 0 | 0 | 0 | 0.045346 | 0.317033 | 1,227 | 53 | 67 | 23.150943 | 0.801909 | 0.01793 | 0 | 0.261905 | 0 | 0 | 0.008299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f3699599d303475404672adcb0584da93a0f6dee | 8,791 | py | Python | pokedataset32_vae.py | EtreSerBe/PokeAE | 28be137e4a496cecee624bf2f22d7339469ba7f4 | [
"MIT"
] | 1 | 2020-10-08T03:36:05.000Z | 2020-10-08T03:36:05.000Z | pokedataset32_vae.py | EtreSerBe/PokeAE | 28be137e4a496cecee624bf2f22d7339469ba7f4 | [
"MIT"
] | null | null | null | pokedataset32_vae.py | EtreSerBe/PokeAE | 28be137e4a496cecee624bf2f22d7339469ba7f4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" Variational Auto-Encoder Example.
Using a variational auto-encoder to generate digits images from noise.
MNIST handwritten digits are used as training examples.
References:
- Auto-Encoding Variational Bayes The International Conference on Learning
Representations (ICLR), Banff, 2014... | 47.263441 | 119 | 0.729269 | 1,335 | 8,791 | 4.490637 | 0.276404 | 0.013344 | 0.015013 | 0.017014 | 0.263053 | 0.237364 | 0.167139 | 0.134112 | 0.125771 | 0.117765 | 0 | 0.023176 | 0.175407 | 8,791 | 185 | 120 | 47.518919 | 0.803835 | 0.308156 | 0 | 0.065421 | 1 | 0 | 0.127233 | 0.04208 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.121495 | 0 | 0.121495 | 0.121495 | 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 |
f36ffc24c549c299c4fec9826f6e607a71de4024 | 1,089 | py | Python | easybill_rest/tests/test_logins.py | soerenbe/py-ebrest | 890553a02a188f44958261f968e1b0c0f3ba9333 | [
"MIT"
] | 5 | 2020-07-26T07:43:48.000Z | 2021-12-27T02:10:28.000Z | easybill_rest/tests/test_logins.py | soerenbe/py-ebrest | 890553a02a188f44958261f968e1b0c0f3ba9333 | [
"MIT"
] | 1 | 2021-11-29T18:13:53.000Z | 2021-11-29T18:13:53.000Z | easybill_rest/tests/test_logins.py | soerenbe/py-ebrest | 890553a02a188f44958261f968e1b0c0f3ba9333 | [
"MIT"
] | 1 | 2021-11-29T17:44:11.000Z | 2021-11-29T17:44:11.000Z | import unittest
from unittest import mock
from easybill_rest import Client
from easybill_rest.resources.resource_logins import ResourceLogins
from easybill_rest.tests.test_case_abstract import EasybillRestTestCaseAbstract
class TestResourceLogins(unittest.TestCase, EasybillRestTestCaseAbstract):
def setUp(self)... | 33 | 80 | 0.701561 | 121 | 1,089 | 6.066116 | 0.347107 | 0.098093 | 0.065395 | 0.059946 | 0.138965 | 0.138965 | 0.138965 | 0.138965 | 0.138965 | 0 | 0 | 0.002275 | 0.192837 | 1,089 | 32 | 81 | 34.03125 | 0.832765 | 0 | 0 | 0 | 0 | 0 | 0.054178 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.208333 | false | 0 | 0.208333 | 0.041667 | 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 |
f373ecb0fc0e40079ea129b1bc8c20ba4f4e203e | 2,948 | py | Python | basic_email_user/models.py | garyburgmann/django-basic-email-user | d6022bb52dbb6968906e4df7016c75e9aaed67a6 | [
"MIT"
] | 1 | 2020-03-12T17:36:51.000Z | 2020-03-12T17:36:51.000Z | basic_email_user/models.py | garyburgmann/django-basic-email-user | d6022bb52dbb6968906e4df7016c75e9aaed67a6 | [
"MIT"
] | null | null | null | basic_email_user/models.py | garyburgmann/django-basic-email-user | d6022bb52dbb6968906e4df7016c75e9aaed67a6 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import BaseUserManager, AbstractUser
from django.core.validators import EmailValidator
from django.contrib.auth.validators import UnicodeUsernameValidator
class UserManager(BaseUserManager):
def validate_email(self, email):
""" Verify email arg... | 28.621359 | 77 | 0.618385 | 323 | 2,948 | 5.544892 | 0.315789 | 0.040201 | 0.031267 | 0.031826 | 0.307091 | 0.307091 | 0.307091 | 0.236739 | 0.236739 | 0.236739 | 0 | 0.005797 | 0.297829 | 2,948 | 102 | 78 | 28.901961 | 0.85942 | 0.209973 | 0 | 0.225806 | 0 | 0 | 0.126845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0.064516 | 0.064516 | 0 | 0.33871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f381b3ed97d62bd6ca9b8938335b794339c85866 | 360 | py | Python | algo-c-to-_/src/tarai.py | nobi56/aRepo | 4d444647ceedd239a1bc37bfa31ba8f204fca0ef | [
"CC0-1.0"
] | null | null | null | algo-c-to-_/src/tarai.py | nobi56/aRepo | 4d444647ceedd239a1bc37bfa31ba8f204fca0ef | [
"CC0-1.0"
] | null | null | null | algo-c-to-_/src/tarai.py | nobi56/aRepo | 4d444647ceedd239a1bc37bfa31ba8f204fca0ef | [
"CC0-1.0"
] | null | null | null | #
# from src/tarai.c
#
# int tarai(int, int, int) to tarai
# tarai to tak(*)
#
# *) https://en.wikipedia.org/wiki/Tak_(function)
#
def tarai(x, y, z):
if x <= y:
return y
return tarai(tarai(x-1,y,z), tarai(y-1,z,x), tarai(z-1,x,y))
def tak(x, y, z):
if x <= y:
return z
return tak(ta... | 18.947368 | 64 | 0.533333 | 75 | 360 | 2.546667 | 0.266667 | 0.062827 | 0.031414 | 0.052356 | 0.136126 | 0.136126 | 0.136126 | 0 | 0 | 0 | 0 | 0.021898 | 0.238889 | 360 | 18 | 65 | 20 | 0.675182 | 0.325 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f381d85be7844a821c95ba1ba57fc54df023f43a | 1,288 | py | Python | students/k3342/practical_works/Kataeva_Veronika/simple_django_web_project/django_project_kataeva/project_first_app/views.py | KataevaVeronika/ITMO_ICT_WebProgramming_2020 | d8cf1d0479519bbafd34d4678e9eda2eabaeb0cf | [
"MIT"
] | null | null | null | students/k3342/practical_works/Kataeva_Veronika/simple_django_web_project/django_project_kataeva/project_first_app/views.py | KataevaVeronika/ITMO_ICT_WebProgramming_2020 | d8cf1d0479519bbafd34d4678e9eda2eabaeb0cf | [
"MIT"
] | null | null | null | students/k3342/practical_works/Kataeva_Veronika/simple_django_web_project/django_project_kataeva/project_first_app/views.py | KataevaVeronika/ITMO_ICT_WebProgramming_2020 | d8cf1d0479519bbafd34d4678e9eda2eabaeb0cf | [
"MIT"
] | null | null | null | import datetime
from django.http import Http404
from django.shortcuts import render
from django.views.generic.list import ListView
from django.views.generic.edit import CreateView
from project_first_app.models import Ownership, Car, Owner
from project_first_app.forms import OwnerForm
class ListCars(ListView):
mo... | 29.272727 | 122 | 0.694099 | 171 | 1,288 | 5.081871 | 0.426901 | 0.04603 | 0.065593 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006635 | 0.180901 | 1,288 | 43 | 123 | 29.953488 | 0.817062 | 0 | 0 | 0.121212 | 0 | 0 | 0.08618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.212121 | 0 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f39104c721a68d3839c3ed7a31cc8e898de96afe | 3,871 | py | Python | heat/common/utils.py | devcamcar/heat | 0f1bd5d29102318e62b5a10281d809807bd3b163 | [
"Apache-2.0"
] | 1 | 2015-05-11T04:54:30.000Z | 2015-05-11T04:54:30.000Z | heat/common/utils.py | devcamcar/heat | 0f1bd5d29102318e62b5a10281d809807bd3b163 | [
"Apache-2.0"
] | null | null | null | heat/common/utils.py | devcamcar/heat | 0f1bd5d29102318e62b5a10281d809807bd3b163 | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | 27.453901 | 78 | 0.646861 | 496 | 3,871 | 4.981855 | 0.419355 | 0.024282 | 0.021854 | 0.01295 | 0.049373 | 0.0259 | 0.0259 | 0 | 0 | 0 | 0 | 0.008156 | 0.271506 | 3,871 | 140 | 79 | 27.65 | 0.868085 | 0.191682 | 0 | 0.121212 | 0 | 0 | 0.018031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136364 | 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 |
f399074e6a2b359a986c0ef74c054bffeb47faa5 | 4,534 | py | Python | sdk/python/approzium/_postgres/scram.py | UpGado/approzium | 306b40f16a1ba0dfbe3a312e1c40881e98518137 | [
"Apache-2.0"
] | 59 | 2020-07-14T17:18:09.000Z | 2022-02-24T07:39:22.000Z | sdk/python/approzium/_postgres/scram.py | UpGado/approzium | 306b40f16a1ba0dfbe3a312e1c40881e98518137 | [
"Apache-2.0"
] | 66 | 2020-07-09T19:11:55.000Z | 2022-03-15T11:42:55.000Z | sdk/python/approzium/_postgres/scram.py | UpGado/approzium | 306b40f16a1ba0dfbe3a312e1c40881e98518137 | [
"Apache-2.0"
] | 9 | 2020-07-09T19:20:45.000Z | 2022-02-24T07:39:26.000Z | import base64
import re
# try to import the secrets library from Python 3.6+ for the
# cryptographic token generator for generating nonces as part of SCRAM
# Otherwise fall back on os.urandom
try:
from secrets import token_bytes as generate_token_bytes
except ImportError:
from os import urandom as generate_tok... | 35.984127 | 88 | 0.620865 | 525 | 4,534 | 5.118095 | 0.249524 | 0.080387 | 0.06029 | 0.049125 | 0.183104 | 0.145143 | 0.114626 | 0.114626 | 0.114626 | 0.114626 | 0 | 0.01029 | 0.292678 | 4,534 | 125 | 89 | 36.272 | 0.827565 | 0.12704 | 0 | 0.19802 | 0 | 0 | 0.089081 | 0.005599 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069307 | false | 0.059406 | 0.049505 | 0 | 0.207921 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f39bbff9c76fafc9540b65822dfed3b5a4b3fbf8 | 663 | py | Python | src/Expired_Filter/ChromeDriver.py | brianfong96/Experiment_Web_Scraping | 37d0391c9bae4a3be8faf312081ed3557b968db8 | [
"MIT"
] | 1 | 2020-05-06T23:33:55.000Z | 2020-05-06T23:33:55.000Z | src/Expired_Filter/ChromeDriver.py | brianfong96/Experiment_Web_Scraping | 37d0391c9bae4a3be8faf312081ed3557b968db8 | [
"MIT"
] | null | null | null | src/Expired_Filter/ChromeDriver.py | brianfong96/Experiment_Web_Scraping | 37d0391c9bae4a3be8faf312081ed3557b968db8 | [
"MIT"
] | 1 | 2020-05-11T18:35:45.000Z | 2020-05-11T18:35:45.000Z | from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
def CreateDriver(extra_arguments = ["--start-maximized"]):
arguments = ['--ignore-certificate-errors', '--incognito', '--headless']
arguments += extra_arguments
#Use selenium and open webdriver
options = webdriver.C... | 27.625 | 79 | 0.693816 | 65 | 663 | 6.892308 | 0.569231 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199095 | 663 | 24 | 80 | 27.625 | 0.843691 | 0.046757 | 0 | 0.111111 | 0 | 0 | 0.115506 | 0.042722 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f39c7f93e2ab0fd5ccbb25f2d2e58b7580fc8dcb | 1,690 | py | Python | python/frequency_calc.py | amojarro/carrierseq | f148c06b5ca148222efcfb917d7a2566f4c20aff | [
"MIT"
] | 5 | 2017-08-19T02:54:45.000Z | 2021-08-05T02:10:59.000Z | python/frequency_calc.py | amojarro/carrierseq | f148c06b5ca148222efcfb917d7a2566f4c20aff | [
"MIT"
] | 5 | 2017-09-22T21:18:07.000Z | 2019-06-28T12:07:11.000Z | python/frequency_calc.py | amojarro/carrierseq | f148c06b5ca148222efcfb917d7a2566f4c20aff | [
"MIT"
] | 1 | 2017-08-23T04:06:13.000Z | 2017-08-23T04:06:13.000Z | import sys
channel_out = open(sys.argv[1], 'r')
channel_list = channel_out.readlines()
xcrit_value_txt = open(sys.argv[2], 'r')
xcrit_value = xcrit_value_txt.read()
xcrit = float(xcrit_value)
# channel_list: A list containing strings of each channel with newline characters
# new_channel_list: A list containing strin... | 27.704918 | 89 | 0.730769 | 272 | 1,690 | 4.371324 | 0.290441 | 0.129521 | 0.055509 | 0.050463 | 0.267452 | 0.190917 | 0.125315 | 0.077376 | 0.077376 | 0 | 0 | 0.007189 | 0.176923 | 1,690 | 60 | 90 | 28.166667 | 0.847592 | 0.329586 | 0 | 0.108108 | 0 | 0 | 0.007162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027027 | null | null | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f3a3167ea3e459cf4a7aa40eea811c08cd2fc373 | 6,203 | py | Python | accelbyte_py_sdk/api/platform/models/currency_update.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/api/platform/models/currency_update.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/api/platform/models/currency_update.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | # Auto-generated at 2021-09-27T17:12:36.265221+08:00
# from: Justice Platform Service (3.24.0)
# Copyright (c) 2018 - 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
# pylint: disable=duplicate-code
# py... | 41.912162 | 123 | 0.679994 | 661 | 6,203 | 6.110439 | 0.19062 | 0.062392 | 0.041594 | 0.079723 | 0.280763 | 0.184452 | 0.076752 | 0.050508 | 0.021292 | 0 | 0 | 0.009368 | 0.242786 | 6,203 | 147 | 124 | 42.197279 | 0.850543 | 0.204901 | 0 | 0.218391 | 1 | 0 | 0.150246 | 0.123153 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091954 | false | 0 | 0.034483 | 0.011494 | 0.287356 | 0 | 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 |
f3a4f56d21afed86b3b7ee1a4ba2c718f837ac03 | 906 | py | Python | fortytwocli/main.py | dhaiibfiukkiu/42cli | a67da5168fe9e8a8905ed436e575e4c9bba6f608 | [
"MIT"
] | 4 | 2020-06-10T08:35:13.000Z | 2020-08-14T01:32:36.000Z | fortytwocli/main.py | 4nm1tsu/42cli | a67da5168fe9e8a8905ed436e575e4c9bba6f608 | [
"MIT"
] | null | null | null | fortytwocli/main.py | 4nm1tsu/42cli | a67da5168fe9e8a8905ed436e575e4c9bba6f608 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf=8 -*-
import click
import fortytwocli.init as init_
import fortytwocli.status as status_
import fortytwocli.project as project
import fortytwocli.util as util
import fortytwocli.ipCalc as ip
@click.group()
def fourtyTwo():
pass
@fourtyTwo.command(help="initializes setti... | 18.875 | 67 | 0.674393 | 112 | 906 | 5.419643 | 0.401786 | 0.140033 | 0.065898 | 0.059308 | 0.187809 | 0.187809 | 0.187809 | 0.187809 | 0.187809 | 0.187809 | 0 | 0.001361 | 0.188742 | 906 | 47 | 68 | 19.276596 | 0.82449 | 0.046358 | 0 | 0.258065 | 0 | 0 | 0.11949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | true | 0.032258 | 0.193548 | 0 | 0.387097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f3a5692ecf38232c06cedb81f641056b5301ee77 | 331 | py | Python | tictactoe/common.py | ephjos/ai | cdc8200c18cb1a13acb438ce56053b80b892e0b1 | [
"MIT"
] | null | null | null | tictactoe/common.py | ephjos/ai | cdc8200c18cb1a13acb438ce56053b80b892e0b1 | [
"MIT"
] | null | null | null | tictactoe/common.py | ephjos/ai | cdc8200c18cb1a13acb438ce56053b80b892e0b1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from enum import Enum, auto
class Tile:
Empty = '-'
X = 'X'
O = 'O'
class Result(Enum):
Tie = auto()
X_Win = auto()
O_Win = auto()
def show_board(board):
for i in range(3):
i *= 3
print(f'{board[i]} {board[i+1]} {board[i+2]}')
... | 16.55 | 54 | 0.477341 | 49 | 331 | 3.163265 | 0.571429 | 0.116129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018605 | 0.350453 | 331 | 19 | 55 | 17.421053 | 0.702326 | 0.060423 | 0 | 0 | 0 | 0 | 0.125806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.714286 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f3ab071d9ca28417fa71ad2587830423087bbf0c | 4,280 | py | Python | snapboard/forms.py | SarathkumarJ/snapboard | e19edd0e4bb53b3b8cce6b245cf12413e811852e | [
"BSD-3-Clause"
] | null | null | null | snapboard/forms.py | SarathkumarJ/snapboard | e19edd0e4bb53b3b8cce6b245cf12413e811852e | [
"BSD-3-Clause"
] | null | null | null | snapboard/forms.py | SarathkumarJ/snapboard | e19edd0e4bb53b3b8cce6b245cf12413e811852e | [
"BSD-3-Clause"
] | null | null | null | from sets import Set
from django import forms
from django.contrib.auth import authenticate
from django.contrib.auth.models import User
from django.forms import widgets, ValidationError
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext
from snapboard.models import C... | 33.4375 | 98 | 0.588551 | 472 | 4,280 | 5.199153 | 0.319915 | 0.04564 | 0.036675 | 0.028117 | 0.102689 | 0.057865 | 0.057865 | 0 | 0 | 0 | 0 | 0.008183 | 0.286215 | 4,280 | 127 | 99 | 33.700787 | 0.79509 | 0.120327 | 0 | 0.086957 | 0 | 0 | 0.0968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054348 | false | 0.054348 | 0.086957 | 0 | 0.369565 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f3ae5860de9fd1e0d83e7701359a17f4770313f7 | 520 | py | Python | customer/migrations/0014_pspuser_pending_deposit.py | neonexchange/psp_template | c81fc831c1f31db00b29c4f016d073e66866f09b | [
"MIT"
] | 5 | 2018-03-02T09:36:41.000Z | 2018-05-09T15:12:53.000Z | customer/migrations/0014_pspuser_pending_deposit.py | neonexchange/psp_template | c81fc831c1f31db00b29c4f016d073e66866f09b | [
"MIT"
] | null | null | null | customer/migrations/0014_pspuser_pending_deposit.py | neonexchange/psp_template | c81fc831c1f31db00b29c4f016d073e66866f09b | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2018-01-20 23:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('customer', '0013_auto_20180120_2322'),
]
operations = [
migrations.AddField(
model_name='pspuser'... | 24.761905 | 107 | 0.630769 | 58 | 520 | 5.551724 | 0.689655 | 0.074534 | 0.086957 | 0.136646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077519 | 0.255769 | 520 | 20 | 108 | 26 | 0.754522 | 0.082692 | 0 | 0 | 1 | 0 | 0.145263 | 0.048421 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f3ae981718fc488d6c93129fdc8f5a6c90205138 | 2,125 | py | Python | utils/random.py | Saizuo/EpicBot | 45cebe79b7bf90c0a067162fb3646a176cb6394a | [
"BSD-3-Clause"
] | 3 | 2021-09-13T11:28:49.000Z | 2022-02-21T15:16:35.000Z | utils/random.py | Saizuo/EpicBot | 45cebe79b7bf90c0a067162fb3646a176cb6394a | [
"BSD-3-Clause"
] | 1 | 2021-09-27T07:45:29.000Z | 2021-09-27T07:45:29.000Z | utils/random.py | Saizuo/EpicBot | 45cebe79b7bf90c0a067162fb3646a176cb6394a | [
"BSD-3-Clause"
] | null | null | null | """
Copyright 2021 Nirlep_5252_
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | 33.730159 | 87 | 0.703529 | 268 | 2,125 | 5.522388 | 0.705224 | 0.040541 | 0.017568 | 0.021622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034384 | 0.178824 | 2,125 | 62 | 88 | 34.274194 | 0.813754 | 0.259765 | 0 | 0 | 0 | 0 | 0.539297 | 0.067732 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0.1 | 0.05 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f3afc542f3741121b2c5c3736478e66f59769b10 | 5,384 | py | Python | bpf-echo.py | cwyzb/bpf-echo | b1d21d5416fd712bdf7ac6bbeb4b6dec403ba196 | [
"BSD-3-Clause"
] | 2 | 2021-03-20T13:22:51.000Z | 2021-03-20T13:22:56.000Z | bpf-echo.py | cwyzb/bpf-echo | b1d21d5416fd712bdf7ac6bbeb4b6dec403ba196 | [
"BSD-3-Clause"
] | null | null | null | bpf-echo.py | cwyzb/bpf-echo | b1d21d5416fd712bdf7ac6bbeb4b6dec403ba196 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2019 Path Network, Inc. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
from bcc import BPF
from pyroute2 import IPRoute
import socket
import ipaddress
import argparse
import time
import sys
parser = argpars... | 25.638095 | 88 | 0.589153 | 747 | 5,384 | 4.073628 | 0.286479 | 0.039435 | 0.054223 | 0.038449 | 0.212619 | 0.157082 | 0.138022 | 0.116333 | 0.044035 | 0.044035 | 0 | 0.034369 | 0.265045 | 5,384 | 209 | 89 | 25.760766 | 0.734647 | 0.032318 | 0 | 0.147929 | 0 | 0.011834 | 0.625624 | 0.047061 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04142 | 0 | 0.130178 | 0.005917 | 0 | 0 | 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 |
f3b2c23aa99e654b4df0e975987842c689410000 | 3,801 | py | Python | waves_gateway/storage/mongo_key_value_storage_impl.py | NeolithEra/WavesGatewayFramework | e7ba892427e1d0444f2bfdc2922c45ff5f4c4add | [
"MIT"
] | 25 | 2018-03-04T07:49:21.000Z | 2022-03-28T05:20:50.000Z | waves_gateway/storage/mongo_key_value_storage_impl.py | NeolithEra/WavesGatewayFramework | e7ba892427e1d0444f2bfdc2922c45ff5f4c4add | [
"MIT"
] | 22 | 2018-03-25T13:19:45.000Z | 2020-11-28T17:21:08.000Z | waves_gateway/storage/mongo_key_value_storage_impl.py | NeolithEra/WavesGatewayFramework | e7ba892427e1d0444f2bfdc2922c45ff5f4c4add | [
"MIT"
] | 31 | 2018-03-25T09:45:13.000Z | 2022-03-24T05:32:18.000Z | """
MongoKeyValueStorageImpl
"""
from waves_gateway.common import Injectable, KEY_VALUE_STORAGE_COLLECTION
from waves_gateway.model import PollingState
from waves_gateway.serializer import PollingStateSerializer
from waves_gateway.storage.key_value_storage import KeyValueStorage
from pymongo.collection import Collectio... | 39.59375 | 105 | 0.740331 | 437 | 3,801 | 5.993135 | 0.171625 | 0.105384 | 0.058801 | 0.049637 | 0.512791 | 0.512791 | 0.447499 | 0.422299 | 0.380298 | 0.380298 | 0 | 0 | 0.190476 | 3,801 | 95 | 106 | 40.010526 | 0.851154 | 0.056564 | 0 | 0.31746 | 0 | 0 | 0.022753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174603 | false | 0 | 0.111111 | 0.031746 | 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 |
f3b74e20937dc80d593a8afba44d60a6d507a33a | 372 | py | Python | skp_edu_docker/code/tfrest/celery.py | TensorMSA/hoyai_docker | 12f0041e6306d8a6421585a4b51666bad30be442 | [
"MIT"
] | 8 | 2017-06-16T00:19:12.000Z | 2020-08-13T03:15:57.000Z | kict_edu_docker/code/tfrest/celery.py | TensorMSA/tensormsa_docker | 12f0041e6306d8a6421585a4b51666bad30be442 | [
"MIT"
] | 21 | 2017-06-09T10:15:14.000Z | 2018-03-29T07:51:02.000Z | skp_edu_docker/code/tfrest/celery.py | TensorMSA/hoyai_docker | 12f0041e6306d8a6421585a4b51666bad30be442 | [
"MIT"
] | 4 | 2017-10-25T09:59:53.000Z | 2020-05-07T09:51:11.000Z | from __future__ import absolute_import, unicode_literals
import os
from celery import Celery
import logging
from django.conf import settings
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tfrest.settings')
app = Celery('tfrest')
app.config_from_object('django.conf:settings')
app.autodiscover_tasks(lambda: settings.... | 26.571429 | 66 | 0.836022 | 50 | 372 | 5.92 | 0.58 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 372 | 13 | 67 | 28.615385 | 0.868035 | 0 | 0 | 0 | 0 | 0 | 0.169355 | 0.05914 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f3c4c163a608a718a38967f40e24de08f7f931d1 | 1,091 | py | Python | mayan/apps/sources/handlers.py | garrans/mayan-edms | e95e90cc47447a1ae72629271652824aa9868572 | [
"Apache-2.0"
] | null | null | null | mayan/apps/sources/handlers.py | garrans/mayan-edms | e95e90cc47447a1ae72629271652824aa9868572 | [
"Apache-2.0"
] | null | null | null | mayan/apps/sources/handlers.py | garrans/mayan-edms | e95e90cc47447a1ae72629271652824aa9868572 | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from converter.models import Transformation
from .literals import SOURCE_UNCOMPRESS_CHOICE_ASK
from .models import POP3Email, IMAPEmail, WatchFolderSource, WebFormSource
def create_default_document_source(sender, **kwar... | 29.486486 | 74 | 0.741522 | 128 | 1,091 | 6.148438 | 0.484375 | 0.034308 | 0.041931 | 0.091487 | 0.15756 | 0.15756 | 0.114358 | 0.114358 | 0.114358 | 0 | 0 | 0.00222 | 0.174152 | 1,091 | 36 | 75 | 30.305556 | 0.871254 | 0.095325 | 0 | 0.136364 | 0 | 0 | 0.015244 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0.136364 | false | 0 | 0.227273 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
45ee5fff4bdf0d12c882743e019b16851e3e942f | 5,409 | py | Python | Lessons/source/strings.py | jayceazua/CS-1.3-Core-Data-Structures | 7a8c07595a6a9616011fa2ff376ad43398a506c3 | [
"MIT"
] | null | null | null | Lessons/source/strings.py | jayceazua/CS-1.3-Core-Data-Structures | 7a8c07595a6a9616011fa2ff376ad43398a506c3 | [
"MIT"
] | 3 | 2019-04-21T11:07:22.000Z | 2019-05-18T17:28:46.000Z | Lessons/source/strings.py | jayceazua/CS-1.3-Core-Data-Structures | 7a8c07595a6a9616011fa2ff376ad43398a506c3 | [
"MIT"
] | null | null | null | #!python
def contains(text, pattern):
"""Return a boolean indicating whether pattern occurs in text."""
assert isinstance(text, str), 'text is not a string: {}'.format(text)
assert isinstance(pattern, str), 'pattern is not a string: {}'.format(text)
# TODO: Implement contains here (iteratively and/or r... | 41.930233 | 114 | 0.645776 | 738 | 5,409 | 4.616531 | 0.207317 | 0.058116 | 0.010566 | 0.021133 | 0.421192 | 0.29322 | 0.272674 | 0.202231 | 0.176402 | 0.176402 | 0 | 0.007265 | 0.261971 | 5,409 | 128 | 115 | 42.257813 | 0.846192 | 0.325384 | 0 | 0.505882 | 0 | 0 | 0.133074 | 0.012249 | 0 | 0 | 0 | 0.023438 | 0.070588 | 1 | 0.070588 | false | 0 | 0.011765 | 0 | 0.247059 | 0.105882 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
45f08ae56760b57861de36d66748cba23e4da6fa | 482 | py | Python | Easy/392. Is Subsequence/solution (3).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | 3 | 2020-05-09T12:55:09.000Z | 2022-03-11T18:56:05.000Z | Easy/392. Is Subsequence/solution (3).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | null | null | null | Easy/392. Is Subsequence/solution (3).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | 1 | 2022-03-11T18:56:16.000Z | 2022-03-11T18:56:16.000Z | # 392. Is Subsequence
# Runtime: 28 ms, faster than 90.94% of Python3 online submissions for Is Subsequence.
# Memory Usage: 14.2 MB, less than 74.36% of Python3 online submissions for Is Subsequence.
class Solution:
# Two Pointers
def isSubsequence(self, s: str, t: str) -> bool:
left, right = 0, 0
... | 30.125 | 91 | 0.587137 | 70 | 482 | 4.042857 | 0.614286 | 0.137809 | 0.106007 | 0.183746 | 0.29682 | 0.29682 | 0.29682 | 0 | 0 | 0 | 0 | 0.065868 | 0.307054 | 482 | 16 | 92 | 30.125 | 0.781437 | 0.429461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 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 |
45f6b014a0ac32b68009723e12c992a30fbfe963 | 2,819 | py | Python | tools/accuracy_checker/accuracy_checker/representation/segmentation_representation.py | zhoub/dldt | e42c01cf6e1d3aefa55e2c5df91f1054daddc575 | [
"Apache-2.0"
] | null | null | null | tools/accuracy_checker/accuracy_checker/representation/segmentation_representation.py | zhoub/dldt | e42c01cf6e1d3aefa55e2c5df91f1054daddc575 | [
"Apache-2.0"
] | null | null | null | tools/accuracy_checker/accuracy_checker/representation/segmentation_representation.py | zhoub/dldt | e42c01cf6e1d3aefa55e2c5df91f1054daddc575 | [
"Apache-2.0"
] | null | null | null | """
Copyright (c) 2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | 29.673684 | 114 | 0.692089 | 337 | 2,819 | 5.590504 | 0.4273 | 0.050955 | 0.026539 | 0.031847 | 0.061571 | 0.061571 | 0.032909 | 0 | 0 | 0 | 0 | 0.005999 | 0.231288 | 2,819 | 94 | 115 | 29.989362 | 0.863406 | 0.332742 | 0 | 0.043478 | 0 | 0 | 0.034135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.043478 | 0.086957 | 0.021739 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
45f7e2217c741d0f3d2c5a55d832dd150b310e58 | 5,619 | py | Python | noxfile.py | larryturner/diamondback | 8c280edafaa20c1287cfc339a0ca33eefc1c1b89 | [
"BSD-3-Clause"
] | 4 | 2019-09-10T07:02:48.000Z | 2021-07-02T08:25:49.000Z | noxfile.py | larryturner/diamondback | 8c280edafaa20c1287cfc339a0ca33eefc1c1b89 | [
"BSD-3-Clause"
] | null | null | null | noxfile.py | larryturner/diamondback | 8c280edafaa20c1287cfc339a0ca33eefc1c1b89 | [
"BSD-3-Clause"
] | null | null | null | """ **Description**
Nox project management.
**Example**
::
nox --list
nox --sessions clean dist docs image notebook push status tag tests
**License**
© 2020 - 2021 Schneider Electric Industries SAS. All rights reserved.
**Author**
... | 31.567416 | 127 | 0.481758 | 557 | 5,619 | 4.818671 | 0.245961 | 0.085693 | 0.041729 | 0.073025 | 0.334203 | 0.248137 | 0.104694 | 0.104694 | 0.104694 | 0.069672 | 0 | 0.006728 | 0.338672 | 5,619 | 177 | 128 | 31.745763 | 0.715285 | 0.093255 | 0 | 0.45614 | 0 | 0 | 0.174664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.078947 | 0.052632 | 0 | 0.131579 | 0.008772 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
45fba5e81bf697593e52443ce4497e2ace87133a | 4,063 | py | Python | JstormBot/intent/Loki_request.py | Chenct-jonathan/LokiHub | 7193589151e88f4e66aee6457926e565d0023fa1 | [
"MIT"
] | 17 | 2020-11-25T07:40:18.000Z | 2022-03-07T03:29:18.000Z | JstormBot/intent/Loki_request.py | Chenct-jonathan/LokiHub | 7193589151e88f4e66aee6457926e565d0023fa1 | [
"MIT"
] | 8 | 2020-12-18T13:23:59.000Z | 2021-10-03T21:41:50.000Z | JstormBot/intent/Loki_request.py | Chenct-jonathan/LokiHub | 7193589151e88f4e66aee6457926e565d0023fa1 | [
"MIT"
] | 43 | 2020-12-02T09:03:57.000Z | 2021-12-23T03:30:25.000Z | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
"""
Loki module for request
Input:
inputSTR str,
utterance str,
args str[],
resultDICT dict
Output:
resultDICT dict
"""
DEBUG_request = True
userDefinedDICT = {"age": ["年長", "年幼... | 45.651685 | 1,854 | 0.46222 | 471 | 4,063 | 3.983015 | 0.58811 | 0.181237 | 0.022388 | 0.014392 | 0.292111 | 0.153518 | 0.153518 | 0.153518 | 0.153518 | 0.108742 | 0 | 0.003901 | 0.242924 | 4,063 | 89 | 1,855 | 45.651685 | 0.605982 | 0.056608 | 0 | 0.444444 | 0 | 0 | 0.300216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0 | 0 | 0.055556 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
45fdafd176db49674e2eff2852659580f7952abc | 9,662 | py | Python | src/bkl/interpreter/__init__.py | johnwbyrd/brakefile | 774cdc7c394c3e9b191ff84a2ce33c4628fe126a | [
"MIT"
] | 118 | 2015-01-05T01:26:10.000Z | 2022-03-06T01:56:11.000Z | src/bkl/interpreter/__init__.py | johnwbyrd/brakefile | 774cdc7c394c3e9b191ff84a2ce33c4628fe126a | [
"MIT"
] | 76 | 2015-01-04T16:17:20.000Z | 2022-02-06T14:34:54.000Z | src/bkl/interpreter/__init__.py | johnwbyrd/brakefile | 774cdc7c394c3e9b191ff84a2ce33c4628fe126a | [
"MIT"
] | 24 | 2015-03-03T09:51:16.000Z | 2022-02-06T14:31:47.000Z | #
# This file is part of Bakefile (http://bakefile.org)
#
# Copyright (C) 2008-2013 Vaclav Slavik
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without... | 37.305019 | 101 | 0.643138 | 1,226 | 9,662 | 4.970636 | 0.314029 | 0.022153 | 0.014933 | 0.013948 | 0.094847 | 0.072859 | 0.063013 | 0.063013 | 0.063013 | 0.063013 | 0 | 0.002997 | 0.274684 | 9,662 | 258 | 102 | 37.449612 | 0.866581 | 0.455289 | 0 | 0.10101 | 0 | 0 | 0.077817 | 0 | 0 | 0 | 0 | 0.003876 | 0 | 1 | 0.111111 | false | 0.111111 | 0.090909 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3401e0ec466bc56bd5bb8b7df1d1a012f4fba490 | 5,058 | py | Python | setup.py | dcramer/jinja1-djangosupport | 755287f155c18ccabe69f1318bacdaca14f55da3 | [
"BSD-3-Clause"
] | 2 | 2015-09-24T19:53:35.000Z | 2015-11-06T10:47:02.000Z | setup.py | dcramer/jinja1-djangosupport | 755287f155c18ccabe69f1318bacdaca14f55da3 | [
"BSD-3-Clause"
] | null | null | null | setup.py | dcramer/jinja1-djangosupport | 755287f155c18ccabe69f1318bacdaca14f55da3 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
jinja
~~~~~
Jinja is a `sandboxed`_ template engine written in pure Python. It
provides a `Django`_ like non-XML syntax and compiles templates into
executable python code. It's basically a combination of Django templates
and python code.
Nutshell
--------
Here a small example of a Jinja t... | 31.811321 | 82 | 0.624357 | 624 | 5,058 | 4.975962 | 0.448718 | 0.020612 | 0.013527 | 0.016425 | 0.063768 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0.009106 | 0.261764 | 5,058 | 158 | 83 | 32.012658 | 0.822442 | 0.030447 | 0 | 0.129032 | 0 | 0 | 0.368389 | 0.031611 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0.139785 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
340805bb56fb6825cf5ec46824550da85db1da19 | 850 | py | Python | job_server/src/job_server/app.py | jessicalucci/EB-Worker-RDS-VPC | 0490a32f5ec7bebc0cd01eb2fe74132d2b4d0a8b | [
"Apache-2.0"
] | 3 | 2017-11-09T11:23:30.000Z | 2019-04-29T09:17:11.000Z | job_server/src/job_server/app.py | jessicalucci/EB-Worker-RDS-VPC | 0490a32f5ec7bebc0cd01eb2fe74132d2b4d0a8b | [
"Apache-2.0"
] | 1 | 2021-06-24T20:47:46.000Z | 2021-06-24T20:47:46.000Z | job_server/src/job_server/app.py | jessicalucci/EB-Worker-RDS-VPC | 0490a32f5ec7bebc0cd01eb2fe74132d2b4d0a8b | [
"Apache-2.0"
] | null | null | null | import os
import yaml
import tornado.ioloop
import tornado.gen
import tornado.web
from job_server.context import JobServerContext
from job_server.routes import PostJobHandler, RunJobHandler
from job_server.db import init_db
def job_server(context):
return tornado.web.Application([
(r'/job/run', RunJobHan... | 26.5625 | 103 | 0.597647 | 93 | 850 | 5.258065 | 0.44086 | 0.092025 | 0.079755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006645 | 0.291765 | 850 | 31 | 104 | 27.419355 | 0.805648 | 0 | 0 | 0.08 | 0 | 0 | 0.054118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.32 | 0.04 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
340e0e442f23eb6070becfa02c71c53809883576 | 3,615 | py | Python | Src/DockerMMODES/data_gen.py | beatrizgj/MDPbiomeGEM | 0e3622b43ba382e648faf049825a5362a09cf0ab | [
"MIT"
] | null | null | null | Src/DockerMMODES/data_gen.py | beatrizgj/MDPbiomeGEM | 0e3622b43ba382e648faf049825a5362a09cf0ab | [
"MIT"
] | null | null | null | Src/DockerMMODES/data_gen.py | beatrizgj/MDPbiomeGEM | 0e3622b43ba382e648faf049825a5362a09cf0ab | [
"MIT"
] | 1 | 2021-05-13T08:52:54.000Z | 2021-05-13T08:52:54.000Z | #!/usr/bin/python3
# Script to shape the desired output to be processed (MMODES)
# the datatable way
# @author: Jorge Carrasco Muriel
# Creation: 09/06/2019
import os
import re
import numpy as np
import datatable as dt
from datatable import f
def log(cons, media):
'''
Writes information of consortium object... | 36.15 | 103 | 0.536929 | 470 | 3,615 | 4.095745 | 0.389362 | 0.007273 | 0.016623 | 0.024935 | 0.153766 | 0.130909 | 0.130909 | 0.130909 | 0.130909 | 0.130909 | 0 | 0.023858 | 0.327524 | 3,615 | 99 | 104 | 36.515152 | 0.767997 | 0.33112 | 0 | 0.184615 | 0 | 0 | 0.150064 | 0.009833 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.046154 | false | 0 | 0.076923 | 0 | 0.169231 | 0.046154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
3410f849ab55228afbea2fa939a70f515c64f608 | 392 | py | Python | products/migrations/0011_product_products_pr_name_9ff0a3_idx.py | MattiMatt8/ship-o-cereal | 26d8dd045f2043fade7b6068e84e5a5be5748546 | [
"MIT"
] | 1 | 2021-05-14T20:18:09.000Z | 2021-05-14T20:18:09.000Z | products/migrations/0011_product_products_pr_name_9ff0a3_idx.py | MattiMatt8/ship-o-cereal | 26d8dd045f2043fade7b6068e84e5a5be5748546 | [
"MIT"
] | null | null | null | products/migrations/0011_product_products_pr_name_9ff0a3_idx.py | MattiMatt8/ship-o-cereal | 26d8dd045f2043fade7b6068e84e5a5be5748546 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-05-10 16:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0010_alter_brand_options'),
]
operations = [
migrations.AddIndex(
model_name='product',
index=models.Index... | 21.777778 | 84 | 0.627551 | 44 | 392 | 5.409091 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071672 | 0.252551 | 392 | 17 | 85 | 23.058824 | 0.740614 | 0.109694 | 0 | 0 | 1 | 0 | 0.201729 | 0.146974 | 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 |
34132e33a1292690bcee58dd88a9528ddf148382 | 905 | py | Python | examples/QuantosDataService/runService.py | hzypage/TestPy | 2646bbd07b90c8a1795001a6712e1d5d1aabda90 | [
"MIT"
] | 18 | 2019-02-21T05:42:41.000Z | 2022-03-31T10:17:51.000Z | examples/QuantosDataService/runService.py | hzypage/TestPy | 2646bbd07b90c8a1795001a6712e1d5d1aabda90 | [
"MIT"
] | null | null | null | examples/QuantosDataService/runService.py | hzypage/TestPy | 2646bbd07b90c8a1795001a6712e1d5d1aabda90 | [
"MIT"
] | 5 | 2017-12-20T09:57:17.000Z | 2021-08-01T19:47:14.000Z | # encoding: UTF-8
"""
定时服务,可无人值守运行,实现每日自动下载更新历史行情数据到数据库中。
"""
import datetime as ddt
from dataService import *
if __name__ == '__main__':
taskCompletedDate = None
# 生成一个随机的任务下载时间,用于避免所有用户在同一时间访问数据服务器
taskTime = ddt.time(hour=17, minute=0)
# 进入主循环
while True:
t = ddt.datetime.n... | 23.205128 | 96 | 0.528177 | 86 | 905 | 5.453488 | 0.697674 | 0.021322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.376796 | 905 | 39 | 97 | 23.205128 | 0.820922 | 0.111602 | 0 | 0 | 0 | 0 | 0.047745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3416327fb0f9f3461b62f07b8caef06cd7307131 | 585 | py | Python | python/image_processing/closing.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 16 | 2018-11-26T08:39:42.000Z | 2019-05-08T10:09:52.000Z | python/image_processing/closing.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 8 | 2020-05-04T06:29:26.000Z | 2022-02-12T05:33:16.000Z | python/image_processing/closing.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 5 | 2020-02-11T16:02:21.000Z | 2021-02-05T07:48:30.000Z |
import cv2
import numpy as np
img = cv2.imread('closing.png',0)
kernel = np.ones((5,5),np.uint8)
closing = cv2.morphologyEx(img, cv2.MORPH_CLOSE, kernel)
blackhat = cv2.morphologyEx(img, cv2.MORPH_BLACKHAT, kernel)
gradient = cv2.morphologyEx(img, cv2.MORPH_GRADIENT, kernel)
tophat = cv2.morphologyEx(img, cv2.MORPH_T... | 24.375 | 60 | 0.753846 | 87 | 585 | 5.022989 | 0.344828 | 0.09611 | 0.16476 | 0.19222 | 0.237986 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047081 | 0.092308 | 585 | 23 | 61 | 25.434783 | 0.775895 | 0.080342 | 0 | 0 | 0 | 0 | 0.101504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 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 |
3417c8d63d8148a7abcdce76a3f60f353a5c2e9d | 287 | py | Python | minpy/numpy/random.py | yuhonghong66/minpy | 2e44927ad0fbff9295e2acf6db636e588fdc5b42 | [
"Apache-2.0"
] | 1,271 | 2015-11-05T10:53:40.000Z | 2022-02-20T08:33:35.000Z | minpy/numpy/random.py | yuhonghong66/minpy | 2e44927ad0fbff9295e2acf6db636e588fdc5b42 | [
"Apache-2.0"
] | 140 | 2016-04-07T02:55:19.000Z | 2019-08-02T06:01:53.000Z | minpy/numpy/random.py | yuhonghong66/minpy | 2e44927ad0fbff9295e2acf6db636e588fdc5b42 | [
"Apache-2.0"
] | 144 | 2015-11-05T10:53:45.000Z | 2022-03-25T05:38:09.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Mock numpy random module """
#pylint: disable= invalid-name
from __future__ import absolute_import
import sys
from minpy.numpy.mocking import Module
_old = {
'__name__' : __name__,
}
sys.modules[__name__] = Module(_old, 'random')
| 19.133333 | 46 | 0.700348 | 37 | 287 | 4.918919 | 0.648649 | 0.098901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004115 | 0.15331 | 287 | 14 | 47 | 20.5 | 0.744856 | 0.337979 | 0 | 0 | 0 | 0 | 0.077348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3420972b534220016fb4590268f15b082cb2bb19 | 981 | py | Python | pyfitterbap/entry_points/crc.py | jetperch/fitterbap | dc29db72c2d7b01d90556a251be0a361574033bc | [
"Apache-2.0"
] | 21 | 2021-05-14T20:16:56.000Z | 2022-03-30T18:54:31.000Z | pyfitterbap/entry_points/crc.py | jetperch/fitterbap | dc29db72c2d7b01d90556a251be0a361574033bc | [
"Apache-2.0"
] | null | null | null | pyfitterbap/entry_points/crc.py | jetperch/fitterbap | dc29db72c2d7b01d90556a251be0a361574033bc | [
"Apache-2.0"
] | null | null | null | # Copyright 2020-2021 Jetperch LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 28.852941 | 79 | 0.678899 | 155 | 981 | 4.270968 | 0.625806 | 0.090634 | 0.039275 | 0.048338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028871 | 0.223242 | 981 | 33 | 80 | 29.727273 | 0.839895 | 0.579001 | 0 | 0 | 0 | 0 | 0.073604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.538462 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3429f960de3a226447cc6fa439b94de7e1d2003b | 454 | py | Python | webapp/__init__.py | PASTAplus/dex-deprecated | 47e343583c096cdd776c86b155f916bf58e3b616 | [
"Apache-2.0"
] | null | null | null | webapp/__init__.py | PASTAplus/dex-deprecated | 47e343583c096cdd776c86b155f916bf58e3b616 | [
"Apache-2.0"
] | 6 | 2020-11-24T22:29:51.000Z | 2021-07-30T22:10:57.000Z | webapp/__init__.py | PASTAplus/dex-deprecated | 47e343583c096cdd776c86b155f916bf58e3b616 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
:Mod: __init__
:Synopsis:
Initialize webapp, including working directories (see Config.ROOT_DIR).
:Author:
servilla
:Created:
4/12/20
"""
import os
import daiquiri
from webapp.config import Config
logger = daiquiri.getLogger(__name__)
path = Config.... | 16.214286 | 79 | 0.709251 | 61 | 454 | 5.081967 | 0.672131 | 0.096774 | 0.125806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.154185 | 454 | 27 | 80 | 16.814815 | 0.791667 | 0.420705 | 0 | 0 | 0 | 0 | 0.275591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.