hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
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
972
max_forks_repo_name
stringlengths
6
130
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
23d45de26365d94aeb28d789ccbde602781bd46d
22,886
py
Python
back of PSSM/PSSM/pssm/models/rstereo # volume similarity.py
lidongyv/PSSM
61ef78bc465fd53fb128d0aa1b913f787c8c7f74
[ "Apache-2.0" ]
null
null
null
back of PSSM/PSSM/pssm/models/rstereo # volume similarity.py
lidongyv/PSSM
61ef78bc465fd53fb128d0aa1b913f787c8c7f74
[ "Apache-2.0" ]
null
null
null
back of PSSM/PSSM/pssm/models/rstereo # volume similarity.py
lidongyv/PSSM
61ef78bc465fd53fb128d0aa1b913f787c8c7f74
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: yulidong # @Date: 2018-07-17 10:44:43 # @Last Modified by: yulidong # @Last Modified time: 2018-08-28 19:46:18 # -*- coding: utf-8 -*- # @Author: lidong # @Date: 2018-03-20 18:01:52 # @Last Modified by: yulidong # @Last Modified time: 2018-07-16 22:16:14 import time import tor...
40.72242
149
0.557721
11b61f11a5deb5ef1accf143a1cf0477f31ed987
2,968
py
Python
docs/source/conf.py
CRIStAL-PADR/Speed
ee4d7b731e6ec16db3659af191ed138df4117698
[ "MIT" ]
null
null
null
docs/source/conf.py
CRIStAL-PADR/Speed
ee4d7b731e6ec16db3659af191ed138df4117698
[ "MIT" ]
2
2021-02-02T12:37:27.000Z
2021-02-02T14:43:01.000Z
docs/source/conf.py
CRIStAL-PADR/Speed
ee4d7b731e6ec16db3659af191ed138df4117698
[ "MIT" ]
1
2021-01-28T15:31:42.000Z
2021-01-28T15:31:42.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If e...
34.114943
84
0.693059
85fb0e111f241c18e06b52d857cd1444686b972f
339
py
Python
src/tensor/tensor/_bind.py
jedhsu/tensor
3b2fe21029fa7c50b034190e77d79d1a94ea5e8f
[ "Apache-2.0" ]
null
null
null
src/tensor/tensor/_bind.py
jedhsu/tensor
3b2fe21029fa7c50b034190e77d79d1a94ea5e8f
[ "Apache-2.0" ]
null
null
null
src/tensor/tensor/_bind.py
jedhsu/tensor
3b2fe21029fa7c50b034190e77d79d1a94ea5e8f
[ "Apache-2.0" ]
null
null
null
""" *Tensor, [Bindings]* """ from .index import IndexTensor from .move import Move from .initialize import Test as InitializeTest __all__ = ["Tensor"] class Tensor( Move, IndexTensor, ): pass class Test: square = Tensor.create(InitializeTest.square) square_5x5 = Tensor.create(Initiali...
13.56
57
0.690265
ee89ef7a1e3dde025442e64934a1772ddfbd66af
1,512
py
Python
viadot/examples/supermetrics_google_ads_extract.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
23
2021-05-04T13:28:30.000Z
2022-02-16T18:51:24.000Z
viadot/examples/supermetrics_google_ads_extract.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
142
2021-05-01T10:48:12.000Z
2022-03-28T15:00:06.000Z
viadot/examples/supermetrics_google_ads_extract.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
13
2021-05-14T18:28:10.000Z
2022-03-17T10:17:17.000Z
from ..config import local_config from ..flows import SupermetricsToAzureSQLv3 SUPERMETRICS_CREDENTIALS = local_config.get("SUPERMETRICS") # Note this flow uses local config, as well as Prefect and Azure Key Vault # secrets for the Key Vault, ADLS, and Azure SQL Database. # These defaults are set with the following l...
32.170213
78
0.687831
6573d3bef20cc9118c3fa77128283188f5e29851
1,603
py
Python
cryptoy/util/binascii.py
stevesea/cryptoy
e543a1ab7543f789ecbe1e3f103de31402367536
[ "MIT" ]
null
null
null
cryptoy/util/binascii.py
stevesea/cryptoy
e543a1ab7543f789ecbe1e3f103de31402367536
[ "MIT" ]
null
null
null
cryptoy/util/binascii.py
stevesea/cryptoy
e543a1ab7543f789ecbe1e3f103de31402367536
[ "MIT" ]
null
null
null
from base64 import ( a85decode, a85encode, b16decode, b16encode, b32decode, b32encode, b85decode, b85encode, standard_b64decode, standard_b64encode, urlsafe_b64decode, urlsafe_b64encode, ) from typing import Callable, Dict encodings: Dict[str, Callable] = { "a85": a8...
21.373333
72
0.618216
10f8f56f8b35cdec53e33e7297fd893f1538b40a
5,320
py
Python
functions/rndforest.py
CaoKaiK/bondora
0e1a1c98d976decc0f8eedacfa0ac7a3a3e0f22a
[ "MIT" ]
1
2020-03-05T10:18:33.000Z
2020-03-05T10:18:33.000Z
functions/rndforest.py
CaoKaiK/bondora
0e1a1c98d976decc0f8eedacfa0ac7a3a3e0f22a
[ "MIT" ]
1
2021-06-02T00:44:25.000Z
2021-06-02T00:44:25.000Z
functions/rndforest.py
CaoKaiK/bondora
0e1a1c98d976decc0f8eedacfa0ac7a3a3e0f22a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import numpy as np import pandas as pd from statistics import stdev from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import StratifiedShuffleSplit from sklearn.model_selection import RandomizedSearchCV from sklearn.metrics import roc_curve, auc, r...
36.190476
87
0.585526
aa76de4133144496d96e70cb2951608b5ba98c46
2,267
py
Python
src/api/auth/core/attrs_defination.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/api/auth/core/attrs_defination.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/api/auth/core/attrs_defination.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
39.086207
111
0.711954
c0f57e163d71944f4f412b0195eadceed174a976
4,476
py
Python
clusterpost/bigchaindb/setup.py
TauKaisho/fantastic-bassoon
6a95ee8d9157191473dcf4d752abf7e99400f339
[ "MIT" ]
474
2020-02-05T06:22:58.000Z
2022-03-29T00:02:10.000Z
clusterpost/bigchaindb/setup.py
Lonero-Team/Decentralized-Internet
673ef7b2b92f51a541d5f15937692290a4bd46e8
[ "MIT" ]
1,823
2019-12-18T19:36:48.000Z
2022-03-31T20:24:51.000Z
clusterpost/bigchaindb/setup.py
TauKaisho/fantastic-bassoon
6a95ee8d9157191473dcf4d752abf7e99400f339
[ "MIT" ]
174
2019-12-18T19:33:23.000Z
2022-03-24T12:40:56.000Z
# Copyright BigchainDB GmbH and BigchainDB contributors # SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) # Code is Apache-2.0 and docs are CC-BY-4.0 """ BigchainDB: The Blockchain Database For full docs visit https://docs.bigchaindb.com """ from setuptools import setup, find_packages import sys if sys.version...
29.064935
81
0.63092
8415e58bb75b336b7be32dafce56d397dc7afb15
9,760
py
Python
src/labster/domain/services/calculs_couts.py
jean3108/labandco
4317e7d3875f10d76076ad5fc68c1ba3c12badba
[ "Apache-2.0" ]
2
2019-11-11T22:09:58.000Z
2020-01-20T19:44:30.000Z
src/labster/domain/services/calculs_couts.py
jean3108/labandco
4317e7d3875f10d76076ad5fc68c1ba3c12badba
[ "Apache-2.0" ]
15
2020-03-31T10:58:37.000Z
2022-01-22T09:14:49.000Z
src/labster/domain/services/calculs_couts.py
jean3108/labandco
4317e7d3875f10d76076ad5fc68c1ba3c12badba
[ "Apache-2.0" ]
2
2021-05-28T12:20:24.000Z
2021-09-08T11:27:57.000Z
"""""" from __future__ import annotations import datetime from decimal import Decimal, ExtendedContext, localcontext from typing import TYPE_CHECKING from babel.numbers import format_currency, format_decimal from labster.domain.services.constants import get_constant, get_constants if TYPE_CHECKING: from labster...
32.425249
88
0.58709
c1ec85ebec503f0127697b62dd599580dd18e345
1,805
py
Python
src/idom/config.py
Beanstalk-Farms/idom
42b2e20f87c312427634db0dff752df583cf83e3
[ "MIT" ]
1
2022-02-11T17:48:58.000Z
2022-02-11T17:48:58.000Z
src/idom/config.py
Beanstalk-Farms/idom
42b2e20f87c312427634db0dff752df583cf83e3
[ "MIT" ]
null
null
null
src/idom/config.py
Beanstalk-Farms/idom
42b2e20f87c312427634db0dff752df583cf83e3
[ "MIT" ]
1
2022-02-11T17:48:59.000Z
2022-02-11T17:48:59.000Z
from pathlib import Path from typing import cast from . import _option IDOM_DEBUG_MODE = _option.Option( "IDOM_DEBUG_MODE", default=False, mutable=False, validator=lambda x: bool(int(x)), ) """This immutable option turns on/off debug mode The string values ``1`` and ``0`` are mapped to ``True`` and ...
32.818182
88
0.738504
f5d423859cfd68e28c33f7da06ef0ffa1b31a6de
4,955
py
Python
Lib/fontbakery/profiles/ufo_sources.py
moontypespace/fontbakery
fcf26c8c50728308e2323145d0e8bcd418dd2daf
[ "Apache-2.0" ]
null
null
null
Lib/fontbakery/profiles/ufo_sources.py
moontypespace/fontbakery
fcf26c8c50728308e2323145d0e8bcd418dd2daf
[ "Apache-2.0" ]
null
null
null
Lib/fontbakery/profiles/ufo_sources.py
moontypespace/fontbakery
fcf26c8c50728308e2323145d0e8bcd418dd2daf
[ "Apache-2.0" ]
null
null
null
import os from fontbakery.callable import check, condition from fontbakery.callable import FontBakeryExpectedValue as ExpectedValue from fontbakery.status import ERROR, FAIL, PASS, WARN from fontbakery.section import Section from fontbakery.message import Message from fontbakery.fonts_profile import profile_factory ...
31.967742
80
0.642785
caf1a13e844b0edc8179a00f092d9e120d60dd32
2,196
py
Python
examples/make_env.py
TachikakaMin/envpool
4ecd296b27d2c05b515aab6219f17c561c725017
[ "Apache-2.0" ]
1
2021-12-06T04:25:13.000Z
2021-12-06T04:25:13.000Z
examples/make_env.py
TachikakaMin/envpool
4ecd296b27d2c05b515aab6219f17c561c725017
[ "Apache-2.0" ]
null
null
null
examples/make_env.py
TachikakaMin/envpool
4ecd296b27d2c05b515aab6219f17c561c725017
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Garena Online Private Limited # # 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 agr...
34.3125
74
0.728597
c768ed95123dbd22c0cd635e2a8a8dea4cc150e2
2,484
py
Python
src/data/charset.py
PatrickPrakash/lipreading
6380508ba3ffad64fc01ce10a5f43e4da0f652fd
[ "MIT" ]
6
2020-09-09T23:56:14.000Z
2021-05-17T07:39:38.000Z
src/data/charset.py
PatrickPrakash/lipreading
6380508ba3ffad64fc01ce10a5f43e4da0f652fd
[ "MIT" ]
4
2021-03-03T11:44:46.000Z
2021-08-23T07:40:30.000Z
src/data/charset.py
PatrickPrakash/lipreading
6380508ba3ffad64fc01ce10a5f43e4da0f652fd
[ "MIT" ]
2
2021-04-01T08:18:10.000Z
2021-04-18T11:08:35.000Z
__charSet = None def get_charSet(): ''' character class return but must initialize first Returns ------- CharSet class ''' if __charSet: return __charSet else: raise ValueError def init_charSet(language): ''' character class init with language option ...
20.032258
70
0.444042
c190b28cfe964391809aba4638ce8522d6b52a67
409
py
Python
tumour_detection/tumour_detection/wsgi.py
arpitmaheshwari213/Epitome-Extraction-and-Tumour-Classification-from-MRIs-of-Brain
1d8dc70f9d28d6141a5cfdd227df4c84a07c9b95
[ "MIT" ]
1
2021-02-14T20:36:47.000Z
2021-02-14T20:36:47.000Z
tumour_detection/tumour_detection/wsgi.py
arpitmaheshwari213/Epitome-Extraction-and-Tumour-Classification-from-MRIs-of-Brain
1d8dc70f9d28d6141a5cfdd227df4c84a07c9b95
[ "MIT" ]
null
null
null
tumour_detection/tumour_detection/wsgi.py
arpitmaheshwari213/Epitome-Extraction-and-Tumour-Classification-from-MRIs-of-Brain
1d8dc70f9d28d6141a5cfdd227df4c84a07c9b95
[ "MIT" ]
null
null
null
""" WSGI config for tumour_detection project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJA...
24.058824
78
0.794621
8150d76b962340df73eb9818f226efd6fcb75183
401
py
Python
tests/test_button_input.py
klee229/CS179J-Smart-Water-Station-Project
7568c23dc7cd4108ca42c27bf77e18a2a74aa36f
[ "MIT" ]
null
null
null
tests/test_button_input.py
klee229/CS179J-Smart-Water-Station-Project
7568c23dc7cd4108ca42c27bf77e18a2a74aa36f
[ "MIT" ]
null
null
null
tests/test_button_input.py
klee229/CS179J-Smart-Water-Station-Project
7568c23dc7cd4108ca42c27bf77e18a2a74aa36f
[ "MIT" ]
2
2021-09-03T20:23:32.000Z
2021-11-28T21:49:36.000Z
from gpiozero import Button from time import sleep # Raspberry Pi BCM gpio pin number dispense_pin = 14 dispense_btn = Button(dispense_pin) def press_button(): for x in range(100): if dispense_btn.is_pressed: print("dispense button pressed") else: print("dispense button N...
18.227273
48
0.65586
91fd7f756ed05af54071321ebf6688903e030eaa
5,106
py
Python
cli/cli_elb.py
reneses/cloud-cli
1f765cfb67cb9ffde1633fffe0da11893fb1503f
[ "MIT" ]
null
null
null
cli/cli_elb.py
reneses/cloud-cli
1f765cfb67cb9ffde1633fffe0da11893fb1503f
[ "MIT" ]
null
null
null
cli/cli_elb.py
reneses/cloud-cli
1f765cfb67cb9ffde1633fffe0da11893fb1503f
[ "MIT" ]
null
null
null
from menu import Menu, MenuEntry from logic.elastic_load_balancer import ElasticLoadBalancing class ElbCli: """ Amazon Elastic Cloud Balancer CLI """ def __init__(self): """ Init the logic handler and run the menu """ self.elb = ElasticLoadBalancing() Menu('Ama...
30.035294
100
0.586369
e46314bc51fee31f662446efc95aae3a28453ad2
3,274
py
Python
tests/integration/renderer/test_due_diligence.py
jwminton/dash
c9da6cceccdb209296d6cbd2ff384bfa73591fff
[ "MIT" ]
1
2020-08-15T07:05:50.000Z
2020-08-15T07:05:50.000Z
tests/integration/renderer/test_due_diligence.py
jwminton/dash
c9da6cceccdb209296d6cbd2ff384bfa73591fff
[ "MIT" ]
1
2020-11-05T07:45:36.000Z
2020-11-05T07:45:36.000Z
tests/integration/renderer/test_due_diligence.py
jwminton/dash
c9da6cceccdb209296d6cbd2ff384bfa73591fff
[ "MIT" ]
null
null
null
import json import os import string from bs4 import BeautifulSoup import requests import plotly import dash_html_components as html import dash def test_rddd001_initial_state(dash_duo): app = dash.Dash(__name__) my_class_attrs = { "id": "p.c.4", "className": "my-class", "title": "too...
32.098039
87
0.524435
b86e19152e767a53b195ac0f2b94b069974fd367
1,550
py
Python
setup.py
factorlibre/python-dhl
fceb6bb7b3a3985e87109c813a736cdb64e91d59
[ "MIT" ]
3
2020-06-11T06:44:16.000Z
2021-02-18T23:08:00.000Z
setup.py
factorlibre/python-dhl
fceb6bb7b3a3985e87109c813a736cdb64e91d59
[ "MIT" ]
null
null
null
setup.py
factorlibre/python-dhl
fceb6bb7b3a3985e87109c813a736cdb64e91d59
[ "MIT" ]
2
2017-02-09T11:45:50.000Z
2020-06-29T02:31:17.000Z
from setuptools import setup, find_packages # Always prefer setuptools over distutils from codecs import open # To use a consistent encoding from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file long_description = """\ This is a python package for using th...
30.392157
108
0.676129
df22d4ef60c92eedcd51c2e4080dc8c17cf84464
7,228
py
Python
nssm/cli.py
FlippAre/pynssm
a5841179ad82b7065caff80e5022b13d2e0838a4
[ "MIT" ]
null
null
null
nssm/cli.py
FlippAre/pynssm
a5841179ad82b7065caff80e5022b13d2e0838a4
[ "MIT" ]
1
2021-03-23T20:23:20.000Z
2021-03-23T20:23:20.000Z
nssm/cli.py
FlippAre/pynssm
a5841179ad82b7065caff80e5022b13d2e0838a4
[ "MIT" ]
5
2018-10-03T12:41:25.000Z
2021-03-09T14:20:16.000Z
""" Created on June 7, 2018 @author: Lorenzo Delgado <lorenzo.delgado@lnsd.es> """ from inspect import isclass from argparse import ArgumentParser, Namespace, _SubParsersAction class CliCommand(object): """ Command line command class """ def __init__(self, parser): """ :param parser...
31.982301
77
0.646514
e25a4593c50fd1191e8116a0006a8d2c9ffee29e
1,148
py
Python
var/spack/repos/builtin/packages/r-rsconnect/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-03-05T10:54:32.000Z
2021-03-05T14:14:52.000Z
var/spack/repos/builtin/packages/r-rsconnect/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
32
2020-12-15T17:29:20.000Z
2022-03-21T15:08:31.000Z
var/spack/repos/builtin/packages/r-rsconnect/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
7
2018-09-13T18:04:56.000Z
2020-03-18T20:52:06.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RRsconnect(RPackage): """Deployment Interface for R Markdown Documents and Shiny Applicati...
39.586207
96
0.687282
7925c6cb007a4b26ffa23fbd7436076037b8fd71
1,506
py
Python
ufdl-annotation-utils/src/ufdl/annotation_utils/image_classification/_annotations_iterator.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
null
null
null
ufdl-annotation-utils/src/ufdl/annotation_utils/image_classification/_annotations_iterator.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
85
2020-07-24T00:04:28.000Z
2022-02-10T10:35:15.000Z
ufdl-annotation-utils/src/ufdl/annotation_utils/image_classification/_annotations_iterator.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
null
null
null
from typing import Iterator, Callable, Iterable, List from wai.annotations.domain.classification import Classification from wai.annotations.domain.image import Image from wai.annotations.domain.image.classification import ImageClassificationInstance def annotations_iterator(filenames: Iterable[str], ...
43.028571
111
0.674635
8699ee51986f25a278cbe4c265e456359b71e7d2
20,313
py
Python
src/utils/analysis.py
gaowanting/paper_code0
15568fc9989b26df7c582b92163d2f262654712e
[ "MIT" ]
153
2021-08-03T09:02:27.000Z
2022-03-31T23:39:35.000Z
src/utils/analysis.py
gaowanting/paper_code0
15568fc9989b26df7c582b92163d2f262654712e
[ "MIT" ]
10
2021-09-07T09:06:40.000Z
2022-03-31T20:07:11.000Z
src/utils/analysis.py
gaowanting/paper_code0
15568fc9989b26df7c582b92163d2f262654712e
[ "MIT" ]
54
2021-08-03T12:27:10.000Z
2022-03-27T15:09:27.000Z
""" Collection of functions which enable the evaluation of a classifier's performance, by showing confusion matrix, accuracy, recall, precision etc. """ import numpy as np import sys import matplotlib.pyplot as plt from sklearn import metrics from tabulate import tabulate import math import logging from datetime imp...
42.495816
154
0.640969
3f6fd19c2198b7e784269248c2fd97d63b9da4f4
215
py
Python
tests/test_basic.py
fkymy/cpp
a1ef2528e92f5cb56640ad41cc8be35a1fe02da8
[ "MIT" ]
null
null
null
tests/test_basic.py
fkymy/cpp
a1ef2528e92f5cb56640ad41cc8be35a1fe02da8
[ "MIT" ]
null
null
null
tests/test_basic.py
fkymy/cpp
a1ef2528e92f5cb56640ad41cc8be35a1fe02da8
[ "MIT" ]
null
null
null
from .context import M import unittest class BasicTestSuite(unittest.TestCase): """Basic test cases.""" def test_absolute_truth(self): assert True if __name__ == '__main__': unittest.main()
15.357143
40
0.683721
f25585c46f984b36eef168331d9276cf5379c098
1,762
py
Python
fastapi_mail/config.py
floodpants/fastapi-mail
449079d4c5fd25cc44ef818daca0e694f6e28688
[ "MIT" ]
null
null
null
fastapi_mail/config.py
floodpants/fastapi-mail
449079d4c5fd25cc44ef818daca0e694f6e28688
[ "MIT" ]
null
null
null
fastapi_mail/config.py
floodpants/fastapi-mail
449079d4c5fd25cc44ef818daca0e694f6e28688
[ "MIT" ]
null
null
null
import os from pathlib import Path from typing import Optional from pydantic import BaseSettings as Settings, conint from pydantic import EmailStr, validator, DirectoryPath from jinja2 import Environment, FileSystemLoader from fastapi_mail.errors import TemplateFolderDoesNotExist class ConnectionConfig(Settings): ...
30.912281
97
0.670261
a7acd8643f2ca17f79a2920e4d35777fc436746e
526
py
Python
django_beginnings/users/models.py
henryfjordan/django_beginnings
0aabb2c0ef250f211dabebcbc83b5c3e3d577302
[ "BSD-3-Clause" ]
null
null
null
django_beginnings/users/models.py
henryfjordan/django_beginnings
0aabb2c0ef250f211dabebcbc83b5c3e3d577302
[ "BSD-3-Clause" ]
null
null
null
django_beginnings/users/models.py
henryfjordan/django_beginnings
0aabb2c0ef250f211dabebcbc83b5c3e3d577302
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from django.contrib.auth.models import AbstractUser from django.db import models # from django.utils.translation import ugettext_lazy as _ class User(AbstractUser): def __unicode__(self): return self.username twitter_fo...
27.684211
64
0.769962
c2c1f8ada7606173bc4d85752c1a48d0ff9f5856
670
py
Python
ProyectoHuevos/manage.py
EstefaniaLaverde/ProyectoHuevos
c82fb326ef8aac6234d025422d1cf99716cefed9
[ "Apache-2.0", "MIT" ]
null
null
null
ProyectoHuevos/manage.py
EstefaniaLaverde/ProyectoHuevos
c82fb326ef8aac6234d025422d1cf99716cefed9
[ "Apache-2.0", "MIT" ]
null
null
null
ProyectoHuevos/manage.py
EstefaniaLaverde/ProyectoHuevos
c82fb326ef8aac6234d025422d1cf99716cefed9
[ "Apache-2.0", "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ProyectoHuevos.settings') try: from django.core.management import execute_from_command_line exce...
29.130435
78
0.68209
21a39bcd1d1fe2fe4c49a5f71668de5033c992b2
13,280
py
Python
parlai/tasks/light_dialog/builder.py
takatoy/ParlAI
58aa4e0bf068b6bdd28b705da22b7a0269e32714
[ "MIT" ]
12
2020-03-30T02:56:25.000Z
2021-09-10T05:42:55.000Z
parlai/tasks/light_dialog/builder.py
takatoy/ParlAI
58aa4e0bf068b6bdd28b705da22b7a0269e32714
[ "MIT" ]
14
2020-03-13T19:08:56.000Z
2020-05-12T07:38:41.000Z
parlai/tasks/light_dialog/builder.py
takatoy/ParlAI
58aa4e0bf068b6bdd28b705da22b7a0269e32714
[ "MIT" ]
4
2020-08-06T19:38:51.000Z
2021-07-08T11:36:48.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import random import io import os import pickle from parlai.utils.misc import msg_to_str rand = random.Random(42) def...
36.786704
87
0.508283
6c779d12c5e2127438aa29aeb9323c4a1befda49
8,176
py
Python
src/sentry/runner/commands/cleanup.py
simeonnetworks/sentry
93e9646acca76f7bd79368ed538605c9920f4e35
[ "BSD-3-Clause" ]
null
null
null
src/sentry/runner/commands/cleanup.py
simeonnetworks/sentry
93e9646acca76f7bd79368ed538605c9920f4e35
[ "BSD-3-Clause" ]
null
null
null
src/sentry/runner/commands/cleanup.py
simeonnetworks/sentry
93e9646acca76f7bd79368ed538605c9920f4e35
[ "BSD-3-Clause" ]
null
null
null
""" sentry.runner.commands.cleanup ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2015 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, print_function import click from datetime import timedelta from django.utils import timezon...
34.644068
122
0.612524
92d6c64a82765ba0761b28f4e845f8382519023a
347
py
Python
asyncio_requests/helpers/common/date_helper.py
gofynd/asyncio-requests
df0995b8b87cfd5975810445b2f52f6a2b10436f
[ "MIT" ]
1
2022-02-27T06:34:13.000Z
2022-02-27T06:34:13.000Z
asyncio_requests/helpers/common/date_helper.py
gofynd/asyncio-requests
df0995b8b87cfd5975810445b2f52f6a2b10436f
[ "MIT" ]
null
null
null
asyncio_requests/helpers/common/date_helper.py
gofynd/asyncio-requests
df0995b8b87cfd5975810445b2f52f6a2b10436f
[ "MIT" ]
1
2022-02-24T12:38:13.000Z
2022-02-24T12:38:13.000Z
"""Date helper.""" from asyncio_requests.utils.constants import TIMEZONE from datetime import datetime import pytz timezone = pytz.timezone(TIMEZONE) def get_ist_now(timezone=timezone) -> datetime: """Returns Indian Standard Time datetime object. Returns: object -- Datetime object """ ret...
18.263158
53
0.723343
6e9af21e11809da7b242f1408a5f21d294096586
531
py
Python
Game/data/tiles/Tile-Dirt.py
joaompinto/2DExplorer
1c172c208535a3121e9fee3cf6d64b6b8ec3684f
[ "MIT" ]
9
2016-07-25T04:16:46.000Z
2020-05-07T16:27:26.000Z
Game/data/tiles/Tile-Dirt.py
joaompinto/2DExplorer
1c172c208535a3121e9fee3cf6d64b6b8ec3684f
[ "MIT" ]
null
null
null
Game/data/tiles/Tile-Dirt.py
joaompinto/2DExplorer
1c172c208535a3121e9fee3cf6d64b6b8ec3684f
[ "MIT" ]
2
2017-03-04T09:49:02.000Z
2020-04-10T00:13:45.000Z
from Tile import tile class dirtTile (tile): def __init__(self,parentWorld,colRow): super().__init__(parentWorld,colRow,4,1,255) self.durability = 15 self.drop = 4 def special(self): if self.parentWorld.physics.touchingTile((self.column*32,(self.row-1)*32),1) == False: ...
31.235294
98
0.645951
e17585d36d9d74b53bc10bcde7f373e07a4a756c
226
py
Python
setup.py
manoadamro/lazy-python-repo
aed9006657349619ce7b7cce056ea39a76465d40
[ "MIT" ]
null
null
null
setup.py
manoadamro/lazy-python-repo
aed9006657349619ce7b7cce056ea39a76465d40
[ "MIT" ]
1
2019-01-11T10:05:09.000Z
2019-01-11T10:05:09.000Z
setup.py
manoadamro/lazy-python-repo
aed9006657349619ce7b7cce056ea39a76465d40
[ "MIT" ]
null
null
null
# coding: utf-8 import setuptools NAME = 'lazy_python_repo' VERSION = '0.0.0' REQUIRES = [ ] setuptools.setup( name=NAME, version=VERSION, install_requires=REQUIRES, packages=setuptools.find_packages() )
11.894737
39
0.690265
3acc3c261b8d6bf2ec396a15257140bbae54e7df
2,307
py
Python
querybook/server/lib/query_executor/all_executors.py
froukees/querybook
8db8ac7e39cd33bbbe3953c0107b0a4ca8472c07
[ "Apache-2.0" ]
null
null
null
querybook/server/lib/query_executor/all_executors.py
froukees/querybook
8db8ac7e39cd33bbbe3953c0107b0a4ca8472c07
[ "Apache-2.0" ]
null
null
null
querybook/server/lib/query_executor/all_executors.py
froukees/querybook
8db8ac7e39cd33bbbe3953c0107b0a4ca8472c07
[ "Apache-2.0" ]
null
null
null
from typing import Dict from lib.utils.import_helper import ( import_module_with_default, import_modules, ) from .base_executor import parse_exception from lib.logger import get_logger from .executors.sqlalchemy import GenericSqlAlchemyQueryExecutor LOG = get_logger(__file__) PROVIDED_EXECUTORS = import_modu...
31.175676
87
0.682271
8049de8918ef4010e9fefb3149dbd28c1058a413
630
py
Python
fdk_client/platform/models/DetailedPlanComponents.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/DetailedPlanComponents.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/DetailedPlanComponents.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
"""Platform Models.""" from marshmallow import fields, Schema from marshmallow.validate import OneOf from ..enums import * from ..models.BaseSchema import BaseSchema class DetailedPlanComponents(BaseSchema): # Billing swagger.json name = fields.Str(required=False) slug = fields...
13.695652
45
0.666667
78b7747f367190bd8d86b4cb4b687935f9708774
1,854
py
Python
.buildkite/step_builder.py
atsuhiro/dagster
24116a003a12c5a582afba3d4db74b3fa8c8159c
[ "Apache-2.0" ]
null
null
null
.buildkite/step_builder.py
atsuhiro/dagster
24116a003a12c5a582afba3d4db74b3fa8c8159c
[ "Apache-2.0" ]
null
null
null
.buildkite/step_builder.py
atsuhiro/dagster
24116a003a12c5a582afba3d4db74b3fa8c8159c
[ "Apache-2.0" ]
null
null
null
import os import sys SCRIPT_PATH = os.path.dirname(os.path.abspath(__file__)) sys.path.append(SCRIPT_PATH) from defines import SupportedPythons TIMEOUT_IN_MIN = 20 DOCKER_PLUGIN = "docker#v3.2.0" PY_IMAGE_MAP = {ver: "python:{}-stretch".format(ver) for ver in SupportedPythons} class StepBuilder: def __init_...
27.671642
81
0.63754
2cb2588949667cbfb882d7afd78e50337f76121f
6,716
py
Python
Stack-overflow-scraper/scraper.py
avinashkranjan/PraticalPythonProjects
12c1f7cedae57a843ceb6aba68cca48df505f341
[ "MIT" ]
930
2020-09-05T22:07:28.000Z
2022-03-30T07:56:18.000Z
Stack-overflow-scraper/scraper.py
maheshdbabar9340/Amazing-Python-Scripts
e2272048cbe49b4bda5072bbdd8479739bb6c18d
[ "MIT" ]
893
2020-09-04T07:57:24.000Z
2022-02-08T02:12:26.000Z
Stack-overflow-scraper/scraper.py
maheshdbabar9340/Amazing-Python-Scripts
e2272048cbe49b4bda5072bbdd8479739bb6c18d
[ "MIT" ]
497
2020-09-05T08:16:24.000Z
2022-03-31T00:55:57.000Z
import requests from bs4 import BeautifulSoup import tkinter as tk from tkinter import messagebox, simpledialog from tkinter import ttk from tkinter import font as tkFont import time import sqlite3 from sqlite3 import Error # Function to connect to the SQL Database def sql_connection(): try: con = sqlite3....
34.797927
159
0.647558
be7ba1a521f40b8f8ae5c7f8a1ff43c55f475e79
658
py
Python
opexebo/tests/test_general/test_smooth.py
simon-ball/opexebo
8e44a4890efa60a6ed8c2e9e0df7cc9ab2d80d31
[ "MIT" ]
4
2019-06-12T07:50:42.000Z
2021-11-19T12:55:47.000Z
opexebo/tests/test_general/test_smooth.py
simon-ball/opexebo
8e44a4890efa60a6ed8c2e9e0df7cc9ab2d80d31
[ "MIT" ]
12
2019-06-12T07:26:40.000Z
2021-08-11T15:10:47.000Z
opexebo/tests/test_general/test_smooth.py
simon-ball/opexebo
8e44a4890efa60a6ed8c2e9e0df7cc9ab2d80d31
[ "MIT" ]
4
2019-11-21T10:44:37.000Z
2022-01-07T14:21:07.000Z
""" Tests for smoothing""" import numpy as np import pytest from opexebo.general import smooth as func print("=== tests_general_smooth ===") ############################################################################### ################ MAIN TESTS ####################################################...
26.32
79
0.492401
aeefb66738b8e9747e9cdb0950bc5e57818e49fc
854
py
Python
zerver/tornado/sharding.py
kinster007/clone
21cc608b5c960e035ef6b3387efeefbb65cb638b
[ "Apache-2.0" ]
null
null
null
zerver/tornado/sharding.py
kinster007/clone
21cc608b5c960e035ef6b3387efeefbb65cb638b
[ "Apache-2.0" ]
null
null
null
zerver/tornado/sharding.py
kinster007/clone
21cc608b5c960e035ef6b3387efeefbb65cb638b
[ "Apache-2.0" ]
null
null
null
from django.conf import settings from zerver.models import Realm import json import os shard_map = {} if os.path.exists("/etc/zulip/sharding.json"): with open("/etc/zulip/sharding.json") as f: shard_map = json.loads(f.read()) def get_tornado_port(realm: Realm) -> int: if settings.TORNADO_SERVER is Non...
29.448276
58
0.688525
e1bc9cdb2280901a515d1b9b1f751b0fa656c211
3,915
py
Python
python/app/plugins/http/Tomcat/CVE_2020_1938.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
351
2020-02-26T05:23:26.000Z
2022-03-26T12:39:19.000Z
python/app/plugins/http/Tomcat/CVE_2020_1938.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
15
2020-03-26T07:31:49.000Z
2022-03-09T02:12:17.000Z
python/app/plugins/http/Tomcat/CVE_2020_1938.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
99
2020-02-28T07:30:46.000Z
2022-03-16T16:41:09.000Z
#!/usr/bin/env python3 import socket from urllib.parse import urlparse from app.plugins.http.Tomcat.ajpy import AjpBodyRequest, AjpForwardRequest, AjpResponse, NotFoundException class CVE_2020_1938_BaseVerify(object): def __init__(self, url): self.info = { 'name': ' CVE-2020-1938漏洞', ...
41.210526
153
0.577778
ef634d99a398aded421584b85b21cc9cf8cfb92a
10,643
py
Python
plugin.video.SportsDevil/lib/utils/beta/t0mm0/common/net.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
2
2018-11-02T19:55:30.000Z
2020-08-14T02:22:20.000Z
plugin.video.SportsDevil/lib/utils/beta/t0mm0/common/net.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
null
null
null
plugin.video.SportsDevil/lib/utils/beta/t0mm0/common/net.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
3
2019-12-17T20:47:00.000Z
2021-02-11T19:03:59.000Z
''' common XBMC Module Copyright (C) 2011 t0mm0 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Th...
31.581602
80
0.557644
1df08c5e727ea1bdcdb66e221c9dda5760bb99c9
1,939
py
Python
venv/lib/python3.8/site-packages/vsts/build/v4_1/models/build_settings.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/build/v4_1/models/build_settings.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/build/v4_1/models/build_settings.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
57.029412
135
0.650851
6b333a779e08fceba6ed945070a022b667d57cbf
3,151
py
Python
pytimize/formulations/linear/_variable.py
TerrayTM/pytimize
5d3508e8da4d2e6c8e52d3386b580bc300dc52d5
[ "Apache-2.0" ]
10
2020-02-24T01:52:20.000Z
2022-03-12T02:50:58.000Z
pytimize/formulations/linear/_variable.py
TerrayTM/pytimize
5d3508e8da4d2e6c8e52d3386b580bc300dc52d5
[ "Apache-2.0" ]
null
null
null
pytimize/formulations/linear/_variable.py
TerrayTM/pytimize
5d3508e8da4d2e6c8e52d3386b580bc300dc52d5
[ "Apache-2.0" ]
2
2021-10-03T22:18:47.000Z
2021-10-03T22:19:27.000Z
from ._equation import LinearEquation from ._constraint import VariableConstraint, LinearConstraint from typing import Union, Tuple class MetaVariable(type): def __getitem__(cls, key: Union[int, slice]) -> LinearEquation: if isinstance(key, int): if key <= 0: raise ValueError("V...
22.347518
107
0.631863
9b71e3a6715d9fbf254fa17392e13322c0aeb20e
278
py
Python
ultros_site/__main__.py
tsao-chi/Site
e3fc4574101b8cdacb2a28e54495da5376dd5396
[ "MIT", "Artistic-2.0", "BSD-3-Clause" ]
2
2017-06-25T20:57:40.000Z
2017-11-27T15:13:35.000Z
ultros_site/__main__.py
tsao-chi/Site
e3fc4574101b8cdacb2a28e54495da5376dd5396
[ "MIT", "Artistic-2.0", "BSD-3-Clause" ]
5
2017-06-23T12:05:57.000Z
2021-06-30T05:46:44.000Z
ultros_site/__main__.py
tsao-chi/Site
e3fc4574101b8cdacb2a28e54495da5376dd5396
[ "MIT", "Artistic-2.0", "BSD-3-Clause" ]
3
2018-01-08T04:57:12.000Z
2020-01-22T08:03:56.000Z
# coding=utf-8 __author__ = "Gareth Coles" if __name__ == "__main__": import waitress import logging from ultros_site.app import app logger = logging.getLogger('waitress') logger.setLevel(logging.DEBUG) waitress.serve(app, host="0.0.0.0", port=8090)
19.857143
50
0.68705
f6268f0e02a7419814e14d9472b6a19e35ce63df
3,440
py
Python
tools/c7n_azure/c7n_azure/functionapp_utils.py
sstarcher/cloud-custodian
fc5b51019e9c15d0582089133d080bceee489a94
[ "Apache-2.0" ]
1
2019-06-11T19:43:28.000Z
2019-06-11T19:43:28.000Z
tools/c7n_azure/c7n_azure/functionapp_utils.py
sstarcher/cloud-custodian
fc5b51019e9c15d0582089133d080bceee489a94
[ "Apache-2.0" ]
null
null
null
tools/c7n_azure/c7n_azure/functionapp_utils.py
sstarcher/cloud-custodian
fc5b51019e9c15d0582089133d080bceee489a94
[ "Apache-2.0" ]
1
2019-06-11T19:43:30.000Z
2019-06-11T19:43:30.000Z
# Copyright 2015-2018 Capital One Services, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
43
99
0.732558
9c6c7f213c73f8849018441aa4033c0f8bab69a4
516
py
Python
plotly/validators/heatmap/_visible.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/heatmap/_visible.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/heatmap/_visible.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__(self, plotly_name='visible', parent_name='heatmap', **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
34.4
79
0.643411
9c9ac51b6ed8b53c155901e70cf54ef302f4081d
275
py
Python
awardsapp/permissions.py
KiyaiB/Accords
32f86c19598f48a18d3c310e7b51a1be71def868
[ "Unlicense" ]
1
2022-01-08T17:27:53.000Z
2022-01-08T17:27:53.000Z
awardsapp/permissions.py
KiyaiB/Accords
32f86c19598f48a18d3c310e7b51a1be71def868
[ "Unlicense" ]
null
null
null
awardsapp/permissions.py
KiyaiB/Accords
32f86c19598f48a18d3c310e7b51a1be71def868
[ "Unlicense" ]
null
null
null
from rest_framework.permissions import SAFE_METHODS, BasePermission class IsAdminOrReadOnly(BasePermission): def has_permission(self, request, view): if request.method in SAFE_METHODS: return True else: return request.user.is_staff
39.285714
67
0.716364
e730fa22b4ab2a8b1b819113df64e1011041d240
2,549
py
Python
tests/chainer_tests/links_tests/activation_tests/test_swish.py
Evanc123/chainer
929af7189b1271683200aa9b0ba6da2dd3dee110
[ "MIT" ]
90
2017-02-23T04:04:47.000Z
2020-04-09T12:06:50.000Z
tests/chainer_tests/links_tests/activation_tests/test_swish.py
Evanc123/chainer
929af7189b1271683200aa9b0ba6da2dd3dee110
[ "MIT" ]
7
2017-07-23T13:38:06.000Z
2018-07-10T07:09:03.000Z
tests/chainer_tests/links_tests/activation_tests/test_swish.py
Evanc123/chainer
929af7189b1271683200aa9b0ba6da2dd3dee110
[ "MIT" ]
32
2017-02-28T07:40:38.000Z
2021-02-17T11:33:09.000Z
import unittest import numpy import chainer from chainer.backends import cuda from chainer import gradient_check from chainer import links from chainer import testing from chainer.testing import attr from chainer.testing import condition def _sigmoid(x): xp = cuda.get_array_module(x) half = x.dtype.type(0.5...
27.117021
78
0.652805
a7403d92956c2100c64daecce9acab944b267177
2,301
py
Python
build/lib/kyuutils/db/sql.py
kyuunin/kyuutils
95109ba6c6286508998521e61e1b1222f51dfe6e
[ "WTFPL" ]
null
null
null
build/lib/kyuutils/db/sql.py
kyuunin/kyuutils
95109ba6c6286508998521e61e1b1222f51dfe6e
[ "WTFPL" ]
null
null
null
build/lib/kyuutils/db/sql.py
kyuunin/kyuutils
95109ba6c6286508998521e61e1b1222f51dfe6e
[ "WTFPL" ]
null
null
null
import mysql.connector from .sql_active import SQL_active from .tbl import TBL class SQL: def __init__(self,**settings): self.settings=settings self.connect() def __enter__(self): self.reconnect() return SQL_active(self,self.mydb.cursor()) def __exit__(self...
32.871429
90
0.591917
04a1d05847952bb8f308309d1acc3b788012b1e2
4,250
py
Python
src/olympia/devhub/templatetags/jinja_helpers.py
renancleyson-dev/addons-server
1db556b40260aa4c0c63e84c4d9e3c2d7609eb10
[ "BSD-3-Clause" ]
null
null
null
src/olympia/devhub/templatetags/jinja_helpers.py
renancleyson-dev/addons-server
1db556b40260aa4c0c63e84c4d9e3c2d7609eb10
[ "BSD-3-Clause" ]
null
null
null
src/olympia/devhub/templatetags/jinja_helpers.py
renancleyson-dev/addons-server
1db556b40260aa4c0c63e84c4d9e3c2d7609eb10
[ "BSD-3-Clause" ]
null
null
null
from collections import defaultdict from urllib.parse import unquote_to_bytes from django.utils.encoding import force_bytes from django.utils.translation import ugettext, ungettext import jinja2 from django_jinja import library from olympia import amo from olympia.access import acl from olympia.activity.models impo...
30.357143
86
0.713882
ef3f09a32a1063fb438b9622e0b4198d4574bf71
929
py
Python
penelope/collation_default.py
BOOKEEN/penelope
94f4a2950c94debd708fbd3518b925cf8fdcacc8
[ "MIT" ]
6
2020-02-14T13:51:29.000Z
2021-02-23T21:35:34.000Z
penelope/collation_default.py
cartoonnerie/penelope
4a429be68dd364216f02fac0b5cc8b267f1cb395
[ "MIT" ]
null
null
null
penelope/collation_default.py
cartoonnerie/penelope
4a429be68dd364216f02fac0b5cc8b267f1cb395
[ "MIT" ]
1
2021-01-31T22:00:46.000Z
2021-01-31T22:00:46.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This is the default collation function (IcuNoCase). """ from __future__ import absolute_import from penelope.utilities import utf_lower __author__ = "Alberto Pettarin" __copyright__ = "Copyright 2012-2016, Alberto Pettarin (www.albertopettarin.it)" __license__ = "MI...
23.820513
80
0.684607
0a22bcfa5cda128e7ae65267a9bdc94920d3c440
630
py
Python
backend/manage.py
crowdbotics-apps/test-29285
d29871f4f61f9a43b6ed224a91285794c91368ef
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/manage.py
crowdbotics-apps/test-29285
d29871f4f61f9a43b6ed224a91285794c91368ef
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/manage.py
crowdbotics-apps/test-29285
d29871f4f61f9a43b6ed224a91285794c91368ef
[ "FTL", "AML", "RSA-MD" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_29285.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Imp...
28.636364
74
0.684127
a9e1ca989ea54b43c813e0d2d30191aa181b544f
4,066
py
Python
main.py
dilanHewawitharana/Document-Scaneer-using-OpenCV
2eabcba197a02a21539e8de10e847fa88c6e9880
[ "MIT" ]
null
null
null
main.py
dilanHewawitharana/Document-Scaneer-using-OpenCV
2eabcba197a02a21539e8de10e847fa88c6e9880
[ "MIT" ]
null
null
null
main.py
dilanHewawitharana/Document-Scaneer-using-OpenCV
2eabcba197a02a21539e8de10e847fa88c6e9880
[ "MIT" ]
null
null
null
import cv2 import numpy as np ########################## imgWidth = 640 imgHeight = 480 ########################## # Camera read cap = cv2.VideoCapture(1) cap.set(3, imgWidth) cap.set(4, imgWidth) cap.set(10, 150) # Set Brightness def stack_images(scale, img_array): rows = len(img_array) cols = len(img_arr...
35.051724
119
0.584604
c06929780da1f6c2ac738b87876187f8e3b5cef8
1,008
py
Python
petastorm/__init__.py
praateekmahajan/petastorm
ce84dba6862266ded04441c49422af98a1e6e2ce
[ "Apache-2.0" ]
1
2019-07-02T23:50:49.000Z
2019-07-02T23:50:49.000Z
petastorm/__init__.py
praateekmahajan/petastorm
ce84dba6862266ded04441c49422af98a1e6e2ce
[ "Apache-2.0" ]
null
null
null
petastorm/__init__.py
praateekmahajan/petastorm
ce84dba6862266ded04441c49422af98a1e6e2ce
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2018 Uber Technologies, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
38.769231
106
0.771825
aea61d265feac87ac078c6ea494c19d65082d62d
135
py
Python
pyhdfs_client/__init__.py
kiwy42/pyhdfs_client
777c62ac6e8e95dc8b014881fd59934a62a7e73d
[ "MIT" ]
3
2021-03-29T21:23:16.000Z
2021-12-14T04:16:00.000Z
pyhdfs_client/__init__.py
kiwy42/pyhdfs_client
777c62ac6e8e95dc8b014881fd59934a62a7e73d
[ "MIT" ]
3
2021-07-27T09:01:56.000Z
2021-11-08T12:52:47.000Z
pyhdfs_client/__init__.py
kiwy42/pyhdfs_client
777c62ac6e8e95dc8b014881fd59934a62a7e73d
[ "MIT" ]
1
2021-07-30T12:18:25.000Z
2021-07-30T12:18:25.000Z
"""Top-level package for pyhdfs-client.""" __author__ = """Paras Gupta""" __email__ = 'paras_gupta@outlook.com' __version__ = '0.1.0'
22.5
42
0.696296
bc9bd1b87187cc98a9fd79f4c3890e11154ae712
3,915
py
Python
emd_linear/emd_module.py
saic-vul/cloud_transformers
88943e8262af3e0a609fc63f09bec805b0a31f87
[ "MIT" ]
25
2021-08-05T12:47:18.000Z
2022-03-05T15:59:30.000Z
emd_linear/emd_module.py
saic-vul/cloud_transformers
88943e8262af3e0a609fc63f09bec805b0a31f87
[ "MIT" ]
2
2021-09-29T14:54:31.000Z
2021-12-07T02:53:59.000Z
emd_linear/emd_module.py
saic-vul/cloud_transformers
88943e8262af3e0a609fc63f09bec805b0a31f87
[ "MIT" ]
1
2021-08-07T07:16:00.000Z
2021-08-07T07:16:00.000Z
# EMD approximation module (based on auction algorithm) # memory complexity: O(n) # time complexity: O(n^2 * iter) # author: Minghua Liu # Input: # xyz1, xyz2: [#batch, #points, 3] # where xyz1 is the predicted point cloud and xyz2 is the ground truth point cloud # two point clouds should have same size and be norma...
40.78125
176
0.664112
8c7ed992fe240375653abdbbd2c713420b8a90ac
28,899
py
Python
src/olympia/addons/views.py
rochisha0/addons-server
55eb6ccee7ec075cf8f5ed25095c123410186532
[ "BSD-3-Clause" ]
null
null
null
src/olympia/addons/views.py
rochisha0/addons-server
55eb6ccee7ec075cf8f5ed25095c123410186532
[ "BSD-3-Clause" ]
null
null
null
src/olympia/addons/views.py
rochisha0/addons-server
55eb6ccee7ec075cf8f5ed25095c123410186532
[ "BSD-3-Clause" ]
null
null
null
from collections import OrderedDict from django import http from django.db.models import Prefetch from django.db.transaction import non_atomic_requests from django.shortcuts import redirect from django.utils.cache import patch_cache_control from django.utils.decorators import method_decorator from django.views.decorat...
41.46198
79
0.652998
3a6f737446123e12f1c3a32af48ce66ed8e796de
551
py
Python
examples/udf/udf_profiling_ndvi.py
clausmichele/openeo-python-client
b20af2b24fcb12d0fce0e2acdb8afeeb881ff454
[ "Apache-2.0" ]
1
2021-04-01T13:15:35.000Z
2021-04-01T13:15:35.000Z
examples/udf/udf_profiling_ndvi.py
clausmichele/openeo-python-client
b20af2b24fcb12d0fce0e2acdb8afeeb881ff454
[ "Apache-2.0" ]
null
null
null
examples/udf/udf_profiling_ndvi.py
clausmichele/openeo-python-client
b20af2b24fcb12d0fce0e2acdb8afeeb881ff454
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Uncomment the import only for coding support from openeo_udf.api.datacube import DataCube from typing import Dict def apply_datacube(cube: DataCube, context: Dict) -> DataCube: # access the underlying xarray inarr=cube.get_array() # ndvi B4=inarr.loc[:,'TOC-B04_10M'] B8...
22.958333
77
0.666062
380a360ee850667fdbdbab079f721a541413d77a
5,725
py
Python
configs/paper/coco/hrnet_w32_coco_256x192_mspn_att.py
AndersonZhangyq/mmpose
e00e02d11f34446e9085c7a14cba9283f87c421e
[ "Apache-2.0" ]
null
null
null
configs/paper/coco/hrnet_w32_coco_256x192_mspn_att.py
AndersonZhangyq/mmpose
e00e02d11f34446e9085c7a14cba9283f87c421e
[ "Apache-2.0" ]
null
null
null
configs/paper/coco/hrnet_w32_coco_256x192_mspn_att.py
AndersonZhangyq/mmpose
e00e02d11f34446e9085c7a14cba9283f87c421e
[ "Apache-2.0" ]
null
null
null
log_level = 'INFO' load_from = None resume_from = None dist_params = dict(backend='nccl') workflow = [('train', 1)] checkpoint_config = dict(interval=10) evaluation = dict(interval=10, metric='mAP', key_indicator='AP') optimizer = dict( type='Adam', lr=5e-4, ) optimizer_config = dict(grad_clip=None) # learning...
29.817708
100
0.587249
ff04f0d07f940a55362c6fe6b99b9737b3248fc2
335
py
Python
build.py
odant/conan-vswhere_installer
0f6431080bc7d258aefba339f2b1744390ddc340
[ "MIT" ]
null
null
null
build.py
odant/conan-vswhere_installer
0f6431080bc7d258aefba339f2b1744390ddc340
[ "MIT" ]
null
null
null
build.py
odant/conan-vswhere_installer
0f6431080bc7d258aefba339f2b1744390ddc340
[ "MIT" ]
null
null
null
import os from conan.packager import ConanMultiPackager # Common settings username = "odant" if "CONAN_USERNAME" not in os.environ else None if __name__ == "__main__": builder = ConanMultiPackager( username=username, exclude_vcvars_precommand=True ) builder.add() bu...
19.705882
67
0.662687
bc5ba9984554d0c27a70e509baca8d6403737a07
6,045
py
Python
open_spiel/python/algorithms/value_iteration.py
mcx/open_spiel
062cbfc07621343e7d77209cb421ba690328142b
[ "Apache-2.0" ]
null
null
null
open_spiel/python/algorithms/value_iteration.py
mcx/open_spiel
062cbfc07621343e7d77209cb421ba690328142b
[ "Apache-2.0" ]
null
null
null
open_spiel/python/algorithms/value_iteration.py
mcx/open_spiel
062cbfc07621343e7d77209cb421ba690328142b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 DeepMind Technologies Limited # # 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 agr...
37.78125
80
0.682713
03fba7f387a058c7897cf0ef8eb1b7712e13af25
4,623
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_02_01/aio/_container_service_client.py
kazrael2119/azure-sdk-for-python
485dd7b1b5ac41c1a5b9991e402b4035b55f437a
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_02_01/aio/_container_service_client.py
kazrael2119/azure-sdk-for-python
485dd7b1b5ac41c1a5b9991e402b4035b55f437a
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_02_01/aio/_container_service_client.py
kazrael2119/azure-sdk-for-python
485dd7b1b5ac41c1a5b9991e402b4035b55f437a
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.23
124
0.712092
b8b1f3de09028bd497683b07cb0cea5924ef1f24
271
py
Python
Labs/Lab-4.3 Display/myconfig.py
thingslu/MicroPython-IoT-Bootcamp
0fb0ef9426402ceaa0022b50db6d65d7cd4391fe
[ "MIT" ]
null
null
null
Labs/Lab-4.3 Display/myconfig.py
thingslu/MicroPython-IoT-Bootcamp
0fb0ef9426402ceaa0022b50db6d65d7cd4391fe
[ "MIT" ]
null
null
null
Labs/Lab-4.3 Display/myconfig.py
thingslu/MicroPython-IoT-Bootcamp
0fb0ef9426402ceaa0022b50db6d65d7cd4391fe
[ "MIT" ]
null
null
null
#WLan or AccessPoint Details wifi_ssid=b'Atticware' wifi_psk=b'!!DAF66!!' # found in second field, text before the coma, in https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/blob/master/MicroPython_BUILD/components/micropython/docs/zones.csv timezone=b'CET-1CEST'
45.166667
173
0.811808
7ea2277dd0e74403665b0283cea02bb6c39ab130
41,352
py
Python
image_generation/render_images_test_repetitive.py
yordanh/clevr-dataset-gen
cc82e08890fb76b89c8894e1166a515bd25aad5a
[ "BSD-3-Clause" ]
null
null
null
image_generation/render_images_test_repetitive.py
yordanh/clevr-dataset-gen
cc82e08890fb76b89c8894e1166a515bd25aad5a
[ "BSD-3-Clause" ]
null
null
null
image_generation/render_images_test_repetitive.py
yordanh/clevr-dataset-gen
cc82e08890fb76b89c8894e1166a515bd25aad5a
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. from __future__ import print...
37.833486
193
0.624613
7d15e732c4d2821ffda29648020151e409c60696
663
py
Python
backend/manage.py
ELanning/TechnicalCompetencyEval
7531c0613f98bb7c43a6c32e706e4da713acc6d4
[ "MIT" ]
1
2020-12-06T05:58:53.000Z
2020-12-06T05:58:53.000Z
backend/manage.py
ELanning/TechnicalCompetencyEval
7531c0613f98bb7c43a6c32e706e4da713acc6d4
[ "MIT" ]
null
null
null
backend/manage.py
ELanning/TechnicalCompetencyEval
7531c0613f98bb7c43a6c32e706e4da713acc6d4
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault("DJANGO_SETTINGS_MODULE", "web_api.settings") try: from django.core.management import execute_from_command_line except Impo...
28.826087
73
0.678733
641861cab2d226099c05ce2e306bff9419342d8e
595
py
Python
nanome/_internal/_network/_commands/_serialization/_file/_put.py
nanome-ai/nanome-plugin-api
f2ce6a5e3123ee7449a90c2659f3891124289f4a
[ "MIT" ]
3
2020-07-02T13:08:27.000Z
2021-11-24T14:32:53.000Z
nanome/_internal/_network/_commands/_serialization/_file/_put.py
nanome-ai/nanome-plugin-api
f2ce6a5e3123ee7449a90c2659f3891124289f4a
[ "MIT" ]
11
2020-09-14T17:01:47.000Z
2022-02-18T04:00:52.000Z
nanome/_internal/_network/_commands/_serialization/_file/_put.py
nanome-ai/nanome-plugin-api
f2ce6a5e3123ee7449a90c2659f3891124289f4a
[ "MIT" ]
5
2020-08-12T16:30:03.000Z
2021-12-06T18:04:23.000Z
from nanome._internal._util._serializers import _StringSerializer, _TypeSerializer from nanome.util import FileError class _Put(_TypeSerializer): def __init__(self): self.__string = _StringSerializer() def version(self): return 0 def name(self): return "put" def serialize(se...
27.045455
82
0.697479
1c060ae20ba813a1df222624b9eda2462956451d
25,248
py
Python
zaza/utilities/generic.py
arif-ali/zaza
cd0137b26641f2eb2ef5440d3a8dde3eb86e101f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
zaza/utilities/generic.py
arif-ali/zaza
cd0137b26641f2eb2ef5440d3a8dde3eb86e101f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
zaza/utilities/generic.py
arif-ali/zaza
cd0137b26641f2eb2ef5440d3a8dde3eb86e101f
[ "ECL-2.0", "Apache-2.0" ]
2
2017-12-05T17:22:38.000Z
2019-04-19T17:00:06.000Z
# Copyright 2018 Canonical Ltd. # # 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 writin...
38.546565
79
0.644328
df4829785bb54a3e9451365ca2c303ad497ef05b
34,979
py
Python
improver_tests/orographic_enhancement/test_OrographicEnhancement.py
thbom001/improver
6f6e334a1e8e44a151125cf123ecdda2c56dbec4
[ "BSD-3-Clause" ]
null
null
null
improver_tests/orographic_enhancement/test_OrographicEnhancement.py
thbom001/improver
6f6e334a1e8e44a151125cf123ecdda2c56dbec4
[ "BSD-3-Clause" ]
null
null
null
improver_tests/orographic_enhancement/test_OrographicEnhancement.py
thbom001/improver
6f6e334a1e8e44a151125cf123ecdda2c56dbec4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown copyright. The Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are me...
36.210145
87
0.568112
b2fcb0e4229ef9fdae77ad3f23c4327d0af75d7f
14,503
py
Python
src/TheLanguage/Grammars/v0_0_1/Common/Impl/MatchExpressionBase.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
null
null
null
src/TheLanguage/Grammars/v0_0_1/Common/Impl/MatchExpressionBase.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
null
null
null
src/TheLanguage/Grammars/v0_0_1/Common/Impl/MatchExpressionBase.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
1
2021-06-18T18:58:57.000Z
2021-06-18T18:58:57.000Z
# ---------------------------------------------------------------------- # | # | MatchExpressionBase.py # | # | David Brownell <db@DavidBrownell.com> # | 2021-10-12 09:09:10 # | # ---------------------------------------------------------------------- # | # | Copyright David Brownell 2021 # | Distribu...
35.721675
125
0.414328
38b8f3270c20570bcd361e3558a6836653c8ec3b
654
py
Python
backend/api/migrations/0001_initial.py
sperrys/YEF_DEBUG
8e09342ef9639c4f6abe1390f37dddb8e398784c
[ "MIT" ]
2
2018-12-10T03:14:31.000Z
2019-03-27T16:20:36.000Z
backend/api/migrations/0001_initial.py
sperrys/YEF_DEBUG
8e09342ef9639c4f6abe1390f37dddb8e398784c
[ "MIT" ]
22
2018-12-06T23:54:20.000Z
2019-04-17T18:15:43.000Z
backend/api/migrations/0001_initial.py
sperrys/YEF_DEBUG
8e09342ef9639c4f6abe1390f37dddb8e398784c
[ "MIT" ]
1
2020-11-03T05:27:10.000Z
2020-11-03T05:27:10.000Z
# Generated by Django 2.1.1 on 2018-10-09 01:22 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Tournament', fields=[ ('id', models.AutoFie...
26.16
114
0.558104
88bc14c8ee61680d9e90de9e65dd923df311d328
16,853
py
Python
tests/core/tests/query.py
mcroydon/django-haystack
bdb0151cb85dc3a1b2bafcf9f5f410c9653a4ac5
[ "BSD-3-Clause" ]
1
2016-05-09T12:26:20.000Z
2016-05-09T12:26:20.000Z
tests/core/tests/query.py
mcroydon/django-haystack
bdb0151cb85dc3a1b2bafcf9f5f410c9653a4ac5
[ "BSD-3-Clause" ]
null
null
null
tests/core/tests/query.py
mcroydon/django-haystack
bdb0151cb85dc3a1b2bafcf9f5f410c9653a4ac5
[ "BSD-3-Clause" ]
null
null
null
import datetime from django.test import TestCase from haystack.backends import QueryFilter, BaseSearchQuery from haystack.backends.dummy_backend import SearchBackend as DummySearchBackend from haystack.backends.dummy_backend import SearchQuery as DummySearchQuery from haystack.models import SearchResult from haystack.q...
43.102302
354
0.653771
93fba6e2f7db7d2b47efc7b94669684aaf1ff888
69
py
Python
pandas_option_settings.py
loveactualry/works_top
c789c3f6c4d77eb0cf8255a62e57a6cd5dedc312
[ "Apache-2.0" ]
null
null
null
pandas_option_settings.py
loveactualry/works_top
c789c3f6c4d77eb0cf8255a62e57a6cd5dedc312
[ "Apache-2.0" ]
null
null
null
pandas_option_settings.py
loveactualry/works_top
c789c3f6c4d77eb0cf8255a62e57a6cd5dedc312
[ "Apache-2.0" ]
null
null
null
https://pandas.pydata.org/pandas-docs/stable/user_guide/options.html
34.5
68
0.826087
a07002ea510d702f739a9a669ce5140d7391a8bf
2,241
py
Python
jina/drivers/querylang/__init__.py
Richa-123-singh/jina
731e6b45756be9a9af2fd118855e010e63c2b541
[ "Apache-2.0" ]
2
2020-10-19T17:06:19.000Z
2020-10-22T14:10:55.000Z
jina/drivers/querylang/__init__.py
Richa-123-singh/jina
731e6b45756be9a9af2fd118855e010e63c2b541
[ "Apache-2.0" ]
null
null
null
jina/drivers/querylang/__init__.py
Richa-123-singh/jina
731e6b45756be9a9af2fd118855e010e63c2b541
[ "Apache-2.0" ]
null
null
null
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" from typing import Iterator, Optional from .. import BaseDriver from ...proto import jina_pb2 class BaseQueryLangDriver(BaseDriver): """ :class:`BaseQueryLangDriver` adds native data querying capabilities t...
32.014286
96
0.645248
00210dfdc749b62a48671c82d5f6942520d2e7ee
18,218
py
Python
update_data.py
Fabiola-C14/Final_Project-NBA-Analysis
bd14b642483442aabd0e80895d2adcfbeaf7465d
[ "Apache-2.0" ]
null
null
null
update_data.py
Fabiola-C14/Final_Project-NBA-Analysis
bd14b642483442aabd0e80895d2adcfbeaf7465d
[ "Apache-2.0" ]
null
null
null
update_data.py
Fabiola-C14/Final_Project-NBA-Analysis
bd14b642483442aabd0e80895d2adcfbeaf7465d
[ "Apache-2.0" ]
2
2020-09-26T23:00:02.000Z
2020-10-03T16:42:20.000Z
# Dependencies # Python SQL toolkit and Object Relational Mapper import sqlalchemy # Go to existing database with automap_base from sqlalchemy.ext.automap import automap_base # Work through mapper to use python code from sqlalchemy.orm import Session, relationship # Inspect with python from sqlalchemy import create_eng...
34.96737
148
0.530794
c35e76867f0ea34e37a3561b694b8a01a7e9d0a6
4,314
py
Python
src/models/gen_anchors_yolo.py
mstefferson/AutomatedTreeCensus
654269dc6f31a6f877850af6c9937fb14bfb4d13
[ "MIT" ]
null
null
null
src/models/gen_anchors_yolo.py
mstefferson/AutomatedTreeCensus
654269dc6f31a6f877850af6c9937fb14bfb4d13
[ "MIT" ]
null
null
null
src/models/gen_anchors_yolo.py
mstefferson/AutomatedTreeCensus
654269dc6f31a6f877850af6c9937fb14bfb4d13
[ "MIT" ]
null
null
null
import random import argparse import numpy as np import os from preprocessing_yolo import parse_annotation import json def IOU(ann, centroids): w, h = ann similarities = [] for centroid in centroids: c_w, c_h = centroid if c_w >= w and c_h >= h: similarity = w*h/(c_w*c_h) ...
30.814286
102
0.610338
f4f141a222a6c91852d6304e92851b0db95213bb
3,493
py
Python
unveiling_isi_files/main.py
coreofscience/Analyzing-data
74417c9f7a988a17401e84b843c406703714098a
[ "MIT" ]
null
null
null
unveiling_isi_files/main.py
coreofscience/Analyzing-data
74417c9f7a988a17401e84b843c406703714098a
[ "MIT" ]
null
null
null
unveiling_isi_files/main.py
coreofscience/Analyzing-data
74417c9f7a988a17401e84b843c406703714098a
[ "MIT" ]
null
null
null
from wostools import CollectionLazy import igraph import pandas as pd import statistics as st import click @click.command() @click.argument("FILE") @click.option("--output", "-o", default="output.csv", help="Caracteristicas de la red") def main(file, output): """ Extrae las caracteristicas básicas de la red """ ...
32.64486
88
0.629831
99e0fb333687363e212d040be91314fa5f123e65
3,096
py
Python
flexget/components/sites/sites/yts.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
null
null
null
flexget/components/sites/sites/yts.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
null
null
null
flexget/components/sites/sites/yts.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # noqa pylint: disable=unused-import, redefined-builtin from future.moves.urllib.parse import quote import logging from flexget import plugin from flexget.entry import Entry from flexget.event import event from flexget.utils im...
40.207792
94
0.52907
20cce0046d627c1a7c9eaa6a67bf175a8c9fb174
30,506
py
Python
rasa/core/processor.py
Tao2301230/rasa_learn
50093cbc696ee72fec81ab69d74a80399c6277ca
[ "Apache-2.0" ]
1
2020-09-23T11:04:38.000Z
2020-09-23T11:04:38.000Z
rasa/core/processor.py
Tao2301230/rasa_learn
50093cbc696ee72fec81ab69d74a80399c6277ca
[ "Apache-2.0" ]
null
null
null
rasa/core/processor.py
Tao2301230/rasa_learn
50093cbc696ee72fec81ab69d74a80399c6277ca
[ "Apache-2.0" ]
null
null
null
import logging import os import time from types import LambdaType from typing import Any, Dict, List, Optional, Text, Tuple, Union import numpy as np import rasa.shared.utils.io from rasa.constants import DOCS_URL_POLICIES, DOCS_URL_DOMAINS from rasa.core import jobs from rasa.core.actions.action import ( ACTION_...
37.293399
88
0.619714
9b47763b50ff0c5a7f109c1afa6b3c7231fd3d3d
8,753
py
Python
channel_flow/post_processing/pp_channel.py
Exawind/iddes
200ddd4a20587c38f4103a32c0001ad5c8d33f22
[ "BSD-3-Clause" ]
1
2020-10-08T12:31:54.000Z
2020-10-08T12:31:54.000Z
channel_flow/post_processing/pp_channel.py
Exawind/iddes
200ddd4a20587c38f4103a32c0001ad5c8d33f22
[ "BSD-3-Clause" ]
1
2021-01-05T18:08:51.000Z
2021-01-05T18:08:51.000Z
channel_flow/post_processing/pp_channel.py
Exawind/iddes
200ddd4a20587c38f4103a32c0001ad5c8d33f22
[ "BSD-3-Clause" ]
2
2020-10-07T21:23:52.000Z
2020-10-29T17:05:26.000Z
# ======================================================================== # # Imports # # ======================================================================== import argparse import os import numpy as np import scipy.spatial.qhull as qhull import pandas as pd from mpi4py import MPI import stk from scipy.interpolat...
33.926357
132
0.506226
5299f5ba67f43c8463fb12e7b2aa66f4c7d83405
116
py
Python
test_project/urls.py
varche1/django-webmaster-verification
7c6201a17a091c110f179f0064e136cf693843a5
[ "BSD-3-Clause" ]
null
null
null
test_project/urls.py
varche1/django-webmaster-verification
7c6201a17a091c110f179f0064e136cf693843a5
[ "BSD-3-Clause" ]
null
null
null
test_project/urls.py
varche1/django-webmaster-verification
7c6201a17a091c110f179f0064e136cf693843a5
[ "BSD-3-Clause" ]
3
2015-09-10T07:53:04.000Z
2022-02-01T07:33:26.000Z
from django.conf.urls import include, url urlpatterns = [ url(r'', include('webmaster_verification.urls')), ]
16.571429
53
0.706897
4c0a62114f69db10f2635259f2674d98c2adaf29
3,450
py
Python
Tutorials/binary.py
fordham-css/TryPy
3a172c707158059e0c2fe756dcb687c84b425cb0
[ "MIT" ]
null
null
null
Tutorials/binary.py
fordham-css/TryPy
3a172c707158059e0c2fe756dcb687c84b425cb0
[ "MIT" ]
8
2017-03-27T07:13:53.000Z
2018-01-18T01:37:16.000Z
Tutorials/binary.py
fordham-css/TryPy
3a172c707158059e0c2fe756dcb687c84b425cb0
[ "MIT" ]
2
2017-04-17T17:07:58.000Z
2017-12-30T21:59:31.000Z
''' binary.py ---------- Computes the decimal value of a binary string - Lists - Loops ---------- Python Demo Workshop, March 22nd 2017 ''' ### Declare variables to be used # List Data Structure binary = [] # binary = list() VALUES = [0, 1] # VALUES[0] = 0; VALUES[1] = 1 # Integer Data Type decimal = 0 # Bool Data...
33.173077
115
0.648406
92c8d044c1f6403181d8c14f52d5752ceec36bb4
6,772
py
Python
JiraToNotion/sprint_notes_builder/zapier_notes_builder.py
jimdrake55x/NotionTools
eb5e712707959aa54d110f63f71343ca801868e7
[ "MIT" ]
1
2021-02-07T22:00:31.000Z
2021-02-07T22:00:31.000Z
JiraToNotion/sprint_notes_builder/zapier_notes_builder.py
jimdrake55x/NotionTools
eb5e712707959aa54d110f63f71343ca801868e7
[ "MIT" ]
5
2020-09-24T21:20:12.000Z
2021-05-27T20:56:33.000Z
JiraToNotion/sprint_notes_builder/zapier_notes_builder.py
jimdrake55x/NotionTools
eb5e712707959aa54d110f63f71343ca801868e7
[ "MIT" ]
null
null
null
import json import requests from requests.auth import HTTPBasicAuth import datetime # DELETE COMMENT # This script works in Zapier to produce Tickets for use in other actions. # Step 1: Fill in constants below with your information # Step 2: Copy and paste this whole file into a `Code By Zapier` python action step. #...
26.98008
127
0.638659
34992568557411161fc6ff88b06cd53a39018ed5
43,396
py
Python
mmwave/dsp/angle_estimation.py
Zber5/OpenRadar
701cf166203c3f3e1ba4873cd132a7ccba4f0863
[ "Apache-2.0" ]
1
2021-07-09T18:40:24.000Z
2021-07-09T18:40:24.000Z
mmwave/dsp/angle_estimation.py
Zber5/OpenRadar
701cf166203c3f3e1ba4873cd132a7ccba4f0863
[ "Apache-2.0" ]
null
null
null
mmwave/dsp/angle_estimation.py
Zber5/OpenRadar
701cf166203c3f3e1ba4873cd132a7ccba4f0863
[ "Apache-2.0" ]
1
2021-11-13T05:33:50.000Z
2021-11-13T05:33:50.000Z
# Copyright 2019 The OpenRadar Authors. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law...
43.09434
186
0.652894
ebd22c3767f7d464c0c165909112bda8cbe646a9
16,583
py
Python
train.py
yeongjoonJu/transfer-learning-conv-ai
7c60533fd863c760f66b136af74311c29fba2984
[ "MIT" ]
2
2021-11-10T05:58:56.000Z
2021-11-10T12:57:20.000Z
train.py
yeongjoonJu/transfer-learning-conv-ai
7c60533fd863c760f66b136af74311c29fba2984
[ "MIT" ]
null
null
null
train.py
yeongjoonJu/transfer-learning-conv-ai
7c60533fd863c760f66b136af74311c29fba2984
[ "MIT" ]
null
null
null
# Copyright (c) 2019-present, HuggingFace Inc. # All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. import os import math import logging from pprint import pformat from argparse import ArgumentParser from collections import ...
60.966912
206
0.713321
e1569bff2ec007c7c6677f0d3b2df7dd745c189c
4,491
py
Python
pgcli/packages/parseutils/utils.py
verfriemelt-dot-org/pgcli
9678f2ab986a302fa20636b6170f34576bfebc81
[ "BSD-3-Clause" ]
1
2019-07-09T19:38:40.000Z
2019-07-09T19:38:40.000Z
pgcli/packages/parseutils/utils.py
verfriemelt-dot-org/pgcli
9678f2ab986a302fa20636b6170f34576bfebc81
[ "BSD-3-Clause" ]
null
null
null
pgcli/packages/parseutils/utils.py
verfriemelt-dot-org/pgcli
9678f2ab986a302fa20636b6170f34576bfebc81
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import re import sqlparse from sqlparse.sql import Identifier from sqlparse.tokens import Token, Error cleanup_regex = { # This matches only alphanumerics and underscores. 'alphanum_underscore': re.compile(r'(\w+)$'), # This matches everything except spaces, parens, co...
31.851064
79
0.61434
d035eef2f799ad78bf4e9bb4d628b2774342e9b6
7,832
py
Python
youtube_name.py
H3Cki/clickbait-detector
2a058c8bd511d038027a0066dfa29bccd644597c
[ "MIT" ]
null
null
null
youtube_name.py
H3Cki/clickbait-detector
2a058c8bd511d038027a0066dfa29bccd644597c
[ "MIT" ]
null
null
null
youtube_name.py
H3Cki/clickbait-detector
2a058c8bd511d038027a0066dfa29bccd644597c
[ "MIT" ]
null
null
null
from apiclient.discovery import build import logging from datetime import datetime import text_preprocessing as tp import re logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) logging.getLogger('googleapicliet.discovery_cache').setLevel(logging.ERROR) USE_CASES = { 'user'...
34.052174
133
0.547753
f3254dc1991dc0f962339d99a529379ff5e96628
1,255
py
Python
Python3_Data_Structure/12_Python_Queue/01_Queue.py
jmmedel/Python3-Data-Structure-References
3a607da2b67b5b80810d7084339e0602288c4f6b
[ "MIT" ]
null
null
null
Python3_Data_Structure/12_Python_Queue/01_Queue.py
jmmedel/Python3-Data-Structure-References
3a607da2b67b5b80810d7084339e0602288c4f6b
[ "MIT" ]
null
null
null
Python3_Data_Structure/12_Python_Queue/01_Queue.py
jmmedel/Python3-Data-Structure-References
3a607da2b67b5b80810d7084339e0602288c4f6b
[ "MIT" ]
null
null
null
""" Python - Queue We are familiar with queue in our day to day life as we wait for a service. The queue data structure aslo means the same where the data elements are arranged in a queue. The uniqueness of queue lies in the way items are added and removed. The items are allowed at on end but removed form the ...
22.017544
106
0.714741
8a64e7d706accd6d7162cf714fe4cb2cddd8ab1f
4,919
py
Python
core/models.py
Phong-Hua/chirper-django-rest-api
bfbe8936f67254fd7f80d5411d9aa7a0c39da4ec
[ "MIT" ]
null
null
null
core/models.py
Phong-Hua/chirper-django-rest-api
bfbe8936f67254fd7f80d5411d9aa7a0c39da4ec
[ "MIT" ]
null
null
null
core/models.py
Phong-Hua/chirper-django-rest-api
bfbe8936f67254fd7f80d5411d9aa7a0c39da4ec
[ "MIT" ]
null
null
null
from django.db import models from django.conf import settings from django.core.validators import validate_email from django.contrib.auth.models import AbstractBaseUser,\ PermissionsMixin, BaseUserManager # To create custom user model class UserProfileManager(BaseUserManager): """ Manager for user profi...
29.812121
78
0.62777
c7e56bcbd1963fb832ccb312b6a9d481dcc05891
2,773
py
Python
lib/events/tests/tests.py
imtiaz-emu/gcp-flask-test
096f466242aa14941712ab8ea06ac4fb4eaeb993
[ "Apache-2.0" ]
1
2015-10-26T10:38:32.000Z
2015-10-26T10:38:32.000Z
lib/events/tests/tests.py
imtiaz-emu/gcp-flask-test
096f466242aa14941712ab8ea06ac4fb4eaeb993
[ "Apache-2.0" ]
7
2016-11-12T11:20:25.000Z
2022-03-11T23:11:53.000Z
lib/events/tests/tests.py
imtiaz-emu/gcp-flask-test
096f466242aa14941712ab8ea06ac4fb4eaeb993
[ "Apache-2.0" ]
3
2016-11-12T09:21:38.000Z
2016-11-14T14:00:31.000Z
# -*- coding: utf-8 -*- import unittest import events from events import Events, EventsException class TestBase(unittest.TestCase): def setUp(self): self.events = Events() def callback1(self): pass def callback2(self): pass def callback3(self): pass class TestEven...
27.455446
72
0.602596
148e73a3a16c27523354cc5d5ff677d9bebe2d91
22,219
py
Python
sdk/cosmos/azure-cosmos/azure/cosmos/_base.py
gautam714/azure-sdk-for-python
1741c199c42e8c85a2e14bc78195fd992837ef92
[ "MIT" ]
null
null
null
sdk/cosmos/azure-cosmos/azure/cosmos/_base.py
gautam714/azure-sdk-for-python
1741c199c42e8c85a2e14bc78195fd992837ef92
[ "MIT" ]
null
null
null
sdk/cosmos/azure-cosmos/azure/cosmos/_base.py
gautam714/azure-sdk-for-python
1741c199c42e8c85a2e14bc78195fd992837ef92
[ "MIT" ]
null
null
null
# The MIT License (MIT) # Copyright (c) 2014 Microsoft Corporation # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, cop...
35.045741
118
0.673073
cbc319e8d2ab24e118e2fe8117b28afad1d55aa8
8,631
py
Python
src/lib/accerciser/node.py
xyklex/accerciser
16c90cdd20dabffc36b130ba0ec7a474872b976b
[ "BSD-3-Clause" ]
10
2016-11-25T20:09:03.000Z
2020-03-24T22:46:16.000Z
src/lib/accerciser/node.py
xyklex/accerciser
16c90cdd20dabffc36b130ba0ec7a474872b976b
[ "BSD-3-Clause" ]
1
2021-03-16T11:17:11.000Z
2021-03-16T11:17:11.000Z
src/lib/accerciser/node.py
xyklex/accerciser
16c90cdd20dabffc36b130ba0ec7a474872b976b
[ "BSD-3-Clause" ]
4
2015-10-09T14:42:22.000Z
2021-03-16T11:16:05.000Z
''' Defines convenience classes representing tree nodes and bag objects. @author: Peter Parente @author: Eitan Isaacson @organization: IBM Corporation @copyright: Copyright (c) 2006, 2007 IBM Corporation @license: BSD All rights reserved. This program and the accompanying materials are made available under the terms...
30.825
215
0.652879
2b9cdc362bcedd11dcc8c2499ccff8d5c35ef259
1,932
py
Python
src/datasets.py
carvalhoamc/dtoencoder
922873367a3e1a8f161974e236652d0ff79faee1
[ "MIT" ]
null
null
null
src/datasets.py
carvalhoamc/dtoencoder
922873367a3e1a8f161974e236652d0ff79faee1
[ "MIT" ]
null
null
null
src/datasets.py
carvalhoamc/dtoencoder
922873367a3e1a8f161974e236652d0ff79faee1
[ "MIT" ]
null
null
null
datasets = [ 'abalone-3_vs_11', # 'kddcup-land_vs_portsweep', # 'dataset_31_credit-g', # 'dresses-sales', # 'dermatology', # 'thyroid-hypothyroid', # 'credit-approval', # 'horse-colic-surgical', # 'heart', # 'hepatitis', # ] dict_categorical_cols = {'abalone-3_vs_11': [0], ...
48.3
81
0.298137
9dd0ac4888f989754ec44dacdf781ec6a5f21ff0
8,200
py
Python
transformer/trans_en2zn.py
iverxin/ml_impl
b47d05f0bb233ff0b807a0d363d48e43fa29b34a
[ "MIT" ]
1
2021-09-17T07:13:01.000Z
2021-09-17T07:13:01.000Z
transformer/trans_en2zn.py
iverxin/ml_impl
b47d05f0bb233ff0b807a0d363d48e43fa29b34a
[ "MIT" ]
null
null
null
transformer/trans_en2zn.py
iverxin/ml_impl
b47d05f0bb233ff0b807a0d363d48e43fa29b34a
[ "MIT" ]
1
2021-09-17T07:13:06.000Z
2021-09-17T07:13:06.000Z
# -*- coding:utf-8 -*- # !/usr/bin/python3 """ Author: Spade @Time : 2021/4/25 @Email: spadeaiverxin@163.com """ from typing import Optional import numpy as np import torch import torch.nn.modules as nn import torchtext from torch import Tensor import os from public_tools.logger import Logger class MyTransformer(...
34.453782
141
0.601585
89cb2805136c21c41b3ec317ec4e53ffa78dab6c
7,461
py
Python
testcases/OpalSysfsTests.py
naveen538/op-test
14fc962f9ea4fdbf73450bdaba610298c3743220
[ "Apache-2.0" ]
null
null
null
testcases/OpalSysfsTests.py
naveen538/op-test
14fc962f9ea4fdbf73450bdaba610298c3743220
[ "Apache-2.0" ]
null
null
null
testcases/OpalSysfsTests.py
naveen538/op-test
14fc962f9ea4fdbf73450bdaba610298c3743220
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # OpenPOWER Automated Test Project # # Contributors Listed Below - COPYRIGHT 2018 # [+] International Business Machines Corp. # # # 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 Lic...
37.492462
83
0.596033
549f9e306530de549d53a4b9fe1dce05b5787105
7,195
py
Python
kgcnn/layers/conv/megnet_conv.py
thegodone/gcnn_keras
2009b9ab9a07c1a369849478812fcc2cb9799945
[ "MIT" ]
null
null
null
kgcnn/layers/conv/megnet_conv.py
thegodone/gcnn_keras
2009b9ab9a07c1a369849478812fcc2cb9799945
[ "MIT" ]
null
null
null
kgcnn/layers/conv/megnet_conv.py
thegodone/gcnn_keras
2009b9ab9a07c1a369849478812fcc2cb9799945
[ "MIT" ]
null
null
null
import tensorflow as tf import tensorflow.keras as ks from kgcnn.layers.base import GraphBaseLayer from kgcnn.layers.keras import Dense, Concatenate from kgcnn.layers.gather import GatherNodes, GatherState from kgcnn.layers.pool.pooling import PoolingLocalEdges, PoolingGlobalEdges, PoolingNodes @tf.keras.utils.regis...
54.097744
119
0.667686
ea8250a91b782805acb16afb0fdd97c15e5a3ea9
4,327
py
Python
contrib/seeds/generate-seeds.py
MichaelHDesigns/SCN
91e2a3e865c47f27b1251836409f96def6bdf49b
[ "MIT" ]
null
null
null
contrib/seeds/generate-seeds.py
MichaelHDesigns/SCN
91e2a3e865c47f27b1251836409f96def6bdf49b
[ "MIT" ]
null
null
null
contrib/seeds/generate-seeds.py
MichaelHDesigns/SCN
91e2a3e865c47f27b1251836409f96def6bdf49b
[ "MIT" ]
5
2018-05-20T20:52:13.000Z
2021-04-29T17:16:34.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2017 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Script to generate list of seed nodes for chainparams.cpp. This script expects two text files in the dir...
31.355072
98
0.581465
edcf66bbe9e2775091b6fab8294180cc6bebc6b3
32,525
py
Python
hudapobuda/home/migrations/0016_auto_20210924_0953.py
danesjenovdan/hudapobuda
7c63d95ed21df2d08909a02a25ef61b8ffc5cd01
[ "Unlicense" ]
null
null
null
hudapobuda/home/migrations/0016_auto_20210924_0953.py
danesjenovdan/hudapobuda
7c63d95ed21df2d08909a02a25ef61b8ffc5cd01
[ "Unlicense" ]
null
null
null
hudapobuda/home/migrations/0016_auto_20210924_0953.py
danesjenovdan/hudapobuda
7c63d95ed21df2d08909a02a25ef61b8ffc5cd01
[ "Unlicense" ]
null
null
null
# Generated by Django 3.1.10 on 2021-09-24 07:53 from django.db import migrations, models import django.db.models.deletion import wagtail.contrib.table_block.blocks import wagtail.core.blocks import wagtail.core.blocks.static_block import wagtail.core.fields import wagtail.images.blocks class Migration(migrations.Mi...
485.447761
7,524
0.732483
f77b47645cc8f0202e6d6d4a0c7b7f02e1edef52
5,493
py
Python
server/auvsi_suas/models/access_log.py
dcat52/interop
b016b2c25e468e21649bdb7475d828198b5e6958
[ "Apache-2.0" ]
null
null
null
server/auvsi_suas/models/access_log.py
dcat52/interop
b016b2c25e468e21649bdb7475d828198b5e6958
[ "Apache-2.0" ]
null
null
null
server/auvsi_suas/models/access_log.py
dcat52/interop
b016b2c25e468e21649bdb7475d828198b5e6958
[ "Apache-2.0" ]
null
null
null
"""Model for an access log.""" import datetime import numpy as np from time_period import TimePeriod from django.conf import settings from django.db import models from django.utils import timezone class AccessLog(models.Model): """Base class which logs access of information. Attributes: user: The us...
38.957447
80
0.616421
d2ec57eb73c15ac7fbbff37f2356ffa9ff9befdb
2,253
bzl
Python
deps.bzl
briancairl/snek
ebdd90ba2790bfcbf843c0eb52a13c7f212f8e8f
[ "MIT" ]
null
null
null
deps.bzl
briancairl/snek
ebdd90ba2790bfcbf843c0eb52a13c7f212f8e8f
[ "MIT" ]
null
null
null
deps.bzl
briancairl/snek
ebdd90ba2790bfcbf843c0eb52a13c7f212f8e8f
[ "MIT" ]
null
null
null
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def build_deps(): """ Core build dependencies """ # LibDL native.new_local_repository( name="libdl", build_file="@//external:libdl.BUILD", ...
26.821429
87
0.660009
24b501880e64afbef7df0a35bff33a46995f635b
2,135
py
Python
model/rl/mcts_ppo_compare.py
ling-k/STOVE
fcf36139f41dee5ef892e90dedf1d2208da6fd3c
[ "MIT" ]
31
2019-10-14T01:48:44.000Z
2022-01-20T19:19:14.000Z
model/rl/mcts_ppo_compare.py
ling-k/STOVE
fcf36139f41dee5ef892e90dedf1d2208da6fd3c
[ "MIT" ]
3
2020-05-08T11:01:25.000Z
2021-05-24T07:50:10.000Z
model/rl/mcts_ppo_compare.py
ling-k/STOVE
fcf36139f41dee5ef892e90dedf1d2208da6fd3c
[ "MIT" ]
9
2020-01-13T11:25:16.000Z
2021-05-10T06:04:08.000Z
import numpy as np import imageio from tqdm import tqdm import torch # TODO: this is ugly as hell but python sucks sometimes, should try to put everything in packages? import os,sys,inspect current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parent_dir = os.path.dirname(cu...
29.246575
99
0.601874
56c0817d0050e65fc828f9749bc832fceec3f9ec
9,398
py
Python
python/ccxt/async/bitflyer.py
mikepsinn/ccxt
04c73735f53a7f28f5f4bd7f6846503047297138
[ "MIT" ]
1
2019-06-25T15:32:13.000Z
2019-06-25T15:32:13.000Z
python/ccxt/async/bitflyer.py
mikepsinn/ccxt
04c73735f53a7f28f5f4bd7f6846503047297138
[ "MIT" ]
null
null
null
python/ccxt/async/bitflyer.py
mikepsinn/ccxt
04c73735f53a7f28f5f4bd7f6846503047297138
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async.base.exchange import Exchange from ccxt.base.errors import ExchangeError class bitflyer (Exchange): def describe(sel...
36.426357
126
0.474143
e5864500e75c9a58cae5018d187f0c8b1cc13ec8
5,706
py
Python
label_image.py
mylovesnsd1998/detectf
1f79f253c830693d39731a5b11f3a431061c6934
[ "Apache-2.0" ]
null
null
null
label_image.py
mylovesnsd1998/detectf
1f79f253c830693d39731a5b11f3a431061c6934
[ "Apache-2.0" ]
null
null
null
label_image.py
mylovesnsd1998/detectf
1f79f253c830693d39731a5b11f3a431061c6934
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.167665
80
0.70014