hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 248 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 248 | max_forks_repo_name stringlengths 5 125 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
92d06ca78c4166453aab94fc3bfe5663b950cc53 | 261 | py | Python | XMLHttpRequest/resources/shift-jis-html.py | watilde/web-platform-tests | 97e16bef6d6599ae805521e2007a9430a12aa144 | [
"BSD-3-Clause"
] | 4 | 2020-09-09T15:28:01.000Z | 2021-12-01T00:59:56.000Z | XMLHttpRequest/resources/shift-jis-html.py | watilde/web-platform-tests | 97e16bef6d6599ae805521e2007a9430a12aa144 | [
"BSD-3-Clause"
] | 1 | 2021-03-31T20:23:55.000Z | 2021-03-31T20:23:55.000Z | XMLHttpRequest/resources/shift-jis-html.py | watilde/web-platform-tests | 97e16bef6d6599ae805521e2007a9430a12aa144 | [
"BSD-3-Clause"
] | 1 | 2020-03-31T17:20:54.000Z | 2020-03-31T17:20:54.000Z | def main(request, response):
headers = [("Content-type", "text/html;charset=shift-jis")]
# Shift-JIS bytes for katakana TE SU TO ('test')
content = chr(0x83) + chr(0x65) + chr(0x83) + chr(0x58) + chr(0x83) + chr(0x67);
return headers, content
| 37.285714 | 85 | 0.636015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 91 | 0.348659 |
92d135cd3396bc2bfc2ba5711e29b118672c8503 | 1,676 | py | Python | setup.py | dolfim/django-mail-gmailapi | c2f7319329d07d6ecd41e4addc05e47c38fd5e19 | [
"Apache-2.0"
] | null | null | null | setup.py | dolfim/django-mail-gmailapi | c2f7319329d07d6ecd41e4addc05e47c38fd5e19 | [
"Apache-2.0"
] | null | null | null | setup.py | dolfim/django-mail-gmailapi | c2f7319329d07d6ecd41e4addc05e47c38fd5e19 | [
"Apache-2.0"
] | null | null | null | import re
from setuptools import setup, find_packages
import sys
if sys.version_info < (3, 5):
raise 'must use Python version 3.5 or higher'
with open('./gmailapi_backend/__init__.py', 'r') as f:
MATCH_EXPR = "__version__[^'\"]+(['\"])([^'\"]+)"
VERSION = re.search(MATCH_EXPR, f.read()).group(2).strip()
... | 33.52 | 79 | 0.614558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 972 | 0.579952 |
92d23334c19f98d7d5d931da713ce60c1a673466 | 1,351 | py | Python | openpeerpower/scripts/ensure_config.py | OpenPeerPower/openpeerpower | 940a04a88e8f78e2d010dc912ad6905ae363503c | [
"Apache-2.0"
] | null | null | null | openpeerpower/scripts/ensure_config.py | OpenPeerPower/openpeerpower | 940a04a88e8f78e2d010dc912ad6905ae363503c | [
"Apache-2.0"
] | null | null | null | openpeerpower/scripts/ensure_config.py | OpenPeerPower/openpeerpower | 940a04a88e8f78e2d010dc912ad6905ae363503c | [
"Apache-2.0"
] | 1 | 2019-04-24T14:10:08.000Z | 2019-04-24T14:10:08.000Z | """Script to ensure a configuration file exists."""
import argparse
import os
import openpeerpower.config as config_util
from openpeerpower.core import OpenPeerPower
# mypy: allow-untyped-calls, allow-untyped-defs
def run(args):
"""Handle ensure config commandline script."""
parser = argparse.ArgumentParser... | 28.145833 | 79 | 0.687639 | 0 | 0 | 0 | 0 | 0 | 0 | 174 | 0.128793 | 440 | 0.325685 |
92d2be755f1c0894c43d329732b414de4bf31ab2 | 195 | py | Python | atcoder/abc132A_fifty_fifty.py | uninhm/kyopro | bf6ed9cbf6a5e46cde0291f7aa9d91a8ddf1f5a3 | [
"BSD-3-Clause"
] | 31 | 2020-05-13T01:07:55.000Z | 2021-07-13T07:53:26.000Z | atcoder/abc132A_fifty_fifty.py | uninhm/kyopro | bf6ed9cbf6a5e46cde0291f7aa9d91a8ddf1f5a3 | [
"BSD-3-Clause"
] | 10 | 2020-05-20T07:22:09.000Z | 2021-07-19T03:52:13.000Z | atcoder/abc132A_fifty_fifty.py | uninhm/kyopro | bf6ed9cbf6a5e46cde0291f7aa9d91a8ddf1f5a3 | [
"BSD-3-Clause"
] | 14 | 2020-05-11T05:58:36.000Z | 2021-12-07T03:20:43.000Z | # Vicfred
# https://atcoder.jp/contests/abc132/tasks/abc132_a
# implementation
S = list(input())
if len(set(S)) == 2:
if S.count(S[0]) == 2:
print("Yes")
quit()
print("No")
| 16.25 | 51 | 0.574359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 85 | 0.435897 |
92d3126cd9f9279a6936076ceba3b9c4bff9aa48 | 11,146 | py | Python | dabl/plot/tests/test_supervised.py | nrohan09-cloud/dabl | ebc4686c7b16c011bf5266cb6335221309aacb80 | [
"BSD-3-Clause"
] | 500 | 2019-04-01T13:50:18.000Z | 2022-03-07T01:50:45.000Z | dabl/plot/tests/test_supervised.py | nrohan09-cloud/dabl | ebc4686c7b16c011bf5266cb6335221309aacb80 | [
"BSD-3-Clause"
] | 111 | 2019-04-01T17:48:40.000Z | 2020-03-27T16:39:19.000Z | dabl/plot/tests/test_supervised.py | nrohan09-cloud/dabl | ebc4686c7b16c011bf5266cb6335221309aacb80 | [
"BSD-3-Clause"
] | 60 | 2019-04-01T14:58:35.000Z | 2021-08-13T02:58:20.000Z | import pytest
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import itertools
from sklearn.datasets import (make_regression, make_blobs, load_digits,
fetch_openml, load_diabetes)
from sklearn.preprocessing import KBinsDiscretizer
from dabl.preprocessing import cle... | 35.610224 | 79 | 0.63386 | 0 | 0 | 0 | 0 | 3,371 | 0.30244 | 0 | 0 | 2,441 | 0.219002 |
92d3e306e086847f38535479f8de8893955d728c | 4,480 | py | Python | scripts/calculate_rank.py | daniel-theis/multicore-test-harness | d0ff54ef1c9f9637dd16dd8b85ac1cee8dc49e19 | [
"MIT"
] | 15 | 2018-05-06T20:54:41.000Z | 2020-12-04T05:36:11.000Z | scripts/calculate_rank.py | daniel-theis/multicore-test-harness | d0ff54ef1c9f9637dd16dd8b85ac1cee8dc49e19 | [
"MIT"
] | null | null | null | scripts/calculate_rank.py | daniel-theis/multicore-test-harness | d0ff54ef1c9f9637dd16dd8b85ac1cee8dc49e19 | [
"MIT"
] | 3 | 2020-12-04T05:36:13.000Z | 2021-09-08T11:53:16.000Z | ################################################################################
# Copyright (c) 2017 Dan Iorga, Tyler Sorenson, Alastair Donaldson
# 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... | 39.646018 | 107 | 0.579241 | 2,924 | 0.652679 | 0 | 0 | 0 | 0 | 0 | 0 | 2,020 | 0.450893 |
92d42a0f362d457b4431027767a7c26d248663c3 | 6,206 | py | Python | contrib/antlrqueryparser/src/python/generate_asts.py | marblestation/montysolr | 50917b4d53caac633fe9d1965f175401b3edc77d | [
"Apache-2.0"
] | 24 | 2015-03-23T17:57:47.000Z | 2021-11-01T17:08:58.000Z | contrib/antlrqueryparser/src/python/generate_asts.py | marblestation/montysolr | 50917b4d53caac633fe9d1965f175401b3edc77d | [
"Apache-2.0"
] | 138 | 2015-01-02T16:47:51.000Z | 2022-02-26T02:44:07.000Z | contrib/antlrqueryparser/src/python/generate_asts.py | marblestation/montysolr | 50917b4d53caac633fe9d1965f175401b3edc77d | [
"Apache-2.0"
] | 10 | 2015-03-11T19:49:51.000Z | 2020-12-09T09:22:02.000Z |
import sys
import subprocess as sub
import os
"""
Simple utility script to generate HTML charts of how ANTLR parses
every query and what is the resulting AST.
"""
def run(grammar_name, basedir='',
cp='.:/dvt/antlr-142/lib/antlr-3.4-complete.jar:/x/dev/antlr-34/lib/antlr-3.4-complete.jar',
grammardi... | 30.722772 | 144 | 0.496616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,529 | 0.246374 |
92d5a318d2e721b05edd8c4dc433e4875c24b448 | 6,318 | py | Python | visual_perception/Detection/yolov4/__init__.py | SSusantAchary/Visual-Perception | b81ffe69ab85e9afb7ee6eece43ac83c8f292285 | [
"MIT"
] | null | null | null | visual_perception/Detection/yolov4/__init__.py | SSusantAchary/Visual-Perception | b81ffe69ab85e9afb7ee6eece43ac83c8f292285 | [
"MIT"
] | null | null | null | visual_perception/Detection/yolov4/__init__.py | SSusantAchary/Visual-Perception | b81ffe69ab85e9afb7ee6eece43ac83c8f292285 | [
"MIT"
] | null | null | null | """
MIT License
Copyright (c) 2020 Susant Achary <[email protected]>
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, copy, ... | 43.875 | 141 | 0.608895 | 3,811 | 0.603197 | 0 | 0 | 0 | 0 | 0 | 0 | 2,065 | 0.326844 |
92d6916cbd5aa31c26daff18d295d7d026f17d82 | 517 | py | Python | server/mqtt/handler.py | rishab-rb/MyIOTMap | e27a73b58cd3a9aba558ebacfb2bf8b6ef4761aa | [
"MIT"
] | 1 | 2018-10-08T06:11:20.000Z | 2018-10-08T06:11:20.000Z | server/mqtt/handler.py | rishab-rb/MyIOTMap | e27a73b58cd3a9aba558ebacfb2bf8b6ef4761aa | [
"MIT"
] | null | null | null | server/mqtt/handler.py | rishab-rb/MyIOTMap | e27a73b58cd3a9aba558ebacfb2bf8b6ef4761aa | [
"MIT"
] | 2 | 2018-07-30T08:18:22.000Z | 2018-10-11T08:04:58.000Z | import paho.client as mqtt
HOST = 'localhost'
PORT = 1883
class MQTTConnector:
def __init__(self, host, port):
host = host
port = port
client = mqtt.Client()
def connect():
self.client.connect(self.host, self.port, 60)
def run(self):
self.client.loop_... | 19.884615 | 61 | 0.609284 | 453 | 0.876209 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 0.021277 |
92d713c9c1666b57fdf260fc3597ec5bb433209c | 1,886 | py | Python | scripts/spacy_files/similarity_replacement.py | HighDeFing/thesis_v4 | 2dc9288af75a8b51fe54ed66f520e8aa8a0ab3c7 | [
"Apache-2.0"
] | null | null | null | scripts/spacy_files/similarity_replacement.py | HighDeFing/thesis_v4 | 2dc9288af75a8b51fe54ed66f520e8aa8a0ab3c7 | [
"Apache-2.0"
] | null | null | null | scripts/spacy_files/similarity_replacement.py | HighDeFing/thesis_v4 | 2dc9288af75a8b51fe54ed66f520e8aa8a0ab3c7 | [
"Apache-2.0"
] | null | null | null | #!/bin/env python
from black import main
import spacy
import json
from spacy import displacy
import unidecode
import pandas as pd
import numpy as np
import os
csv_source = "scripts/spacy_files/data/thesis_200_with_school.csv"
df = pd.read_csv(csv_source)
df = df[df['isScan']==False]
df = df.sort_values('isScan', asce... | 25.486486 | 83 | 0.718982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 290 | 0.153683 |
92d920562d22f1142cab1ea79e81051636bf317f | 7,212 | py | Python | test/unittest_base.py | dat-boris/tensorforce | d777121b1c971da5500572c5f83173b9229f7370 | [
"Apache-2.0"
] | null | null | null | test/unittest_base.py | dat-boris/tensorforce | d777121b1c971da5500572c5f83173b9229f7370 | [
"Apache-2.0"
] | null | null | null | test/unittest_base.py | dat-boris/tensorforce | d777121b1c971da5500572c5f83173b9229f7370 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Tensorforce Team. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 35.880597 | 97 | 0.634498 | 6,120 | 0.848586 | 0 | 0 | 0 | 0 | 0 | 0 | 1,276 | 0.176927 |
92dadd375392924dd104471b2991098481772c78 | 132 | py | Python | mspray/apps/reveal/__init__.py | onaio/mspray | b3e0f4b5855abbf0298de6b66f2e9f472f2bf838 | [
"Apache-2.0"
] | null | null | null | mspray/apps/reveal/__init__.py | onaio/mspray | b3e0f4b5855abbf0298de6b66f2e9f472f2bf838 | [
"Apache-2.0"
] | 76 | 2018-03-15T09:37:56.000Z | 2019-05-15T12:45:51.000Z | mspray/apps/reveal/__init__.py | onaio/mspray | b3e0f4b5855abbf0298de6b66f2e9f472f2bf838 | [
"Apache-2.0"
] | 1 | 2020-10-31T07:15:22.000Z | 2020-10-31T07:15:22.000Z | """init module for reveal app"""
# pylint: disable=invalid-name
default_app_config = "mspray.apps.reveal.apps.RevealConfig" # noqa
| 33 | 67 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 106 | 0.80303 |
92dbf0257f2cb3330104352818f4db40e27c4927 | 513 | py | Python | guifw/models/port.py | luizerico/PyGuiFW | d79347db7d4bd9e09fbc53215d79c06ccf16bad5 | [
"MIT"
] | 1 | 2021-02-05T02:58:19.000Z | 2021-02-05T02:58:19.000Z | guifw/models/port.py | luizerico/PyGuiFW | d79347db7d4bd9e09fbc53215d79c06ccf16bad5 | [
"MIT"
] | 1 | 2018-11-09T16:10:50.000Z | 2018-11-09T16:10:50.000Z | guifw/models/port.py | luizerico/PyGuiFW | d79347db7d4bd9e09fbc53215d79c06ccf16bad5 | [
"MIT"
] | null | null | null | from django.db import models
from django import forms
from audit_log.models.managers import AuditLog
# Create your models here.
class Port(models.Model):
name = models.CharField(max_length=250)
port = models.CharField(max_length=250)
description = models.TextField(blank=True)
audit_log = AuditLog()... | 20.52 | 61 | 0.707602 | 378 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 0.161793 |
92dc4e7fbdb299e18e1175c0718307d433b0cb15 | 386 | py | Python | app/backend/arm/migrations/0002_auto_20190924_1712.py | karstenv/nmp-arm | 47e45f0391820000f461ab6e994e20eacfffb457 | [
"Apache-2.0"
] | 2 | 2019-08-12T22:06:23.000Z | 2019-10-22T20:50:32.000Z | app/backend/arm/migrations/0002_auto_20190924_1712.py | karstenv/nmp-arm | 47e45f0391820000f461ab6e994e20eacfffb457 | [
"Apache-2.0"
] | 12 | 2019-07-10T18:11:31.000Z | 2022-02-10T08:47:57.000Z | app/backend/arm/migrations/0002_auto_20190924_1712.py | karstenv/nmp-arm | 47e45f0391820000f461ab6e994e20eacfffb457 | [
"Apache-2.0"
] | 6 | 2019-07-03T21:24:11.000Z | 2021-04-29T17:31:34.000Z | # Generated by Django 2.2.5 on 2019-09-25 00:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('arm', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name='CautionMessage',
),
migrations.Dele... | 19.3 | 48 | 0.546632 | 295 | 0.764249 | 0 | 0 | 0 | 0 | 0 | 0 | 100 | 0.259067 |
92dc54efa676f164aaadbce167924df2d1df95ab | 7,112 | py | Python | webcam_demo.py | taranek/tennis-stats-provider | e95093679a194d30d0727ec8e11d44fc462f6adc | [
"Apache-2.0"
] | null | null | null | webcam_demo.py | taranek/tennis-stats-provider | e95093679a194d30d0727ec8e11d44fc462f6adc | [
"Apache-2.0"
] | null | null | null | webcam_demo.py | taranek/tennis-stats-provider | e95093679a194d30d0727ec8e11d44fc462f6adc | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
import json
import math
import cv2
import time
import argparse
import concurrent.futures
import posenet
import keyboard
import sys
import numpy as np
from threading import Thread
from slugify import slugify
parser = argparse.ArgumentParser()
parser.add_argument('--model', type=int, default=101)... | 37.829787 | 137 | 0.564398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,647 | 0.23158 |
92df29892405e44dded087915f2a1792a9fb1160 | 6,265 | py | Python | otcextensions/tests/unit/osclient/dcs/v1/fakes.py | zsoltn/python-otcextensions | 4c0fa22f095ebd5f9636ae72acbae5048096822c | [
"Apache-2.0"
] | null | null | null | otcextensions/tests/unit/osclient/dcs/v1/fakes.py | zsoltn/python-otcextensions | 4c0fa22f095ebd5f9636ae72acbae5048096822c | [
"Apache-2.0"
] | null | null | null | otcextensions/tests/unit/osclient/dcs/v1/fakes.py | zsoltn/python-otcextensions | 4c0fa22f095ebd5f9636ae72acbae5048096822c | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distrib... | 36.005747 | 77 | 0.555148 | 5,298 | 0.84565 | 0 | 0 | 4,388 | 0.700399 | 0 | 0 | 1,804 | 0.287949 |
92df7af4ff3a17d2d4ea5d2cff4ae315569f3502 | 830 | py | Python | tests/dummy_repo/tvm/python/tvm/api.py | csullivan/ffi-navigator | ed47678f9cb8c6d3637bf3219d3cf7b2754b84bb | [
"Apache-2.0"
] | 148 | 2019-12-28T19:02:17.000Z | 2022-03-27T07:30:13.000Z | tests/dummy_repo/tvm/python/tvm/api.py | csullivan/ffi-navigator | ed47678f9cb8c6d3637bf3219d3cf7b2754b84bb | [
"Apache-2.0"
] | 21 | 2019-12-28T17:29:24.000Z | 2021-11-24T09:59:35.000Z | tests/dummy_repo/tvm/python/tvm/api.py | csullivan/ffi-navigator | ed47678f9cb8c6d3637bf3219d3cf7b2754b84bb | [
"Apache-2.0"
] | 17 | 2019-12-29T01:46:13.000Z | 2022-01-10T09:56:46.000Z | from ._ffi.base import string_types
from ._ffi.object import register_object, Object
from ._ffi.node import register_node, NodeBase
from ._ffi.node import convert_to_node as _convert_to_node
from ._ffi.node_generic import _scalar_type_inference
from ._ffi.function import Function
from ._ffi.function import _init_api, r... | 31.923077 | 87 | 0.812048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 30 | 0.036145 |
92dfa8870f87fbcfb31691bd442140d0c802358d | 4,121 | py | Python | torchattacks/attacks/multiattack.py | Harry24k/adversarial-attacks-pytorch | bfa2aa8d6f0c3b8086718f9f31526fcafa6995bb | [
"MIT"
] | 782 | 2020-03-28T01:56:36.000Z | 2022-03-31T14:54:02.000Z | torchattacks/attacks/multiattack.py | Harry24k/adversarial-attacks-pytorch | bfa2aa8d6f0c3b8086718f9f31526fcafa6995bb | [
"MIT"
] | 48 | 2020-04-18T23:06:30.000Z | 2022-03-24T01:54:50.000Z | torchattacks/attacks/multiattack.py | Harry24k/adversarial-attacks-pytorch | bfa2aa8d6f0c3b8086718f9f31526fcafa6995bb | [
"MIT"
] | 197 | 2020-03-31T05:21:02.000Z | 2022-03-31T15:24:29.000Z | import copy
import torch
from ..attack import Attack
class MultiAttack(Attack):
r"""
MultiAttack is a class to attack a model with various attacks agains same images and labels.
Arguments:
model (nn.Module): model to attack.
attacks (list): list of attacks.
Examples::
>>> at... | 33.778689 | 108 | 0.626062 | 4,064 | 0.986168 | 0 | 0 | 0 | 0 | 0 | 0 | 857 | 0.207959 |
92e0877363cacd633cbbf12e0ee4175cb9564598 | 2,627 | py | Python | src/manager/om/script/gspylib/inspection/items/os/CheckPortConflict.py | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | 1 | 2020-06-30T15:00:50.000Z | 2020-06-30T15:00:50.000Z | src/manager/om/script/gspylib/inspection/items/os/CheckPortConflict.py | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | src/manager/om/script/gspylib/inspection/items/os/CheckPortConflict.py | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | # -*- coding:utf-8 -*-
# Copyright (c) 2020 Huawei Technologies Co.,Ltd.
#
# openGauss is licensed under Mulan PSL v2.
# You can use this software according to the terms
# and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#
# http://license.coscl.org.cn/MulanPSL2
#
# THIS SOFTWARE... | 39.80303 | 79 | 0.53445 | 1,851 | 0.704606 | 0 | 0 | 0 | 0 | 0 | 0 | 1,039 | 0.395508 |
92e16c1fa8d877e82eb805100d17b73907afb25e | 646 | py | Python | _scripts/_build.py | dfreeman06/wxyz | 663cf6593f4c0ca12f7b94b61e34c0a8d3cbcdfd | [
"BSD-3-Clause"
] | 1 | 2021-06-20T12:21:27.000Z | 2021-06-20T12:21:27.000Z | _scripts/_build.py | nrbgt/wxyz | 663cf6593f4c0ca12f7b94b61e34c0a8d3cbcdfd | [
"BSD-3-Clause"
] | null | null | null | _scripts/_build.py | nrbgt/wxyz | 663cf6593f4c0ca12f7b94b61e34c0a8d3cbcdfd | [
"BSD-3-Clause"
] | null | null | null | import subprocess
import sys
from . import ROOT, PY_SRC, _run, PY, DIST
CONDA_ORDER = [
"core",
"html",
"lab",
"datagrid",
"svg",
"tpl-jjinja"
"yaml"
]
CONDA_BUILD_ARGS = [
"conda-build", "-c", "conda-forge", "--output-folder", DIST / "conda-bld",
]
if __name__ == "__main__":
f... | 20.83871 | 83 | 0.560372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 213 | 0.329721 |
92e1c91fec4c34f39e9e2622024fad4489b61749 | 5,279 | py | Python | scripts/C189/C189Checkin.py | xiaopowanyi/py_scripts | 29f240800eefd6e0f91fd098c35ac3c451172ff8 | [
"MIT"
] | 2 | 2020-11-14T05:42:49.000Z | 2020-11-14T05:43:13.000Z | scripts/C189/C189Checkin.py | J220541674/py_scripts | 2b72e23041392a2e5f0a7305d7e9802054978384 | [
"MIT"
] | null | null | null | scripts/C189/C189Checkin.py | J220541674/py_scripts | 2b72e23041392a2e5f0a7305d7e9802054978384 | [
"MIT"
] | null | null | null | import requests, time, re, rsa, json, base64
from urllib import parse
s = requests.Session()
username = ""
password = ""
if(username == "" or password == ""):
username = input("账号:")
password = input("密码:")
def main():
login(username, password)
rand = str(round(time.time()*1000))
surl = f'https:... | 37.707143 | 305 | 0.586664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,331 | 0.432227 |
92e2096dcbe8b31e8b6213b7078b62e4efd23dd0 | 3,318 | py | Python | Mmint/CGratio.py | lijiacd985/Mplot | adea07aa78a5495cf3551618f6ec2c08fa7c1029 | [
"MIT"
] | 5 | 2018-07-02T16:33:23.000Z | 2021-03-23T00:32:31.000Z | Mmint/CGratio.py | lijiacd985/Mplot | adea07aa78a5495cf3551618f6ec2c08fa7c1029 | [
"MIT"
] | 1 | 2017-09-19T19:46:11.000Z | 2020-02-28T05:00:49.000Z | Mmint/CGratio.py | lijiacd985/Mplot | adea07aa78a5495cf3551618f6ec2c08fa7c1029 | [
"MIT"
] | 4 | 2017-11-16T15:26:24.000Z | 2020-02-13T16:25:25.000Z | import subprocess
from .Genome_fasta import get_fasta
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
import numpy as np
import pysam
def run(parser):
args = parser.parse_args()
bases,chrs = get_fasta(args.genome)
l={}
for c in chrs:
l[c]=len(bases[c])
chrs = se... | 33.857143 | 177 | 0.589813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 968 | 0.291742 |
92e278de46c7d8190178a6e51a0f4e234995f14e | 1,536 | py | Python | src/furo/__init__.py | sethmlarson/furo | 1257d884dae9040248380595e06d7d2a1e6eba39 | [
"MIT"
] | null | null | null | src/furo/__init__.py | sethmlarson/furo | 1257d884dae9040248380595e06d7d2a1e6eba39 | [
"MIT"
] | null | null | null | src/furo/__init__.py | sethmlarson/furo | 1257d884dae9040248380595e06d7d2a1e6eba39 | [
"MIT"
] | null | null | null | """A clean customisable Sphinx documentation theme."""
__version__ = "2020.9.8.beta2"
from pathlib import Path
from .body import wrap_tables
from .code import get_pygments_style_colors
from .navigation import get_navigation_tree
from .toc import should_hide_toc
def _html_page_context(app, pagename, templatename, c... | 32 | 73 | 0.69401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 503 | 0.327474 |
92e3577604795bc43851e0afe7af80fe0fe26bbf | 2,059 | py | Python | experiments/mix_down.py | fretboardfreak/potty_oh | 70b752c719576c0975e1d2af5aca2fc7abc8abcc | [
"Apache-2.0"
] | null | null | null | experiments/mix_down.py | fretboardfreak/potty_oh | 70b752c719576c0975e1d2af5aca2fc7abc8abcc | [
"Apache-2.0"
] | 1 | 2016-05-04T03:51:36.000Z | 2016-05-16T19:08:02.000Z | experiments/mix_down.py | fretboardfreak/potty_oh | 70b752c719576c0975e1d2af5aca2fc7abc8abcc | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2016 Curtis Sand
#
# 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 la... | 34.898305 | 78 | 0.736765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 695 | 0.337542 |
92e37ec4545956a8e8242b1871fea16288a1a867 | 8,704 | py | Python | tests/test_hrepr.py | fabaff/hrepr | f6de915f1d34c47ceab11f5f70e433a30e6de174 | [
"MIT"
] | null | null | null | tests/test_hrepr.py | fabaff/hrepr | f6de915f1d34c47ceab11f5f70e433a30e6de174 | [
"MIT"
] | null | null | null | tests/test_hrepr.py | fabaff/hrepr | f6de915f1d34c47ceab11f5f70e433a30e6de174 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from hrepr import H
from hrepr import hrepr as real_hrepr
from hrepr.h import styledir
from .common import one_test_per_assert
css_hrepr = open(f"{styledir}/hrepr.css", encoding="utf-8").read()
hrepr = real_hrepr.variant(fill_resources=False)
@dataclass
class Point:
x: int
... | 29.110368 | 79 | 0.443934 | 56 | 0.006431 | 0 | 0 | 1,577 | 0.181098 | 0 | 0 | 2,632 | 0.302251 |
92e459320d22b81d1d537a46bdb22eb8751da72d | 6,218 | py | Python | sympy/assumptions/assume.py | shivangdubey/sympy | bd3ddd4c71d439c8b623f69a02274dd8a8a82198 | [
"BSD-3-Clause"
] | 2 | 2020-07-27T16:36:27.000Z | 2020-12-29T22:28:37.000Z | sympy/assumptions/assume.py | shivangdubey/sympy | bd3ddd4c71d439c8b623f69a02274dd8a8a82198 | [
"BSD-3-Clause"
] | 2 | 2020-08-18T15:21:59.000Z | 2020-08-18T19:35:29.000Z | sympy/assumptions/assume.py | shivangdubey/sympy | bd3ddd4c71d439c8b623f69a02274dd8a8a82198 | [
"BSD-3-Clause"
] | 2 | 2021-01-08T23:03:23.000Z | 2021-01-13T18:57:02.000Z | import inspect
from sympy.core.cache import cacheit
from sympy.core.singleton import S
from sympy.core.sympify import _sympify
from sympy.logic.boolalg import Boolean
from sympy.utilities.source import get_class
from contextlib import contextmanager
class AssumptionsContext(set):
"""Set representing assumptions.
... | 26.686695 | 81 | 0.587488 | 5,328 | 0.856867 | 569 | 0.091509 | 1,590 | 0.255709 | 0 | 0 | 2,684 | 0.43165 |
92e5ae34177c1ed1dca21481a52e063cdd40f997 | 5,794 | py | Python | distancematrix/tests/consumer/test_distance_matrix.py | IDLabResearch/seriesdistancematrix | c0e666d036f24184511e766cee9fdfa55f41df97 | [
"MIT"
] | 12 | 2019-11-22T14:34:51.000Z | 2021-05-04T19:23:55.000Z | distancematrix/tests/consumer/test_distance_matrix.py | predict-idlab/seriesdistancematrix | c0e666d036f24184511e766cee9fdfa55f41df97 | [
"MIT"
] | 1 | 2020-04-28T07:59:03.000Z | 2020-04-28T07:59:03.000Z | distancematrix/tests/consumer/test_distance_matrix.py | IDLabResearch/seriesdistancematrix | c0e666d036f24184511e766cee9fdfa55f41df97 | [
"MIT"
] | 3 | 2020-03-02T12:39:00.000Z | 2021-03-22T13:36:25.000Z | import numpy as np
from unittest import TestCase
import numpy.testing as npt
from distancematrix.util import diag_indices_of
from distancematrix.consumer.distance_matrix import DistanceMatrix
class TestContextualMatrixProfile(TestCase):
def setUp(self):
self.dist_matrix = np.array([
[8.67, 1... | 42.602941 | 104 | 0.608733 | 5,598 | 0.966172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
92e5bc0e9b68f032b202632a0013f3e6bb85256a | 11,460 | py | Python | supervisor/const.py | peddamat/home-assistant-supervisor-test | 5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4 | [
"Apache-2.0"
] | null | null | null | supervisor/const.py | peddamat/home-assistant-supervisor-test | 5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4 | [
"Apache-2.0"
] | null | null | null | supervisor/const.py | peddamat/home-assistant-supervisor-test | 5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4 | [
"Apache-2.0"
] | null | null | null | """Constants file for Supervisor."""
from enum import Enum
from ipaddress import ip_network
from pathlib import Path
SUPERVISOR_VERSION = "DEV"
URL_HASSIO_ADDONS = "https://github.com/home-assistant/addons"
URL_HASSIO_APPARMOR = "https://version.home-assistant.io/apparmor.txt"
URL_HASSIO_VERSION = "https://version.ho... | 25.986395 | 84 | 0.755585 | 1,357 | 0.118412 | 0 | 0 | 0 | 0 | 0 | 0 | 4,428 | 0.386387 |
92e5e938e0e0af1229cd08971df68b5917c123c7 | 8,334 | py | Python | quaesit/agent.py | jgregoriods/quaesit | 3846f5084ea4d6c1cbd9a93176ee9dee25e12105 | [
"MIT"
] | null | null | null | quaesit/agent.py | jgregoriods/quaesit | 3846f5084ea4d6c1cbd9a93176ee9dee25e12105 | [
"MIT"
] | null | null | null | quaesit/agent.py | jgregoriods/quaesit | 3846f5084ea4d6c1cbd9a93176ee9dee25e12105 | [
"MIT"
] | null | null | null | import inspect
from math import hypot, sin, asin, cos, radians, degrees
from abc import ABCMeta, abstractmethod
from random import randint, choice
from typing import Dict, List, Tuple, Union
class Agent(metaclass=ABCMeta):
"""
Class to represent an agent in an agent-based model.
"""
_id = 0
colo... | 35.016807 | 76 | 0.517639 | 8,139 | 0.976602 | 0 | 0 | 179 | 0.021478 | 0 | 0 | 1,981 | 0.237701 |
92e5fb97c8f7793e1b150c9be5289156548c78e6 | 15,337 | py | Python | models/LRF_COCO_300.py | vaesl/LRF-Net | e44b120dd55288c02852f8e58cda31313525d748 | [
"MIT"
] | 180 | 2019-10-24T01:55:54.000Z | 2022-02-07T11:26:49.000Z | models/LRF_COCO_300.py | CV-Rookie/LRF-Net | e44b120dd55288c02852f8e58cda31313525d748 | [
"MIT"
] | 11 | 2019-11-06T08:46:00.000Z | 2020-06-20T02:30:32.000Z | models/LRF_COCO_300.py | CV-Rookie/LRF-Net | e44b120dd55288c02852f8e58cda31313525d748 | [
"MIT"
] | 29 | 2019-10-28T03:26:27.000Z | 2021-05-03T02:32:06.000Z | import torch
import torch.nn as nn
import os
import torch.nn.functional as F
class LDS(nn.Module):
def __init__(self,):
super(LDS, self).__init__()
self.pool1 = nn.MaxPool2d(kernel_size=(2, 2), stride=2, padding=0)
self.pool2 = nn.MaxPool2d(kernel_size=(2, 2), stride=2, padding=0)
... | 36.516667 | 154 | 0.579774 | 11,783 | 0.768273 | 0 | 0 | 0 | 0 | 0 | 0 | 2,342 | 0.152703 |
92e751e7128a30f8b366e1182af0f9e14b4591cd | 25,418 | py | Python | tests/test.py | chromia/wandplus | 815127aeee85dbac3bc8fca35971d2153b1898a9 | [
"ImageMagick",
"MIT"
] | null | null | null | tests/test.py | chromia/wandplus | 815127aeee85dbac3bc8fca35971d2153b1898a9 | [
"ImageMagick",
"MIT"
] | null | null | null | tests/test.py | chromia/wandplus | 815127aeee85dbac3bc8fca35971d2153b1898a9 | [
"ImageMagick",
"MIT"
] | null | null | null | #!/usr/bin/env python
from wand.image import Image
from wand.drawing import Drawing
from wand.color import Color
import wandplus.image as wpi
from wandplus.textutil import calcSuitableFontsize, calcSuitableImagesize
import os
import unittest
tmpdir = '_tmp/'
def save(img, function, channel=False, ext='.png'):
... | 29.487239 | 81 | 0.464395 | 24,871 | 0.97848 | 0 | 0 | 1,080 | 0.04249 | 0 | 0 | 2,114 | 0.083169 |
92e78a29e0f69d74c35aa00744e686a1763079d2 | 7,652 | py | Python | src/librender/tests/test_mesh.py | tizian/layer-laboratory | 008cc94b76127e9eb74227fcd3d0145da8ddec30 | [
"CNRI-Python"
] | 7 | 2020-07-24T03:19:59.000Z | 2022-03-30T10:56:12.000Z | src/librender/tests/test_mesh.py | tizian/layer-laboratory | 008cc94b76127e9eb74227fcd3d0145da8ddec30 | [
"CNRI-Python"
] | 1 | 2021-04-07T22:30:23.000Z | 2021-04-08T00:55:36.000Z | src/librender/tests/test_mesh.py | tizian/layer-laboratory | 008cc94b76127e9eb74227fcd3d0145da8ddec30 | [
"CNRI-Python"
] | 2 | 2020-06-08T08:25:09.000Z | 2021-04-05T22:13:08.000Z | import mitsuba
import pytest
import enoki as ek
from enoki.dynamic import Float32 as Float
from mitsuba.python.test.util import fresolver_append_path
from mitsuba.python.util import traverse
def test01_create_mesh(variant_scalar_rgb):
from mitsuba.core import Struct, float_dtype
from mitsuba.render import Me... | 32.561702 | 93 | 0.611997 | 0 | 0 | 0 | 0 | 5,213 | 0.68126 | 0 | 0 | 2,384 | 0.311553 |
92e9c5118907200831bee6234267cd344285472f | 1,457 | py | Python | agsadmin/sharing_admin/community/groups/Group.py | christopherblanchfield/agsadmin | 989cb3795aacf285ccf74ee51b0de26bf2f48bc3 | [
"BSD-3-Clause"
] | 2 | 2015-12-07T05:53:29.000Z | 2020-09-13T18:12:15.000Z | agsadmin/sharing_admin/community/groups/Group.py | christopherblanchfield/agsadmin | 989cb3795aacf285ccf74ee51b0de26bf2f48bc3 | [
"BSD-3-Clause"
] | 4 | 2015-03-09T05:59:14.000Z | 2018-01-09T00:12:56.000Z | agsadmin/sharing_admin/community/groups/Group.py | christopherblanchfield/agsadmin | 989cb3795aacf285ccf74ee51b0de26bf2f48bc3 | [
"BSD-3-Clause"
] | 5 | 2015-03-09T01:05:24.000Z | 2019-09-09T23:01:21.000Z | from __future__ import (absolute_import, division, print_function, unicode_literals)
from builtins import (ascii, bytes, chr, dict, filter, hex, input, int, map, next, oct, open, pow, range, round, str,
super, zip)
from ...._utils import send_session_request
from ..._PortalEndpointBase import Por... | 33.883721 | 117 | 0.683596 | 1,058 | 0.72615 | 0 | 0 | 151 | 0.103638 | 0 | 0 | 176 | 0.120796 |
92ea3eda1c775e0583e47210352c08da3ae6793c | 3,995 | py | Python | amy/workshops/migrations/0191_auto_20190809_0936.py | code-review-doctor/amy | 268c1a199510457891459f3ddd73fcce7fe2b974 | [
"MIT"
] | 53 | 2015-01-10T17:39:19.000Z | 2019-06-12T17:36:34.000Z | amy/workshops/migrations/0191_auto_20190809_0936.py | code-review-doctor/amy | 268c1a199510457891459f3ddd73fcce7fe2b974 | [
"MIT"
] | 1,176 | 2015-01-02T06:32:47.000Z | 2019-06-18T11:57:47.000Z | amy/workshops/migrations/0191_auto_20190809_0936.py | code-review-doctor/amy | 268c1a199510457891459f3ddd73fcce7fe2b974 | [
"MIT"
] | 44 | 2015-01-03T15:08:56.000Z | 2019-06-09T05:33:08.000Z | # Generated by Django 2.1.7 on 2019-08-09 09:36
from django.db import migrations, models
def migrate_public_event(apps, schema_editor):
"""Migrate options previously with no contents (displayed as "Other:")
to a new contents ("other").
The field containing these options is in CommonRequest abstract model... | 71.339286 | 949 | 0.702378 | 2,869 | 0.718148 | 0 | 0 | 0 | 0 | 0 | 0 | 2,432 | 0.608761 |
92ec1a79aa56994e71f763b1fea1ca3f88478806 | 1,278 | py | Python | pix2pix/Discriminator.py | yubin1219/GAN | 8345095f9816e548c968492efbe92b427b0e06a3 | [
"MIT"
] | null | null | null | pix2pix/Discriminator.py | yubin1219/GAN | 8345095f9816e548c968492efbe92b427b0e06a3 | [
"MIT"
] | null | null | null | pix2pix/Discriminator.py | yubin1219/GAN | 8345095f9816e548c968492efbe92b427b0e06a3 | [
"MIT"
] | 1 | 2021-09-17T01:28:50.000Z | 2021-09-17T01:28:50.000Z | import torch
import torch.nn as nn
class Discriminator(nn.Module):
def __init__(self, input_nc, ndf=64, norm_layer=nn.BatchNorm2d, use_sigmoid=False) :
super(Discriminator, self).__init__()
self.conv1 = nn.Sequential(
nn.Conv2d(input_nc, ndf, kernel_size=4, stride=2, padding=1),
nn.LeakyReLU(0.2,... | 29.045455 | 86 | 0.58216 | 1,241 | 0.971049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
92ec31910f4ccb9a9e9fdaf1976491caf430c06d | 1,067 | py | Python | tests/slicebuilders/subpopulations/test_length.py | ANarayan/robustness-gym | eed2800985631fbbe6491b5f6f0731a067eef78e | [
"Apache-2.0"
] | null | null | null | tests/slicebuilders/subpopulations/test_length.py | ANarayan/robustness-gym | eed2800985631fbbe6491b5f6f0731a067eef78e | [
"Apache-2.0"
] | null | null | null | tests/slicebuilders/subpopulations/test_length.py | ANarayan/robustness-gym | eed2800985631fbbe6491b5f6f0731a067eef78e | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
import numpy as np
from robustnessgym.cachedops.spacy import Spacy
from robustnessgym.slicebuilders.subpopulations.length import LengthSubpopulation
from tests.testbeds import MockTestBedv0
class TestLengthSubpopulation(TestCase):
def setUp(self):
self.testbed = MockTestBed... | 34.419355 | 81 | 0.686036 | 842 | 0.789128 | 0 | 0 | 0 | 0 | 0 | 0 | 140 | 0.131209 |
92eca5c1a6337291d863c933685487ea52da0c9b | 1,146 | py | Python | pulsar_spectra/catalogue_papers/Jankowski_2018_raw_to_yaml.py | NickSwainston/pulsar_spectra | b264aab3f8fc1bb3cad14ef1b93cab519ed5bc69 | [
"MIT"
] | null | null | null | pulsar_spectra/catalogue_papers/Jankowski_2018_raw_to_yaml.py | NickSwainston/pulsar_spectra | b264aab3f8fc1bb3cad14ef1b93cab519ed5bc69 | [
"MIT"
] | 4 | 2021-12-17T04:24:13.000Z | 2022-02-24T14:51:18.000Z | pulsar_spectra/catalogue_papers/Jankowski_2018_raw_to_yaml.py | NickSwainston/pulsar_spectra | b264aab3f8fc1bb3cad14ef1b93cab519ed5bc69 | [
"MIT"
] | null | null | null | import json
from astroquery.vizier import Vizier
with open("Jankowski_2018_raw.txt", "r") as raw_file:
lines = raw_file.readlines()
print(lines)
pulsar_dict = {}
for row in lines[3:]:
row = row.split("|")
print(row)
pulsar = row[0].strip().replace("−", "-")
freqs = []
fluxs = []
flux_e... | 34.727273 | 111 | 0.604712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 199 | 0.173345 |
92ee36608ac8edb00b879a89f8f1eafb4cb4fb04 | 15,018 | py | Python | integration-tests/run-intg-test.py | NishikaDeSilva/identity-test-integration | dbd1db07aa6d4f4942d772cd56c0b06c355bd43b | [
"Apache-2.0"
] | 4 | 2017-10-23T05:25:27.000Z | 2018-01-10T08:00:14.000Z | integration-tests/run-intg-test.py | NishikaDeSilva/identity-test-integration | dbd1db07aa6d4f4942d772cd56c0b06c355bd43b | [
"Apache-2.0"
] | 42 | 2018-05-21T12:55:49.000Z | 2020-01-17T06:40:25.000Z | integration-tests/run-intg-test.py | NishikaDeSilva/identity-test-integration | dbd1db07aa6d4f4942d772cd56c0b06c355bd43b | [
"Apache-2.0"
] | 46 | 2017-10-04T05:45:52.000Z | 2018-05-05T14:32:26.000Z | # Copyright (c) 2018, WSO2 Inc. (http://wso2.com) 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 ap... | 46.639752 | 127 | 0.671195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4,624 | 0.307897 |
92eed01036cb07058175a69126f2f5a418891a9a | 2,376 | py | Python | src/pytest_notification/sound.py | rhpvorderman/pytest-notification | 3f322ab04914f52525e1b07bc80537d5f9a00250 | [
"MIT"
] | 2 | 2020-08-27T03:14:05.000Z | 2020-10-24T17:17:36.000Z | src/pytest_notification/sound.py | rhpvorderman/pytest-notification | 3f322ab04914f52525e1b07bc80537d5f9a00250 | [
"MIT"
] | 5 | 2019-12-02T08:49:15.000Z | 2020-06-22T08:38:34.000Z | src/pytest_notification/sound.py | rhpvorderman/pytest-notification | 3f322ab04914f52525e1b07bc80537d5f9a00250 | [
"MIT"
] | null | null | null | # Copyright (c) 2019 Leiden University Medical Center
#
# 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, copy, modify, me... | 43.2 | 79 | 0.731481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,701 | 0.715909 |
92ef37eb449c4f50b5c90c7a720a5f53652a647c | 420 | py | Python | 7KYU/next_prime.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 4 | 2021-07-17T22:48:03.000Z | 2022-03-25T14:10:58.000Z | 7KYU/next_prime.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | null | null | null | 7KYU/next_prime.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 3 | 2021-06-14T14:18:16.000Z | 2022-03-16T06:02:02.000Z | from math import sqrt
def is_simple(n: int) -> bool:
if n % 2 == 0 and n != 2:
return False
for i in range (3, int(sqrt(n)) + 2, 2):
if n % i == 0 and n != i:
return False
return True
def next_prime(n: int) -> int:
n += 1
if n <= 2:
return 2
else:
i... | 20 | 44 | 0.435714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
92ef91238a4d28bed6389f80b7547828e84737ba | 6,622 | py | Python | cozmo_sdk_examples/if_this_then_that/ifttt_gmail.py | manxueitp/cozmo-test | a91b1a4020544cb622bd67385f317931c095d2e8 | [
"MIT"
] | null | null | null | cozmo_sdk_examples/if_this_then_that/ifttt_gmail.py | manxueitp/cozmo-test | a91b1a4020544cb622bd67385f317931c095d2e8 | [
"MIT"
] | null | null | null | cozmo_sdk_examples/if_this_then_that/ifttt_gmail.py | manxueitp/cozmo-test | a91b1a4020544cb622bd67385f317931c095d2e8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) 2016 Anki, 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 in the file LICENSE.txt or at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | 41.3875 | 105 | 0.67457 | 0 | 0 | 0 | 0 | 0 | 0 | 1,806 | 0.271742 | 5,140 | 0.773398 |
92f0c7d812707a316f1c04c4ec3e35722444b8b5 | 13,843 | py | Python | plotutils.py | parkus/mypy | 21043c559dca14abe7508e0f6b2f8053bf376bb8 | [
"MIT"
] | 1 | 2015-11-06T06:27:59.000Z | 2015-11-06T06:27:59.000Z | plotutils.py | parkus/mypy | 21043c559dca14abe7508e0f6b2f8053bf376bb8 | [
"MIT"
] | null | null | null | plotutils.py | parkus/mypy | 21043c559dca14abe7508e0f6b2f8053bf376bb8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri May 30 17:15:27 2014
@author: Parke
"""
from __future__ import division, print_function, absolute_import
import numpy as np
import matplotlib as mplot
import matplotlib.pyplot as plt
import mypy.my_numpy as mnp
dpi = 100
fullwidth = 10.0
halfwidth = 5.0
# use these with li... | 31.461364 | 117 | 0.582388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,099 | 0.223868 |
92f10be0db1bfd9a43f5256577f3d2fdfd1c920b | 13,185 | py | Python | marvel_world/views.py | xiaoranppp/si664-final | f5545c04452fd674ddf1d078444e79ea58385e7e | [
"MIT"
] | null | null | null | marvel_world/views.py | xiaoranppp/si664-final | f5545c04452fd674ddf1d078444e79ea58385e7e | [
"MIT"
] | 1 | 2018-11-25T21:07:37.000Z | 2018-11-25T21:07:37.000Z | marvel_world/views.py | xiaoranppp/si664-final | f5545c04452fd674ddf1d078444e79ea58385e7e | [
"MIT"
] | 1 | 2018-12-21T12:06:03.000Z | 2018-12-21T12:06:03.000Z | from django.shortcuts import render,redirect
from django.http import HttpResponse,HttpResponseRedirect
from django.views import generic
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from .models import Character,Comic,Power,CharacterPower,CharacterComic
f... | 31.618705 | 154 | 0.754873 | 11,523 | 0.873948 | 0 | 0 | 12,222 | 0.926962 | 0 | 0 | 3,805 | 0.288586 |
92f1aa0fa9769c9eeef09b7c084da22948285538 | 267 | py | Python | src/rpi/fwd.py | au-chrismor/selfdrive | 31325dd7a173bbb16a13e3de4c9598aab0a50632 | [
"BSD-3-Clause"
] | null | null | null | src/rpi/fwd.py | au-chrismor/selfdrive | 31325dd7a173bbb16a13e3de4c9598aab0a50632 | [
"BSD-3-Clause"
] | 6 | 2018-03-15T05:23:55.000Z | 2018-10-26T10:28:47.000Z | src/rpi/fwd.py | au-chrismor/selfdrive | 31325dd7a173bbb16a13e3de4c9598aab0a50632 | [
"BSD-3-Clause"
] | null | null | null | """Set-up and execute the main loop"""
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
#Right motor input A
GPIO.setup(18,GPIO.OUT)
#Right motor input B
GPIO.setup(23,GPIO.OUT)
GPIO.output(18,GPIO.HIGH)
GPIO.output(23,GPIO.LOW)
| 16.6875 | 38 | 0.749064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 78 | 0.292135 |
92f3155f2bddf2f3a6336a7c75d33f3d299e7e91 | 931 | py | Python | util/get_from_db.py | Abel-Huang/simple-image-classifier | 89d2822c2b06cdec728f734d43d9638f4b601348 | [
"MIT"
] | 4 | 2017-05-17T08:01:38.000Z | 2018-07-22T11:13:55.000Z | util/get_from_db.py | Abel-Huang/ImageClassifier | 89d2822c2b06cdec728f734d43d9638f4b601348 | [
"MIT"
] | null | null | null | util/get_from_db.py | Abel-Huang/ImageClassifier | 89d2822c2b06cdec728f734d43d9638f4b601348 | [
"MIT"
] | null | null | null | import pymysql
# 连接配置信息
config = {
'host': '127.0.0.1',
'port': 3306,
'user': 'root',
'password': '',
'db': 'classdata',
'charset': 'utf8',
'cursorclass': pymysql.cursors.DictCursor,
}
def get_summary_db(unitag):
# 创建连接
conn = pymysql.connect(**config)
cur = conn.cursor()
... | 20.23913 | 54 | 0.541353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 355 | 0.342995 |
92f361f8ed017247a610edc6823b43b8f1e0fefd | 290 | py | Python | registerapp/api.py | RajapandiR/django-register | cf20829fe3515bdd3112a88a890d83d852f09bde | [
"MIT"
] | null | null | null | registerapp/api.py | RajapandiR/django-register | cf20829fe3515bdd3112a88a890d83d852f09bde | [
"MIT"
] | 6 | 2021-03-19T04:17:51.000Z | 2021-09-22T19:07:17.000Z | registerapp/api.py | RajapandiR/django-register | cf20829fe3515bdd3112a88a890d83d852f09bde | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from rest_framework.views import APIView
from registerapp import serializers
from registerapp import models
class RegisterViewSet(viewsets.ModelViewSet):
serializer_class = serializers.RegisterSerializer
queryset = models.RegisterPage.objects.all()
| 26.363636 | 50 | 0.855172 | 142 | 0.489655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
92f638d897dda2bf328a3077b43f492f38f39bb7 | 1,412 | py | Python | jduck/robot.py | luutp/jduck | 3c60a79c926bb9452777cddbebe28982273068a6 | [
"Apache-2.0"
] | null | null | null | jduck/robot.py | luutp/jduck | 3c60a79c926bb9452777cddbebe28982273068a6 | [
"Apache-2.0"
] | null | null | null | jduck/robot.py | luutp/jduck | 3c60a79c926bb9452777cddbebe28982273068a6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
jduck.py
Description:
Author: luutp
Contact: [email protected]
Created on: 2021/02/27
"""
# Utilities
# %%
# ================================IMPORT PACKAGES====================================
# Utilities
from traitlets.config.configurable import SingletonConfigur... | 25.214286 | 85 | 0.61119 | 946 | 0.669972 | 0 | 0 | 0 | 0 | 0 | 0 | 351 | 0.248584 |
92f8d1944416ddff1cb95f31ed4c8d93f364c956 | 5,193 | py | Python | src/nebulo/gql/alias.py | olirice/nebulo | de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7 | [
"MIT"
] | 76 | 2020-04-03T01:21:47.000Z | 2021-12-06T02:54:53.000Z | src/nebulo/gql/alias.py | olirice/nebulo | de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7 | [
"MIT"
] | 7 | 2020-04-06T04:44:10.000Z | 2021-05-17T12:38:15.000Z | src/nebulo/gql/alias.py | olirice/nebulo | de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7 | [
"MIT"
] | 2 | 2020-10-23T10:25:16.000Z | 2020-10-28T14:16:57.000Z | # pylint: disable=missing-class-docstring,invalid-name
import typing
from graphql.language import (
InputObjectTypeDefinitionNode,
InputObjectTypeExtensionNode,
ObjectTypeDefinitionNode,
ObjectTypeExtensionNode,
)
from graphql.type import (
GraphQLArgument,
GraphQLBoolean,
GraphQLEnumType,
... | 25.965 | 101 | 0.706913 | 3,638 | 0.700558 | 0 | 0 | 0 | 0 | 0 | 0 | 260 | 0.050067 |
92f9c4373d43c67eefcb0f04052b7d238d59ad11 | 2,297 | py | Python | integrations/tensorflow/bindings/python/pyiree/tf/compiler/saved_model_test.py | rise-lang/iree | 46ad3fe392d38ce3df6eff7826cc1ab331a40b72 | [
"Apache-2.0"
] | 1 | 2020-08-13T09:25:59.000Z | 2020-08-13T09:25:59.000Z | integrations/tensorflow/bindings/python/pyiree/tf/compiler/saved_model_test.py | rise-lang/iree | 46ad3fe392d38ce3df6eff7826cc1ab331a40b72 | [
"Apache-2.0"
] | null | null | null | integrations/tensorflow/bindings/python/pyiree/tf/compiler/saved_model_test.py | rise-lang/iree | 46ad3fe392d38ce3df6eff7826cc1ab331a40b72 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 29.831169 | 80 | 0.727035 | 1,008 | 0.438833 | 0 | 0 | 159 | 0.069221 | 0 | 0 | 1,131 | 0.492381 |
92f9e01e28f69fd9e75ceb00e00af2fc86419292 | 1,618 | py | Python | api/models/indicator/child_objects/properties.py | taco-chainalysis/pypulsedive | e89a2651e1ef41a1a51ddbeabc1f914a0d4e467d | [
"MIT"
] | null | null | null | api/models/indicator/child_objects/properties.py | taco-chainalysis/pypulsedive | e89a2651e1ef41a1a51ddbeabc1f914a0d4e467d | [
"MIT"
] | null | null | null | api/models/indicator/child_objects/properties.py | taco-chainalysis/pypulsedive | e89a2651e1ef41a1a51ddbeabc1f914a0d4e467d | [
"MIT"
] | 1 | 2021-11-10T16:50:32.000Z | 2021-11-10T16:50:32.000Z | from .grandchild_objects import Cookies
from .grandchild_objects import Dns
from .grandchild_objects import Dom
from .grandchild_objects import Geo
#from .grandchild_objects import Http
#from .grandchild_objects import Meta
from .grandchild_objects import Ssl
#from .grandchild_objects import WhoIs
class Properties(obj... | 33.708333 | 83 | 0.642769 | 1,318 | 0.814586 | 0 | 0 | 862 | 0.532756 | 0 | 0 | 406 | 0.250927 |
92fa506f1dc831d005f72a65f033e46f94fe54e8 | 9,084 | py | Python | iRep/gc_skew.py | scottdaniel/iRep | 5d31688eeeab057ce54f39698e3f9cc5738e05ad | [
"MIT"
] | 55 | 2016-06-17T17:31:48.000Z | 2022-01-19T08:24:43.000Z | iRep/gc_skew.py | scottdaniel/iRep | 5d31688eeeab057ce54f39698e3f9cc5738e05ad | [
"MIT"
] | 35 | 2016-06-24T17:19:04.000Z | 2021-11-06T16:08:43.000Z | iRep/gc_skew.py | scottdaniel/iRep | 5d31688eeeab057ce54f39698e3f9cc5738e05ad | [
"MIT"
] | 14 | 2016-07-21T17:34:16.000Z | 2020-03-18T03:45:55.000Z | #!/usr/bin/env python3
"""
script for calculating gc skew
Chris Brown
[email protected]
"""
# python modules
import os
import sys
import argparse
import numpy as np
from scipy import signal
from itertools import cycle, product
# plotting modules
from matplotlib import use as mplUse
mplUse('Agg')
import matplotlib.py... | 36.191235 | 95 | 0.55295 | 0 | 0 | 598 | 0.06583 | 0 | 0 | 0 | 0 | 2,457 | 0.270476 |
92fa730397bfd4949cfd5d8aa12c70a6b5cb5576 | 2,429 | py | Python | examples/send_governance_vote_transaction.py | Algofiorg/algofi-py-sdk | 6100a6726d36db4d4d3287064f0ad1d0b9a05e03 | [
"MIT"
] | 38 | 2021-12-30T02:32:57.000Z | 2022-03-23T22:09:16.000Z | examples/send_governance_vote_transaction.py | Algofiorg/algofi-py-sdk | 6100a6726d36db4d4d3287064f0ad1d0b9a05e03 | [
"MIT"
] | 4 | 2021-11-03T00:14:46.000Z | 2022-03-28T02:17:33.000Z | examples/send_governance_vote_transaction.py | Algofiorg/algofi-py-sdk | 6100a6726d36db4d4d3287064f0ad1d0b9a05e03 | [
"MIT"
] | 8 | 2021-12-15T05:29:55.000Z | 2022-02-08T03:45:11.000Z | # This sample is provided for demonstration purposes only.
# It is not intended for production use.
# This example does not constitute trading advice.
import os
from dotenv import dotenv_values
from algosdk import mnemonic, account
from algofi.v1.asset import Asset
from algofi.v1.client import AlgofiTestnetClient, Algo... | 42.614035 | 121 | 0.799918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,334 | 0.549197 |
92fa7f11780de4e7d336cb67c51c29ac5c8fbc36 | 9,059 | py | Python | bid/inventoryClient.py | franklx/SOAPpy-py3 | f25afba322e9300ba4ebdd281118b629ca63ba24 | [
"BSD-3-Clause"
] | 7 | 2018-01-03T18:24:43.000Z | 2022-03-07T04:34:01.000Z | bid/inventoryClient.py | franklx/SOAPpy-py3 | f25afba322e9300ba4ebdd281118b629ca63ba24 | [
"BSD-3-Clause"
] | null | null | null | bid/inventoryClient.py | franklx/SOAPpy-py3 | f25afba322e9300ba4ebdd281118b629ca63ba24 | [
"BSD-3-Clause"
] | 18 | 2018-08-06T11:30:16.000Z | 2022-03-09T11:24:24.000Z | #!/usr/bin/env python
import getopt
import sys
import string
import re
import time
sys.path.insert(1,"..")
from SOAPpy import SOAP
import traceback
DEFAULT_SERVERS_FILE = './inventory.servers'
DEFAULT_METHODS = ('SimpleBuy', 'RequestForQuote','Buy','Ping')
def usage (error = None):
sys.stdout = sys.std... | 31.130584 | 139 | 0.486919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,769 | 0.305663 |
92fb1af4be141cb39cbab935a9b9551b1ec5b453 | 934 | py | Python | src/compile.py | Pixxeasy/WinTools | e67c365cd4a7a47a410c25b7df8eeaeedc05dd8d | [
"MIT"
] | null | null | null | src/compile.py | Pixxeasy/WinTools | e67c365cd4a7a47a410c25b7df8eeaeedc05dd8d | [
"MIT"
] | null | null | null | src/compile.py | Pixxeasy/WinTools | e67c365cd4a7a47a410c25b7df8eeaeedc05dd8d | [
"MIT"
] | null | null | null | import os
import json
import shutil
with open("entry.tp") as entry:
entry = json.loads(entry.read())
startcmd = entry['plugin_start_cmd'].split("%TP_PLUGIN_FOLDER%")[1].split("\\")
filedirectory = startcmd[0]
fileName = startcmd[1]
if os.path.exists(filedirectory):
os.remove(os.path.join(os.getcwd(), "Wi... | 33.357143 | 127 | 0.674518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 296 | 0.316916 |
92fca9c0141bc42e92af9526839fedc292014b9b | 292 | py | Python | suda/1121/12.py | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | 2 | 2021-06-09T12:27:07.000Z | 2021-06-11T12:02:03.000Z | suda/1121/12.py | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | 1 | 2021-09-08T12:00:05.000Z | 2021-09-08T14:52:30.000Z | suda/1121/12.py | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | null | null | null | for _ in range(int(input())):
x, y = list(map(int, input().split()))
flag = 1
for i in range(x, y + 1):
n = i * i + i + 41
for j in range(2, n):
if j * j > n:
break
if n % j == 0:
flag = 0
break
if flag == 0:
break
if flag:
print("OK")
else:
print("Sorry") | 17.176471 | 39 | 0.489726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 0.037671 |
92feee19e193679cb75cdd6152ceb20caad92e8b | 389 | gyp | Python | notification/app/node_modules/hiredis/binding.gyp | c2gconsulting/bulkpay | 224a52427f80a71f66613c367a5596cbd5e97294 | [
"MIT"
] | 208 | 2015-01-07T03:50:56.000Z | 2022-03-21T03:34:12.000Z | binding.gyp | badboy/hiredis-node-win | d113945a182ba1d616f8fba06e2d80dc9f09552b | [
"BSD-3-Clause"
] | 72 | 2015-01-11T09:54:16.000Z | 2019-11-21T14:07:43.000Z | binding.gyp | badboy/hiredis-node-win | d113945a182ba1d616f8fba06e2d80dc9f09552b | [
"BSD-3-Clause"
] | 55 | 2015-01-10T20:54:13.000Z | 2022-02-02T14:08:01.000Z | {
'targets': [
{
'target_name': 'hiredis',
'sources': [
'src/hiredis.cc'
, 'src/reader.cc'
],
'include_dirs': ["<!(node -e \"require('nan')\")"],
'dependencies': [
'deps/hiredis.gyp:hiredis-c'
],
'defines': [
'_GNU_SOURCE'
],
... | 16.913043 | 57 | 0.375321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 201 | 0.51671 |
92ff4f4bfa893dc686e0e12fb0d4936e8c8b259d | 272 | py | Python | basic_and.py | Verkhovskaya/PyDL | 4c3f2d952dd988ff27bf359d2f2cdde65737e062 | [
"MIT"
] | 5 | 2018-07-28T18:18:59.000Z | 2022-01-05T19:01:50.000Z | basic_and.py | Verkhovskaya/PyDL | 4c3f2d952dd988ff27bf359d2f2cdde65737e062 | [
"MIT"
] | null | null | null | basic_and.py | Verkhovskaya/PyDL | 4c3f2d952dd988ff27bf359d2f2cdde65737e062 | [
"MIT"
] | null | null | null | from pywire import *
def invert(signal):
if signal:
return False
else:
return True
class Inverter:
def __init__(self, a, b):
b.drive(invert, a)
width = 4
a = Signal(width, io="in")
b = Signal(width, io="out")
Inverter(a, b)
build() | 14.315789 | 29 | 0.591912 | 72 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 0.033088 |
13003b62c91dfe370f2b6ae3d293c73a5a463179 | 4,521 | py | Python | network/evaluate_keypoints.py | mhsung/deep-functional-dictionaries | 8b3d70c3376339cb1b7baacf7753094cd1ffef45 | [
"MIT"
] | 41 | 2018-07-10T10:15:02.000Z | 2021-04-20T03:10:16.000Z | network/evaluate_keypoints.py | Yajha/deep-functional-dictionaries | deecf8c6c85e253cfa52be7c6b3c308d5e5aaf81 | [
"MIT"
] | 2 | 2018-07-05T06:34:13.000Z | 2019-09-18T08:57:56.000Z | network/evaluate_keypoints.py | Yajha/deep-functional-dictionaries | deecf8c6c85e253cfa52be7c6b3c308d5e5aaf81 | [
"MIT"
] | 7 | 2018-07-28T00:00:08.000Z | 2021-06-30T13:39:44.000Z | # Minhyuk Sung ([email protected])
# April 2018
import os, sys
BASE_DIR = os.path.normpath(
os.path.join(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(os.path.join(BASE_DIR, '..'))
from datasets import *
from generate_outputs import *
from scipy.optimize import linear_sum_assignment
#impor... | 26.438596 | 76 | 0.601858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,145 | 0.253263 |
13008c4023106e4274d2b92d9aa79a58e4551138 | 2,388 | py | Python | recipes/cxxopts/all/conanfile.py | dvirtz/conan-center-index | 2e7a6337804325616f8d97e3a5b6f66cc72699cb | [
"MIT"
] | 562 | 2019-09-04T12:23:43.000Z | 2022-03-29T16:41:43.000Z | recipes/cxxopts/all/conanfile.py | dvirtz/conan-center-index | 2e7a6337804325616f8d97e3a5b6f66cc72699cb | [
"MIT"
] | 9,799 | 2019-09-04T12:02:11.000Z | 2022-03-31T23:55:45.000Z | recipes/cxxopts/all/conanfile.py | dvirtz/conan-center-index | 2e7a6337804325616f8d97e3a5b6f66cc72699cb | [
"MIT"
] | 1,126 | 2019-09-04T11:57:46.000Z | 2022-03-31T16:43:38.000Z | import os
from conans import ConanFile, tools
from conans.errors import ConanInvalidConfiguration
class CxxOptsConan(ConanFile):
name = "cxxopts"
homepage = "https://github.com/jarro2783/cxxopts"
url = "https://github.com/conan-io/conan-center-index"
description = "Lightweight C++ option parser librar... | 36.738462 | 132 | 0.641122 | 2,287 | 0.957705 | 0 | 0 | 337 | 0.141122 | 0 | 0 | 589 | 0.24665 |
1300c8abfbfcff2fad07bdd38a7b66244215a15d | 1,868 | py | Python | p_030_039/problem31.py | ericgreveson/projecteuler | 1844bf383fca871b82d88ef1eb3a9b1a0e363054 | [
"Apache-2.0"
] | null | null | null | p_030_039/problem31.py | ericgreveson/projecteuler | 1844bf383fca871b82d88ef1eb3a9b1a0e363054 | [
"Apache-2.0"
] | null | null | null | p_030_039/problem31.py | ericgreveson/projecteuler | 1844bf383fca871b82d88ef1eb3a9b1a0e363054 | [
"Apache-2.0"
] | null | null | null | class CoinArray(list):
"""
Coin list that is hashable for storage in sets
The 8 entries are [1p count, 2p count, 5p count, ... , 200p count]
"""
def __hash__(self):
"""
Hash this as a string
"""
return hash(" ".join([str(i) for i in self]))
def main():
"""
En... | 31.661017 | 89 | 0.534261 | 292 | 0.156233 | 0 | 0 | 0 | 0 | 0 | 0 | 785 | 0.420011 |
1300e7747076d34572209fef1029da836f1dbf7b | 2,358 | py | Python | video/cloud-client/quickstart/quickstart.py | nasirdec/GCP-AppEngine-Example | 3f5ad26ad2c1e3c8deceb5844adfb40cf7c2e53f | [
"Apache-2.0"
] | 1 | 2019-11-17T08:59:14.000Z | 2019-11-17T08:59:14.000Z | video/cloud-client/quickstart/quickstart.py | nasirdec/GCP-AppEngine-Example | 3f5ad26ad2c1e3c8deceb5844adfb40cf7c2e53f | [
"Apache-2.0"
] | 16 | 2019-06-15T00:02:56.000Z | 2021-03-25T23:22:38.000Z | video/cloud-client/quickstart/quickstart.py | nasirdec/GCP-AppEngine-Example | 3f5ad26ad2c1e3c8deceb5844adfb40cf7c2e53f | [
"Apache-2.0"
] | 3 | 2019-02-11T16:16:11.000Z | 2019-04-19T21:34:37.000Z | #!/usr/bin/env python
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | 37.428571 | 75 | 0.697201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,064 | 0.45123 |
13027944554eb9d8705c77a8073c891a250b3842 | 1,853 | py | Python | ally/instrument.py | platformmaster9/PyAlly | 55400e0835ae3ac5b3cf58e0e8214c6244aeb149 | [
"MIT"
] | null | null | null | ally/instrument.py | platformmaster9/PyAlly | 55400e0835ae3ac5b3cf58e0e8214c6244aeb149 | [
"MIT"
] | null | null | null | ally/instrument.py | platformmaster9/PyAlly | 55400e0835ae3ac5b3cf58e0e8214c6244aeb149 | [
"MIT"
] | null | null | null | from . import utils
#################################################
""" INSTRUMENT """
#################################################
def Instrument(symbol):
symbol = str(symbol).upper()
return {
'__symbol' : symbol,
'Sym' : symbol,
'SecTyp' : 'CS',
... | 29.412698 | 70 | 0.399352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 671 | 0.362115 |
1302b2f57e10ec891cc57b121da1cf9b5593731f | 432 | py | Python | airbyte-integrations/connectors/source-yahoo-finance-price/integration_tests/acceptance.py | onaio/airbyte | 38302e82a25f1b66742c3febfbff0668556920f2 | [
"MIT"
] | 22 | 2020-08-27T00:47:20.000Z | 2020-09-17T15:39:39.000Z | airbyte-integrations/connectors/source-yahoo-finance-price/integration_tests/acceptance.py | onaio/airbyte | 38302e82a25f1b66742c3febfbff0668556920f2 | [
"MIT"
] | 116 | 2020-08-27T01:11:27.000Z | 2020-09-19T02:47:52.000Z | airbyte-integrations/connectors/source-yahoo-finance-price/integration_tests/acceptance.py | onaio/airbyte | 38302e82a25f1b66742c3febfbff0668556920f2 | [
"MIT"
] | 1 | 2020-09-15T06:10:01.000Z | 2020-09-15T06:10:01.000Z | #
# Copyright (c) 2022 Airbyte, Inc., all rights reserved.
#
import pytest
pytest_plugins = ("source_acceptance_test.plugin",)
@pytest.fixture(scope="session", autouse=True)
def connector_setup():
"""This fixture is a placeholder for external resources that acceptance test might require."""
# TODO: setup t... | 25.411765 | 98 | 0.738426 | 0 | 0 | 252 | 0.583333 | 299 | 0.69213 | 0 | 0 | 303 | 0.701389 |
13037ede58d748bec28747c289956464268c2ceb | 118 | py | Python | ddt/__init__.py | GawenChen/test_pytest | da7a29dc43e8027d3fd1a05054480ed7007131c3 | [
"Apache-2.0"
] | null | null | null | ddt/__init__.py | GawenChen/test_pytest | da7a29dc43e8027d3fd1a05054480ed7007131c3 | [
"Apache-2.0"
] | null | null | null | ddt/__init__.py | GawenChen/test_pytest | da7a29dc43e8027d3fd1a05054480ed7007131c3 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@Time : 2021/10/9 17:51
@Auth : 潇湘
@File :__init__.py.py
@IDE :PyCharm
@QQ : 810400085
""" | 14.75 | 23 | 0.576271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 129 | 0.992308 |
13058e5281c2e6d308c1c802707f6f83b62cdc9b | 1,809 | py | Python | darts/models/linear_regression_model.py | BiancaMT25/darts | bb550dede6d8927a45aea0d9f3df53de32a6eee2 | [
"Apache-2.0"
] | 1 | 2021-07-15T11:12:05.000Z | 2021-07-15T11:12:05.000Z | darts/models/linear_regression_model.py | BiancaMT25/darts | bb550dede6d8927a45aea0d9f3df53de32a6eee2 | [
"Apache-2.0"
] | null | null | null | darts/models/linear_regression_model.py | BiancaMT25/darts | bb550dede6d8927a45aea0d9f3df53de32a6eee2 | [
"Apache-2.0"
] | null | null | null | """
Standard Regression model
-------------------------
"""
import numpy as np
import pandas as pd
from typing import Union
from ..logging import get_logger
from .regression_model import RegressionModel
from sklearn.linear_model import LinearRegression
logger = get_logger(__name__)
class LinearRegressionModel(Regre... | 38.489362 | 111 | 0.640133 | 1,522 | 0.841349 | 0 | 0 | 0 | 0 | 0 | 0 | 1,128 | 0.623549 |
130613c0dd1daf7edf4aa6e30bb0303b2984e2ce | 4,862 | py | Python | hail/python/test/hailtop/utils/test_utils.py | vrautela/hail | 7db6189b5b1feafa88452b8470e497d9505d9a46 | [
"MIT"
] | null | null | null | hail/python/test/hailtop/utils/test_utils.py | vrautela/hail | 7db6189b5b1feafa88452b8470e497d9505d9a46 | [
"MIT"
] | null | null | null | hail/python/test/hailtop/utils/test_utils.py | vrautela/hail | 7db6189b5b1feafa88452b8470e497d9505d9a46 | [
"MIT"
] | null | null | null | from hailtop.utils import (partition, url_basename, url_join, url_scheme,
url_and_params, parse_docker_image_reference)
def test_partition_zero_empty():
assert list(partition(0, [])) == []
def test_partition_even_small():
assert list(partition(3, range(3))) == [range(0, 1), range(... | 37.689922 | 113 | 0.644385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,722 | 0.354175 |
13064197a568b4ea0fdb674d3a8685e3b27e92eb | 863 | py | Python | hood/urls.py | wadi-1000/Vicinity | a41f6ec2c532cb06f7444b55073b6879a1fce63a | [
"MIT"
] | null | null | null | hood/urls.py | wadi-1000/Vicinity | a41f6ec2c532cb06f7444b55073b6879a1fce63a | [
"MIT"
] | null | null | null | hood/urls.py | wadi-1000/Vicinity | a41f6ec2c532cb06f7444b55073b6879a1fce63a | [
"MIT"
] | null | null | null | from django.urls import path,include
from . import views
urlpatterns = [
path('home/', views.home, name = 'home'),
path('add_hood/',views.uploadNeighbourhood, name = 'add_hood'),
path('viewhood/',views.viewHood, name = 'viewhood'),
path('hood/<int:pk>/',views.hood, name = 'hood'),
path('add_bizna/'... | 47.944444 | 74 | 0.665122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 287 | 0.332561 |
1306e647595d1f2f64e2d6dd214b9b25580f3ed1 | 8,305 | py | Python | src/licensedcode/tokenize.py | chetanya-shrimali/scancode-toolkit | a1a22fb225cbeb211bd6f92272a46f1351f57d6b | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | src/licensedcode/tokenize.py | chetanya-shrimali/scancode-toolkit | a1a22fb225cbeb211bd6f92272a46f1351f57d6b | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | src/licensedcode/tokenize.py | chetanya-shrimali/scancode-toolkit | a1a22fb225cbeb211bd6f92272a46f1351f57d6b | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (c) 2017 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB ... | 36.425439 | 105 | 0.646117 | 0 | 0 | 3,247 | 0.390969 | 0 | 0 | 0 | 0 | 5,809 | 0.699458 |
1308f0dd9c15ba9ea58abe836ba21f50ef3863ef | 679,794 | py | Python | homework_05/graficos_3.py | ufpa-organization-repositories/evolutionary-computing | e16786f9619e2b357b94ab91ff3a7b352e6a0d92 | [
"MIT"
] | null | null | null | homework_05/graficos_3.py | ufpa-organization-repositories/evolutionary-computing | e16786f9619e2b357b94ab91ff3a7b352e6a0d92 | [
"MIT"
] | null | null | null | homework_05/graficos_3.py | ufpa-organization-repositories/evolutionary-computing | e16786f9619e2b357b94ab91ff3a7b352e6a0d92 | [
"MIT"
] | null | null | null | # ensaio = [[[[1, 999.4951009067408, 999.495100909791, '1001100.11100010011001100001001', '100011.10010111010000111110100', '1', '1'], [2, 999.5052434400473, 999.5052434497359, '0000100.11100010011001100001001', '111011.10010111010000111110000', '1', '2'], [3, 999.51676448592, 999.516764613072, '0000100.111000100110011... | 23,441.172414 | 676,649 | 0.776381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 346,369 | 0.509521 |
13099ef7ac061602aaff6bfaa4733bfcc5e92bd8 | 225 | py | Python | etest_test/fixtures_test/ebuilds_test/__init__.py | alunduil/etest | e5f06d7e8c83be369576976f239668545bcbfffd | [
"MIT"
] | 6 | 2015-01-08T13:56:50.000Z | 2018-01-08T00:53:08.000Z | etest_test/fixtures_test/ebuilds_test/__init__.py | alunduil/etest | e5f06d7e8c83be369576976f239668545bcbfffd | [
"MIT"
] | 64 | 2015-01-01T23:10:07.000Z | 2021-06-12T06:55:31.000Z | etest_test/fixtures_test/ebuilds_test/__init__.py | alunduil/etest | e5f06d7e8c83be369576976f239668545bcbfffd | [
"MIT"
] | 2 | 2015-05-08T01:32:48.000Z | 2015-05-30T15:38:31.000Z | """Ebuild Test Fixtures."""
import os
from typing import Any, Dict, List
from etest_test import helpers_test
EBUILDS: Dict[str, List[Dict[str, Any]]] = {}
helpers_test.import_directory(__name__, os.path.dirname(__file__))
| 22.5 | 66 | 0.755556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 0.12 |
130a61bee54706bd995afa354e7681d8726e5d5d | 3,764 | py | Python | src/model.py | palucki/RememberIt | 1d66616d4bb1bca026dda031d876dca226ba71ad | [
"MIT"
] | null | null | null | src/model.py | palucki/RememberIt | 1d66616d4bb1bca026dda031d876dca226ba71ad | [
"MIT"
] | null | null | null | src/model.py | palucki/RememberIt | 1d66616d4bb1bca026dda031d876dca226ba71ad | [
"MIT"
] | null | null | null | import random
from pymongo import MongoClient
from observable import Observable
from phrase import Phrase
class MongoDbProxy:
"""Proxy for MongoDB"""
def __init__(self, url, dbName, tableName):
self.client = MongoClient(url)
self.db = self.client[dbName]
self.table = tableName
... | 30.852459 | 85 | 0.562965 | 3,653 | 0.97051 | 0 | 0 | 0 | 0 | 0 | 0 | 479 | 0.127258 |
130ad5b5c3caa22c7668a018ea30cf4d2bc3c2f4 | 1,381 | py | Python | sampleApplication/clientGenerator.py | chall68/BlackWatch | 0b95d69e4b7de9213a031557e9aff54ce35b12dd | [
"MIT"
] | null | null | null | sampleApplication/clientGenerator.py | chall68/BlackWatch | 0b95d69e4b7de9213a031557e9aff54ce35b12dd | [
"MIT"
] | null | null | null | sampleApplication/clientGenerator.py | chall68/BlackWatch | 0b95d69e4b7de9213a031557e9aff54ce35b12dd | [
"MIT"
] | null | null | null | #!flask/bin/python
#from user import User
from sampleObjects.User import User
from datetime import datetime
from sampleObjects.DetectionPoint import DetectionPoint
import time, requests, random, atexit
def requestGenerator():
userObject = randomUser()
detectionPointObject = randomDetectionPoint()
req = r... | 27.62 | 187 | 0.674873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 355 | 0.25706 |
130c49099f8aa40a9dd92ff170ecb6c15b43d8f9 | 1,873 | py | Python | news_collector/collector/consumers.py | ridwaniyas/channels-examples | 9e6a26c8e6404483695cbd96ebf12fc4ed9956b2 | [
"BSD-3-Clause"
] | null | null | null | news_collector/collector/consumers.py | ridwaniyas/channels-examples | 9e6a26c8e6404483695cbd96ebf12fc4ed9956b2 | [
"BSD-3-Clause"
] | null | null | null | news_collector/collector/consumers.py | ridwaniyas/channels-examples | 9e6a26c8e6404483695cbd96ebf12fc4ed9956b2 | [
"BSD-3-Clause"
] | null | null | null | import asyncio
import json
import datetime
from aiohttp import ClientSession
from channels.generic.http import AsyncHttpConsumer
from .constants import BLOGS
class NewsCollectorAsyncConsumer(AsyncHttpConsumer):
"""
Async HTTP consumer that fetches URLs.
"""
async def handle(self, body):
# Ad... | 35.339623 | 91 | 0.615056 | 1,712 | 0.914042 | 0 | 0 | 0 | 0 | 1,595 | 0.851575 | 676 | 0.360918 |
130d77d6c796e047f21c43df476be8389b35aecb | 737 | py | Python | src/randomcsv/FileUtils.py | PhilipBuhr/randomCsv | 34b1da62134077dfe4db2682ee0da386ef380c1d | [
"MIT"
] | null | null | null | src/randomcsv/FileUtils.py | PhilipBuhr/randomCsv | 34b1da62134077dfe4db2682ee0da386ef380c1d | [
"MIT"
] | null | null | null | src/randomcsv/FileUtils.py | PhilipBuhr/randomCsv | 34b1da62134077dfe4db2682ee0da386ef380c1d | [
"MIT"
] | null | null | null | import os
from pathlib import Path
def write(file_name, content):
Path(os.path.dirname(file_name)).mkdir(parents=True, exist_ok=True)
with open(file_name, 'w') as file:
file.write(content)
def read_line_looping(file_name, count):
i = 0
lines = []
file = open(file_name, 'r')
line = fi... | 23.03125 | 80 | 0.591588 | 41 | 0.055631 | 0 | 0 | 0 | 0 | 0 | 0 | 63 | 0.085482 |
130e4d54c2deae9e851943dbae96e38707ce57ce | 46 | py | Python | stringtoiso/__init__.py | vats98754/stringtoiso | 985da5efa26111ef1d92b7026b5d5d68f0101ef1 | [
"MIT"
] | null | null | null | stringtoiso/__init__.py | vats98754/stringtoiso | 985da5efa26111ef1d92b7026b5d5d68f0101ef1 | [
"MIT"
] | null | null | null | stringtoiso/__init__.py | vats98754/stringtoiso | 985da5efa26111ef1d92b7026b5d5d68f0101ef1 | [
"MIT"
] | null | null | null | from stringtoiso.convert_to_iso import convert | 46 | 46 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
130ec5dfef9f34118ca5d16b6a8a1a90a53517da | 5,495 | py | Python | aux_sys_err_prediction_module/additive/R_runmed_spline/my_R_runmed_spline_analysis.py | PNNL-Comp-Mass-Spec/DtaRefinery | 609cc90d0322af69aea43c2fc21d9cf05a06797a | [
"BSD-2-Clause"
] | null | null | null | aux_sys_err_prediction_module/additive/R_runmed_spline/my_R_runmed_spline_analysis.py | PNNL-Comp-Mass-Spec/DtaRefinery | 609cc90d0322af69aea43c2fc21d9cf05a06797a | [
"BSD-2-Clause"
] | null | null | null | aux_sys_err_prediction_module/additive/R_runmed_spline/my_R_runmed_spline_analysis.py | PNNL-Comp-Mass-Spec/DtaRefinery | 609cc90d0322af69aea43c2fc21d9cf05a06797a | [
"BSD-2-Clause"
] | null | null | null | from aux_sys_err_prediction_module.additive.R_runmed_spline.my_R_runmed_spline_fit import R_runmed_smooth_spline
from numpy import random, array, median, zeros, arange, hstack
from win32com.client import Dispatch
import math
myName = 'R_runmed_spline'
useMAD = True # use median absolute deviations instead of ... | 32.323529 | 113 | 0.499363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,503 | 0.273521 |
130f0d527db89218f9714b016db75a6b60750779 | 2,721 | py | Python | setup.py | Ms2ger/python-zstandard | b8ea1f6722a710e252b452554442b84c81049439 | [
"BSD-3-Clause"
] | null | null | null | setup.py | Ms2ger/python-zstandard | b8ea1f6722a710e252b452554442b84c81049439 | [
"BSD-3-Clause"
] | null | null | null | setup.py | Ms2ger/python-zstandard | b8ea1f6722a710e252b452554442b84c81049439 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2016-present, Gregory Szorc
# All rights reserved.
#
# This software may be modified and distributed under the terms
# of the BSD license. See the LICENSE file for details.
import os
import sys
from setuptools import setup
try:
import cffi
except ImportError:
cffi = None
... | 27.765306 | 78 | 0.655274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,249 | 0.459022 |
130f1aca25388c2ce8dd308d2bb872e5263f8305 | 140 | py | Python | Escolas/Curso em Video/Back-End/Curso de Python/Mundos/Mundo 01/Exercicio_16.py | c4st1lh0/Projetos-de-Aula | e8abc9f4bce6cc8dbc6d7fb5da0f549ac8ef5302 | [
"MIT"
] | null | null | null | Escolas/Curso em Video/Back-End/Curso de Python/Mundos/Mundo 01/Exercicio_16.py | c4st1lh0/Projetos-de-Aula | e8abc9f4bce6cc8dbc6d7fb5da0f549ac8ef5302 | [
"MIT"
] | null | null | null | Escolas/Curso em Video/Back-End/Curso de Python/Mundos/Mundo 01/Exercicio_16.py | c4st1lh0/Projetos-de-Aula | e8abc9f4bce6cc8dbc6d7fb5da0f549ac8ef5302 | [
"MIT"
] | null | null | null | import math
num = float(input('Digite um numero real qualquer: '))
print('O numero: {} tem a parte inteira {}'.format(num, math.trunc(num))) | 46.666667 | 73 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 71 | 0.507143 |
1310f38eea5f3635000289a9e4355d5205ba5668 | 551 | py | Python | mmdet/ops/orn/functions/__init__.py | JarvisUSTC/DARDet | debbf476e9750030db67f030a40cf8d4f03e46ee | [
"Apache-2.0"
] | 274 | 2021-04-06T15:46:06.000Z | 2022-03-31T02:00:10.000Z | mmdet/ops/orn/functions/__init__.py | JarvisUSTC/DARDet | debbf476e9750030db67f030a40cf8d4f03e46ee | [
"Apache-2.0"
] | 136 | 2021-07-11T11:26:54.000Z | 2022-03-31T02:45:34.000Z | mmdet/ops/orn/functions/__init__.py | JarvisUSTC/DARDet | debbf476e9750030db67f030a40cf8d4f03e46ee | [
"Apache-2.0"
] | 84 | 2021-05-29T06:58:14.000Z | 2022-03-31T07:44:10.000Z | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import torch
from .active_rotating_filter import active_rotating_filter
from .active_rotating_filter import ActiveRotatingFilter
from .rotation_invariant_encoding import rotation_invariant_encoding
from .rotation_invariant_encoding import RotationI... | 61.222222 | 148 | 0.874773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 199 | 0.361162 |
131271d5663df6a63ce374c8c4958678283dd5fc | 218 | py | Python | sympy/core/tests/test_cache.py | eriknw/sympy | b7544e2bb74c011f6098a7e886fd77f41776c2c4 | [
"BSD-3-Clause"
] | 7 | 2015-01-14T06:55:33.000Z | 2018-08-11T14:43:52.000Z | sympy/core/tests/test_cache.py | pbeltran/sympy-1 | 94f92b36731c2bebe6de1037c063c2a258a8a399 | [
"BSD-3-Clause"
] | 1 | 2018-02-19T04:56:04.000Z | 2018-02-19T04:56:04.000Z | sympy/core/tests/test_cache.py | pbeltran/sympy-1 | 94f92b36731c2bebe6de1037c063c2a258a8a399 | [
"BSD-3-Clause"
] | 1 | 2016-04-24T14:39:22.000Z | 2016-04-24T14:39:22.000Z | from sympy.core.cache import cacheit
def test_cacheit_doc():
@cacheit
def testfn():
"test docstring"
pass
assert testfn.__doc__ == "test docstring"
assert testfn.__name__ == "testfn"
| 18.166667 | 45 | 0.646789 | 0 | 0 | 0 | 0 | 64 | 0.293578 | 0 | 0 | 40 | 0.183486 |
1312f8f0f49eb471bc17c6830c67ae3b593f1370 | 8,694 | py | Python | mmdet/models/losses/ranking_losses.py | VietDunghacker/VarifocalNet | f57917afb3c29ceba1d3c4f824d10b9cc53aaa40 | [
"Apache-2.0"
] | null | null | null | mmdet/models/losses/ranking_losses.py | VietDunghacker/VarifocalNet | f57917afb3c29ceba1d3c4f824d10b9cc53aaa40 | [
"Apache-2.0"
] | null | null | null | mmdet/models/losses/ranking_losses.py | VietDunghacker/VarifocalNet | f57917afb3c29ceba1d3c4f824d10b9cc53aaa40 | [
"Apache-2.0"
] | null | null | null | import torch
class RankSort(torch.autograd.Function):
@staticmethod
def forward(ctx, logits, targets, delta_RS=0.50, eps=1e-10):
classification_grads=torch.zeros(logits.shape).cuda()
#Filter fg logits
fg_labels = (targets > 0.)
fg_logits = logits[fg_labels]
fg_targets = targets[fg_labels]
fg_num = l... | 35.198381 | 96 | 0.743961 | 8,672 | 0.99747 | 0 | 0 | 8,539 | 0.982172 | 0 | 0 | 2,846 | 0.327352 |
131342de18ae50cff3d8d09f0b5c640ef367d9c5 | 997 | py | Python | tests/test_dcd_api.py | sadamek/pyIMX | 52af15e656b400f0812f16cf31d9bf6edbe631ad | [
"BSD-3-Clause"
] | null | null | null | tests/test_dcd_api.py | sadamek/pyIMX | 52af15e656b400f0812f16cf31d9bf6edbe631ad | [
"BSD-3-Clause"
] | null | null | null | tests/test_dcd_api.py | sadamek/pyIMX | 52af15e656b400f0812f16cf31d9bf6edbe631ad | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2017-2018 Martin Olejar
#
# SPDX-License-Identifier: BSD-3-Clause
# The BSD-3-Clause license for this file can be found in the LICENSE file included with this distribution
# or at https://spdx.org/licenses/BSD-3-Clause.html#licenseText
import os
import pytest
from imx import img
# Used Directories
DAT... | 22.155556 | 105 | 0.691073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 368 | 0.369107 |
1313abf2371aefa93bced19321156374195a59c5 | 9,387 | py | Python | recentjson.py | nydailynews/feedutils | 8cb18b26ebf70033df420f3fece8c2cac363f918 | [
"MIT"
] | null | null | null | recentjson.py | nydailynews/feedutils | 8cb18b26ebf70033df420f3fece8c2cac363f918 | [
"MIT"
] | 1 | 2017-07-11T17:37:50.000Z | 2017-07-11T17:37:50.000Z | recentjson.py | nydailynews/feedutils | 8cb18b26ebf70033df420f3fece8c2cac363f918 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Return recent items from a json feed. Recent means "In the last X days."
import os
import doctest
import json
import urllib2
import argparse
import types
import gzip
from datetime import datetime, timedelta
from time import mktime
class RecentJson:
""" Methods for in... | 40.813043 | 186 | 0.520081 | 3,325 | 0.354213 | 0 | 0 | 0 | 0 | 0 | 0 | 3,823 | 0.407265 |
1314a6b3e97ad080ab7cf47017455ad35f9e033a | 34,521 | py | Python | maint/MultiStage2.py | Liastre/pcre2 | ca4fd145ee16acbc67b52b8563ab6e25c67ddfc8 | [
"BSD-3-Clause"
] | null | null | null | maint/MultiStage2.py | Liastre/pcre2 | ca4fd145ee16acbc67b52b8563ab6e25c67ddfc8 | [
"BSD-3-Clause"
] | 1 | 2020-04-07T10:42:22.000Z | 2020-04-07T10:42:22.000Z | maint/MultiStage2.py | Liastre/pcre2 | ca4fd145ee16acbc67b52b8563ab6e25c67ddfc8 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/python
# Multistage table builder
# (c) Peter Kankowski, 2008
##############################################################################
# This script was submitted to the PCRE project by Peter Kankowski as part of
# the upgrading of Unicode property support. The new code speeds up property
# matching... | 42.72401 | 143 | 0.625648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 22,202 | 0.643145 |
1314ffbb2b5a881e8cbdb62ecc8a53c659f4f382 | 638 | py | Python | setup.py | ihayhurst/RetroBioCat | d674897459c0ab65faad5ed3017c55cf51bcc020 | [
"MIT"
] | 9 | 2020-12-01T16:33:02.000Z | 2022-01-19T20:02:42.000Z | setup.py | ihayhurst/RetroBioCat | d674897459c0ab65faad5ed3017c55cf51bcc020 | [
"MIT"
] | 4 | 2020-10-02T14:38:32.000Z | 2021-08-02T09:23:58.000Z | setup.py | ihayhurst/RetroBioCat | d674897459c0ab65faad5ed3017c55cf51bcc020 | [
"MIT"
] | 6 | 2021-01-14T07:48:36.000Z | 2022-03-20T17:34:27.000Z | from setuptools import setup, find_packages
from retrobiocat_web import __version__
with open('requirements.txt') as f:
requirements = f.read().splitlines()
setup(
name = 'retrobiocat_web',
packages = find_packages(),
include_package_data=True,
version = __version__,
license='',
description = 'Retrosynt... | 26.583333 | 45 | 0.694357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 216 | 0.338558 |
131631df01aa9316264d6c8b1aaa6ecfd1254785 | 1,748 | py | Python | rxn_yield_context/preprocess_data/preprocess/augmentation_utils.py | Lung-Yi/rxn_yield_context | 116d6f21a1b6dc39016d87c001dc5b142cfb697a | [
"MIT"
] | null | null | null | rxn_yield_context/preprocess_data/preprocess/augmentation_utils.py | Lung-Yi/rxn_yield_context | 116d6f21a1b6dc39016d87c001dc5b142cfb697a | [
"MIT"
] | null | null | null | rxn_yield_context/preprocess_data/preprocess/augmentation_utils.py | Lung-Yi/rxn_yield_context | 116d6f21a1b6dc39016d87c001dc5b142cfb697a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pickle
import numpy as np
from rdkit import Chem
from rdkit.Chem import AllChem,DataStructs
def get_classes(path):
f = open(path, 'rb')
dict_ = pickle.load(f)
f.close()
classes = sorted(dict_.items(), key=lambda d: d[1],reverse=True)
classes = [(x,y) fo... | 33.615385 | 140 | 0.642449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 226 | 0.129291 |
131665ba7b9465c31b9a3f7865c4b018c27a3aec | 6,434 | py | Python | src/webstruct-demo/__init__.py | zanachka/webstruct-demo | f5b5081760d9a2b7924704041cd74748a5c98664 | [
"MIT"
] | 5 | 2019-04-15T14:54:23.000Z | 2020-10-03T04:47:12.000Z | src/webstruct-demo/__init__.py | zanachka/webstruct-demo | f5b5081760d9a2b7924704041cd74748a5c98664 | [
"MIT"
] | 2 | 2021-06-01T22:49:44.000Z | 2021-12-13T19:51:11.000Z | src/webstruct-demo/__init__.py | zanachka/webstruct-demo | f5b5081760d9a2b7924704041cd74748a5c98664 | [
"MIT"
] | 3 | 2019-06-25T10:31:30.000Z | 2020-10-03T04:49:01.000Z | import functools
import logging
import random
from flask import Flask, render_template, request
import joblib
from lxml.html import html5parser
import lxml.html
import requests
import yarl
import webstruct.model
import webstruct.sequence_encoding
import webstruct.webannotator
webstruct_demo = Flask(__name__, instan... | 28.981982 | 121 | 0.617656 | 0 | 0 | 0 | 0 | 1,421 | 0.220858 | 0 | 0 | 504 | 0.078334 |
13178607e92d499e0a8fa091130826ae93f57d37 | 757 | py | Python | setup.py | Liang813/einops | 9edce3d9a2d0a2abc51a6aaf86678eac43ffac0c | [
"MIT"
] | 4,738 | 2018-10-30T08:38:50.000Z | 2022-03-31T17:35:50.000Z | setup.py | Liang813/einops | 9edce3d9a2d0a2abc51a6aaf86678eac43ffac0c | [
"MIT"
] | 120 | 2018-10-30T09:04:01.000Z | 2022-03-27T11:27:30.000Z | setup.py | Liang813/einops | 9edce3d9a2d0a2abc51a6aaf86678eac43ffac0c | [
"MIT"
] | 216 | 2018-11-09T02:50:30.000Z | 2022-03-30T05:46:44.000Z | __author__ = 'Alex Rogozhnikov'
from setuptools import setup
setup(
name="einops",
version='0.3.2',
description="A new flavour of deep learning operations",
long_description=open('README.md', encoding='utf-8').read(),
long_description_content_type='text/markdown',
url='https://github.com/arogo... | 29.115385 | 86 | 0.668428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 420 | 0.554822 |
1317d06f323723e4a4f4ac9a34fb6dfc7aa40fb0 | 1,146 | py | Python | website/migrations/0084_auto_20210215_1401.py | czhu1217/cmimc-online | 5ef49ceec0bb86d8ae120a6ecfd723532e277821 | [
"MIT"
] | null | null | null | website/migrations/0084_auto_20210215_1401.py | czhu1217/cmimc-online | 5ef49ceec0bb86d8ae120a6ecfd723532e277821 | [
"MIT"
] | 1 | 2022-01-23T21:08:12.000Z | 2022-01-23T21:08:12.000Z | website/migrations/0084_auto_20210215_1401.py | czhu1217/cmimc-online | 5ef49ceec0bb86d8ae120a6ecfd723532e277821 | [
"MIT"
] | 1 | 2021-10-17T17:11:42.000Z | 2021-10-17T17:11:42.000Z | # Generated by Django 3.1.6 on 2021-02-15 19:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('website', '0083_remove_aisubmission_code'),
]
operations = [
migrations.AddField(
model_name='e... | 33.705882 | 150 | 0.604712 | 1,020 | 0.890052 | 0 | 0 | 0 | 0 | 0 | 0 | 205 | 0.178883 |
1317fa461eecfb928fe1d73e0f3c19ec9defb396 | 14,667 | py | Python | ldp/tasks/dlp.py | evandez/low-dimensional-probing | 3e4af6644a4db7fdf48bc40c5de4815f9db52a6e | [
"MIT"
] | 1 | 2022-03-06T06:59:42.000Z | 2022-03-06T06:59:42.000Z | ldp/tasks/dlp.py | evandez/low-dimensional-probing | 3e4af6644a4db7fdf48bc40c5de4815f9db52a6e | [
"MIT"
] | null | null | null | ldp/tasks/dlp.py | evandez/low-dimensional-probing | 3e4af6644a4db7fdf48bc40c5de4815f9db52a6e | [
"MIT"
] | null | null | null | """Core experiments for the dependency label prediction task."""
import collections
import copy
import logging
from typing import (Any, Dict, Iterator, Optional, Sequence, Set, Tuple, Type,
Union)
from ldp import datasets, learning
from ldp.models import probes, projections
from ldp.parse import pt... | 38.395288 | 79 | 0.614986 | 8,684 | 0.592077 | 214 | 0.014591 | 417 | 0.028431 | 0 | 0 | 6,764 | 0.461171 |
1318a68dfab5df9c8cd4a02ab91e86cccb7f469d | 23,613 | py | Python | pycquery_krb/common/ccache.py | naver/PyCQuery | a72f74f9b7c208a263fc7cdb14a30d0fe21e63b9 | [
"Apache-2.0"
] | 2 | 2021-11-17T03:13:16.000Z | 2021-12-03T05:30:22.000Z | pycquery_krb/common/ccache.py | naver/PyCQuery | a72f74f9b7c208a263fc7cdb14a30d0fe21e63b9 | [
"Apache-2.0"
] | 1 | 2021-05-04T06:02:40.000Z | 2021-05-04T06:02:40.000Z | pycquery_krb/common/ccache.py | naver/PyCQuery | a72f74f9b7c208a263fc7cdb14a30d0fe21e63b9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# Author:
# Tamas Jos (@skelsec)
#
import os
import io
import datetime
import glob
import hashlib
from pycquery_krb.protocol.asn1_structs import Ticket, EncryptedData, \
krb5_pvno, KrbCredInfo, EncryptionKey, KRBCRED, TicketFlags, EncKrbCredPart
from pycquery_krb.common.utils import dt_to_k... | 31.909459 | 151 | 0.707915 | 23,041 | 0.975776 | 0 | 0 | 7,518 | 0.318384 | 0 | 0 | 5,146 | 0.217931 |
131a0e5ecdfc260b3827d4c50aa8606f1a20747d | 3,054 | py | Python | getUniformSmiles.py | OpenEye-Contrib/Molecular-List-Logic | 82caf41f7d8b94e7448d8e839bdbc0620a8666d7 | [
"BSD-3-Clause"
] | 2 | 2016-01-21T19:50:12.000Z | 2021-04-10T13:27:40.000Z | getUniformSmiles.py | OpenEye-Contrib/Molecular-List-Logic | 82caf41f7d8b94e7448d8e839bdbc0620a8666d7 | [
"BSD-3-Clause"
] | null | null | null | getUniformSmiles.py | OpenEye-Contrib/Molecular-List-Logic | 82caf41f7d8b94e7448d8e839bdbc0620a8666d7 | [
"BSD-3-Clause"
] | null | null | null | #!/opt/az/psf/python/2.7/bin/python
from openeye.oechem import *
import cgi
#creates a list of smiles of the syntax [smiles|molId,smiles|molId]
def process_smiles(smiles):
smiles = smiles.split('\n')
mol = OEGraphMol()
smiles_list=[]
for line in smiles:
if len(line.rstrip())>0:
lin... | 30.237624 | 90 | 0.586444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 833 | 0.272757 |
131a15a3a8feaf503c53fb7ce15a6a9a4850f413 | 37,988 | py | Python | mfem/_par/gridfunc.py | mfem/PyMFEM | b7b7c3d3de1082eac1015e3a313cf513db06fd7b | [
"BSD-3-Clause"
] | 93 | 2017-03-01T16:45:33.000Z | 2022-03-27T22:10:33.000Z | mfem/_par/gridfunc.py | mfem/PyMFEM | b7b7c3d3de1082eac1015e3a313cf513db06fd7b | [
"BSD-3-Clause"
] | 64 | 2017-03-15T21:47:31.000Z | 2022-03-31T23:59:00.000Z | mfem/_par/gridfunc.py | mfem/PyMFEM | b7b7c3d3de1082eac1015e3a313cf513db06fd7b | [
"BSD-3-Clause"
] | 32 | 2017-03-02T22:13:38.000Z | 2022-03-26T13:09:31.000Z | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise Runtime... | 49.335065 | 201 | 0.740076 | 32,840 | 0.864484 | 0 | 0 | 0 | 0 | 0 | 0 | 15,335 | 0.40368 |
131ada8dd58eaa29a8303d1a7138ffe5d3485877 | 6,861 | py | Python | src/tracks/settings.py | adcarmichael/tracks | 04108bbdaf8554e57e278c1556efa9c5b9603973 | [
"Apache-2.0"
] | null | null | null | src/tracks/settings.py | adcarmichael/tracks | 04108bbdaf8554e57e278c1556efa9c5b9603973 | [
"Apache-2.0"
] | 41 | 2019-06-14T21:19:31.000Z | 2022-02-10T14:41:00.000Z | src/tracks/settings.py | adcarmichael/tracks | 04108bbdaf8554e57e278c1556efa9c5b9603973 | [
"Apache-2.0"
] | null | null | null | import os
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
PWA_SERVICE_WORKER_PATH = os.path.join(
BASE_DIR, 'routes/static/routes/js', 'serv... | 28.5875 | 91 | 0.655735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4,261 | 0.621046 |
131b0afb1746ef9363aae186aba698e6731a895a | 2,647 | py | Python | examples/04-lights/plotter_builtins.py | akeshavan/pyvista | 45fe8b1c38712776f9b628a60a8662d0716dd52b | [
"MIT"
] | null | null | null | examples/04-lights/plotter_builtins.py | akeshavan/pyvista | 45fe8b1c38712776f9b628a60a8662d0716dd52b | [
"MIT"
] | 6 | 2022-03-11T23:21:22.000Z | 2022-03-25T03:32:21.000Z | examples/04-lights/plotter_builtins.py | akeshavan/pyvista | 45fe8b1c38712776f9b628a60a8662d0716dd52b | [
"MIT"
] | null | null | null | """
Plotter Lighting Systems
~~~~~~~~~~~~~~~~~~~~~~~~
The :class:`pyvista.Plotter` class comes with three options for the default
lighting system:
* a light kit consisting of a headlight and four camera lights,
* an illumination system containing three lights arranged around the camera,
* no lighting.
With mes... | 30.77907 | 79 | 0.66377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,913 | 0.722705 |
131c13cd6c6c6b833141fea96f58ed4c3b53dc38 | 272 | py | Python | src/swimport/tests/15_char_arrays/main.py | talos-gis/swimport | e8f0fcf02b0c9751b199f750f1f8bc57c8ff54b3 | [
"MIT"
] | 1 | 2019-03-07T20:43:42.000Z | 2019-03-07T20:43:42.000Z | src/swimport/tests/15_char_arrays/main.py | talos-gis/swimport | e8f0fcf02b0c9751b199f750f1f8bc57c8ff54b3 | [
"MIT"
] | null | null | null | src/swimport/tests/15_char_arrays/main.py | talos-gis/swimport | e8f0fcf02b0c9751b199f750f1f8bc57c8ff54b3 | [
"MIT"
] | null | null | null | from swimport.all import *
src = FileSource('src.h')
swim = Swim('example')
swim(pools.c_string)
swim(pools.numpy_arrays(r"../resources", allow_char_arrays=True))
swim(pools.include(src))
assert swim(Function.Behaviour()(src)) > 0
swim.write('example.i')
print('ok!') | 19.428571 | 65 | 0.720588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 47 | 0.172794 |
131c14184c1fb810c136590d143d0fdf3f83e6df | 4,523 | py | Python | ipyvolume/astro.py | larsoner/ipyvolume | 8603a47aff4531df69ace44efdcf6b85d6e51e51 | [
"MIT"
] | 1 | 2019-04-09T11:57:07.000Z | 2019-04-09T11:57:07.000Z | ipyvolume/astro.py | larsoner/ipyvolume | 8603a47aff4531df69ace44efdcf6b85d6e51e51 | [
"MIT"
] | null | null | null | ipyvolume/astro.py | larsoner/ipyvolume | 8603a47aff4531df69ace44efdcf6b85d6e51e51 | [
"MIT"
] | null | null | null | import numpy as np
import PIL.Image
import pythreejs
import ipyvolume as ipv
from .datasets import UrlCached
def _randomSO3():
"""return random rotatation matrix, algo by James Arvo"""
u1 = np.random.random()
u2 = np.random.random()
u3 = np.random.random()
R = np.array([[np.cos(2*np.pi*u1), np.si... | 41.118182 | 198 | 0.640946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 308 | 0.068096 |
131e1d61812e10d7ea42b3ca418199cd229845a3 | 1,157 | py | Python | deepfunning/function.py | Zrealshadow/DeepFunning | 5c44210a6b30ea57a0be5f930da4ada540e7e3d0 | [
"MIT"
] | null | null | null | deepfunning/function.py | Zrealshadow/DeepFunning | 5c44210a6b30ea57a0be5f930da4ada540e7e3d0 | [
"MIT"
] | null | null | null | deepfunning/function.py | Zrealshadow/DeepFunning | 5c44210a6b30ea57a0be5f930da4ada540e7e3d0 | [
"MIT"
] | null | null | null | '''
* @author Waldinsamkeit
* @email [email protected]
* @create date 2020-09-25 14:33:38
* @desc
'''
import torch
'''--------------------- Weighted Binary cross Entropy ----------------------'''
'''
In Torch BCELoss, weight is set to every element of input instead of to every class
'''
def weighted_binary_cr... | 28.925 | 84 | 0.577355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 435 | 0.375972 |
131e36d011ba94f7784c802143deb17326553c0e | 7,055 | py | Python | dlms_cosem/hdlc/address.py | pwitab/dlms-cosem | aa9e18e6ef8a4fee30da8b797dad03b0b7847780 | [
"MIT"
] | 35 | 2018-05-24T08:16:35.000Z | 2022-02-24T16:07:07.000Z | dlms_cosem/hdlc/address.py | Layty/dlms-cosem | 95b67054a1dfb928e960547b0246b7b6794f0594 | [
"MIT"
] | 41 | 2020-12-18T16:31:40.000Z | 2021-12-13T20:59:42.000Z | dlms_cosem/hdlc/address.py | Layty/dlms-cosem | 95b67054a1dfb928e960547b0246b7b6794f0594 | [
"MIT"
] | 19 | 2019-04-02T14:32:01.000Z | 2021-12-14T13:24:29.000Z | from typing import *
import attr
from dlms_cosem.hdlc import validators
@attr.s(auto_attribs=True)
class HdlcAddress:
"""
A client address shall always be expressed on one byte.
To enable addressing more than one logical device within a single physical device
and to support the multi-drop configurat... | 36.554404 | 88 | 0.624522 | 6,953 | 0.985263 | 0 | 0 | 6,980 | 0.989089 | 0 | 0 | 1,307 | 0.185206 |
131e68c02091db60b313cb5f13708b590b55dc83 | 3,676 | py | Python | benchmarks/benchmarks/stats.py | RasmusSemmle/scipy | 4ffeafe269597e6d41b3335549102cd5611b12cb | [
"FSFAP"
] | 1 | 2019-04-13T01:41:50.000Z | 2019-04-13T01:41:50.000Z | benchmarks/benchmarks/stats.py | RasmusSemmle/scipy | 4ffeafe269597e6d41b3335549102cd5611b12cb | [
"FSFAP"
] | 1 | 2018-10-16T01:50:18.000Z | 2018-10-16T01:50:18.000Z | benchmarks/benchmarks/stats.py | RasmusSemmle/scipy | 4ffeafe269597e6d41b3335549102cd5611b12cb | [
"FSFAP"
] | null | null | null | from __future__ import division, absolute_import, print_function
import warnings
import numpy as np
try:
import scipy.stats as stats
except ImportError:
pass
from .common import Benchmark
class Anderson_KSamp(Benchmark):
def setup(self, *args):
self.rand = [np.random.normal(loc=i, size=1000) fo... | 32.530973 | 98 | 0.596572 | 3,461 | 0.941513 | 0 | 0 | 0 | 0 | 0 | 0 | 439 | 0.119423 |