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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7b714e42eb31768c8823d0689247427b0fbc7caa | 7,168 | py | Python | ICP.py | ctralie/SiRPyGL | e06c317ed60321d492725e39fd8fcc0ce56ff4c0 | [
"Apache-2.0"
] | 7 | 2017-10-06T05:33:28.000Z | 2021-04-20T20:06:53.000Z | ICP.py | ctralie/SiRPyGL | e06c317ed60321d492725e39fd8fcc0ce56ff4c0 | [
"Apache-2.0"
] | null | null | null | ICP.py | ctralie/SiRPyGL | e06c317ed60321d492725e39fd8fcc0ce56ff4c0 | [
"Apache-2.0"
] | 4 | 2015-03-20T13:14:36.000Z | 2019-04-19T10:34:51.000Z | from Primitives3D import *
from PolyMesh import *
from LaplacianMesh import *
from PointCloud import *
from sys import exit, argv
import random
import numpy as np
import numpy.linalg as linalg
import scipy.spatial as spatial
ICP_MAXITER = 100
ICP_NPOINTSAMPLES = 1000
def getRigidTransformationSVD(Points, TargetPoints... | 35.137255 | 141 | 0.645089 | 979 | 7,168 | 4.715015 | 0.241062 | 0.005199 | 0.010399 | 0.014298 | 0.146447 | 0.121534 | 0.114168 | 0.095754 | 0.084489 | 0.084489 | 0 | 0.031975 | 0.236468 | 7,168 | 203 | 142 | 35.310345 | 0.811438 | 0.156948 | 0 | 0.166667 | 0 | 0 | 0.013129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053571 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7b72c7012f720488793677e7284c256e05a81f22 | 317 | py | Python | src/opera/parser/tosca/v_1_3/event_filter_definition.py | abitrolly/xopera-opera | 49694282db95bb425b988117b90b629f898803ec | [
"Apache-2.0"
] | 31 | 2019-02-12T06:52:24.000Z | 2022-03-23T06:48:10.000Z | src/opera/parser/tosca/v_1_3/event_filter_definition.py | abitrolly/xopera-opera | 49694282db95bb425b988117b90b629f898803ec | [
"Apache-2.0"
] | 190 | 2019-05-09T09:12:38.000Z | 2022-03-31T06:21:51.000Z | src/opera/parser/tosca/v_1_3/event_filter_definition.py | abitrolly/xopera-opera | 49694282db95bb425b988117b90b629f898803ec | [
"Apache-2.0"
] | 19 | 2019-05-09T13:36:22.000Z | 2022-01-25T21:27:50.000Z | from ..entity import Entity
from ..reference import ReferenceXOR
from ..string import String
class EventFilterDefinition(Entity):
ATTRS = dict(
node=ReferenceXOR(("topology_template", "node_templates"), "node_types"),
requirement=String,
capability=String,
)
REQUIRED = {"node"}
| 24.384615 | 81 | 0.687697 | 31 | 317 | 6.935484 | 0.580645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201893 | 317 | 12 | 82 | 26.416667 | 0.849802 | 0 | 0 | 0 | 0 | 0 | 0.141956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7b786259592975abd497e56e66012f96ed606270 | 650 | py | Python | adventofcode/adv_16.py | uppi/adventofcode2016 | a43ff7000256b2a232a3e22efc04b9a95fcb79f2 | [
"MIT"
] | null | null | null | adventofcode/adv_16.py | uppi/adventofcode2016 | a43ff7000256b2a232a3e22efc04b9a95fcb79f2 | [
"MIT"
] | null | null | null | adventofcode/adv_16.py | uppi/adventofcode2016 | a43ff7000256b2a232a3e22efc04b9a95fcb79f2 | [
"MIT"
] | null | null | null |
def generate_state(state, desired_len):
while len(state) < desired_len:
b = "".join(str((int(s) + 1) % 2) for s in reversed(state))
state = state + "0" + b
return state[:desired_len]
def checksum(state):
res = []
f = True
while f or len(state) % 2 == 0:
f = False
r... | 27.083333 | 68 | 0.570769 | 89 | 650 | 4.011236 | 0.404494 | 0.109244 | 0.12605 | 0.145658 | 0.240896 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118896 | 0.275385 | 650 | 23 | 69 | 28.26087 | 0.639066 | 0 | 0 | 0.111111 | 1 | 0 | 0.066256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7b83770580ad8154fb8801cc0dbf7e211e1111c0 | 5,789 | py | Python | privx_api/host_store.py | vfosterm-ssh/privx-sdk-for-python | 8b9b5169bae6bd1b0b7c006cdcd454f0ab3d6b16 | [
"Apache-2.0"
] | null | null | null | privx_api/host_store.py | vfosterm-ssh/privx-sdk-for-python | 8b9b5169bae6bd1b0b7c006cdcd454f0ab3d6b16 | [
"Apache-2.0"
] | null | null | null | privx_api/host_store.py | vfosterm-ssh/privx-sdk-for-python | 8b9b5169bae6bd1b0b7c006cdcd454f0ab3d6b16 | [
"Apache-2.0"
] | null | null | null | from http import HTTPStatus
from privx_api.response import PrivXAPIResponse
from privx_api.base import BasePrivXAPI
from privx_api.enums import UrlEnum
class HostStoreAPI(BasePrivXAPI):
"""
Host store API.
"""
def create_host(self, host: dict) -> PrivXAPIResponse:
"""
Create a host, ... | 29.237374 | 94 | 0.597513 | 584 | 5,789 | 5.695205 | 0.143836 | 0.109441 | 0.216476 | 0.085989 | 0.714372 | 0.683103 | 0.675586 | 0.626278 | 0.536981 | 0.490379 | 0 | 0 | 0.319226 | 5,789 | 197 | 95 | 29.385787 | 0.843948 | 0.158058 | 0 | 0.454545 | 0 | 0 | 0.008044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131313 | false | 0 | 0.040404 | 0 | 0.313131 | 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 |
7b8793e6dc552c19ed19e8b30bdfc7f8c73cf3eb | 7,798 | py | Python | constrained_decoding/server/nmt_app.py | chrishokamp/constrained_decoding | 187846cea4d2aeee6867781b8ceb04cd02d79a4e | [
"MIT"
] | 73 | 2017-04-25T16:38:23.000Z | 2022-02-21T21:39:50.000Z | constrained_decoding/server/nmt_app.py | Brucewuzhang/constrained_decoding | 187846cea4d2aeee6867781b8ceb04cd02d79a4e | [
"MIT"
] | 6 | 2017-04-24T13:07:38.000Z | 2020-03-12T08:58:01.000Z | constrained_decoding/server/nmt_app.py | Brucewuzhang/constrained_decoding | 187846cea4d2aeee6867781b8ceb04cd02d79a4e | [
"MIT"
] | 20 | 2017-06-16T08:11:50.000Z | 2021-12-06T01:36:41.000Z | import logging
import copy
import json
from flask import Flask, request, jsonify, abort
import pylru
from constrained_decoding import create_constrained_decoder
from constrained_decoding.server import convert_token_annotations_to_spans, remap_constraint_indices
logging.basicConfig()
logger = logging.getLogger(__name... | 41.478723 | 115 | 0.670044 | 987 | 7,798 | 5.069909 | 0.279635 | 0.041567 | 0.049361 | 0.023981 | 0.146483 | 0.06275 | 0.029976 | 0.029976 | 0.019584 | 0 | 0 | 0.006499 | 0.250192 | 7,798 | 187 | 116 | 41.700535 | 0.849324 | 0.277635 | 0 | 0.019417 | 0 | 0 | 0.050692 | 0.003955 | 0 | 0 | 0 | 0.010695 | 0 | 1 | 0.029126 | false | 0 | 0.067961 | 0 | 0.126214 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
7b8c90e9d74e699091029a9b26205f4fb0b4b67f | 3,043 | py | Python | prestashop/scripts/instances.py | abdullatifmouhamadi/docker-common | 76b952e4272bf3788a38f20c0b1f249116e6dced | [
"MIT"
] | null | null | null | prestashop/scripts/instances.py | abdullatifmouhamadi/docker-common | 76b952e4272bf3788a38f20c0b1f249116e6dced | [
"MIT"
] | null | null | null | prestashop/scripts/instances.py | abdullatifmouhamadi/docker-common | 76b952e4272bf3788a38f20c0b1f249116e6dced | [
"MIT"
] | null | null | null | # /usr/bin/python
from prestashop import copy_src, install
from config import ( MYSQL_HOST, MYSQL_DATABASE, MYSQL_USER, MYSQL_PASSWORD )
import sh, os
from sh import mysqldump, cp, mysql, docker
from utils import logi
from config import INSTANCES_DIR, DOMAIN_NAME
"""
def _release_dir(release):
return INSTANCES_D... | 28.439252 | 100 | 0.659875 | 373 | 3,043 | 5.064343 | 0.211796 | 0.095289 | 0.107994 | 0.063526 | 0.337215 | 0.242986 | 0.129698 | 0.089465 | 0.049232 | 0 | 0 | 0 | 0.225764 | 3,043 | 106 | 101 | 28.707547 | 0.801783 | 0.004929 | 0 | 0.166667 | 0 | 0 | 0.084912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.180556 | false | 0.111111 | 0.083333 | 0.027778 | 0.375 | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7b90271be03556ea9168227fba5bcb1894e87484 | 404 | py | Python | sendCode.py | dwaan/lgtv-broadlink-nvdia-shield-automation | b4719ed18e14ac863d83f131237a864818d3edb0 | [
"MIT"
] | 1 | 2020-03-09T16:53:09.000Z | 2020-03-09T16:53:09.000Z | sendCode.py | Anustup900/lgtv-broadlink-nvdia-shield-automation | 7fb99074ac8eba4a9080b9ea0160fb98d4159d88 | [
"MIT"
] | 1 | 2021-04-23T02:31:17.000Z | 2021-04-23T02:31:17.000Z | sendCode.py | Anustup900/lgtv-broadlink-nvdia-shield-automation | 7fb99074ac8eba4a9080b9ea0160fb98d4159d88 | [
"MIT"
] | 1 | 2020-08-06T17:33:24.000Z | 2020-08-06T17:33:24.000Z | import broadlink
import time
import sys
def sendCode(codeData):
device = broadlink.rm(host=("192.168.1.103",80), mac=bytearray.fromhex("780f7763c5a1"), devtype="rm")
print "Connecting to Broadlink device...."
device.auth()
device.host
# Replace with your code
device.se... | 26.933333 | 109 | 0.65099 | 50 | 404 | 5.08 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0.210396 | 404 | 15 | 110 | 26.933333 | 0.727273 | 0.054455 | 0 | 0 | 0 | 0 | 0.188976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.272727 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7b93c9fe972e529dd64fbf022b99385e32786105 | 1,936 | py | Python | src/my_happy_modin/engines/base/io/__init__.py | ggservice007/my-happy-modin | ab293ecfa04516a5c9f76284e09b45cdd7588186 | [
"Apache-2.0"
] | null | null | null | src/my_happy_modin/engines/base/io/__init__.py | ggservice007/my-happy-modin | ab293ecfa04516a5c9f76284e09b45cdd7588186 | [
"Apache-2.0"
] | 2 | 2021-01-27T11:25:26.000Z | 2021-01-27T12:47:53.000Z | src/my_happy_modin/engines/base/io/__init__.py | ggservice007/my-happy-modin | ab293ecfa04516a5c9f76284e09b45cdd7588186 | [
"Apache-2.0"
] | null | null | null | # Licensed to my_happy_modin Development Team under one or more contributor license agreements.
# See the NOTICE file distributed with this work for additional information regarding
# copyright ownership. The my_happy_modin Development Team licenses this file to you under the
# Apache License, Version 2.0 (the "Licens... | 49.641026 | 95 | 0.813017 | 269 | 1,936 | 5.687732 | 0.386617 | 0.059477 | 0.101961 | 0.115033 | 0.280392 | 0.245098 | 0.245098 | 0.188235 | 0.080392 | 0 | 0 | 0.002352 | 0.121384 | 1,936 | 38 | 96 | 50.947368 | 0.897119 | 0.40031 | 0 | 0 | 0 | 0 | 0.133275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.458333 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7b96c25ea0e98796ef5130e4a3889cb25e2f567b | 2,493 | py | Python | indra/util/perm_cache.py | zebulon2/indra | 7727ddcab52ad8012eb6592635bfa114e904bd48 | [
"BSD-2-Clause"
] | 136 | 2016-02-11T22:06:37.000Z | 2022-03-31T17:26:20.000Z | indra/util/perm_cache.py | zebulon2/indra | 7727ddcab52ad8012eb6592635bfa114e904bd48 | [
"BSD-2-Clause"
] | 748 | 2016-02-03T16:27:56.000Z | 2022-03-09T14:27:54.000Z | indra/util/perm_cache.py | zebulon2/indra | 7727ddcab52ad8012eb6592635bfa114e904bd48 | [
"BSD-2-Clause"
] | 56 | 2015-08-28T14:03:44.000Z | 2022-02-04T06:15:55.000Z | __all__ = ['perm_cache']
import json
import pickle
from functools import update_wrapper
from os.path import exists
def perm_cache(cache_type='pkl', cache_file=None):
class PermCache(object):
_cache_type = cache_type
_cache_file = cache_file
def __init__(self, func):
if self._... | 36.661765 | 81 | 0.491777 | 277 | 2,493 | 4.086643 | 0.277978 | 0.270318 | 0.137809 | 0.060071 | 0.221731 | 0.182862 | 0.182862 | 0.144876 | 0.144876 | 0.144876 | 0 | 0.003296 | 0.391496 | 2,493 | 67 | 82 | 37.208955 | 0.742914 | 0 | 0 | 0.137931 | 0 | 0 | 0.046129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0 | 0.068966 | 0.017241 | 0.275862 | 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 |
7ba661198de98b3d60809f62c71ee928fb649c66 | 1,939 | py | Python | src/models/account.py | Addovej/spotiplays | 652365ebf596b8036f20a4be74bf1dc2fe0f8293 | [
"MIT"
] | null | null | null | src/models/account.py | Addovej/spotiplays | 652365ebf596b8036f20a4be74bf1dc2fe0f8293 | [
"MIT"
] | 1 | 2021-02-27T16:40:22.000Z | 2021-02-27T16:40:22.000Z | src/models/account.py | Addovej/spotiplays | 652365ebf596b8036f20a4be74bf1dc2fe0f8293 | [
"MIT"
] | null | null | null | from typing import Optional, Union
import sqlalchemy as sa
from sqlalchemy.engine.result import RowProxy
from database import db, metadata
from .base import BaseModelInterface
__all__ = (
'Account',
'accounts',
'ActiveAccount',
'active_account',
)
active_account = sa.Table(
'active_account',
... | 23.938272 | 70 | 0.591026 | 211 | 1,939 | 5.317536 | 0.374408 | 0.042781 | 0.067736 | 0.02139 | 0.180036 | 0.057041 | 0.057041 | 0 | 0 | 0 | 0 | 0.004399 | 0.296545 | 1,939 | 80 | 71 | 24.2375 | 0.818182 | 0.020113 | 0 | 0.25 | 0 | 0 | 0.076396 | 0.012645 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0 | false | 0.015625 | 0.078125 | 0 | 0.203125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
7bb2cca3156c0da8b70973ce3d63dc9f3a12bf90 | 558 | py | Python | setup.py | rajaram1990/GetNSEStockPrice | f5825ca7a863decc6119c2308340435d671fdbb7 | [
"MIT"
] | 3 | 2020-05-01T07:43:12.000Z | 2021-08-12T18:55:02.000Z | setup.py | rajaram1990/GetNSEStockPrice | f5825ca7a863decc6119c2308340435d671fdbb7 | [
"MIT"
] | null | null | null | setup.py | rajaram1990/GetNSEStockPrice | f5825ca7a863decc6119c2308340435d671fdbb7 | [
"MIT"
] | 2 | 2017-05-11T17:38:17.000Z | 2017-05-21T14:12:05.000Z | from distutils.core import setup
setup(
name = 'GetNSEStockPrice',
packages = ['GetNSEStockPrice'],
version = '0.1',
description = 'Simple python library that consumes HTTP REST data of sttock prices provided by Google and Yahoo Finance APIs.',
author = 'Rajaram Srinivasan',
author_email = 'rajaram.1990@gma... | 39.857143 | 129 | 0.71147 | 65 | 558 | 6.076923 | 0.738462 | 0.010127 | 0.070886 | 0.086076 | 0.222785 | 0.222785 | 0 | 0 | 0 | 0 | 0 | 0.033403 | 0.141577 | 558 | 13 | 130 | 42.923077 | 0.791232 | 0 | 0 | 0 | 0 | 0 | 0.573477 | 0.039427 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7bb36a6396f2ab6dd0717b6e9264f4b510b36990 | 1,169 | py | Python | solutions/139.word-break/word-break.py | wangsongiam/leetcode | 96ff21bca1871816ae51fccb1fa13587b378dc50 | [
"MIT"
] | 3 | 2018-11-25T15:19:57.000Z | 2019-09-28T03:01:11.000Z | solutions/139.word-break/word-break.py | casprwang/leetcode | 96ff21bca1871816ae51fccb1fa13587b378dc50 | [
"MIT"
] | null | null | null | solutions/139.word-break/word-break.py | casprwang/leetcode | 96ff21bca1871816ae51fccb1fa13587b378dc50 | [
"MIT"
] | 3 | 2018-02-11T20:23:44.000Z | 2020-06-05T15:39:56.000Z | class Solution:
def wordBreak(self, s, wordDict):
"""
:type s: str
:type wordDict: List[str]
:rtype: bool
"""
# iterative
visited = [0] * (len(s) + 1)
stack = [0]
while stack:
cur = stack.pop()
print(cur)
if... | 22.480769 | 52 | 0.388366 | 119 | 1,169 | 3.815126 | 0.352941 | 0.044053 | 0.022026 | 0.061674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012027 | 0.502139 | 1,169 | 51 | 53 | 22.921569 | 0.768041 | 0.370402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.25 | 0.0625 | 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 |
7bb4376efa300989fe304efc51f8fd622f457706 | 1,560 | py | Python | variance/fixtures/equipment.py | ExpandingDev/Variance | 3afba3638ae0557673f171c571d4acc29ee363b4 | [
"Unlicense"
] | null | null | null | variance/fixtures/equipment.py | ExpandingDev/Variance | 3afba3638ae0557673f171c571d4acc29ee363b4 | [
"Unlicense"
] | null | null | null | variance/fixtures/equipment.py | ExpandingDev/Variance | 3afba3638ae0557673f171c571d4acc29ee363b4 | [
"Unlicense"
] | null | null | null |
DEFAULT_EQUIPMENT = [
("Dumbbells","Generic dumbbells."),
("Barbell","Generic barbell with plate weights."),
("Squat Rack","Generic squat rack."),
("Leg Curl Machine","Generic machine to do leg curls on."),
("Leg Extension Machine","Generic machine to do leg extensions on."),
("Pull up bar","Generic horizontal bar to ... | 60 | 156 | 0.740385 | 209 | 1,560 | 5.521531 | 0.411483 | 0.041594 | 0.069324 | 0.039861 | 0.169844 | 0.12305 | 0.074523 | 0.074523 | 0 | 0 | 0 | 0.001458 | 0.120513 | 1,560 | 26 | 157 | 60 | 0.83965 | 0 | 0 | 0 | 0 | 0.04 | 0.852564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7bb43a979869082b7b4164a13e64744f1540547b | 202 | py | Python | app.py | surfaceanalytics/inelasticscattering | da549dde788a55084c565bbc5f89ebf9cbae4263 | [
"MIT"
] | null | null | null | app.py | surfaceanalytics/inelasticscattering | da549dde788a55084c565bbc5f89ebf9cbae4263 | [
"MIT"
] | 3 | 2021-09-08T03:02:25.000Z | 2022-03-12T01:00:06.000Z | app.py | surfaceanalytics/inelasticscattering | da549dde788a55084c565bbc5f89ebf9cbae4263 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 15 14:37:57 2020
@author: Mark
"""
from controller.controller import Controller
if __name__ == "__main__":
app = Controller()
app.root.mainloop() | 18.363636 | 44 | 0.658416 | 27 | 202 | 4.62963 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078788 | 0.183168 | 202 | 11 | 45 | 18.363636 | 0.678788 | 0.361386 | 0 | 0 | 0 | 0 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
7bb4674a045f54677a5c64a392c9fa1b20d6628b | 60,479 | py | Python | discussthis.py | srcooney/DiscussThis | 50e4d45d48b21dfd4ff396adf87ebb3c807bbdc1 | [
"Apache-2.0"
] | 2 | 2016-10-02T06:57:00.000Z | 2017-05-08T04:06:23.000Z | discussthis.py | srcooney/DiscussThis | 50e4d45d48b21dfd4ff396adf87ebb3c807bbdc1 | [
"Apache-2.0"
] | null | null | null | discussthis.py | srcooney/DiscussThis | 50e4d45d48b21dfd4ff396adf87ebb3c807bbdc1 | [
"Apache-2.0"
] | null | null | null | import webapp2
from google.appengine.api import users
from google.appengine.ext import ndb
import json
import logging
import re
from google.appengine.api import images
from google.appengine.ext import blobstore
from google.appengine.api import files
import urllib
import time
# from PythonMagick impor... | 47.138737 | 211 | 0.554044 | 5,855 | 60,479 | 5.677711 | 0.101964 | 0.033932 | 0.020305 | 0.027073 | 0.651987 | 0.607737 | 0.575429 | 0.550372 | 0.53864 | 0.517522 | 0 | 0.008684 | 0.297442 | 60,479 | 1,283 | 212 | 47.138737 | 0.773688 | 0.010367 | 0 | 0.545706 | 0 | 0.075716 | 0.545834 | 0.155767 | 0.001847 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003693 | 0.010157 | null | null | 0.000923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7bbbbad976c1a656d2ad54c74be304d4a404e11a | 1,043 | py | Python | tests/main/test_views.py | ktzoulas/stateless-password-manager | c2b8a5cad878758a924a5d8550e5b80b50d7a60b | [
"MIT"
] | null | null | null | tests/main/test_views.py | ktzoulas/stateless-password-manager | c2b8a5cad878758a924a5d8550e5b80b50d7a60b | [
"MIT"
] | null | null | null | tests/main/test_views.py | ktzoulas/stateless-password-manager | c2b8a5cad878758a924a5d8550e5b80b50d7a60b | [
"MIT"
] | 1 | 2019-10-03T14:24:07.000Z | 2019-10-03T14:24:07.000Z | """
Test views of the 'main' blueprint.
"""
from tests import BaseTestCase
class ErrorHandlersTest(BaseTestCase):
"""Test functionality of error handlers"""
def test_404(self):
"""test requested page not found"""
response = self.client.get('/non_existing_page')
self.assertEqual(2... | 30.676471 | 93 | 0.662512 | 126 | 1,043 | 5.412698 | 0.460317 | 0.030792 | 0.079179 | 0.092375 | 0.211144 | 0.211144 | 0.211144 | 0.211144 | 0 | 0 | 0 | 0.024213 | 0.208054 | 1,043 | 33 | 94 | 31.606061 | 0.801453 | 0.231064 | 0 | 0.2 | 0 | 0 | 0.154248 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | false | 0.066667 | 0.066667 | 0 | 0.4 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7bbef7006f233a7dce85a2f93c9b811aaf0dd686 | 1,200 | py | Python | main.py | ChrisBch/PersonGAN | 573704cbb7d2269135795c768d79dc979c821477 | [
"MIT"
] | 1 | 2018-12-07T11:19:39.000Z | 2018-12-07T11:19:39.000Z | main.py | ChrisBch/PersonGAN | 573704cbb7d2269135795c768d79dc979c821477 | [
"MIT"
] | null | null | null | main.py | ChrisBch/PersonGAN | 573704cbb7d2269135795c768d79dc979c821477 | [
"MIT"
] | null | null | null | import getopt
import sys
from colorama import Fore
from models.persongan import Persongan
from Preparation import SimilarityNER
from Preparation import FuncWordProb
from Preparation import LikeWord
from Preparation import GenerateTagVec
from Preparation import GenerateWordVec
from Preparation import WordTagPro... | 37.5 | 144 | 0.76 | 140 | 1,200 | 6.357143 | 0.492857 | 0.117978 | 0.165169 | 0.038202 | 0.047191 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00796 | 0.1625 | 1,200 | 31 | 145 | 38.709677 | 0.877612 | 0 | 0 | 0 | 0 | 0 | 0.124038 | 0.019675 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.37931 | 0 | 0.448276 | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7bc19856f715303aa8ab84845118b085582e28c2 | 2,090 | py | Python | cirrocumulus/util/compat.py | xen0n/cirrocumulus | 1ec35d5f047fdf3ca60e9476af6fe65d8a8eb7c6 | [
"Apache-2.0"
] | 1 | 2019-05-14T11:56:27.000Z | 2019-05-14T11:56:27.000Z | cirrocumulus/util/compat.py | xen0n/cirrocumulus | 1ec35d5f047fdf3ca60e9476af6fe65d8a8eb7c6 | [
"Apache-2.0"
] | null | null | null | cirrocumulus/util/compat.py | xen0n/cirrocumulus | 1ec35d5f047fdf3ca60e9476af6fe65d8a8eb7c6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, division, absolute_import
from __future__ import print_function
__all__ = [
'abstractclassmethod',
'abstractstaticmethod',
]
import abc
# for abc.abstract{class,static}method in Python 2.x
# The following ... | 24.588235 | 77 | 0.686603 | 217 | 2,090 | 6.37788 | 0.483871 | 0.026012 | 0.031792 | 0.046243 | 0.333815 | 0.333815 | 0.333815 | 0.276012 | 0.140173 | 0.140173 | 0 | 0.00806 | 0.22823 | 2,090 | 84 | 78 | 24.880952 | 0.849969 | 0.539234 | 0 | 0.48 | 0 | 0 | 0.045936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0.08 | 0.12 | 0 | 0.36 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7bcd8da7018b8de7655dab543f18cf28143cfb3b | 765 | py | Python | bob/ranks.py | M4R774/bobweb2 | 87cd320d11883a866bdef4ebe3a614a7a41cef29 | [
"MIT"
] | 7 | 2022-01-15T12:02:28.000Z | 2022-02-04T11:53:58.000Z | bob/ranks.py | M4R774/bobweb2 | 87cd320d11883a866bdef4ebe3a614a7a41cef29 | [
"MIT"
] | 131 | 2022-01-15T14:15:03.000Z | 2022-03-21T17:56:09.000Z | bob/ranks.py | M4R774/bobweb2 | 87cd320d11883a866bdef4ebe3a614a7a41cef29 | [
"MIT"
] | null | null | null | ranks = [
"siviilipalvelusmies",
"alokas",
"sotamies",
"aliupseerioppilas",
"korpraali",
"ylimatruusi",
"alikersantti",
"upseerioppilas",
"kersantti",
"upseerikokelas",
"ylikersantti",
"vääpeli",
"pursimies",
"ylivääpeli",
"sotilasmestari",
"vänrikki",
... | 18.658537 | 26 | 0.59085 | 41 | 765 | 11.02439 | 0.95122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253595 | 765 | 40 | 27 | 19.125 | 0.791594 | 0 | 0 | 0 | 0 | 0 | 0.586928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c86ff473e4c4300829c5266dc84eb2ddc5b12ff8 | 488 | py | Python | base100/crawler/login.py | cwenao/python_web_learn | 1ee2bc60de757734403ed749c6f33d3690678fa0 | [
"Apache-2.0"
] | null | null | null | base100/crawler/login.py | cwenao/python_web_learn | 1ee2bc60de757734403ed749c6f33d3690678fa0 | [
"Apache-2.0"
] | null | null | null | base100/crawler/login.py | cwenao/python_web_learn | 1ee2bc60de757734403ed749c6f33d3690678fa0 | [
"Apache-2.0"
] | null | null | null | from urllib import request, parse
def csdn_login(user_name, passwd):
values = {}
values['username'] = user_name
values['password'] = passwd
info = parse.urlencode(values).encode('utf-8')
url = 'http://passport.csdn.net/account/login'
try:
req = request.Request(url, info)
dat... | 22.181818 | 51 | 0.627049 | 65 | 488 | 4.646154 | 0.676923 | 0.059603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026596 | 0.229508 | 488 | 22 | 52 | 22.181818 | 0.776596 | 0 | 0 | 0 | 0 | 0 | 0.192229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.2 | 0.066667 | 0 | 0.2 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c873cb28b56fcc3c07466b05bd80256d50cf6d62 | 7,706 | py | Python | networks_torch.py | jrieke/learning-algos | d653a2e3fef9557b15798e8aaff1a531ae06b085 | [
"MIT"
] | 1 | 2019-04-13T10:40:12.000Z | 2019-04-13T10:40:12.000Z | networks_torch.py | jrieke/learning-algos | d653a2e3fef9557b15798e8aaff1a531ae06b085 | [
"MIT"
] | null | null | null | networks_torch.py | jrieke/learning-algos | d653a2e3fef9557b15798e8aaff1a531ae06b085 | [
"MIT"
] | null | null | null | import numpy as np
import random
import scipy as sp
import scipy.special
import utils
import torch
import torch.nn as nn
import torch.nn.functional # TODO: Import this as F and rename F variables below.
class EquilibriumPropagationNet(nn.Module):
"""
A continuous net with equilibrium propagation updates (Sce... | 45.329412 | 223 | 0.626525 | 1,167 | 7,706 | 4.016281 | 0.254499 | 0.013868 | 0.011521 | 0.008961 | 0.27715 | 0.237679 | 0.207809 | 0.203755 | 0.171965 | 0.15447 | 0 | 0.038127 | 0.268233 | 7,706 | 169 | 224 | 45.597633 | 0.793048 | 0.48871 | 0 | 0.21519 | 0 | 0 | 0.022107 | 0 | 0 | 0 | 0 | 0.017751 | 0 | 1 | 0.063291 | false | 0 | 0.101266 | 0 | 0.227848 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c8784637e6d8924ba775b3f2bc93851344791a2b | 6,936 | py | Python | flaskr/account.py | HenryssonDaniel/teacup-visualization-web-back-python | bc6f0606059599f05351145ee70bbffc80af1060 | [
"MIT"
] | null | null | null | flaskr/account.py | HenryssonDaniel/teacup-visualization-web-back-python | bc6f0606059599f05351145ee70bbffc80af1060 | [
"MIT"
] | null | null | null | flaskr/account.py | HenryssonDaniel/teacup-visualization-web-back-python | bc6f0606059599f05351145ee70bbffc80af1060 | [
"MIT"
] | null | null | null | #!/usr/bin/env
# -*- coding: utf-8 -*-
"""Account API"""
from email.message import EmailMessage
from flask import Blueprint, current_app as app, json, request, Response, session
from itsdangerous import BadSignature
from itsdangerous import URLSafeSerializer, URLSafeTimedSerializer
import requests
import smtplib
blu... | 33.186603 | 113 | 0.651096 | 781 | 6,936 | 5.633803 | 0.161332 | 0.066818 | 0.050909 | 0.056818 | 0.614318 | 0.567045 | 0.528864 | 0.366818 | 0.336818 | 0.310909 | 0 | 0.00889 | 0.189158 | 6,936 | 208 | 114 | 33.346154 | 0.773471 | 0.027682 | 0 | 0.360294 | 0 | 0 | 0.239658 | 0.091277 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095588 | false | 0.066176 | 0.044118 | 0 | 0.242647 | 0.169118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c87cfdaae9e09056a3ac69c001ee5d155379221f | 1,561 | py | Python | hut/forms.py | nikolaystanishev/hut | f72d0d40fe7939eebcc4e06aedc4ab3c154010d2 | [
"MIT"
] | null | null | null | hut/forms.py | nikolaystanishev/hut | f72d0d40fe7939eebcc4e06aedc4ab3c154010d2 | [
"MIT"
] | 6 | 2021-03-18T20:20:31.000Z | 2022-01-13T00:39:36.000Z | hut/forms.py | nikolaystanishev/hut | f72d0d40fe7939eebcc4e06aedc4ab3c154010d2 | [
"MIT"
] | null | null | null | from django import forms
from hut.models import Huts
class AddHutForm(forms.ModelForm):
class Meta:
model = Huts
fields = '__all__'
labels = {
'hutname': '',
'image': '',
'altitude': '',
'mountain': '',
'people_capacity': '',
... | 42.189189 | 78 | 0.38501 | 94 | 1,561 | 6.329787 | 0.329787 | 0.117647 | 0.164706 | 0.247059 | 0.52437 | 0.470588 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0.480461 | 1,561 | 36 | 79 | 43.361111 | 0.733662 | 0 | 0 | 0 | 0 | 0 | 0.231903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.121212 | 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 |
c88a6b3c209662230ee9be5d83f1999020275d38 | 1,931 | py | Python | design/migrations/0024_auto_20191008_1403.py | pincoin/iclover | 890fcbd836ebffa0de8cf9fbabee55f068b3bc8b | [
"MIT"
] | 1 | 2019-07-20T09:51:53.000Z | 2019-07-20T09:51:53.000Z | design/migrations/0024_auto_20191008_1403.py | pincoin/iclover | 890fcbd836ebffa0de8cf9fbabee55f068b3bc8b | [
"MIT"
] | 11 | 2019-07-26T02:23:52.000Z | 2022-03-11T23:41:09.000Z | design/migrations/0024_auto_20191008_1403.py | pincoin/iclover | 890fcbd836ebffa0de8cf9fbabee55f068b3bc8b | [
"MIT"
] | 1 | 2019-07-26T02:16:49.000Z | 2019-07-26T02:16:49.000Z | # Generated by Django 2.1.7 on 2019-10-08 05:03
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import model_utils.fields
class Migration(migrations.Migration):
dependencies = [
('design', '0023_auto_20191001_0046'),
]
operations = [
... | 39.408163 | 165 | 0.612118 | 198 | 1,931 | 5.823232 | 0.419192 | 0.085863 | 0.049436 | 0.078057 | 0.314831 | 0.314831 | 0.187337 | 0.187337 | 0.187337 | 0.095403 | 0 | 0.028732 | 0.261005 | 1,931 | 48 | 166 | 40.229167 | 0.779257 | 0.023304 | 0 | 0.261905 | 1 | 0 | 0.151805 | 0.046178 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c88f656afa8291d6ae0c0eec450dba1240029f7e | 198 | py | Python | tests/temp.py | joshthoward/onnx-cli | a9dcdf3c3a87b61dc79e4d435bbb9be625d4fddc | [
"MIT"
] | null | null | null | tests/temp.py | joshthoward/onnx-cli | a9dcdf3c3a87b61dc79e4d435bbb9be625d4fddc | [
"MIT"
] | 6 | 2020-09-25T20:07:12.000Z | 2022-02-10T00:36:48.000Z | tests/temp.py | joshthoward/onnx-cli | a9dcdf3c3a87b61dc79e4d435bbb9be625d4fddc | [
"MIT"
] | null | null | null | import requests
url = "https://s3.amazonaws.com/download.onnx/models/opset_9/inception_v1.tar.gz"
response = requests.get(url)
with open('output', 'wb') as file:
file.write(response.content)
| 22 | 81 | 0.737374 | 30 | 198 | 4.8 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.106061 | 198 | 8 | 82 | 24.75 | 0.79661 | 0 | 0 | 0 | 0 | 0.2 | 0.409091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c89bd90eb5b23c8c12877a74abc9c0567ae724d5 | 12,571 | py | Python | Data_treatment/Data_Treatment.py | Mueldavc/Python-Projs | 3ac9e5ca20e98e8af1adf9dd711848e276ad530d | [
"MIT"
] | null | null | null | Data_treatment/Data_Treatment.py | Mueldavc/Python-Projs | 3ac9e5ca20e98e8af1adf9dd711848e276ad530d | [
"MIT"
] | null | null | null | Data_treatment/Data_Treatment.py | Mueldavc/Python-Projs | 3ac9e5ca20e98e8af1adf9dd711848e276ad530d | [
"MIT"
] | 1 | 2021-12-04T18:46:54.000Z | 2021-12-04T18:46:54.000Z | from Data_treatment.FinIndicator import Indicators
import pandas as pd
import MetaTrader5 as mt5
from datetime import timedelta
from sklearn.preprocessing import MinMaxScaler
import random
import numpy as np
import pickle
class StockData(Indicators):
def __init__(self, stock, n_in=1, n_out=1):
self.ACTION... | 43.348276 | 116 | 0.561212 | 1,671 | 12,571 | 4.027528 | 0.108917 | 0.080238 | 0.021248 | 0.020208 | 0.740713 | 0.71055 | 0.68529 | 0.618425 | 0.618425 | 0.567905 | 0 | 0.015293 | 0.30817 | 12,571 | 289 | 117 | 43.49827 | 0.758537 | 0.034047 | 0 | 0.595238 | 0 | 0 | 0.042736 | 0.015098 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043651 | false | 0 | 0.031746 | 0.003968 | 0.107143 | 0.011905 | 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 |
c8a287af4dce315c7478880a2fe9b92b17600b3d | 2,224 | py | Python | 999.py | dews/gameRobot | a16847666d882a2e1c66bf9fd6ee4f09a20fe6d3 | [
"MIT"
] | null | null | null | 999.py | dews/gameRobot | a16847666d882a2e1c66bf9fd6ee4f09a20fe6d3 | [
"MIT"
] | null | null | null | 999.py | dews/gameRobot | a16847666d882a2e1c66bf9fd6ee4f09a20fe6d3 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import sys
import time
import re
import os
import subprocess
import matchImage
import screenshot
try:
sys.path.insert(0, os.path.join(
os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
pass
from com.dtmilano.android.adb.adbclient import AdbClient
from com.dtmilano.android.... | 28.151899 | 84 | 0.53732 | 266 | 2,224 | 4.43609 | 0.43609 | 0.088136 | 0.10678 | 0.037288 | 0.161017 | 0.118644 | 0.118644 | 0.057627 | 0 | 0 | 0 | 0.077282 | 0.32509 | 2,224 | 78 | 85 | 28.512821 | 0.708861 | 0.065198 | 0 | 0.135593 | 0 | 0 | 0.090295 | 0.011589 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016949 | 0.152542 | null | null | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c8a5e95a3e8ed0849d3d935e891f0157787a12a8 | 5,554 | py | Python | test/routers/test_arxiv_query.py | oq-Yuki-po/PaperLibrary | 2b86da52af08b487c78d1f9007cb9c02bc160235 | [
"MIT"
] | null | null | null | test/routers/test_arxiv_query.py | oq-Yuki-po/PaperLibrary | 2b86da52af08b487c78d1f9007cb9c02bc160235 | [
"MIT"
] | null | null | null | test/routers/test_arxiv_query.py | oq-Yuki-po/PaperLibrary | 2b86da52af08b487c78d1f9007cb9c02bc160235 | [
"MIT"
] | null | null | null | import json
import pytest
from fastapi import status
from app.factories import ArxivQueryFactory, PaperFactory
from app.models import ArxivQueryModel, PaperModel
from app.response.arxiv_query import ArxivQuery, ArxivQueryGetOut
class TestArxivQueryPost():
def test_save_arxiv_query(self, app_client, db_session):... | 36.064935 | 111 | 0.660965 | 658 | 5,554 | 5.180851 | 0.12766 | 0.214139 | 0.079202 | 0.030801 | 0.695219 | 0.624817 | 0.531534 | 0.459959 | 0.438838 | 0.438838 | 0 | 0.013388 | 0.246849 | 5,554 | 153 | 112 | 36.300654 | 0.801578 | 0 | 0 | 0.346939 | 0 | 0 | 0.061937 | 0 | 0 | 0 | 0 | 0 | 0.255102 | 1 | 0.071429 | false | 0 | 0.061224 | 0 | 0.173469 | 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 |
c8cd9b5c91901f9d546362e7bbcf0c9484866694 | 4,856 | py | Python | descarteslabs/client/grpc/tests/test_client.py | carderne/descarteslabs-python | 757b480efb8d58474a3bf07f1dbd90652b46ed64 | [
"Apache-2.0"
] | null | null | null | descarteslabs/client/grpc/tests/test_client.py | carderne/descarteslabs-python | 757b480efb8d58474a3bf07f1dbd90652b46ed64 | [
"Apache-2.0"
] | null | null | null | descarteslabs/client/grpc/tests/test_client.py | carderne/descarteslabs-python | 757b480efb8d58474a3bf07f1dbd90652b46ed64 | [
"Apache-2.0"
] | null | null | null | from unittest import mock
import grpc
import pytest
from descarteslabs.common.retry import Retry
from .. import GrpcClient
class FakeRpcError(grpc.RpcError):
def __init__(self, message, code):
self._code = code
def code(self):
return self._code
@mock.patch("descarteslabs.client.grpc.Grpc... | 28.733728 | 78 | 0.681013 | 625 | 4,856 | 5.0368 | 0.144 | 0.038119 | 0.083863 | 0.080051 | 0.741423 | 0.672808 | 0.661372 | 0.639771 | 0.639771 | 0.604511 | 0 | 0.00323 | 0.171129 | 4,856 | 168 | 79 | 28.904762 | 0.778882 | 0.033567 | 0 | 0.478261 | 0 | 0 | 0.195221 | 0.134414 | 0 | 0 | 0 | 0 | 0.13913 | 1 | 0.104348 | false | 0 | 0.043478 | 0.017391 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c8cf13e4dd27ceab3cba513b0846e40da139ee50 | 376 | py | Python | tests/test_euler_angle.py | mikoro/pymazing | fcfa86d5e79f5861eaa3d07e0ad15b858930ab42 | [
"MIT"
] | 9 | 2015-04-15T09:52:08.000Z | 2021-07-18T21:51:17.000Z | tests/test_euler_angle.py | mikoro/pymazing | fcfa86d5e79f5861eaa3d07e0ad15b858930ab42 | [
"MIT"
] | null | null | null | tests/test_euler_angle.py | mikoro/pymazing | fcfa86d5e79f5861eaa3d07e0ad15b858930ab42 | [
"MIT"
] | 3 | 2018-04-23T12:33:14.000Z | 2019-05-04T02:08:22.000Z | """Euler angle unit tests."""
# Copyright © 2014 Mikko Ronkainen <firstname@mikkoronkainen.com>
# License: MIT, see the LICENSE file.
from pymazing import euler_angle
def test_get_direction_vector():
angle = euler_angle.EulerAngle()
vector = angle.get_direction_vector()
assert vector[0] == 0
... | 25.066667 | 66 | 0.678191 | 49 | 376 | 5.081633 | 0.612245 | 0.120482 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033784 | 0.212766 | 376 | 14 | 67 | 26.857143 | 0.804054 | 0.329787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c8cf28a2cdeff94389f27f40516c907dd9988851 | 389 | py | Python | recommendations/sms_sender.py | karllhughes/- | 8e874d40c4223c7a4e9dde32ff58c2b4ad6aa22d | [
"MIT"
] | 1 | 2021-03-29T16:55:27.000Z | 2021-03-29T16:55:27.000Z | recommendations/sms_sender.py | karllhughes/- | 8e874d40c4223c7a4e9dde32ff58c2b4ad6aa22d | [
"MIT"
] | 27 | 2019-06-18T00:46:48.000Z | 2022-02-10T12:43:47.000Z | recommendations/sms_sender.py | karllhughes/- | 8e874d40c4223c7a4e9dde32ff58c2b4ad6aa22d | [
"MIT"
] | 1 | 2021-03-29T16:55:36.000Z | 2021-03-29T16:55:36.000Z | from twilio.rest import Client
import os
class SmsSender:
client = Client(os.environ['TWILIO_ACCOUNT_SID'], os.environ['TWILIO_AUTH_TOKEN'])
@classmethod
def send_to_user(cls, phone, message):
response = cls.client.messages.create(
from_=os.environ['TWILIO_PHONE_NUMBER'],
... | 24.3125 | 86 | 0.640103 | 46 | 389 | 5.217391 | 0.586957 | 0.1125 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257069 | 389 | 15 | 87 | 25.933333 | 0.83045 | 0 | 0 | 0 | 0 | 0 | 0.138817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.416667 | 0.083333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c8cfe1691472ff914abbf2ad98c6e7ce1cb71021 | 449 | py | Python | p7-10001stPrime.py | Elephant333/Project-Euler | 794a75a8fc28776ba4e97414dcce5cdac68068c8 | [
"MIT"
] | null | null | null | p7-10001stPrime.py | Elephant333/Project-Euler | 794a75a8fc28776ba4e97414dcce5cdac68068c8 | [
"MIT"
] | null | null | null | p7-10001stPrime.py | Elephant333/Project-Euler | 794a75a8fc28776ba4e97414dcce5cdac68068c8 | [
"MIT"
] | null | null | null | #Nathan Li - 3/11/2021 - P7: 10,001st Prime
primeNums = [2, 3, 5]
index = 6
#The simplest primality test is trial division: given an input number, n, check whether
#it is evenly divisible between 2 and √n
while len(primeNums) < 10001:
for prime in primeNums:
if index % prime == 0:
index += 1
... | 24.944444 | 87 | 0.592428 | 64 | 449 | 4.171875 | 0.734375 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087662 | 0.314031 | 449 | 18 | 88 | 24.944444 | 0.775974 | 0.371938 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c8daef7b000311d25aedd95d3c5383650a2a57c8 | 8,697 | py | Python | src/uwds3_perception/estimation/face_frontalizer_estimator.py | Alexandre-Bonneau/uwds3_perception | 21529f63b3b3d2ad5e30eefece2d75378ae7651f | [
"MIT"
] | null | null | null | src/uwds3_perception/estimation/face_frontalizer_estimator.py | Alexandre-Bonneau/uwds3_perception | 21529f63b3b3d2ad5e30eefece2d75378ae7651f | [
"MIT"
] | null | null | null | src/uwds3_perception/estimation/face_frontalizer_estimator.py | Alexandre-Bonneau/uwds3_perception | 21529f63b3b3d2ad5e30eefece2d75378ae7651f | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import cv2
import dlib
import numpy as np
import copy
from scipy import ndimage
import scipy.misc as sm
import pickle as pkl
from uwds3_perception.estimation.facial_landmarks_estimator import FacialLandmarksEstimator
from uwds3_perception.recognition.knn_assignement import KNNLoader
from... | 46.758065 | 157 | 0.606416 | 1,140 | 8,697 | 4.420175 | 0.270175 | 0.037706 | 0.052788 | 0.033737 | 0.160945 | 0.066481 | 0.050804 | 0.033538 | 0 | 0 | 0 | 0.03801 | 0.255835 | 8,697 | 185 | 158 | 47.010811 | 0.740575 | 0.089686 | 0 | 0.036765 | 0 | 0 | 0.06955 | 0.055483 | 0 | 0 | 0 | 0 | 0.007353 | 0 | null | null | 0 | 0.095588 | null | null | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c8de9a297ba3469450504f3390eeff1b17d87302 | 671 | py | Python | tests/godagtimed_old.py | flying-sheep/goatools | 1e3a74faa17cbdeef02550c7ddf17b65cf47d34a | [
"BSD-2-Clause"
] | 477 | 2015-02-10T06:54:42.000Z | 2022-03-15T12:36:11.000Z | tests/godagtimed_old.py | flying-sheep/goatools | 1e3a74faa17cbdeef02550c7ddf17b65cf47d34a | [
"BSD-2-Clause"
] | 174 | 2015-02-05T18:11:14.000Z | 2022-03-29T10:24:19.000Z | tests/godagtimed_old.py | flying-sheep/goatools | 1e3a74faa17cbdeef02550c7ddf17b65cf47d34a | [
"BSD-2-Clause"
] | 202 | 2015-01-21T12:29:23.000Z | 2022-03-01T13:26:05.000Z | #!/usr/bin/env python
"""Test deprecated location of GoDagTimed"""
import os
import timeit
from goatools.test_data.godag_timed import GoDagTimed
from goatools.test_data.godag_timed import prt_hms
from goatools.base import download_go_basic_obo
REPO = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..")
def... | 29.173913 | 69 | 0.76155 | 98 | 671 | 4.836735 | 0.438776 | 0.050633 | 0.063291 | 0.101266 | 0.295359 | 0.151899 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0.126677 | 671 | 22 | 70 | 30.5 | 0.808874 | 0.146051 | 0 | 0 | 0 | 0 | 0.064057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 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 |
c8e5018cbbd7ae34108eb3621a45b96de072c820 | 5,915 | py | Python | picker.py | drivesmoothly/compliments_picker | 1f8c6d24d7f120281cffbf2dd07468d8b4a78ff8 | [
"MIT"
] | null | null | null | picker.py | drivesmoothly/compliments_picker | 1f8c6d24d7f120281cffbf2dd07468d8b4a78ff8 | [
"MIT"
] | null | null | null | picker.py | drivesmoothly/compliments_picker | 1f8c6d24d7f120281cffbf2dd07468d8b4a78ff8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
print "hello", '\n'
import configparser
import re
from random import randint
import collections
from datetime import datetime
config = configparser.ConfigParser()
config.read("team.ini")
team = re.split(", |,", config['default']['team'])
team_size = len(team)
picks_count = int(config['default'... | 31.131579 | 106 | 0.571429 | 808 | 5,915 | 4.060644 | 0.231436 | 0.08534 | 0.091436 | 0.057909 | 0.207863 | 0.132582 | 0.088083 | 0.044499 | 0.031088 | 0 | 0 | 0.017404 | 0.300592 | 5,915 | 190 | 107 | 31.131579 | 0.775683 | 0.103973 | 0 | 0.115646 | 0 | 0 | 0.088313 | 0.012481 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c8e60ff05b3a53b1a758e1fe035f8ecb2976695e | 403 | py | Python | 04_CNN/VGG/venv/deepcopy.py | fioletflying/tensorflowcook | 10b9feaf0db780f94ace4a9e019b163999b6c38e | [
"MIT"
] | null | null | null | 04_CNN/VGG/venv/deepcopy.py | fioletflying/tensorflowcook | 10b9feaf0db780f94ace4a9e019b163999b6c38e | [
"MIT"
] | null | null | null | 04_CNN/VGG/venv/deepcopy.py | fioletflying/tensorflowcook | 10b9feaf0db780f94ace4a9e019b163999b6c38e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @author : Feifei
# @IDE : Pycharm
# @file : deepcopy.py
# @time : 2019/5/31 10:50
from copy import deepcopy
hello_string = ['hEllo','woRld','!']
c_hello_string = deepcopy(hello_string)
del hello_string[-1]
l_hello = [h.replace('l','Y') for h in c_hello_st... | 19.190476 | 67 | 0.635236 | 66 | 403 | 3.742424 | 0.666667 | 0.222672 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042042 | 0.173697 | 403 | 20 | 68 | 20.15 | 0.6997 | 0.327543 | 0 | 0 | 0 | 0 | 0.049808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 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 |
c8e85b973b4a08d2942fdfd187e2fb56db7ba092 | 676 | py | Python | ML_Titanic_Model-master/titanic/views.py | wrakash/ML_Anand_Model | 81258e7d6c4763b8b5f6148f3035a45856d616ae | [
"MIT"
] | null | null | null | ML_Titanic_Model-master/titanic/views.py | wrakash/ML_Anand_Model | 81258e7d6c4763b8b5f6148f3035a45856d616ae | [
"MIT"
] | null | null | null | ML_Titanic_Model-master/titanic/views.py | wrakash/ML_Anand_Model | 81258e7d6c4763b8b5f6148f3035a45856d616ae | [
"MIT"
] | null | null | null | from django.shortcuts import render
from . import test_model, ML_Model
def home(request):
return render(request, 'index.html')
def result(request):
pclass = int(request.GET['pclass'])
sex = int(request.GET['sex'])
age = int(request.GET['age'])
sibsp = int(request.GET['sibsp'])
parch = int(re... | 32.190476 | 94 | 0.677515 | 90 | 676 | 5 | 0.333333 | 0.177778 | 0.231111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164201 | 676 | 20 | 95 | 33.8 | 0.79646 | 0.073965 | 0 | 0 | 0 | 0 | 0.105769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0.066667 | 0.4 | 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 |
7404b445eb9f25092bd3e0e6447b646d70550744 | 10,644 | py | Python | Python/nba_mvp_award_share_machine_learning.py | devcbc/NBA-MVP-Award-Share-Machine-Learning | bb952dbd3c2cf4c52a3e115de6671046a1934c93 | [
"MIT"
] | null | null | null | Python/nba_mvp_award_share_machine_learning.py | devcbc/NBA-MVP-Award-Share-Machine-Learning | bb952dbd3c2cf4c52a3e115de6671046a1934c93 | [
"MIT"
] | null | null | null | Python/nba_mvp_award_share_machine_learning.py | devcbc/NBA-MVP-Award-Share-Machine-Learning | bb952dbd3c2cf4c52a3e115de6671046a1934c93 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""NBA-MVP-Award-Share-Machine-Learning.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1GznYuGo34GOvgtLe2_beRDqqfww0JDtJ
"""
from sklearn import metrics
from sklearn.linear_model import LogisticRegression
from sklearn.met... | 46.278261 | 260 | 0.64938 | 1,564 | 10,644 | 4.107417 | 0.168159 | 0.091532 | 0.07005 | 0.061644 | 0.643524 | 0.599004 | 0.549191 | 0.489259 | 0.427771 | 0.386519 | 0 | 0.02609 | 0.157366 | 10,644 | 230 | 261 | 46.278261 | 0.690155 | 0.024051 | 0 | 0.157895 | 1 | 0 | 0.196224 | 0.010596 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0 | 0.072368 | 0 | 0.092105 | 0.085526 | 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 |
cdaf93d4afeff665012473622ca30bf982247694 | 488 | py | Python | test/matchers/test_with_buddy_matcher.py | testinfected/cute | 9485f2df142a5fcb9f1414683aab8bf476b9c277 | [
"BSD-3-Clause"
] | null | null | null | test/matchers/test_with_buddy_matcher.py | testinfected/cute | 9485f2df142a5fcb9f1414683aab8bf476b9c277 | [
"BSD-3-Clause"
] | null | null | null | test/matchers/test_with_buddy_matcher.py | testinfected/cute | 9485f2df142a5fcb9f1414683aab8bf476b9c277 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from PyQt5.QtWidgets import QLabel, QLineEdit, QWidget
from hamcrest import assert_that
from hamcrest import is_
from cute import matchers
def test_matches_labels_by_their_buddy(qt):
label = QLabel()
buddy = QLineEdit()
label.setBuddy(buddy)
matcher = matchers.with_buddy(budd... | 23.238095 | 66 | 0.72541 | 64 | 488 | 5.34375 | 0.5 | 0.087719 | 0.105263 | 0.140351 | 0.181287 | 0.181287 | 0 | 0 | 0 | 0 | 0 | 0.00489 | 0.161885 | 488 | 20 | 67 | 24.4 | 0.831296 | 0.043033 | 0 | 0 | 0 | 0 | 0.045356 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cdb24f86c0592143865c52d468a5f7032a15eab2 | 510 | py | Python | class.py | Abolade-ilerioluwakiiye/First_Repository | 92612a94856709ad2ece6442053b23bef1dd8e6e | [
"MIT"
] | null | null | null | class.py | Abolade-ilerioluwakiiye/First_Repository | 92612a94856709ad2ece6442053b23bef1dd8e6e | [
"MIT"
] | null | null | null | class.py | Abolade-ilerioluwakiiye/First_Repository | 92612a94856709ad2ece6442053b23bef1dd8e6e | [
"MIT"
] | null | null | null | class Dog:
"""A simple attempt to model a dog"""
def __init__(self, name, age):
"""Initialize name and age attributes"""
self.name=name
self.age=age
def sit(self):
"""Simulate a dog sitting in response to a command"""
print(f"{self.name} is now sitting")
def roll_over(self):
"""Simulate rolling over ... | 26.842105 | 57 | 0.678431 | 84 | 510 | 4.059524 | 0.392857 | 0.093842 | 0.105572 | 0.11437 | 0.27566 | 0.27566 | 0.27566 | 0.199413 | 0.199413 | 0 | 0 | 0 | 0.182353 | 510 | 18 | 58 | 28.333333 | 0.817746 | 0.413725 | 0 | 0 | 0 | 0 | 0.318681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.5 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cdb4585983d592c7a541533e0c0e13eb9c355928 | 1,371 | py | Python | processing/statisticsagent.py | paganellif/sd-project-paganelli-1920 | e28e85d5ab3235aced4a1c771147747d85b99197 | [
"MIT"
] | null | null | null | processing/statisticsagent.py | paganellif/sd-project-paganelli-1920 | e28e85d5ab3235aced4a1c771147747d85b99197 | [
"MIT"
] | null | null | null | processing/statisticsagent.py | paganellif/sd-project-paganelli-1920 | e28e85d5ab3235aced4a1c771147747d85b99197 | [
"MIT"
] | null | null | null | import asyncio
from spade.agent import Agent
from spade.behaviour import State
from base.fsm import BaseFSM
from processing.dbconnfactory import DBConnFactory
from util.db_utils import Parameters, Collections
from util.logger import LoggerImpl
class InsertStatistics(State):
async def run(self):
for agen... | 33.439024 | 104 | 0.694384 | 165 | 1,371 | 5.581818 | 0.412121 | 0.04886 | 0.02823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00185 | 0.211524 | 1,371 | 40 | 105 | 34.275 | 0.850139 | 0 | 0 | 0 | 0 | 0 | 0.026258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.066667 | 0.233333 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cdb6f265ea708e47ad35b96928c6566243e61619 | 1,730 | py | Python | get_RGID_from_FASTQ.py | dkdeconti/HLA_epitope_prediction_from_WES | 34dd086e7e94b1659dca864d34e8fe95ec960aef | [
"MIT"
] | 2 | 2018-06-25T02:29:48.000Z | 2020-08-06T08:29:18.000Z | get_RGID_from_FASTQ.py | dkdeconti/HLA_epitope_prediction_from_WES | 34dd086e7e94b1659dca864d34e8fe95ec960aef | [
"MIT"
] | null | null | null | get_RGID_from_FASTQ.py | dkdeconti/HLA_epitope_prediction_from_WES | 34dd086e7e94b1659dca864d34e8fe95ec960aef | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
Pull RGID information (from CCCB NextSeq naming scheme) from FASTQ.
"""
import argparse
import gzip
__author__ = 'dkdeconti'
__copyright__ = "Copyright 2017"
__credits__ = ["Derrick DeConti"]
__license__ = "MIT"
__maintainer__ = "Derrick DeConti"
__email__ = "deconti@jimmy.harvard.edu"
__stat... | 27.460317 | 79 | 0.612717 | 206 | 1,730 | 4.854369 | 0.509709 | 0.05 | 0.03 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009139 | 0.24104 | 1,730 | 62 | 80 | 27.903226 | 0.752475 | 0.026012 | 0 | 0 | 0 | 0 | 0.181081 | 0.016892 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051282 | null | null | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cdb716a486254c94f608a8964c7fbb706115bc95 | 435 | py | Python | py/InstallPkg.py | Diamond-Star/QR-Code-Geno | a525f15cd304d108cbdfb568c6f3fb652641ffdd | [
"MIT"
] | 5 | 2019-05-01T01:05:12.000Z | 2019-05-03T07:14:20.000Z | py/InstallPkg.py | Diamond-Star/QR-Code-Geno | a525f15cd304d108cbdfb568c6f3fb652641ffdd | [
"MIT"
] | null | null | null | py/InstallPkg.py | Diamond-Star/QR-Code-Geno | a525f15cd304d108cbdfb568c6f3fb652641ffdd | [
"MIT"
] | 3 | 2019-05-01T02:15:25.000Z | 2019-05-02T09:32:03.000Z | """
InstallPkg.py
This file is used once by the program at the first run to check and install
Python packages required by the program.
"""
import os
print("---- Welcome to QRCode Geno ----",
"Packages setup is taking place.",
"This process requires interner connection.",
"This would take a few minutes.", ... | 27.1875 | 76 | 0.691954 | 65 | 435 | 4.630769 | 0.738462 | 0.033223 | 0.079734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 435 | 15 | 77 | 29 | 0.864943 | 0.383908 | 0 | 0 | 0 | 0 | 0.685714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cdca0299071099e7b90049a4c5fc2bb574ff4bf8 | 4,216 | py | Python | sdk/python/pulumi_google_native/ml/v1/get_study.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 44 | 2021-04-18T23:00:48.000Z | 2022-02-14T17:43:15.000Z | sdk/python/pulumi_google_native/ml/v1/get_study.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 354 | 2021-04-16T16:48:39.000Z | 2022-03-31T17:16:39.000Z | sdk/python/pulumi_google_native/ml/v1/get_study.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 8 | 2021-04-24T17:46:51.000Z | 2022-01-05T10:40:21.000Z | # 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
fro... | 33.460317 | 114 | 0.639231 | 486 | 4,216 | 5.26749 | 0.251029 | 0.046875 | 0.03125 | 0.058594 | 0.185547 | 0.110156 | 0.086719 | 0 | 0 | 0 | 0 | 0.000955 | 0.254744 | 4,216 | 125 | 115 | 33.728 | 0.813813 | 0.106736 | 0 | 0.082353 | 1 | 0 | 0.136301 | 0.026265 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105882 | false | 0 | 0.070588 | 0 | 0.282353 | 0 | 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 |
cdcc8f70607fb666ffce041de72918068fbc3ea8 | 2,045 | py | Python | bluebottle/geo/migrations/0019_auto_20201229_1051.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/geo/migrations/0019_auto_20201229_1051.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/geo/migrations/0019_auto_20201229_1051.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2020-12-29 09:51
from __future__ import unicode_literals
from bluebottle.clients import properties
from bluebottle.utils.utils import get_languages
from django.db import migrations
def migrate_to_office_regions(apps, schema_editor):
Location = apps.get_mo... | 36.517857 | 95 | 0.645966 | 209 | 2,045 | 6.110048 | 0.37799 | 0.027408 | 0.046985 | 0.035239 | 0.228661 | 0.178543 | 0.178543 | 0.178543 | 0.104933 | 0.104933 | 0 | 0.022667 | 0.266504 | 2,045 | 55 | 96 | 37.181818 | 0.828667 | 0.033741 | 0 | 0.090909 | 1 | 0 | 0.060314 | 0.011657 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 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 |
cdcf718eb2eb343661de2697b7152e891a6e227e | 497 | py | Python | shynet/core/migrations/0006_service_hide_referrer_regex.py | f97/shynet | 620f8c103a06ab96141533a593a6d48e42d85727 | [
"Apache-2.0"
] | 1,904 | 2020-04-14T18:59:44.000Z | 2022-03-31T23:28:47.000Z | shynet/core/migrations/0006_service_hide_referrer_regex.py | strobeltobias/shynet | 351efff1470329a6b693e784b103c6a9af5c8b09 | [
"Apache-2.0"
] | 177 | 2020-04-24T17:00:05.000Z | 2022-02-15T08:25:54.000Z | shynet/core/migrations/0006_service_hide_referrer_regex.py | strobeltobias/shynet | 351efff1470329a6b693e784b103c6a9af5c8b09 | [
"Apache-2.0"
] | 124 | 2020-04-22T19:07:27.000Z | 2022-03-26T01:40:08.000Z | # Generated by Django 3.0.6 on 2020-05-07 21:23
from django.db import migrations, models
import core.models
class Migration(migrations.Migration):
dependencies = [
("core", "0005_service_ignored_ips"),
]
operations = [
migrations.AddField(
model_name="service",
... | 21.608696 | 80 | 0.595573 | 52 | 497 | 5.538462 | 0.75 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054131 | 0.293763 | 497 | 22 | 81 | 22.590909 | 0.766382 | 0.090543 | 0 | 0.133333 | 1 | 0 | 0.12 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cdd6740d1065fbe6f11083ec044d0fd79c05d8ba | 7,565 | py | Python | capstone/Capstone/Capstone/Classifiers/CNN.py | Ayshine/machine-learning | e64800534b75b6488afe0a4dabfd995956983a54 | [
"MIT"
] | 2 | 2018-03-24T23:11:19.000Z | 2018-04-05T10:04:19.000Z | capstone/Capstone/Capstone/Classifiers/CNN.py | Ayshine/machine-learning | e64800534b75b6488afe0a4dabfd995956983a54 | [
"MIT"
] | 13 | 2020-11-13T17:59:17.000Z | 2022-03-11T23:29:33.000Z | capstone/Capstone/Capstone/Classifiers/CNN.py | Ayshine/machine-learning | e64800534b75b6488afe0a4dabfd995956983a54 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 27 09:47:21 2017
@author: Ayshine
"""
from sklearn.datasets import load_files
from keras.utils import np_utils
import numpy as np
from glob import glob
import os
import cv2
# load labelled data
def load_labelled_dataset(path):
data = load_files(path)
cla... | 33.325991 | 103 | 0.719101 | 1,146 | 7,565 | 4.582024 | 0.239093 | 0.021329 | 0.009522 | 0.019996 | 0.215197 | 0.190249 | 0.179966 | 0.17311 | 0.17311 | 0.17311 | 0 | 0.02474 | 0.161137 | 7,565 | 227 | 104 | 33.325991 | 0.80271 | 0.160872 | 0 | 0.165468 | 0 | 0 | 0.119987 | 0.011184 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007194 | 0.129496 | null | null | 0.129496 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cde05c0688bee2c589779d295e8f5527ccc49add | 299 | py | Python | configs/read_csv.py | 0xdomyz/sklearn_collection | 701a6d3b22599a9c71575589ff53afc309bb9bea | [
"MIT"
] | 1 | 2022-02-19T03:31:48.000Z | 2022-02-19T03:31:48.000Z | configs/read_csv.py | 0xdomyz/python_collection | 1b383ce44a14b69a11178b2bda992ca3f20a9a72 | [
"MIT"
] | null | null | null | configs/read_csv.py | 0xdomyz/python_collection | 1b383ce44a14b69a11178b2bda992ca3f20a9a72 | [
"MIT"
] | null | null | null | import pandas as pd
from pathlib import Path
path = Path(__file__).parent / "data.csv"
def read_csv(path):
return pd.read_csv(path)
if __name__ == "__main__":
_ = pd.DataFrame(dict(a=range(5), b=[i for i in "aeiou"]))
_.to_csv(path, index=False)
d = read_csv(path)
print(d)
| 18.6875 | 62 | 0.652174 | 49 | 299 | 3.612245 | 0.653061 | 0.158192 | 0.186441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004184 | 0.200669 | 299 | 15 | 63 | 19.933333 | 0.736402 | 0 | 0 | 0 | 0 | 0 | 0.070234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0.1 | 0.4 | 0.1 | 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 |
cde47d69282eefcb5b07697b1e010c97c66df621 | 5,878 | py | Python | ui/Ui_dialog_afterDraw.py | sticktoFE/rpaclient | 5a499aa93aace3d3c461c2e76add7dade26eab71 | [
"Apache-2.0"
] | null | null | null | ui/Ui_dialog_afterDraw.py | sticktoFE/rpaclient | 5a499aa93aace3d3c461c2e76add7dade26eab71 | [
"Apache-2.0"
] | null | null | null | ui/Ui_dialog_afterDraw.py | sticktoFE/rpaclient | 5a499aa93aace3d3c461c2e76add7dade26eab71 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'd:\leichui\workspace\screenshot-master\ui\dialog_afterDraw.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you... | 58.19802 | 145 | 0.72916 | 566 | 5,878 | 7.477032 | 0.215548 | 0.092628 | 0.0638 | 0.055293 | 0.448488 | 0.389414 | 0.354679 | 0.354679 | 0.354679 | 0.289698 | 0 | 0.009201 | 0.167914 | 5,878 | 100 | 146 | 58.78 | 0.856062 | 0.054951 | 0 | 0.186047 | 1 | 0 | 0.080044 | 0.045713 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.011628 | 0 | 0.046512 | 0 | 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 |
cde4cbee2a5538e92719e1d700f6c713b090b669 | 3,250 | py | Python | utility/yamanishi_data_util.py | tttor/csipb-jamu-prj | 33b08a8a12054c8a5a7240681a28c8b233b329ba | [
"MIT"
] | 5 | 2017-03-31T03:25:09.000Z | 2021-12-17T02:28:24.000Z | utility/yamanishi_data_util.py | tttor/csipb-jamu-prj | 33b08a8a12054c8a5a7240681a28c8b233b329ba | [
"MIT"
] | 165 | 2016-08-11T01:59:47.000Z | 2017-10-10T06:32:12.000Z | utility/yamanishi_data_util.py | tttor/csipb-jamu-prj | 33b08a8a12054c8a5a7240681a28c8b233b329ba | [
"MIT"
] | 11 | 2015-06-15T04:25:59.000Z | 2021-04-18T09:39:16.000Z | # util.py
import os
import numpy as np
import h5py
def saveFeaInHDF(yamType,feaName):
bdir = '../dataset/connectivity/compound_vs_protein/yamanishi/feature'
tdir = os.path.join(bdir,feaName,feaName+'-'+yamType)
fnameList = os.listdir(tdir)
feaList = []; iList = []
for i,fname in enumerate(fnameList):
... | 28.761062 | 73 | 0.578462 | 400 | 3,250 | 4.65 | 0.3075 | 0.019355 | 0.032258 | 0.026882 | 0.223118 | 0.169355 | 0.169355 | 0.12043 | 0.092473 | 0.092473 | 0 | 0.007161 | 0.269538 | 3,250 | 112 | 74 | 29.017857 | 0.776327 | 0.049538 | 0 | 0.204545 | 0 | 0 | 0.090496 | 0.019786 | 0 | 0 | 0 | 0 | 0.022727 | 0 | null | null | 0.011364 | 0.034091 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cde9436156128984b6e486ca061d223a435d0c76 | 625 | py | Python | digitalwine/digitalwine/doctype/parcelle/parcelle.py | Yinameah/cuvee | 6fda7c50ca9ea86d74f67edd90effaa7bc051871 | [
"MIT"
] | null | null | null | digitalwine/digitalwine/doctype/parcelle/parcelle.py | Yinameah/cuvee | 6fda7c50ca9ea86d74f67edd90effaa7bc051871 | [
"MIT"
] | null | null | null | digitalwine/digitalwine/doctype/parcelle/parcelle.py | Yinameah/cuvee | 6fda7c50ca9ea86d74f67edd90effaa7bc051871 | [
"MIT"
] | null | null | null | # Copyright (c) 2022, Aurélien Cibrario and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class Parcelle(Document):
# It seems that Virtual DocField is very buggy ...
# @property
# def full_name(self):
# """
# Gi... | 28.409091 | 80 | 0.664 | 83 | 625 | 4.927711 | 0.650602 | 0.04401 | 0.06846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008439 | 0.2416 | 625 | 21 | 81 | 29.761905 | 0.85443 | 0.6256 | 0 | 0 | 0 | 0 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 |
cdea7bf263774c8b27ec0329b9f679aeec1ea441 | 413 | py | Python | complaints/migrations/0016_alter_unitreport_desc.py | shumwe/rental-house-management-system | f97f22afa8bc2740ed08baa387c74b93e02fac0c | [
"MIT"
] | 1 | 2022-03-16T13:29:30.000Z | 2022-03-16T13:29:30.000Z | complaints/migrations/0016_alter_unitreport_desc.py | shumwe/rental-house-management-system | f97f22afa8bc2740ed08baa387c74b93e02fac0c | [
"MIT"
] | null | null | null | complaints/migrations/0016_alter_unitreport_desc.py | shumwe/rental-house-management-system | f97f22afa8bc2740ed08baa387c74b93e02fac0c | [
"MIT"
] | null | null | null | # Generated by Django 4.0.2 on 2022-03-15 22:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('complaints', '0015_unitreport_other'),
]
operations = [
migrations.AlterField(
model_name='unitreport',
name='desc',... | 21.736842 | 74 | 0.615012 | 43 | 413 | 5.813953 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063333 | 0.273608 | 413 | 18 | 75 | 22.944444 | 0.77 | 0.108959 | 0 | 0 | 1 | 0 | 0.18306 | 0.057377 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cdebbd0209b5119d4f0bf7aecde9197f91522217 | 819 | py | Python | mla_game/apps/transcript/migrations/0010_transcript_statistics.py | amazingwebdev/django-FixIt | 698aa7e4c45f07d86fbf209d1caca017ed136675 | [
"MIT"
] | null | null | null | mla_game/apps/transcript/migrations/0010_transcript_statistics.py | amazingwebdev/django-FixIt | 698aa7e4c45f07d86fbf209d1caca017ed136675 | [
"MIT"
] | null | null | null | mla_game/apps/transcript/migrations/0010_transcript_statistics.py | amazingwebdev/django-FixIt | 698aa7e4c45f07d86fbf209d1caca017ed136675 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.12 on 2017-05-02 19:47
from __future__ import unicode_literals
import django.contrib.postgres.fields.jsonb
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('transcript', '0009_auto_20170308_1450'),
]
oper... | 37.227273 | 373 | 0.720391 | 99 | 819 | 5.606061 | 0.636364 | 0.086486 | 0.108108 | 0.097297 | 0.230631 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060029 | 0.166056 | 819 | 21 | 374 | 39 | 0.752562 | 0.083028 | 0 | 0 | 1 | 0 | 0.394385 | 0.354278 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cdeca6c71f7ecf395f3ff31291daeb1e0e37dfd2 | 836 | py | Python | trigger-all.py | dataspot/dgp-app | f8dd191dd10b875bd2cd1729509a21c7329bf629 | [
"MIT"
] | 1 | 2021-06-10T16:29:01.000Z | 2021-06-10T16:29:01.000Z | trigger-all.py | dataspot/dgp-app | f8dd191dd10b875bd2cd1729509a21c7329bf629 | [
"MIT"
] | 10 | 2020-10-04T14:51:56.000Z | 2022-03-02T07:27:27.000Z | trigger-all.py | dataspot/dgp-app | f8dd191dd10b875bd2cd1729509a21c7329bf629 | [
"MIT"
] | null | null | null | import os
import sys
import time
import json
from datapackage import Package
from etl_server.pipelines.controllers import Controllers as PipelineControllers
from etl_server.users.models import Models as UserModels
if __name__ == '__main__':
etl_pipelines = PipelineControllers({}, os.environ['ETLS_DATABASE_URL'])
... | 29.857143 | 79 | 0.690191 | 105 | 836 | 5.285714 | 0.447619 | 0.072072 | 0.046847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007622 | 0.215311 | 836 | 27 | 80 | 30.962963 | 0.838415 | 0 | 0 | 0 | 0 | 0 | 0.070574 | 0.02512 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.304348 | 0 | 0.304348 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cdf39f551c904fe4b04c4d3bcabc359187944762 | 945 | py | Python | AOC2017_3a.py | ghexp/aoc2017 | 0b51d78b8f3fe78958ad36dd9ff73de86d7e90b3 | [
"Apache-2.0"
] | null | null | null | AOC2017_3a.py | ghexp/aoc2017 | 0b51d78b8f3fe78958ad36dd9ff73de86d7e90b3 | [
"Apache-2.0"
] | null | null | null | AOC2017_3a.py | ghexp/aoc2017 | 0b51d78b8f3fe78958ad36dd9ff73de86d7e90b3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
maxv = 277678
currv = 1
x = 0
y = 0
sidelen = 1
while currv < maxv:
currv += 1
x += 1
sidelen += 2
halfside = (sidelen-1)/2
#print halfside
#print x,y,currv
while y < halfside:
#print "right"
y += 1
currv += 1
if currv == maxv:
... | 19.6875 | 31 | 0.428571 | 121 | 945 | 3.347107 | 0.190083 | 0.088889 | 0.08642 | 0.148148 | 0.590123 | 0.590123 | 0.590123 | 0.590123 | 0.590123 | 0.590123 | 0 | 0.045098 | 0.460317 | 945 | 47 | 32 | 20.106383 | 0.74902 | 0.104762 | 0 | 0.605263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cdf643b4e4f1b1350ac8a3c55c7b07e0adb5a38a | 943 | py | Python | venv/lib/python3.7/site-packages/tdl/style.py | canaanchap/roguedeka | aacd3e45966deff21eb2db5e6e6034eaaf9b88b2 | [
"MIT"
] | null | null | null | venv/lib/python3.7/site-packages/tdl/style.py | canaanchap/roguedeka | aacd3e45966deff21eb2db5e6e6034eaaf9b88b2 | [
"MIT"
] | null | null | null | venv/lib/python3.7/site-packages/tdl/style.py | canaanchap/roguedeka | aacd3e45966deff21eb2db5e6e6034eaaf9b88b2 | [
"MIT"
] | 1 | 2020-05-07T11:04:14.000Z | 2020-05-07T11:04:14.000Z | """
Used internally to handle style changes without breaking backwards
compatibility.
"""
import warnings as _warnings
import functools as _functools
def backport(func):
"""
Backport a function name into an old style for compatibility.
The docstring is updated to reflect that the new func... | 29.46875 | 77 | 0.686108 | 113 | 943 | 5.557522 | 0.566372 | 0.085987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001435 | 0.26087 | 943 | 31 | 78 | 30.419355 | 0.89957 | 0.465536 | 0 | 0 | 0 | 0 | 0.074592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cdf77be44ac7680e0d46013650b5f66ce9787f09 | 2,449 | py | Python | faas/transformer/tests/test_lightgbm.py | tianle91/faas | 6b9062c62ebd99b6eef0cf6d771303919c03d62e | [
"MIT"
] | null | null | null | faas/transformer/tests/test_lightgbm.py | tianle91/faas | 6b9062c62ebd99b6eef0cf6d771303919c03d62e | [
"MIT"
] | 10 | 2022-01-02T18:38:26.000Z | 2022-01-28T15:33:30.000Z | faas/transformer/tests/test_lightgbm.py | tianle91/faas | 6b9062c62ebd99b6eef0cf6d771303919c03d62e | [
"MIT"
] | null | null | null | import pytest
from pyspark.sql import SparkSession
from pyspark.sql.types import StringType
from faas.generate import GenerateSynthetic, convert_dict_to_list
from faas.transformer.etl import ETLConfig, FeatureConfig, TargetConfig
from faas.transformer.lightgbm import ETLWrapperForLGBM
@pytest.mark.parametrize(
(... | 33.094595 | 85 | 0.692119 | 280 | 2,449 | 5.807143 | 0.235714 | 0.068881 | 0.04059 | 0.04182 | 0.611931 | 0.595326 | 0.549816 | 0.51599 | 0.496925 | 0.496925 | 0 | 0.007284 | 0.21519 | 2,449 | 73 | 86 | 33.547945 | 0.83871 | 0 | 0 | 0.530303 | 1 | 0 | 0.027358 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 1 | 0.045455 | false | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cdfc4c860d1e4982b8daa3a07e9c350219a7552d | 1,723 | py | Python | gammapy/astro/darkmatter/utils.py | Rishank2610/gammapy | 3cd64fdb2c53c8e5c697a9b85ef8d0486bff0b76 | [
"BSD-3-Clause"
] | 155 | 2015-02-25T12:38:02.000Z | 2022-03-13T17:54:30.000Z | gammapy/astro/darkmatter/utils.py | Rishank2610/gammapy | 3cd64fdb2c53c8e5c697a9b85ef8d0486bff0b76 | [
"BSD-3-Clause"
] | 3,131 | 2015-01-06T15:36:23.000Z | 2022-03-31T17:30:57.000Z | gammapy/astro/darkmatter/utils.py | Rishank2610/gammapy | 3cd64fdb2c53c8e5c697a9b85ef8d0486bff0b76 | [
"BSD-3-Clause"
] | 158 | 2015-03-16T20:36:44.000Z | 2022-03-30T16:05:37.000Z | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Utilities to compute J-factor maps."""
import astropy.units as u
__all__ = ["JFactory"]
class JFactory:
"""Compute J-Factor maps.
All J-Factors are computed for annihilation. The assumed dark matter
profiles will be centered on the cente... | 31.907407 | 72 | 0.620429 | 210 | 1,723 | 4.985714 | 0.471429 | 0.040115 | 0.034384 | 0.034384 | 0.045845 | 0.045845 | 0.045845 | 0 | 0 | 0 | 0 | 0.002358 | 0.261753 | 1,723 | 53 | 73 | 32.509434 | 0.820755 | 0.479396 | 0 | 0 | 0 | 0 | 0.022487 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.157895 | false | 0 | 0.052632 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
cdfe4ee228bf576493b3bdb207e497cbfb5dd3e5 | 868 | py | Python | molecule/default/tests/test_default.py | darkwizard242/ansible-role-openrazer | 592a63fec2c647898e09c0339c1a6b4f8a6546b5 | [
"MIT"
] | null | null | null | molecule/default/tests/test_default.py | darkwizard242/ansible-role-openrazer | 592a63fec2c647898e09c0339c1a6b4f8a6546b5 | [
"MIT"
] | 5 | 2020-01-26T17:43:08.000Z | 2022-02-11T16:32:55.000Z | molecule/default/tests/test_default.py | darkwizard242/ansible-role-openrazer | 592a63fec2c647898e09c0339c1a6b4f8a6546b5 | [
"MIT"
] | null | null | null | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
PACKAGE = 'openrazer-meta'
PACKAGE_BINARY = '/usr/bin/openrazer-daemon'
def test_openrazer_package_installed(host):
"""
Tests if openr... | 22.25641 | 72 | 0.729263 | 109 | 868 | 5.577982 | 0.357798 | 0.123355 | 0.105263 | 0.098684 | 0.174342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168203 | 868 | 38 | 73 | 22.842105 | 0.842105 | 0.186636 | 0 | 0 | 0 | 0 | 0.134884 | 0.074419 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a8058e964db9f346162d1a9ac1dbd46236210055 | 1,824 | py | Python | examples/example.py | feftio/product-parser | 03f31349b67ccc83a914ddbbe34d2dc524355879 | [
"MIT"
] | null | null | null | examples/example.py | feftio/product-parser | 03f31349b67ccc83a914ddbbe34d2dc524355879 | [
"MIT"
] | null | null | null | examples/example.py | feftio/product-parser | 03f31349b67ccc83a914ddbbe34d2dc524355879 | [
"MIT"
] | null | null | null | import pparser
# https://www.wildberries.ru/catalog/obuv/muzhskaya/kedy-i-krossovki?sort=priceup&xsubject=128&page=1
# https://www.wildberries.ru/catalog/0/search.aspx?xfilters=xsubject%3Bdlvr%3Bbrand%3Bprice%3Bkind%3Bcolor%3Bwbsize%3Bseason%3Bconsists&xparams=preset%3D10948169&xshard=presets%2Fbucket_114&page=1&searc... | 52.114286 | 338 | 0.650219 | 253 | 1,824 | 4.549407 | 0.43083 | 0.057341 | 0.065161 | 0.078193 | 0.310165 | 0.111208 | 0.079931 | 0.079931 | 0.052129 | 0 | 0 | 0.042484 | 0.161184 | 1,824 | 34 | 339 | 53.647059 | 0.70915 | 0.740132 | 0 | 0 | 0 | 0 | 0.348993 | 0.225951 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.555556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
a80681af185804b36c62d684e11cec4bca1b723f | 3,332 | py | Python | playerlib/playback_controller.py | Mrokkk/player | bbd688f4c8df675e96d03ce940e4818485476208 | [
"MIT"
] | 3 | 2018-05-08T10:54:17.000Z | 2021-09-18T21:30:11.000Z | playerlib/playback_controller.py | Mrokkk/player | bbd688f4c8df675e96d03ce940e4818485476208 | [
"MIT"
] | 11 | 2018-02-17T19:15:32.000Z | 2018-05-16T17:41:41.000Z | playerlib/playback_controller.py | Mrokkk/player | bbd688f4c8df675e96d03ce940e4818485476208 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import logging
import re
from time import gmtime, strftime
from playerlib.backends.backend_factory import *
from urwim import clamp, App, rdb, RdbObject
class PlaybackController:
def __init__(self, config):
self.backend = BackendFactory(config, self.next, self.update_current_state... | 34.350515 | 98 | 0.638055 | 413 | 3,332 | 4.949153 | 0.230024 | 0.16683 | 0.242661 | 0.113014 | 0.431996 | 0.377691 | 0.312622 | 0.258806 | 0.235812 | 0.189824 | 0 | 0.005998 | 0.2494 | 3,332 | 96 | 99 | 34.708333 | 0.811275 | 0.006303 | 0 | 0.24359 | 0 | 0 | 0.042611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.064103 | 0 | 0.24359 | 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 |
a8090032149638ae75e8bdda9ff6e914d49c608a | 527 | py | Python | inventory_manager/inventory_api/migrations/0015_requesttype_access.py | mike-peterson04/inventory_be | 6c400b6b609bea8516bb3f79d309a2b7621c988f | [
"MIT"
] | 1 | 2021-09-15T23:27:08.000Z | 2021-09-15T23:27:08.000Z | inventory_manager/inventory_api/migrations/0015_requesttype_access.py | mike-peterson04/inventory_be | 6c400b6b609bea8516bb3f79d309a2b7621c988f | [
"MIT"
] | 1 | 2021-09-16T00:09:02.000Z | 2021-09-16T00:09:02.000Z | inventory_manager/inventory_api/migrations/0015_requesttype_access.py | mike-peterson04/inventory_be | 6c400b6b609bea8516bb3f79d309a2b7621c988f | [
"MIT"
] | null | null | null | # Generated by Django 3.1.8 on 2021-06-28 04:43
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventory_api', '0014_auto_20210627_2013'),
]
operations = [
migrations.AddField(
model_name='requ... | 26.35 | 152 | 0.666034 | 57 | 527 | 6.070175 | 0.701754 | 0.086705 | 0.17341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082524 | 0.218216 | 527 | 19 | 153 | 27.736842 | 0.757282 | 0.085389 | 0 | 0 | 1 | 0 | 0.110417 | 0.047917 | 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 |
a80a94b5fc5b81c87870b6e5d45b22e831b7c87c | 4,402 | py | Python | pyinaturalist_open_data/download.py | JWCook/pyinaturalist-open-data | 157a2119c397a666fcd14036253b9ab2e6eaf8e7 | [
"MIT"
] | 3 | 2021-05-06T04:43:36.000Z | 2022-02-01T19:40:36.000Z | pyinaturalist_open_data/download.py | JWCook/pyinaturalist-open-data | 157a2119c397a666fcd14036253b9ab2e6eaf8e7 | [
"MIT"
] | 12 | 2021-05-13T20:36:24.000Z | 2021-05-14T16:23:38.000Z | pyinaturalist_open_data/download.py | JWCook/pyinaturalist-open-data | 157a2119c397a666fcd14036253b9ab2e6eaf8e7 | [
"MIT"
] | null | null | null | """Functions for downloading and extracting inaturalist open data"""
# TODO: Download separate archive files in parallel?
from datetime import datetime, timezone
from io import FileIO
from os.path import basename, getsize
from pathlib import Path
from tarfile import TarFile
from time import time
import boto3
from boto... | 35.788618 | 100 | 0.70468 | 594 | 4,402 | 5.037037 | 0.286195 | 0.05615 | 0.019051 | 0.019051 | 0.152406 | 0.095588 | 0.076872 | 0.059492 | 0.059492 | 0.059492 | 0 | 0.0071 | 0.200136 | 4,402 | 122 | 101 | 36.081967 | 0.842658 | 0.213766 | 0 | 0.053333 | 0 | 0 | 0.092975 | 0.008264 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.12 | false | 0 | 0.16 | 0 | 0.373333 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a819d432b16d50ffa3624caea7344071724481fd | 8,500 | py | Python | pysnmp-with-texts/POLICY-DEVICE-AUX-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/POLICY-DEVICE-AUX-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/POLICY-DEVICE-AUX-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module POLICY-DEVICE-AUX-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/POLICY-DEVICE-AUX-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:41:12 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (def... | 130.769231 | 854 | 0.795647 | 1,000 | 8,500 | 6.761 | 0.349 | 0.008579 | 0.055909 | 0.008283 | 0.253365 | 0.142878 | 0.113888 | 0.113888 | 0.081497 | 0.07987 | 0 | 0.042027 | 0.101412 | 8,500 | 64 | 855 | 132.8125 | 0.843153 | 0.039529 | 0 | 0.074074 | 0 | 0.092593 | 0.440711 | 0.048191 | 0.018519 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.148148 | 0 | 0.314815 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a820da82958f76f8afc685e14435cbedab2550a0 | 1,336 | py | Python | app/__init__.py | pybrgr/cvrp-poc | ae2a2bd23c3cfc602a4e7b66ede2384d4c454bb9 | [
"MIT"
] | null | null | null | app/__init__.py | pybrgr/cvrp-poc | ae2a2bd23c3cfc602a4e7b66ede2384d4c454bb9 | [
"MIT"
] | null | null | null | app/__init__.py | pybrgr/cvrp-poc | ae2a2bd23c3cfc602a4e7b66ede2384d4c454bb9 | [
"MIT"
] | null | null | null | import logging
from logging.handlers import SMTPHandler, RotatingFileHandler
import os
from flask import Flask, request, current_app
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
from flask_mail import Mail
from flask_bootstrap import Bootstrap
from flask... | 26.196078 | 61 | 0.76497 | 199 | 1,336 | 4.914573 | 0.276382 | 0.082822 | 0.071575 | 0.08998 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002674 | 0.16018 | 1,336 | 50 | 62 | 26.72 | 0.868984 | 0 | 0 | 0 | 0 | 0 | 0.044162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.404762 | 0 | 0.452381 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a8238e1271f885d1f6b6f50b432646f9653d0249 | 792 | py | Python | setup.py | plannerstack/testset | 03a61ab5a99256fc2e849021fdc429fbd5f61742 | [
"MIT"
] | null | null | null | setup.py | plannerstack/testset | 03a61ab5a99256fc2e849021fdc429fbd5f61742 | [
"MIT"
] | null | null | null | setup.py | plannerstack/testset | 03a61ab5a99256fc2e849021fdc429fbd5f61742 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name = 'mmri',
version = '0.2.0-dev',
author = 'PlannerStack',
author_email = 'contact@plannerstack.org',
license = 'MIT',
description = 'Testing code and data for the Beter Benutten MMRI project',
long_description = open('README.rst').read... | 29.333333 | 78 | 0.619949 | 87 | 792 | 5.505747 | 0.712644 | 0.050104 | 0.05428 | 0.066806 | 0.146138 | 0.146138 | 0 | 0 | 0 | 0 | 0 | 0.004983 | 0.239899 | 792 | 26 | 79 | 30.461538 | 0.790698 | 0 | 0 | 0.08 | 0 | 0 | 0.391414 | 0.056818 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a8320be5a50627fe2a491623ad5a4157df6c3d13 | 496 | py | Python | dev/sandbox/demag/domain_truncation/test_doffinder.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 10 | 2018-03-24T07:43:17.000Z | 2022-03-26T10:42:27.000Z | dev/sandbox/demag/domain_truncation/test_doffinder.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 21 | 2018-03-26T15:08:53.000Z | 2021-07-10T16:11:14.000Z | dev/sandbox/demag/domain_truncation/test_doffinder.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 7 | 2018-04-09T11:50:48.000Z | 2021-06-10T09:23:25.000Z | #Test the dofinder module
from doffinder import bounddofs
from prob_trunc_testcases import *
def test_doffinder1d():
problem = MagUnitInterval()
degree = 1
V = FunctionSpace(problem.mesh,"CG",degree)
bounddofset = bounddofs(V, problem.coreboundfunc,2)
print bounddofset
assert len(bounddofset) ... | 29.176471 | 117 | 0.6875 | 57 | 496 | 5.77193 | 0.701754 | 0.091185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018421 | 0.233871 | 496 | 16 | 118 | 31 | 0.847368 | 0.048387 | 0 | 0 | 0 | 0 | 0.195329 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | null | null | 0 | 0.181818 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a836e509804e190b89593486b8dfc28e47be8d6a | 1,088 | py | Python | flags/artype.py | RaenonX/Jelly-Bot-API | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 5 | 2020-08-26T20:12:00.000Z | 2020-12-11T16:39:22.000Z | flags/artype.py | RaenonX/Jelly-Bot | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 234 | 2019-12-14T03:45:19.000Z | 2020-08-26T18:55:19.000Z | flags/artype.py | RaenonX/Jelly-Bot-API | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 2 | 2019-10-23T15:21:15.000Z | 2020-05-22T09:35:55.000Z | """Module for Auto-Reply content type flag."""
from django.utils.translation import gettext_lazy as _
from extutils.imgproc import ImageValidator
from extutils.flags import FlagSingleEnum
class AutoReplyContentType(FlagSingleEnum):
"""Various defined auto-reply content type."""
@classmethod
def default(... | 27.897436 | 71 | 0.674632 | 119 | 1,088 | 6.033613 | 0.521008 | 0.144847 | 0.044568 | 0.05571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004819 | 0.237132 | 1,088 | 38 | 72 | 28.631579 | 0.860241 | 0.233456 | 0 | 0.105263 | 0 | 0 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0.052632 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b51bb714bd57cd0a60585dd5d14e673ed4328a42 | 7,902 | py | Python | src/known_target_safety.py | opentargets/target_safety | 87910e9a86c5490679a656e7a6dd813d9e60ebcc | [
"Apache-2.0"
] | null | null | null | src/known_target_safety.py | opentargets/target_safety | 87910e9a86c5490679a656e7a6dd813d9e60ebcc | [
"Apache-2.0"
] | null | null | null | src/known_target_safety.py | opentargets/target_safety | 87910e9a86c5490679a656e7a6dd813d9e60ebcc | [
"Apache-2.0"
] | null | null | null | import argparse
from helpers import *
def generate_known_safety_json(filename_adr,filename_sri,filename_ubr,filename_efo,filename_ref,gene_mapfile):
# Parses the manually curated spreadsheets (from OT google drive) with targets with known safety risk information
# and collects everything in the required json ... | 45.676301 | 473 | 0.624272 | 1,009 | 7,902 | 4.700694 | 0.170466 | 0.0253 | 0.024668 | 0.027409 | 0.322581 | 0.251529 | 0.193548 | 0.144634 | 0.127767 | 0.11596 | 0 | 0.004559 | 0.250569 | 7,902 | 172 | 474 | 45.94186 | 0.796353 | 0.170969 | 0 | 0.158333 | 1 | 0 | 0.173833 | 0.011783 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.016667 | 0 | 0.058333 | 0.008333 | 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 |
b51fbf95030240b05a390660acb84b9384bdf4e2 | 1,044 | py | Python | setup.py | stephenleo/gcpy | 80174724f3207d382466d5879d517302ab62559a | [
"MIT"
] | null | null | null | setup.py | stephenleo/gcpy | 80174724f3207d382466d5879d517302ab62559a | [
"MIT"
] | null | null | null | setup.py | stephenleo/gcpy | 80174724f3207d382466d5879d517302ab62559a | [
"MIT"
] | null | null | null | import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
required_packages = ['fsspec', 'gcsfs', 'google-cloud-bigquery', 'google-cloud-storage', 'pandas', 'pyarrow', 'tqdm']
setuptools.setup(
name="gcpy",
version="0.0.1",
author="stephenleo",
author_em... | 36 | 117 | 0.65613 | 118 | 1,044 | 5.70339 | 0.601695 | 0.141159 | 0.185736 | 0.154532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020142 | 0.191571 | 1,044 | 29 | 118 | 36 | 0.777251 | 0 | 0 | 0 | 0 | 0 | 0.473684 | 0.042105 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 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 |
b523b6c8b92372e43d5cb72263a41f9e5de469ba | 880 | py | Python | day2/solution_part1.py | elyasha/advent-of-code-2020 | ac120fabd40d62216d27764ad9f9fdac14d9a100 | [
"MIT"
] | 1 | 2020-12-20T01:16:13.000Z | 2020-12-20T01:16:13.000Z | day2/solution_part1.py | elyasha/advent-of-code-2020 | ac120fabd40d62216d27764ad9f9fdac14d9a100 | [
"MIT"
] | null | null | null | day2/solution_part1.py | elyasha/advent-of-code-2020 | ac120fabd40d62216d27764ad9f9fdac14d9a100 | [
"MIT"
] | null | null | null | import os
input_file = os.path.join(os.getcwd(), "day1/input.txt")
nb_valid_passwords = 0
def is_valid_password(min_occurences, max_occurrences, special_letter, password):
nb_occurences = 0
for letter in password:
if letter == special_letter:
nb_occurences += 1
return min_occure... | 29.333333 | 89 | 0.663636 | 113 | 880 | 4.938053 | 0.371681 | 0.116487 | 0.086022 | 0.09319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010294 | 0.227273 | 880 | 29 | 90 | 30.344828 | 0.810294 | 0 | 0 | 0 | 0 | 0 | 0.096591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.380952 | 0.047619 | 0 | 0.142857 | 0.238095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b524e2d2bc3e813134671954b36de40e4c122d41 | 2,990 | py | Python | tests/test.py | gotzmann/kaissa64 | 5df5f9c0eaa16af18aa5abb613fcab7fb90a318f | [
"MIT"
] | 1 | 2021-04-07T17:10:41.000Z | 2021-04-07T17:10:41.000Z | tests/test.py | gotzmann/kaissa64 | 5df5f9c0eaa16af18aa5abb613fcab7fb90a318f | [
"MIT"
] | null | null | null | tests/test.py | gotzmann/kaissa64 | 5df5f9c0eaa16af18aa5abb613fcab7fb90a318f | [
"MIT"
] | null | null | null | import chess
import time
import copy
import sys
sys.path.append("..")
from parallel import search, startWorkers, stopWorkers
def main():
startWorkers() # Init multiprocessing
start = time.time()
maxPlies = 6 # zero for unlimited moves
defaultDepth = 3
if len(sys.argv) > 1:
defaul... | 29.9 | 111 | 0.492977 | 333 | 2,990 | 4.351351 | 0.396396 | 0.011042 | 0.012422 | 0.011042 | 0.046929 | 0.046929 | 0.046929 | 0.046929 | 0.046929 | 0.046929 | 0 | 0.036909 | 0.320401 | 2,990 | 99 | 112 | 30.20202 | 0.676181 | 0.21204 | 0 | 0.208955 | 0 | 0 | 0.147071 | 0.009833 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.014925 | false | 0 | 0.074627 | 0 | 0.089552 | 0.298507 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b525c85b6d92c0b2600e5f1e80fe572bdb2132cd | 1,364 | py | Python | tests/pages/native/video_player_page.py | vselitsky/aws-device-farm-python-android | 86182ec2fae531f7376fc4b7261529700d67eb0f | [
"Apache-2.0"
] | 23 | 2018-02-06T02:08:17.000Z | 2022-02-02T08:37:51.000Z | tests/pages/native/video_player_page.py | vselitsky/aws-device-farm-python-android | 86182ec2fae531f7376fc4b7261529700d67eb0f | [
"Apache-2.0"
] | 1 | 2017-05-02T13:43:32.000Z | 2017-11-06T22:28:39.000Z | tests/pages/native/video_player_page.py | vselitsky/aws-device-farm-python-android | 86182ec2fae531f7376fc4b7261529700d67eb0f | [
"Apache-2.0"
] | 19 | 2018-02-06T02:08:21.000Z | 2022-01-28T02:13:32.000Z | # Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0
#
# or in the "license" file accompan... | 38.971429 | 89 | 0.73827 | 192 | 1,364 | 5.114583 | 0.546875 | 0.0611 | 0.028513 | 0.034623 | 0.105906 | 0.071283 | 0.071283 | 0 | 0 | 0 | 0 | 0.00724 | 0.189883 | 1,364 | 34 | 90 | 40.117647 | 0.881448 | 0.532991 | 0 | 0 | 0 | 0 | 0.077966 | 0.040678 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b531c0697c29e6ddcfacaef5008fae074d194a8f | 2,704 | py | Python | apps/clubs/migrations/0001_initial.py | jin-hao-chen/team_go_backend | 22d376f649b4e5746091d17ed2cefaceb006e1ff | [
"MIT"
] | null | null | null | apps/clubs/migrations/0001_initial.py | jin-hao-chen/team_go_backend | 22d376f649b4e5746091d17ed2cefaceb006e1ff | [
"MIT"
] | null | null | null | apps/clubs/migrations/0001_initial.py | jin-hao-chen/team_go_backend | 22d376f649b4e5746091d17ed2cefaceb006e1ff | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2019-06-25 16:03
import ckeditor.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Club',
... | 42.25 | 188 | 0.547707 | 270 | 2,704 | 5.333333 | 0.414815 | 0.152778 | 0.052083 | 0.047917 | 0.302083 | 0.203472 | 0.203472 | 0.203472 | 0.203472 | 0.203472 | 0 | 0.020313 | 0.289941 | 2,704 | 63 | 189 | 42.920635 | 0.729688 | 0.015902 | 0 | 0.339286 | 1 | 0 | 0.13915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.053571 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5394e94109af59fc2a14e5475cf6e0a4a6d5fb4 | 277 | py | Python | asst5_hil00/rpalindromes.py | hibalubbad/hiba.baddie | 69001ad56c8a51f6e36a802bae061128d9fd5a71 | [
"MIT"
] | null | null | null | asst5_hil00/rpalindromes.py | hibalubbad/hiba.baddie | 69001ad56c8a51f6e36a802bae061128d9fd5a71 | [
"MIT"
] | null | null | null | asst5_hil00/rpalindromes.py | hibalubbad/hiba.baddie | 69001ad56c8a51f6e36a802bae061128d9fd5a71 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 10 09:23:08 2018
@author: misskeisha
"""
s = input()
def palindrome(s):
if len(s) <= 1:
return True
else:
return s[0] == s[-1] and palindrome(s[1:-1])
print(palindrome(s)) | 17.3125 | 52 | 0.548736 | 43 | 277 | 3.534884 | 0.72093 | 0.217105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092683 | 0.259928 | 277 | 16 | 53 | 17.3125 | 0.64878 | 0.361011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 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 |
b5436ceee093a59a387645d0cf6c728d9bb9c0a4 | 459 | py | Python | Templates - Script/AdvancedFilter_RPW.py | mitevpi/pyRevitCrucible | 5a2e802998607282d81b22072a4fe112fd89ff87 | [
"MIT"
] | 8 | 2018-09-27T02:18:02.000Z | 2021-03-07T03:53:09.000Z | Templates - Script/AdvancedFilter_RPW.py | mitevpi/pyDesign | 5a2e802998607282d81b22072a4fe112fd89ff87 | [
"MIT"
] | null | null | null | Templates - Script/AdvancedFilter_RPW.py | mitevpi/pyDesign | 5a2e802998607282d81b22072a4fe112fd89ff87 | [
"MIT"
] | 3 | 2020-01-15T14:29:37.000Z | 2020-11-04T23:46:20.000Z | """Advanced Collection of Data: Collects all the walls of height 10"""
__author__ = 'Petar Mitev'
import rpw
from rpw import revit, DB, UI
from System.Collections.Generic import List
param_id = DB.ElementId(DB.BuiltInParameter.WALL_USER_HEIGHT_PARAM)
parameter_filter = rpw.db.ParameterFilter(param_id, greater=1.0)
t... | 32.785714 | 76 | 0.812636 | 67 | 459 | 5.343284 | 0.626866 | 0.125698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009592 | 0.091503 | 459 | 13 | 77 | 35.307692 | 0.848921 | 0.139434 | 0 | 0 | 0 | 0 | 0.028278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b5509bc20b5118682ee9ae6c00be25572834d596 | 2,310 | py | Python | plotskycov.py | bartscheers/hackathon | a96e74286a484f0622e2edbbc6ef53d62ece2ffe | [
"BSD-3-Clause"
] | null | null | null | plotskycov.py | bartscheers/hackathon | a96e74286a484f0622e2edbbc6ef53d62ece2ffe | [
"BSD-3-Clause"
] | null | null | null | plotskycov.py | bartscheers/hackathon | a96e74286a484f0622e2edbbc6ef53d62ece2ffe | [
"BSD-3-Clause"
] | null | null | null | import logging, time, os, sys
import numpy as np
import healpy as hp
import pylab
from pymonetdb.sql.connections import Connection as connect
from pymonetdb.exceptions import Error as DBError
from pymonetdb.exceptions import OperationalError as OError
def get_skycovfig(conn, nside, fsvg):
"""Return the sky covera... | 30 | 90 | 0.598268 | 312 | 2,310 | 4.394231 | 0.5 | 0.040117 | 0.033552 | 0.042305 | 0.115244 | 0.061269 | 0.030635 | 0 | 0 | 0 | 0 | 0.028537 | 0.271861 | 2,310 | 76 | 91 | 30.394737 | 0.786564 | 0.17619 | 0 | 0.04 | 0 | 0 | 0.1297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02 | 0.14 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b55cb4bccabcc1df56c651eef4a176801d008a2f | 418 | py | Python | timebank/services/forms.py | davidvoler/django-timebank | 31cdcc289fe266601c22d68043d99a97d5e12a14 | [
"MIT"
] | 1 | 2015-04-05T02:34:18.000Z | 2015-04-05T02:34:18.000Z | timebank/services/forms.py | davidvoler/django-timebank | 31cdcc289fe266601c22d68043d99a97d5e12a14 | [
"MIT"
] | null | null | null | timebank/services/forms.py | davidvoler/django-timebank | 31cdcc289fe266601c22d68043d99a97d5e12a14 | [
"MIT"
] | null | null | null | from django.forms import ModelForm
from timebank.services.models import Service
class ServiceForm(ModelForm):
class Meta:
model = Service
fields = (
'title',
'theme',
'description',
'location',
'm... | 26.125 | 51 | 0.433014 | 28 | 418 | 6.392857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.492823 | 418 | 15 | 52 | 27.866667 | 0.84434 | 0 | 0 | 0 | 0 | 0 | 0.148883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.307692 | 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 |
b5688b3baf0d6221bcfd247816329fa6a66c21d9 | 506 | py | Python | bbpyp/lexicomb/parser/exist.py | BloggerBust/tag_script | 985a4b6b8c026431842d608ba8feafe8751dd425 | [
"Apache-2.0"
] | null | null | null | bbpyp/lexicomb/parser/exist.py | BloggerBust/tag_script | 985a4b6b8c026431842d608ba8feafe8751dd425 | [
"Apache-2.0"
] | null | null | null | bbpyp/lexicomb/parser/exist.py | BloggerBust/tag_script | 985a4b6b8c026431842d608ba8feafe8751dd425 | [
"Apache-2.0"
] | null | null | null | from bbpyp.lexicomb.parser.artifact import Artifact
class Exist(Artifact):
def __init__(self, term, *args, **kwargs):
super().__init__(*args, **kwargs)
self._term = term
def __repr__(self):
return f"{self.artifact_name}({self._term})"
def _eval(self, frame):
does_term_exi... | 24.095238 | 52 | 0.614625 | 62 | 506 | 4.548387 | 0.467742 | 0.113475 | 0.138298 | 0.159574 | 0.248227 | 0.177305 | 0 | 0 | 0 | 0 | 0 | 0 | 0.284585 | 506 | 20 | 53 | 25.3 | 0.779006 | 0 | 0 | 0 | 0 | 0 | 0.067194 | 0.067194 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.066667 | 0.066667 | 0.066667 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b56bb3436ac5a696e02fa8895e07530d41d0b929 | 2,321 | py | Python | firepy/firecracker.py | gamgi/firepy | fea859de4a8eaff78d4cf1ee7c3fe1b0467a77c6 | [
"MIT"
] | null | null | null | firepy/firecracker.py | gamgi/firepy | fea859de4a8eaff78d4cf1ee7c3fe1b0467a77c6 | [
"MIT"
] | null | null | null | firepy/firecracker.py | gamgi/firepy | fea859de4a8eaff78d4cf1ee7c3fe1b0467a77c6 | [
"MIT"
] | null | null | null | from typing import Union
import re
from io import StringIO
from pathlib import Path
from sh import Command, ErrorReturnCode, TimeoutException
from firepy.vm import Vm
from firepy.exceptions import err_from_returncode
from firepy.tap import Tap
from firepy.utils.logging_utils import logger
from firepy.utils.network_util... | 32.690141 | 78 | 0.635502 | 311 | 2,321 | 4.488746 | 0.308682 | 0.100287 | 0.04298 | 0.038682 | 0.060172 | 0.037249 | 0 | 0 | 0 | 0 | 0 | 0.005831 | 0.261094 | 2,321 | 70 | 79 | 33.157143 | 0.808163 | 0.090478 | 0 | 0.078431 | 0 | 0 | 0.062708 | 0.014727 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.098039 | false | 0.019608 | 0.196078 | 0 | 0.431373 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b576f5db937dc4c5fa2e39ba0113aaff01e90508 | 675 | py | Python | reservations/migrations/0003_auto_20170426_1821.py | danielmicaletti/ride_cell | 910be09ebc714b8c744edaf81559c8a9266473e3 | [
"MIT"
] | null | null | null | reservations/migrations/0003_auto_20170426_1821.py | danielmicaletti/ride_cell | 910be09ebc714b8c744edaf81559c8a9266473e3 | [
"MIT"
] | null | null | null | reservations/migrations/0003_auto_20170426_1821.py | danielmicaletti/ride_cell | 910be09ebc714b8c744edaf81559c8a9266473e3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-04-27 01:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reservations', '0002_auto_20170426_0524'),
]
operations = [
migrations.AlterF... | 25.961538 | 62 | 0.62963 | 68 | 675 | 6.014706 | 0.676471 | 0.0978 | 0.122249 | 0.141809 | 0.308068 | 0.308068 | 0.308068 | 0.308068 | 0 | 0 | 0 | 0.064386 | 0.263704 | 675 | 25 | 63 | 27 | 0.758551 | 0.097778 | 0 | 0.333333 | 1 | 0 | 0.176568 | 0.074257 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b57794843fab9f1447b5af049a82c0804c8c27b2 | 880 | py | Python | die_visual.py | gdhamija/Data-Visualization | 849ff03b36fb79326558f895f8c8967faeb1b04e | [
"MIT"
] | null | null | null | die_visual.py | gdhamija/Data-Visualization | 849ff03b36fb79326558f895f8c8967faeb1b04e | [
"MIT"
] | null | null | null | die_visual.py | gdhamija/Data-Visualization | 849ff03b36fb79326558f895f8c8967faeb1b04e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 10 14:59:30 2021
@author: Pa's
"""
import pygal
from die import Die
# Create two D6 die.
die_1 = Die()
die_2 = Die()
#Make some rolls, and store the results in a list.
results = []
for roll_num in range(1000):
result = die_1.roll() + die_2.roll()
... | 22.564103 | 66 | 0.634091 | 140 | 880 | 3.864286 | 0.521429 | 0.022181 | 0.036969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067432 | 0.207955 | 880 | 38 | 67 | 23.157895 | 0.708752 | 0.148864 | 0 | 0 | 0 | 0 | 0.157651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | 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 |
b58e1b127657d525b4c6c8fc0062c51a0fc3fb26 | 12,729 | py | Python | udacity_deploying_hadoop_cluster/hadoop_builder.py | mikey-m/hadoop_samples | 728af54fdd7c4cb303ad0fb7c85aa9dfdcc2c43d | [
"MIT"
] | null | null | null | udacity_deploying_hadoop_cluster/hadoop_builder.py | mikey-m/hadoop_samples | 728af54fdd7c4cb303ad0fb7c85aa9dfdcc2c43d | [
"MIT"
] | null | null | null | udacity_deploying_hadoop_cluster/hadoop_builder.py | mikey-m/hadoop_samples | 728af54fdd7c4cb303ad0fb7c85aa9dfdcc2c43d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Simple script to manually build a hadoop cluster of 2 or more nodes on Amazon EC2 instances. The cluser has a single namenode that also doubles as a datanode.
Based on instructions from Udacity course: Deploying a Hadoop Cluster
'''
import os
import subprocess
import time
user = r'ubuntu'... | 48.033962 | 215 | 0.660932 | 1,702 | 12,729 | 4.757932 | 0.122797 | 0.031983 | 0.091381 | 0.093356 | 0.648679 | 0.581378 | 0.502223 | 0.480859 | 0.438997 | 0.408743 | 0 | 0.0119 | 0.108728 | 12,729 | 264 | 216 | 48.215909 | 0.701895 | 0.013434 | 0 | 0.269036 | 0 | 0.096447 | 0.30095 | 0.121204 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015228 | null | null | 0.06599 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b5932c496069f408c489d39a6907ce5ae4cb2298 | 1,855 | py | Python | examples/chicago_vs_sunnyvale.py | Khan/graphy | e8306f5603c9f4033ae97b4ea23c7177470f41c6 | [
"Apache-2.0"
] | 1 | 2015-09-14T20:35:38.000Z | 2015-09-14T20:35:38.000Z | examples/chicago_vs_sunnyvale.py | Khan/graphy | e8306f5603c9f4033ae97b4ea23c7177470f41c6 | [
"Apache-2.0"
] | null | null | null | examples/chicago_vs_sunnyvale.py | Khan/graphy | e8306f5603c9f4033ae97b4ea23c7177470f41c6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python2.4
#
# Copyright 2008 Google Inc.
#
# 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 o... | 32.54386 | 79 | 0.727763 | 296 | 1,855 | 4.527027 | 0.516892 | 0.044776 | 0.03806 | 0.044776 | 0.147015 | 0.127612 | 0.070896 | 0.047761 | 0 | 0 | 0 | 0.070352 | 0.141779 | 1,855 | 56 | 80 | 33.125 | 0.771357 | 0.321833 | 0 | 0.09375 | 0 | 0 | 0.214976 | 0.019324 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09375 | null | null | 0.34375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b59ced3ba1b791abb26bdf2d6a316a3267bf09c6 | 983 | py | Python | noxfile.py | TZ3070/insights-core | 13f4fc6bfcb89d76f0255c6259902360a298d619 | [
"Apache-2.0"
] | null | null | null | noxfile.py | TZ3070/insights-core | 13f4fc6bfcb89d76f0255c6259902360a298d619 | [
"Apache-2.0"
] | null | null | null | noxfile.py | TZ3070/insights-core | 13f4fc6bfcb89d76f0255c6259902360a298d619 | [
"Apache-2.0"
] | null | null | null | """
Nox testing for Insights Core
=============================
To use this file install nox:
$ pip install --user --upgrade nox
Then you can run all nox tests:
$ nox
To run selected tests use `nox --list` to show the test names and then you can run
an individual test with:
$ nox -s test-2.7
See the ... | 21.369565 | 92 | 0.63174 | 151 | 983 | 4.10596 | 0.503311 | 0.048387 | 0.077419 | 0.041935 | 0.067742 | 0.067742 | 0 | 0 | 0 | 0 | 0 | 0.022113 | 0.171923 | 983 | 45 | 93 | 21.844444 | 0.739558 | 0.543235 | 0 | 0.153846 | 0 | 0 | 0.240363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b59e5226f2078c9e57d05b9f5d6fe82e56c36c11 | 2,109 | py | Python | modules/nltk_contrib/mit/six863/tagging/tagparse.py | h4ck3rm1k3/NLP-project | aeba6302f60d27a8b9e65ad28d2d74e1276c7cd6 | [
"MIT"
] | 123 | 2015-01-06T10:46:18.000Z | 2022-02-01T10:05:16.000Z | nltk_contrib/mit/six863/tagging/tagparse.py | silky/nltk_contrib | c152bde901f05915e90b07a615b232adb123bed8 | [
"Apache-2.0"
] | 12 | 2015-01-13T06:27:18.000Z | 2020-07-30T23:00:41.000Z | nltk_contrib/mit/six863/tagging/tagparse.py | silky/nltk_contrib | c152bde901f05915e90b07a615b232adb123bed8 | [
"Apache-2.0"
] | 114 | 2015-01-13T04:47:49.000Z | 2021-11-13T08:16:02.000Z | from nltk.parse import chart
from nltk import cfg
from drawchart import ChartDemo
from nltk.tokenize.regexp import wordpunct
#from nltk_contrib.mit.six863.kimmo import *
import re, pickle
def chart_tagger(tagger):
def insert_tags(thechart, tokens):
"""
Initialize a chart parser based on the results... | 34.57377 | 68 | 0.630156 | 263 | 2,109 | 4.939164 | 0.326996 | 0.024634 | 0.055427 | 0.076982 | 0.441878 | 0.404927 | 0.263279 | 0.263279 | 0.209392 | 0.209392 | 0 | 0.005668 | 0.247037 | 2,109 | 60 | 69 | 35.15 | 0.812343 | 0.069227 | 0 | 0.266667 | 0 | 0 | 0.054933 | 0.0128 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b59f1327262f54b7647b3eced9433f8e2f0c26f8 | 1,341 | py | Python | home/urls.py | georgiawang5332/meatFoodManager | 204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140 | [
"MIT"
] | null | null | null | home/urls.py | georgiawang5332/meatFoodManager | 204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140 | [
"MIT"
] | null | null | null | home/urls.py | georgiawang5332/meatFoodManager | 204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
from django.contrib.auth import views as auth_views
from .views import *
# Create your urls here.
app_name = 'home'
urlpatterns = [
path('home/', views.home, name='home'),
path('profile/', views.profile, name='profile'),
path('contact/', views.contact, name='cont... | 38.314286 | 112 | 0.733035 | 169 | 1,341 | 5.615385 | 0.278107 | 0.085353 | 0.063224 | 0.113804 | 0.210748 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001661 | 0.102163 | 1,341 | 34 | 113 | 39.441176 | 0.786545 | 0.06786 | 0 | 0 | 0 | 0 | 0.285254 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.3 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b5a0c537c5e6357ff3afb5b918aec77ac4414fe7 | 1,860 | py | Python | roles/install_local_settings/templates/cdhweb_settings.py | Princeton-CDH/CDH_ansible | 7929893d567e115e9448f17620a3afe5be2acabf | [
"Apache-2.0"
] | 1 | 2021-05-28T14:49:02.000Z | 2021-05-28T14:49:02.000Z | roles/install_local_settings/templates/cdhweb_settings.py | Princeton-CDH/CDH_ansible | 7929893d567e115e9448f17620a3afe5be2acabf | [
"Apache-2.0"
] | 40 | 2018-08-31T14:13:06.000Z | 2021-02-04T19:36:31.000Z | roles/install_local_settings/templates/cdhweb_settings.py | Princeton-CDH/CDH_ansible | 7929893d567e115e9448f17620a3afe5be2acabf | [
"Apache-2.0"
] | null | null | null | {% extends 'settings.py' %}
{% block basic_settings %}
{{ super() }}
NEVERCACHE_KEY = "{{ nevercache_key }}"
{% endblock %}
{% block logging %}
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'basic': {
'format': '[%(asctime)s] %(levelname)s:%(name)s::%(mes... | 26.956522 | 77 | 0.556989 | 187 | 1,860 | 5.390374 | 0.652406 | 0.02381 | 0.03869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.273656 | 1,860 | 68 | 78 | 27.352941 | 0.740933 | 0 | 0 | 0.127273 | 0 | 0 | 0.374751 | 0.13289 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018182 | 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 |
b5a25d4c4865e606e36cd13dce8c24ad2de9724b | 534 | py | Python | assignment-4.py | bikush/udacity-web-development | 45cd76833aa07ad974336cb93efb8d911a844243 | [
"Apache-2.0"
] | null | null | null | assignment-4.py | bikush/udacity-web-development | 45cd76833aa07ad974336cb93efb8d911a844243 | [
"Apache-2.0"
] | null | null | null | assignment-4.py | bikush/udacity-web-development | 45cd76833aa07ad974336cb93efb8d911a844243 | [
"Apache-2.0"
] | null | null | null | import webapp2
import handler
from loginout import Login, Logout, TokenSignup, TokenWelcome
config = {
'jinja_env' : handler.setup_jinja('assignment-4'),
'url_login_success' : '/assignment-4/welcome',
'url_logout' : '/assignment-4/logout',
'url_logout_redirect' : '/assignment-4/signup'
}
app = we... | 29.666667 | 61 | 0.689139 | 59 | 534 | 6.118644 | 0.40678 | 0.243767 | 0.099723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 0.14794 | 534 | 18 | 62 | 29.666667 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0.388785 | 0.078505 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 |
b5b1c6cc51c7f2fc0c2dac805c5e87329bd74ed2 | 373 | py | Python | src/sentry/plugins/base/urls.py | withrocks/commonlims | d8a925c917aa26e8205fefb3966a9f49f8f2e2f8 | [
"BSD-3-Clause"
] | 4 | 2019-05-27T13:55:07.000Z | 2021-03-30T07:05:09.000Z | src/sentry/plugins/base/urls.py | withrocks/commonlims | d8a925c917aa26e8205fefb3966a9f49f8f2e2f8 | [
"BSD-3-Clause"
] | 99 | 2019-05-20T14:16:33.000Z | 2021-01-19T09:25:15.000Z | src/sentry/plugins/base/urls.py | withrocks/commonlims | d8a925c917aa26e8205fefb3966a9f49f8f2e2f8 | [
"BSD-3-Clause"
] | 1 | 2020-08-10T07:55:40.000Z | 2020-08-10T07:55:40.000Z | from __future__ import absolute_import
import re
from django.conf.urls import patterns, include, url
from clims.services import ioc
urlpatterns = patterns('')
for _plugin in ioc.app.plugins.all():
_plugin_url_module = _plugin.get_url_module()
if _plugin_url_module:
urlpatterns += (url('^%s/' % re.e... | 24.866667 | 93 | 0.739946 | 51 | 373 | 5.039216 | 0.529412 | 0.140078 | 0.175097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150134 | 373 | 14 | 94 | 26.642857 | 0.810726 | 0 | 0 | 0 | 0 | 0 | 0.010724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b5b4a9b67a56b7e5920ce8ddc33c51e669eb456b | 1,711 | py | Python | app/model/draw_statistics_manual.py | kalraid/HoloLibraryAPI | 5470b279ae6922f85353c8ecf73a9fc13d83552a | [
"Apache-2.0"
] | 1 | 2022-01-27T02:30:39.000Z | 2022-01-27T02:30:39.000Z | app/model/draw_statistics_manual.py | kalraid/HoloLibraryAPI | 5470b279ae6922f85353c8ecf73a9fc13d83552a | [
"Apache-2.0"
] | 31 | 2021-09-20T01:21:24.000Z | 2022-02-08T01:29:18.000Z | app/model/draw_statistics_manual.py | kalraid/HoloLibraryAPI | 5470b279ae6922f85353c8ecf73a9fc13d83552a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from sqlalchemy import Column, ForeignKey
from sqlalchemy import String, Integer
from sqlalchemy.orm import relationship
from app.model import Base
class DrawStatisticsMenual(Base):
__tablename__ = 'draw_statistics_menual'
holo_twitter_draw_id = Column(Integer, ForeignKey('holo_twit... | 38.022222 | 170 | 0.68498 | 208 | 1,711 | 5.379808 | 0.259615 | 0.117962 | 0.080429 | 0.112601 | 0.372654 | 0.250223 | 0.071492 | 0 | 0 | 0 | 0 | 0.005061 | 0.191701 | 1,711 | 44 | 171 | 38.886364 | 0.804049 | 0.039158 | 0 | 0 | 0 | 0.03125 | 0.231707 | 0.191463 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0.0625 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b5b4ffcd51d8ac1f1de0e0e66f95938b5086b5bf | 359 | py | Python | tests/test_rotating_log_file.py | mjem/themelog | 415acbc1c9e730d27addf0d31db543c8d44f5494 | [
"Apache-2.0"
] | 1 | 2017-09-13T00:05:51.000Z | 2017-09-13T00:05:51.000Z | tests/test_rotating_log_file.py | mjem/themelog | 415acbc1c9e730d27addf0d31db543c8d44f5494 | [
"Apache-2.0"
] | null | null | null | tests/test_rotating_log_file.py | mjem/themelog | 415acbc1c9e730d27addf0d31db543c8d44f5494 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""Write to daily rotating log files.
One message is written per minute so the rotation can be seen.
"""
import time
import logging
from themelog import init_log
logger = logging.getLogger()
init_log(rotating_logfile='test.log')
pause = 60
while True:
logger.info('Sleeping for {pause} seconds'.f... | 23.933333 | 64 | 0.763231 | 56 | 359 | 4.839286 | 0.75 | 0.051661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00639 | 0.128134 | 359 | 14 | 65 | 25.642857 | 0.859425 | 0.328691 | 0 | 0 | 0 | 0 | 0.153846 | 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 |
b5b5e671d47fd5b6698b7ca49cd59da445259e4e | 2,278 | py | Python | setup.py | mgk/thingamon | b61ca38e4b39263640925cb0fc7b0c7315ba27ab | [
"MIT"
] | 4 | 2015-10-27T10:41:43.000Z | 2016-06-14T15:02:00.000Z | setup.py | mgk/thingamon | b61ca38e4b39263640925cb0fc7b0c7315ba27ab | [
"MIT"
] | 5 | 2015-10-25T22:17:18.000Z | 2015-12-04T23:29:24.000Z | setup.py | mgk/thingamon | b61ca38e4b39263640925cb0fc7b0c7315ba27ab | [
"MIT"
] | null | null | null | """
|Build Status| |Coverage Status| |Downloads|
thingamon
=========
`thingamon`_ is a library for working with AWS IoT Things using MQTT. See
`thingpin`_ for an example application that uses a Raspberry Pi as a door
sensor reporting to AWS IoT.
Installation
============
.. code::
pip install thingamon
Usage
... | 29.584416 | 108 | 0.655399 | 261 | 2,278 | 5.651341 | 0.509579 | 0.048814 | 0.101695 | 0.034576 | 0.097627 | 0.097627 | 0.059661 | 0.059661 | 0.059661 | 0 | 0 | 0.006543 | 0.194908 | 2,278 | 76 | 109 | 29.973684 | 0.79771 | 0.402985 | 0 | 0 | 0 | 0 | 0.525888 | 0.016272 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.073171 | 0 | 0.073171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b5b7add944d28933b72275be3ad9426fc7c8fb3b | 505 | py | Python | oosc/oosc/schools/migrations/0008_auto_20180131_2259.py | C4DLabOrg/da_api | 3d876576a189ce35c6b4b2f1c728f4b91e4b2ed0 | [
"MIT"
] | null | null | null | oosc/oosc/schools/migrations/0008_auto_20180131_2259.py | C4DLabOrg/da_api | 3d876576a189ce35c6b4b2f1c728f4b91e4b2ed0 | [
"MIT"
] | null | null | null | oosc/oosc/schools/migrations/0008_auto_20180131_2259.py | C4DLabOrg/da_api | 3d876576a189ce35c6b4b2f1c728f4b91e4b2ed0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-01-31 19:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('schools', '0007_schools_subcounty'),
]
operations = [
migrations.AlterField(
... | 22.954545 | 67 | 0.623762 | 53 | 505 | 5.754717 | 0.792453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061995 | 0.265347 | 505 | 21 | 68 | 24.047619 | 0.760108 | 0.130693 | 0 | 0 | 1 | 0 | 0.103211 | 0.050459 | 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 |
a90846768d436e653e588c9c82e7fd778f59a2e6 | 1,249 | py | Python | kinto_megaphone/megaphone.py | Kinto/kinto-megaphone | bb228192e415b79bb03ff0662dd8590c7242cd00 | [
"Apache-2.0"
] | null | null | null | kinto_megaphone/megaphone.py | Kinto/kinto-megaphone | bb228192e415b79bb03ff0662dd8590c7242cd00 | [
"Apache-2.0"
] | 31 | 2018-09-12T10:29:06.000Z | 2021-10-19T09:10:10.000Z | kinto_megaphone/megaphone.py | Kinto/kinto-megaphone | bb228192e415b79bb03ff0662dd8590c7242cd00 | [
"Apache-2.0"
] | 1 | 2018-08-30T15:41:19.000Z | 2018-08-30T15:41:19.000Z | """
A thin client for the Megaphone service.
"""
import logging
import requests.auth
logger = logging.getLogger(__name__)
class BearerAuth(requests.auth.AuthBase):
def __init__(self, token):
self.token = token
def __eq__(self, rhs):
return self.token == rhs.token
def __call__(self, r)... | 26.574468 | 87 | 0.63731 | 153 | 1,249 | 4.941176 | 0.431373 | 0.046296 | 0.029101 | 0.058201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004215 | 0.240192 | 1,249 | 46 | 88 | 27.152174 | 0.792413 | 0.032026 | 0 | 0 | 0 | 0 | 0.134055 | 0.018318 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.233333 | false | 0 | 0.066667 | 0.033333 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a90f64fc654ec771dcf3cdc8602c13dd6b7c38d0 | 15,005 | py | Python | build.py | matteobertozzi/GDEngine | 73bc923b628ad465b8ab7319edb0306ba8f172c5 | [
"BSD-3-Clause"
] | 2 | 2016-09-04T19:57:35.000Z | 2016-12-06T14:31:35.000Z | build.py | matteobertozzi/GDEngine | 73bc923b628ad465b8ab7319edb0306ba8f172c5 | [
"BSD-3-Clause"
] | null | null | null | build.py | matteobertozzi/GDEngine | 73bc923b628ad465b8ab7319edb0306ba8f172c5 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#-*- coding: utf-8 -*-
import commands
import string
import sys
import os
def execCommand(cmd):
return commands.getstatusoutput(cmd)
def writeFile(filename, content):
fd = open(filename, 'w')
fd.write(content)
fd.close()
def platformIsMac():
return os.uname()[0] == 'Darwin'... | 33.719101 | 93 | 0.536355 | 1,707 | 15,005 | 4.521968 | 0.135325 | 0.037181 | 0.023319 | 0.018137 | 0.395129 | 0.336831 | 0.288898 | 0.245369 | 0.226066 | 0.218033 | 0 | 0.005023 | 0.336621 | 15,005 | 444 | 94 | 33.795045 | 0.770444 | 0.022526 | 0 | 0.354651 | 0 | 0 | 0.120418 | 0.015359 | 0 | 0 | 0.000546 | 0 | 0 | 0 | null | null | 0 | 0.011628 | null | null | 0.110465 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a90f7becaf89194cb25b1519635176b524ed3e9b | 996 | py | Python | nextcord/ext/converters/partial_emoji_converter.py | abrahammurciano/nextcord | e55be422a1b923fc498b04f82172d5a0d263eb71 | [
"MIT"
] | null | null | null | nextcord/ext/converters/partial_emoji_converter.py | abrahammurciano/nextcord | e55be422a1b923fc498b04f82172d5a0d263eb71 | [
"MIT"
] | null | null | null | nextcord/ext/converters/partial_emoji_converter.py | abrahammurciano/nextcord | e55be422a1b923fc498b04f82172d5a0d263eb71 | [
"MIT"
] | null | null | null | from .converter import Converter
from .errors import PartialEmojiConversionFailure
from nextcord.ext.abc import ContextBase
from nextcord import PartialEmoji
import re
class PartialEmojiConverter(Converter[PartialEmoji]):
"""Converts to a :class:`~PartialEmoji`.
This is done by extracting the animated flag, ... | 34.344828 | 91 | 0.670683 | 117 | 996 | 5.632479 | 0.547009 | 0.045524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020539 | 0.217871 | 996 | 29 | 92 | 34.344828 | 0.825417 | 0.225904 | 0 | 0 | 0 | 0.0625 | 0.058745 | 0.058745 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a9102395e379fbf7b31685be1d2c57c3b08d746a | 1,304 | py | Python | pentest-scripts/learning-python-for-forensics/Chapter 6/simplexlsx.v3.py | paulveillard/cybersecurity-penetration-testing | a5afff13ec25afd0cf16ef966d35bddb91518af4 | [
"Apache-2.0"
] | 6 | 2021-12-07T21:02:12.000Z | 2022-03-03T12:08:14.000Z | pentest-scripts/learning-python-for-forensics/Chapter 6/simplexlsx.v3.py | paulveillard/cybersecurity-penetration-testing | a5afff13ec25afd0cf16ef966d35bddb91518af4 | [
"Apache-2.0"
] | null | null | null | pentest-scripts/learning-python-for-forensics/Chapter 6/simplexlsx.v3.py | paulveillard/cybersecurity-penetration-testing | a5afff13ec25afd0cf16ef966d35bddb91518af4 | [
"Apache-2.0"
] | 1 | 2022-01-15T23:57:36.000Z | 2022-01-15T23:57:36.000Z | import xlsxwriter
from datetime import datetime
school_data = [['Computer Science', 235, 3.44, datetime(2015, 07, 23, 18, 00, 00)],
['Chemistry', 201, 3.26, datetime(2015, 07, 25, 9, 30, 00)],
['Forensics', 99, 3.8, datetime(2015, 07, 23, 9, 30, 00)],
['Astronomy', 115, 3.2... | 44.965517 | 107 | 0.564417 | 154 | 1,304 | 4.655844 | 0.545455 | 0.066946 | 0.078103 | 0.04463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086639 | 0.265337 | 1,304 | 28 | 108 | 46.571429 | 0.661795 | 0 | 0 | 0 | 0 | 0 | 0.219325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | 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 |
a91291d31fe6531fb18ea576155cfc1770e3071b | 3,179 | py | Python | todo_app/models.py | ZechCodes/todo-web-app | a781a0e163809e7e77c6d058880bff9daf2522f9 | [
"MIT"
] | null | null | null | todo_app/models.py | ZechCodes/todo-web-app | a781a0e163809e7e77c6d058880bff9daf2522f9 | [
"MIT"
] | null | null | null | todo_app/models.py | ZechCodes/todo-web-app | a781a0e163809e7e77c6d058880bff9daf2522f9 | [
"MIT"
] | null | null | null | from __future__ import annotations
from datetime import datetime
from typing import Iterator
from sqlalchemy.ext.asyncio import AsyncSession
from sqlmodel import SQLModel, Field, Relationship, select
from todo_app.status import Status
class Task(SQLModel, table=True):
id: int = Field(primary_key=True)
name: s... | 34.934066 | 86 | 0.665933 | 382 | 3,179 | 5.437173 | 0.209424 | 0.026962 | 0.037073 | 0.051998 | 0.636013 | 0.616755 | 0.519981 | 0.484352 | 0.460761 | 0.431873 | 0 | 0.000406 | 0.225228 | 3,179 | 90 | 87 | 35.322222 | 0.842875 | 0 | 0 | 0.333333 | 0 | 0 | 0.026423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a91a681a592f2ae0325c25e74a0dbf7744ca80d6 | 230 | py | Python | monkey/models.py | LebowskiSama/quotle-heroku | b087c2161c2c838cdb3c8ae34f39690c351c1fad | [
"Apache-2.0"
] | null | null | null | monkey/models.py | LebowskiSama/quotle-heroku | b087c2161c2c838cdb3c8ae34f39690c351c1fad | [
"Apache-2.0"
] | null | null | null | monkey/models.py | LebowskiSama/quotle-heroku | b087c2161c2c838cdb3c8ae34f39690c351c1fad | [
"Apache-2.0"
] | null | null | null | from django.db import models
from datetime import date, datetime
class fur(models.Model):
imdbID = models.TextField(unique=True, null=False)
quotes = models.TextField()
def __str__(self):
return self.imdbID | 20.909091 | 54 | 0.713043 | 30 | 230 | 5.333333 | 0.7 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 230 | 11 | 55 | 20.909091 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.