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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1111178ffeca17f97dbc94edf513c3e6554c30c4 | 5,179 | py | Python | myfunc.py | dedo94/GUIGG | be4d6243ee9abcfaf42ab9aec6cd87f8e2149d4d | [
"MIT"
] | 1 | 2019-02-15T22:38:40.000Z | 2019-02-15T22:38:40.000Z | myfunc.py | dedo94/GUIGG | be4d6243ee9abcfaf42ab9aec6cd87f8e2149d4d | [
"MIT"
] | null | null | null | myfunc.py | dedo94/GUIGG | be4d6243ee9abcfaf42ab9aec6cd87f8e2149d4d | [
"MIT"
] | null | null | null | import os
import platform
import sys
from os.path import relpath
sys.path.append('/usr/local/bin/dot')
sys.path.append('/usr/bin/dot')
from graphviz import Digraph
# struttura dati
class node:
def __init__(self, id, istruction, *nxt_node):
self.id = id
self.ist = istruction
self.next_node... | 43.158333 | 181 | 0.448542 | 576 | 5,179 | 3.814236 | 0.230903 | 0.056896 | 0.02731 | 0.032772 | 0.28721 | 0.208921 | 0.187528 | 0.17888 | 0.166591 | 0.166591 | 0 | 0.004012 | 0.470554 | 5,179 | 119 | 182 | 43.521008 | 0.797228 | 0.189033 | 0 | 0.126582 | 0 | 0 | 0.018461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126582 | false | 0 | 0.063291 | 0 | 0.303797 | 0.075949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1111834ed10ea00b3973a4e7b45b84a2fd41c455 | 2,466 | py | Python | EllucianEthosPythonClient/ChangeNotificationUtils.py | rmetcalf9/EllucainEthosPythonClient | 6913322b1e583f655f67399f2baa763833583c27 | [
"MIT"
] | 1 | 2021-02-09T22:05:50.000Z | 2021-02-09T22:05:50.000Z | EllucianEthosPythonClient/ChangeNotificationUtils.py | rmetcalf9/EllucainEthosPythonClient | 6913322b1e583f655f67399f2baa763833583c27 | [
"MIT"
] | 1 | 2020-07-02T11:44:54.000Z | 2020-07-02T11:45:38.000Z | EllucianEthosPythonClient/ChangeNotificationUtils.py | rmetcalf9/EllucainEthosPythonClient | 6913322b1e583f655f67399f2baa763833583c27 | [
"MIT"
] | 1 | 2021-01-13T21:35:11.000Z | 2021-01-13T21:35:11.000Z | from .ChangeNotificationMessage import ChangeNotificationMessage
import json
def requestBatchOfPagesAndReturnRemainingCountLib(
pageLimit,
lastProcessedID,
clientAPIInstance,
loginSession,
processIndividualMessage
):
params = {
"limit": str(pageLimit)
}
if lastProcessedID is not None:
params["... | 27.098901 | 103 | 0.744931 | 209 | 2,466 | 8.727273 | 0.344498 | 0.038377 | 0.018092 | 0.024671 | 0.123904 | 0.123904 | 0.070175 | 0.070175 | 0.070175 | 0 | 0 | 0.004467 | 0.182887 | 2,466 | 90 | 104 | 27.4 | 0.900744 | 0.029197 | 0 | 0.166667 | 0 | 0 | 0.016311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.027778 | 0 | 0.263889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1112b034f98c7dc617526ab156487a42f2db45b6 | 1,821 | py | Python | schafkopf/players/models/evaluate_calssifier.py | Taschee/schafkopf | 96c5b9199d9260b4fdd74de8a6e54805b407407b | [
"MIT"
] | 10 | 2018-07-30T14:02:25.000Z | 2022-01-19T23:48:31.000Z | schafkopf/players/models/evaluate_calssifier.py | TimiH/schafkopf-1 | deafaa28d6cba866d097b4347dd84ce37b3b594d | [
"MIT"
] | 1 | 2018-08-12T07:25:51.000Z | 2018-08-27T21:04:04.000Z | schafkopf/players/models/evaluate_calssifier.py | Taschee/schafkopf | 96c5b9199d9260b4fdd74de8a6e54805b407407b | [
"MIT"
] | 2 | 2019-01-23T10:02:57.000Z | 2019-08-26T22:05:52.000Z | import keras
import numpy as np
from schafkopf.players.data.load_data import load_data_bidding
from schafkopf.players.data.encodings import decode_on_hot_hand
import matplotlib.pyplot as plt
x_test, y_test = load_data_bidding('../data/test_data.p')
x_train, y_train = load_data_bidding('../data/train_data.p')
modelpat... | 29.852459 | 88 | 0.713344 | 298 | 1,821 | 4.137584 | 0.365772 | 0.024331 | 0.042174 | 0.024331 | 0.025953 | 0.025953 | 0.025953 | 0 | 0 | 0 | 0 | 0.019796 | 0.140033 | 1,821 | 60 | 89 | 30.35 | 0.767561 | 0 | 0 | 0 | 0 | 0 | 0.180617 | 0.013216 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.121951 | 0 | 0.121951 | 0.121951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
111a060dfd860a5ffaba0f5cb789e1d77010aef4 | 1,742 | py | Python | PyFlow/Packages/DepthAI_Device/Nodes/NeuralNetwork/NeuralNetworkNode.py | AsherVo/depthai-gui | f6d5da7c00f09239d07ff77dd2e4433d40e43633 | [
"Apache-2.0"
] | 46 | 2021-01-05T13:41:54.000Z | 2022-03-29T09:47:20.000Z | PyFlow/Packages/DepthAI_Device/Nodes/NeuralNetwork/NeuralNetworkNode.py | AsherVo/depthai-gui | f6d5da7c00f09239d07ff77dd2e4433d40e43633 | [
"Apache-2.0"
] | 7 | 2021-01-29T22:26:05.000Z | 2022-02-24T10:16:35.000Z | PyFlow/Packages/DepthAI_Device/Nodes/NeuralNetwork/NeuralNetworkNode.py | AsherVo/depthai-gui | f6d5da7c00f09239d07ff77dd2e4433d40e43633 | [
"Apache-2.0"
] | 10 | 2021-03-11T15:00:40.000Z | 2022-03-24T02:28:39.000Z | from pathlib import Path
from common import DeviceNode, get_property_value
from PyFlow.Core.Common import *
from PyFlow.Core.NodeBase import NodePinsSuggestionsHelper
class NeuralNetworkNode(DeviceNode):
def __init__(self, name):
super(NeuralNetworkNode, self).__init__(name)
self.input = self.cre... | 35.55102 | 85 | 0.695178 | 171 | 1,742 | 6.97076 | 0.450292 | 0.050336 | 0.026846 | 0.053691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000723 | 0.206085 | 1,742 | 48 | 86 | 36.291667 | 0.861171 | 0 | 0 | 0.1 | 0 | 0 | 0.103904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.1 | 0.075 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
111d1cfa9500d15ba56748062cc1aaac7850fbbb | 1,800 | py | Python | tests/unit/test_flask_app/test_boot.py | andersoncontreira/flask-skeleton-python | 4a3087cf94f387830850dc438338251da86c3cfb | [
"MIT"
] | 1 | 2021-08-11T21:29:50.000Z | 2021-08-11T21:29:50.000Z | tests/unit/test_flask_app/test_boot.py | andersoncontreira/flask-skeleton-python | 4a3087cf94f387830850dc438338251da86c3cfb | [
"MIT"
] | null | null | null | tests/unit/test_flask_app/test_boot.py | andersoncontreira/flask-skeleton-python | 4a3087cf94f387830850dc438338251da86c3cfb | [
"MIT"
] | null | null | null | import os
import unittest
from flask_app.boot import load_dot_env, reset, is_loaded, load_env
from tests.unit.testutils import BaseUnitTestCase, get_function_name
from unittest_data_provider import data_provider
def get_env():
return (None, True), ('dev', True), ('development', True), ('integration', True), ('sta... | 34.615385 | 108 | 0.632778 | 225 | 1,800 | 4.746667 | 0.257778 | 0.09176 | 0.05618 | 0.059925 | 0.533708 | 0.533708 | 0.531835 | 0.531835 | 0.531835 | 0.363296 | 0 | 0 | 0.235 | 1,800 | 51 | 109 | 35.294118 | 0.775599 | 0.010556 | 0 | 0.307692 | 0 | 0 | 0.177628 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 1 | 0.102564 | false | 0 | 0.128205 | 0.051282 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
111dff9ff8122d79f8e2380fe35f3b04555c5059 | 805 | py | Python | quadratic.py | Varanasi-Software-Junction/Python-repository-for-basics | 01128ccb91866cb1abb6d8abf035213f722f5750 | [
"MIT"
] | 2 | 2021-07-14T11:01:58.000Z | 2021-07-14T11:02:01.000Z | quadratic.py | Maurya232Abhishek/Python-repository-for-basics | 3dcec5c529a0847df07c9dcc1424675754ce6376 | [
"MIT"
] | 4 | 2021-04-09T10:14:06.000Z | 2021-04-13T10:25:58.000Z | quadratic.py | Maurya232Abhishek/Python-repository-for-basics | 3dcec5c529a0847df07c9dcc1424675754ce6376 | [
"MIT"
] | 2 | 2021-07-11T08:17:30.000Z | 2021-07-14T11:10:58.000Z | def QuadraticRegression(px,py):
sumy = 0
sumx1= 0
sumx2= 0
sumx3 = 0
sumx4 = 0
sumxy = 0
sum2y = 0
n=len(px)
for i in range (n):
x = px[i]
y = py[i]
sumx1 += x
sumy += y
sumx2 += x*x
sumx3 += x*x*x
sumx4 += x*x*x*x
p... | 25.967742 | 129 | 0.468323 | 130 | 805 | 2.9 | 0.261538 | 0.03183 | 0.023873 | 0.127321 | 0.27321 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114943 | 0.351553 | 805 | 30 | 130 | 26.833333 | 0.60728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0 | 0 | 0.076923 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
111e4289c2fc2ba12c2caeb52c1314824fc19de1 | 5,591 | py | Python | config/atcoder-tools/custom_code_generator.py | ay65535/dotfiles-sei40kr | 32a930b0b3f08b15038c28f14e11b5f4ccf367fd | [
"MIT"
] | null | null | null | config/atcoder-tools/custom_code_generator.py | ay65535/dotfiles-sei40kr | 32a930b0b3f08b15038c28f14e11b5f4ccf367fd | [
"MIT"
] | null | null | null | config/atcoder-tools/custom_code_generator.py | ay65535/dotfiles-sei40kr | 32a930b0b3f08b15038c28f14e11b5f4ccf367fd | [
"MIT"
] | null | null | null | from typing import Any, Dict, Optional
from atcodertools.codegen.code_style_config import CodeStyleConfig
from atcodertools.codegen.models.code_gen_args import CodeGenArgs
from atcodertools.codegen.template_engine import render
from atcodertools.fmtprediction.models.format import (Format, ParallelPattern,
... | 34.94375 | 117 | 0.609909 | 618 | 5,591 | 5.247573 | 0.176375 | 0.034536 | 0.030527 | 0.027752 | 0.48967 | 0.458526 | 0.362936 | 0.272587 | 0.222017 | 0.19519 | 0 | 0.003518 | 0.288142 | 5,591 | 159 | 118 | 35.163522 | 0.811307 | 0.014309 | 0 | 0.319328 | 0 | 0 | 0.042522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12605 | false | 0.008403 | 0.058824 | 0.033613 | 0.378151 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
111f8861f8a268462a9c22cdca35e2db764c3102 | 16,873 | py | Python | crypto_futures_py/binance_futures.py | bear2u/CryptoFuturesPy | 9cfbf5f3a32b35a8a7cd53c2a3ded55d7b3c78d0 | [
"MIT"
] | 7 | 2020-08-23T19:02:33.000Z | 2022-03-24T15:48:18.000Z | crypto_futures_py/binance_futures.py | bear2u/CryptoFuturesPy | 9cfbf5f3a32b35a8a7cd53c2a3ded55d7b3c78d0 | [
"MIT"
] | null | null | null | crypto_futures_py/binance_futures.py | bear2u/CryptoFuturesPy | 9cfbf5f3a32b35a8a7cd53c2a3ded55d7b3c78d0 | [
"MIT"
] | 1 | 2021-09-15T04:17:04.000Z | 2021-09-15T04:17:04.000Z | """
This module contains an implementation for Binance Futures (BinanceFuturesExchangeHandler)
"""
from __future__ import annotations
import pandas as pd
import typing
import json
import logging
import pandas as pd
from datetime import datetime
from dataclasses import dataclass
from . import futurespy as fp
from... | 37.412417 | 122 | 0.551295 | 1,759 | 16,873 | 5.08357 | 0.159181 | 0.018788 | 0.010736 | 0.016439 | 0.393872 | 0.327108 | 0.264147 | 0.245694 | 0.229143 | 0.194476 | 0 | 0.001819 | 0.348367 | 16,873 | 450 | 123 | 37.495556 | 0.81146 | 0.017543 | 0 | 0.319527 | 0 | 0 | 0.048647 | 0 | 0 | 0 | 0 | 0.002222 | 0 | 1 | 0.035503 | false | 0 | 0.029586 | 0.002959 | 0.100592 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
11207abb79cc5820b7575449526dbb965b477f82 | 1,971 | py | Python | repsim/kernels/kernel_base.py | wrongu/representational-similarity | adca614053973def176044437e6a064c04943ce0 | [
"MIT"
] | 2 | 2022-03-23T21:24:21.000Z | 2022-03-24T04:18:30.000Z | repsim/kernels/kernel_base.py | wrongu/representational-similarity | adca614053973def176044437e6a064c04943ce0 | [
"MIT"
] | 3 | 2022-03-23T19:35:58.000Z | 2022-03-24T04:20:29.000Z | repsim/kernels/kernel_base.py | wrongu/representational-similarity | adca614053973def176044437e6a064c04943ce0 | [
"MIT"
] | 1 | 2022-03-23T19:16:19.000Z | 2022-03-23T19:16:19.000Z | import torch
from typing import Union, Iterable
def center(k: torch.Tensor) -> torch.Tensor:
"""Center features of a kernel by pre- and post-multiplying by the centering matrix H.
In other words, if k_ij is dot(x_i, x_j), the result will be dot(x_i - mu_x, x_j - mu_x).
:param k: a n by n Gram matrix of ... | 31.790323 | 93 | 0.598681 | 297 | 1,971 | 3.872054 | 0.316498 | 0.114783 | 0.041739 | 0.057391 | 0.193913 | 0.17913 | 0.130435 | 0.086957 | 0.086957 | 0.086957 | 0 | 0.004899 | 0.274987 | 1,971 | 61 | 94 | 32.311475 | 0.79986 | 0.136479 | 0 | 0.095238 | 0 | 0 | 0.151281 | 0.019655 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.047619 | 0.02381 | 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 |
11207edc04bb4169510f36f55f71d608452b5ac2 | 6,253 | py | Python | add_sensors.py | gve-sw/gve_devnet_meraki_sensor_deployment | 7add073bf3e2728f811ea8f5da80c138e3067af7 | [
"RSA-MD"
] | null | null | null | add_sensors.py | gve-sw/gve_devnet_meraki_sensor_deployment | 7add073bf3e2728f811ea8f5da80c138e3067af7 | [
"RSA-MD"
] | null | null | null | add_sensors.py | gve-sw/gve_devnet_meraki_sensor_deployment | 7add073bf3e2728f811ea8f5da80c138e3067af7 | [
"RSA-MD"
] | null | null | null | #!/usr/bin/env python3
"""Copyright (c) 2020 Cisco and/or its affiliates.
This software is licensed to you under the terms of the Cisco Sample
Code License, Version 1.1 (the "License"). You may obtain a copy of the
License at
https://developer.cisco.com/docs/licenses
All use of the material herein must b... | 40.869281 | 277 | 0.689909 | 876 | 6,253 | 4.767123 | 0.22032 | 0.066092 | 0.038314 | 0.020354 | 0.342433 | 0.255508 | 0.228448 | 0.178161 | 0.171456 | 0.152059 | 0 | 0.004072 | 0.214457 | 6,253 | 152 | 278 | 41.138158 | 0.846091 | 0.31185 | 0 | 0.166667 | 0 | 0 | 0.196285 | 0.005622 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039216 | 0 | 0.039216 | 0.098039 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1120e9e47c16ba9929729ce5750b83aea2535437 | 663 | py | Python | BasicOperations/01_01_PyQt4/tableDoubleClicked.py | UpSea/midProjects | ed6086e74f68b1b89f725abe0b270e67cf8993a8 | [
"MIT"
] | 1 | 2018-07-02T13:54:49.000Z | 2018-07-02T13:54:49.000Z | BasicOperations/01_01_PyQt4/tableDoubleClicked.py | UpSea/midProjects | ed6086e74f68b1b89f725abe0b270e67cf8993a8 | [
"MIT"
] | null | null | null | BasicOperations/01_01_PyQt4/tableDoubleClicked.py | UpSea/midProjects | ed6086e74f68b1b89f725abe0b270e67cf8993a8 | [
"MIT"
] | 3 | 2016-05-28T15:13:02.000Z | 2021-04-10T06:04:25.000Z | from PyQt4.QtGui import *
from PyQt4.QtCore import *
class MyTabView(QTableView):
def __init__(self, parent=None):
super(MyTabView, self).__init__(parent)
self.model = QStandardItemModel(4, 2)
self.setModel(self.model)
def mouseDoubleClickEvent(self, event):
QTableView.mouseDo... | 25.5 | 70 | 0.618401 | 77 | 663 | 5.103896 | 0.571429 | 0.045802 | 0.152672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022267 | 0.254902 | 663 | 26 | 71 | 25.5 | 0.773279 | 0 | 0 | 0 | 0 | 0 | 0.037651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.142857 | 0 | 0.285714 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1121313e46cf1f2e2cb2bc3065f395b37613a84b | 19,860 | py | Python | legacy/glucose-insulin.py | IllumiNate411/SBINNs | 37e68ce97a997090d17a3d487de77aa9059bfc91 | [
"Apache-2.0"
] | 23 | 2020-07-15T07:41:15.000Z | 2022-02-10T23:09:03.000Z | legacy/glucose-insulin.py | IllumiNate411/SBINNs | 37e68ce97a997090d17a3d487de77aa9059bfc91 | [
"Apache-2.0"
] | 2 | 2021-06-20T20:41:52.000Z | 2022-02-09T19:26:10.000Z | legacy/glucose-insulin.py | IllumiNate411/SBINNs | 37e68ce97a997090d17a3d487de77aa9059bfc91 | [
"Apache-2.0"
] | 21 | 2020-07-15T07:41:17.000Z | 2022-03-03T12:01:37.000Z | import tensorflow as tf
import numpy as np
from scipy.integrate import odeint
import matplotlib.pyplot as plt
from plotting import newfig, savefig
import matplotlib.gridspec as gridspec
import seaborn as sns
import time
from utilities import neural_net, fwd_gradients, heaviside, \
tf_session, mea... | 42.801724 | 128 | 0.533938 | 3,122 | 19,860 | 3.28091 | 0.118834 | 0.043054 | 0.058772 | 0.096554 | 0.507469 | 0.432783 | 0.393049 | 0.347164 | 0.313873 | 0.261154 | 0 | 0.084945 | 0.296979 | 19,860 | 464 | 129 | 42.801724 | 0.648689 | 0.158711 | 0 | 0.126154 | 0 | 0.003077 | 0.029881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027692 | false | 0 | 0.027692 | 0.003077 | 0.076923 | 0.067692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
112717e60382646da056e160e879beb3deb10306 | 4,123 | py | Python | word_ladder/utilities.py | RacingTadpole/boggle | 2185da9e204e2d1ed686ccaac76d0d73396408fb | [
"MIT"
] | null | null | null | word_ladder/utilities.py | RacingTadpole/boggle | 2185da9e204e2d1ed686ccaac76d0d73396408fb | [
"MIT"
] | null | null | null | word_ladder/utilities.py | RacingTadpole/boggle | 2185da9e204e2d1ed686ccaac76d0d73396408fb | [
"MIT"
] | null | null | null | from typing import Dict, Iterable, Iterator, List, Sequence, Optional, Tuple
from word_ladder.types import WordDict
from word_ladder.rung import Rung
def get_word_with_letter_missing(word: str, position: int) -> str:
"""
>>> get_word_with_letter_missing('dog', 0)
'?og'
>>> get_word_with_letter_missing... | 37.825688 | 119 | 0.551298 | 567 | 4,123 | 3.835979 | 0.179894 | 0.04046 | 0.025287 | 0.03908 | 0.297011 | 0.178391 | 0.067586 | 0.057931 | 0.034023 | 0.034023 | 0 | 0.007152 | 0.219985 | 4,123 | 108 | 120 | 38.175926 | 0.669154 | 0.441911 | 0 | 0 | 0 | 0.021739 | 0.074396 | 0.030435 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152174 | false | 0 | 0.065217 | 0 | 0.413043 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
11290c9f84712a0ff71c67c6213ef09024350d23 | 923 | py | Python | apps/plea/migrations/0015_datavalidation.py | uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas | 4c625b13fa2826bdde083a0270dcea1791f6dc18 | [
"MIT"
] | 3 | 2015-12-22T16:37:14.000Z | 2018-01-22T18:44:38.000Z | apps/plea/migrations/0015_datavalidation.py | uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas | 4c625b13fa2826bdde083a0270dcea1791f6dc18 | [
"MIT"
] | 145 | 2015-03-04T11:17:50.000Z | 2022-03-21T12:10:13.000Z | apps/plea/migrations/0015_datavalidation.py | uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas | 4c625b13fa2826bdde083a0270dcea1791f6dc18 | [
"MIT"
] | 3 | 2015-12-29T14:59:12.000Z | 2021-04-11T06:24:11.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('plea', '0014_auto_20151119_1136'),
]
operations = [
migrations.CreateModel(
name='DataValidation',
f... | 34.185185 | 114 | 0.600217 | 90 | 923 | 5.911111 | 0.6 | 0.084586 | 0.101504 | 0.135338 | 0.157895 | 0.109023 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.263272 | 923 | 26 | 115 | 35.5 | 0.747059 | 0.022752 | 0 | 0 | 0 | 0 | 0.146667 | 0.025556 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
112b2b33af67e21e163e5b4e0d7e900b33eee428 | 1,407 | py | Python | day_2/day_2.py | DillonHirth/advent_of_code | 3af280134757945958f816c5c1522c8b7178c290 | [
"MIT"
] | null | null | null | day_2/day_2.py | DillonHirth/advent_of_code | 3af280134757945958f816c5c1522c8b7178c290 | [
"MIT"
] | null | null | null | day_2/day_2.py | DillonHirth/advent_of_code | 3af280134757945958f816c5c1522c8b7178c290 | [
"MIT"
] | null | null | null | # PART 1
with open('input.txt') as input_file:
x_pos = 0
y_pos = 0
for line in input_file:
direction = line.split(' ')[0]
distance = int(line.split(' ')[1])
if direction == "forward":
x_pos += distance
elif direction == "down":
y_pos += distance
... | 30.586957 | 60 | 0.484009 | 166 | 1,407 | 3.873494 | 0.174699 | 0.080871 | 0.054432 | 0.037325 | 0.679627 | 0.639191 | 0.545879 | 0.393468 | 0.393468 | 0.393468 | 0 | 0.01119 | 0.30135 | 1,407 | 46 | 61 | 30.586957 | 0.64293 | 0.00924 | 0 | 0.697674 | 0 | 0 | 0.18319 | 0.081178 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.395349 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
112f282e3098cdc6a98d1c6bbec33fdd6b4350c1 | 23,588 | py | Python | test2.py | juanmed/singleshot6Dpose | a32d5159d557451ac3ed710ca7d4da6f7c64ff52 | [
"MIT"
] | 5 | 2019-03-27T08:40:07.000Z | 2021-01-08T05:44:46.000Z | test2.py | juanmed/singleshot6Dpose | a32d5159d557451ac3ed710ca7d4da6f7c64ff52 | [
"MIT"
] | null | null | null | test2.py | juanmed/singleshot6Dpose | a32d5159d557451ac3ed710ca7d4da6f7c64ff52 | [
"MIT"
] | 1 | 2019-07-11T09:20:25.000Z | 2019-07-11T09:20:25.000Z | # import support libraries
import os
import time
import numpy as np
# import main working libraries
import cv2
import torch
from torch.autograd import Variable
from torchvision import transforms
from PIL import Image
# import app libraries
from darknet import Darknet
from utils import *
from MeshPly import MeshPly
... | 40.115646 | 187 | 0.598186 | 3,721 | 23,588 | 3.609245 | 0.100779 | 0.077141 | 0.020849 | 0.014296 | 0.481608 | 0.458749 | 0.409829 | 0.34274 | 0.308786 | 0.305063 | 0 | 0.072554 | 0.208835 | 23,588 | 588 | 188 | 40.115646 | 0.64709 | 0.224394 | 0 | 0.135338 | 0 | 0 | 0.023363 | 0 | 0 | 0 | 0 | 0.001701 | 0 | 1 | 0.015038 | false | 0 | 0.045113 | 0.003759 | 0.067669 | 0.037594 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
112fbb6bacb51a637008a37470e77beab2c5a20e | 4,028 | py | Python | nba/model/utils.py | mattdhart/GBling | ed868dccfcaf7588e7a1297f2294fd62b62e43be | [
"Apache-2.0"
] | null | null | null | nba/model/utils.py | mattdhart/GBling | ed868dccfcaf7588e7a1297f2294fd62b62e43be | [
"Apache-2.0"
] | null | null | null | nba/model/utils.py | mattdhart/GBling | ed868dccfcaf7588e7a1297f2294fd62b62e43be | [
"Apache-2.0"
] | null | null | null |
team_abbr_lookup = {
"Toronto Raptors": "TOR",
"Brooklyn Nets": "BRK",
"New York Knicks": "NYK",
"Boston Celtics": "BOS",
"Philadelphia 76ers": "PHI",
"Indiana Pacers": "IND",
"Chicago Bulls": "CHI",
"Cleveland Cavaliers": "CLE",
"Detroit Pistons": "DET",
"Milwaukee Bucks": "MIL... | 29.188406 | 45 | 0.606753 | 415 | 4,028 | 5.86747 | 0.318072 | 0.032854 | 0.021355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050674 | 0.225919 | 4,028 | 137 | 46 | 29.40146 | 0.730276 | 0 | 0 | 0 | 0 | 0 | 0.590266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
11309186f51ff34a8ed70944cd3fd480bd97b840 | 335 | py | Python | FCMDemo_server/main.py | charsyam/AndroidFCMDemo | 67e3bb2fbbdd1bb7ba5e194d064b9f9fc62d5697 | [
"MIT"
] | null | null | null | FCMDemo_server/main.py | charsyam/AndroidFCMDemo | 67e3bb2fbbdd1bb7ba5e194d064b9f9fc62d5697 | [
"MIT"
] | null | null | null | FCMDemo_server/main.py | charsyam/AndroidFCMDemo | 67e3bb2fbbdd1bb7ba5e194d064b9f9fc62d5697 | [
"MIT"
] | null | null | null | from flask import Flask, request
import redis
app = Flask(__name__)
rconn = redis.StrictRedis()
def keygen(key):
return "token:{key}".format(key=key)
@app.route('/api/register', methods=["POST"])
def register_token():
userid = request.form['userid']
token = request.form['token']
rconn.set(keygen(u... | 18.611111 | 45 | 0.683582 | 44 | 335 | 5.090909 | 0.522727 | 0.098214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152239 | 335 | 17 | 46 | 19.705882 | 0.788732 | 0 | 0 | 0 | 0 | 0 | 0.116418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1131872ab4a0cec6debce22fccdd6997732871ab | 3,975 | py | Python | src/tfx_helper/local.py | dlabsai/tfx-helper | 74a05ffeaa14fdc0866d063e36114f7d654a5ae9 | [
"MIT"
] | null | null | null | src/tfx_helper/local.py | dlabsai/tfx-helper | 74a05ffeaa14fdc0866d063e36114f7d654a5ae9 | [
"MIT"
] | null | null | null | src/tfx_helper/local.py | dlabsai/tfx-helper | 74a05ffeaa14fdc0866d063e36114f7d654a5ae9 | [
"MIT"
] | null | null | null | import os.path
from typing import Any, Iterable, Mapping, Optional, Tuple
import tfx.v1 as tfx
from absl import logging
from ml_metadata.proto import metadata_store_pb2
from tfx.dsl.components.base.base_component import BaseComponent
from tfx.types.channel import Channel
from .base import BasePipelineHelper
from .int... | 35.176991 | 84 | 0.646289 | 417 | 3,975 | 5.911271 | 0.232614 | 0.063286 | 0.084787 | 0.032454 | 0.333469 | 0.305071 | 0.292495 | 0.292495 | 0.219878 | 0.219878 | 0 | 0.001037 | 0.272453 | 3,975 | 112 | 85 | 35.491071 | 0.851314 | 0 | 0 | 0.372549 | 0 | 0 | 0.043522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04902 | false | 0 | 0.088235 | 0.029412 | 0.196078 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
113207da50dd87a4fba010e2037a5449d9f802b7 | 7,956 | py | Python | flash_services/utils.py | textbook/flash_services | 9422f48f62dd0cbef4ad5e593513de357496ed72 | [
"0BSD"
] | 2 | 2016-05-05T20:09:45.000Z | 2017-09-29T08:52:56.000Z | flash_services/utils.py | textbook/flash_services | 9422f48f62dd0cbef4ad5e593513de357496ed72 | [
"0BSD"
] | 27 | 2016-04-18T08:32:47.000Z | 2021-11-25T11:05:15.000Z | flash_services/utils.py | textbook/flash_services | 9422f48f62dd0cbef4ad5e593513de357496ed72 | [
"0BSD"
] | null | null | null | """Useful utility functions for services."""
import logging
import re
from datetime import datetime, timezone
from inspect import Parameter, Signature
from dateutil.parser import parse
from humanize import naturaldelta, naturaltime
logger = logging.getLogger(__name__)
WORDS = {'1': 'one', '2': 'two', '3': 'three', ... | 27.434483 | 94 | 0.616013 | 960 | 7,956 | 5.015625 | 0.28125 | 0.031983 | 0.020768 | 0.024299 | 0.135826 | 0.078505 | 0.06189 | 0.046521 | 0.037799 | 0.037799 | 0 | 0.003886 | 0.256159 | 7,956 | 289 | 95 | 27.529412 | 0.809733 | 0.289844 | 0 | 0.147059 | 0 | 0 | 0.205841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0.029412 | 0.044118 | 0 | 0.330882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
11320bf37db22b6bcf70d050353d8c49a441efd2 | 1,084 | py | Python | Python3/0407-Trapping-Rain-Water-II/soln-2.py | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | Python3/0407-Trapping-Rain-Water-II/soln-2.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | Python3/0407-Trapping-Rain-Water-II/soln-2.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution:
def trapRainWater(self, heightMap: List[List[int]]) -> int:
if not any(heightMap):
return 0
m, n = len(heightMap), len(heightMap[0])
pq = []
visited = set()
for j in range(n):
pq.append((heightMap[0][j], 0, j))
pq.append((he... | 38.714286 | 79 | 0.439114 | 154 | 1,084 | 3.090909 | 0.246753 | 0.05042 | 0.142857 | 0.07563 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036309 | 0.390221 | 1,084 | 27 | 80 | 40.148148 | 0.683812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0 | 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 |
11327c7421ed7b895a1170478e90b2ac25d66a3a | 1,233 | py | Python | d16.py | JasperGeurtz/aoc-2020 | 976b54016364e24fdf827b6e60edae82e9458277 | [
"MIT"
] | 1 | 2021-01-03T12:08:39.000Z | 2021-01-03T12:08:39.000Z | d16.py | JasperGeurtz/aoc-2020 | 976b54016364e24fdf827b6e60edae82e9458277 | [
"MIT"
] | null | null | null | d16.py | JasperGeurtz/aoc-2020 | 976b54016364e24fdf827b6e60edae82e9458277 | [
"MIT"
] | null | null | null | import utils
m = utils.opener.raw("input/16.txt")
rm, tm, om = m.split("\n\n")
rules = {}
for line in rm.split("\n"):
name, expr = line.split(": ")
rules[name] = [[int(q) for q in x.split("-")] for x in expr.split(" or ")]
myticket = [int(x) for x in tm.split("\n")[1].split(",")]
tickets = [[int(q) for q in ... | 25.6875 | 97 | 0.518248 | 215 | 1,233 | 2.972093 | 0.27907 | 0.046948 | 0.018779 | 0.025039 | 0.206573 | 0.156495 | 0.156495 | 0.118936 | 0.118936 | 0.118936 | 0 | 0.037322 | 0.261152 | 1,233 | 47 | 98 | 26.234043 | 0.664105 | 0 | 0 | 0 | 0 | 0 | 0.037307 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.027027 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
11331886bdb42648eba47c6e484600231ff9a470 | 4,931 | py | Python | run_portfolio.py | drewvolpe/vc_modeling | 5ba33e41e3c1ffad212d1a0a1abb585b2c384221 | [
"MIT"
] | 1 | 2020-07-12T09:16:37.000Z | 2020-07-12T09:16:37.000Z | run_portfolio.py | drewvolpe/vc_modeling | 5ba33e41e3c1ffad212d1a0a1abb585b2c384221 | [
"MIT"
] | null | null | null | run_portfolio.py | drewvolpe/vc_modeling | 5ba33e41e3c1ffad212d1a0a1abb585b2c384221 | [
"MIT"
] | null | null | null |
from collections import Counter
import random
import math
###
# Parameters of assumptions
###
# How many initial investments and avg check size
num_seed_rounds = 50
invested_per_seed_round = 0.5
# Probabilities of different outcomes (prob, outcome multiple)
outcome_probs_seed = [ [0.01, 100], # N% chance of Mx ret... | 28.33908 | 98 | 0.589536 | 652 | 4,931 | 4.239264 | 0.230061 | 0.034732 | 0.015195 | 0.028944 | 0.299204 | 0.278944 | 0.256874 | 0.201158 | 0.183068 | 0.115051 | 0 | 0.032553 | 0.289799 | 4,931 | 173 | 99 | 28.50289 | 0.75671 | 0.089231 | 0 | 0.165138 | 0 | 0 | 0.12098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091743 | false | 0 | 0.027523 | 0.036697 | 0.192661 | 0.12844 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
11344bfdd8f3f077e971333f0359d4844c75765b | 611 | py | Python | tests/__init__.py | rhit-goldmate/lab-1 | 4f9f606f24c783495a246c13bde1f24a44bcf247 | [
"MIT"
] | null | null | null | tests/__init__.py | rhit-goldmate/lab-1 | 4f9f606f24c783495a246c13bde1f24a44bcf247 | [
"MIT"
] | null | null | null | tests/__init__.py | rhit-goldmate/lab-1 | 4f9f606f24c783495a246c13bde1f24a44bcf247 | [
"MIT"
] | 1 | 2021-09-13T14:47:48.000Z | 2021-09-13T14:47:48.000Z | import os
from flask import Blueprint, Flask
def create_app(opts = {}):
app = Flask(__name__)
# We will learn how to store our secrets properly in a few short weeks.
# In the meantime, we'll use this:
app.config['SECRET_KEY'] = os.getenv('SECRET_KEY') or "Don't ever store secrets in your actual code"
... | 35.941176 | 104 | 0.728314 | 92 | 611 | 4.641304 | 0.706522 | 0.063232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002024 | 0.191489 | 611 | 17 | 105 | 35.941176 | 0.862348 | 0.283142 | 0 | 0 | 0 | 0 | 0.252874 | 0.105747 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
113a13cfc94224ffc2876a0d52f150f295d86f1c | 20,820 | py | Python | jscodestyle/main.py | zeth/jscodestyle | 43c98de7b544bf2203b23792677a7cefb5daf1d9 | [
"Apache-2.0"
] | null | null | null | jscodestyle/main.py | zeth/jscodestyle | 43c98de7b544bf2203b23792677a7cefb5daf1d9 | [
"Apache-2.0"
] | null | null | null | jscodestyle/main.py | zeth/jscodestyle | 43c98de7b544bf2203b23792677a7cefb5daf1d9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2018 The JsCodeStyle Authors.
# Copyright 2007 The Closure Linter Authors. 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... | 33.365385 | 89 | 0.579443 | 2,404 | 20,820 | 4.851082 | 0.219218 | 0.034299 | 0.040816 | 0.021609 | 0.213171 | 0.18676 | 0.12605 | 0.12605 | 0.112845 | 0.097925 | 0 | 0.003245 | 0.333958 | 20,820 | 623 | 90 | 33.418941 | 0.837744 | 0.210711 | 0 | 0.30829 | 0 | 0 | 0.178934 | 0.00895 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044041 | false | 0 | 0.036269 | 0 | 0.095855 | 0.049223 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1140d660290898ce8ff771db41de2f9db2a0fbed | 350 | py | Python | tests/test_helpers.py | jlmcgehee21/disterminal | 0517483960459d81f2f7361e53c91bd12c12130b | [
"MIT"
] | 10 | 2018-03-25T19:14:21.000Z | 2018-05-20T04:04:27.000Z | tests/test_helpers.py | jlmcgehee21/disterminal | 0517483960459d81f2f7361e53c91bd12c12130b | [
"MIT"
] | 1 | 2018-04-06T17:33:45.000Z | 2018-04-06T17:33:45.000Z | tests/test_helpers.py | jlmcgehee21/disterminal | 0517483960459d81f2f7361e53c91bd12c12130b | [
"MIT"
] | null | null | null | import pytest
from disterminal import helpers
import numpy as np
def main_call(x):
out = np.zeros(x.shape)
out[1] = 0.1
out[-1] = 0.1
return out
def test_autorange():
x = helpers.autorange(main_call, '')
assert x.shape == (100,)
assert x.min() == pytest.approx(-9999.95)
assert x.ma... | 17.5 | 45 | 0.625714 | 55 | 350 | 3.927273 | 0.490909 | 0.097222 | 0.046296 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077491 | 0.225714 | 350 | 19 | 46 | 18.421053 | 0.719557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
114113c2327e984853bcfe3d2bdb8fbe4a9538bc | 4,149 | py | Python | tests/test_lookups.py | gluk-w/python-tuple-lookup | b0c44bb8fb9c94925c97b54b02ffc8abeb570914 | [
"MIT"
] | null | null | null | tests/test_lookups.py | gluk-w/python-tuple-lookup | b0c44bb8fb9c94925c97b54b02ffc8abeb570914 | [
"MIT"
] | null | null | null | tests/test_lookups.py | gluk-w/python-tuple-lookup | b0c44bb8fb9c94925c97b54b02ffc8abeb570914 | [
"MIT"
] | null | null | null | import pytest
from listlookup import ListLookup
sample_list = [
{"id": 1, "country": "us", "name": "Atlanta"},
{"id": 2, "country": "us", "name": "Miami"},
{"id": 3, "country": "uk", "name": "Britain"},
{"id": 5, "country": "uk", "name": "Bermingham"},
{"id": 4, "country": "ca", "name": "Barrie"},... | 31.195489 | 114 | 0.614124 | 547 | 4,149 | 4.561243 | 0.140768 | 0.096192 | 0.054509 | 0.083367 | 0.703407 | 0.69018 | 0.624449 | 0.54509 | 0.47495 | 0.468136 | 0 | 0.012767 | 0.188238 | 4,149 | 133 | 115 | 31.195489 | 0.728029 | 0.011569 | 0 | 0.423913 | 0 | 0 | 0.134851 | 0 | 0 | 0 | 0 | 0 | 0.23913 | 1 | 0.097826 | false | 0 | 0.021739 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1143cbb13d91eca82341ad8a60ceba57b21e31ee | 13,697 | py | Python | ImagePipeline_utils.py | titsitits/image-restoration | 7434917c8e14c9c78cd1a9aa06ff1a058368543b | [
"Apache-2.0"
] | 18 | 2019-07-24T15:58:11.000Z | 2022-02-16T04:14:15.000Z | ImagePipeline_utils.py | titsitits/image-restoration | 7434917c8e14c9c78cd1a9aa06ff1a058368543b | [
"Apache-2.0"
] | 2 | 2020-09-15T10:26:31.000Z | 2021-02-23T16:52:50.000Z | ImagePipeline_utils.py | titsitits/image-restoration | 7434917c8e14c9c78cd1a9aa06ff1a058368543b | [
"Apache-2.0"
] | 7 | 2019-10-01T07:28:58.000Z | 2022-01-08T12:45:01.000Z | import time
import numpy as np
import os, sys, shutil
from contextlib import contextmanager
from numba import cuda as ncuda
import PIL
from PIL import Image, ImageFilter, ImageDraw, ImageFont
import cv2
import contextlib
from copy import deepcopy
import subprocess
from glob import glob
from os import path as osp
from o... | 24.768535 | 172 | 0.678032 | 2,074 | 13,697 | 4.40405 | 0.187078 | 0.023648 | 0.018612 | 0.020801 | 0.340158 | 0.266915 | 0.239654 | 0.210204 | 0.189621 | 0.158091 | 0 | 0.010962 | 0.19413 | 13,697 | 552 | 173 | 24.813406 | 0.816543 | 0.154851 | 0 | 0.361516 | 0 | 0 | 0.059253 | 0 | 0 | 0 | 0 | 0 | 0.002915 | 1 | 0.093294 | false | 0 | 0.052478 | 0.008746 | 0.183673 | 0.049563 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1144dfe3b0de92ac50325fd69bcff937bffb9527 | 371 | py | Python | py_tea_code/2.mypro_io/test_os/my05.py | qq4215279/study_python | b0eb9dedfc4abb2fd6c024a599e7375869c3d77a | [
"Apache-2.0"
] | null | null | null | py_tea_code/2.mypro_io/test_os/my05.py | qq4215279/study_python | b0eb9dedfc4abb2fd6c024a599e7375869c3d77a | [
"Apache-2.0"
] | null | null | null | py_tea_code/2.mypro_io/test_os/my05.py | qq4215279/study_python | b0eb9dedfc4abb2fd6c024a599e7375869c3d77a | [
"Apache-2.0"
] | null | null | null | #coding=utf-8
#测试os.walk()递归遍历所有的子目录和子文件
import os
all_files = []
path = os.getcwd()
list_files = os.walk(path)
for dirpath,dirnames,filenames in list_files:
for dir in dirnames:
all_files.append(os.path.join(dirpath,dir))
for file in filenames:
all_files.append(os.path.join(dirpath,file))
#... | 20.611111 | 52 | 0.71159 | 57 | 371 | 4.526316 | 0.421053 | 0.124031 | 0.108527 | 0.124031 | 0.24031 | 0.24031 | 0.24031 | 0 | 0 | 0 | 0 | 0.003257 | 0.172507 | 371 | 18 | 53 | 20.611111 | 0.837134 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 |
1144ebed87008c80403fadd34329c7f64e53da5b | 2,801 | py | Python | lib_drl/layer_utils/proposal_layer.py | chang010453/GRP-HAI | 60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22 | [
"MIT"
] | null | null | null | lib_drl/layer_utils/proposal_layer.py | chang010453/GRP-HAI | 60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22 | [
"MIT"
] | null | null | null | lib_drl/layer_utils/proposal_layer.py | chang010453/GRP-HAI | 60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22 | [
"MIT"
] | null | null | null | # --------------------------------------------------------
# Faster R-CNN
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick and Xinlei Chen
# --------------------------------------------------------
from __future__ import absolute_import
from __future__ import division
from __future_... | 35.455696 | 80 | 0.670118 | 399 | 2,801 | 4.441103 | 0.353383 | 0.035553 | 0.055869 | 0.020316 | 0.310384 | 0.291196 | 0.269752 | 0.269752 | 0.269752 | 0.234763 | 0 | 0.014166 | 0.193502 | 2,801 | 79 | 81 | 35.455696 | 0.770252 | 0.246341 | 0 | 0.186047 | 0 | 0 | 0.002424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.162791 | 0 | 0.255814 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1145f38136a9b2f21e2507449a336cde84624ed4 | 14,999 | py | Python | tools/verification/trt_verify.py | mrsempress/mmdetection | cb650560c97a2fe56a9b369a1abc8ec17e06583a | [
"Apache-2.0"
] | null | null | null | tools/verification/trt_verify.py | mrsempress/mmdetection | cb650560c97a2fe56a9b369a1abc8ec17e06583a | [
"Apache-2.0"
] | null | null | null | tools/verification/trt_verify.py | mrsempress/mmdetection | cb650560c97a2fe56a9b369a1abc8ec17e06583a | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
import os
import time
import numpy as np
import tensorrt as trt
import pycuda.driver as cuda
import pycuda.autoinit
import cv2
import mmcv
from tqdm import tqdm
import pickle as pkl
from vis_util import show_corners
from tools.model_zoo import model_zoo as zoo
TRT_LOGGER = trt.L... | 37.876263 | 151 | 0.626775 | 1,986 | 14,999 | 4.481873 | 0.250252 | 0.017976 | 0.015729 | 0.012583 | 0.158746 | 0.125716 | 0.081901 | 0.06078 | 0.033592 | 0.028761 | 0 | 0.063529 | 0.263284 | 14,999 | 395 | 152 | 37.972152 | 0.741991 | 0.191079 | 0 | 0.065744 | 0 | 0 | 0.126222 | 0.066092 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051903 | false | 0 | 0.044983 | 0.00692 | 0.141869 | 0.038062 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1146252ac942d4c9ff4deece36ba6f7c91187e06 | 1,741 | py | Python | Main.py | 0ne0rZer0/Mon-T-Python | c263ed540d811a8bc238b859f03a52cc1151779c | [
"MIT"
] | null | null | null | Main.py | 0ne0rZer0/Mon-T-Python | c263ed540d811a8bc238b859f03a52cc1151779c | [
"MIT"
] | null | null | null | Main.py | 0ne0rZer0/Mon-T-Python | c263ed540d811a8bc238b859f03a52cc1151779c | [
"MIT"
] | null | null | null | import os, time, sys, hashlib
# Python Recreation of MonitorSauraus Rex.
# Originally Developed by Luke Barlow, Dayan Patel, Rob Shire, Sian Skiggs.
# Aims:
# - Detect Rapid File Changes
# - Cut Wifi Connections
# - Create Logs for running processes at time of trigger, find source infection fil... | 27.634921 | 151 | 0.66054 | 227 | 1,741 | 5.052863 | 0.572687 | 0.015693 | 0.041848 | 0.05231 | 0.150828 | 0.101133 | 0.101133 | 0.101133 | 0.101133 | 0.101133 | 0 | 0.020849 | 0.228604 | 1,741 | 62 | 152 | 28.080645 | 0.833209 | 0.529581 | 0 | 0.166667 | 0 | 0 | 0.121253 | 0.114441 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.041667 | 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 |
1148e9602cf3ea5d501cac86ca50ffbe359518e0 | 4,444 | py | Python | src/Competition/4.25.com3.py | Peefy/PeefyLeetCode | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | [
"Apache-2.0"
] | 2 | 2018-05-03T07:50:03.000Z | 2018-06-17T04:32:13.000Z | src/Competition/4.25.com3.py | Peefy/PeefyLeetCode | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | [
"Apache-2.0"
] | null | null | null | src/Competition/4.25.com3.py | Peefy/PeefyLeetCode | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | [
"Apache-2.0"
] | 3 | 2018-11-09T14:18:11.000Z | 2021-11-17T15:23:52.000Z |
import math
class Solution(object):
def bfs(self, maze, i, j, fx, fy, m, n):
if i == fx and j == fy:
return 0
path = 0
bfsqueue = []
bfsvisit = [[0 for j in range(n)] for i in range(m)]
bfscost = [[math.inf for j in range(n)] for i in range(m)]
bfsvisit... | 37.982906 | 108 | 0.464446 | 587 | 4,444 | 3.366269 | 0.112436 | 0.121457 | 0.072874 | 0.020243 | 0.56832 | 0.531377 | 0.488866 | 0.436235 | 0.436235 | 0.406883 | 0 | 0.020045 | 0.405041 | 4,444 | 116 | 109 | 38.310345 | 0.727307 | 0 | 0 | 0.229358 | 0 | 0 | 0.009683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027523 | false | 0 | 0.009174 | 0.009174 | 0.119266 | 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 |
11499a7441906f3bce3d215812d969fa784411f0 | 3,836 | py | Python | coinextAPI.py | R-Mascarenhas/CryptoTrade | 491a7a2e562694312843fbc58a003904d3d97000 | [
"Apache-2.0"
] | 1 | 2021-05-28T15:31:53.000Z | 2021-05-28T15:31:53.000Z | coinextAPI.py | R-Mascarenhas/CryptoTrade | 491a7a2e562694312843fbc58a003904d3d97000 | [
"Apache-2.0"
] | null | null | null | coinextAPI.py | R-Mascarenhas/CryptoTrade | 491a7a2e562694312843fbc58a003904d3d97000 | [
"Apache-2.0"
] | null | null | null | import requests
import json
from datetime import date, datetime, timedelta
class Coinext:
def __init__(self, ativo):
self.ativo = ativo
self.urlCoinext = 'https://api.coinext.com.br:8443/AP/'
def service_url(service_name):
return 'https://api.coinext.com.br:8443/AP/%s' % servic... | 36.188679 | 124 | 0.618352 | 390 | 3,836 | 6.015385 | 0.3 | 0.034101 | 0.072464 | 0.063086 | 0.461637 | 0.42029 | 0.336743 | 0.249361 | 0.249361 | 0.230605 | 0 | 0.005624 | 0.258342 | 3,836 | 106 | 125 | 36.188679 | 0.818981 | 0.122002 | 0 | 0.253333 | 0 | 0 | 0.148765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.013333 | 0.04 | 0.08 | 0.44 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
11499dc46efd3a0f04d31a58e295c03134ec2637 | 469 | py | Python | example/soft_spi_example.py | amaork/raspi-io | aaea4532569010a64f3c54036b9db7eb81515d1a | [
"MIT"
] | 8 | 2018-02-28T16:02:36.000Z | 2021-08-06T12:57:39.000Z | example/soft_spi_example.py | amaork/raspi-io | aaea4532569010a64f3c54036b9db7eb81515d1a | [
"MIT"
] | null | null | null | example/soft_spi_example.py | amaork/raspi-io | aaea4532569010a64f3c54036b9db7eb81515d1a | [
"MIT"
] | 1 | 2019-05-08T06:50:33.000Z | 2019-05-08T06:50:33.000Z | from raspi_io import SoftSPI, GPIO
import raspi_io.utility as utility
if __name__ == "__main__":
address = utility.scan_server(0.05)[0]
cpld = SoftSPI(address, GPIO.BCM, cs=7, clk=11, mosi=10, miso=9, bits_per_word=10)
flash = SoftSPI(address, GPIO.BCM, cs=8, clk=11, mosi=10, miso=9, bits_per_word=8)
... | 31.266667 | 86 | 0.66951 | 77 | 469 | 3.87013 | 0.545455 | 0.120805 | 0.120805 | 0.14094 | 0.33557 | 0.181208 | 0.181208 | 0.181208 | 0.181208 | 0 | 0 | 0.085052 | 0.172708 | 469 | 14 | 87 | 33.5 | 0.68299 | 0 | 0 | 0 | 0 | 0 | 0.017058 | 0 | 0 | 0 | 0.040512 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1149ea534c3710b9c8fba988306c661b296e5d6e | 342 | py | Python | Python3/0678-Valid-Parenthesis-String/soln.py | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | Python3/0678-Valid-Parenthesis-String/soln.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | Python3/0678-Valid-Parenthesis-String/soln.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution:
def checkValidString(self, s):
"""
:type s: str
:rtype: bool
"""
cmin = cmax = 0
for ch in s:
cmax = cmax - 1 if ch == ')' else cmax + 1
cmin = cmin + 1 if ch == '(' else max(cmin - 1, 0)
if cmax < 0: return False
... | 28.5 | 62 | 0.432749 | 44 | 342 | 3.363636 | 0.5 | 0.067568 | 0.067568 | 0.121622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042328 | 0.447368 | 342 | 12 | 63 | 28.5 | 0.740741 | 0.073099 | 0 | 0 | 0 | 0 | 0.006993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
114a920b441f7acbb102aa82afab60cd9f2a194e | 2,527 | py | Python | video/train_vqvae_lstm.py | arash-safari/vp | 377e0172112157b79690b32349481a17e7590063 | [
"MIT"
] | null | null | null | video/train_vqvae_lstm.py | arash-safari/vp | 377e0172112157b79690b32349481a17e7590063 | [
"MIT"
] | null | null | null | video/train_vqvae_lstm.py | arash-safari/vp | 377e0172112157b79690b32349481a17e7590063 | [
"MIT"
] | null | null | null | from torch import nn, optim
from torch.utils.tensorboard import SummaryWriter
from tqdm import tqdm
import torch
def get_optimizer(model, lr):
return optim.Adam(model.parameters(), lr=lr)
def _to_one_hot(y, num_classes):
scatter_dim = len(y.size())
y_tensor = y.view(*y.size(), -1)
zeros = torch.zero... | 35.591549 | 117 | 0.550455 | 322 | 2,527 | 4.099379 | 0.341615 | 0.022727 | 0.018182 | 0.028788 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022635 | 0.318164 | 2,527 | 70 | 118 | 36.1 | 0.743471 | 0 | 0 | 0 | 0 | 0 | 0.074397 | 0.031658 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.070175 | 0.017544 | 0.192982 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
114baac9b0ba0fd601c9c440b172f038a36ec799 | 307 | py | Python | Curso_de_Python_3_do_Basico_Ao_Avancado_Udemy/aula069/zip_e_zip_longest.py | DanilooSilva/Cursos_de_Python | 8f167a4c6e16f01601e23b6f107578aa1454472d | [
"MIT"
] | null | null | null | Curso_de_Python_3_do_Basico_Ao_Avancado_Udemy/aula069/zip_e_zip_longest.py | DanilooSilva/Cursos_de_Python | 8f167a4c6e16f01601e23b6f107578aa1454472d | [
"MIT"
] | null | null | null | Curso_de_Python_3_do_Basico_Ao_Avancado_Udemy/aula069/zip_e_zip_longest.py | DanilooSilva/Cursos_de_Python | 8f167a4c6e16f01601e23b6f107578aa1454472d | [
"MIT"
] | null | null | null | """
Zip - Unindo iteráveis
Zip_longest _ Itertools
"""
from itertools import zip_longest, count
index = count()
cidades = ['Sao Paulo', 'Belo Horizonte', 'Salvador', 'Monte Belo']
estados = ['SP', 'MG', 'BA']
cidades_estados = zip_longest(cidades, estados)
for valor in cidades_estados:
print(valor) | 20.466667 | 67 | 0.70684 | 39 | 307 | 5.410256 | 0.615385 | 0.14218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153094 | 307 | 15 | 68 | 20.466667 | 0.811538 | 0.149837 | 0 | 0 | 0 | 0 | 0.185039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
114bfce52e4cd09b2cceb92b610dc1db5f94447b | 7,087 | py | Python | VoiceAssistant/speechrecognition/neuralnet/train.py | Reyansh0667/A-Programmer-AI-Voice-Assistant | 7350050515fe333627c9c27b17d1e98d99b8a5c2 | [
"MIT"
] | 575 | 2020-05-29T07:31:40.000Z | 2022-03-31T16:06:48.000Z | VoiceAssistant/speechrecognition/neuralnet/train.py | Reyansh0667/A-Programmer-AI-Voice-Assistant | 7350050515fe333627c9c27b17d1e98d99b8a5c2 | [
"MIT"
] | 67 | 2020-08-05T16:17:28.000Z | 2022-03-12T09:04:33.000Z | VoiceAssistant/speechrecognition/neuralnet/train.py | Reyansh0667/A-Programmer-AI-Voice-Assistant | 7350050515fe333627c9c27b17d1e98d99b8a5c2 | [
"MIT"
] | 259 | 2020-05-30T15:04:59.000Z | 2022-03-30T02:56:03.000Z | import os
import ast
import torch
import torch.nn as nn
from torch.nn import functional as F
import torch.optim as optim
from torch.utils.data import DataLoader
from pytorch_lightning.core.lightning import LightningModule
from pytorch_lightning import Trainer
from argparse import ArgumentParser
from model import Speech... | 43.478528 | 111 | 0.658389 | 892 | 7,087 | 5.039238 | 0.258969 | 0.03604 | 0.068076 | 0.015128 | 0.255617 | 0.193993 | 0.178865 | 0.135706 | 0.121468 | 0.082314 | 0 | 0.007349 | 0.231974 | 7,087 | 163 | 112 | 43.478528 | 0.818482 | 0.011712 | 0 | 0.075188 | 0 | 0 | 0.147 | 0.003429 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082707 | false | 0 | 0.105263 | 0.015038 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
114f19bb66b60d61b441f7697a5eae83b5d30c4e | 596 | py | Python | DRL/models/oct/18-argon/session1/reward.py | EXYNOS-999/AWS_JPL_DRL | ea9df7f293058b0ca2dc63753e68182fcc5380f5 | [
"Apache-2.0"
] | null | null | null | DRL/models/oct/18-argon/session1/reward.py | EXYNOS-999/AWS_JPL_DRL | ea9df7f293058b0ca2dc63753e68182fcc5380f5 | [
"Apache-2.0"
] | 1 | 2020-01-08T06:52:03.000Z | 2020-01-08T07:05:44.000Z | DRL/models/oct/18-argon/session1a/reward.py | EXYNOS-999/AWS_JPL_DRL | ea9df7f293058b0ca2dc63753e68182fcc5380f5 | [
"Apache-2.0"
] | null | null | null | """
AWS DeepRacer reward function using only progress
"""
#===============================================================================
#
# REWARD
#
#===============================================================================
def reward_function(params):
# Skipping the explanation and verbose math here...
... | 27.090909 | 80 | 0.458054 | 56 | 596 | 4.785714 | 0.75 | 0.104478 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02537 | 0.206376 | 596 | 21 | 81 | 28.380952 | 0.541226 | 0.540268 | 0 | 0 | 0 | 0 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 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 |
114fdc8df483131a51698126243a63c5be6a6a0e | 579 | py | Python | djcelery_model/tests/testapp/tasks.py | idanshimon/django-celery-model | 0127bdf7a30ca97a2f0054413c7892477bd03d2f | [
"MIT"
] | null | null | null | djcelery_model/tests/testapp/tasks.py | idanshimon/django-celery-model | 0127bdf7a30ca97a2f0054413c7892477bd03d2f | [
"MIT"
] | 5 | 2020-07-13T17:33:29.000Z | 2020-09-11T16:21:54.000Z | djcelery_model/tests/testapp/tasks.py | idanshimon/django-celery-model | 0127bdf7a30ca97a2f0054413c7892477bd03d2f | [
"MIT"
] | 1 | 2020-12-07T13:27:02.000Z | 2020-12-07T13:27:02.000Z | from __future__ import absolute_import, unicode_literals
from hashlib import sha1
from time import sleep
from celery import shared_task
from .models import JPEGFile
@shared_task
def calculate_etag(pk):
jpeg = JPEGFile.objects.get(pk=pk)
jpeg.etag = sha1(jpeg.file.read()).hexdigest()
sleep(5)
jpeg.sav... | 19.3 | 56 | 0.749568 | 85 | 579 | 4.905882 | 0.494118 | 0.119904 | 0.100719 | 0.129496 | 0.100719 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.145078 | 579 | 29 | 57 | 19.965517 | 0.832323 | 0 | 0 | 0.2 | 0 | 0 | 0.02418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.25 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1157f9d0f3382897cf392138bb21e63963ec687a | 1,311 | py | Python | backtesting/__init__.py | mhconradt/research-tools | b60f42bcce571665d918c1637f532a5a9f5caf4b | [
"MIT"
] | null | null | null | backtesting/__init__.py | mhconradt/research-tools | b60f42bcce571665d918c1637f532a5a9f5caf4b | [
"MIT"
] | null | null | null | backtesting/__init__.py | mhconradt/research-tools | b60f42bcce571665d918c1637f532a5a9f5caf4b | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from backtesting.analysis import plot_cost_proceeds, plot_holdings, \
plot_performance
from backtesting.report import Report
from backtesting.simulation import simulate
def main() -> None:
from string import ascii_uppercase
np.random.seed(42)
markets = list(asci... | 33.615385 | 77 | 0.670481 | 181 | 1,311 | 4.646409 | 0.469613 | 0.047562 | 0.060642 | 0.085612 | 0.03805 | 0.03805 | 0.03805 | 0 | 0 | 0 | 0 | 0.043768 | 0.198322 | 1,311 | 38 | 78 | 34.5 | 0.756422 | 0 | 0 | 0 | 0 | 0 | 0.056445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.21875 | 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 |
11582c4c142efc6bf040a2f6c49882faa3503209 | 24,681 | py | Python | relation_extraction/data/preprocess.py | geetickachauhan/relation-extraction | aa920449b20c7127954eaaaa05244e7fc379e018 | [
"MIT"
] | 19 | 2019-06-24T18:33:36.000Z | 2022-01-21T03:16:12.000Z | relation_extraction/data/preprocess.py | geetickachauhan/relation-extraction | aa920449b20c7127954eaaaa05244e7fc379e018 | [
"MIT"
] | null | null | null | relation_extraction/data/preprocess.py | geetickachauhan/relation-extraction | aa920449b20c7127954eaaaa05244e7fc379e018 | [
"MIT"
] | 11 | 2019-06-02T08:59:16.000Z | 2021-08-23T04:31:07.000Z | '''
Author: Geeticka Chauhan
Performs pre-processing on a csv file independent of the dataset (once converters have been applied).
Refer to notebooks/Data-Preprocessing for more details. The methods are specifically used in the non
_original notebooks for all datasets.
'''
import os, pandas as pd, numpy as np
import ... | 48.680473 | 134 | 0.677485 | 3,489 | 24,681 | 4.532531 | 0.124391 | 0.022954 | 0.033198 | 0.024282 | 0.438093 | 0.371443 | 0.320476 | 0.290945 | 0.259011 | 0.231504 | 0 | 0.01663 | 0.234999 | 24,681 | 506 | 135 | 48.77668 | 0.820931 | 0.233378 | 0 | 0.309192 | 0 | 0 | 0.035615 | 0 | 0 | 0 | 0 | 0.003953 | 0 | 1 | 0.094708 | false | 0 | 0.011142 | 0.008357 | 0.203343 | 0.002786 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
115918a7f0ed81b2789ef7c2542b4e40e41471f5 | 9,868 | py | Python | SWAPLINEmain.py | ernforslab/Hu-et-al._GBMlineage2022 | 508744307746f357c75c1b1e92d9739a11d76870 | [
"BSD-3-Clause"
] | 1 | 2022-03-01T23:51:26.000Z | 2022-03-01T23:51:26.000Z | SWAPLINEmain.py | ernforslab/Hu-et-al._GBMlineage2022 | 508744307746f357c75c1b1e92d9739a11d76870 | [
"BSD-3-Clause"
] | null | null | null | SWAPLINEmain.py | ernforslab/Hu-et-al._GBMlineage2022 | 508744307746f357c75c1b1e92d9739a11d76870 | [
"BSD-3-Clause"
] | 3 | 2022-03-01T23:53:20.000Z | 2022-03-28T08:01:07.000Z | import datetime
import seaborn as sns
import pickle as pickle
from scipy.spatial.distance import cdist, pdist, squareform
import pandas as pd
from sklearn.linear_model import LogisticRegression, LogisticRegressionCV
#from sklearn.model_selection import StratifiedShuffleSplit
from collections import defaultdict... | 48.851485 | 138 | 0.667511 | 1,212 | 9,868 | 5.292079 | 0.212046 | 0.029935 | 0.04116 | 0.022451 | 0.339726 | 0.335048 | 0.322264 | 0.281727 | 0.268631 | 0.259277 | 0 | 0.019483 | 0.204195 | 9,868 | 202 | 139 | 48.851485 | 0.797275 | 0.143697 | 0 | 0.259259 | 0 | 0 | 0.016049 | 0.00462 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.135802 | 0 | 0.216049 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1159ace76695ba7ee79a54fb2dfd624cc5d70bce | 1,988 | py | Python | main.py | b0kch01/ColorfulValorant | 9fdbcc6ca4626fc3d7f0349eb7564ffac1fc26c2 | [
"MIT"
] | 1 | 2021-06-07T13:52:48.000Z | 2021-06-07T13:52:48.000Z | main.py | B0kCh01/ColorfulValorant | 9fdbcc6ca4626fc3d7f0349eb7564ffac1fc26c2 | [
"MIT"
] | 1 | 2021-09-26T10:49:16.000Z | 2021-09-27T03:27:55.000Z | main.py | b0kch01/ColorfulValorant | 9fdbcc6ca4626fc3d7f0349eb7564ffac1fc26c2 | [
"MIT"
] | null | null | null | # Colorful VALORANT by b0kch01
import os, ctypes
# Disable quick-edit mode (pauses bot)
kernel32 = ctypes.windll.kernel32
kernel32.SetConsoleMode(kernel32.GetStdHandle(-10), 128)
from pyfiglet import Figlet
from termcolor import cprint, colored
import colorama
import keyboard
import time
# Fix legacy console color... | 20.708333 | 89 | 0.607646 | 243 | 1,988 | 4.930041 | 0.514403 | 0.040067 | 0.042571 | 0.015025 | 0.03005 | 0.03005 | 0 | 0 | 0 | 0 | 0 | 0.024188 | 0.209759 | 1,988 | 96 | 90 | 20.708333 | 0.736474 | 0.052817 | 0 | 0.111111 | 0 | 0.013889 | 0.344332 | 0.017563 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069444 | false | 0 | 0.097222 | 0 | 0.166667 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
115e6da0adc887e907135e22cea5b992136e5b12 | 791 | py | Python | typus/chars.py | byashimov/typus | b0576d6065163cc46a171b90027f2e3321ae7615 | [
"BSD-3-Clause"
] | 65 | 2016-06-15T08:44:58.000Z | 2021-02-02T10:42:23.000Z | typus/chars.py | byashimov/typus | b0576d6065163cc46a171b90027f2e3321ae7615 | [
"BSD-3-Clause"
] | 4 | 2018-11-15T17:10:05.000Z | 2020-01-09T19:44:39.000Z | typus/chars.py | byashimov/typus | b0576d6065163cc46a171b90027f2e3321ae7615 | [
"BSD-3-Clause"
] | 6 | 2017-10-20T16:28:45.000Z | 2021-11-11T18:41:21.000Z | __all__ = (
'ANYSP',
'DLQUO',
'DPRIME',
'LAQUO',
'LDQUO',
'LSQUO',
'MDASH',
'MDASH_PAIR',
'MINUS',
'NBSP',
'NDASH',
'NNBSP',
'RAQUO',
'RDQUO',
'RSQUO',
'SPRIME',
'THNSP',
'TIMES',
'WHSP',
)
NBSP = '\u00A0'
NNBSP = '\u202F'
THNSP = '\u2009'
WHS... | 16.829787 | 54 | 0.525917 | 93 | 791 | 4.516129 | 0.483871 | 0.119048 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017361 | 0.271808 | 791 | 46 | 55 | 17.195652 | 0.694444 | 0.223767 | 0 | 0 | 0 | 0 | 0.234323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1160107f399496c19ae30848738f2468e25e6508 | 5,259 | py | Python | src/wagtail_live/models.py | Stormheg/wagtail-live | a5eb79024d44c060079ae7d4707d6220ea66ff5b | [
"BSD-3-Clause"
] | null | null | null | src/wagtail_live/models.py | Stormheg/wagtail-live | a5eb79024d44c060079ae7d4707d6220ea66ff5b | [
"BSD-3-Clause"
] | null | null | null | src/wagtail_live/models.py | Stormheg/wagtail-live | a5eb79024d44c060079ae7d4707d6220ea66ff5b | [
"BSD-3-Clause"
] | null | null | null | """ Wagtail Live models."""
from django.db import models
from django.utils.timezone import now
from wagtail.admin.edit_handlers import FieldPanel, StreamFieldPanel
from wagtail.core.fields import StreamField
from .blocks import LivePostBlock
class LivePageMixin(models.Model):
"""A helper class for pages using W... | 28.895604 | 85 | 0.601065 | 652 | 5,259 | 4.630368 | 0.219325 | 0.124545 | 0.060285 | 0.026499 | 0.403445 | 0.297118 | 0.264657 | 0.198741 | 0.198741 | 0.158993 | 0 | 0.001679 | 0.320403 | 5,259 | 181 | 86 | 29.055249 | 0.843033 | 0.338087 | 0 | 0.2 | 0 | 0 | 0.037606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.066667 | 0 | 0.346667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1161293fb1e28e5788a7aa124f039306bb2b8a3e | 2,291 | py | Python | python/test_inprod_analytic.py | solepomies/MAOOAM | 3a30c4030da384a9c4a8510a628c5c1f8ff511cc | [
"MIT"
] | 18 | 2016-04-21T08:45:15.000Z | 2021-11-30T11:21:40.000Z | python/test_inprod_analytic.py | solepomies/MAOOAM | 3a30c4030da384a9c4a8510a628c5c1f8ff511cc | [
"MIT"
] | 1 | 2019-07-15T13:01:21.000Z | 2019-07-15T13:01:21.000Z | python/test_inprod_analytic.py | solepomies/MAOOAM | 3a30c4030da384a9c4a8510a628c5c1f8ff511cc | [
"MIT"
] | 15 | 2016-05-12T12:09:51.000Z | 2021-12-17T18:43:07.000Z | import numpy as np
from inprod_analytic import *
from params_maooam import natm, noc
init_inprod()
real_eps = 2.2204460492503131e-16
"""This module print the coefficients computed in the inprod_analytic module"""
for i in range(0, natm):
for j in range(0, natm):
if(abs(atmos.a[i, j]) >= real_eps):
... | 38.830508 | 79 | 0.395024 | 358 | 2,291 | 2.480447 | 0.131285 | 0.054054 | 0.162162 | 0.108108 | 0.762387 | 0.537162 | 0.483108 | 0.40991 | 0.202703 | 0.202703 | 0 | 0.044914 | 0.339153 | 2,291 | 58 | 80 | 39.5 | 0.541612 | 0 | 0 | 0.24 | 0 | 0 | 0.07327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06 | 0 | 0.06 | 0.24 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
11618053ba49ca083edd95cb07327f86424a2f0d | 849 | py | Python | public/views/fallback.py | jgarber623/openstates.org | 0c514c955f7ffbe079c77c3ec00345b20818ad04 | [
"MIT"
] | null | null | null | public/views/fallback.py | jgarber623/openstates.org | 0c514c955f7ffbe079c77c3ec00345b20818ad04 | [
"MIT"
] | null | null | null | public/views/fallback.py | jgarber623/openstates.org | 0c514c955f7ffbe079c77c3ec00345b20818ad04 | [
"MIT"
] | null | null | null | from django.http import Http404, HttpResponse
from django.shortcuts import redirect
import boto3
from botocore.errorfactory import ClientError
from ..models import PersonProxy
def fallback(request):
BUCKET_NAME = "legacy.openstates.org"
key = request.path.lstrip("/") + "index.html"
s3 = boto3.client("s3"... | 28.3 | 56 | 0.693757 | 95 | 849 | 6.073684 | 0.526316 | 0.07799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016345 | 0.207303 | 849 | 29 | 57 | 29.275862 | 0.84101 | 0 | 0 | 0.086957 | 0 | 0 | 0.076561 | 0.024735 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.217391 | 0 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
116638e98b91db5181f4b52e40fed58dce87a1e3 | 1,038 | py | Python | aws_tests/aws_mlops_scripts/sagemaker_trigger.py | Chronicles-of-AI/archives | 23b978a709c785ff00ec90487039944b8ab8f4fb | [
"MIT"
] | null | null | null | aws_tests/aws_mlops_scripts/sagemaker_trigger.py | Chronicles-of-AI/archives | 23b978a709c785ff00ec90487039944b8ab8f4fb | [
"MIT"
] | null | null | null | aws_tests/aws_mlops_scripts/sagemaker_trigger.py | Chronicles-of-AI/archives | 23b978a709c785ff00ec90487039944b8ab8f4fb | [
"MIT"
] | null | null | null | import os
import sagemaker
from sagemaker import get_execution_role
from sagemaker.tensorflow.estimator import TensorFlow
sagemaker_session = sagemaker.Session()
# role = get_execution_role()
region = sagemaker_session.boto_session.region_name
training_input_path = "s3://intel-edge-poc/mask_dataset_datagen/train/"
v... | 25.95 | 88 | 0.735067 | 135 | 1,038 | 5.362963 | 0.466667 | 0.062155 | 0.082873 | 0.058011 | 0.11326 | 0.11326 | 0.11326 | 0.11326 | 0.11326 | 0 | 0 | 0.015368 | 0.122351 | 1,038 | 39 | 89 | 26.615385 | 0.779363 | 0.149326 | 0 | 0 | 0 | 0 | 0.278221 | 0.13455 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
116ab6cd1db9f2f070145181b5804b80b331c8fe | 2,040 | py | Python | script2.py | joshigarvitgh/image-processing | 70e3ca093882904d5d995153ca079d000996a240 | [
"Apache-2.0"
] | null | null | null | script2.py | joshigarvitgh/image-processing | 70e3ca093882904d5d995153ca079d000996a240 | [
"Apache-2.0"
] | null | null | null | script2.py | joshigarvitgh/image-processing | 70e3ca093882904d5d995153ca079d000996a240 | [
"Apache-2.0"
] | null | null | null | from pyimagesearch.shapedetector import ShapeDetector
from pyimagesearch.colorlabeler import ColorLabeler
import argparse
import imutils
import numpy as np
import cv2
import argparse
import imutils
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
if face_cascade.empty(): raise Exception("you... | 35.789474 | 107 | 0.698039 | 303 | 2,040 | 4.640264 | 0.419142 | 0.023471 | 0.02845 | 0.038407 | 0.16074 | 0.056899 | 0.056899 | 0.056899 | 0.056899 | 0.056899 | 0 | 0.041592 | 0.175 | 2,040 | 56 | 108 | 36.428571 | 0.793821 | 0.232353 | 0 | 0.097561 | 0 | 0 | 0.124116 | 0.022508 | 0 | 0 | 0.002572 | 0 | 0 | 1 | 0 | false | 0 | 0.195122 | 0 | 0.195122 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
116b7b4ac4b9d4a7f8c63237f875c149f4bb08e0 | 2,016 | py | Python | qiskit_code/DeutschJozsa.py | OccumRazor/implement-quantum-algotirhms-with-qiskit | 8574b6505fc34f12eb63e1791e969099d56e3974 | [
"MIT"
] | 3 | 2020-11-03T01:21:48.000Z | 2021-09-23T18:53:40.000Z | qiskit_code/DeutschJozsa.py | OccumRazor/implement-quantum-algotirhms-with-qiskit | 8574b6505fc34f12eb63e1791e969099d56e3974 | [
"MIT"
] | null | null | null | qiskit_code/DeutschJozsa.py | OccumRazor/implement-quantum-algotirhms-with-qiskit | 8574b6505fc34f12eb63e1791e969099d56e3974 | [
"MIT"
] | null | null | null | from qiskit import QuantumRegister,QuantumCircuit
from qiskit.aqua.operators import StateFn
from qiskit.aqua.operators import I
from qiskit_code.quantumMethod import add,ini
from qiskit_code.classicalMethod import Dec2Bi
def DeutschJozsa(l,method):
# Deutsch, D. and Jozsa, R., 1992. Rapid solution of problems b... | 38.037736 | 92 | 0.671131 | 293 | 2,016 | 4.604096 | 0.37884 | 0.071164 | 0.029652 | 0.047443 | 0.211268 | 0.119348 | 0.093403 | 0.093403 | 0.059303 | 0.059303 | 0 | 0.042006 | 0.208829 | 2,016 | 52 | 93 | 38.769231 | 0.803762 | 0.304563 | 0 | 0.243902 | 0 | 0 | 0.034509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.121951 | 0 | 0.146341 | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
116bf2691d7781b16c90385ce38a0af9b3dfe37f | 480 | py | Python | web/products-manager/solve.py | cclauss/fbctf-2019-challenges | 4353c2ce588cf097ac6ca9bcf7b943a99742ac75 | [
"MIT"
] | 213 | 2019-06-14T18:28:40.000Z | 2021-12-27T14:44:45.000Z | web/products-manager/solve.py | cclauss/fbctf-2019-challenges | 4353c2ce588cf097ac6ca9bcf7b943a99742ac75 | [
"MIT"
] | 2 | 2020-06-05T21:14:51.000Z | 2021-06-10T21:34:03.000Z | web/products-manager/solve.py | cclauss/fbctf-2019-challenges | 4353c2ce588cf097ac6ca9bcf7b943a99742ac75 | [
"MIT"
] | 59 | 2019-06-17T17:35:29.000Z | 2021-12-04T22:26:37.000Z | import requests
import random, string
x = ''.join(random.choice(string.ascii_uppercase + string.ascii_lowercase + string.digits) for _ in range(16))
URL = "http://localhost/"
secret = "aA11111111" + x
# Registering a user
requests.post(url = "%s/add.php" % URL, data = {
'name': 'facebook' + ' '*64 + 'abc',
'secr... | 21.818182 | 110 | 0.63125 | 62 | 480 | 4.83871 | 0.612903 | 0.073333 | 0.1 | 0.106667 | 0.146667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030227 | 0.172917 | 480 | 21 | 111 | 22.857143 | 0.725441 | 0.0375 | 0 | 0.266667 | 0 | 0 | 0.223913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
feba32dda1863dbf22b57f349bb7f5c4d2450b8d | 737 | py | Python | app/__main__.py | sabuj073/Pyqt | fd316ca81b57cf45c4b02661ae32d3e87da86643 | [
"MIT"
] | 15 | 2019-07-17T04:35:43.000Z | 2022-03-06T10:56:57.000Z | app/__main__.py | SadeghShabestani/pyqt-gui-template | 7b0be93b28519fecef061ae6fd257b5e1414f609 | [
"MIT"
] | null | null | null | app/__main__.py | SadeghShabestani/pyqt-gui-template | 7b0be93b28519fecef061ae6fd257b5e1414f609 | [
"MIT"
] | 7 | 2019-11-02T05:03:01.000Z | 2022-01-22T07:16:35.000Z | import argparse
import sys
import traceback
from .app import Application
def new_excepthook(type, value, tb):
# by default, Qt does not seem to output any errors, this prevents that
traceback.print_exception(type, value, tb)
sys.excepthook = new_excepthook
def main():
parser = argparse.ArgumentParser... | 20.472222 | 75 | 0.663501 | 92 | 737 | 5.141304 | 0.586957 | 0.054968 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003559 | 0.237449 | 737 | 35 | 76 | 21.057143 | 0.838078 | 0.093623 | 0 | 0 | 0 | 0 | 0.039039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.26087 | 0 | 0.347826 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
febafd98c2edf8a650a93925007e3f317d57cdc1 | 848 | py | Python | test/test_1030.py | ralphribeiro/uri-projecteuler | 7151d86e014aea9c56026cc88f50b4e940117dd8 | [
"MIT"
] | null | null | null | test/test_1030.py | ralphribeiro/uri-projecteuler | 7151d86e014aea9c56026cc88f50b4e940117dd8 | [
"MIT"
] | null | null | null | test/test_1030.py | ralphribeiro/uri-projecteuler | 7151d86e014aea9c56026cc88f50b4e940117dd8 | [
"MIT"
] | null | null | null | from unittest import TestCase
from exercicios.ex1030 import calcula_suicidio
import random
class TestEx1030(TestCase):
def test_saida_com_erro_para_entradas_fora_do_intervalo(self):
chamada = [(0, 10), (10, 0), (10001, 10), (10, 1001)]
esperado = ("Case 1: entrada inválida\n"
... | 29.241379 | 66 | 0.59434 | 105 | 848 | 4.6 | 0.428571 | 0.05176 | 0.132505 | 0.124224 | 0.248447 | 0.248447 | 0.248447 | 0.248447 | 0.248447 | 0 | 0 | 0.089226 | 0.299528 | 848 | 28 | 67 | 30.285714 | 0.723906 | 0 | 0 | 0.210526 | 0 | 0 | 0.162736 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
febd1a039c30d408c01acbf196e318f0a33735b0 | 2,177 | py | Python | src/messageHandler.py | lorandcheng/ee250-final-project | e99da9b0221b4f3fdf4737814b9fa4b9152e15d6 | [
"MIT"
] | null | null | null | src/messageHandler.py | lorandcheng/ee250-final-project | e99da9b0221b4f3fdf4737814b9fa4b9152e15d6 | [
"MIT"
] | null | null | null | src/messageHandler.py | lorandcheng/ee250-final-project | e99da9b0221b4f3fdf4737814b9fa4b9152e15d6 | [
"MIT"
] | null | null | null | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# Author: Lorand Cheng https://github.com/lorandcheng
# Date: Nov 15, 2020
# Project: USC EE250 Final Project, Morse Code Translator and Messenger
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
import... | 28.272727 | 97 | 0.519982 | 203 | 2,177 | 5.541872 | 0.477833 | 0.035556 | 0.034667 | 0.048 | 0.158222 | 0.096 | 0.096 | 0.096 | 0.096 | 0.096 | 0 | 0.010608 | 0.350482 | 2,177 | 76 | 98 | 28.644737 | 0.785007 | 0.284796 | 0 | 0.108108 | 0 | 0 | 0.107543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.108108 | 0 | 0.351351 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
febdebe28a0eb11da7fb60e489e4b8faec751e19 | 1,898 | py | Python | data_loader.py | isLinXu/AIToodlBox | bacdea77b35e370f728c9fd170ad15c0dd112a09 | [
"MIT"
] | 3 | 2021-09-15T02:24:45.000Z | 2021-09-16T03:27:58.000Z | data_loader.py | isLinXu/AIToodlBox | bacdea77b35e370f728c9fd170ad15c0dd112a09 | [
"MIT"
] | null | null | null | data_loader.py | isLinXu/AIToodlBox | bacdea77b35e370f728c9fd170ad15c0dd112a09 | [
"MIT"
] | null | null | null | import numpy as np
import os
class Dataset():
def __init__(self, images, labels):
# convert from [0, 255] -> [0.0, 1.0]
images = images.astype(np.float32)
images = np.multiply(images, 1.0 / 255.0)
self._images = images
self._labels = labels
@property # getter
def ... | 26.361111 | 72 | 0.682824 | 255 | 1,898 | 4.843137 | 0.223529 | 0.0583 | 0.038866 | 0.051012 | 0.344939 | 0.131174 | 0.087449 | 0.087449 | 0.087449 | 0.087449 | 0 | 0.04064 | 0.209168 | 1,898 | 72 | 73 | 26.361111 | 0.782145 | 0.039515 | 0 | 0.083333 | 0 | 0 | 0.051648 | 0.049451 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.020833 | 0.041667 | 0.041667 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
febfb7afb944937a4daedbf45bdc05b9348c3b75 | 305 | py | Python | scripts/pdutil.py | travisdowns/sort-bench | 97e18e08a5c43dec337f01ac7e3c55e5acb37507 | [
"MIT"
] | 50 | 2019-05-23T23:17:19.000Z | 2022-02-19T05:17:00.000Z | scripts/pdutil.py | travisdowns/sort-bench | 97e18e08a5c43dec337f01ac7e3c55e5acb37507 | [
"MIT"
] | 1 | 2021-04-11T09:38:44.000Z | 2021-04-22T15:14:32.000Z | scripts/pdutil.py | travisdowns/sort-bench | 97e18e08a5c43dec337f01ac7e3c55e5acb37507 | [
"MIT"
] | 4 | 2019-05-23T23:08:05.000Z | 2021-10-02T21:49:24.000Z | # renames duplicate columns by suffixing _1, _2 etc
class renamer():
def __init__(self):
self.d = dict()
def __call__(self, x):
if x not in self.d:
self.d[x] = 0
return x
else:
self.d[x] += 1
return "%s_%d" % (x, self.d[x])
| 23.461538 | 51 | 0.481967 | 44 | 305 | 3.090909 | 0.545455 | 0.183824 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.390164 | 305 | 12 | 52 | 25.416667 | 0.709677 | 0.160656 | 0 | 0 | 0 | 0 | 0.019685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fec02f47aa5ff13585413d302b592d2cd4c27b9a | 6,111 | py | Python | sbc_ngs/pathway.py | UoMMIB/SequenceGenie | 65fce1df487afd2de32e9d3ebc487874e71436bc | [
"MIT"
] | 5 | 2019-11-01T19:38:09.000Z | 2021-03-29T16:13:56.000Z | sbc_ngs/pathway.py | UoMMIB/SequenceGenie | 65fce1df487afd2de32e9d3ebc487874e71436bc | [
"MIT"
] | null | null | null | sbc_ngs/pathway.py | UoMMIB/SequenceGenie | 65fce1df487afd2de32e9d3ebc487874e71436bc | [
"MIT"
] | 3 | 2021-05-05T20:01:24.000Z | 2022-03-11T15:20:51.000Z | '''
sbc-ngs (c) University of Manchester 2019
All rights reserved.
@author: neilswainston
'''
# pylint: disable=no-member
# pylint: disable=too-few-public-methods
# pylint: disable=too-many-arguments
# pylint: disable=too-many-instance-attributes
# pylint: disable=unused-argument
# pylint: disable=wrong-import-order
... | 34.139665 | 79 | 0.540992 | 655 | 6,111 | 4.699237 | 0.28855 | 0.05718 | 0.022742 | 0.015595 | 0.056205 | 0.050032 | 0 | 0 | 0 | 0 | 0 | 0.004578 | 0.35657 | 6,111 | 178 | 80 | 34.331461 | 0.77823 | 0.097693 | 0 | 0.035714 | 0 | 0 | 0.049441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.071429 | 0 | 0.1875 | 0.026786 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fec152e2fa033df2f5583f6a022b052c96a15f0b | 877 | py | Python | src/problem12.py | aitc-h/euler | 6fc07c741c31a632ce6f11f65c11007cd6c7eb29 | [
"MIT"
] | null | null | null | src/problem12.py | aitc-h/euler | 6fc07c741c31a632ce6f11f65c11007cd6c7eb29 | [
"MIT"
] | null | null | null | src/problem12.py | aitc-h/euler | 6fc07c741c31a632ce6f11f65c11007cd6c7eb29 | [
"MIT"
] | null | null | null | """
Problem 12
Highly divisible triangular number
"""
from utility.decorators import timeit, printit
from utility.math_f import sum_naturals_to_n, get_divisors
from math import ceil, sqrt
def div_count(n):
# Returns the count of divisors of a number
total = 0
for i in range(1, int(ceil(sqrt(n)))+... | 23.078947 | 81 | 0.575827 | 147 | 877 | 3.292517 | 0.394558 | 0.082645 | 0.092975 | 0.057851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041736 | 0.31699 | 877 | 37 | 82 | 23.702703 | 0.766277 | 0.238312 | 0 | 0 | 0 | 0 | 0.012327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.125 | 0 | 0.291667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fec193e201ee4720e007a3de6a116f0b7db806c8 | 469 | py | Python | atcoder/abc183D_water_heater.py | uninhm/kyopro | bf6ed9cbf6a5e46cde0291f7aa9d91a8ddf1f5a3 | [
"BSD-3-Clause"
] | 31 | 2020-05-13T01:07:55.000Z | 2021-07-13T07:53:26.000Z | atcoder/abc183D_water_heater.py | uninhm/kyopro | bf6ed9cbf6a5e46cde0291f7aa9d91a8ddf1f5a3 | [
"BSD-3-Clause"
] | 10 | 2020-05-20T07:22:09.000Z | 2021-07-19T03:52:13.000Z | atcoder/abc183D_water_heater.py | uninhm/kyopro | bf6ed9cbf6a5e46cde0291f7aa9d91a8ddf1f5a3 | [
"BSD-3-Clause"
] | 14 | 2020-05-11T05:58:36.000Z | 2021-12-07T03:20:43.000Z | # uninhm
# https://atcoder.jp/contests/abc183/tasks/abc183_d
# data structures, sorting
n, w = map(int, input().split())
needed = []
for _ in range(n):
s, t, p = map(int, input().split())
needed.append((s, p))
needed.append((t, -p))
needed.sort()
cum = 0
for i in range(len(needed)):
cum += needed[i]... | 18.038462 | 61 | 0.558635 | 74 | 469 | 3.513514 | 0.513514 | 0.080769 | 0.084615 | 0.123077 | 0.169231 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03352 | 0.236674 | 469 | 25 | 62 | 18.76 | 0.692737 | 0.172708 | 0 | 0 | 0 | 0 | 0.013021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fec1c9c0fc7bf9b096e6c493b061466eec3c8572 | 635 | py | Python | inc/ReiSlack.py | REI-Systems/REISystems-OGPS-NYC-heartbeat | 126ffd4ee2e80f346b00c3b2241d30c6ce7d93c0 | [
"Apache-2.0"
] | null | null | null | inc/ReiSlack.py | REI-Systems/REISystems-OGPS-NYC-heartbeat | 126ffd4ee2e80f346b00c3b2241d30c6ce7d93c0 | [
"Apache-2.0"
] | null | null | null | inc/ReiSlack.py | REI-Systems/REISystems-OGPS-NYC-heartbeat | 126ffd4ee2e80f346b00c3b2241d30c6ce7d93c0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os
from slackclient import SlackClient
def send(msg="no msg", rsp="ok"):
channel = os.environ['SLACK_CHANNEL']
if "ok" == rsp:
if 'SKIP_OK_MESSAGES' in os.environ and os.environ['SKIP_OK_MESSAGES']:
return
if 'SLACK_OK_CHANNEL' in os.environ and os.e... | 24.423077 | 79 | 0.609449 | 84 | 635 | 4.416667 | 0.416667 | 0.169811 | 0.150943 | 0.113208 | 0.22372 | 0.123989 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261417 | 635 | 25 | 80 | 25.4 | 0.791045 | 0.031496 | 0 | 0 | 0 | 0 | 0.260586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 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 |
fec30b1306550fa1e0b5402e2443b04d91d4ab0b | 678 | py | Python | examples/human.py | VetoProjects/AudioPython | 18f5e2c10158bf8cfd15fceb84240a420bf9c677 | [
"MIT"
] | 8 | 2015-04-28T15:31:44.000Z | 2017-02-24T22:57:37.000Z | examples/human.py | VetoProjects/AudioPython | 18f5e2c10158bf8cfd15fceb84240a420bf9c677 | [
"MIT"
] | null | null | null | examples/human.py | VetoProjects/AudioPython | 18f5e2c10158bf8cfd15fceb84240a420bf9c677 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Idea taken from www.wavepot.com
import math
from AudioPython import *
from AudioPython.dsp import *
def bass_osc(n):
tri = triangle_wave(frequency=n, amplitude=0.24)
sine = sine_wave(frequency=n*32, amplitude=0.052)
while True:
yield next(tri) + next(sine)
def sub(gen, ... | 21.870968 | 79 | 0.59587 | 105 | 678 | 3.790476 | 0.52381 | 0.052764 | 0.040201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080868 | 0.252212 | 678 | 30 | 80 | 22.6 | 0.704142 | 0.076696 | 0 | 0.105263 | 0 | 0 | 0.012821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fec6c828f7c2c56e87c8344597efe1d8c44178c3 | 986 | py | Python | hood/urls.py | virginiah894/Hood-alert | 9c00ca7e4bec3d8c46ff4b9b74f2f770f1c60873 | [
"MIT"
] | 1 | 2020-03-10T18:01:51.000Z | 2020-03-10T18:01:51.000Z | hood/urls.py | virginiah894/Hood-alert | 9c00ca7e4bec3d8c46ff4b9b74f2f770f1c60873 | [
"MIT"
] | 4 | 2020-06-06T01:09:13.000Z | 2021-09-08T01:36:28.000Z | hood/urls.py | virginiah894/Hood-alert | 9c00ca7e4bec3d8c46ff4b9b74f2f770f1c60873 | [
"MIT"
] | null | null | null | from django.urls import path , include
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('', views.home,name='home'),
path('profile/', views.profile , name = 'profile'),
path('update_profile/',views.update_profile,name='update'),
... | 30.8125 | 81 | 0.684584 | 125 | 986 | 5.304 | 0.32 | 0.045249 | 0.042232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143002 | 986 | 32 | 81 | 30.8125 | 0.784615 | 0 | 0 | 0 | 0 | 0 | 0.198582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.190476 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fec70c2989068076b5623aeccec1da14a757918e | 962 | py | Python | base/client/TargetTracker.py | marlamade/generals-bot | b485e416a2c4fc307e7d015ecdb70e278c4c1417 | [
"MIT"
] | null | null | null | base/client/TargetTracker.py | marlamade/generals-bot | b485e416a2c4fc307e7d015ecdb70e278c4c1417 | [
"MIT"
] | null | null | null | base/client/TargetTracker.py | marlamade/generals-bot | b485e416a2c4fc307e7d015ecdb70e278c4c1417 | [
"MIT"
] | null | null | null | from typing import List
from .tile import Tile
class TargetTracker(list):
"""
Track the targets that might be good to attack/explore
"""
def __init__(self, *args, **kwargs):
list.__init__(self, *args, **kwargs)
self.turn_last_updated: int = 0
def update_list(self, target_list: Li... | 29.151515 | 92 | 0.591476 | 130 | 962 | 4.192308 | 0.515385 | 0.058716 | 0.066055 | 0.104587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009274 | 0.327443 | 962 | 32 | 93 | 30.0625 | 0.833076 | 0.182952 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fec96362f67167dcf46b5bbb0c6f46d9d1526eeb | 368 | py | Python | 6/max_average_subarray1.py | IronCore864/leetcode | a62a4cdde9814ae48997176debcaad537f7ad01f | [
"Apache-2.0"
] | 4 | 2018-03-07T02:56:03.000Z | 2021-06-15T05:43:31.000Z | 6/max_average_subarray1.py | IronCore864/leetcode | a62a4cdde9814ae48997176debcaad537f7ad01f | [
"Apache-2.0"
] | null | null | null | 6/max_average_subarray1.py | IronCore864/leetcode | a62a4cdde9814ae48997176debcaad537f7ad01f | [
"Apache-2.0"
] | 1 | 2021-09-02T12:05:15.000Z | 2021-09-02T12:05:15.000Z | class Solution:
def findMaxAverage(self, nums: List[int], k: int) -> float:
pre_sum = sum(nums[0:k])
max_sum = pre_sum
for i in range(len(nums)-k):
next_sum = pre_sum - nums[i] + nums[i + k]
if next_sum > max_sum:
max_sum = next_sum
pre_su... | 26.285714 | 63 | 0.516304 | 54 | 368 | 3.296296 | 0.407407 | 0.134831 | 0.151685 | 0.146067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004386 | 0.380435 | 368 | 13 | 64 | 28.307692 | 0.776316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 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 |
fece96dc896e75a634255768c6898114b3c6f1c0 | 9,568 | py | Python | maps/foliumMaps.py | selinerguncu/Yelp-Spatial-Analysis | befbcb927ef225bda9ffaea0fd41a88344f9693c | [
"MIT"
] | null | null | null | maps/foliumMaps.py | selinerguncu/Yelp-Spatial-Analysis | befbcb927ef225bda9ffaea0fd41a88344f9693c | [
"MIT"
] | null | null | null | maps/foliumMaps.py | selinerguncu/Yelp-Spatial-Analysis | befbcb927ef225bda9ffaea0fd41a88344f9693c | [
"MIT"
] | null | null | null | import folium
from folium import plugins
import numpy as np
import sqlite3 as sqlite
import os
import sys
import pandas as pd
#extract data from yelp DB and clean it:
DB_PATH = "/Users/selinerguncu/Desktop/PythonProjects/Fun Projects/Yelp/data/yelpCleanDB.sqlite"
conn = sqlite.connect(DB_PATH)
##################... | 44.502326 | 302 | 0.666074 | 1,121 | 9,568 | 5.599465 | 0.183765 | 0.062132 | 0.066911 | 0.082842 | 0.616537 | 0.59025 | 0.573044 | 0.536721 | 0.518241 | 0.494982 | 0 | 0.006633 | 0.164925 | 9,568 | 214 | 303 | 44.71028 | 0.778974 | 0.277069 | 0 | 0.436364 | 0 | 0.172727 | 0.46508 | 0.054543 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0 | 0.081818 | 0 | 0.154545 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fed030e5255f1c16fe14660b2bdc69ee621a5da4 | 706 | py | Python | app/integrations/opsgenie.py | cds-snc/sre-bot | b34cdaba357fccbcdbaac1e1ac70ebbe408d7316 | [
"MIT"
] | null | null | null | app/integrations/opsgenie.py | cds-snc/sre-bot | b34cdaba357fccbcdbaac1e1ac70ebbe408d7316 | [
"MIT"
] | 12 | 2022-02-21T18:57:07.000Z | 2022-03-31T03:06:48.000Z | app/integrations/opsgenie.py | cds-snc/sre-bot | b34cdaba357fccbcdbaac1e1ac70ebbe408d7316 | [
"MIT"
] | null | null | null | import json
import os
from urllib.request import Request, urlopen
OPSGENIE_KEY = os.getenv("OPSGENIE_KEY", None)
def get_on_call_users(schedule):
content = api_get_request(
f"https://api.opsgenie.com/v2/schedules/{schedule}/on-calls",
{"name": "GenieKey", "token": OPSGENIE_KEY},
)
try:
... | 28.24 | 81 | 0.651558 | 93 | 706 | 4.827957 | 0.591398 | 0.073497 | 0.057906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003515 | 0.194051 | 706 | 24 | 82 | 29.416667 | 0.785589 | 0.050992 | 0 | 0 | 0 | 0 | 0.239521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fed4560e0eada1a8875a46b508b9927cb620d08a | 8,991 | py | Python | jenkinsapi_tests/unittests/test_nodes.py | kkpattern/jenkinsapi | 6b0091c5f44e4473c0a3d5addbfdc416bc6515ca | [
"MIT"
] | 556 | 2016-07-27T03:42:48.000Z | 2022-03-31T15:05:19.000Z | jenkinsapi_tests/unittests/test_nodes.py | kkpattern/jenkinsapi | 6b0091c5f44e4473c0a3d5addbfdc416bc6515ca | [
"MIT"
] | 366 | 2016-07-24T02:51:45.000Z | 2022-03-24T17:02:45.000Z | jenkinsapi_tests/unittests/test_nodes.py | kkpattern/jenkinsapi | 6b0091c5f44e4473c0a3d5addbfdc416bc6515ca | [
"MIT"
] | 308 | 2016-08-01T03:35:45.000Z | 2022-03-31T01:06:57.000Z | import pytest
from jenkinsapi.jenkins import Jenkins
from jenkinsapi.nodes import Nodes
from jenkinsapi.node import Node
DATA0 = {
'assignedLabels': [{}],
'description': None,
'jobs': [],
'mode': 'NORMAL',
'nodeDescription': 'the master Jenkins node',
'nodeName': '',
'numExecutors': 2,
... | 30.686007 | 82 | 0.571015 | 753 | 8,991 | 6.677291 | 0.205843 | 0.059666 | 0.107399 | 0.043755 | 0.730509 | 0.676611 | 0.614161 | 0.581742 | 0.561058 | 0.510541 | 0 | 0.04 | 0.293738 | 8,991 | 292 | 83 | 30.791096 | 0.751811 | 0.024469 | 0 | 0.547325 | 0 | 0 | 0.341522 | 0.138711 | 0 | 0 | 0 | 0 | 0.041152 | 1 | 0.065844 | false | 0 | 0.016461 | 0.00823 | 0.102881 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fed6388f5baf349f9563436e423b3f0bfd27a9e9 | 790 | py | Python | message_gen/legacy/messages/ClientGetCloudHostResponse.py | zadjii/nebula | 50c4ec019c9f7eb15fe105a6c53a8a12880e281c | [
"MIT"
] | 2 | 2020-04-15T11:20:59.000Z | 2021-05-12T13:01:36.000Z | message_gen/legacy/messages/ClientGetCloudHostResponse.py | zadjii/nebula | 50c4ec019c9f7eb15fe105a6c53a8a12880e281c | [
"MIT"
] | 1 | 2018-06-05T04:48:56.000Z | 2018-06-05T04:48:56.000Z | message_gen/legacy/messages/ClientGetCloudHostResponse.py | zadjii/nebula | 50c4ec019c9f7eb15fe105a6c53a8a12880e281c | [
"MIT"
] | 1 | 2018-08-15T06:45:46.000Z | 2018-08-15T06:45:46.000Z | from messages.SessionMessage import SessionMessage
from msg_codes import CLIENT_GET_CLOUD_HOST_RESPONSE as CLIENT_GET_CLOUD_HOST_RESPONSE
__author__ = 'Mike'
class ClientGetCloudHostResponse(SessionMessage):
def __init__(self, session_id=None, cname=None, ip=None, port=None, wsport=None):
super(ClientGetC... | 34.347826 | 86 | 0.698734 | 96 | 790 | 5.40625 | 0.34375 | 0.092486 | 0.080925 | 0.104046 | 0.150289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21519 | 790 | 22 | 87 | 35.909091 | 0.837097 | 0 | 0 | 0 | 0 | 0 | 0.026582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fed71aa40e24235555d670228f89196c28a60884 | 8,072 | py | Python | research/route_diversity/timeline_from_csv.py | jweckstr/journey-diversity-scripts | 7b754c5f47a77ee1d630a0b26d8ec5cf6be202ae | [
"MIT"
] | null | null | null | research/route_diversity/timeline_from_csv.py | jweckstr/journey-diversity-scripts | 7b754c5f47a77ee1d630a0b26d8ec5cf6be202ae | [
"MIT"
] | null | null | null | research/route_diversity/timeline_from_csv.py | jweckstr/journey-diversity-scripts | 7b754c5f47a77ee1d630a0b26d8ec5cf6be202ae | [
"MIT"
] | null | null | null | """
PSEUDOCODE:
Load csv to pandas
csv will be of form: city, event type, event name, year, theme_A, theme_B, theme_C...
City can contain multiple cities, separated by TBD?
Check min and max year
Open figure,
Deal with events in same year, offset a little bit?
For city in cities:tle
for event in events
"""
impor... | 35.559471 | 175 | 0.650768 | 1,192 | 8,072 | 4.262584 | 0.250839 | 0.028341 | 0.015351 | 0.016532 | 0.301712 | 0.205471 | 0.138162 | 0.102539 | 0.046841 | 0.031096 | 0 | 0.032179 | 0.195367 | 8,072 | 226 | 176 | 35.716814 | 0.750115 | 0.101834 | 0 | 0.058442 | 0 | 0 | 0.189748 | 0.012886 | 0 | 0 | 0 | 0.004425 | 0 | 1 | 0.019481 | false | 0 | 0.045455 | 0 | 0.097403 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fed896e00f41aed0c3e19962de5fce02825adb90 | 2,408 | py | Python | api/ops/tasks/detection/core/detectionTypes/valueThreshold.py | LeiSoft/CueObserve | cc5254df7d0cb817a8b3ec427f5cb54a1d420f7e | [
"Apache-2.0"
] | 149 | 2021-07-16T13:37:30.000Z | 2022-03-21T10:13:15.000Z | api/ops/tasks/detection/core/detectionTypes/valueThreshold.py | LeiSoft/CueObserve | cc5254df7d0cb817a8b3ec427f5cb54a1d420f7e | [
"Apache-2.0"
] | 61 | 2021-07-15T06:39:05.000Z | 2021-12-27T06:58:10.000Z | api/ops/tasks/detection/core/detectionTypes/valueThreshold.py | LeiSoft/CueObserve | cc5254df7d0cb817a8b3ec427f5cb54a1d420f7e | [
"Apache-2.0"
] | 22 | 2021-07-19T07:20:49.000Z | 2022-03-21T10:13:16.000Z | import dateutil.parser as dp
from dateutil.relativedelta import relativedelta
import pandas as pd, datetime as dt
def checkLatestAnomaly(df, operationCheckStr):
"""
Looks up latest anomaly in dataframe
"""
anomalies = df[df["anomaly"] == 15]
if anomalies.shape[0] > 0:
lastAnomalyRow = anom... | 35.411765 | 101 | 0.572674 | 259 | 2,408 | 5.312741 | 0.374517 | 0.017442 | 0.026163 | 0.031977 | 0.135174 | 0.100291 | 0.100291 | 0.100291 | 0.100291 | 0.100291 | 0 | 0.03404 | 0.255814 | 2,408 | 68 | 102 | 35.411765 | 0.733817 | 0.037791 | 0 | 0 | 0 | 0.035714 | 0.259292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.053571 | 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 |
fed8e9ad56ccf5ea28b13fbec8dee05b0037dc77 | 343 | py | Python | src/chapter8/exercise6.py | group7BSE1/BSE-2021 | 2553b12e5fd5d1015af4746bcf84a8ee7c1cb8e0 | [
"MIT"
] | null | null | null | src/chapter8/exercise6.py | group7BSE1/BSE-2021 | 2553b12e5fd5d1015af4746bcf84a8ee7c1cb8e0 | [
"MIT"
] | null | null | null | src/chapter8/exercise6.py | group7BSE1/BSE-2021 | 2553b12e5fd5d1015af4746bcf84a8ee7c1cb8e0 | [
"MIT"
] | 1 | 2021-04-07T14:49:04.000Z | 2021-04-07T14:49:04.000Z | list = []
while True:
number = 0.0
input_num = input('Enter a number: ')
if input_num == 'done':
break
try:
number = float(input_num)
except:
print('Invalid input')
quit()
list.append(input_num)
if list:
print('Maximum: ', max(list) or None)
print('Minimum... | 22.866667 | 41 | 0.559767 | 45 | 343 | 4.177778 | 0.555556 | 0.170213 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.300292 | 343 | 15 | 42 | 22.866667 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0.148256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fedb6c7eea105f52852855900c26c30796b4a06e | 5,654 | py | Python | preprocess/sketch_generation.py | code-gen/exploration | c83d79745df9566c5f1a82e581008e0984fcc319 | [
"MIT"
] | null | null | null | preprocess/sketch_generation.py | code-gen/exploration | c83d79745df9566c5f1a82e581008e0984fcc319 | [
"MIT"
] | 1 | 2019-05-11T14:49:58.000Z | 2019-05-24T15:02:54.000Z | preprocess/sketch_generation.py | code-gen/exploration | c83d79745df9566c5f1a82e581008e0984fcc319 | [
"MIT"
] | null | null | null | """
Sketch (similar to Coarse-to-Fine)
- keep Python keywords as is
- strip off arguments and variable names
- substitute tokens with types: `NUMBER`, `STRING`
- specialize `NAME` token:
- for functions: `FUNC#<num_args>`
# Examples
x = 1 if True else 0
NAME = NUMBER if True else NUMBER
result = SomeFunc(1,... | 29.447917 | 105 | 0.579413 | 674 | 5,654 | 4.728487 | 0.252226 | 0.034515 | 0.032005 | 0.02824 | 0.124255 | 0.099153 | 0.074051 | 0.074051 | 0.074051 | 0.074051 | 0 | 0.005941 | 0.285462 | 5,654 | 191 | 106 | 29.602094 | 0.782921 | 0.155642 | 0 | 0.127119 | 0 | 0 | 0.073638 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 1 | 0.110169 | false | 0.008475 | 0.084746 | 0.042373 | 0.355932 | 0.042373 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fedbf772bab9d4ac688fa0669b5207dce247b24c | 8,538 | py | Python | LPBv2/tests/game/test_player.py | TierynnB/LeaguePyBot | 2e96230b9dc24d185ddc0c6086d79f7d01e7a643 | [
"MIT"
] | 45 | 2020-11-28T04:45:45.000Z | 2022-03-31T05:53:37.000Z | LPBv2/tests/game/test_player.py | TierynnB/LeaguePyBot | 2e96230b9dc24d185ddc0c6086d79f7d01e7a643 | [
"MIT"
] | 13 | 2021-01-15T00:50:10.000Z | 2022-02-02T15:16:49.000Z | LPBv2/tests/game/test_player.py | TierynnB/LeaguePyBot | 2e96230b9dc24d185ddc0c6086d79f7d01e7a643 | [
"MIT"
] | 14 | 2020-12-21T10:03:31.000Z | 2021-11-22T04:03:03.000Z | import pytest
from LPBv2.common import (
InventoryItem,
PlayerInfo,
PlayerScore,
PlayerStats,
TeamMember,
MinimapZone,
merge_dicts,
)
from LPBv2.game import Player
update_data = {
"abilities": {
"E": {
"abilityLevel": 0,
"displayName": "\u9b42\u306e\u8a6... | 33.093023 | 103 | 0.613844 | 805 | 8,538 | 6.310559 | 0.281988 | 0.085039 | 0.067323 | 0.088583 | 0.346457 | 0.30689 | 0.272638 | 0.231496 | 0.199213 | 0.199213 | 0 | 0.082487 | 0.261654 | 8,538 | 257 | 104 | 33.22179 | 0.72335 | 0 | 0 | 0.213675 | 0 | 0.004274 | 0.353127 | 0.173694 | 0 | 0 | 0 | 0 | 0.145299 | 1 | 0.008547 | false | 0.017094 | 0.012821 | 0.004274 | 0.025641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fee0850f728247adf6624bff53382da94eff6965 | 1,199 | py | Python | tests/test_negate_with_undo.py | robobeaver6/hier_config | efd413ef709d462effe8bfd11ef0520c1d62eb33 | [
"MIT"
] | null | null | null | tests/test_negate_with_undo.py | robobeaver6/hier_config | efd413ef709d462effe8bfd11ef0520c1d62eb33 | [
"MIT"
] | null | null | null | tests/test_negate_with_undo.py | robobeaver6/hier_config | efd413ef709d462effe8bfd11ef0520c1d62eb33 | [
"MIT"
] | null | null | null | import unittest
import tempfile
import os
import yaml
import types
from hier_config import HConfig
from hier_config.host import Host
class TestNegateWithUndo(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.os = 'comware5'
cls.options_file = os.path.join(
os.path.dirname... | 30.74359 | 101 | 0.692244 | 167 | 1,199 | 4.646707 | 0.365269 | 0.032216 | 0.046392 | 0.050258 | 0.215206 | 0.215206 | 0.215206 | 0.215206 | 0 | 0 | 0 | 0.00209 | 0.201835 | 1,199 | 38 | 102 | 31.552632 | 0.808777 | 0 | 0 | 0 | 0 | 0 | 0.173478 | 0.095913 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.068966 | false | 0 | 0.241379 | 0 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fee18a5b11572b38d902059c0db310b2cf42cd2d | 6,984 | py | Python | code/gauss_legendre.py | MarkusLohmayer/master-thesis-code | b107d1b582064daf9ad4414e1c9f332ef0be8660 | [
"MIT"
] | 1 | 2020-11-14T15:56:07.000Z | 2020-11-14T15:56:07.000Z | code/gauss_legendre.py | MarkusLohmayer/master-thesis-code | b107d1b582064daf9ad4414e1c9f332ef0be8660 | [
"MIT"
] | null | null | null | code/gauss_legendre.py | MarkusLohmayer/master-thesis-code | b107d1b582064daf9ad4414e1c9f332ef0be8660 | [
"MIT"
] | null | null | null | """Gauss-Legendre collocation methods for port-Hamiltonian systems"""
import sympy
import numpy
import math
from newton import newton_raphson, DidNotConvergeError
from symbolic import eval_expr
def butcher(s):
"""Compute the Butcher tableau for a Gauss-Legendre collocation method.
Parameters
----------... | 31.459459 | 114 | 0.593643 | 1,026 | 6,984 | 3.993177 | 0.197856 | 0.03588 | 0.027337 | 0.026849 | 0.299976 | 0.275812 | 0.194777 | 0.194777 | 0.161582 | 0.139126 | 0 | 0.006726 | 0.276203 | 6,984 | 221 | 115 | 31.60181 | 0.803759 | 0.384307 | 0 | 0.056075 | 0 | 0.018692 | 0.115027 | 0.046011 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028037 | false | 0 | 0.056075 | 0 | 0.11215 | 0.037383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fee307cf09fb64ad8f6da891a9a28954c9a3eeae | 3,026 | py | Python | teraserver/python/opentera/db/models/TeraDeviceParticipant.py | introlab/opentera | bfc4de672c9de40b7c9a659be2138731e7ee4e94 | [
"Apache-2.0"
] | 10 | 2020-03-16T14:46:06.000Z | 2022-02-11T16:07:38.000Z | teraserver/python/opentera/db/models/TeraDeviceParticipant.py | introlab/opentera | bfc4de672c9de40b7c9a659be2138731e7ee4e94 | [
"Apache-2.0"
] | 114 | 2019-09-16T13:02:50.000Z | 2022-03-22T19:17:36.000Z | teraserver/python/opentera/db/models/TeraDeviceParticipant.py | introlab/opentera | bfc4de672c9de40b7c9a659be2138731e7ee4e94 | [
"Apache-2.0"
] | null | null | null | from opentera.db.Base import db, BaseModel
class TeraDeviceParticipant(db.Model, BaseModel):
__tablename__ = 't_devices_participants'
id_device_participant = db.Column(db.Integer, db.Sequence('id_device_participant_sequence'), primary_key=True,
autoincrement=True)
id_... | 44.5 | 114 | 0.718771 | 322 | 3,026 | 6.413043 | 0.232919 | 0.139952 | 0.108475 | 0.090073 | 0.485714 | 0.394189 | 0.374334 | 0.345278 | 0.345278 | 0.317191 | 0 | 0.007054 | 0.203569 | 3,026 | 67 | 115 | 45.164179 | 0.849793 | 0 | 0 | 0.294118 | 0 | 0 | 0.073695 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0.078431 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fee39b66b3b2ef9dd7dd901d2d89a2d3c684442c | 11,043 | py | Python | leetcode_python/Linked_list/split-linked-list-in-parts.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | null | null | null | leetcode_python/Linked_list/split-linked-list-in-parts.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | null | null | null | leetcode_python/Linked_list/split-linked-list-in-parts.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | null | null | null | """
725. Split Linked List in Parts
Medium
0Given the head of a singly linked list and an integer k, split the linked list into k consecutive linked list parts.
The length of each part should be as equal as possible: no two parts should have a size differing by more than one. This may lead to some parts being null.
... | 29.845946 | 167 | 0.472698 | 1,410 | 11,043 | 3.652482 | 0.162411 | 0.031262 | 0.049126 | 0.021359 | 0.456505 | 0.382718 | 0.358252 | 0.326214 | 0.30466 | 0.298058 | 0 | 0.02926 | 0.421262 | 11,043 | 370 | 168 | 29.845946 | 0.776561 | 0.261614 | 0 | 0.584821 | 0 | 0 | 0.004183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066964 | false | 0 | 0 | 0 | 0.183036 | 0.004464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fee526d6327eadfd2a1c6fc5732f854eab5a5bb2 | 1,645 | py | Python | carl/charts.py | zaratec/carl | 9d655c2cb75d90ddc6b2d101073248a2fc3c252e | [
"MIT"
] | null | null | null | carl/charts.py | zaratec/carl | 9d655c2cb75d90ddc6b2d101073248a2fc3c252e | [
"MIT"
] | null | null | null | carl/charts.py | zaratec/carl | 9d655c2cb75d90ddc6b2d101073248a2fc3c252e | [
"MIT"
] | 1 | 2020-11-19T23:41:28.000Z | 2020-11-19T23:41:28.000Z | import numpy as np
import matplotlib.pyplot as plt
import matplotlib
"""
def ecdf(sorted_views):
for view, data in sorted_views.iteritems():
yvals = np.arange(len(data))/float(len(data))
plt.plot(data, yvals, label=view)
plt.grid(True)
plt.xlabel('jaccard')
plt.ylabel('CDF')
lgnd ... | 25.703125 | 78 | 0.6231 | 231 | 1,645 | 4.311688 | 0.307359 | 0.077309 | 0.033133 | 0.039157 | 0.682731 | 0.682731 | 0.648594 | 0.566265 | 0.566265 | 0.477912 | 0 | 0.015456 | 0.213374 | 1,645 | 63 | 79 | 26.111111 | 0.75425 | 0.019453 | 0 | 0.285714 | 0 | 0 | 0.084874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.085714 | 0 | 0.171429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fee67822f155f266cc796b6f601f1860ad8b8823 | 4,760 | py | Python | examples/Kane1985/Chapter5/Ex10.10.py | nouiz/pydy | 20c8ca9fc521208ae2144b5b453c14ed4a22a0ec | [
"BSD-3-Clause"
] | 298 | 2015-01-31T11:43:22.000Z | 2022-03-15T02:18:21.000Z | examples/Kane1985/Chapter5/Ex10.10.py | nouiz/pydy | 20c8ca9fc521208ae2144b5b453c14ed4a22a0ec | [
"BSD-3-Clause"
] | 359 | 2015-01-17T16:56:42.000Z | 2022-02-08T05:27:08.000Z | examples/Kane1985/Chapter5/Ex10.10.py | nouiz/pydy | 20c8ca9fc521208ae2144b5b453c14ed4a22a0ec | [
"BSD-3-Clause"
] | 109 | 2015-02-03T13:02:45.000Z | 2021-12-21T12:57:21.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Exercise 10.10 from Kane 1985."""
from __future__ import division
from sympy import expand, solve, symbols, sin, cos, S
from sympy.physics.mechanics import ReferenceFrame, RigidBody, Point
from sympy.physics.mechanics import dot, dynamicsymbols, inertia, msprint
from ut... | 33.521127 | 76 | 0.602731 | 895 | 4,760 | 3.126257 | 0.234637 | 0.021444 | 0.03431 | 0.025733 | 0.15654 | 0.117941 | 0.015726 | 0 | 0 | 0 | 0 | 0.106832 | 0.203571 | 4,760 | 141 | 77 | 33.758865 | 0.631232 | 0.171849 | 0 | 0 | 0 | 0 | 0.049335 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.057143 | 0.038095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fee67e3507fde627d604b24556de9fa5e1ddebf0 | 1,179 | py | Python | src/test/test_pairwiseView.py | SensorDX/rainqc | d957705e0f1e2e05b3bf23c5b6fd77a135ac69cd | [
"Apache-2.0"
] | 1 | 2022-02-16T01:24:17.000Z | 2022-02-16T01:24:17.000Z | src/test/test_pairwiseView.py | SensorDX/rainqc | d957705e0f1e2e05b3bf23c5b6fd77a135ac69cd | [
"Apache-2.0"
] | null | null | null | src/test/test_pairwiseView.py | SensorDX/rainqc | d957705e0f1e2e05b3bf23c5b6fd77a135ac69cd | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from src.view import PairwiseView
import numpy as np
class TestPairwiseView(TestCase):
def setUp(self):
self.num_stations = 4
self.n = 200
self.stations = np.random.randn(self.n, self.num_stations)
self.pv = PairwiseView(variable='pr')
def test_mak... | 35.727273 | 112 | 0.603053 | 162 | 1,179 | 4.32716 | 0.395062 | 0.154066 | 0.085592 | 0.059914 | 0.233952 | 0.17689 | 0.17689 | 0.17689 | 0.17689 | 0.17689 | 0 | 0.03491 | 0.246819 | 1,179 | 32 | 113 | 36.84375 | 0.754505 | 0.160305 | 0 | 0 | 0 | 0 | 0.002041 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
feea04b5b8f70213610fd5b8726978dd6e62c7f1 | 1,013 | py | Python | bmi.py | blorincz1/bmi-tool | b49e66bac422ab1fe411642937bd0679862b7042 | [
"MIT"
] | null | null | null | bmi.py | blorincz1/bmi-tool | b49e66bac422ab1fe411642937bd0679862b7042 | [
"MIT"
] | null | null | null | bmi.py | blorincz1/bmi-tool | b49e66bac422ab1fe411642937bd0679862b7042 | [
"MIT"
] | null | null | null | # prompt user to enter how much they weigh in pounds
weight = int(input ("How much do you weigh (in pounds)? "))
# prompt user to enter their height in inches
height = int(input ("What is your height (in inches)? "))
# this converts weight to kilograms
weight_in_kg = weight / 2.2
# this converts height to c... | 31.65625 | 115 | 0.664363 | 167 | 1,013 | 3.982036 | 0.443114 | 0.04812 | 0.054135 | 0.07218 | 0.168421 | 0.168421 | 0.168421 | 0.168421 | 0 | 0 | 0 | 0.030848 | 0.231984 | 1,013 | 31 | 116 | 32.677419 | 0.823907 | 0.181639 | 0 | 0 | 0 | 0 | 0.508861 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
feee07121fe76d5736e52eb5411adc869715e8db | 7,031 | py | Python | day92021.py | GeirOwe/adventOfCode | fee1420cb8ecce8b7aaf9d48472364be191ca2a2 | [
"MIT"
] | 1 | 2021-12-20T11:10:59.000Z | 2021-12-20T11:10:59.000Z | day92021.py | GeirOwe/adventOfCode | fee1420cb8ecce8b7aaf9d48472364be191ca2a2 | [
"MIT"
] | null | null | null | day92021.py | GeirOwe/adventOfCode | fee1420cb8ecce8b7aaf9d48472364be191ca2a2 | [
"MIT"
] | 1 | 2021-12-02T14:40:12.000Z | 2021-12-02T14:40:12.000Z | # Day9 - 2021 Advent of code
# source: https://adventofcode.com/2021/day/9
import os
import numpy as np
def clear_console():
os.system('clear')
print('< .... AoC 2021 Day 9, part 1 .... >')
print()
return
def find_low_points(the_map, numOfRows, numOfCols):
low_points_list = []
row = 0
las... | 43.94375 | 114 | 0.54345 | 938 | 7,031 | 3.926439 | 0.185501 | 0.104263 | 0.139289 | 0.14662 | 0.50801 | 0.4776 | 0.469183 | 0.428455 | 0.428455 | 0.411078 | 0 | 0.018275 | 0.361826 | 7,031 | 160 | 115 | 43.94375 | 0.802541 | 0.286872 | 0 | 0.49 | 0 | 0 | 0.030763 | 0.00506 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07 | false | 0 | 0.02 | 0 | 0.16 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
feee0df189f0b37958204462a48904755aa19b63 | 7,420 | py | Python | cogs/Console.py | KhangOP/PaladinsAssistantBot | 9b705dc688610ba52909f0b0e152d8684006c6a6 | [
"MIT"
] | null | null | null | cogs/Console.py | KhangOP/PaladinsAssistantBot | 9b705dc688610ba52909f0b0e152d8684006c6a6 | [
"MIT"
] | null | null | null | cogs/Console.py | KhangOP/PaladinsAssistantBot | 9b705dc688610ba52909f0b0e152d8684006c6a6 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
from datetime import date, datetime
# Class handles commands related to console players
class ConsoleCommands(commands.Cog, name="Console Commands"):
"""Console Commands"""
def __init__(self, bot):
self.bot = bot
# Returns a list of embeds of conso... | 51.172414 | 119 | 0.568329 | 876 | 7,420 | 4.744292 | 0.302511 | 0.025024 | 0.025987 | 0.028633 | 0.281521 | 0.215351 | 0.199711 | 0.183349 | 0.150144 | 0.069297 | 0 | 0.009154 | 0.337466 | 7,420 | 144 | 120 | 51.527778 | 0.835028 | 0.062399 | 0 | 0.25 | 0 | 0.017857 | 0.322195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0.008929 | 0.026786 | 0 | 0.089286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
feeebbc5a748ddb1157bf558ba36f40a432ef1a6 | 666 | py | Python | documentation/demonstrations/abfFromWks.py | swharden/PyOriginTools | 536fb8e11234ffdc27e26b1800e0358179ca7d26 | [
"MIT"
] | 11 | 2018-04-22T20:34:53.000Z | 2022-03-12T12:02:47.000Z | documentation/demonstrations/abfFromWks.py | swharden/PyOriginTools | 536fb8e11234ffdc27e26b1800e0358179ca7d26 | [
"MIT"
] | 3 | 2018-01-11T14:54:46.000Z | 2018-04-26T13:45:18.000Z | documentation/demonstrations/abfFromWks.py | swharden/PyOriginTools | 536fb8e11234ffdc27e26b1800e0358179ca7d26 | [
"MIT"
] | 3 | 2019-05-14T13:36:14.000Z | 2020-09-02T16:13:57.000Z | R"""
try to get the worksheet name from a worksheet
run -pyf C:\Users\swharden\Documents\GitHub\PyOriginTools\documentation\demonstrations\abfFromWks.py
"""
import sys
if False:
# this code block will NEVER actually run
sys.path.append('../') # helps my IDE autocomplete
sys.path.append('../../') # helps my... | 30.272727 | 100 | 0.711712 | 82 | 666 | 5.682927 | 0.634146 | 0.045064 | 0.083691 | 0.11588 | 0.225322 | 0.225322 | 0.225322 | 0.225322 | 0.225322 | 0.225322 | 0 | 0.001789 | 0.160661 | 666 | 22 | 101 | 30.272727 | 0.831843 | 0.472973 | 0 | 0 | 0 | 0 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fef10be702d297731f0eada02c3e9a2ec0107a0f | 5,932 | py | Python | traj_er/t2vec_experience/classify_exp/tested_feature_extractor.py | lzzppp/DERT | e1f9ee2489f76e2ed741d6637fd2b1e8bb225fb6 | [
"MIT"
] | 7 | 2020-08-21T02:19:15.000Z | 2021-12-30T02:02:40.000Z | traj_er/t2vec_experience/classify_exp/tested_feature_extractor.py | lzzppp/DERT | e1f9ee2489f76e2ed741d6637fd2b1e8bb225fb6 | [
"MIT"
] | 1 | 2021-04-21T13:50:53.000Z | 2021-04-25T02:34:48.000Z | traj_er/t2vec_experience/classify_exp/tested_feature_extractor.py | lzzppp/DERT | e1f9ee2489f76e2ed741d6637fd2b1e8bb225fb6 | [
"MIT"
] | 1 | 2020-12-02T07:15:13.000Z | 2020-12-02T07:15:13.000Z | import numpy as np
import h5py
from datetime import datetime
from geopy.distance import distance
import argparse
import pickle
import json
import os
class TestedFeatureExtractor:
driving_time_norm = 1
def __init__(self, selected_feature, norm_param):
self.selected_feature = selected_feature
s... | 39.546667 | 134 | 0.630142 | 810 | 5,932 | 4.364198 | 0.22716 | 0.076379 | 0.080622 | 0.077228 | 0.334371 | 0.254314 | 0.233946 | 0.153324 | 0.132108 | 0.108911 | 0 | 0.017265 | 0.257923 | 5,932 | 150 | 135 | 39.546667 | 0.785779 | 0.110418 | 0 | 0.151515 | 0 | 0 | 0.097153 | 0.011158 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.080808 | 0.010101 | 0.323232 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fef114610ec0d475191a1220ffe83885004935bc | 2,545 | py | Python | psystem/plot.py | ranocha/Dispersive-wave-error-growth-notebooks | cffe67961db325291a02258118d3c7261fcce788 | [
"MIT"
] | null | null | null | psystem/plot.py | ranocha/Dispersive-wave-error-growth-notebooks | cffe67961db325291a02258118d3c7261fcce788 | [
"MIT"
] | null | null | null | psystem/plot.py | ranocha/Dispersive-wave-error-growth-notebooks | cffe67961db325291a02258118d3c7261fcce788 | [
"MIT"
] | null | null | null | from clawpack.petclaw.solution import Solution
import matplotlib
matplotlib.use('Agg')
import matplotlib.pylab as pl
from matplotlib import rc
import numpy as np
import os
def plot_q(frame,
file_prefix='claw',
path='./_output/',
xShift=0.0,
xlimits=None,
ylimits=N... | 27.074468 | 98 | 0.574853 | 356 | 2,545 | 4.016854 | 0.30618 | 0.055944 | 0.025175 | 0.037762 | 0.072727 | 0.072727 | 0.072727 | 0.072727 | 0.072727 | 0.072727 | 0 | 0.025219 | 0.283301 | 2,545 | 93 | 99 | 27.365591 | 0.758772 | 0.044794 | 0 | 0.065789 | 0 | 0 | 0.044628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0 | 0.105263 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fef15a29a302098c87559c64e7c95311ad1af7bc | 2,285 | py | Python | deepl/layers/utils.py | akamnev/deepl | 392c757e21dec7bdd72cb0f71298389ef0d13968 | [
"MIT"
] | 1 | 2020-06-08T14:06:36.000Z | 2020-06-08T14:06:36.000Z | deepl/layers/utils.py | akamnev/deepl | 392c757e21dec7bdd72cb0f71298389ef0d13968 | [
"MIT"
] | null | null | null | deepl/layers/utils.py | akamnev/deepl | 392c757e21dec7bdd72cb0f71298389ef0d13968 | [
"MIT"
] | null | null | null | import torch
from typing import List
def get_min_value(tensor):
if tensor.dtype == torch.float16:
min_value = -1e4
elif tensor.dtype == torch.float32:
min_value = -1e9
else:
raise ValueError("{} not recognized. `dtype` "
"should be set to either `torch.floa... | 31.736111 | 122 | 0.617068 | 325 | 2,285 | 4.187692 | 0.310769 | 0.047024 | 0.044085 | 0.023512 | 0.289493 | 0.289493 | 0.289493 | 0.289493 | 0.289493 | 0.289493 | 0 | 0.029167 | 0.26477 | 2,285 | 71 | 123 | 32.183099 | 0.780952 | 0.14442 | 0 | 0.125 | 0 | 0 | 0.044363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145833 | false | 0 | 0.041667 | 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 |
fef388e9c0a8cc5d31503d18e82095b931d385f7 | 13,762 | py | Python | main.py | ooshyun/filterdesign | 59dbea191b8cd44aa9f2d02d3787b5805d486ae2 | [
"MIT"
] | 1 | 2021-12-27T00:38:32.000Z | 2021-12-27T00:38:32.000Z | main.py | ooshyun/FilterDesign | 7162ccad8e1ae8aebca370da56be56603b9e8b24 | [
"MIT"
] | null | null | null | main.py | ooshyun/FilterDesign | 7162ccad8e1ae8aebca370da56be56603b9e8b24 | [
"MIT"
] | null | null | null | import os
import json
import numpy as np
from numpy import log10, pi, sqrt
import scipy.io.wavfile as wav
from scipy.fftpack import *
from src import (
FilterAnalyzePlot,
WaveProcessor,
ParametricEqualizer,
GraphicalEqualizer,
cvt_char2num,
maker_logger,
DEBUG,
)
if DEBUG:
PRINTER = ma... | 26.113852 | 88 | 0.575861 | 1,732 | 13,762 | 4.332564 | 0.172055 | 0.041578 | 0.020789 | 0.03678 | 0.5004 | 0.446562 | 0.38193 | 0.330091 | 0.303038 | 0.298774 | 0 | 0.063013 | 0.309257 | 13,762 | 526 | 89 | 26.163498 | 0.726383 | 0.046723 | 0 | 0.267677 | 0 | 0 | 0.082156 | 0.035782 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020202 | false | 0.020202 | 0.030303 | 0 | 0.050505 | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fef4b3fa8786cd370700430b9b9414a5a831d2bf | 3,322 | py | Python | time_transfer.py | EternityNull/alfred_scripts-TimeTransfer | d7c24c977d174d0b71b9903193ce8225a5538c7c | [
"MIT"
] | null | null | null | time_transfer.py | EternityNull/alfred_scripts-TimeTransfer | d7c24c977d174d0b71b9903193ce8225a5538c7c | [
"MIT"
] | null | null | null | time_transfer.py | EternityNull/alfred_scripts-TimeTransfer | d7c24c977d174d0b71b9903193ce8225a5538c7c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import re
import json
from datetime import datetime
from alfred import *
TIMESTAMP_SEC_RE = r'^\d{10}$' # 1643372599
TIMESTAMP_MSEC_RE = r'^\d{13}$' # 1643372599000
# 2022-01-28 10:00:00
DATETIME_LONG_STR = r'^[1-9]\d{3}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$'
DATET... | 27.454545 | 84 | 0.609874 | 458 | 3,322 | 4.10917 | 0.203057 | 0.086079 | 0.079702 | 0.021254 | 0.49203 | 0.444208 | 0.444208 | 0.444208 | 0.372476 | 0.372476 | 0 | 0.030641 | 0.243528 | 3,322 | 120 | 85 | 27.683333 | 0.718265 | 0.042444 | 0 | 0.282353 | 0 | 0.011765 | 0.103437 | 0.007253 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023529 | false | 0 | 0.058824 | 0 | 0.105882 | 0.011765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fef5faa5a487c2ba4ddeb8aafe0c3838370c774b | 14,598 | py | Python | ravager/bot/commands/admin_interface.py | CoolFool/Ravager | 3d647115689dc23a160255221aaa493f879406a5 | [
"MIT"
] | null | null | null | ravager/bot/commands/admin_interface.py | CoolFool/Ravager | 3d647115689dc23a160255221aaa493f879406a5 | [
"MIT"
] | 1 | 2022-03-15T06:55:48.000Z | 2022-03-15T15:38:20.000Z | ravager/bot/commands/admin_interface.py | CoolFool/Ravager | 3d647115689dc23a160255221aaa493f879406a5 | [
"MIT"
] | 2 | 2022-02-09T21:30:57.000Z | 2022-03-15T06:19:57.000Z | import logging
from functools import wraps
import psutil
from telegram import InlineKeyboardMarkup, InlineKeyboardButton, ForceReply, ParseMode
from telegram.ext import CommandHandler, CallbackQueryHandler, MessageHandler, Filters
from ravager.bot.helpers.constants import *
from ravager.bot.helpers.timeout import Con... | 50.164948 | 140 | 0.644746 | 1,579 | 14,598 | 5.668778 | 0.137429 | 0.058988 | 0.038208 | 0.025695 | 0.481622 | 0.413697 | 0.355491 | 0.326556 | 0.299408 | 0.278293 | 0 | 0.001658 | 0.256405 | 14,598 | 290 | 141 | 50.337931 | 0.822939 | 0.001233 | 0 | 0.271186 | 0 | 0 | 0.103169 | 0.006517 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076271 | false | 0.025424 | 0.04661 | 0 | 0.224576 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fef8828761203757d50e9784d410fa779ff9303d | 563 | py | Python | daoliagent/utils.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | 1 | 2019-09-11T11:56:19.000Z | 2019-09-11T11:56:19.000Z | daoliagent/utils.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | null | null | null | daoliagent/utils.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | null | null | null | import random
import six.moves.urllib.parse as urlparse
def replace_url(url, host=None, port=None, path=None):
o = urlparse.urlparse(url)
_host = o.hostname
_port = o.port
_path = o.path
if host is not None:
_host = host
if port is not None:
_port = port
netloc = _host
... | 20.107143 | 54 | 0.614565 | 81 | 563 | 4.123457 | 0.382716 | 0.05988 | 0.107784 | 0.071856 | 0.113772 | 0.113772 | 0 | 0 | 0 | 0 | 0 | 0.0489 | 0.273535 | 563 | 27 | 55 | 20.851852 | 0.767726 | 0 | 0 | 0 | 0 | 0 | 0.017762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0.052632 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fefa551e8285feb448d258e854941881fb3ad2e9 | 759 | py | Python | doggo_ears_definitions.py | jryzkns/doggo-ears | 004dbb8b07a0a2170ce0d04b6e1458b268cdd543 | [
"MIT"
] | 1 | 2020-08-28T16:49:32.000Z | 2020-08-28T16:49:32.000Z | doggo_ears_definitions.py | jryzkns/doggo-ears | 004dbb8b07a0a2170ce0d04b6e1458b268cdd543 | [
"MIT"
] | null | null | null | doggo_ears_definitions.py | jryzkns/doggo-ears | 004dbb8b07a0a2170ce0d04b6e1458b268cdd543 | [
"MIT"
] | null | null | null | import numpy as np
import torch
torch.manual_seed(0)
# PRE-PROCESSING
RAVDESS_DSET_PATH = "C:\\Users\\***\\Downloads\\RAVDESS\\"
TESS_DSET_PATH = "C:\\Users\\***\\Downloads\\TESS\\"
N_WORKERS = 15
# DATASET
emote_id = {
"01" : "neutral", "03" : "happy",
"04" : "sad", "05" : "angry"}
emote_idn = ... | 22.323529 | 58 | 0.623188 | 104 | 759 | 4.307692 | 0.644231 | 0.046875 | 0.040179 | 0.0625 | 0.102679 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045302 | 0.214756 | 759 | 34 | 59 | 22.323529 | 0.706376 | 0.048748 | 0 | 0 | 0 | 0 | 0.18663 | 0.0961 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fefd02d2de45b18b74656b9de90c0632735f1832 | 848 | py | Python | leetcode/palindrome_pairs/palindrome_pairs.py | sagasu/python-algorithms | d630777a3f17823165e4d72ab780ede7b10df752 | [
"MIT"
] | null | null | null | leetcode/palindrome_pairs/palindrome_pairs.py | sagasu/python-algorithms | d630777a3f17823165e4d72ab780ede7b10df752 | [
"MIT"
] | null | null | null | leetcode/palindrome_pairs/palindrome_pairs.py | sagasu/python-algorithms | d630777a3f17823165e4d72ab780ede7b10df752 | [
"MIT"
] | null | null | null | class Solution:
def palindromePairs(self, words: List[str]) -> List[List[int]]:
lookup = {}
for index, word in enumerate(words):
lookup[word] = index
ans = set()
for index, word in enumerate(words):
for k in range(len(word) + 1):
current = word... | 38.545455 | 67 | 0.471698 | 89 | 848 | 4.494382 | 0.303371 | 0.13 | 0.135 | 0.07 | 0.51 | 0.51 | 0.255 | 0.255 | 0.255 | 0.255 | 0 | 0.009881 | 0.403302 | 848 | 22 | 68 | 38.545455 | 0.780632 | 0 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3a00eea590558911d75f7435e45a186ce7c2a0a1 | 30,437 | py | Python | startExperiment.py | aydindemircioglu/radFS | b50b2a78f7c7975751b699b6b74a2761f7fa3501 | [
"MIT",
"Unlicense"
] | 1 | 2022-02-24T02:16:55.000Z | 2022-02-24T02:16:55.000Z | startExperiment.py | aydindemircioglu/radFS | b50b2a78f7c7975751b699b6b74a2761f7fa3501 | [
"MIT",
"Unlicense"
] | null | null | null | startExperiment.py | aydindemircioglu/radFS | b50b2a78f7c7975751b699b6b74a2761f7fa3501 | [
"MIT",
"Unlicense"
] | null | null | null | #!/usr/bin/python3
from functools import partial
from datetime import datetime
import pandas as pd
from joblib import parallel_backend
import random
import numpy as np
from sklearn.calibration import CalibratedClassifierCV
import shutil
import pathlib
import os
import math
import random
from matplotlib import pyplot
... | 36.451497 | 182 | 0.610934 | 3,696 | 30,437 | 4.892857 | 0.175595 | 0.021677 | 0.032902 | 0.031851 | 0.347324 | 0.261889 | 0.202555 | 0.17015 | 0.153451 | 0.143884 | 0 | 0.011957 | 0.27736 | 30,437 | 834 | 183 | 36.495204 | 0.81023 | 0.046522 | 0 | 0.195082 | 0 | 0 | 0.063913 | 0.002795 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059016 | false | 0.003279 | 0.152459 | 0 | 0.267213 | 0.039344 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3a01b5b20e16dc59b45be5e462160adb8ae019e0 | 692 | py | Python | dm/algorithms/HungarianAlg.py | forons/distance-measurement | 39741aefed0aa2f86e8959338c867398ce6494c7 | [
"MIT"
] | null | null | null | dm/algorithms/HungarianAlg.py | forons/distance-measurement | 39741aefed0aa2f86e8959338c867398ce6494c7 | [
"MIT"
] | null | null | null | dm/algorithms/HungarianAlg.py | forons/distance-measurement | 39741aefed0aa2f86e8959338c867398ce6494c7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np
from scipy import optimize, sparse
from .AbstractDistanceAlg import AbstractDistanceAlg
class HungarianAlg(AbstractDistanceAlg):
def __init__(self, df, size):
super().__init__(df, size)
def compute_matching(self):
distances = ... | 31.454545 | 81 | 0.669075 | 87 | 692 | 5.137931 | 0.517241 | 0.067114 | 0.040268 | 0.071588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007435 | 0.222543 | 692 | 21 | 82 | 32.952381 | 0.82342 | 0.062139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3a079d600f0144ca6ea7cb473635485bda6d1725 | 2,039 | py | Python | python/oneflow/test/modules/test_linspace.py | lizhimeng159/oneflow | b5f504d7a2185c6d6ac2c97bc5f9a2a3dd78883d | [
"Apache-2.0"
] | null | null | null | python/oneflow/test/modules/test_linspace.py | lizhimeng159/oneflow | b5f504d7a2185c6d6ac2c97bc5f9a2a3dd78883d | [
"Apache-2.0"
] | null | null | null | python/oneflow/test/modules/test_linspace.py | lizhimeng159/oneflow | b5f504d7a2185c6d6ac2c97bc5f9a2a3dd78883d | [
"Apache-2.0"
] | null | null | null | """
Copyright 2020 The OneFlow Authors. 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 l... | 33.983333 | 82 | 0.680726 | 286 | 2,039 | 4.723776 | 0.41958 | 0.044412 | 0.019245 | 0.023686 | 0.339008 | 0.339008 | 0.300518 | 0.251665 | 0.251665 | 0.251665 | 0 | 0.018916 | 0.222168 | 2,039 | 59 | 83 | 34.559322 | 0.832913 | 0.284944 | 0 | 0.352941 | 0 | 0 | 0.007908 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.088235 | false | 0 | 0.176471 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3a081670c8619a8dbe9b2b1bb3b4d9935ec6801d | 1,577 | py | Python | alexia/apps/general/templatetags/menuitem.py | LaudateCorpus1/alexia-1 | 9c0d3c90c0ffe2237299a561b755b9c17905e354 | [
"BSD-3-Clause"
] | 8 | 2015-06-29T20:01:22.000Z | 2020-10-19T13:49:38.000Z | alexia/apps/general/templatetags/menuitem.py | LaudateCorpus1/alexia-1 | 9c0d3c90c0ffe2237299a561b755b9c17905e354 | [
"BSD-3-Clause"
] | 67 | 2015-10-05T16:57:14.000Z | 2022-03-28T19:57:36.000Z | alexia/apps/general/templatetags/menuitem.py | LaudateCorpus1/alexia-1 | 9c0d3c90c0ffe2237299a561b755b9c17905e354 | [
"BSD-3-Clause"
] | 6 | 2015-10-05T13:54:34.000Z | 2021-11-30T05:11:58.000Z | import re
from django.template import Library, Node, TemplateSyntaxError
from django.template.base import token_kwargs
from django.urls import Resolver404, resolve
from django.utils.html import format_html
register = Library()
class MenuItemNode(Node):
def __init__(self, nodelist, pattern, kwargs):
self... | 29.203704 | 112 | 0.637286 | 181 | 1,577 | 5.403315 | 0.40884 | 0.0409 | 0.039877 | 0.046012 | 0.038855 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008418 | 0.246671 | 1,577 | 53 | 113 | 29.754717 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0.079264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.125 | 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 |
3a0830f683c3bcea14ab59eb19f8a4474d9635b6 | 3,984 | py | Python | superai/log/logger.py | mysuperai/superai-sdk | 796c411c6ab69209600bf727e8fd08c20f4d67b1 | [
"Apache-2.0"
] | 1 | 2020-12-03T18:18:16.000Z | 2020-12-03T18:18:16.000Z | superai/log/logger.py | mysuperai/superai-sdk | 796c411c6ab69209600bf727e8fd08c20f4d67b1 | [
"Apache-2.0"
] | 13 | 2021-02-22T18:27:58.000Z | 2022-02-10T08:14:10.000Z | superai/log/logger.py | mysuperai/superai-sdk | 796c411c6ab69209600bf727e8fd08c20f4d67b1 | [
"Apache-2.0"
] | 1 | 2021-04-27T12:38:47.000Z | 2021-04-27T12:38:47.000Z | """ Log initializer """
from __future__ import absolute_import, division, print_function, unicode_literals
import itertools
import logging
import sys
import os
from logging.handlers import RotatingFileHandler
from rich.logging import RichHandler
from typing import List
DEBUG = logging.DEBUG
INFO = logging.INFO
ERROR ... | 29.511111 | 116 | 0.704317 | 513 | 3,984 | 5.255361 | 0.272904 | 0.066766 | 0.04451 | 0.046736 | 0.148368 | 0.10089 | 0.10089 | 0.10089 | 0.034125 | 0 | 0 | 0.00464 | 0.188504 | 3,984 | 134 | 117 | 29.731343 | 0.829261 | 0.145331 | 0 | 0 | 0 | 0.012048 | 0.085963 | 0.016531 | 0 | 0 | 0 | 0 | 0 | 1 | 0.13253 | false | 0 | 0.096386 | 0 | 0.373494 | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |