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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d07df814cb6748757669097a641e731236e968f6 | 7,672 | py | Python | scripts/deploy.py | tallywiesenberg/algorand-tellorflex | 5fa673a637338e4dfa15b0cf4937a757890a5e14 | [
"MIT"
] | null | null | null | scripts/deploy.py | tallywiesenberg/algorand-tellorflex | 5fa673a637338e4dfa15b0cf4937a757890a5e14 | [
"MIT"
] | null | null | null | scripts/deploy.py | tallywiesenberg/algorand-tellorflex | 5fa673a637338e4dfa15b0cf4937a757890a5e14 | [
"MIT"
] | null | null | null | from typing import Tuple, List
from algosdk.v2client.algod import AlgodClient
from algosdk.future import transaction
from algosdk.logic import get_application_address
from algosdk import account, encoding
from pyteal import compileTeal, Mode, Keccak256
from tellorflex.methods import report
from utils.account import ... | 37.607843 | 202 | 0.669317 | 864 | 7,672 | 5.810185 | 0.347222 | 0.021912 | 0.023705 | 0.013546 | 0.122311 | 0.086056 | 0.061753 | 0.043426 | 0.043426 | 0.043426 | 0 | 0.005273 | 0.258472 | 7,672 | 204 | 203 | 37.607843 | 0.877131 | 0.233186 | 0 | 0.035088 | 0 | 0.026316 | 0.112404 | 0.011455 | 0 | 0 | 0 | 0 | 0.008772 | 1 | 0.052632 | false | 0 | 0.096491 | 0 | 0.175439 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d07f63644facb997bb2d4b1393d95a337bd66e35 | 11,118 | py | Python | parse-vocab-list.py | kltm/kanji-textbook-table | e97630b47c4b00b734f0f29794331e7a0fd857d5 | [
"BSD-3-Clause"
] | null | null | null | parse-vocab-list.py | kltm/kanji-textbook-table | e97630b47c4b00b734f0f29794331e7a0fd857d5 | [
"BSD-3-Clause"
] | null | null | null | parse-vocab-list.py | kltm/kanji-textbook-table | e97630b47c4b00b734f0f29794331e7a0fd857d5 | [
"BSD-3-Clause"
] | null | null | null | ####
#### Convert a TSV into a fully parsed JSON list blob that could be
#### used by a mustache (or other logicless) template.
####
#### Example usage to analyze the usual suspects:
#### python3 parse.py --help
####
#### Get report of current problems:
#### python3 parse-vocab-list.py --tsv ~/Downloads/UCSC中上級教科書_漢字... | 48.977974 | 394 | 0.477154 | 1,211 | 11,118 | 4.266722 | 0.2436 | 0.050319 | 0.017612 | 0.017418 | 0.225082 | 0.190052 | 0.136443 | 0.130443 | 0.116509 | 0.116509 | 0 | 0.009847 | 0.406278 | 11,118 | 226 | 395 | 49.19469 | 0.772459 | 0.238172 | 0 | 0.105634 | 0 | 0 | 0.101432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0.007042 | 0.049296 | 0 | 0.06338 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d080168f53e03ca48aa7bb5ade9767788f28ed6f | 2,716 | py | Python | expressy/importer.py | timedata-org/expressy | 0aaeffa430c1ccfe649ee2bcdb69e7feb48ada95 | [
"MIT"
] | 1 | 2017-01-22T18:53:52.000Z | 2017-01-22T18:53:52.000Z | expressy/importer.py | timedata-org/expressy | 0aaeffa430c1ccfe649ee2bcdb69e7feb48ada95 | [
"MIT"
] | 10 | 2017-01-23T15:41:15.000Z | 2017-07-11T11:55:46.000Z | expressy/importer.py | timedata-org/expressy | 0aaeffa430c1ccfe649ee2bcdb69e7feb48ada95 | [
"MIT"
] | null | null | null | import builtins, importlib
class Importer(object):
"""An Importer imports either a namespace or a symbol within a namespace.
It's like a more general version of importlib.import_module which handles
builtins and attributes within a module.
An Importer has a symbol_table that's always used to try to ... | 33.121951 | 79 | 0.621134 | 324 | 2,716 | 5.12037 | 0.367284 | 0.046414 | 0.037975 | 0.025316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.308174 | 2,716 | 81 | 80 | 33.530864 | 0.882916 | 0.463918 | 0 | 0.088235 | 0 | 0 | 0.01746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0.029412 | 0.264706 | 0 | 0.617647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0814ab2d80cbf44bcd4c19447312d5ef89e098c | 2,533 | py | Python | tests/test_plain.py | Nafi-Amaan-Hossain/willpyre | a506d32765088c8e59c46672946891e61dce87f2 | [
"BSD-3-Clause"
] | 1 | 2021-08-16T08:18:22.000Z | 2021-08-16T08:18:22.000Z | tests/test_plain.py | Nafi-Amaan-Hossain/willpyre | a506d32765088c8e59c46672946891e61dce87f2 | [
"BSD-3-Clause"
] | null | null | null | tests/test_plain.py | Nafi-Amaan-Hossain/willpyre | a506d32765088c8e59c46672946891e61dce87f2 | [
"BSD-3-Clause"
] | null | null | null | from async_asgi_testclient import TestClient
from myapp import main
import pytest
@pytest.mark.asyncio
async def test_willpyre_app():
async with TestClient(main) as client:
resp = await client.get("/")
assert resp.status_code == 200
assert resp.text == "index page"
@pytest.mark.asyncio
... | 25.585859 | 67 | 0.660087 | 332 | 2,533 | 4.948795 | 0.225904 | 0.121729 | 0.113816 | 0.147292 | 0.714547 | 0.682897 | 0.576993 | 0.470481 | 0.380402 | 0.214851 | 0 | 0.015283 | 0.22503 | 2,533 | 98 | 68 | 25.846939 | 0.821701 | 0 | 0 | 0.447761 | 0 | 0 | 0.11291 | 0 | 0 | 0 | 0 | 0 | 0.298507 | 1 | 0 | false | 0 | 0.044776 | 0 | 0.044776 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d085e4d4c18167f75fdb378a2d6a53bb684ea18f | 1,124 | py | Python | scripts/removeComments.py | doggy8088/azure-devops-cli-extension | 2f6b1a6ffbc49ae454df640a8bb00dac991d6514 | [
"MIT"
] | 326 | 2019-04-10T12:38:23.000Z | 2022-03-31T23:07:49.000Z | scripts/removeComments.py | doggy8088/azure-devops-cli-extension | 2f6b1a6ffbc49ae454df640a8bb00dac991d6514 | [
"MIT"
] | 562 | 2019-04-10T07:36:12.000Z | 2022-03-28T07:37:54.000Z | scripts/removeComments.py | doggy8088/azure-devops-cli-extension | 2f6b1a6ffbc49ae454df640a8bb00dac991d6514 | [
"MIT"
] | 166 | 2019-04-10T07:59:40.000Z | 2022-03-16T14:17:13.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 36.258065 | 94 | 0.544484 | 130 | 1,124 | 4.507692 | 0.430769 | 0.068259 | 0.116041 | 0.071672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200178 | 1,124 | 30 | 95 | 37.466667 | 0.651835 | 0.298932 | 0 | 0 | 0 | 0 | 0.10728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.1 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d086ce5911f7ac6a2a4bd8994adb6dc6191adc49 | 7,407 | py | Python | scripts/update_tables.py | EnsemblGSOC/tony-gsoc-2018 | 7b727e3a82654a4f102d735fb0b2c4ab12470ff6 | [
"Apache-2.0"
] | 1 | 2018-08-12T08:34:51.000Z | 2018-08-12T08:34:51.000Z | scripts/update_tables.py | EnsemblGSOC/tony-gsoc-2018 | 7b727e3a82654a4f102d735fb0b2c4ab12470ff6 | [
"Apache-2.0"
] | 19 | 2018-05-11T12:46:28.000Z | 2018-08-13T11:28:44.000Z | scripts/update_tables.py | EnsemblGSOC/tony-gsoc-2018 | 7b727e3a82654a4f102d735fb0b2c4ab12470ff6 | [
"Apache-2.0"
] | 1 | 2018-09-22T04:58:55.000Z | 2018-09-22T04:58:55.000Z | """
.. See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
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.or... | 38.780105 | 119 | 0.652491 | 920 | 7,407 | 5.136957 | 0.257609 | 0.052264 | 0.020313 | 0.016081 | 0.307025 | 0.263225 | 0.255184 | 0.220482 | 0.202285 | 0.202285 | 0 | 0.004271 | 0.241393 | 7,407 | 190 | 120 | 38.984211 | 0.836804 | 0.205751 | 0 | 0.292683 | 0 | 0 | 0.153473 | 0.00537 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.073171 | 0 | 0.186992 | 0.00813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d086eb141826a0dd9e722b35bf04940deba291b8 | 1,003 | py | Python | api-gateway/services/mail_service.py | Niweera/DNSTool-Middleware-API | 0e83d9f62fb65d9223b86a7876b3f30b2771befb | [
"Apache-2.0"
] | null | null | null | api-gateway/services/mail_service.py | Niweera/DNSTool-Middleware-API | 0e83d9f62fb65d9223b86a7876b3f30b2771befb | [
"Apache-2.0"
] | 9 | 2021-06-12T05:39:59.000Z | 2021-08-14T09:20:00.000Z | api-gateway/services/mail_service.py | Niweera/DNSTool-Middleware-API | 0e83d9f62fb65d9223b86a7876b3f30b2771befb | [
"Apache-2.0"
] | 2 | 2021-05-22T15:33:50.000Z | 2021-08-28T08:51:25.000Z | from flask_mail import Message
from mailer import mailer
from middleware.error_handling import write_log
class MailService:
@staticmethod
def send_welcome_email(email: str, full_name: str) -> None:
try:
email = Message(
subject="Welcome to DNSTool!",
recipie... | 31.34375 | 130 | 0.564307 | 109 | 1,003 | 5.073395 | 0.458716 | 0.0434 | 0.068716 | 0.05425 | 0.296564 | 0.296564 | 0.191682 | 0.191682 | 0.191682 | 0.191682 | 0 | 0.00304 | 0.343968 | 1,003 | 31 | 131 | 32.354839 | 0.837386 | 0 | 0 | 0.571429 | 0 | 0.035714 | 0.186441 | 0.031904 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.107143 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d088e305cc713c10d76eb917ab7c20df555901b9 | 1,469 | py | Python | day02/python/subesokun/solution.py | clssn/aoc-2019 | a978e5235855be937e60a1e7f88d1ef9b541be15 | [
"MIT"
] | 22 | 2019-11-27T08:28:46.000Z | 2021-04-27T05:37:08.000Z | day02/python/subesokun/solution.py | sancho1241/aoc-2019 | e0f63824c8250e0f84a42805e1a7ff7d9232002c | [
"MIT"
] | 77 | 2019-11-16T17:22:42.000Z | 2021-05-10T20:36:36.000Z | day02/python/subesokun/solution.py | sancho1241/aoc-2019 | e0f63824c8250e0f84a42805e1a7ff7d9232002c | [
"MIT"
] | 43 | 2019-11-27T06:36:51.000Z | 2021-11-03T20:56:48.000Z | INPUT_FILE_NAME = 'input.txt'
puzzle_input = None
with open(INPUT_FILE_NAME) as input_file:
puzzle_input = list(map(lambda val: int(val), input_file.readline().rstrip('\n').split(',')))
def run_instruction(opcode, param_1, param_2, param_3, memory):
if opcode == 1:
memory[param_3] = memory[param_1] +... | 31.934783 | 163 | 0.673247 | 204 | 1,469 | 4.578431 | 0.284314 | 0.127409 | 0.179872 | 0.038544 | 0.077088 | 0.077088 | 0.077088 | 0.077088 | 0.077088 | 0 | 0 | 0.049053 | 0.208986 | 1,469 | 45 | 164 | 32.644444 | 0.754733 | 0 | 0 | 0 | 0 | 0 | 0.043567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0 | 0 | 0.147059 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d08a58e73bc10ca50c82c660e481d5fd9ab9cf8d | 6,299 | py | Python | opendata_module/anonymizer/iio/mongodb_manager.py | ria-ee/monitor | d5cb9384abf38394b35e760729649136cbbc7548 | [
"MIT"
] | 10 | 2017-12-01T11:59:54.000Z | 2021-11-08T10:30:35.000Z | opendata_module/anonymizer/iio/mongodb_manager.py | ria-ee/monitor | d5cb9384abf38394b35e760729649136cbbc7548 | [
"MIT"
] | 16 | 2019-11-15T08:45:33.000Z | 2021-06-10T18:06:03.000Z | opendata_module/anonymizer/iio/mongodb_manager.py | ria-ee/monitor | d5cb9384abf38394b35e760729649136cbbc7548 | [
"MIT"
] | 13 | 2017-11-22T08:46:57.000Z | 2021-12-16T06:51:07.000Z | from pymongo import MongoClient
import pymongo
import datetime
import sqlite3 as sql
import os
import signal
from signal import SIGABRT, SIGILL, SIGINT, SIGSEGV, SIGTERM, SIGHUP
import traceback
from anonymizer.utils import logger_manager
import sys
ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
ATEXIT_SINGLET... | 40.378205 | 118 | 0.640895 | 709 | 6,299 | 5.35402 | 0.207334 | 0.05216 | 0.061644 | 0.035827 | 0.426765 | 0.384615 | 0.30137 | 0.30137 | 0.298736 | 0.298736 | 0 | 0.00573 | 0.251945 | 6,299 | 155 | 119 | 40.63871 | 0.799873 | 0 | 0 | 0.260504 | 0 | 0 | 0.123988 | 0.03953 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10084 | false | 0.033613 | 0.084034 | 0.008403 | 0.268908 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d08f1ec8fdeeec92aebf3f03615a051f9221f14d | 802 | py | Python | problems/p050.py | davisschenk/project-euler-python | 1375412e6c8199ab02250bd67223c758d4df1725 | [
"MIT"
] | null | null | null | problems/p050.py | davisschenk/project-euler-python | 1375412e6c8199ab02250bd67223c758d4df1725 | [
"MIT"
] | null | null | null | problems/p050.py | davisschenk/project-euler-python | 1375412e6c8199ab02250bd67223c758d4df1725 | [
"MIT"
] | 2 | 2020-10-08T23:35:03.000Z | 2020-10-09T00:28:36.000Z | from problem import Problem
from utils.primes import sieve_of_eratosthenes, simple_is_prime
class ConsecutivePrimeSum(Problem, name="Consecutive prime sum", expected=997651):
@Problem.solution()
def brute_force(self):
upper_bound = 1_000_000
primes = list(sieve_of_eratosthenes(4000))
m... | 30.846154 | 82 | 0.588529 | 95 | 802 | 4.726316 | 0.473684 | 0.115813 | 0.084633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039924 | 0.34414 | 802 | 25 | 83 | 32.08 | 0.813688 | 0 | 0 | 0 | 0 | 0 | 0.026185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d091d22d60b6b043a2100712328787d0097e7ec3 | 2,312 | py | Python | acapy_client/models/indy_pres_attr_spec.py | dbluhm/acapy-client | d92ef607ba2ff1152ec15429f2edb20976991424 | [
"Apache-2.0"
] | 4 | 2021-08-05T09:20:34.000Z | 2021-08-08T19:37:29.000Z | acapy_client/models/indy_pres_attr_spec.py | dbluhm/acapy-client | d92ef607ba2ff1152ec15429f2edb20976991424 | [
"Apache-2.0"
] | null | null | null | acapy_client/models/indy_pres_attr_spec.py | dbluhm/acapy-client | d92ef607ba2ff1152ec15429f2edb20976991424 | [
"Apache-2.0"
] | 2 | 2021-08-12T18:18:45.000Z | 2021-08-14T13:22:28.000Z | from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..types import UNSET, Unset
T = TypeVar("T", bound="IndyPresAttrSpec")
@attr.s(auto_attribs=True)
class IndyPresAttrSpec:
""" """
name: str
cred_def_id: Union[Unset, str] = UNSET
mime_type: Union[Unset, str] = UNSET
refe... | 27.2 | 77 | 0.602076 | 296 | 2,312 | 4.449324 | 0.209459 | 0.053151 | 0.068337 | 0.05467 | 0.149582 | 0.027335 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29109 | 2,312 | 84 | 78 | 27.52381 | 0.803539 | 0 | 0 | 0 | 0 | 0 | 0.039479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0 | 0.048387 | 0.048387 | 0.354839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0955d256ce56a7190e83eb9977c69b7f233f594 | 4,929 | py | Python | close_approach.py | jepster/python_project_near_earth_objects | 6e48da50685f15226bbc0adc66231c661596ac67 | [
"MIT"
] | null | null | null | close_approach.py | jepster/python_project_near_earth_objects | 6e48da50685f15226bbc0adc66231c661596ac67 | [
"MIT"
] | null | null | null | close_approach.py | jepster/python_project_near_earth_objects | 6e48da50685f15226bbc0adc66231c661596ac67 | [
"MIT"
] | null | null | null | from helpers import cd_to_datetime, datetime_to_str
class CloseApproach:
"""A close approach to Earth by an NEO.
A `CloseApproach` encapsulates information about the NEO's close approach
to Earth, such as the date and time (in UTC) of closest approach, the
nominal approach distance in astronomical un... | 39.432 | 79 | 0.581862 | 586 | 4,929 | 4.832765 | 0.259386 | 0.019774 | 0.025424 | 0.021186 | 0.47952 | 0.439619 | 0.439619 | 0.407839 | 0.373941 | 0.348517 | 0 | 0.005587 | 0.346318 | 4,929 | 124 | 80 | 39.75 | 0.873371 | 0.49645 | 0 | 0.363636 | 0 | 0 | 0.194853 | 0.078585 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.022727 | 0.022727 | 0.295455 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d096f230d88b0cb0b44ad27a15da83bc18edf195 | 11,023 | py | Python | terncy/terncy.py | rxwen/python-terncy | 69be427c39118f122554a300e6e82ec24ad48bc1 | [
"MIT"
] | 1 | 2020-06-30T07:06:14.000Z | 2020-06-30T07:06:14.000Z | terncy/terncy.py | rxwen/python-terncy | 69be427c39118f122554a300e6e82ec24ad48bc1 | [
"MIT"
] | null | null | null | terncy/terncy.py | rxwen/python-terncy | 69be427c39118f122554a300e6e82ec24ad48bc1 | [
"MIT"
] | 1 | 2020-12-26T11:20:42.000Z | 2020-12-26T11:20:42.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import asyncio
import logging
import json
import ssl
import uuid
from terncy.version import __version__
import terncy.event as event
import ipaddress
from datetime import datetime
from enum import Enum
from zeroconf import ServiceBrowser, Zeroconf
import aiohttp
import webs... | 34.021605 | 122 | 0.547945 | 1,200 | 11,023 | 4.793333 | 0.1675 | 0.019124 | 0.024339 | 0.018776 | 0.464534 | 0.439499 | 0.42194 | 0.387865 | 0.387865 | 0.372566 | 0 | 0.005863 | 0.350086 | 11,023 | 323 | 123 | 34.126935 | 0.797041 | 0.00381 | 0 | 0.407801 | 0 | 0.003546 | 0.089238 | 0.013602 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028369 | false | 0.007092 | 0.046099 | 0.007092 | 0.14539 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0995eaa88ebe8af4a5de82f32eaa66b6c6943ba | 5,310 | py | Python | ssc/visualization/vispy_voxel.py | DavidGillsjo/bssc-net | e1ffa643a2c8e3df34225f0756bad0dec9f801a2 | [
"MIT"
] | 5 | 2021-02-25T01:59:46.000Z | 2022-02-09T12:23:30.000Z | ssc/visualization/vispy_voxel.py | DavidGillsjo/bssc-net | e1ffa643a2c8e3df34225f0756bad0dec9f801a2 | [
"MIT"
] | null | null | null | ssc/visualization/vispy_voxel.py | DavidGillsjo/bssc-net | e1ffa643a2c8e3df34225f0756bad0dec9f801a2 | [
"MIT"
] | 1 | 2021-04-10T04:11:02.000Z | 2021-04-10T04:11:02.000Z | import vispy
vispy.use(app='egl')
from moviepy.editor import VideoClip
import numpy as np
from vispy import scene, io, visuals
from vispy.color import *
import cv2
# Check the application correctly picked up egl
assert vispy.app.use_app().backend_name == 'egl', 'Not using EGL'
class AlphaAwareCM(BaseColormap):
d... | 38.759124 | 170 | 0.634087 | 725 | 5,310 | 4.475862 | 0.308966 | 0.0151 | 0.016949 | 0.011094 | 0.436364 | 0.416641 | 0.403082 | 0.403082 | 0.382126 | 0.382126 | 0 | 0.030041 | 0.216384 | 5,310 | 136 | 171 | 39.044118 | 0.74982 | 0.020904 | 0 | 0.376147 | 0 | 0.009174 | 0.099326 | 0.013282 | 0 | 0 | 0 | 0 | 0.009174 | 1 | 0.045872 | false | 0 | 0.082569 | 0 | 0.174312 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d09a191e2a3804cf26b16a157b643e61f06cbb1c | 69,906 | py | Python | __init__.py | state-of-the-art/BlendNet | 0a303e34081b820370c9528c807f276eefb122dc | [
"Apache-2.0"
] | 66 | 2019-10-30T13:39:13.000Z | 2022-03-23T18:33:03.000Z | __init__.py | state-of-the-art/BlendNet | 0a303e34081b820370c9528c807f276eefb122dc | [
"Apache-2.0"
] | 97 | 2019-10-18T16:48:50.000Z | 2022-02-13T18:58:45.000Z | __init__.py | state-of-the-art/BlendNet | 0a303e34081b820370c9528c807f276eefb122dc | [
"Apache-2.0"
] | 12 | 2019-11-23T12:53:52.000Z | 2021-08-09T21:15:48.000Z | bl_info = {
'name': 'BlendNet - distributed cloud render',
'author': 'www.state-of-the-art.io',
'version': (0, 4, 0),
'warning': 'development version',
'blender': (2, 80, 0),
'location': 'Properties --> Render --> BlendNet Render',
'description': 'Allows to easy allocate resources in cloud a... | 38.988288 | 131 | 0.608918 | 7,764 | 69,906 | 5.345183 | 0.094153 | 0.031952 | 0.017831 | 0.016434 | 0.481494 | 0.407157 | 0.359325 | 0.321012 | 0.299398 | 0.274386 | 0 | 0.003979 | 0.284582 | 69,906 | 1,792 | 132 | 39.010045 | 0.825822 | 0.037922 | 0 | 0.424242 | 0 | 0.000689 | 0.167421 | 0.012157 | 0 | 0 | 0 | 0.000558 | 0 | 1 | 0.054408 | false | 0.028926 | 0.007576 | 0.009642 | 0.242424 | 0.009642 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d09d02c68d6758f8f9b41f85738e74eee8e7455d | 3,601 | py | Python | codonlib/codonlib.py | tmsincomb/codonlib | 026bc475b3255831d749455b4c76250d56e4b91e | [
"MIT"
] | null | null | null | codonlib/codonlib.py | tmsincomb/codonlib | 026bc475b3255831d749455b4c76250d56e4b91e | [
"MIT"
] | null | null | null | codonlib/codonlib.py | tmsincomb/codonlib | 026bc475b3255831d749455b4c76250d56e4b91e | [
"MIT"
] | null | null | null | """Main module."""
from collections import defaultdict
from functools import cache
from itertools import product
from operator import itemgetter
from typing import List
import numpy as np
from Bio.Data.CodonTable import unambiguous_dna_by_id
class CodonDegeneracy:
def __init__(self, table_id: int = 1):
... | 34.295238 | 120 | 0.580117 | 477 | 3,601 | 4.155136 | 0.268344 | 0.045409 | 0.02775 | 0.040363 | 0.133199 | 0.094349 | 0.028759 | 0.020182 | 0 | 0 | 0 | 0.016013 | 0.306304 | 3,601 | 104 | 121 | 34.625 | 0.777422 | 0.170786 | 0 | 0.032787 | 0 | 0 | 0.00577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098361 | false | 0 | 0.114754 | 0 | 0.278689 | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0a3ddac31091e48614d1cfeaf2b19071cf7215f | 1,598 | py | Python | gym_minigrid/envs/mygridworld.py | nathan-miller23/gym-minigrid | 4ed9e6a511be88a49903f107003951977d86d842 | [
"Apache-2.0"
] | null | null | null | gym_minigrid/envs/mygridworld.py | nathan-miller23/gym-minigrid | 4ed9e6a511be88a49903f107003951977d86d842 | [
"Apache-2.0"
] | null | null | null | gym_minigrid/envs/mygridworld.py | nathan-miller23/gym-minigrid | 4ed9e6a511be88a49903f107003951977d86d842 | [
"Apache-2.0"
] | null | null | null | from gym_minigrid.minigrid import *
from gym_minigrid.register import register
class MyEnv(MyMiniGridEnv):
def __init__(self, size=9, max_steps=100, start_pos=(1, 1), good_goal_pos=None, bad_goal_pos=None, reward='sparse', good_goal_reward=10, bad_goal_reward=-10):
self.start_pos = start_pos
self.... | 30.730769 | 162 | 0.646433 | 238 | 1,598 | 4 | 0.285714 | 0.07563 | 0.057773 | 0.047269 | 0.031513 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011706 | 0.251564 | 1,598 | 51 | 163 | 31.333333 | 0.784281 | 0 | 0 | 0 | 0 | 0 | 0.054477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.057143 | 0 | 0.371429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0a857e2bc8d397632de8161aef9ad14a63435bd | 1,033 | py | Python | exchange/utils/http_util.py | inasie/PyExchange | 7d40517c8145f92ac8068d5a0f25cc44ecddc82b | [
"MIT"
] | 12 | 2018-07-31T14:56:33.000Z | 2021-05-24T23:47:51.000Z | exchange/utils/http_util.py | inasie/PyExchange | 7d40517c8145f92ac8068d5a0f25cc44ecddc82b | [
"MIT"
] | 1 | 2018-08-17T09:16:04.000Z | 2018-08-17T09:16:04.000Z | exchange/utils/http_util.py | inasie/PyExchange | 7d40517c8145f92ac8068d5a0f25cc44ecddc82b | [
"MIT"
] | 8 | 2018-07-31T14:57:37.000Z | 2021-05-24T23:47:52.000Z | # -*- coding: utf-8 -*-
import requests
import json
import logging
class HttpUtil:
"""
http util
"""
def get(self, url, params=None):
'''
get request
:param str url: url
:param set params: parameters
:return: json object or json array
'''
resp =... | 25.825 | 73 | 0.522749 | 125 | 1,033 | 4.28 | 0.328 | 0.08972 | 0.104673 | 0.06729 | 0.534579 | 0.534579 | 0.44486 | 0.44486 | 0.44486 | 0.44486 | 0 | 0.010526 | 0.356244 | 1,033 | 39 | 74 | 26.487179 | 0.793985 | 0.178122 | 0 | 0.5 | 0 | 0 | 0.069612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d0aadc614a084b433d38993f99643e2433d5d14d | 3,828 | py | Python | pip_services3_datadog/clients/DataDogLogClient.py | pip-services3-python/pip-services3-datadog-python | 5d4549685b8486f1fc663b0e50ea52d019095909 | [
"MIT"
] | null | null | null | pip_services3_datadog/clients/DataDogLogClient.py | pip-services3-python/pip-services3-datadog-python | 5d4549685b8486f1fc663b0e50ea52d019095909 | [
"MIT"
] | null | null | null | pip_services3_datadog/clients/DataDogLogClient.py | pip-services3-python/pip-services3-datadog-python | 5d4549685b8486f1fc663b0e50ea52d019095909 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
from typing import Optional, List, Any
from pip_services3_commons.config import ConfigParams
from pip_services3_commons.convert import StringConverter
from pip_services3_commons.errors import ConfigException
from pip_services3_commons.refer import IReferences
from pip_services3_... | 35.119266 | 97 | 0.648642 | 405 | 3,828 | 5.891358 | 0.31358 | 0.020536 | 0.04694 | 0.038558 | 0.045264 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004196 | 0.252874 | 3,828 | 108 | 98 | 35.444444 | 0.83007 | 0.0593 | 0 | 0 | 0 | 0 | 0.086231 | 0.015855 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.0125 | 0.1125 | 0.0125 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d0aaf1fbb6455df5e13ef467cbacc908e5245647 | 2,802 | py | Python | gui/composition_worker.py | ivanovwaltz/wavelet_sound_microscope | ff14d82135193a3d20543e84a9e6a81f884b1cf7 | [
"MIT"
] | null | null | null | gui/composition_worker.py | ivanovwaltz/wavelet_sound_microscope | ff14d82135193a3d20543e84a9e6a81f884b1cf7 | [
"MIT"
] | null | null | null | gui/composition_worker.py | ivanovwaltz/wavelet_sound_microscope | ff14d82135193a3d20543e84a9e6a81f884b1cf7 | [
"MIT"
] | null | null | null | import logging
import os
from functools import partial
from PIL.Image import Image
from PyQt5.QtCore import QObject, pyqtSignal, QThread
from PyQt5.QtWidgets import QProgressDialog
from .threading import QThreadedWorkerDebug as QThreadedWorker
from analyze.composition import Composition, Spectrogram
from analyze.medi... | 25.472727 | 77 | 0.664525 | 285 | 2,802 | 6.361404 | 0.382456 | 0.061776 | 0.05957 | 0.024269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007619 | 0.250535 | 2,802 | 109 | 78 | 25.706422 | 0.855714 | 0.018915 | 0 | 0.055556 | 0 | 0 | 0.06589 | 0.012377 | 0 | 0 | 0 | 0.009174 | 0 | 1 | 0.138889 | false | 0.013889 | 0.138889 | 0 | 0.402778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0ab2fa07ec216f8af2558d0b182fc6b664345b5 | 61,891 | py | Python | metalpipe/node.py | zacernst/nanostream | 382389b09c42b55c6bdb64c7b0017d4810c7165f | [
"MIT"
] | 2 | 2019-04-12T19:32:55.000Z | 2019-12-24T16:50:09.000Z | metalpipe/node.py | zacernst/metalpipe | 382389b09c42b55c6bdb64c7b0017d4810c7165f | [
"MIT"
] | 10 | 2019-04-03T01:25:52.000Z | 2019-12-16T05:09:35.000Z | metalpipe/node.py | zacernst/nanostream | 382389b09c42b55c6bdb64c7b0017d4810c7165f | [
"MIT"
] | 1 | 2019-04-17T12:55:19.000Z | 2019-04-17T12:55:19.000Z | """
Node module
===========
The ``node`` module contains the ``MetalNode`` class, which is the foundation
for MetalPipe.
"""
import time
import datetime
import uuid
import importlib
import logging
import os
import threading
import pprint
import sys
import copy
import random
import functools
import csv
import MySQLdb
... | 35.185333 | 97 | 0.587194 | 7,050 | 61,891 | 4.934752 | 0.110638 | 0.014861 | 0.008537 | 0.010865 | 0.214602 | 0.168382 | 0.129348 | 0.097672 | 0.079103 | 0.071687 | 0 | 0.003666 | 0.325653 | 61,891 | 1,758 | 98 | 35.205347 | 0.829907 | 0.217641 | 0 | 0.247795 | 0 | 0 | 0.051118 | 0.005673 | 0 | 0 | 0 | 0.000569 | 0.002646 | 1 | 0.089065 | false | 0.007937 | 0.032628 | 0.003527 | 0.184303 | 0.0097 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0b20f9be0257673e00f2b9f9aa968fab5295bbd | 3,091 | py | Python | tests/components/test_ts_component.py | T4rk1n/dazzler | 69c49422dc19c910445ab265b1d3481041de8f43 | [
"MIT"
] | 15 | 2019-12-19T11:57:30.000Z | 2021-11-15T23:34:41.000Z | tests/components/test_ts_component.py | T4rk1n/dazzler | 69c49422dc19c910445ab265b1d3481041de8f43 | [
"MIT"
] | 196 | 2019-09-21T15:10:14.000Z | 2022-03-31T11:07:48.000Z | tests/components/test_ts_component.py | T4rk1n/dazzler | 69c49422dc19c910445ab265b1d3481041de8f43 | [
"MIT"
] | 7 | 2019-10-30T19:38:15.000Z | 2021-12-01T04:54:16.000Z | # A bit of duplication of the component system tests to ensure
# typescript components are transpiled properly to Python.
# Types are tested in test_mypy.
import json
import re
import pytest
from . import ts_components as tsc
@pytest.mark.parametrize(
'component',
[tsc.TypedComponent, tsc.TypedClassComponen... | 31.865979 | 117 | 0.693303 | 373 | 3,091 | 5.479893 | 0.33244 | 0.066536 | 0.029354 | 0.037182 | 0.281311 | 0.22456 | 0.189335 | 0.165362 | 0.165362 | 0.120352 | 0 | 0.006294 | 0.177612 | 3,091 | 96 | 118 | 32.197917 | 0.797797 | 0.094468 | 0 | 0.157143 | 0 | 0 | 0.286175 | 0.055516 | 0 | 0 | 0 | 0 | 0.185714 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d0b22aa7904b846e9743534781f5c71318798017 | 9,371 | py | Python | python test generator/main.py | ElDonad/Tixel-Dungeon | ad622e570a06bf7722cdf15dcc33547ba14aada4 | [
"MIT"
] | null | null | null | python test generator/main.py | ElDonad/Tixel-Dungeon | ad622e570a06bf7722cdf15dcc33547ba14aada4 | [
"MIT"
] | null | null | null | python test generator/main.py | ElDonad/Tixel-Dungeon | ad622e570a06bf7722cdf15dcc33547ba14aada4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import random
import numpy as np
import colorama
from colorama import Fore, Back
import copy
colorama.init()
LEFT = 'lft'
RIGHT = 'rgt'
UP = 'up'
DOWN = 'dwn'
HORIZONTAL = 'horizontal'
VERTICAL = 'vertical'
class Room:
def __init__(self, x=0, y=0, h=0, w=0):
self.x = x
s... | 33.230496 | 146 | 0.555224 | 1,055 | 9,371 | 4.923223 | 0.151659 | 0.03504 | 0.005776 | 0.010589 | 0.285329 | 0.258183 | 0.201194 | 0.155179 | 0.098575 | 0.090874 | 0 | 0.026207 | 0.32814 | 9,371 | 281 | 147 | 33.348754 | 0.798285 | 0.028172 | 0 | 0.213675 | 0 | 0 | 0.031666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034188 | false | 0.008547 | 0.021368 | 0 | 0.106838 | 0.094017 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0b36a7b39c48086c567c97c9b01212d0a865743 | 255 | py | Python | src/py/vmw/ui/vmw_launcher.py | jp-uom/variant_matrix_wizard | c5d7ac509be6d6a2020ab38f49c28df090a03c1d | [
"MIT"
] | 1 | 2017-12-27T11:56:33.000Z | 2017-12-27T11:56:33.000Z | src/py/vmw/ui/vmw_launcher.py | jp-uom/variant_matrix_wizard | c5d7ac509be6d6a2020ab38f49c28df090a03c1d | [
"MIT"
] | null | null | null | src/py/vmw/ui/vmw_launcher.py | jp-uom/variant_matrix_wizard | c5d7ac509be6d6a2020ab38f49c28df090a03c1d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import wx
import vmwizard as vmw
if __name__ == '__main__':
app = wx.App(False)
frame = wx.Frame(None, wx.ID_ANY, "Variant Matrix")
wiz = vmw.Wizard(frame)
frame.Show(True)
frame.Centre()
app.MainLoop()
| 15.9375 | 55 | 0.639216 | 37 | 255 | 4.162162 | 0.702703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005025 | 0.219608 | 255 | 15 | 56 | 17 | 0.768844 | 0.082353 | 0 | 0 | 0 | 0 | 0.094828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d0b370195e62577b0993491b41073f0838231b20 | 2,308 | py | Python | Modules/Scripted/DMRIInstall/DMRIInstall.py | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null | Modules/Scripted/DMRIInstall/DMRIInstall.py | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null | Modules/Scripted/DMRIInstall/DMRIInstall.py | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null | import os
import string
import textwrap
import unittest
import vtk, qt, ctk, slicer
from slicer.ScriptedLoadableModule import *
import logging
#
# DMRIInstall
#
class DMRIInstall(ScriptedLoadableModule):
"""
"""
helpText = textwrap.dedent(
"""
Please use the Extension Manager to install the "SlicerDMRI" ex... | 29.589744 | 96 | 0.731369 | 246 | 2,308 | 6.829268 | 0.5 | 0.071429 | 0.028571 | 0.034524 | 0.034524 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004656 | 0.162478 | 2,308 | 77 | 97 | 29.974026 | 0.864459 | 0.098354 | 0 | 0 | 0 | 0 | 0.120668 | 0.020539 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.184211 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d0b43ab4f6dd3ba972b2dc8c30789b6cc19eaa03 | 24,698 | py | Python | opcalendar/models.py | buahaha/allianceauth-opcalendar | 44e50e06eac4b5c0e6b809e5ca2638af5e49145f | [
"MIT"
] | null | null | null | opcalendar/models.py | buahaha/allianceauth-opcalendar | 44e50e06eac4b5c0e6b809e5ca2638af5e49145f | [
"MIT"
] | null | null | null | opcalendar/models.py | buahaha/allianceauth-opcalendar | 44e50e06eac4b5c0e6b809e5ca2638af5e49145f | [
"MIT"
] | null | null | null | import requests
import json
from typing import Tuple
from datetime import timedelta, datetime
from django.db import models
from django.urls import reverse
from django.contrib.auth.models import User
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from django.utils.html import... | 33.285714 | 309 | 0.604907 | 2,768 | 24,698 | 5.209176 | 0.151012 | 0.033844 | 0.037451 | 0.049934 | 0.492683 | 0.435467 | 0.38803 | 0.3365 | 0.28511 | 0.236008 | 0 | 0.005754 | 0.29634 | 24,698 | 741 | 310 | 33.330634 | 0.823925 | 0.027006 | 0 | 0.385113 | 0 | 0.011327 | 0.234114 | 0.052493 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050162 | false | 0 | 0.048544 | 0.022654 | 0.323625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0b49d08acf472e125d49a19fc95585b9f897f91 | 5,603 | py | Python | scripts/mot_neural_solver/pl_module/pair_nuclei.py | taimurhassan/crc | 930be78505dd17655542a38b0fc1ded9cf19a9a2 | [
"MIT"
] | 1 | 2022-03-16T10:40:23.000Z | 2022-03-16T10:40:23.000Z | scripts/mot_neural_solver/pl_module/pair_nuclei.py | taimurhassan/crc | 930be78505dd17655542a38b0fc1ded9cf19a9a2 | [
"MIT"
] | null | null | null | scripts/mot_neural_solver/pl_module/pair_nuclei.py | taimurhassan/crc | 930be78505dd17655542a38b0fc1ded9cf19a9a2 | [
"MIT"
] | null | null | null | import sacred
from sacred import Experiment
import os.path as osp
import pandas as pd
import scipy.io as sio
import numpy as np
from sacred import SETTINGS
SETTINGS.CONFIG.READ_ONLY_CONFIG=False
def pair_nuclei_and_generate_output(out_files_dir, datasetName, detector = "tracktor_prepr_det"):
startFrame = 159
... | 29.489474 | 124 | 0.493129 | 627 | 5,603 | 4.263158 | 0.216906 | 0.047886 | 0.029929 | 0.047138 | 0.375982 | 0.331837 | 0.331837 | 0.290685 | 0.290685 | 0.260007 | 0 | 0.0529 | 0.369088 | 5,603 | 189 | 125 | 29.645503 | 0.703253 | 0.033018 | 0 | 0.4 | 0 | 0 | 0.130113 | 0.047196 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008 | false | 0 | 0.056 | 0 | 0.064 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d0b8c5cb52a0f84127322d8ea824dbfd7a2fbbb9 | 1,087 | py | Python | onnxmltools/convert/coreml/operator_converters/ArrayFeatureExtractor.py | szha/onnxmltools | b04d05bda625cbc006955ce0a220277739a95825 | [
"MIT"
] | 3 | 2019-02-27T21:03:43.000Z | 2020-04-07T22:16:50.000Z | onnxmltools/convert/coreml/operator_converters/ArrayFeatureExtractor.py | szha/onnxmltools | b04d05bda625cbc006955ce0a220277739a95825 | [
"MIT"
] | null | null | null | onnxmltools/convert/coreml/operator_converters/ArrayFeatureExtractor.py | szha/onnxmltools | b04d05bda625cbc006955ce0a220277739a95825 | [
"MIT"
] | 2 | 2020-10-01T09:24:55.000Z | 2021-04-17T13:57:31.000Z | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from ....... | 41.807692 | 117 | 0.678933 | 116 | 1,087 | 6.077586 | 0.534483 | 0.073759 | 0.06383 | 0.079433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004098 | 0.102116 | 1,087 | 25 | 118 | 43.48 | 0.718238 | 0.275069 | 0 | 0 | 0 | 0 | 0.089514 | 0.053708 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d0b987edf568de32ee6c05d30261bbe4ded56c15 | 2,682 | py | Python | constants.py | xuefei1/Graph-Seq2Attn | 336c69877e483c95d9996ee205d2a005342f08af | [
"MIT"
] | 1 | 2020-01-06T07:49:46.000Z | 2020-01-06T07:49:46.000Z | constants.py | xuefei1/Graph-Seq2Attn | 336c69877e483c95d9996ee205d2a005342f08af | [
"MIT"
] | 1 | 2020-04-16T10:15:27.000Z | 2020-04-16T16:41:42.000Z | constants.py | xuefei1/Graph-Seq2Attn | 336c69877e483c95d9996ee205d2a005342f08af | [
"MIT"
] | null | null | null | # one identifier for one types of dict
# for instance, DK_SOME_KEY means this is a key for a data_dict
DK_BATCH_SIZE = "batch_size"
DK_PAD = "pad" # DK: general purpose data_dict
DK_SRC_WID = "src_wid" # src = msg + ctx
DK_SRC_WID_MASK = "src_wid_mask"
DK_SRC_SEQ_MASK = "src_seq_mask"
DK_MSG_WID = "msg_wid" # msg is us... | 37.774648 | 73 | 0.818792 | 500 | 2,682 | 3.77 | 0.19 | 0.034483 | 0.028647 | 0.017507 | 0.110345 | 0.089655 | 0.032891 | 0.032891 | 0 | 0 | 0 | 0.003318 | 0.101044 | 2,682 | 70 | 74 | 38.314286 | 0.778515 | 0.12789 | 0 | 0 | 0 | 0 | 0.368874 | 0.046002 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d0bd703517c8b3f6a8e778d87ff497a305805d45 | 12,308 | py | Python | tests/evaluator_test.py | NightShade256/prymate | deeb81ab685854599d803719971e85ead6699a90 | [
"MIT"
] | 6 | 2020-06-22T14:54:55.000Z | 2021-12-13T12:33:21.000Z | tests/evaluator_test.py | NightShade256/prymate | deeb81ab685854599d803719971e85ead6699a90 | [
"MIT"
] | null | null | null | tests/evaluator_test.py | NightShade256/prymate | deeb81ab685854599d803719971e85ead6699a90 | [
"MIT"
] | 1 | 2020-10-11T18:31:57.000Z | 2020-10-11T18:31:57.000Z | import unittest
from prymate import evaluator, objects
from prymate.lexer import Lexer
from prymate.parser import Parser
class TestEvaluator(unittest.TestCase):
def test_eval_numeric_exp(self):
tests = [
["5", 5],
["10", 10],
["-5", -5],
["-10", -10],
... | 32.474934 | 87 | 0.456451 | 1,425 | 12,308 | 3.835088 | 0.111579 | 0.048307 | 0.035133 | 0.049954 | 0.508692 | 0.462946 | 0.397804 | 0.357914 | 0.344373 | 0.322415 | 0 | 0.052632 | 0.379428 | 12,308 | 378 | 88 | 32.560847 | 0.66287 | 0 | 0 | 0.270701 | 0 | 0.015924 | 0.28294 | 0.012427 | 0.003185 | 0 | 0 | 0 | 0.038217 | 1 | 0.063694 | false | 0 | 0.012739 | 0 | 0.082803 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0be74bdfe9cb84b8767afe5f63676a2412c89f4 | 1,074 | py | Python | chrome/common/extensions/docs/examples/extensions/native_messaging/echo.py | codenote/chromium-test | 0637af0080f7e80bf7d20b29ce94c5edc817f390 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2018-03-10T13:08:49.000Z | 2018-03-10T13:08:49.000Z | chrome/common/extensions/docs/examples/extensions/native_messaging/echo.py | codenote/chromium-test | 0637af0080f7e80bf7d20b29ce94c5edc817f390 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/common/extensions/docs/examples/extensions/native_messaging/echo.py | codenote/chromium-test | 0637af0080f7e80bf7d20b29ce94c5edc817f390 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T07:25:45.000Z | 2020-11-04T07:25:45.000Z | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# A simple native client in python.
# All this client does is echo the text it receives back at the extension.
import sys
import s... | 25.571429 | 74 | 0.633147 | 155 | 1,074 | 4.264516 | 0.522581 | 0.075643 | 0.068079 | 0.048412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019901 | 0.251397 | 1,074 | 41 | 75 | 26.195122 | 0.802239 | 0.377095 | 0 | 0.095238 | 0 | 0 | 0.069697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d0bf9ddf2a1b5e4b50f545954e0579d25793cb8e | 1,748 | py | Python | Wrappers/Python/setup.py | lauramurgatroyd/CILViewer | 3aafa4693498a55ffd270c55118399dd807dee5f | [
"Apache-2.0"
] | null | null | null | Wrappers/Python/setup.py | lauramurgatroyd/CILViewer | 3aafa4693498a55ffd270c55118399dd807dee5f | [
"Apache-2.0"
] | null | null | null | Wrappers/Python/setup.py | lauramurgatroyd/CILViewer | 3aafa4693498a55ffd270c55118399dd807dee5f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2017 Edoardo Pasca
#
# 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 ap... | 31.214286 | 76 | 0.677346 | 243 | 1,748 | 4.831276 | 0.625514 | 0.051107 | 0.022147 | 0.027257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025216 | 0.20595 | 1,748 | 55 | 77 | 31.781818 | 0.820605 | 0.673341 | 0 | 0 | 0 | 0 | 0.342056 | 0.039252 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0c48f41277d0c455a9e37dabfa1c49d07148ba0 | 1,982 | py | Python | src/server/ClientHandler.py | ENDERZOMBI102/chatapp | 3f54e72a8d3b10457cf88ec5f87b2984cc84a51f | [
"MIT"
] | 1 | 2021-06-20T05:47:53.000Z | 2021-06-20T05:47:53.000Z | src/server/ClientHandler.py | ENDERZOMBI102/chatapp | 3f54e72a8d3b10457cf88ec5f87b2984cc84a51f | [
"MIT"
] | null | null | null | src/server/ClientHandler.py | ENDERZOMBI102/chatapp | 3f54e72a8d3b10457cf88ec5f87b2984cc84a51f | [
"MIT"
] | null | null | null | import asyncio
import traceback
from asyncio import StreamWriter, StreamReader, Task
from .BaseClientHandler import BaseClientHandler
from data import Message
class ClientHandler(BaseClientHandler):
_inputTask: Task
_errorCheckTask: Task
reader: StreamReader
writer: StreamWriter
# noinspection PyUnresolvedRef... | 30.492308 | 95 | 0.700807 | 239 | 1,982 | 5.682008 | 0.393305 | 0.051546 | 0.041973 | 0.053019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003695 | 0.180626 | 1,982 | 64 | 96 | 30.96875 | 0.832512 | 0.017659 | 0 | 0.037736 | 0 | 0 | 0.060154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.09434 | 0.018868 | 0.245283 | 0.075472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0c5b0e690a24fec09fd97682f7f29681f7e57f6 | 8,658 | py | Python | strangeflix/room/consumers.py | samsoldeinstein/webster2020 | 9795635e806caa261bb33d629f3d1f2bd603638c | [
"MIT"
] | 6 | 2020-11-02T16:40:56.000Z | 2020-11-07T06:59:00.000Z | strangeflix/room/consumers.py | samsoldeinstein/webster2020 | 9795635e806caa261bb33d629f3d1f2bd603638c | [
"MIT"
] | null | null | null | strangeflix/room/consumers.py | samsoldeinstein/webster2020 | 9795635e806caa261bb33d629f3d1f2bd603638c | [
"MIT"
] | 2 | 2020-11-03T05:20:25.000Z | 2020-11-03T05:38:47.000Z | # chat/consumers.py
import json
from channels.generic.websocket import AsyncWebsocketConsumer
from .models import RoomControl
from channels.db import database_sync_to_async
class ChatConsumer(AsyncWebsocketConsumer):
# when a user connect
async def connect(self):
self.user = self.scope['user']
... | 36.378151 | 102 | 0.473897 | 793 | 8,658 | 4.992434 | 0.118537 | 0.056833 | 0.054559 | 0.055822 | 0.614044 | 0.512756 | 0.43319 | 0.374337 | 0.374337 | 0.314979 | 0 | 0 | 0.430931 | 8,658 | 238 | 103 | 36.378151 | 0.803532 | 0.075999 | 0 | 0.551546 | 0 | 0 | 0.101593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010309 | false | 0 | 0.020619 | 0.010309 | 0.046392 | 0.010309 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0c819007b9eb94c341aa70c5a8a5172d3857e95 | 7,342 | py | Python | src/cnnclustering/hooks.py | janjoswig/CNN | 06ab0e07da46141cca941e99ac1a11ddc7ce233d | [
"MIT"
] | 4 | 2020-06-16T13:33:57.000Z | 2021-01-05T18:19:57.000Z | src/cnnclustering/hooks.py | janjoswig/CNN | 06ab0e07da46141cca941e99ac1a11ddc7ce233d | [
"MIT"
] | 12 | 2019-10-22T09:15:09.000Z | 2020-07-02T09:42:44.000Z | src/cnnclustering/hooks.py | janjoswig/CommonNNClustering | 06ab0e07da46141cca941e99ac1a11ddc7ce233d | [
"MIT"
] | null | null | null | import numpy as np
from cnnclustering._primitive_types import P_AINDEX, P_AVALUE
from cnnclustering import _types, _fit
COMPONENT_ALT_KW_MAP = {
"input": "input_data",
"data": "input_data",
"n": "neighbours",
"na": "neighbours",
"nb": "neighbour_neighbours",
"getter": "neighbours_getter",
... | 28.679688 | 84 | 0.566194 | 725 | 7,342 | 5.566897 | 0.284138 | 0.033449 | 0.013875 | 0.019822 | 0.223489 | 0.191774 | 0.169723 | 0.169723 | 0.165758 | 0.111497 | 0 | 0.008357 | 0.315445 | 7,342 | 255 | 85 | 28.792157 | 0.794668 | 0.243667 | 0 | 0.278481 | 0 | 0 | 0.244258 | 0.040523 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025316 | false | 0.006329 | 0.018987 | 0 | 0.06962 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0c895b700d9298c6544f69260721fb2fce2376e | 15,620 | py | Python | cybergis/jobs.py | cybergis/jupyterlib | b39cf9c525b52fc9f67a388a751126df00b498f2 | [
"NCSA"
] | 5 | 2017-11-08T15:32:09.000Z | 2019-12-20T03:05:34.000Z | cybergis/jobs.py | cybergis/jupyterlib | b39cf9c525b52fc9f67a388a751126df00b498f2 | [
"NCSA"
] | null | null | null | cybergis/jobs.py | cybergis/jupyterlib | b39cf9c525b52fc9f67a388a751126df00b498f2 | [
"NCSA"
] | 1 | 2019-12-20T02:46:56.000Z | 2019-12-20T02:46:56.000Z | #!/usr/bin/env python
from __future__ import print_function
from ipywidgets import *
from IPython.display import display
from getpass import getpass
import glob
import os
import stat
import paramiko
from string import Template
from os.path import expanduser
from pkg_resources import resource_string
from IPython.core.ma... | 37.368421 | 151 | 0.541613 | 1,710 | 15,620 | 4.853216 | 0.234503 | 0.003133 | 0.006507 | 0.00723 | 0.272804 | 0.225208 | 0.190143 | 0.173756 | 0.151585 | 0.104109 | 0 | 0.016194 | 0.320038 | 15,620 | 417 | 152 | 37.458034 | 0.765182 | 0.101985 | 0 | 0.281899 | 0 | 0.008902 | 0.122972 | 0.021293 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059347 | false | 0.014837 | 0.04451 | 0 | 0.136499 | 0.014837 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0c95eb3b0bfb04075898983cf10d20a892318cb | 5,419 | py | Python | compile.py | Wizard-collab/wizard_2 | a2cb23362e178a0205f6dd0b9b4328c329b5b142 | [
"MIT"
] | 1 | 2021-10-13T15:07:32.000Z | 2021-10-13T15:07:32.000Z | compile.py | Wizard-collab/wizard_2 | a2cb23362e178a0205f6dd0b9b4328c329b5b142 | [
"MIT"
] | null | null | null | compile.py | Wizard-collab/wizard_2 | a2cb23362e178a0205f6dd0b9b4328c329b5b142 | [
"MIT"
] | null | null | null | import subprocess
import os
import shutil
import time
import yaml
import sys
import logging
logger = logging.getLogger(__name__)
class compile():
def __init__(self):
args = sys.argv
args.pop(0)
if len(args) >= 1:
self.release_type = args.pop(0)
else:
self.release_type = None
self.build_folder = None
... | 29.291892 | 92 | 0.677985 | 753 | 5,419 | 4.661355 | 0.173971 | 0.062678 | 0.062963 | 0.051282 | 0.40114 | 0.358974 | 0.290598 | 0.237607 | 0.20114 | 0.20114 | 0 | 0.004092 | 0.188227 | 5,419 | 185 | 93 | 29.291892 | 0.793817 | 0.009042 | 0 | 0.265823 | 0 | 0 | 0.241803 | 0.083271 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025316 | false | 0.006329 | 0.044304 | 0 | 0.075949 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0d20743fdd39b355e497598543bd007290f251f | 840 | py | Python | src/discolight/loaders/annotation/widthheightcsv.py | denzel-datature/discolight | 7c8309d3f883263b2e4cae0b289f17be1d1c07ea | [
"MIT"
] | 27 | 2020-07-23T08:09:25.000Z | 2022-03-01T08:24:43.000Z | src/discolight/loaders/annotation/widthheightcsv.py | denzel-datature/discolight | 7c8309d3f883263b2e4cae0b289f17be1d1c07ea | [
"MIT"
] | 7 | 2020-08-05T07:26:55.000Z | 2020-12-31T04:20:40.000Z | src/discolight/loaders/annotation/widthheightcsv.py | denzel-datature/discolight | 7c8309d3f883263b2e4cae0b289f17be1d1c07ea | [
"MIT"
] | 6 | 2020-07-27T04:30:01.000Z | 2020-08-13T02:39:25.000Z | """A CSV annotation writer that reads the bbox in x, y, w, h format."""
from discolight.annotations import BoundingBox
from .types import CSVRow, CSVAnnotationLoader
class WidthHeightCSV(CSVAnnotationLoader):
"""Loads annotations from a CSV file in the following format.
image_name, x_min, y_min, width, heig... | 28.965517 | 78 | 0.633333 | 118 | 840 | 4.313559 | 0.355932 | 0.088409 | 0.02947 | 0.047151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257143 | 840 | 28 | 79 | 30 | 0.815705 | 0.261905 | 0 | 0 | 0 | 0 | 0.060504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d0d3e5c8138c7d0eda8194549ae4292083be2818 | 1,286 | py | Python | test/test_day09.py | frangiz/AdventOfCode2017 | 5fc171d4a83bfb9a408b4647ded4cb3efd12247e | [
"MIT"
] | null | null | null | test/test_day09.py | frangiz/AdventOfCode2017 | 5fc171d4a83bfb9a408b4647ded4cb3efd12247e | [
"MIT"
] | null | null | null | test/test_day09.py | frangiz/AdventOfCode2017 | 5fc171d4a83bfb9a408b4647ded4cb3efd12247e | [
"MIT"
] | null | null | null | from days import day09
from ddt import ddt, data, unpack
import unittest
import util
@ddt
class MyTestCase(unittest.TestCase):
@data(
[['{}'], '1'],
[['{{{}}}'], '6'],
[['{{},{}}'], '5'],
[['{{{},{},{{}}}}'], '16'],
[['{<a>,<a>,<a>,<a>}'], '1'],
[['{{<... | 29.906977 | 67 | 0.437014 | 133 | 1,286 | 4.06015 | 0.338346 | 0.018519 | 0.111111 | 0.074074 | 0.514815 | 0.514815 | 0.514815 | 0.381481 | 0.381481 | 0.203704 | 0 | 0.043663 | 0.269829 | 1,286 | 42 | 68 | 30.619048 | 0.531416 | 0 | 0 | 0.162162 | 0 | 0 | 0.188103 | 0.069936 | 0 | 0 | 0 | 0 | 0.108108 | 1 | 0.108108 | false | 0 | 0.108108 | 0 | 0.243243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0d55d407b26fa73a5076bdbaa2919b847abf548 | 6,760 | py | Python | jps-people-importer.py | UniversalSuperBox/jps-people-importer | eb7128122d00879798a88b599d90e53c139a00da | [
"MIT"
] | null | null | null | jps-people-importer.py | UniversalSuperBox/jps-people-importer | eb7128122d00879798a88b599d90e53c139a00da | [
"MIT"
] | null | null | null | jps-people-importer.py | UniversalSuperBox/jps-people-importer | eb7128122d00879798a88b599d90e53c139a00da | [
"MIT"
] | null | null | null | """
This script creates users in a JAMF Pro Server instance from an LDAP query.
"""
# Copyright 2020 Dalton Durst
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, inclu... | 31.009174 | 88 | 0.657988 | 842 | 6,760 | 5.11639 | 0.327791 | 0.020427 | 0.009053 | 0.011838 | 0.038069 | 0.038069 | 0.038069 | 0.038069 | 0.038069 | 0.038069 | 0 | 0.004761 | 0.25429 | 6,760 | 217 | 89 | 31.152074 | 0.849831 | 0.274852 | 0 | 0.08209 | 0 | 0 | 0.142887 | 0.019343 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0.029851 | 0.067164 | 0 | 0.104478 | 0.134328 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0d8be8cd8fd46f56d5540bc555ac35643dd277b | 1,387 | py | Python | app.py | arian-nasr/Temporary-SMS | cedbe68b3e329362049c86e0974396bc660875da | [
"MIT"
] | null | null | null | app.py | arian-nasr/Temporary-SMS | cedbe68b3e329362049c86e0974396bc660875da | [
"MIT"
] | null | null | null | app.py | arian-nasr/Temporary-SMS | cedbe68b3e329362049c86e0974396bc660875da | [
"MIT"
] | 1 | 2021-09-10T05:02:48.000Z | 2021-09-10T05:02:48.000Z | from flask import Flask, jsonify, request
from flask_cors import CORS
from twilio.twiml.messaging_response import MessagingResponse, Message
from twilio.rest import Client
import sqlconnector as sql
from datetime import datetime
import os
# configuration
DEBUG = True
twilio_sid = os.environ.get('TWILIO_SID')
twilio_se... | 28.895833 | 79 | 0.716655 | 169 | 1,387 | 5.64497 | 0.431953 | 0.028302 | 0.034591 | 0.072327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009298 | 0.14708 | 1,387 | 48 | 80 | 28.895833 | 0.797126 | 0.032444 | 0 | 0.157895 | 0 | 0 | 0.162061 | 0.064227 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.184211 | 0 | 0.342105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d0df0de6b9dc212d463d40040bc158f2287e5e3f | 1,101 | py | Python | scripts/txtool/txtool/get_logs.py | baajur/cita | 763c7866e6ea59ff96de085b4c72665f4e2f69ba | [
"Apache-2.0"
] | 930 | 2017-07-25T08:27:55.000Z | 2019-11-26T10:07:48.000Z | scripts/txtool/txtool/get_logs.py | baajur/cita | 763c7866e6ea59ff96de085b4c72665f4e2f69ba | [
"Apache-2.0"
] | 484 | 2017-07-25T14:32:44.000Z | 2019-11-14T11:16:45.000Z | scripts/txtool/txtool/get_logs.py | QingYanL/testCITA | 6d2e82c87831553c8d34749c56c4e5c8b94ece9c | [
"Apache-2.0"
] | 184 | 2017-07-26T01:37:36.000Z | 2019-11-19T07:07:49.000Z | #!/usr/bin/env python3
# coding=utf-8
from __future__ import print_function
from jsonrpcclient.http_client import HTTPClient
from url_util import endpoint
import argparse
import simplejson
def get_topics():
with open("../output/transaction/topics", 'r') as topicfile:
topics = simplejson.load(topicfile)
... | 22.02 | 64 | 0.659401 | 128 | 1,101 | 5.421875 | 0.476563 | 0.051873 | 0.04755 | 0.069164 | 0.083573 | 0.083573 | 0.083573 | 0 | 0 | 0 | 0 | 0.003521 | 0.226158 | 1,101 | 49 | 65 | 22.469388 | 0.811033 | 0.030881 | 0 | 0 | 0 | 0 | 0.087324 | 0.026291 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.147059 | 0 | 0.382353 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d0e07e8ca8f962f207b1a467ec124c229cd57722 | 2,095 | py | Python | w2/w2/t1.py | mvgrigoriev/ml-course | fc5cf01d0de0eb5771389ea3d978e0bd291fdf2b | [
"MIT"
] | null | null | null | w2/w2/t1.py | mvgrigoriev/ml-course | fc5cf01d0de0eb5771389ea3d978e0bd291fdf2b | [
"MIT"
] | null | null | null | w2/w2/t1.py | mvgrigoriev/ml-course | fc5cf01d0de0eb5771389ea3d978e0bd291fdf2b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 07 07:52:52 2018
@author: MVGrigoriev
@task: kNN method
"""
import pandas
import numpy as np
from sklearn.neighbors import KNeighborsClassifier # Import class from scikit-learn
from sklearn.model_selection import KFold # Import KFold function
from sklearn.model_se... | 36.754386 | 115 | 0.719809 | 300 | 2,095 | 4.97 | 0.373333 | 0.02951 | 0.024145 | 0.038229 | 0.464118 | 0.391683 | 0.340711 | 0.340711 | 0.340711 | 0.340711 | 0 | 0.028129 | 0.168496 | 2,095 | 56 | 116 | 37.410714 | 0.827784 | 0.313604 | 0 | 0.486486 | 0 | 0 | 0.040426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.162162 | 0 | 0.162162 | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d0e15314e67099f053fc8acbea6a1a91c7a8ed52 | 1,946 | py | Python | tutorial/tutorial.py | isabella232/sosp21-artifact | 1b4a11c648e456c9ff9d74f16b09f4238d6694a0 | [
"BSD-3-Clause"
] | 1 | 2021-09-20T07:57:50.000Z | 2021-09-20T07:57:50.000Z | tutorial/tutorial.py | digi-project/sosp21-artifact | 1b4a11c648e456c9ff9d74f16b09f4238d6694a0 | [
"BSD-3-Clause"
] | 1 | 2022-03-21T11:33:33.000Z | 2022-03-21T11:33:33.000Z | tutorial/tutorial.py | isabella232/sosp21-artifact | 1b4a11c648e456c9ff9d74f16b09f4238d6694a0 | [
"BSD-3-Clause"
] | 2 | 2021-12-09T12:54:52.000Z | 2022-03-21T08:43:31.000Z | # ipython utils
import os
import sys
import time
import yaml
import datetime
from pathlib import Path
from IPython import get_ipython
from IPython.core.magic import (register_line_magic, register_cell_magic,
register_line_cell_magic)
import warnings; warnings.simplefilter('ignore')
s... | 26.297297 | 73 | 0.613052 | 260 | 1,946 | 4.423077 | 0.411538 | 0.030435 | 0.044348 | 0.046957 | 0.114783 | 0.114783 | 0.069565 | 0.069565 | 0.069565 | 0 | 0 | 0.008649 | 0.227646 | 1,946 | 74 | 74 | 26.297297 | 0.756487 | 0.00668 | 0 | 0.034483 | 0 | 0 | 0.171843 | 0.022774 | 0 | 0 | 0 | 0 | 0.017241 | 1 | 0.086207 | false | 0 | 0.155172 | 0.017241 | 0.293103 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0e275de32ffad1ac148c2e85a79a876fec1fd53 | 362 | py | Python | examples/rotation.py | aallan/picamera2 | d64fbe669e071402d11c043cf044f52f6b2edc57 | [
"BSD-2-Clause"
] | null | null | null | examples/rotation.py | aallan/picamera2 | d64fbe669e071402d11c043cf044f52f6b2edc57 | [
"BSD-2-Clause"
] | null | null | null | examples/rotation.py | aallan/picamera2 | d64fbe669e071402d11c043cf044f52f6b2edc57 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python3
# Run the camera with a 180 degree rotation.
from qt_gl_preview import *
from picamera2 import *
import time
picam2 = Picamera2()
preview = QtGlPreview(picam2)
preview_config = picam2.preview_configuration()
preview_config["transform"] = libcamera.Transform(hflip=1, vflip=1)
picam2.configure(prev... | 20.111111 | 67 | 0.779006 | 49 | 362 | 5.632653 | 0.632653 | 0.141304 | 0.137681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043614 | 0.11326 | 362 | 17 | 68 | 21.294118 | 0.816199 | 0.165746 | 0 | 0 | 0 | 0 | 0.03 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d0e4e293078cbb35e7bb94fd2a5b26005400333e | 3,294 | py | Python | searcheval/test/test_metrics.py | VikasNeha/searcheval | 90f3be8e57dd70179f707ef73241306cdd2ec915 | [
"Apache-2.0"
] | 1 | 2018-01-18T18:37:11.000Z | 2018-01-18T18:37:11.000Z | searcheval/test/test_metrics.py | VikasNeha/searcheval | 90f3be8e57dd70179f707ef73241306cdd2ec915 | [
"Apache-2.0"
] | 1 | 2022-01-11T10:37:11.000Z | 2022-01-11T17:11:01.000Z | searcheval/test/test_metrics.py | VikasNeha/searcheval | 90f3be8e57dd70179f707ef73241306cdd2ec915 | [
"Apache-2.0"
] | 1 | 2022-01-11T10:46:05.000Z | 2022-01-11T10:46:05.000Z | import unittest
import searcheval.metrics as sm
class MetricsTests(unittest.TestCase):
def test_mean(self):
vector = [2, 3, 7]
mean = sm.mean(vector)
self.assertEqual(mean, 4)
def test_precision(self):
relevance_vector = [1, 0, 0, 1, 0]
precision = sm.precision(relev... | 32.94 | 77 | 0.608682 | 485 | 3,294 | 3.870103 | 0.109278 | 0.039425 | 0.023974 | 0.085242 | 0.589771 | 0.529568 | 0.393713 | 0.326052 | 0.284497 | 0.272243 | 0 | 0.062816 | 0.279903 | 3,294 | 99 | 78 | 33.272727 | 0.728499 | 0.044627 | 0 | 0.373333 | 0 | 0 | 0.002548 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.16 | false | 0 | 0.026667 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d0e6ec9507e696a89752b35b6c0b3c155c6656fe | 16,732 | py | Python | nomic/proposal.py | HactarCE/Quobot | e13f28990f212b92835dd9c8fcbdc53bc37d5ab8 | [
"MIT"
] | null | null | null | nomic/proposal.py | HactarCE/Quobot | e13f28990f212b92835dd9c8fcbdc53bc37d5ab8 | [
"MIT"
] | null | null | null | nomic/proposal.py | HactarCE/Quobot | e13f28990f212b92835dd9c8fcbdc53bc37d5ab8 | [
"MIT"
] | null | null | null | from collections import OrderedDict
from dataclasses import dataclass
from datetime import datetime
from enum import Enum
from typing import Optional, Set
import discord
import functools
from .gameflags import GameFlagsManager
from .playerdict import PlayerDict
from .repoman import GameRepoManager
from constants impor... | 35.449153 | 97 | 0.573392 | 1,901 | 16,732 | 4.882167 | 0.137296 | 0.064648 | 0.046223 | 0.014869 | 0.346191 | 0.275401 | 0.225299 | 0.193837 | 0.169702 | 0.141041 | 0 | 0.003041 | 0.331819 | 16,732 | 471 | 98 | 35.524416 | 0.827102 | 0.055044 | 0 | 0.257895 | 0 | 0.002632 | 0.062342 | 0.015797 | 0 | 0 | 0 | 0 | 0.018421 | 1 | 0.044737 | false | 0.005263 | 0.031579 | 0.028947 | 0.197368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0e74c23345f71b01c04f878f36260962612bba5 | 897 | py | Python | vexmpp/features/stream_mgmt.py | nicfit/vexmpp | e67070d2822da8356345976fb15d365935b550a6 | [
"MIT"
] | null | null | null | vexmpp/features/stream_mgmt.py | nicfit/vexmpp | e67070d2822da8356345976fb15d365935b550a6 | [
"MIT"
] | 349 | 2017-02-18T22:48:17.000Z | 2021-12-13T19:50:23.000Z | vexmpp/features/stream_mgmt.py | nicfit/vexmpp | e67070d2822da8356345976fb15d365935b550a6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from ..stanzas import Stanza
from ..errors import makeStanzaError
from ..protocols.stream_mgmt import NS_URI
async def handle(stream, feature_elem, sm_opts, timeout=None):
assert(feature_elem is not None)
nsmap = {"sm": NS_URI}
enable_elem = Stanza("enable", nsmap={None: NS_URI})
... | 32.035714 | 70 | 0.625418 | 123 | 897 | 4.390244 | 0.422764 | 0.077778 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002886 | 0.227425 | 897 | 27 | 71 | 33.222222 | 0.776335 | 0.023411 | 0 | 0 | 0 | 0 | 0.090389 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0 | false | 0 | 0.15 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d0e808e3235cc1782c3a0aac8f2ccd3eaf6e8e7d | 705 | py | Python | tests/feature_extraction/pattern/test_pattern.py | fidsusj/HateSpeechDetection | 1306a8a901aed856e51ee8fe16158ff267fb5405 | [
"BSD-3-Clause"
] | null | null | null | tests/feature_extraction/pattern/test_pattern.py | fidsusj/HateSpeechDetection | 1306a8a901aed856e51ee8fe16158ff267fb5405 | [
"BSD-3-Clause"
] | 17 | 2020-11-08T16:55:54.000Z | 2021-05-28T05:58:17.000Z | tests/feature_extraction/pattern/test_pattern.py | fidsusj/HateSpeechDetection | 1306a8a901aed856e51ee8fe16158ff267fb5405 | [
"BSD-3-Clause"
] | 2 | 2020-12-18T10:42:58.000Z | 2021-05-24T19:32:57.000Z | from unittest import TestCase
import pandas as pd
from feature_extraction.pattern.pattern import Pattern
from preprocessing.corpus import build_corpus
class Test_Pattern(TestCase):
raw_data = {
"class": [0, 0, 1, 0],
"content": [
"John hates bitches",
"John hates hookers",... | 27.115385 | 88 | 0.639716 | 87 | 705 | 5 | 0.505747 | 0.050575 | 0.055172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020952 | 0.255319 | 705 | 25 | 89 | 28.2 | 0.807619 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.052632 | false | 0 | 0.210526 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d0e812a6800aac72cae877576878f53d8cd3bd64 | 11,525 | py | Python | main.py | C3ald/Token-API | 5bb34ac1276b23a6f3c780c8d7011d621f02ab90 | [
"MIT"
] | 4 | 2021-12-20T22:51:20.000Z | 2021-12-30T17:55:34.000Z | main.py | C3ald/Token-API | 5bb34ac1276b23a6f3c780c8d7011d621f02ab90 | [
"MIT"
] | 14 | 2021-12-08T18:30:00.000Z | 2022-01-06T05:27:08.000Z | main.py | C3ald/Token-API | 5bb34ac1276b23a6f3c780c8d7011d621f02ab90 | [
"MIT"
] | null | null | null | from starlette.responses import Response
from passlib.hash import pbkdf2_sha256
from starlette.websockets import WebSocketDisconnect
from blockchain import Blockchain
# from wallet import Wallet
from fastapi import FastAPI, WebSocket
import uvicorn
import socket
import requests as r
from pydantic import BaseModel
from ... | 29.551282 | 227 | 0.702907 | 1,316 | 11,525 | 6.019757 | 0.215805 | 0.016158 | 0.018935 | 0.024236 | 0.278591 | 0.214214 | 0.179626 | 0.15539 | 0.15539 | 0.15539 | 0 | 0.005647 | 0.200954 | 11,525 | 390 | 228 | 29.551282 | 0.854599 | 0.168156 | 0 | 0.325991 | 0 | 0.004405 | 0.14289 | 0.006233 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.035242 | 0.079295 | 0 | 0.303965 | 0.017621 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0e9d30679706cc8bbbaa272614c4af5c8ce41cd | 7,096 | py | Python | app/user/views.py | cosmos-sajal/magic-link | 346e828673f298bae9ec3075db8d5e837e4b7aaf | [
"MIT"
] | 2 | 2020-10-19T07:35:59.000Z | 2020-10-24T17:43:41.000Z | app/user/views.py | cosmos-sajal/magic-link | 346e828673f298bae9ec3075db8d5e837e4b7aaf | [
"MIT"
] | null | null | null | app/user/views.py | cosmos-sajal/magic-link | 346e828673f298bae9ec3075db8d5e837e4b7aaf | [
"MIT"
] | null | null | null | import json
from django.views import View
from django.shortcuts import redirect, render
from django.core.exceptions import ObjectDoesNotExist
from django.contrib import messages
from django.http.response import HttpResponseRedirect
from rest_framework.renderers import TemplateHTMLRenderer
from rest_framework import st... | 28.612903 | 82 | 0.604284 | 742 | 7,096 | 5.609164 | 0.179245 | 0.025949 | 0.031956 | 0.038683 | 0.306343 | 0.255166 | 0.240269 | 0.207593 | 0.207593 | 0.192215 | 0 | 0.001415 | 0.302847 | 7,096 | 247 | 83 | 28.728745 | 0.839903 | 0.05186 | 0 | 0.379747 | 0 | 0 | 0.07829 | 0.017926 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075949 | false | 0.012658 | 0.113924 | 0 | 0.398734 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0f002a005c22f45ad7c152982173fb33768f83a | 1,822 | py | Python | src/aves/features/sparse.py | sergioangulo/aves | 43a14ec9c82929136a39590b15fe7f92182aae20 | [
"CC-BY-3.0"
] | 34 | 2020-10-23T08:57:03.000Z | 2022-03-23T17:07:20.000Z | src/aves/features/sparse.py | sergioangulo/aves | 43a14ec9c82929136a39590b15fe7f92182aae20 | [
"CC-BY-3.0"
] | 3 | 2021-12-02T22:42:25.000Z | 2021-12-10T02:37:01.000Z | src/aves/features/sparse.py | sergioangulo/aves | 43a14ec9c82929136a39590b15fe7f92182aae20 | [
"CC-BY-3.0"
] | 11 | 2021-03-25T02:40:34.000Z | 2022-01-03T22:41:29.000Z | from scipy.sparse import dok_matrix
import pandas as pd
from cytoolz import itemmap
def long_dataframe_to_sparse_matrix(
df, index, vars, values, id_to_row=None, var_to_column=None
):
if id_to_row is None:
unique_index_values = df[index].unique()
id_to_row = dict(zip(unique_index_values, range... | 25.305556 | 83 | 0.625137 | 271 | 1,822 | 3.881919 | 0.243542 | 0.026616 | 0.046578 | 0.030418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003754 | 0.268935 | 1,822 | 71 | 84 | 25.661972 | 0.786036 | 0 | 0 | 0.148148 | 0 | 0 | 0.008782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.055556 | 0 | 0.12963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0f14602b75f864977df1e3824cf1f1c1da55ef2 | 25,329 | py | Python | wltp/autograph.py | ankostis/wltp | c95462cadbcab32d4fc94f8ea8bf9d85a0a3763e | [
"Apache-2.0"
] | null | null | null | wltp/autograph.py | ankostis/wltp | c95462cadbcab32d4fc94f8ea8bf9d85a0a3763e | [
"Apache-2.0"
] | null | null | null | wltp/autograph.py | ankostis/wltp | c95462cadbcab32d4fc94f8ea8bf9d85a0a3763e | [
"Apache-2.0"
] | 1 | 2015-02-20T11:47:33.000Z | 2015-02-20T11:47:33.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2019-2020 European Commission (JRC);
# Licensed under the EUPL (the 'Licence');
# You may not use this work except in compliance with the Licence.
# You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl
"""
Harvest functions & annotate their ... | 34.182186 | 98 | 0.569189 | 3,012 | 25,329 | 4.641766 | 0.183599 | 0.022316 | 0.006866 | 0.006866 | 0.112081 | 0.074387 | 0.061369 | 0.044203 | 0.038767 | 0.034332 | 0 | 0.004822 | 0.328675 | 25,329 | 740 | 99 | 34.228378 | 0.817396 | 0.354179 | 0 | 0.171875 | 0 | 0 | 0.030952 | 0.002668 | 0 | 0 | 0 | 0.002703 | 0.002604 | 1 | 0.0625 | false | 0.010417 | 0.052083 | 0.010417 | 0.205729 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0f233170bb0ccf428c1b03e76710d47e94cea40 | 2,637 | py | Python | gen_embeddings.py | dominiccarrano/backdoor-nn-geometry | d1fa0754f1d57a9b303e2eb71edf0787a86529c8 | [
"MIT"
] | 1 | 2021-05-28T14:57:57.000Z | 2021-05-28T14:57:57.000Z | gen_embeddings.py | dominiccarrano/backdoor-nn-geometry | d1fa0754f1d57a9b303e2eb71edf0787a86529c8 | [
"MIT"
] | null | null | null | gen_embeddings.py | dominiccarrano/backdoor-nn-geometry | d1fa0754f1d57a9b303e2eb71edf0787a86529c8 | [
"MIT"
] | null | null | null | import pandas as pd
import os
import torch
import numpy as np
import argparse
from trojai_utils import *
def batch_embeddings(reviews, N, batch_size, tokenizer, embedding, cls_first, embedding_dim=768):
embeddings = torch.zeros((N, 1, embedding_dim))
for i in range(N // batch_size):
review_batch = revi... | 49.754717 | 120 | 0.759954 | 387 | 2,637 | 4.96124 | 0.271318 | 0.026042 | 0.061979 | 0.036458 | 0.323958 | 0.310938 | 0.252083 | 0.204167 | 0.204167 | 0.167708 | 0 | 0.005603 | 0.120212 | 2,637 | 53 | 121 | 49.754717 | 0.821983 | 0.035267 | 0 | 0 | 0 | 0 | 0.176517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.153846 | 0 | 0.205128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0f527a740c29092c88c485c40c531a07e3a243b | 1,584 | py | Python | example/image-classification/test_score.py | Abusnina/mxnet | 7f8d94a24bf64fe0f24712a7952a09725c2df9bd | [
"Apache-2.0"
] | 399 | 2017-05-30T05:12:48.000Z | 2022-01-29T05:53:08.000Z | smd_hpi/examples/binary-imagenet1k/test_score.py | yanghaojin/BMXNet | 102f8d0ed59529bbd162c37bf07ae58ad6c4caa1 | [
"Apache-2.0"
] | 58 | 2017-05-30T23:25:32.000Z | 2019-11-18T09:30:54.000Z | smd_hpi/examples/binary-imagenet1k/test_score.py | yanghaojin/BMXNet | 102f8d0ed59529bbd162c37bf07ae58ad6c4caa1 | [
"Apache-2.0"
] | 107 | 2017-05-30T05:53:22.000Z | 2021-06-24T02:43:31.000Z | """
test pretrained models
"""
from __future__ import print_function
import mxnet as mx
from common import find_mxnet, modelzoo
from common.util import download_file, get_gpus
from score import score
def download_data():
download_file('http://data.mxnet.io/data/val-5k-256.rec', 'data/val-5k-256.rec')
def test_ima... | 33.702128 | 84 | 0.599747 | 233 | 1,584 | 3.909871 | 0.351931 | 0.046103 | 0.039517 | 0.052689 | 0.379802 | 0.302964 | 0.245884 | 0.245884 | 0.182217 | 0.182217 | 0 | 0.061718 | 0.243056 | 1,584 | 46 | 85 | 34.434783 | 0.698082 | 0.013889 | 0 | 0.157895 | 0 | 0 | 0.207207 | 0.055985 | 0 | 0 | 0 | 0 | 0.078947 | 1 | 0.078947 | false | 0 | 0.131579 | 0 | 0.210526 | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0f98a3a2c3fd048d824ad74c18868bd24ec85c0 | 1,686 | py | Python | inference.py | KirtoXX/Object_track | 92b7d3308ab12d9211b04d18f825bf9a488c46a2 | [
"Apache-2.0"
] | null | null | null | inference.py | KirtoXX/Object_track | 92b7d3308ab12d9211b04d18f825bf9a488c46a2 | [
"Apache-2.0"
] | null | null | null | inference.py | KirtoXX/Object_track | 92b7d3308ab12d9211b04d18f825bf9a488c46a2 | [
"Apache-2.0"
] | null | null | null | from keras import layers
import tensorflow as tf
from Resnet import ResNet50
import keras
from keras.models import Input,Model
def inference(image_pre,image_now,location_tensor,shape):
#extra high leavl feature
input = Input(shape=shape)
vision_model = keras.applications.MobileNet(include_top=False,
... | 31.811321 | 72 | 0.645907 | 199 | 1,686 | 5.38191 | 0.361809 | 0.058824 | 0.044818 | 0.026144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043922 | 0.243772 | 1,686 | 52 | 73 | 32.423077 | 0.796078 | 0.072954 | 0 | 0 | 0 | 0 | 0.029525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.135135 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0f9bc7af6fe73617d028c362d0710385e92b83d | 1,807 | py | Python | src/visualizations/Visualize.py | chpatola/election_nlp | 6463edb2eacca09ff828029c69d11be7985ceeb0 | [
"MIT"
] | 1 | 2020-04-11T12:00:09.000Z | 2020-04-11T12:00:09.000Z | src/visualizations/Visualize.py | chpatola/election_nlp | 6463edb2eacca09ff828029c69d11be7985ceeb0 | [
"MIT"
] | null | null | null | src/visualizations/Visualize.py | chpatola/election_nlp | 6463edb2eacca09ff828029c69d11be7985ceeb0 | [
"MIT"
] | null | null | null | """Visualizations for NLP analysis"""
import pandas as pd
import numpy as np
from sklearn.metrics import classification_report
from sklearn.metrics import confusion_matrix
import matplotlib.pyplot as plt
import seaborn as sns
def _plot_classification_report(val_y,predictions):
report = classification_report(val_y... | 35.431373 | 78 | 0.598229 | 271 | 1,807 | 3.874539 | 0.391144 | 0.011429 | 0.025714 | 0.031429 | 0.126667 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0.017332 | 0.265634 | 1,807 | 51 | 79 | 35.431373 | 0.773926 | 0.017156 | 0 | 0 | 0 | 0 | 0.032185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.12766 | 0 | 0.191489 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0fc29ac4209ca758dbc0af3c328c5e20828a2e9 | 9,189 | py | Python | cvprac_abstraction/cvpChangeControl.py | titom73/arista-cvp-scripts | 64f7ffa28d2483b3dd357e9b6c671725a51661b4 | [
"BSD-3-Clause"
] | 2 | 2019-08-20T07:35:08.000Z | 2019-10-01T00:52:14.000Z | cvprac_abstraction/cvpChangeControl.py | inetsix/arista-cvp-scripts | 64f7ffa28d2483b3dd357e9b6c671725a51661b4 | [
"BSD-3-Clause"
] | 2 | 2019-05-07T14:36:38.000Z | 2019-07-26T05:56:51.000Z | cvprac_abstraction/cvpChangeControl.py | titom73/arista-cvp-scripts | 64f7ffa28d2483b3dd357e9b6c671725a51661b4 | [
"BSD-3-Clause"
] | 1 | 2021-05-08T20:15:36.000Z | 2021-05-08T20:15:36.000Z | import logging
from datetime import datetime
from datetime import timedelta
from cvprac.cvp_client_errors import CvpApiError
class CvpChangeControl(object):
"""Change-control class to provide generic method for CVP CC mechanism.
Change Control structure is based on:
- A name to identify change
... | 34.939163 | 114 | 0.575144 | 1,018 | 9,189 | 5.064833 | 0.260314 | 0.052948 | 0.023274 | 0.009891 | 0.077967 | 0.055857 | 0.055857 | 0.043832 | 0.043832 | 0.043832 | 0 | 0.014533 | 0.34106 | 9,189 | 262 | 115 | 35.072519 | 0.836994 | 0.518228 | 0 | 0.082192 | 0 | 0 | 0.173011 | 0.017045 | 0 | 0 | 0 | 0.007634 | 0 | 1 | 0.09589 | false | 0 | 0.054795 | 0 | 0.219178 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d0fd59da3a0fd9fe3acc37b2d63f3055243a7e1f | 1,289 | py | Python | app/controllers/stores/update.py | Brunoro811/api_dangels | 21c064eaa4f5009412dddc9676044d6cc08a5b65 | [
"MIT"
] | null | null | null | app/controllers/stores/update.py | Brunoro811/api_dangels | 21c064eaa4f5009412dddc9676044d6cc08a5b65 | [
"MIT"
] | null | null | null | app/controllers/stores/update.py | Brunoro811/api_dangels | 21c064eaa4f5009412dddc9676044d6cc08a5b65 | [
"MIT"
] | null | null | null | from flask import current_app, request
from http import HTTPStatus
from sqlalchemy.orm.exc import NoResultFound
from sqlalchemy.orm import Session
from app.models.stores.store_model import StoreModel
from app.decorators import verify_payload, validator
@validator(zip_code="zip_code")
@verify_payload(
fields_and... | 25.78 | 68 | 0.59969 | 143 | 1,289 | 5.265734 | 0.48951 | 0.037185 | 0.045153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.299457 | 1,289 | 49 | 69 | 26.306122 | 0.833887 | 0 | 0 | 0 | 0 | 0 | 0.103181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.139535 | 0 | 0.209302 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
1905b552f6b906092520144e21a33c6cfbd7fe0b | 883 | py | Python | src/save_docs.py | j-c-m-code/gutenbergsearch | b08f69d1d35fcca57e8ad0fcceaab614b9104abc | [
"MIT"
] | null | null | null | src/save_docs.py | j-c-m-code/gutenbergsearch | b08f69d1d35fcca57e8ad0fcceaab614b9104abc | [
"MIT"
] | null | null | null | src/save_docs.py | j-c-m-code/gutenbergsearch | b08f69d1d35fcca57e8ad0fcceaab614b9104abc | [
"MIT"
] | null | null | null | """
Processes a folder of .txt files to Spacy docs then saves the docs
"""
# first import standard modules
import glob
import os
from pathlib import Path
# then import third-party modules
import spacy
# finally import my own code (PEP-8 convention)
from askdir import whichdir
nlp = spacy.load("en_core_web_lg")
sour... | 23.864865 | 73 | 0.711212 | 134 | 883 | 4.604478 | 0.634328 | 0.042139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007032 | 0.19479 | 883 | 36 | 74 | 24.527778 | 0.860759 | 0.392978 | 0 | 0 | 0 | 0 | 0.099617 | 0.059387 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.294118 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1908a3c6547cb1830569167b36fc11ceff479110 | 652 | py | Python | bosm2015/pcradmin_old/urls.py | dvm-bitspilani/BITS-BOSM-2015 | df3e69ee6ee9b179a2d6cd6cad61423c177dbe0a | [
"MIT"
] | 1 | 2015-09-15T17:19:30.000Z | 2015-09-15T17:19:30.000Z | bosm2015/pcradmin_old/urls.py | DVM-BITS-Pilani/BITS-BOSM-2015 | df3e69ee6ee9b179a2d6cd6cad61423c177dbe0a | [
"MIT"
] | null | null | null | bosm2015/pcradmin_old/urls.py | DVM-BITS-Pilani/BITS-BOSM-2015 | df3e69ee6ee9b179a2d6cd6cad61423c177dbe0a | [
"MIT"
] | 1 | 2016-03-28T19:44:41.000Z | 2016-03-28T19:44:41.000Z | from pcradmin import views
from django.conf.urls import url, include
urlpatterns = [
url(r'^(?P<pagename>\w+)/', views.index),
#url(r'^sendmail$', views.sendmail),
#url(r'^sentmail$', views.sentmail),
url(r'^changelimit$', views.change_team_limits),
url(r'^change_team_limit$', views.change_team_limit_list),
... | 38.352941 | 62 | 0.71319 | 92 | 652 | 4.858696 | 0.380435 | 0.107383 | 0.089485 | 0.071588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104294 | 652 | 16 | 63 | 40.75 | 0.765411 | 0.107362 | 0 | 0 | 0 | 0 | 0.253448 | 0.039655 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
190c0898a136d9b08e445150bbf358f595547ad3 | 8,349 | py | Python | tcsv.py | eadanfahey/transform-csv | 40d3aaf34b286fe9d6262fe69c7245e3a44a5b41 | [
"MIT"
] | null | null | null | tcsv.py | eadanfahey/transform-csv | 40d3aaf34b286fe9d6262fe69c7245e3a44a5b41 | [
"MIT"
] | null | null | null | tcsv.py | eadanfahey/transform-csv | 40d3aaf34b286fe9d6262fe69c7245e3a44a5b41 | [
"MIT"
] | null | null | null | import csv
class ConstraintError(Exception):
def __init__(self, column, value, fn_name, rownumber):
self.column = column
self.value = value
self.fn_name = fn_name
self.rown = rownumber
def __str__(self):
message = "{} value {} does not satisfy the constraint {} on row ... | 31.387218 | 83 | 0.542819 | 1,031 | 8,349 | 4.313288 | 0.176528 | 0.028334 | 0.014392 | 0.020463 | 0.315494 | 0.274792 | 0.251855 | 0.22667 | 0.213627 | 0.213627 | 0 | 0.001727 | 0.375734 | 8,349 | 265 | 84 | 31.50566 | 0.851497 | 0.277279 | 0 | 0.378378 | 0 | 0 | 0.063735 | 0 | 0 | 0 | 0 | 0.007547 | 0 | 1 | 0.141892 | false | 0 | 0.006757 | 0.02027 | 0.222973 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
190dc436e49d1655496d4e4796285c2ff4464f81 | 13,074 | py | Python | selim/datasets/lidc.py | tilacyn/dsb2018_topcoders | e0f95ef70bc062d4dea321d2aa73231a9538cd63 | [
"MIT"
] | null | null | null | selim/datasets/lidc.py | tilacyn/dsb2018_topcoders | e0f95ef70bc062d4dea321d2aa73231a9538cd63 | [
"MIT"
] | null | null | null | selim/datasets/lidc.py | tilacyn/dsb2018_topcoders | e0f95ef70bc062d4dea321d2aa73231a9538cd63 | [
"MIT"
] | null | null | null | import numpy as np
from tensorflow.keras.preprocessing.image import Iterator
import time
import os
import xml.etree.ElementTree as ET
import cv2
import pydicom as dicom
from os.path import join as opjoin
import json
from tqdm import tqdm
def make_mask(image, image_id, nodules):
height, width = image.shape
# ... | 38.795252 | 106 | 0.567998 | 1,689 | 13,074 | 4.164002 | 0.138544 | 0.033272 | 0.019906 | 0.025594 | 0.41419 | 0.370112 | 0.307977 | 0.253804 | 0.175743 | 0.154415 | 0 | 0.019066 | 0.322013 | 13,074 | 336 | 107 | 38.910714 | 0.774368 | 0.046581 | 0 | 0.299639 | 0 | 0 | 0.033988 | 0.009182 | 0 | 0 | 0 | 0.002976 | 0 | 1 | 0.086643 | false | 0 | 0.036101 | 0 | 0.202166 | 0.032491 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
190de2ec2acd9e5640757238ffbce83a69af9dc2 | 2,058 | py | Python | hexagon/__main__.py | redbeestudios/hexagon | dc906ae31a14eb750a3f9bde8dd0633d8e1af486 | [
"Apache-2.0"
] | 8 | 2021-06-27T21:46:04.000Z | 2022-02-26T18:03:10.000Z | hexagon/__main__.py | redbeestudios/hexagon | dc906ae31a14eb750a3f9bde8dd0633d8e1af486 | [
"Apache-2.0"
] | 31 | 2021-06-24T14:35:38.000Z | 2022-02-17T03:01:23.000Z | hexagon/__main__.py | redbeestudios/hexagon | dc906ae31a14eb750a3f9bde8dd0633d8e1af486 | [
"Apache-2.0"
] | 1 | 2021-08-16T16:15:16.000Z | 2021-08-16T16:15:16.000Z | from hexagon.support.hooks import HexagonHooks
from hexagon.support.execute.tool import select_and_execute_tool
from hexagon.support.update.cli import check_for_cli_updates
import sys
from hexagon.support.args import fill_args
from hexagon.domain import cli, tools, envs
from hexagon.support.help import print_help
from... | 27.078947 | 76 | 0.614189 | 250 | 2,058 | 4.84 | 0.336 | 0.1 | 0.133884 | 0.033058 | 0.036364 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0.002703 | 0.280855 | 2,058 | 75 | 77 | 27.44 | 0.814865 | 0 | 0 | 0.067797 | 0 | 0 | 0.156463 | 0.025267 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.20339 | 0 | 0.237288 | 0.050847 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef6ed1166f6e406d8fb8cc64a8cdbbcd50db4769 | 7,103 | py | Python | store/main.py | Soemonewho2/pi-ware | 86d2cd84ca85e36cbcdbc7511f6a4565b18e81d9 | [
"MIT"
] | null | null | null | store/main.py | Soemonewho2/pi-ware | 86d2cd84ca85e36cbcdbc7511f6a4565b18e81d9 | [
"MIT"
] | null | null | null | store/main.py | Soemonewho2/pi-ware | 86d2cd84ca85e36cbcdbc7511f6a4565b18e81d9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Pi-Ware main UI
from tkinter import *
from tkinter.ttk import *
import tkinter as tk
import os
import webbrowser
from functools import partial
import getpass
#Set global var username
global username
username = getpass.getuser()
#Set global install/uninstall scripts
global install_script
globa... | 33.504717 | 147 | 0.68464 | 983 | 7,103 | 4.851475 | 0.255341 | 0.033969 | 0.049906 | 0.064164 | 0.283288 | 0.242818 | 0.212414 | 0.158943 | 0.099811 | 0.099811 | 0 | 0.013331 | 0.155146 | 7,103 | 211 | 148 | 33.663507 | 0.78137 | 0.085316 | 0 | 0.169935 | 0 | 0.019608 | 0.270325 | 0.127512 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0.013072 | 0.052288 | 0 | 0.091503 | 0.03268 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef703db82c659a484347e75656e30bf7c5cabb9f | 854 | py | Python | data/transcoder_evaluation_gfg/python/TILING_WITH_DOMINOES.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 241 | 2021-07-20T08:35:20.000Z | 2022-03-31T02:39:08.000Z | data/transcoder_evaluation_gfg/python/TILING_WITH_DOMINOES.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 49 | 2021-07-22T23:18:42.000Z | 2022-03-24T09:15:26.000Z | data/transcoder_evaluation_gfg/python/TILING_WITH_DOMINOES.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 71 | 2021-07-21T05:17:52.000Z | 2022-03-29T23:49:28.000Z | # Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( n ) :
A = [ 0 ] * ( n + 1 )
B = [ 0 ] * ( n + 1 )
A [ 0 ] = 1
A [ 1 ] = 0
B [ 0 ] = 0
B [ 1... | 21.897436 | 64 | 0.456674 | 126 | 854 | 2.960317 | 0.468254 | 0.016086 | 0.016086 | 0.021448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.367682 | 854 | 39 | 65 | 21.897436 | 0.607407 | 0.216628 | 0 | 0 | 0 | 0 | 0.036254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0 | 0 | 0.068966 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef70dbcac1c09bceb1d774bc2a9dbf1cb0f819da | 3,342 | py | Python | make3d.py | BritishMuseumDH/scaffold3D | 314ee4ca5f52304c89fac71b8f293774341d6278 | [
"CC0-1.0"
] | 4 | 2017-03-30T09:41:21.000Z | 2021-10-01T09:18:02.000Z | make3d.py | BritishMuseumDH/scaffold3D | 314ee4ca5f52304c89fac71b8f293774341d6278 | [
"CC0-1.0"
] | null | null | null | make3d.py | BritishMuseumDH/scaffold3D | 314ee4ca5f52304c89fac71b8f293774341d6278 | [
"CC0-1.0"
] | 3 | 2018-01-30T09:18:34.000Z | 2019-06-16T17:55:24.000Z | import os
import shutil
from textwrap import dedent
import argparse
import subprocess
parser = argparse.ArgumentParser(description='This is a script to create 3D model folder structure')
parser.add_argument('-p', '--project', help='3D project name', required=True)
parser.add_argument('-wd', '--wd', help='Working direc... | 35.178947 | 153 | 0.680132 | 461 | 3,342 | 4.767896 | 0.334056 | 0.044586 | 0.031847 | 0.019108 | 0.338944 | 0.291629 | 0.232029 | 0.10737 | 0.10737 | 0.10737 | 0 | 0.019381 | 0.197187 | 3,342 | 94 | 154 | 35.553191 | 0.799851 | 0.036206 | 0 | 0.138889 | 0 | 0.027778 | 0.319242 | 0.019273 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.069444 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ef7b9c110a5e75cb118c0870480aa130248a1ef2 | 1,432 | py | Python | piWriters/graphiteSender.py | shackledtodesk/piWeather | e0b4b4ded7ebd01fe7844807de6949a83aa3913f | [
"Apache-2.0"
] | null | null | null | piWriters/graphiteSender.py | shackledtodesk/piWeather | e0b4b4ded7ebd01fe7844807de6949a83aa3913f | [
"Apache-2.0"
] | null | null | null | piWriters/graphiteSender.py | shackledtodesk/piWeather | e0b4b4ded7ebd01fe7844807de6949a83aa3913f | [
"Apache-2.0"
] | null | null | null | ## Send data to a Graphite/Carbon Server
import traceback
import sys, time, socket, datetime
from datetime import datetime
class piSender:
carbon_server = '127.0.0.1'
carbon_port = 2003
station = "pi2wu"
def __init__(self, config):
if config.has_option('graphite','server'):
se... | 31.130435 | 96 | 0.561453 | 168 | 1,432 | 4.684524 | 0.446429 | 0.076239 | 0.041931 | 0.064803 | 0.063532 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012097 | 0.307263 | 1,432 | 45 | 97 | 31.822222 | 0.78125 | 0.025838 | 0 | 0.055556 | 0 | 0 | 0.119971 | 0.015086 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.361111 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef7c2ae59e8e02d4a104708b8f76dca033259df6 | 479 | py | Python | src/main/python/bots/b_jira.py | jceaser/gcmd_bot | 2b2ae0631d69d9f95a3a23b04e12a4467a116ffa | [
"MIT"
] | null | null | null | src/main/python/bots/b_jira.py | jceaser/gcmd_bot | 2b2ae0631d69d9f95a3a23b04e12a4467a116ffa | [
"MIT"
] | null | null | null | src/main/python/bots/b_jira.py | jceaser/gcmd_bot | 2b2ae0631d69d9f95a3a23b04e12a4467a116ffa | [
"MIT"
] | null | null | null |
from b_bot import BBot
from rand_str import *
class BJira(BBot):
def __init__(self):
BBot.__init__(self)
self.responses = RandomString(
[
"Looks like you were talking about ticket"
, "You might find that ticket at"
, "Try"
])
def action(... | 28.176471 | 74 | 0.553236 | 59 | 479 | 4.322034 | 0.711864 | 0.062745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003096 | 0.325679 | 479 | 17 | 75 | 28.176471 | 0.786378 | 0 | 0 | 0 | 0 | 0 | 0.246347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ef7c66788463fc4b72dcc5b29d43203643002b12 | 2,295 | py | Python | preprocessors/neg_sample_from_run.py | felipemoraes/pyNeuIR | 5256857387c8fe57d28167e42077ad1dcade1983 | [
"MIT"
] | 4 | 2019-11-09T19:46:44.000Z | 2022-01-03T07:58:20.000Z | preprocessors/neg_sample_from_run.py | felipemoraes/pyNeuIR | 5256857387c8fe57d28167e42077ad1dcade1983 | [
"MIT"
] | null | null | null | preprocessors/neg_sample_from_run.py | felipemoraes/pyNeuIR | 5256857387c8fe57d28167e42077ad1dcade1983 | [
"MIT"
] | 3 | 2019-06-18T12:31:49.000Z | 2020-11-22T08:35:07.000Z | """Samples negative pairs from run."""
import argparse
from utils import load_qrels, load_run
import numpy as np
def main():
parser = argparse.ArgumentParser()
parser.add_argument('-run')
parser.add_argument('-qrel')
parser.add_argument('-p', type=int)
parser.add_argument('-n', type=int)
... | 28.333333 | 114 | 0.525054 | 290 | 2,295 | 3.986207 | 0.337931 | 0.054498 | 0.07872 | 0.069204 | 0.136678 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008802 | 0.356427 | 2,295 | 80 | 115 | 28.6875 | 0.773866 | 0.065795 | 0 | 0.086207 | 0 | 0 | 0.020131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0 | 0.051724 | 0 | 0.068966 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef7cc313a84b2a9b9ea62469241644f5f1b9560b | 1,123 | py | Python | Search_Algorithms/testing/python_scripts/GridNet.py | JAOP1/GO | 48c0275fd37bb552c0db4b968391a5a95ed6c860 | [
"MIT"
] | null | null | null | Search_Algorithms/testing/python_scripts/GridNet.py | JAOP1/GO | 48c0275fd37bb552c0db4b968391a5a95ed6c860 | [
"MIT"
] | null | null | null | Search_Algorithms/testing/python_scripts/GridNet.py | JAOP1/GO | 48c0275fd37bb552c0db4b968391a5a95ed6c860 | [
"MIT"
] | 2 | 2019-12-12T18:55:35.000Z | 2019-12-12T19:03:35.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
#Unicamente como esta ahorita funciona para un grafo de 5x5.
class NNGrid(nn.Module):
def __init__(self):
super().__init__()
self.conv1 = nn.Conv2d(in_channels = 3, out_channels= 5, kernel_size= 3, padding= 1)
self.conv2 =... | 31.194444 | 92 | 0.577026 | 173 | 1,123 | 3.647399 | 0.317919 | 0.066561 | 0.122029 | 0.114105 | 0.383518 | 0.310618 | 0.310618 | 0.310618 | 0.206022 | 0.129952 | 0 | 0.060197 | 0.275156 | 1,123 | 35 | 93 | 32.085714 | 0.714988 | 0.139804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef7d0ee9d64040c9087075b823e521c746835c31 | 3,436 | py | Python | instances/game_instances.py | Napam/MayhemPacman | cbcb3b4a2c83ed920e32748a8aaadb29b19ab5bf | [
"MIT"
] | 1 | 2021-04-07T12:54:13.000Z | 2021-04-07T12:54:13.000Z | instances/game_instances.py | Napam/MayhemPacman | cbcb3b4a2c83ed920e32748a8aaadb29b19ab5bf | [
"MIT"
] | null | null | null | instances/game_instances.py | Napam/MayhemPacman | cbcb3b4a2c83ed920e32748a8aaadb29b19ab5bf | [
"MIT"
] | null | null | null | '''
Module containing the in-game mayhem instances
such as the ship, planets, asteroid objects etc etc...
Written by Naphat Amundsen
'''
import numpy as np
import pygame as pg
import configparser
import sys
import os
sys.path.insert(0,'..')
from classes import spaceship
from classes import planet
fro... | 20.093567 | 55 | 0.556752 | 457 | 3,436 | 4.019694 | 0.260394 | 0.049537 | 0.11976 | 0.137725 | 0.416984 | 0.416984 | 0.400653 | 0.296135 | 0.173108 | 0.152967 | 0 | 0.112374 | 0.308498 | 3,436 | 170 | 56 | 20.211765 | 0.660774 | 0.062282 | 0 | 0.407143 | 0 | 0 | 0.014965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078571 | 0 | 0.078571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef7dd46d9034574570b5f449e1ddf8eb84731597 | 286 | py | Python | test.py | RoyLQ/Advanced-_TCGAIntegrator | 4767ab74b14e9d7e65e2c1ffe656619ef414148b | [
"MIT"
] | 2 | 2021-09-14T05:53:16.000Z | 2021-12-01T23:59:18.000Z | test.py | RoyLQ/Advanced-_TCGAIntegrator | 4767ab74b14e9d7e65e2c1ffe656619ef414148b | [
"MIT"
] | null | null | null | test.py | RoyLQ/Advanced-_TCGAIntegrator | 4767ab74b14e9d7e65e2c1ffe656619ef414148b | [
"MIT"
] | null | null | null | import sys
import os
simp_path = 'TCGAIntegrator'
abs_path = os.path.abspath(simp_path)
sys.path.append(abs_path)
from TCGAIntegrator import TCGAData as TCGAData
def main():
df = TCGAData.loadData("LGG",mode="Hybird")
print(df.shape)
if __name__ == '__main__':
main()
| 15.888889 | 47 | 0.716783 | 40 | 286 | 4.825 | 0.575 | 0.082902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160839 | 286 | 17 | 48 | 16.823529 | 0.804167 | 0 | 0 | 0 | 0 | 0 | 0.108392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ef7f8e86f21851da0cc13ef9dc3a597eb38daaa9 | 1,649 | py | Python | synergy/conf/global_context.py | mushkevych/scheduler | 8228cde0f027c0025852cb63a6698cdd320838f1 | [
"BSD-3-Clause"
] | 15 | 2015-02-01T09:20:23.000Z | 2021-04-27T08:46:45.000Z | synergy/conf/global_context.py | mushkevych/scheduler | 8228cde0f027c0025852cb63a6698cdd320838f1 | [
"BSD-3-Clause"
] | 26 | 2015-01-12T22:28:40.000Z | 2021-07-05T01:22:17.000Z | synergy/conf/global_context.py | mushkevych/scheduler | 8228cde0f027c0025852cb63a6698cdd320838f1 | [
"BSD-3-Clause"
] | 2 | 2016-07-21T03:02:46.000Z | 2019-10-03T23:59:23.000Z | from synergy.db.model.queue_context_entry import queue_context_entry
from synergy.scheduler.scheduler_constants import PROCESS_GC, TOKEN_GC, PROCESS_MX, TOKEN_WERKZEUG, EXCHANGE_UTILS, \
PROCESS_SCHEDULER, TOKEN_SCHEDULER, QUEUE_UOW_STATUS, QUEUE_JOB_STATUS, PROCESS_LAUNCH_PY, TOKEN_LAUNCH_PY, \
ROUTING_IRRELEV... | 35.085106 | 117 | 0.753184 | 190 | 1,649 | 6.089474 | 0.163158 | 0.103717 | 0.093345 | 0.129646 | 0.294728 | 0.294728 | 0.100259 | 0.100259 | 0.100259 | 0.100259 | 0 | 0 | 0.170406 | 1,649 | 46 | 118 | 35.847826 | 0.84576 | 0 | 0 | 0.051282 | 0 | 0 | 0.063675 | 0.063675 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.102564 | 0 | 0.102564 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef8179e868198d6a8e03937bb76a29cb988fcda9 | 6,164 | py | Python | 67-2.py | paqul/ALX | 0f397b53f8208df62ed3bc1f63f27a087799eb32 | [
"MIT"
] | null | null | null | 67-2.py | paqul/ALX | 0f397b53f8208df62ed3bc1f63f27a087799eb32 | [
"MIT"
] | null | null | null | 67-2.py | paqul/ALX | 0f397b53f8208df62ed3bc1f63f27a087799eb32 | [
"MIT"
] | null | null | null | from datetime import date as d
#---------------------------HOTEL---------------------------#
def exit_function():
print("Do zobaczenia!")
exit()
def forumarz_rezerwacji(var1, var2, var3, var4, var5, var6, var7, var8, ile_dni, ile_osob, sniadanie, imie):
print("\n"*3)
print("==================... | 39.512821 | 157 | 0.514114 | 691 | 6,164 | 4.529667 | 0.353111 | 0.010224 | 0.011502 | 0.01278 | 0.130351 | 0.111821 | 0.076038 | 0.076038 | 0.065815 | 0.065815 | 0 | 0.021314 | 0.345393 | 6,164 | 155 | 158 | 39.767742 | 0.754399 | 0.013628 | 0 | 0.293233 | 0 | 0.015038 | 0.35461 | 0.026005 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075188 | false | 0 | 0.007519 | 0 | 0.142857 | 0.255639 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef841a52c1f626cc7c84690f06d3bbb17715d9c8 | 3,733 | py | Python | GreedyGRASP/Solver_Greedy.py | HamidL/AMMM_Project | 7679d1c336578464317b8326311c1ab4b69cbf11 | [
"MIT"
] | null | null | null | GreedyGRASP/Solver_Greedy.py | HamidL/AMMM_Project | 7679d1c336578464317b8326311c1ab4b69cbf11 | [
"MIT"
] | null | null | null | GreedyGRASP/Solver_Greedy.py | HamidL/AMMM_Project | 7679d1c336578464317b8326311c1ab4b69cbf11 | [
"MIT"
] | null | null | null |
from GreedyGRASP.Solver import Solver
from GreedyGRASP.Solution import Solution
from GreedyGRASP.LocalSearch import LocalSearch
# Inherits from a parent abstract solver.
class Solver_Greedy(Solver):
def greedyFunctionCost(self, solution, remainCap, busesAssignments):
for busAssi in busesAssignments:
... | 41.477778 | 130 | 0.625234 | 310 | 3,733 | 7.516129 | 0.341935 | 0.030043 | 0.025751 | 0.018884 | 0.04721 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006808 | 0.291722 | 3,733 | 89 | 131 | 41.94382 | 0.874433 | 0.051165 | 0 | 0.092308 | 0 | 0 | 0.033937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0.030769 | 0.046154 | 0 | 0.123077 | 0.092308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef854c6d7447ee5fbf75a72fb0ffd6549ac302f6 | 5,654 | py | Python | statslib/_lib/gmodel.py | ashubertt/statslib | 5a35c0d10c3ca44c2d48f329c4f3790c91c385ac | [
"Apache-2.0"
] | null | null | null | statslib/_lib/gmodel.py | ashubertt/statslib | 5a35c0d10c3ca44c2d48f329c4f3790c91c385ac | [
"Apache-2.0"
] | 1 | 2021-04-06T10:55:34.000Z | 2021-04-06T10:55:34.000Z | statslib/_lib/gmodel.py | ashubertt/statslib | 5a35c0d10c3ca44c2d48f329c4f3790c91c385ac | [
"Apache-2.0"
] | null | null | null | import inspect
import math as _math
from copy import deepcopy
import matplotlib.pyplot as _plt
import numpy as np
import pandas as pd
import statsmodels.api as _sm
from statslib._lib.gcalib import CalibType
class GeneralModel:
def __init__(self, gc, DM):
self.gc = deepcopy(gc)
self.DM = deepcopy... | 40.385714 | 107 | 0.561726 | 802 | 5,654 | 3.836658 | 0.214464 | 0.0195 | 0.036399 | 0.029574 | 0.213845 | 0.165421 | 0.128697 | 0.128697 | 0.099448 | 0.033149 | 0 | 0.02328 | 0.308631 | 5,654 | 139 | 108 | 40.676259 | 0.763878 | 0.010612 | 0 | 0.052632 | 0 | 0 | 0.050116 | 0.003938 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061404 | false | 0.008772 | 0.096491 | 0.017544 | 0.192982 | 0.008772 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ef86d428f2e17ef9b526fc491dcb0a17513a95ba | 1,581 | py | Python | app.py | Chen-Junbao/MalwareClassification | a2ef045c1e5f1f57ff183bfc6577275b14bf84d2 | [
"MIT"
] | 4 | 2020-06-17T03:14:47.000Z | 2022-03-29T12:15:33.000Z | app.py | Chen-Junbao/MalwareClassification | a2ef045c1e5f1f57ff183bfc6577275b14bf84d2 | [
"MIT"
] | 1 | 2020-12-20T03:14:33.000Z | 2021-02-01T17:13:44.000Z | app.py | Chen-Junbao/MalwareClassification | a2ef045c1e5f1f57ff183bfc6577275b14bf84d2 | [
"MIT"
] | 1 | 2021-03-07T15:43:20.000Z | 2021-03-07T15:43:20.000Z | import os
from flask import Flask, render_template, request, jsonify
from display.predict import predict_file
app = Flask(__name__, static_folder="./display/static", template_folder="./display/templates")
@app.route('/')
def en():
return render_template('index_EN.html')
@app.route('/chs')
def chs():
return... | 29.277778 | 94 | 0.571157 | 162 | 1,581 | 5.401235 | 0.339506 | 0.109714 | 0.073143 | 0.109714 | 0.274286 | 0.274286 | 0.157714 | 0 | 0 | 0 | 0 | 0.000883 | 0.283365 | 1,581 | 53 | 95 | 29.830189 | 0.771403 | 0.036053 | 0 | 0.2 | 0 | 0 | 0.188692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.075 | 0.05 | 0.225 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef873aee93350e545e2097a1a737710da0346193 | 886 | py | Python | test_linprog_curvefit.py | drofp/linprog_curvefit | 96ba704edae7cea42d768d7cc6d4036da2ba313a | [
"Apache-2.0"
] | null | null | null | test_linprog_curvefit.py | drofp/linprog_curvefit | 96ba704edae7cea42d768d7cc6d4036da2ba313a | [
"Apache-2.0"
] | 3 | 2019-11-22T08:04:18.000Z | 2019-11-26T06:55:36.000Z | test_linprog_curvefit.py | drofp/linprog_curvefit | 96ba704edae7cea42d768d7cc6d4036da2ba313a | [
"Apache-2.0"
] | null | null | null | import unittest
from ortools.linear_solver import pywraplp
class TestLinprogCurvefit(unittest.TestCase):
def setUp(self):
linprog_curvefit = __import__('linprog_curvefit')
self.generate_variables = linprog_curvefit._generate_variables
self.ErrorDefinition = linprog_curvefit.ErrorDefinition... | 40.272727 | 80 | 0.700903 | 98 | 886 | 5.989796 | 0.459184 | 0.102215 | 0.07155 | 0.057922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028694 | 0.213318 | 886 | 21 | 81 | 42.190476 | 0.813486 | 0 | 0 | 0 | 0 | 0 | 0.037246 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.111111 | false | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
ef87a851b0ff397ab056489c49ee4d54f1a8b8b0 | 14,278 | py | Python | uno_ct_v3.py | simple-circuit/Component-Curve-Tracer | 3842f1b0054230325f55296cbc88628b3f88fa88 | [
"MIT"
] | 1 | 2021-08-04T03:08:07.000Z | 2021-08-04T03:08:07.000Z | uno_ct_v3.py | simple-circuit/Component-Curve-Tracer | 3842f1b0054230325f55296cbc88628b3f88fa88 | [
"MIT"
] | null | null | null | uno_ct_v3.py | simple-circuit/Component-Curve-Tracer | 3842f1b0054230325f55296cbc88628b3f88fa88 | [
"MIT"
] | 1 | 2021-08-29T14:05:42.000Z | 2021-08-29T14:05:42.000Z | # Uno PWM bipolar curve tracer app by simple-circuit 12-22-19
# rev 3 1-13-20
from tkinter import *
from tkinter import ttk
from tkinter import filedialog
from tkinter import font
import numpy as np
import serial
root = Tk()
default_font = font.nametofont("TkDefaultFont")
default_font.configure(size=9)
canvas = Canva... | 29.745833 | 172 | 0.583975 | 2,281 | 14,278 | 3.63744 | 0.162648 | 0.030372 | 0.022779 | 0.02531 | 0.280463 | 0.227914 | 0.203447 | 0.164758 | 0.091358 | 0.067012 | 0 | 0.097384 | 0.218238 | 14,278 | 479 | 173 | 29.807933 | 0.645942 | 0.01849 | 0 | 0.193384 | 0 | 0 | 0.05571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053435 | false | 0 | 0.015267 | 0 | 0.068702 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef911bdd33ff81cae4898bfd37e8a89b765f201c | 2,565 | py | Python | src/medical_test_service/medical_test.py | phamnam-mta/know-life | f7c226c41e315f21b5d7fe2ccbc9ec4f9961ed1d | [
"MIT"
] | null | null | null | src/medical_test_service/medical_test.py | phamnam-mta/know-life | f7c226c41e315f21b5d7fe2ccbc9ec4f9961ed1d | [
"MIT"
] | null | null | null | src/medical_test_service/medical_test.py | phamnam-mta/know-life | f7c226c41e315f21b5d7fe2ccbc9ec4f9961ed1d | [
"MIT"
] | null | null | null | import logging
from typing import Text, List
from src.utils.io import read_json
from src.utils.fuzzy import is_relevant_string
from src.utils.common import is_float
from src.utils.constants import (
MEDICAL_TEST_PATH,
QUANTITATIVE_PATH,
POSITIVE_TEXT,
TestResult
)
logger = logging.getLogger(__name__)... | 43.474576 | 163 | 0.474854 | 246 | 2,565 | 4.768293 | 0.304878 | 0.075021 | 0.040921 | 0.058824 | 0.240409 | 0.187553 | 0.187553 | 0.153453 | 0.153453 | 0.153453 | 0 | 0.003992 | 0.414035 | 2,565 | 59 | 164 | 43.474576 | 0.776447 | 0 | 0 | 0.272727 | 0 | 0 | 0.10834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0 | 0.109091 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ef933f2244982928a2ce88206760be93146f1a77 | 1,064 | py | Python | scam.py | TheToddLuci0/Tarkov-Scammer | 5fced3952c6cec72fe3eb85384bc11f65ee6af9c | [
"BSD-3-Clause"
] | 2 | 2021-02-09T19:13:14.000Z | 2021-02-23T08:41:14.000Z | scam.py | TheToddLuci0/Tarkov-Scammer | 5fced3952c6cec72fe3eb85384bc11f65ee6af9c | [
"BSD-3-Clause"
] | null | null | null | scam.py | TheToddLuci0/Tarkov-Scammer | 5fced3952c6cec72fe3eb85384bc11f65ee6af9c | [
"BSD-3-Clause"
] | null | null | null | import requests
import sys
from time import sleep
from tabulate import tabulate
def get_scams(api_key):
scams = []
headers = {"x-api-key": api_key}
r = requests.get('https://tarkov-market.com/api/v1/items/all', headers=headers)
for i in r.json():
r2 = requests.get('https://tarkov-market.com/ap... | 34.322581 | 107 | 0.599624 | 144 | 1,064 | 4.340278 | 0.451389 | 0.0288 | 0.0768 | 0.1056 | 0.352 | 0.2592 | 0.2592 | 0.2592 | 0.2016 | 0.2016 | 0 | 0.018072 | 0.219925 | 1,064 | 30 | 108 | 35.466667 | 0.73494 | 0 | 0 | 0.076923 | 0 | 0 | 0.246241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.153846 | 0 | 0.192308 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ef978c724ad463ecd7562dae7e149d5ae0ce4282 | 677 | py | Python | mapclientplugins/scaffoldfiniteelementmeshfitterstep/model/imageplanemodel.py | mahyar-osn/mapclientplugins.scaffoldfiniteelementmeshfitterstep | b35f6c0b2e264e2913d0a1c432bf89c7b329bf52 | [
"Apache-2.0"
] | null | null | null | mapclientplugins/scaffoldfiniteelementmeshfitterstep/model/imageplanemodel.py | mahyar-osn/mapclientplugins.scaffoldfiniteelementmeshfitterstep | b35f6c0b2e264e2913d0a1c432bf89c7b329bf52 | [
"Apache-2.0"
] | null | null | null | mapclientplugins/scaffoldfiniteelementmeshfitterstep/model/imageplanemodel.py | mahyar-osn/mapclientplugins.scaffoldfiniteelementmeshfitterstep | b35f6c0b2e264e2913d0a1c432bf89c7b329bf52 | [
"Apache-2.0"
] | null | null | null | from opencmiss.utils.maths.algorithms import calculate_line_plane_intersection
class ImagePlaneModel(object):
def __init__(self, master_model):
self._master_model = master_model
self._region = None
self._frames_per_second = -1
self._images_file_name_listing = []
self._imag... | 33.85 | 78 | 0.713442 | 80 | 677 | 5.4875 | 0.5 | 0.072893 | 0.136674 | 0.129841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00566 | 0.217134 | 677 | 19 | 79 | 35.631579 | 0.822642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef9836ec7a3a89d88130ef5b51f413cd84a57435 | 2,152 | py | Python | test/test/host_test_default.py | noralsydmp/mbed-os-tools | 5a14958aa49eb5764afba8e1dc3208cae2955cd7 | [
"Apache-2.0"
] | 29 | 2018-11-30T19:45:22.000Z | 2022-03-29T17:02:16.000Z | test/test/host_test_default.py | noralsydmp/mbed-os-tools | 5a14958aa49eb5764afba8e1dc3208cae2955cd7 | [
"Apache-2.0"
] | 160 | 2018-11-30T21:55:52.000Z | 2022-01-18T10:58:09.000Z | test/test/host_test_default.py | noralsydmp/mbed-os-tools | 5a14958aa49eb5764afba8e1dc3208cae2955cd7 | [
"Apache-2.0"
] | 73 | 2018-11-30T21:34:41.000Z | 2021-10-02T05:51:40.000Z | # Copyright (c) 2018, Arm Limited and affiliates.
# SPDX-License-Identifier: Apache-2.0
#
# 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
#
# ... | 39.127273 | 86 | 0.676115 | 279 | 2,152 | 5.064516 | 0.405018 | 0.116773 | 0.060156 | 0.050955 | 0.462845 | 0.462845 | 0.462845 | 0.462845 | 0.462845 | 0.425336 | 0 | 0.019492 | 0.21329 | 2,152 | 54 | 87 | 39.851852 | 0.815121 | 0.383829 | 0 | 0.518519 | 0 | 0 | 0.157613 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef9847d747aab77361f5e75e1a5b9c126c9e90f9 | 3,359 | py | Python | lib/surface/debug/logpoints/delete.py | bopopescu/SDK | e6d9aaee2456f706d1d86e8ec2a41d146e33550d | [
"Apache-2.0"
] | null | null | null | lib/surface/debug/logpoints/delete.py | bopopescu/SDK | e6d9aaee2456f706d1d86e8ec2a41d146e33550d | [
"Apache-2.0"
] | null | null | null | lib/surface/debug/logpoints/delete.py | bopopescu/SDK | e6d9aaee2456f706d1d86e8ec2a41d146e33550d | [
"Apache-2.0"
] | 1 | 2020-07-25T12:23:41.000Z | 2020-07-25T12:23:41.000Z | # Copyright 2016 Google Inc. 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.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 36.51087 | 80 | 0.693659 | 432 | 3,359 | 5.328704 | 0.421296 | 0.026064 | 0.022155 | 0.013901 | 0.090356 | 0.090356 | 0.090356 | 0.090356 | 0.090356 | 0.090356 | 0 | 0.003429 | 0.218517 | 3,359 | 91 | 81 | 36.912088 | 0.873524 | 0.261387 | 0 | 0.160714 | 0 | 0 | 0.430636 | 0.020231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089286 | false | 0 | 0.071429 | 0.017857 | 0.232143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef99c583c045deb51df0a2fd8b0f81216762f3eb | 3,844 | py | Python | day-07/solution.py | wangjoshuah/Advent-Of-Code-2018 | 6bda7956bb7c6f9a54feffb19147961b56dc5d81 | [
"MIT"
] | null | null | null | day-07/solution.py | wangjoshuah/Advent-Of-Code-2018 | 6bda7956bb7c6f9a54feffb19147961b56dc5d81 | [
"MIT"
] | null | null | null | day-07/solution.py | wangjoshuah/Advent-Of-Code-2018 | 6bda7956bb7c6f9a54feffb19147961b56dc5d81 | [
"MIT"
] | null | null | null | # directed graph problem or breadth first search variant
from collections import defaultdict
import re
input_file = open("input.txt", "r")
input_lines = input_file.readlines()
letter_value = {
'A': 1,
'B': 2,
'C': 3,
'D': 4,
'E': 5,
'F': 6,
'G': 7,
'H': 8,
'I': 9,
'J': 10,
... | 27.070423 | 105 | 0.601977 | 537 | 3,844 | 4.096834 | 0.301676 | 0.046364 | 0.05 | 0.043182 | 0.148182 | 0.09 | 0.063636 | 0 | 0 | 0 | 0 | 0.022551 | 0.296306 | 3,844 | 141 | 106 | 27.262411 | 0.790758 | 0.104058 | 0 | 0.091743 | 0 | 0 | 0.062955 | 0.012241 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073395 | false | 0 | 0.018349 | 0.009174 | 0.155963 | 0.027523 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef99d022220363214630da6ad916a3a41900d8d7 | 2,862 | py | Python | src/infi/pypi_manager/scripts/compare_pypi_repos.py | Infinidat/infi.pypi_manager | 7b5774b395ef47a23be2957a091b607b35a049f2 | [
"BSD-3-Clause"
] | null | null | null | src/infi/pypi_manager/scripts/compare_pypi_repos.py | Infinidat/infi.pypi_manager | 7b5774b395ef47a23be2957a091b607b35a049f2 | [
"BSD-3-Clause"
] | 1 | 2020-11-05T10:04:45.000Z | 2020-11-05T11:03:25.000Z | src/infi/pypi_manager/scripts/compare_pypi_repos.py | Infinidat/infi.pypi_manager | 7b5774b395ef47a23be2957a091b607b35a049f2 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function
from .. import PyPI, DjangoPyPI, PackageNotFound
from prettytable import PrettyTable
from pkg_resources import parse_version, resource_filename
import requests
import re
try:
from urlparse import unquote
except ImportError:
# Python 3
from urllib.parse import unquote
... | 40.885714 | 120 | 0.70615 | 353 | 2,862 | 5.393768 | 0.286119 | 0.116071 | 0.07563 | 0.042017 | 0.216387 | 0.216387 | 0.177521 | 0.177521 | 0.177521 | 0.147584 | 0 | 0.001712 | 0.183438 | 2,862 | 69 | 121 | 41.478261 | 0.813008 | 0.002795 | 0 | 0.084746 | 0 | 0 | 0.07223 | 0.014025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0 | 0.169492 | 0.016949 | 0.305085 | 0.20339 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef9afc42c7347b259e757e59b46b756f7ac092fc | 6,954 | py | Python | src/GNLSE_specific.py | Computational-Nonlinear-Optics-ORC/Compare-CNLSE | 9b56cedbca2a06af3baa9f64e46ebfd4263f86c2 | [
"MIT"
] | null | null | null | src/GNLSE_specific.py | Computational-Nonlinear-Optics-ORC/Compare-CNLSE | 9b56cedbca2a06af3baa9f64e46ebfd4263f86c2 | [
"MIT"
] | null | null | null | src/GNLSE_specific.py | Computational-Nonlinear-Optics-ORC/Compare-CNLSE | 9b56cedbca2a06af3baa9f64e46ebfd4263f86c2 | [
"MIT"
] | 3 | 2018-06-04T18:43:03.000Z | 2021-11-24T07:57:03.000Z | import numpy as np
from scipy.interpolate import InterpolatedUnivariateSpline
from scipy.fftpack import fft
from combined_functions import check_ft_grid
from scipy.constants import pi, c, hbar
from numpy.fft import fftshift
from scipy.io import loadmat
from time import time
import sys
import matplotlib.pyplot as plt
fr... | 33.757282 | 77 | 0.560397 | 1,049 | 6,954 | 3.608198 | 0.255481 | 0.033289 | 0.02325 | 0.014531 | 0.149802 | 0.116248 | 0.076618 | 0.043329 | 0.019551 | 0.019551 | 0 | 0.035759 | 0.308312 | 6,954 | 205 | 78 | 33.921951 | 0.751143 | 0.178746 | 0 | 0.077465 | 0 | 0 | 0.025507 | 0.009161 | 0 | 0 | 0 | 0 | 0.042254 | 1 | 0.070423 | false | 0 | 0.077465 | 0 | 0.21831 | 0.007042 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef9be069a058d33204131a55950dcf855daf7d54 | 1,164 | py | Python | example.py | jasonkatz/py-graphql-client | 9f938f3d379a8f4d8810961c87baf25dbe35889d | [
"BSD-3-Clause"
] | 38 | 2019-03-22T16:27:08.000Z | 2022-03-30T11:07:55.000Z | example.py | anthonyhiga/py-graphql-client | 9c59b32bae5c5c6a12634b2bd6353f76328aa31a | [
"BSD-3-Clause"
] | 31 | 2019-03-25T20:28:40.000Z | 2022-01-26T21:22:47.000Z | example.py | anthonyhiga/py-graphql-client | 9c59b32bae5c5c6a12634b2bd6353f76328aa31a | [
"BSD-3-Clause"
] | 11 | 2019-03-25T18:54:32.000Z | 2021-09-11T17:00:27.000Z | import time
from graphql_client import GraphQLClient
# some sample GraphQL server which supports websocket transport and subscription
client = GraphQLClient('ws://localhost:9001')
# Simple Query Example
# query example with GraphQL variables
query = """
query getUser($userId: Int!) {
users (id: $userId) {
id
... | 23.755102 | 97 | 0.734536 | 158 | 1,164 | 5.348101 | 0.493671 | 0.028402 | 0.028402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008214 | 0.16323 | 1,164 | 48 | 98 | 24.25 | 0.859343 | 0.320447 | 0 | 0.2 | 0 | 0 | 0.484036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.066667 | 0 | 0.1 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ef9c140412569fc3198bcf6324071fb38dea2030 | 2,465 | py | Python | Scopus2Histcite.py | hengxyz/Scopus4HistCite | 87395afe5d8a520b9c32a0efeed2288225430244 | [
"Apache-2.0"
] | 2 | 2020-07-09T13:10:44.000Z | 2020-07-10T13:00:52.000Z | Scopus2Histcite.py | hengxyz/Scopus4HistCite | 87395afe5d8a520b9c32a0efeed2288225430244 | [
"Apache-2.0"
] | null | null | null | Scopus2Histcite.py | hengxyz/Scopus4HistCite | 87395afe5d8a520b9c32a0efeed2288225430244 | [
"Apache-2.0"
] | null | null | null | # coding:utf-8
import os
import sys
def Scopus2HistCite():
try:
wrt_lines = []
if len(sys.argv) >= 2 and os.path.isfile(sys.argv[1]):
print("You are going to convert {}".format(sys.argv[1]))
Scopus_file = sys.argv[1]
elif os.path.isfile("./Scopus.ris"):
... | 35.724638 | 80 | 0.416633 | 246 | 2,465 | 4.065041 | 0.430894 | 0.08 | 0.112 | 0.054 | 0.156 | 0.112 | 0 | 0 | 0 | 0 | 0 | 0.013761 | 0.469371 | 2,465 | 69 | 81 | 35.724638 | 0.749235 | 0.041379 | 0 | 0.171875 | 0 | 0 | 0.106783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015625 | false | 0 | 0.03125 | 0 | 0.046875 | 0.046875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ef9d373a85947b14498743498aaf4ab814a074db | 2,449 | py | Python | mel_scale.py | zjlww/dsp | d7bcbf49bc8693560f3203c55b73956cc61dcd50 | [
"MIT"
] | 9 | 2021-07-22T19:59:34.000Z | 2021-12-16T06:37:27.000Z | mel_scale.py | zjlww/dsp | d7bcbf49bc8693560f3203c55b73956cc61dcd50 | [
"MIT"
] | null | null | null | mel_scale.py | zjlww/dsp | d7bcbf49bc8693560f3203c55b73956cc61dcd50 | [
"MIT"
] | 2 | 2021-07-26T07:14:58.000Z | 2021-12-16T06:37:30.000Z | """
Mel-scale definition.
"""
import torch
from torch import Tensor
from typing import Union
import numpy as np
from math import log
import librosa
from librosa.filters import mel as mel_fn
def hz_to_mel(
frequencies: Union[float, int, Tensor, np.ndarray],
htk=False) -> Union[float, int, Tensor, np.ndarra... | 31.805195 | 78 | 0.642303 | 386 | 2,449 | 3.870466 | 0.238342 | 0.048193 | 0.037483 | 0.018742 | 0.323963 | 0.270415 | 0.161981 | 0.161981 | 0.161981 | 0.161981 | 0 | 0.038587 | 0.248673 | 2,449 | 77 | 79 | 31.805195 | 0.77337 | 0.255206 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.137255 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
ef9edac80f3106bed3243580dd908ece6900cb29 | 379 | py | Python | order/urls.py | xxcfun/trip-api | a51c8b6033ba2a70cf0e400180f31809f4ce476a | [
"Apache-2.0"
] | 1 | 2021-06-18T03:03:40.000Z | 2021-06-18T03:03:40.000Z | order/urls.py | xxcfun/trip-api | a51c8b6033ba2a70cf0e400180f31809f4ce476a | [
"Apache-2.0"
] | null | null | null | order/urls.py | xxcfun/trip-api | a51c8b6033ba2a70cf0e400180f31809f4ce476a | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from order import views
urlpatterns = [
# 订单提交接口
path('ticket/submit/', views.TicketOrderSubmitView.as_view(), name='ticket_submit'),
# 订单详情(支付、取消、删除)
path('order/detail/<int:sn>/', views.OrderDetail.as_view(), name='order_detail'),
# 订单列表
path('order/lis... | 29.153846 | 89 | 0.664908 | 48 | 379 | 5.125 | 0.541667 | 0.073171 | 0.121951 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171504 | 379 | 12 | 90 | 31.583333 | 0.783439 | 0.068602 | 0 | 0 | 0 | 0 | 0.243323 | 0.065282 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ef9f39f03563135dc82bcc1a0e27d1ea6a62e525 | 349 | py | Python | api/models.py | yaroshyk/todo | 828d5afc9abd85cd7f8f25e4d01f90c765231357 | [
"MIT"
] | 3 | 2021-05-30T19:04:37.000Z | 2021-08-30T14:16:57.000Z | api/models.py | yaroshyk/todo | 828d5afc9abd85cd7f8f25e4d01f90c765231357 | [
"MIT"
] | null | null | null | api/models.py | yaroshyk/todo | 828d5afc9abd85cd7f8f25e4d01f90c765231357 | [
"MIT"
] | null | null | null | from django.db import models
class Todo(models.Model):
title = models.CharField(max_length=100)
details = models.TextField()
date = models.DateTimeField(auto_now_add=True)
group = models.TextField(default='home')
user_id = models.IntegerField()
objects = models.Manager()
def __str__(self... | 23.266667 | 50 | 0.696275 | 43 | 349 | 5.465116 | 0.767442 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010676 | 0.194842 | 349 | 14 | 51 | 24.928571 | 0.825623 | 0 | 0 | 0 | 0 | 0 | 0.011461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.1 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
efa05bae4ae4b077bd16954d59ff3b20aac6edc2 | 17,709 | py | Python | src/upper/utils.py | USArmyResearchLab/ARL-UPPER | 2f79f25338f18655b2a19c8afe3fed267cc0f198 | [
"Apache-2.0"
] | 4 | 2020-09-14T06:13:04.000Z | 2020-11-21T07:10:36.000Z | src/upper/utils.py | USArmyResearchLab/ARL-UPPER | 2f79f25338f18655b2a19c8afe3fed267cc0f198 | [
"Apache-2.0"
] | null | null | null | src/upper/utils.py | USArmyResearchLab/ARL-UPPER | 2f79f25338f18655b2a19c8afe3fed267cc0f198 | [
"Apache-2.0"
] | 2 | 2020-03-15T17:59:26.000Z | 2020-09-14T06:13:05.000Z | from typing import Tuple
from rdkit import Chem
from rdkit.Chem import Draw
import re
import itertools
import numpy as np
import networkx as nx
import logging
import collections
def FindBreakingBonds(cnids: list, bids: list, bts: list, atomic_nums: list) -> list:
"""Returns bond ids to be broken. Check for double... | 28.65534 | 94 | 0.611666 | 2,390 | 17,709 | 4.457741 | 0.156904 | 0.011827 | 0.018585 | 0.012484 | 0.239441 | 0.135818 | 0.088981 | 0.057443 | 0.046555 | 0.046555 | 0 | 0.01064 | 0.262296 | 17,709 | 617 | 95 | 28.701783 | 0.804884 | 0.205884 | 0 | 0.112994 | 0 | 0 | 0.023607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115819 | false | 0 | 0.025424 | 0 | 0.242938 | 0.031073 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
efa2c84741d3637cb65c8fc32a0abc9a577fb053 | 3,317 | py | Python | 025_reverse-nodes-in-k-group.py | tasselcui/leetcode | 5c32446b8b5bf3711cf28e465f448c6a0980f259 | [
"MIT"
] | null | null | null | 025_reverse-nodes-in-k-group.py | tasselcui/leetcode | 5c32446b8b5bf3711cf28e465f448c6a0980f259 | [
"MIT"
] | null | null | null | 025_reverse-nodes-in-k-group.py | tasselcui/leetcode | 5c32446b8b5bf3711cf28e465f448c6a0980f259 | [
"MIT"
] | null | null | null | # =============================================================================
# # -*- coding: utf-8 -*-
# """
# Created on Sun Aug 5 08:07:19 2018
#
# @author: lenovo
# """
# 25. Reverse Nodes in k-Group
# Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
#
# k is a ... | 28.843478 | 186 | 0.403075 | 356 | 3,317 | 3.744382 | 0.376404 | 0.030008 | 0.036009 | 0.028507 | 0.139535 | 0.139535 | 0.139535 | 0.139535 | 0.139535 | 0.139535 | 0 | 0.025274 | 0.284293 | 3,317 | 114 | 187 | 29.096491 | 0.536226 | 0.60205 | 0 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.156863 | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
efa5e69113b0347792c870829c3f62690cf050bb | 2,708 | py | Python | perma_web/perma/tests/test_views_common.py | leppert/perma | adb0cec29679c3d161d72330e19114f89f8c42ac | [
"MIT",
"Unlicense"
] | null | null | null | perma_web/perma/tests/test_views_common.py | leppert/perma | adb0cec29679c3d161d72330e19114f89f8c42ac | [
"MIT",
"Unlicense"
] | null | null | null | perma_web/perma/tests/test_views_common.py | leppert/perma | adb0cec29679c3d161d72330e19114f89f8c42ac | [
"MIT",
"Unlicense"
] | null | null | null | from django.conf import settings
from django.core import mail
from django.core.urlresolvers import reverse
from perma.urls import urlpatterns
from .utils import PermaTestCase
class CommonViewsTestCase(PermaTestCase):
def test_public_views(self):
# test static template views
for urlpattern in url... | 43.677419 | 93 | 0.642171 | 309 | 2,708 | 5.498382 | 0.368932 | 0.079459 | 0.063567 | 0.049441 | 0.422602 | 0.389641 | 0.361389 | 0.359035 | 0.194232 | 0.136551 | 0 | 0.013807 | 0.251108 | 2,708 | 62 | 94 | 43.677419 | 0.823965 | 0.121492 | 0 | 0.243902 | 0 | 0 | 0.13159 | 0 | 0 | 0 | 0 | 0 | 0.268293 | 1 | 0.097561 | false | 0 | 0.121951 | 0 | 0.243902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
efa68642041c99f789a40f12b356c9ba93e64adc | 1,708 | py | Python | GeneratorInterface/Pythia8Interface/python/Py8PtLxyGun_4tau_cfi.py | menglu21/cmssw | c3d6cb102c0aaddf652805743370c28044d53da6 | [
"Apache-2.0"
] | null | null | null | GeneratorInterface/Pythia8Interface/python/Py8PtLxyGun_4tau_cfi.py | menglu21/cmssw | c3d6cb102c0aaddf652805743370c28044d53da6 | [
"Apache-2.0"
] | null | null | null | GeneratorInterface/Pythia8Interface/python/Py8PtLxyGun_4tau_cfi.py | menglu21/cmssw | c3d6cb102c0aaddf652805743370c28044d53da6 | [
"Apache-2.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
#Note: distances in mm instead of in cm usually used in CMS
generator = cms.EDFilter("Pythia8PtAndLxyGun",
maxEventsToPrint = cms.untracked.int32(1),
pythiaPylistVerbosity = cms.untracked.int32(1),
pythiaHepMCVerbosity = cms.untracked.bool(True),
PGunParameter... | 47.444444 | 203 | 0.668618 | 231 | 1,708 | 4.943723 | 0.502165 | 0.126095 | 0.044658 | 0.028897 | 0.124343 | 0.124343 | 0.124343 | 0.124343 | 0.063047 | 0.063047 | 0 | 0.078534 | 0.217213 | 1,708 | 35 | 204 | 48.8 | 0.775617 | 0.305621 | 0 | 0 | 0 | 0 | 0.027142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
efabd851d1c220194dc0597eebe6be9a8b117165 | 5,492 | py | Python | questions/models.py | stkrizh/otus-django-hasker | 9692b8060a789b0b66b4cf3591a78e32c8a10380 | [
"MIT"
] | null | null | null | questions/models.py | stkrizh/otus-django-hasker | 9692b8060a789b0b66b4cf3591a78e32c8a10380 | [
"MIT"
] | 10 | 2020-06-05T22:56:30.000Z | 2022-02-10T08:54:18.000Z | questions/models.py | stkrizh/otus-django-hasker | 9692b8060a789b0b66b4cf3591a78e32c8a10380 | [
"MIT"
] | null | null | null | import logging
from typing import List, Optional
from django.conf import settings
from django.contrib.auth import get_user_model
from django.core.exceptions import ObjectDoesNotExist
from django.db import models
VOTE_UP = 1
VOTE_DOWN = -1
VOTE_CHOICES = ((VOTE_UP, "Vote Up"), (VOTE_DOWN, "Vote Down"))
User = get_... | 27.878173 | 76 | 0.619993 | 652 | 5,492 | 5.052147 | 0.223926 | 0.019126 | 0.029751 | 0.038251 | 0.403764 | 0.403764 | 0.330601 | 0.330601 | 0.330601 | 0.278385 | 0 | 0.001982 | 0.264931 | 5,492 | 196 | 77 | 28.020408 | 0.813971 | 0.047524 | 0 | 0.393103 | 0 | 0 | 0.134118 | 0.012157 | 0 | 0 | 0 | 0 | 0.013793 | 1 | 0.068966 | false | 0 | 0.041379 | 0.034483 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
efac998014549cc9e8410daf8e8486e66ec92ef3 | 1,430 | py | Python | backend/routers/bookmarks.py | heshikirihasebe/fastapi-instagram-clone | 7bc265a62160171c5c5c1b2f18b3c86833cb64e7 | [
"MIT"
] | 1 | 2022-02-08T19:35:22.000Z | 2022-02-08T19:35:22.000Z | backend/routers/bookmarks.py | heshikirihasebe/fastapi-instagram-clone | 7bc265a62160171c5c5c1b2f18b3c86833cb64e7 | [
"MIT"
] | null | null | null | backend/routers/bookmarks.py | heshikirihasebe/fastapi-instagram-clone | 7bc265a62160171c5c5c1b2f18b3c86833cb64e7 | [
"MIT"
] | null | null | null | from datetime import datetime
from fastapi import APIRouter, Request
from ..classes.jwt_authenticator import JWTAuthenticator
from ..repositories import bookmark_repository
from ..schemas.bookmark_schema import RequestSchema, ResponseSchema
router = APIRouter(
prefix='/bookmarks',
tags=['bookmarks'],
)
# Inde... | 31.086957 | 112 | 0.706294 | 178 | 1,430 | 5.494382 | 0.365169 | 0.04908 | 0.09407 | 0.04908 | 0.188139 | 0.188139 | 0.188139 | 0.188139 | 0.188139 | 0.132924 | 0 | 0.002632 | 0.202797 | 1,430 | 45 | 113 | 31.777778 | 0.855263 | 0.093007 | 0 | 0.137931 | 0 | 0 | 0.022533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.034483 | 0.172414 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
efaec7b2aeea24ccd064fbf8dcfa28faac52b446 | 1,635 | py | Python | analysis/scripts/project_functions_Tom.py | data301-2020-winter2/course-project-group_1052 | 3733aacac0812811752d77e5f3d822ef5251c17b | [
"MIT"
] | null | null | null | analysis/scripts/project_functions_Tom.py | data301-2020-winter2/course-project-group_1052 | 3733aacac0812811752d77e5f3d822ef5251c17b | [
"MIT"
] | 1 | 2021-03-24T17:16:52.000Z | 2021-03-24T17:16:52.000Z | analysis/scripts/project_functions_Tom.py | data301-2020-winter2/course-project-group_1052 | 3733aacac0812811752d77e5f3d822ef5251c17b | [
"MIT"
] | null | null | null | import pandas as pd
def load_and_process(path):
df1 = pd.read_csv(path)
df2 = (
df1.drop(columns=['songName', 'ogLyric', 'kbLyric'])
.rename(columns={'badword':'badWord'})
.sort_values("ogArtist", ascending = True)
.sort_values("year", ascending = True)
)
... | 30.277778 | 157 | 0.55107 | 173 | 1,635 | 5.092486 | 0.317919 | 0.113507 | 0.07151 | 0.034052 | 0.431328 | 0.431328 | 0.340522 | 0.340522 | 0.340522 | 0.340522 | 0 | 0.033856 | 0.259327 | 1,635 | 54 | 158 | 30.277778 | 0.693642 | 0 | 0 | 0.333333 | 0 | 0 | 0.182763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0.027778 | 0 | 0.305556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |