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
cb8d0f743e0b2abc015df2cdb59ecfbdad12a66a
6,160
py
Python
scripts/python/inv_add_ipmi_data.py
rbrud/power-up
c0d59a79ad9c713d94da73395a5fd768fcfff838
[ "Apache-2.0" ]
null
null
null
scripts/python/inv_add_ipmi_data.py
rbrud/power-up
c0d59a79ad9c713d94da73395a5fd768fcfff838
[ "Apache-2.0" ]
null
null
null
scripts/python/inv_add_ipmi_data.py
rbrud/power-up
c0d59a79ad9c713d94da73395a5fd768fcfff838
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2017 IBM Corp. # # 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 require...
34.80226
78
0.564286
504e2be23106e214bcd469f54b75871abb2223bc
16,006
py
Python
sparkdl/xgboost/xgboost.py
vperiyasamy/spark-deep-learning
6079407c8f366eac0e2c4d99dd6479d447f1af11
[ "Apache-2.0" ]
2,030
2017-06-06T02:10:50.000Z
2022-03-30T07:35:49.000Z
sparkdl/xgboost/xgboost.py
vperiyasamy/spark-deep-learning
6079407c8f366eac0e2c4d99dd6479d447f1af11
[ "Apache-2.0" ]
209
2017-06-06T02:28:35.000Z
2022-03-17T22:28:56.000Z
sparkdl/xgboost/xgboost.py
vperiyasamy/spark-deep-learning
6079407c8f366eac0e2c4d99dd6479d447f1af11
[ "Apache-2.0" ]
506
2017-06-06T02:25:31.000Z
2022-03-29T10:27:22.000Z
# # DATABRICKS CONFIDENTIAL & PROPRIETARY # __________________ # # Copyright 2020 Databricks, Inc. # All Rights Reserved. # # NOTICE: All information contained herein is, and remains the property of Databricks, Inc. # and its suppliers, if any. The intellectual and technical concepts contained herein are # proprietar...
48.210843
103
0.704361
a578997749737b469469e5c6d5d942b312e98689
6,314
py
Python
foxylib/tools/dataclass/dataclass_tool.py
yerihyo/foxylib
b8a09f3d84a23ec00cca5127a1d5a28e9bac8409
[ "BSD-3-Clause" ]
null
null
null
foxylib/tools/dataclass/dataclass_tool.py
yerihyo/foxylib
b8a09f3d84a23ec00cca5127a1d5a28e9bac8409
[ "BSD-3-Clause" ]
3
2019-12-12T05:17:44.000Z
2022-03-11T23:40:50.000Z
foxylib/tools/dataclass/dataclass_tool.py
yerihyo/foxylib
b8a09f3d84a23ec00cca5127a1d5a28e9bac8409
[ "BSD-3-Clause" ]
2
2019-10-16T17:39:34.000Z
2020-02-10T06:32:08.000Z
import inspect import logging from dataclasses import fields, asdict, make_dataclass, _FIELDS, replace from functools import reduce from typing import TypeVar, Optional, Any, List, Tuple, Union from dacite import from_dict, Type, Config from dacite.data import Data from future.utils import lmap, lfilter from nose.tool...
31.103448
94
0.657111
9457a60722e8a17bcdfa5e3d6f7cf441b230364d
1,183
py
Python
conftest.py
TylerYep/edutorch
6a4a425cbfd7fcdcd851b010816d29c3b5bae8bd
[ "MIT" ]
3
2021-06-14T01:17:31.000Z
2022-01-20T09:34:32.000Z
conftest.py
TylerYep/edutorch
6a4a425cbfd7fcdcd851b010816d29c3b5bae8bd
[ "MIT" ]
null
null
null
conftest.py
TylerYep/edutorch
6a4a425cbfd7fcdcd851b010816d29c3b5bae8bd
[ "MIT" ]
null
null
null
from __future__ import annotations import random import numpy as np import pytest from torchvision import datasets # type: ignore[import] from edutorch.typing import NPArray, NPIntArray @pytest.fixture(autouse=True) def _set_random_seed() -> None: random.seed(0) np.random.seed(0) @pytest.fixture(scope="...
26.886364
86
0.704987
13303d20c8d5a4007df47a4776b758468555e24a
228
py
Python
fsGetPythonISA.py
SkyLined/mWindowsAPI
d64d57bbf87d2a7b33cf7de89263553793484a84
[ "CC-BY-4.0" ]
7
2017-10-09T14:32:22.000Z
2021-01-30T07:25:50.000Z
fsGetPythonISA.py
SkyLined/mWindowsAPI
d64d57bbf87d2a7b33cf7de89263553793484a84
[ "CC-BY-4.0" ]
2
2017-12-12T02:53:18.000Z
2019-02-19T09:23:18.000Z
fsGetPythonISA.py
SkyLined/mWindowsAPI
d64d57bbf87d2a7b33cf7de89263553793484a84
[ "CC-BY-4.0" ]
1
2017-12-12T02:42:18.000Z
2017-12-12T02:42:18.000Z
import platform; gsPythonISA = None; def fsGetPythonISA(): global gsPythonISA; if gsPythonISA is None: gsPythonISA = { "32bit": "x86", "64bit": "x64", }[platform.architecture()[0]]; return gsPythonISA;
20.727273
34
0.644737
273f144e07c20d4a430e12b1f6c9128cde8bfec7
3,567
py
Python
test/unit/common/ring/test_utils.py
ericwanghp/swift
71a20d04ccac24b37b23fba87063e74e802c08fc
[ "Apache-2.0" ]
1
2021-04-18T15:23:18.000Z
2021-04-18T15:23:18.000Z
test/unit/common/ring/test_utils.py
ericwanghp/swift
71a20d04ccac24b37b23fba87063e74e802c08fc
[ "Apache-2.0" ]
null
null
null
test/unit/common/ring/test_utils.py
ericwanghp/swift
71a20d04ccac24b37b23fba87063e74e802c08fc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 OpenStack, 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 to ...
45.151899
78
0.473227
f200cdaa72910165c625ff9cab407ad6d561bc9d
3,479
py
Python
sympy/physics/optics/tests/test_waves.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/physics/optics/tests/test_waves.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/physics/optics/tests/test_waves.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
from sympy.core.function import (Derivative, Function) from sympy.core.numbers import (I, pi) from sympy.core.symbol import (Symbol, symbols) from sympy.functions.elementary.miscellaneous import sqrt from sympy.functions.elementary.trigonometric import (atan2, cos, sin) from sympy.simplify.simplify import simplify...
41.915663
97
0.605921
5b498a582f73b858c18cb039a4689f6d577d26f2
627
py
Python
tests/integration/__init__.py
maniis/ogr
2ca00be36e7103103f743e551adb1358b2ab662a
[ "MIT" ]
null
null
null
tests/integration/__init__.py
maniis/ogr
2ca00be36e7103103f743e551adb1358b2ab662a
[ "MIT" ]
null
null
null
tests/integration/__init__.py
maniis/ogr
2ca00be36e7103103f743e551adb1358b2ab662a
[ "MIT" ]
null
null
null
# type: ignore from requre.helpers.requests_response import RequestResponseHandling from requre.import_system import upgrade_import_system ogr_import_system = ( upgrade_import_system(debug_file="modules.out") .log_imports(what="^requests$", who_name=["ogr", "gitlab", "github"]) .decorate( where="^r...
29.857143
73
0.633174
41ac48fde8d44d02a088ccc55a16a1860c7d2f4e
874
py
Python
ooobuild/dyn/util/bootstrap_macro_expander.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/util/bootstrap_macro_expander.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/util/bootstrap_macro_expander.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
33.615385
96
0.76659
3c4aa224f212966dc2f09ee316a2bfa5c139ce3a
796
py
Python
thumbor/filters/format.py
mpdude/thumbor
21799d4731ed0901dcd85a3025f6836412333e09
[ "MIT" ]
7
2019-12-01T07:11:21.000Z
2021-11-09T10:09:23.000Z
thumbor/filters/format.py
mpdude/thumbor
21799d4731ed0901dcd85a3025f6836412333e09
[ "MIT" ]
3
2020-12-02T15:23:46.000Z
2021-04-13T15:44:34.000Z
thumbor/filters/format.py
mpdude/thumbor
21799d4731ed0901dcd85a3025f6836412333e09
[ "MIT" ]
2
2017-12-23T17:00:35.000Z
2019-04-03T03:42:40.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/thumbor/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com thumbor@googlegroups.com from thumbor.filters import BaseFilter, filter_method from thumbor.u...
28.428571
67
0.673367
6d04886252a50479ab3e45d790d2b7c5e402f697
2,883
py
Python
airflow/__init__.py
chaitushiva/airflow
cc1d802cb8f2945cbcdcb84370025df173de139d
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-09-09T14:07:20.000Z
2021-09-09T14:07:20.000Z
airflow/__init__.py
yuqian90/airflow
6d3c6f665a7027da9abe6ef15fcf5593d6eb5377
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/__init__.py
yuqian90/airflow
6d3c6f665a7027da9abe6ef15fcf5593d6eb5377
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
30.670213
95
0.748873
0bfdaf75431a8e6014533787c5d0ec72375f7023
65,840
py
Python
tcex/tcex_ti/tcex_ti_tc_request.py
brikardtc/tcex
78680f055f4259e31f0b4989a5695604108d9fdd
[ "Apache-2.0" ]
null
null
null
tcex/tcex_ti/tcex_ti_tc_request.py
brikardtc/tcex
78680f055f4259e31f0b4989a5695604108d9fdd
[ "Apache-2.0" ]
null
null
null
tcex/tcex_ti/tcex_ti_tc_request.py
brikardtc/tcex
78680f055f4259e31f0b4989a5695604108d9fdd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ThreatConnect Threat Intelligence Module""" try: from urllib import quote # Python 2 except ImportError: from urllib.parse import quote # Python import hashlib # import local modules for dynamic reference module = __import__(__name__) class TiTcRequest: """Common API calls to...
24.733283
108
0.509994
96c550923af5a4adf051a179cf2b5b5910d7c064
517
py
Python
packages/python/plotly/plotly/validators/layout/xaxis/_showticksuffix.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/layout/xaxis/_showticksuffix.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/layout/xaxis/_showticksuffix.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="showticksuffix", parent_name="layout.xaxis", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, ...
34.466667
80
0.646035
f6f9d22a2e043fc1eca061e4a7cc93146a64b78f
1,185
py
Python
setup.py
bettsmatt/django-initialcon
c66b4aa59fef6049433a8373d075b0c48eab021f
[ "MIT" ]
1
2021-07-17T13:52:22.000Z
2021-07-17T13:52:22.000Z
setup.py
bettsmatt/django-initialcon
c66b4aa59fef6049433a8373d075b0c48eab021f
[ "MIT" ]
1
2015-07-08T21:17:14.000Z
2015-07-08T21:17:14.000Z
setup.py
bettsmatt/django-initialcon
c66b4aa59fef6049433a8373d075b0c48eab021f
[ "MIT" ]
2
2015-04-08T00:42:44.000Z
2015-07-07T03:39:24.000Z
import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() INSTALL_REQUIREMENTS = ["Pillow"] # Allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name = 'django-initialcon', versi...
34.852941
111
0.64557
1cb4ba77e2eedbbc8c5e91a9cf28b6d2d3807921
3,641
py
Python
python/tests/unit/test_fib.py
tankersleyj/algorithms
821d9e86a9b1d167ca2abd5bdeb27b815b164f43
[ "MIT" ]
null
null
null
python/tests/unit/test_fib.py
tankersleyj/algorithms
821d9e86a9b1d167ca2abd5bdeb27b815b164f43
[ "MIT" ]
null
null
null
python/tests/unit/test_fib.py
tankersleyj/algorithms
821d9e86a9b1d167ca2abd5bdeb27b815b164f43
[ "MIT" ]
null
null
null
# MIT (c) jtankersley 2019-05-19 import unittest from src import fib from src import timer class TestFib(unittest.TestCase): def test_get_fib_recursive(self): actual = timer.run_timed_result(fib.get_fib_recursive, 1) self.assertEqual(actual, 1, 'get_fib_recursive(1)') actual = timer.run_t...
50.569444
66
0.689096
0f1ac7762bb241b3a496cd5c7f24f9d49515679b
1,160
py
Python
tools/find_broken_articles.py
mircealungu/Zeeguu-API-2
1e8ea7f5dd0b883ed2d714b9324162b1a8edd170
[ "MIT" ]
8
2018-02-06T15:47:55.000Z
2021-05-26T15:24:49.000Z
tools/find_broken_articles.py
mircealungu/Zeeguu-API-2
1e8ea7f5dd0b883ed2d714b9324162b1a8edd170
[ "MIT" ]
57
2018-02-02T19:54:38.000Z
2021-07-15T15:45:15.000Z
tools/find_broken_articles.py
mircealungu/Zeeguu-API-2
1e8ea7f5dd0b883ed2d714b9324162b1a8edd170
[ "MIT" ]
13
2017-10-12T09:05:19.000Z
2020-02-19T09:38:01.000Z
import zeeguu.core from zeeguu.core.model import Article from zeeguu.core.model import RSSFeed from zeeguu.core.content_retriever.quality_filter import sufficient_quality_of_text, sufficient_quality import os from zeeguu.core import db SOURCE = 'www.newscientist.com' TERMINATOR = '…' STARTER = 'Create an account for' ...
30.526316
125
0.646552
1d79beabdaa5d5178c2107ef1e5fcf824e50ea46
2,196
py
Python
test/test_add_contact_to_group.py
OlgaBrozhe/PythonProject
1910850b35f3d465ed6101f823834bb29f0e8be1
[ "Apache-2.0" ]
null
null
null
test/test_add_contact_to_group.py
OlgaBrozhe/PythonProject
1910850b35f3d465ed6101f823834bb29f0e8be1
[ "Apache-2.0" ]
null
null
null
test/test_add_contact_to_group.py
OlgaBrozhe/PythonProject
1910850b35f3d465ed6101f823834bb29f0e8be1
[ "Apache-2.0" ]
null
null
null
import random from fixture.orm import ORMFixture from model.group_form import GroupForm from model.contact_form import ContactForm orm = ORMFixture(host="127.0.0.1", name="addressbook", user="root", password="") def test_add_contact_to_group(app, db): # Get groups and contacts list, make sure they are not empty ...
49.909091
110
0.729508
ea0bc43b006e3e10b40cd03f3ca74b6e2998d14e
1,418
py
Python
setup.py
jsmits/github-cli
0e5a4fb7a5b6b5ea0fb81ca66c1e1df0ef7eadbd
[ "BSD-3-Clause" ]
81
2015-02-12T01:04:07.000Z
2022-02-13T13:44:20.000Z
setup.py
jsmits/github-cli
0e5a4fb7a5b6b5ea0fb81ca66c1e1df0ef7eadbd
[ "BSD-3-Clause" ]
2
2016-01-09T07:37:06.000Z
2018-06-04T14:15:19.000Z
setup.py
jsmits/github-cli
0e5a4fb7a5b6b5ea0fb81ca66c1e1df0ef7eadbd
[ "BSD-3-Clause" ]
7
2015-05-08T15:51:58.000Z
2020-11-03T16:28:56.000Z
import os import sys from setuptools import setup, find_packages description = "A command-line interface to the GitHub Issues API v2." cur_dir = os.path.dirname(__file__) try: long_description = open(os.path.join(cur_dir, 'README.rst')).read() except: long_description = description # needed for importing gith...
31.511111
71
0.650917
2e0e61f5848d4354616c29e22cb79463a1af902f
481
py
Python
gorden_crawler/sizeregex/katespade.py
Enmming/gorden_cralwer
3c279e4f80eaf90f3f03acd31b75cf991952adee
[ "Apache-2.0" ]
2
2019-02-22T13:51:08.000Z
2020-08-03T14:01:30.000Z
gorden_crawler/sizeregex/katespade.py
Enmming/gorden_cralwer
3c279e4f80eaf90f3f03acd31b75cf991952adee
[ "Apache-2.0" ]
null
null
null
gorden_crawler/sizeregex/katespade.py
Enmming/gorden_cralwer
3c279e4f80eaf90f3f03acd31b75cf991952adee
[ "Apache-2.0" ]
1
2020-08-03T14:01:32.000Z
2020-08-03T14:01:32.000Z
import re from gorden_crawler.sizeregex.basestrategy import BaseStrategy class Katespade (BaseStrategy): def transform(self, size, reg, site, key): # p = re.compile(reg) # m = p.match(size) # if m: # if key == 0: # sizeType = self.SIZE_TYPE_US; # ...
24.05
62
0.528067
e0883aa6835fc67a6d0eae6a67518527d67b91bf
651
py
Python
lib/sqlalchemy/util/concurrency.py
dand-oss/sqlalchemy
4fa657ae549d11b09ba3a641a17268f3dc78d3cb
[ "MIT" ]
1
2021-04-04T10:13:08.000Z
2021-04-04T10:13:08.000Z
lib/sqlalchemy/util/concurrency.py
dand-oss/sqlalchemy
4fa657ae549d11b09ba3a641a17268f3dc78d3cb
[ "MIT" ]
null
null
null
lib/sqlalchemy/util/concurrency.py
dand-oss/sqlalchemy
4fa657ae549d11b09ba3a641a17268f3dc78d3cb
[ "MIT" ]
1
2021-10-06T07:03:07.000Z
2021-10-06T07:03:07.000Z
from . import compat if compat.py3k: import asyncio from ._concurrency_py3k import await_only from ._concurrency_py3k import await_fallback from ._concurrency_py3k import greenlet from ._concurrency_py3k import greenlet_spawn from ._concurrency_py3k import AsyncAdaptedLock else: asyncio = ...
25.038462
60
0.705069
2bfa1d49dc460040ddf78943d13992afe18056dd
2,734
py
Python
eaglevision/cloc_eagle.py
philips-software/EagleVision
a218cd3e203034fb42681c4ecb4e3c2b54ed7174
[ "MIT" ]
null
null
null
eaglevision/cloc_eagle.py
philips-software/EagleVision
a218cd3e203034fb42681c4ecb4e3c2b54ed7174
[ "MIT" ]
null
null
null
eaglevision/cloc_eagle.py
philips-software/EagleVision
a218cd3e203034fb42681c4ecb4e3c2b54ed7174
[ "MIT" ]
1
2021-09-21T02:25:15.000Z
2021-09-21T02:25:15.000Z
"""Koninklijke Philips N.V., 2019 - 2020. All rights reserved.""" import os import subprocess from pathlib import Path import pandas as pd from eaglevision.base_eagle import BaseEagle class ClocEagle(BaseEagle): # pylint: disable=R0903 """ To extract the code matrices of a repo: LOC, Comments, Type of languages e...
41.424242
108
0.606437
5eb2da2d28c07eb592f109663af18d7fa830356c
1,044
py
Python
broken_links/settings.py
bootstraponline/scrapy-broken-links
96dc5b35bd0eef29bd3808fcb25a799c36822bfb
[ "Apache-2.0" ]
7
2015-09-17T04:58:07.000Z
2019-08-06T10:42:44.000Z
broken_links/settings.py
bootstraponline/scrapy-broken-links
96dc5b35bd0eef29bd3808fcb25a799c36822bfb
[ "Apache-2.0" ]
null
null
null
broken_links/settings.py
bootstraponline/scrapy-broken-links
96dc5b35bd0eef29bd3808fcb25a799c36822bfb
[ "Apache-2.0" ]
9
2017-07-04T21:31:00.000Z
2019-08-01T07:34:33.000Z
# -*- coding: utf-8 -*- # Scrapy settings for broken_links project # # For simplicity, this file contains only the most important settings by # default. All the other settings are documented here: # # http://doc.scrapy.org/en/latest/topics/settings.html # BOT_NAME = 'broken_links' SPIDER_MODULES = ['broken_links...
32.625
135
0.770115
6ec8249c075f63a0db40c9f865da3c5cbb36d451
4,181
py
Python
bin/adhoc-scripts/checkDsetFileCount.py
haozturk/WMCore
b34e8c89b4a30de78b7d0cf4730d4c70af5830b4
[ "Apache-2.0" ]
null
null
null
bin/adhoc-scripts/checkDsetFileCount.py
haozturk/WMCore
b34e8c89b4a30de78b7d0cf4730d4c70af5830b4
[ "Apache-2.0" ]
null
null
null
bin/adhoc-scripts/checkDsetFileCount.py
haozturk/WMCore
b34e8c89b4a30de78b7d0cf4730d4c70af5830b4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Script meant to fetch the number of blocks and files for a given dataset, using both DBS and Rucio services. It prints any inconsistency among those two. """ from __future__ import print_function, division import logging import sys from collections import Counter from future.utils import vie...
36.043103
115
0.672566
91aa59a6b1fb14d87212de19f304dd86c9c2a16e
518
py
Python
nsd1806/python/day06/qsort.py
MrWangwf/nsd1806
069e993b0bb64cb21adc2a25aa56f6da674453bc
[ "Apache-2.0" ]
null
null
null
nsd1806/python/day06/qsort.py
MrWangwf/nsd1806
069e993b0bb64cb21adc2a25aa56f6da674453bc
[ "Apache-2.0" ]
null
null
null
nsd1806/python/day06/qsort.py
MrWangwf/nsd1806
069e993b0bb64cb21adc2a25aa56f6da674453bc
[ "Apache-2.0" ]
null
null
null
from random import randint def qsort(seq): if len(seq) < 2: return seq smaller = [] larger = [] middle = seq[0] # 82 for i in seq[1:]: if i <= middle: smaller.append(i) # [4, 20, 31, 29, 77, 20] else: larger.append(i) # [86, 97, 98] return qs...
25.9
58
0.515444
b691e9aac192ab64a7c09cd3a85bc720047989de
4,502
py
Python
kadenze_dl/kadenzeclient.py
rrosajp/kadenze-dl
6c4a64f6fd48d37f4574be51c9398b7425dc0393
[ "MIT" ]
1
2021-01-13T14:59:20.000Z
2021-01-13T14:59:20.000Z
kadenze_dl/kadenzeclient.py
rrosajp/kadenze-dl
6c4a64f6fd48d37f4574be51c9398b7425dc0393
[ "MIT" ]
null
null
null
kadenze_dl/kadenzeclient.py
rrosajp/kadenze-dl
6c4a64f6fd48d37f4574be51c9398b7425dc0393
[ "MIT" ]
null
null
null
import logging import sys import time from pathlib import Path from random import randint from typing import List from playwright._impl._browser import Browser, Page from playwright.sync_api import sync_playwright import kadenze_dl.utils as utils from kadenze_dl.models import Session, Video from kadenze_dl.settings i...
36.016
145
0.681253
13c39da0a2bd0b2f23ee6bfc7d9738d987cb6fee
30,038
py
Python
contrib/cdsidxchk.py
verioarctemp/dnscap
0a60eff45c4c25d5cc3d59edefbaa53fadda9b71
[ "BSD-3-Clause" ]
null
null
null
contrib/cdsidxchk.py
verioarctemp/dnscap
0a60eff45c4c25d5cc3d59edefbaa53fadda9b71
[ "BSD-3-Clause" ]
null
null
null
contrib/cdsidxchk.py
verioarctemp/dnscap
0a60eff45c4c25d5cc3d59edefbaa53fadda9b71
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2016-2022, OARC, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, ...
37.641604
127
0.533524
3acfcba25210ef3ed4e2a138141c7217364c0954
3,632
py
Python
indico/modules/networks/models/networks.py
UNOG-Indico/UNOG-Indico-v2
4fa4393cc1f3b453a69f5e0ea3b52c18337831a5
[ "MIT" ]
null
null
null
indico/modules/networks/models/networks.py
UNOG-Indico/UNOG-Indico-v2
4fa4393cc1f3b453a69f5e0ea3b52c18337831a5
[ "MIT" ]
null
null
null
indico/modules/networks/models/networks.py
UNOG-Indico/UNOG-Indico-v2
4fa4393cc1f3b453a69f5e0ea3b52c18337831a5
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals from ipaddress import ip_address from flask import has_request_c...
28.825397
101
0.662996
ce6c3e5350f6abb2c9cefda76928a27f582e774d
15,415
py
Python
python/paddle/tensor/__init__.py
shangzhizhou/Paddle
f1d56b7722399dce93a1fc337db8f9523754c92e
[ "Apache-2.0" ]
2
2019-05-16T03:09:06.000Z
2022-01-14T07:06:37.000Z
python/paddle/tensor/__init__.py
houj04/Paddle
6b5e33b46bcf5151785c9bd3bfa6a1eb23f51841
[ "Apache-2.0" ]
null
null
null
python/paddle/tensor/__init__.py
houj04/Paddle
6b5e33b46bcf5151785c9bd3bfa6a1eb23f51841
[ "Apache-2.0" ]
2
2021-03-10T08:05:40.000Z
2021-03-11T14:30:14.000Z
# Copyright (c) 2016 PaddlePaddle 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 applic...
32.589852
74
0.61544
eaa6f9f9c54eed31a6f417c3acacbeec6705d4e8
25,705
py
Python
tests/connectors/test_can_connector.py
atorber/thingsboard-gateway
b7f51b332346632f8451e353984723c89ebd2a09
[ "Apache-2.0" ]
1
2022-02-10T10:03:43.000Z
2022-02-10T10:03:43.000Z
tests/connectors/test_can_connector.py
atorber/thingsboard-gateway
b7f51b332346632f8451e353984723c89ebd2a09
[ "Apache-2.0" ]
null
null
null
tests/connectors/test_can_connector.py
atorber/thingsboard-gateway
b7f51b332346632f8451e353984723c89ebd2a09
[ "Apache-2.0" ]
null
null
null
# Copyright 2020. ThingsBoard # # 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 ...
51.10338
129
0.504065
f27a9f19ab3da95720dec7dcf098f590638f8cd4
378
py
Python
src/PYnative/exercise/Random Data Generation/Q7.py
c-w-m/learning_python
8f06aa41faf9195d978a7d21cbb329280b0d3200
[ "CNRI-Python" ]
null
null
null
src/PYnative/exercise/Random Data Generation/Q7.py
c-w-m/learning_python
8f06aa41faf9195d978a7d21cbb329280b0d3200
[ "CNRI-Python" ]
null
null
null
src/PYnative/exercise/Random Data Generation/Q7.py
c-w-m/learning_python
8f06aa41faf9195d978a7d21cbb329280b0d3200
[ "CNRI-Python" ]
null
null
null
# Calculate mutiplication of two random float numbers # First random float number must be between 0.1 and 1 # Second random float number must be between 9.5 and 99.5 # My Solution import random num1 = random.uniform(0.1, 1) num2 = random.uniform(9.5, 99.5) print("First Random float is ", num1) print("Second Random f...
27
57
0.73545
5f924a31b46cf5cbba934d99ca04ff519429cffb
7,853
py
Python
microsoft/testsuites/gpu/gpusuite.py
cwize1/lisa
21c3be54c6464d4c0b47320987e5925db0a58b6b
[ "MIT" ]
null
null
null
microsoft/testsuites/gpu/gpusuite.py
cwize1/lisa
21c3be54c6464d4c0b47320987e5925db0a58b6b
[ "MIT" ]
null
null
null
microsoft/testsuites/gpu/gpusuite.py
cwize1/lisa
21c3be54c6464d4c0b47320987e5925db0a58b6b
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import re from pathlib import Path from assertpy import assert_that from lisa import ( LisaException, Logger, Node, SkippedException, TestCaseMetadata, TestSuite, TestSuiteMetadata, constants, simple_requirem...
31.286853
88
0.646887
f0ae3552006ad42e7a442eee17da66e30506d3f9
1,011
py
Python
Hand_tracking1.py
aravindstriker6/Hand-Tracking
b4f41aa2e757e952d5fc24bae240fdbcf19fa4ef
[ "MIT" ]
null
null
null
Hand_tracking1.py
aravindstriker6/Hand-Tracking
b4f41aa2e757e952d5fc24bae240fdbcf19fa4ef
[ "MIT" ]
null
null
null
Hand_tracking1.py
aravindstriker6/Hand-Tracking
b4f41aa2e757e952d5fc24bae240fdbcf19fa4ef
[ "MIT" ]
null
null
null
import cv2 import mediapipe as mp import time cap=cv2.VideoCapture(0) mpHands=mp.solutions.hands mpDraw=mp.solutions.drawing_utils hands=mpHands.Hands() ptime=0 ctime=0 while True: success,img=cap.read() imgRGB=cv2.cvtColor(img,cv2.COLOR_BGR2RGB) results=hands.process(imgRGB) #print(results...
32.612903
95
0.631058
a8e0722579b6ce7e4fb2b41bfc3d83b514bdbb44
1,442
py
Python
cross-project-tests/debuginfo-tests/dexter/dex/debugger/DebuggerControllers/ControllerHelpers.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
cross-project-tests/debuginfo-tests/dexter/dex/debugger/DebuggerControllers/ControllerHelpers.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
cross-project-tests/debuginfo-tests/dexter/dex/debugger/DebuggerControllers/ControllerHelpers.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
# DExTer : Debugging Experience Tester # ~~~~~~ ~ ~~ ~ ~~ # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception import os from itertools import chain de...
36.974359
79
0.60957
4f6dc0922fa368692032a228668b1c909dec41da
8,140
py
Python
apps/users/migrations/0015_auto__add_field_userprofile_country__add_field_userprofile_region__add.py
satdav/mozillians
97d764f68d930275c1d722ba21c40ec2a963491d
[ "BSD-3-Clause" ]
null
null
null
apps/users/migrations/0015_auto__add_field_userprofile_country__add_field_userprofile_region__add.py
satdav/mozillians
97d764f68d930275c1d722ba21c40ec2a963491d
[ "BSD-3-Clause" ]
null
null
null
apps/users/migrations/0015_auto__add_field_userprofile_country__add_field_userprofile_region__add.py
satdav/mozillians
97d764f68d930275c1d722ba21c40ec2a963491d
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'UserProfile.country' db.add_column('profile', 'country', self.gf('django.db.models.fields....
72.678571
182
0.566953
19b41cff3c318033fc70f928a2e44c78ab7ef7ea
596
py
Python
mmdet/core/bbox/coder/pseudo_bbox_coder.py
mrzhuzhe/mmdetection
c04ca2c2a65500bc248a5d2ab6ace5b15f00064d
[ "Apache-2.0" ]
null
null
null
mmdet/core/bbox/coder/pseudo_bbox_coder.py
mrzhuzhe/mmdetection
c04ca2c2a65500bc248a5d2ab6ace5b15f00064d
[ "Apache-2.0" ]
null
null
null
mmdet/core/bbox/coder/pseudo_bbox_coder.py
mrzhuzhe/mmdetection
c04ca2c2a65500bc248a5d2ab6ace5b15f00064d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. from ..builder import BBOX_CODERS from .base_bbox_coder import BaseBBoxCoder @BBOX_CODERS.register_module() class PseudoBBoxCoder(BaseBBoxCoder): """Pseudo bounding box coder.""" def __init__(self, **kwargs): super(BaseBBoxCoder, self).__init_...
29.8
61
0.666107
e4fed8b62cd4ba2253e5ec20840ba02efbfc941e
13,561
py
Python
gammapy/image/plotting.py
zblz/gammapy
49539f25886433abeedc8852387ab4cd73977006
[ "BSD-3-Clause" ]
null
null
null
gammapy/image/plotting.py
zblz/gammapy
49539f25886433abeedc8852387ab4cd73977006
[ "BSD-3-Clause" ]
null
null
null
gammapy/image/plotting.py
zblz/gammapy
49539f25886433abeedc8852387ab4cd73977006
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Helper functions and functions for plotting gamma-ray images. """ from __future__ import print_function, division import numpy as np __all__ = ['colormap_hess', 'colormap_milagro', 'fits_to_png', 'GalacticPlaneSurveyPanelPlot', ...
31.032037
87
0.601947
4eb4085efd003f76aa7012ef961bb043aa3fcdc7
54,911
py
Python
tests/onegov/core/test_orm.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_orm.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_orm.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import morepath import pytest import pickle import sqlalchemy import time import transaction import uuid from datetime import datetime from dogpile.cache.api import NO_VALUE from onegov.core.framework import Framework from onegov.core.orm import ( ModelBase, SessionManager, as_selectable, translation_hybrid, find_...
27.873604
79
0.648012
6c9ac1db273b0098cc7257c73c1c52053b1436a7
5,150
py
Python
postgresql-connector/postgresql_connector.py
mesmacosta/google-datacatalog-postgresql-connector-anthos
60de1eb4fb97cec1279c139738d6c0fe79c096f7
[ "Apache-2.0" ]
null
null
null
postgresql-connector/postgresql_connector.py
mesmacosta/google-datacatalog-postgresql-connector-anthos
60de1eb4fb97cec1279c139738d6c0fe79c096f7
[ "Apache-2.0" ]
null
null
null
postgresql-connector/postgresql_connector.py
mesmacosta/google-datacatalog-postgresql-connector-anthos
60de1eb4fb97cec1279c139738d6c0fe79c096f7
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.517241
96
0.672039
5f89042a14cf26841eec06c0438bb1574a4dac55
6,995
py
Python
Validation/HGCalValidation/scripts/makeHGCalValidationPlots.py
CeliaFernandez/cmssw
bec73cc7eebb30608c73685df0ff07025d838dd2
[ "Apache-2.0" ]
13
2015-11-30T15:49:45.000Z
2022-02-08T16:11:30.000Z
Validation/HGCalValidation/scripts/makeHGCalValidationPlots.py
CeliaFernandez/cmssw
bec73cc7eebb30608c73685df0ff07025d838dd2
[ "Apache-2.0" ]
640
2015-02-11T18:55:47.000Z
2022-03-31T14:12:23.000Z
Validation/HGCalValidation/scripts/makeHGCalValidationPlots.py
CeliaFernandez/cmssw
bec73cc7eebb30608c73685df0ff07025d838dd2
[ "Apache-2.0" ]
51
2015-08-11T21:01:40.000Z
2022-03-30T07:31:34.000Z
#!/usr/bin/env python3 from __future__ import print_function import os import argparse from time import time from RecoHGCal.TICL.iterativeTICL_cff import ticlIterLabels, ticlIterLabelsMerge from Validation.RecoTrack.plotting.validation import SeparateValidation, SimpleValidation, SimpleSample import Validation.HGCal...
44.55414
181
0.667906
91c18347d3118cde86a19a3f415447226be7abbd
28,630
py
Python
nuclei_mosaic.py
wanwanbeen/maskrcnn_nuclei
f18191dc5bb782505e189f4a44086008716a18a9
[ "MIT" ]
6
2018-05-30T03:04:54.000Z
2021-08-13T21:46:28.000Z
nuclei_mosaic.py
wanwanbeen/maskrcnn_nuclei
f18191dc5bb782505e189f4a44086008716a18a9
[ "MIT" ]
null
null
null
nuclei_mosaic.py
wanwanbeen/maskrcnn_nuclei
f18191dc5bb782505e189f4a44086008716a18a9
[ "MIT" ]
1
2019-02-26T20:32:53.000Z
2019-02-26T20:32:53.000Z
__authors__="Jie Yang and Xinyang Feng" ########################################### # mosaic ########################################### import pandas as pd import numpy as np import argparse from sklearn.cluster import KMeans from sklearn.neighbors import NearestNeighbors import cv2 # To read and manipulate images i...
45.372425
123
0.590884
e1c592d9b6b575cd96ef2f894fe5f079a05a4026
4,772
py
Python
allennlp/training/metrics/covariance.py
pengshuang/allennlp
478bf46cb676524ee9b74fb271ec0a592d1c4a48
[ "Apache-2.0" ]
8
2018-07-03T15:00:39.000Z
2021-05-30T17:32:43.000Z
allennlp/training/metrics/covariance.py
pengshuang/allennlp
478bf46cb676524ee9b74fb271ec0a592d1c4a48
[ "Apache-2.0" ]
null
null
null
allennlp/training/metrics/covariance.py
pengshuang/allennlp
478bf46cb676524ee9b74fb271ec0a592d1c4a48
[ "Apache-2.0" ]
3
2018-08-07T16:44:17.000Z
2020-10-15T00:23:52.000Z
from typing import Optional from overrides import overrides import torch from allennlp.training.metrics.metric import Metric @Metric.register("covariance") class Covariance(Metric): """ This `Metric` calculates the unbiased sample covariance between two tensors. Each element in the two tensors is assume...
40.440678
117
0.667435
f71e08a94e9f047dfa54cd7ce41c674a5cd1f8bd
15,999
py
Python
game.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
game.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
game.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
from flask import Flask, request from twilio.twiml.messaging_response import MessagingResponse from gameIdGenerator import createNewGameId from models import Game, Player, Player_Answers, Question from flask_sqlalchemy import SQLAlchemy from datetime import datetime import dbManager import logging import gameManager im...
59.475836
198
0.586349
8124908c44abb2719b61a1fd7e4f3cccdf3f2e80
12,845
py
Python
azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_repetitions_operations.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2018-07-23T08:59:24.000Z
2018-07-23T08:59:24.000Z
azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_repetitions_operations.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2021-06-02T00:24:51.000Z
2021-06-02T00:24:51.000Z
azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_repetitions_operations.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2020-07-25T20:36:02.000Z
2020-07-25T20:36:02.000Z
# 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 ...
47.750929
252
0.654107
b6daa275f9dee2445b8ac3dee3659d0f413c2ff6
5,963
py
Python
xbbg/core/utils.py
tschm/xbbg
5a92549f1dbdbf70a93c03b35a7f6d08206c8c2d
[ "Apache-2.0" ]
114
2018-11-27T01:02:15.000Z
2022-03-30T02:16:17.000Z
xbbg/core/utils.py
tschm/xbbg
5a92549f1dbdbf70a93c03b35a7f6d08206c8c2d
[ "Apache-2.0" ]
57
2019-02-07T13:57:09.000Z
2022-03-16T11:53:17.000Z
xbbg/core/utils.py
tschm/xbbg
5a92549f1dbdbf70a93c03b35a7f6d08206c8c2d
[ "Apache-2.0" ]
28
2019-01-07T18:02:08.000Z
2022-03-16T08:24:45.000Z
import pandas as pd import time import pytz import inspect import sys import datetime from typing import Union from pathlib import Path DEFAULT_TZ = pytz.FixedOffset(-time.timezone / 60) def flatten(iterable, maps=None, unique=False) -> list: """ Flatten any array of items to list Args: iterab...
25.160338
79
0.57035
8de02e3429d5d1a3846606c28cce708d12a91202
130
py
Python
sftp_py/__init__.py
zahidul-alam/sftp_py
eb81155e23e3934d2236e51735c6937b08787370
[ "MIT" ]
2
2021-09-07T21:50:12.000Z
2022-03-16T11:40:59.000Z
sftp_py/__init__.py
zahidul-alam/sftp_py
eb81155e23e3934d2236e51735c6937b08787370
[ "MIT" ]
2
2021-05-17T10:50:35.000Z
2021-09-30T17:10:28.000Z
sftp_py/__init__.py
zahidul-alam/sftp_py
eb81155e23e3934d2236e51735c6937b08787370
[ "MIT" ]
1
2021-12-07T12:09:22.000Z
2021-12-07T12:09:22.000Z
"""Top-level package for sftp_py.""" __author__ = """Alex Orlek""" __email__ = 'alex.orlek@gmail.com' __version__ = '0.2.1'
21.666667
37
0.646154
64b07b8fc6ce9a74f67ed580c63a68edbb0dfea1
13,320
py
Python
loop_over_dataset.py
sdebanjana/Midterm---3D-Object-Detection
67a9cd9f4f4bc08e5f5c9f2b81b38e7196eca9c7
[ "MIT" ]
null
null
null
loop_over_dataset.py
sdebanjana/Midterm---3D-Object-Detection
67a9cd9f4f4bc08e5f5c9f2b81b38e7196eca9c7
[ "MIT" ]
null
null
null
loop_over_dataset.py
sdebanjana/Midterm---3D-Object-Detection
67a9cd9f4f4bc08e5f5c9f2b81b38e7196eca9c7
[ "MIT" ]
null
null
null
# --------------------------------------------------------------------- # Project "Track 3D-Objects Over Time" # Copyright (C) 2020, Dr. Antje Muntzinger / Dr. Andreas Haja. # # Purpose of this file : Loop over all frames in a Waymo Open Dataset file, # detect and track objects and visualize re...
45.773196
224
0.673498
da4b17119b44af5275446f4ea5436a3cc2475bda
9,888
py
Python
photutils/isophote/tests/test_isophote.py
Onoddil/photutils
433f3e54d3f53282ae04eadde9e1ddf657944590
[ "BSD-3-Clause" ]
null
null
null
photutils/isophote/tests/test_isophote.py
Onoddil/photutils
433f3e54d3f53282ae04eadde9e1ddf657944590
[ "BSD-3-Clause" ]
null
null
null
photutils/isophote/tests/test_isophote.py
Onoddil/photutils
433f3e54d3f53282ae04eadde9e1ddf657944590
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Tests for the isophote module. """ from astropy.io import fits import numpy as np from numpy.testing import assert_allclose import pytest from .make_test_data import make_test_image from ..ellipse import Ellipse from ..fitter import EllipseFitter fro...
35.696751
78
0.615797
d4ccf87a7d29c941aea4466ded0edb1f92e0d624
1,213
py
Python
gamestonk_terminal/economy/cnn_view.py
Aerex/GamestonkTerminal
680e0cd278f0d8e45031cdc9d51f247e9aa90ce1
[ "MIT" ]
3
2021-02-28T09:54:47.000Z
2021-03-11T17:42:35.000Z
gamestonk_terminal/economy/cnn_view.py
Aerex/GamestonkTerminal
680e0cd278f0d8e45031cdc9d51f247e9aa90ce1
[ "MIT" ]
3
2022-02-28T03:37:52.000Z
2022-02-28T03:37:53.000Z
gamestonk_terminal/economy/cnn_view.py
Aerex/GamestonkTerminal
680e0cd278f0d8e45031cdc9d51f247e9aa90ce1
[ "MIT" ]
1
2021-06-20T02:42:40.000Z
2021-06-20T02:42:40.000Z
""" CNN View """ __docformat__ = "numpy" import os import matplotlib.pyplot as plt from pandas.plotting import register_matplotlib_converters from gamestonk_terminal import feature_flags as gtff from gamestonk_terminal.config_plot import PLOT_DPI from gamestonk_terminal.economy import cnn_model from gamestonk_termina...
26.369565
88
0.707337
a4fc8dec63a1ad554239b517920e70c816689017
307
py
Python
WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/shelve/shelve_readonly.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/shelve/shelve_readonly.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/shelve/shelve_readonly.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Opening an existing shelf read-only. """ # end_pymotw_header import dbm import shelve with shelve.open("test_shelf.db", flag="r") as s: print("Existing:", s["key1"]) try: s["key1"] = "new value" except dbm.error as err: print("ERROR: {}".format(err))
20.466667
49
0.618893
62a3ac5c673e2a6e01ff32846f963fba362d3874
139
py
Python
app.py
Dylan-Bs/project-smb111
dd86fdefda22d8dda02e0b549a6e148b0346a135
[ "MIT" ]
null
null
null
app.py
Dylan-Bs/project-smb111
dd86fdefda22d8dda02e0b549a6e148b0346a135
[ "MIT" ]
null
null
null
app.py
Dylan-Bs/project-smb111
dd86fdefda22d8dda02e0b549a6e148b0346a135
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "<html><body><h1>Hello SMB111!</h1></body></html>\n"
23.166667
63
0.647482
e3af92ceb779699f71f90bb69d97d670a47c28f1
3,292
py
Python
microcontrol.py
Astremy/microcontrol
a8e687be30ede6b7a9e9e50bea439695afbfe648
[ "MIT" ]
1
2020-11-02T19:25:31.000Z
2020-11-02T19:25:31.000Z
microcontrol.py
Astremy/microcontrol
a8e687be30ede6b7a9e9e50bea439695afbfe648
[ "MIT" ]
null
null
null
microcontrol.py
Astremy/microcontrol
a8e687be30ede6b7a9e9e50bea439695afbfe648
[ "MIT" ]
null
null
null
import tkinter as tk list_in = {} list_out = {} list_process = [] config = ["white", "black", True] def io(name): def register(function): default_value = function() def call(): if name in list_in: return int(list_in[name].get() | default_value) ...
24.939394
85
0.515796
f07d99e51fc565436a2c4958b3a27cb43cf5a594
452
py
Python
blog/feeds.py
boost-entropy-repos-org/ojas
5068ebd1096c776258308a4b2b1da27e6934a5a0
[ "MIT" ]
null
null
null
blog/feeds.py
boost-entropy-repos-org/ojas
5068ebd1096c776258308a4b2b1da27e6934a5a0
[ "MIT" ]
null
null
null
blog/feeds.py
boost-entropy-repos-org/ojas
5068ebd1096c776258308a4b2b1da27e6934a5a0
[ "MIT" ]
null
null
null
from django.contrib.syndication.views import Feed from django.template.defaultfilters import truncatewords from .models import Post class LatestPostsFeed(Feed): title = 'My blog' link = '/blog/' description = 'New posts of my blog.' def items(self): return Post.published.all()[:20] def i...
23.789474
56
0.690265
8857b752220a2d3ebf75f08ce1736171dae390d5
28,454
py
Python
tests/datasource/data_connector/test_sql_data_connector.py
BrendanFrick/great_expectations
0a43c5b713cb86150cb59d6a55b14735f33ba4c3
[ "Apache-2.0" ]
1
2021-12-15T18:27:01.000Z
2021-12-15T18:27:01.000Z
tests/datasource/data_connector/test_sql_data_connector.py
BrendanFrick/great_expectations
0a43c5b713cb86150cb59d6a55b14735f33ba4c3
[ "Apache-2.0" ]
null
null
null
tests/datasource/data_connector/test_sql_data_connector.py
BrendanFrick/great_expectations
0a43c5b713cb86150cb59d6a55b14735f33ba4c3
[ "Apache-2.0" ]
1
2022-01-26T03:25:34.000Z
2022-01-26T03:25:34.000Z
import json import random import pytest from ruamel.yaml import YAML import great_expectations.exceptions as ge_exceptions from great_expectations.core.batch import BatchRequest, BatchSpec from great_expectations.datasource.data_connector import ConfiguredAssetSqlDataConnector from great_expectations.validator.valida...
34.323281
106
0.624236
147ed21dc39cfc6eb28c52566f3a816fde608549
4,191
py
Python
Ass2_plots_3.py
sjatakia/OpenGL
489afe0d376fed27914dd718f629e49c823d196a
[ "MIT" ]
2
2016-11-22T03:34:08.000Z
2017-02-03T21:30:41.000Z
Ass2_plots_3.py
sjatakia/OpenGL
489afe0d376fed27914dd718f629e49c823d196a
[ "MIT" ]
null
null
null
Ass2_plots_3.py
sjatakia/OpenGL
489afe0d376fed27914dd718f629e49c823d196a
[ "MIT" ]
null
null
null
import numpy import numpy as np import urllib import scipy.optimize import random from collections import defaultdict import nltk import string from nltk.stem.porter import * from sklearn import linear_model import random from collections import Counter, namedtuple stops = set(nltk.corpus.stopwords.words('english')) f...
30.591241
104
0.736101
64bf7212a35240ddb08bc2a79f4a19aab06eb55b
3,240
py
Python
kubernetes_asyncio/client/models/policy_v1beta1_allowed_csi_driver.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/policy_v1beta1_allowed_csi_driver.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/policy_v1beta1_allowed_csi_driver.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.14.7 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class PolicyV1be...
27.931034
124
0.570679
5b162c47b5025d132cd35966a8ac9570a1fd1c62
1,561
py
Python
src/HoneyMalt/transforms/kipposessions.py
SneakersInc/HoneyMalt
017e1f9e6ab976a747a60a9f847c297361d05519
[ "Apache-2.0" ]
10
2015-03-15T09:02:13.000Z
2020-09-27T07:31:45.000Z
src/HoneyMalt/transforms/kipposessions.py
SneakersInc/HoneyMalt
017e1f9e6ab976a747a60a9f847c297361d05519
[ "Apache-2.0" ]
1
2015-03-03T18:05:39.000Z
2015-03-03T18:05:39.000Z
src/HoneyMalt/transforms/kipposessions.py
SneakersInc/HoneyMalt
017e1f9e6ab976a747a60a9f847c297361d05519
[ "Apache-2.0" ]
4
2016-03-12T12:51:33.000Z
2020-07-12T14:14:50.000Z
#!/usr/bin/env python from common.dbconnect import db_connect from common.entities import KippoSession from canari.maltego.entities import IPv4Address from canari.maltego.message import Field, UIMessage from canari.framework import configure __author__ = 'catalyst256' __copyright__ = 'Copyright 2014, Honeymalt Projec...
29.45283
77
0.634209
5aa17e2ad6a05520dfafae0eb2aef2ad068d9e3a
62
py
Python
katas/kyu_8/format_money.py
the-zebulan/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
40
2016-03-09T12:26:20.000Z
2022-03-23T08:44:51.000Z
katas/kyu_8/format_money.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
null
null
null
katas/kyu_8/format_money.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
36
2016-11-07T19:59:58.000Z
2022-03-31T11:18:27.000Z
def format_money(amount): return '${:.2f}'.format(amount)
20.666667
35
0.66129
242ea4cee5d2d86199a1641bb1091744a9dd1bf8
2,330
py
Python
cesium_app/tests/frontend/test_datasets.py
yaowenxi/cesium
b87c8bcafc8a7707877f8b9e9b111a2a99b5aeee
[ "BSD-3-Clause" ]
41
2016-10-10T23:14:54.000Z
2021-07-08T19:44:14.000Z
cesium_app/tests/frontend/test_datasets.py
cesium-ml/cesium_web
6dd9977ff037982d50f740bfb62012b508eebd29
[ "BSD-3-Clause" ]
200
2016-06-22T19:55:38.000Z
2022-03-22T18:42:19.000Z
cesium_app/tests/frontend/test_datasets.py
yaowenxi/cesium
b87c8bcafc8a7707877f8b9e9b111a2a99b5aeee
[ "BSD-3-Clause" ]
26
2016-04-21T00:50:03.000Z
2019-11-04T20:19:53.000Z
import pytest from selenium import webdriver from selenium.webdriver.support.ui import Select import uuid import os from os.path import join as pjoin test_dataset_name = str(uuid.uuid4()) def test_add_new_dataset(driver, project): driver.get("/") driver.refresh() proj_select = Select(driver.find_element...
40.172414
92
0.702575
aac76fefec5c0691c5e0c73207b9d61b5b2f94ba
560
py
Python
tests/mock_sploits/spl_realtime_output.py
suiljex/DestructiveFarm
e10d786a927cce6965259bc201dce139976ecb03
[ "MIT" ]
159
2018-07-14T18:07:14.000Z
2022-03-08T15:47:49.000Z
tests/mock_sploits/spl_realtime_output.py
suiljex/DestructiveFarm
e10d786a927cce6965259bc201dce139976ecb03
[ "MIT" ]
18
2018-10-16T06:34:18.000Z
2022-03-17T13:18:26.000Z
tests/mock_sploits/spl_realtime_output.py
suiljex/DestructiveFarm
e10d786a927cce6965259bc201dce139976ecb03
[ "MIT" ]
65
2018-10-14T09:05:29.000Z
2022-03-05T17:44:24.000Z
#!/usr/bin/env python3 """ It is better to process output of sploits in real-time. This is a sploit to test such functionality in the farm client. For clarity, use --not-per-team mode in the client. """ import hashlib import os import time def main(): for i in range(10): flag = hashlib.sha256(os.urandom(...
22.4
91
0.655357
d5a5336f41b8b57ce265b23fbdd3bf5d305e5de3
22,120
py
Python
python/ray/autoscaler/autoscaler.py
alexbao/ray
19b743c84b6007ad247e6d00807b3530c6dbc09a
[ "Apache-2.0" ]
null
null
null
python/ray/autoscaler/autoscaler.py
alexbao/ray
19b743c84b6007ad247e6d00807b3530c6dbc09a
[ "Apache-2.0" ]
null
null
null
python/ray/autoscaler/autoscaler.py
alexbao/ray
19b743c84b6007ad247e6d00807b3530c6dbc09a
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import json import hashlib import os import subprocess import time import traceback from collections import defaultdict from datetime import datetime import numpy as np import yaml from ray.ray_constants imp...
38.072289
79
0.60972
9443eb0e7854f56cf62a819cbfcae898b27c7226
9,088
py
Python
speckle/base/client.py
pjkottke/PySpeckle
e332c5e4c76960ab5b698f120c07d0eb15ac2262
[ "MIT" ]
null
null
null
speckle/base/client.py
pjkottke/PySpeckle
e332c5e4c76960ab5b698f120c07d0eb15ac2262
[ "MIT" ]
null
null
null
speckle/base/client.py
pjkottke/PySpeckle
e332c5e4c76960ab5b698f120c07d0eb15ac2262
[ "MIT" ]
null
null
null
"""Speckle Client documentation The SpeckleClient class is used to manage authentication and dispatch request to a given SpeckleServer. Example: Instantiate a client to a given server and register/authenticate to it:: from speckle import SpeckleApiClient client = SpeckleApiClient('myspeckle.spec...
36.645161
137
0.579445
ae6e340fbb3cad0f5d7c3cd249526864562cbae9
6,265
py
Python
cut_tubes.py
Ben-Van-Raemdonck/Cut-Tubes-Kivy
3f6a1092b34fd088d7cc3d8805fab82f06eba998
[ "MIT" ]
null
null
null
cut_tubes.py
Ben-Van-Raemdonck/Cut-Tubes-Kivy
3f6a1092b34fd088d7cc3d8805fab82f06eba998
[ "MIT" ]
null
null
null
cut_tubes.py
Ben-Van-Raemdonck/Cut-Tubes-Kivy
3f6a1092b34fd088d7cc3d8805fab82f06eba998
[ "MIT" ]
null
null
null
""" Creates a list of tubes required from a BOM list, with the lengths to be cut from each tube. author: Ben Van Raemdonck date: 23/09/2021 """ import pandas as pd from tkinter import Tk from tkinter.filedialog import askopenfilename def no_data_tubes(bom_list_path, bom_match, use_size): if use_size: if b...
41.766667
123
0.596808
4e78eb7a9ab43ba31933932bb3fa1e3291747a87
3,752
py
Python
harness/determined/_swagger/client/models/v1_disable_slot_response.py
wbwatkinson/determined
f9e099e06746a79a2eaf51a89acc264fc5c301e1
[ "Apache-2.0" ]
null
null
null
harness/determined/_swagger/client/models/v1_disable_slot_response.py
wbwatkinson/determined
f9e099e06746a79a2eaf51a89acc264fc5c301e1
[ "Apache-2.0" ]
null
null
null
harness/determined/_swagger/client/models/v1_disable_slot_response.py
wbwatkinson/determined
f9e099e06746a79a2eaf51a89acc264fc5c301e1
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Determined API (Beta) Determined helps deep learning teams train models more quickly, easily share GPU resources, and effectively collaborate. Determined allows deep learning engineers to focus on building and training models at scale, without needing to worry about DevOps or writing custo...
31.79661
647
0.595949
fa3f2c0358ac9f4dc20bcafdea62bdd71c4f1f68
30,299
py
Python
s3uploader.py
bglogowski/s3uploader
c84cbf9e62661763e87bd2bd9e74779f46aedbb5
[ "MIT" ]
null
null
null
s3uploader.py
bglogowski/s3uploader
c84cbf9e62661763e87bd2bd9e74779f46aedbb5
[ "MIT" ]
null
null
null
s3uploader.py
bglogowski/s3uploader
c84cbf9e62661763e87bd2bd9e74779f46aedbb5
[ "MIT" ]
null
null
null
# Copyright (c) 2021 Bryan Glogowski # # 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, merge, publish, dis...
34.274887
119
0.569623
1aa6fb9ce84a52343ba110f02457318f48dbf830
314
py
Python
temboo/core/Library/Dropbox/OAuth/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Dropbox/OAuth/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Dropbox/OAuth/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
from temboo.Library.Dropbox.OAuth.FinalizeOAuth import FinalizeOAuth, FinalizeOAuthInputSet, FinalizeOAuthResultSet, FinalizeOAuthChoreographyExecution from temboo.Library.Dropbox.OAuth.InitializeOAuth import InitializeOAuth, InitializeOAuthInputSet, InitializeOAuthResultSet, InitializeOAuthChoreographyExecution
104.666667
161
0.910828
c241e0d1fb73b22be0ea0b64a14aec08ccb869ee
785
py
Python
decorator_example/deco3.py
wapj/pyconkr2019
29a2b97ee31662759b1e26e55644aa37cb0f3884
[ "Apache-2.0" ]
10
2019-08-15T15:29:36.000Z
2019-09-20T07:54:14.000Z
decorator_example/deco3.py
wapj/pyconkr2019
29a2b97ee31662759b1e26e55644aa37cb0f3884
[ "Apache-2.0" ]
null
null
null
decorator_example/deco3.py
wapj/pyconkr2019
29a2b97ee31662759b1e26e55644aa37cb0f3884
[ "Apache-2.0" ]
2
2019-08-15T05:50:48.000Z
2019-08-15T05:51:10.000Z
import time import functools def clock(func): @functools.wraps(func) def clocked(*args, **kwargs): before = time.perf_counter() result = func(*args, **kwargs) elapsed_time = time.perf_counter() - before arg_str = ",".join(repr(arg) for arg in args) if kwargs: ...
21.216216
71
0.606369
e8a71c847b1a4ed9788bb1752c166a623e4876ee
953
py
Python
tools/build_libtorch.py
wxwoods/mctorch
7cd6eb51fdd01fa75ed9245039a4f145ba342de2
[ "BSD-3-Clause" ]
1
2019-07-23T11:20:58.000Z
2019-07-23T11:20:58.000Z
tools/build_libtorch.py
wxwoods/mctorch
7cd6eb51fdd01fa75ed9245039a4f145ba342de2
[ "BSD-3-Clause" ]
null
null
null
tools/build_libtorch.py
wxwoods/mctorch
7cd6eb51fdd01fa75ed9245039a4f145ba342de2
[ "BSD-3-Clause" ]
null
null
null
import argparse from os.path import dirname, abspath import sys # By appending pytorch_root to sys.path, this module can import other torch # modules even when run as a standalone script. i.e., it's okay either you # do `python build_libtorch.py` or `python -m tools.build_libtorch`. pytorch_root = dirname(dirname(absp...
41.434783
75
0.760756
a2ba7c5e57bfbc59bcf632b2dff57d1170137f7b
240
py
Python
0220.Contains Duplicate III/test.py
zhlinh/leetcode
6dfa0a4df9ec07b2c746a13c8257780880ea04af
[ "Apache-2.0" ]
null
null
null
0220.Contains Duplicate III/test.py
zhlinh/leetcode
6dfa0a4df9ec07b2c746a13c8257780880ea04af
[ "Apache-2.0" ]
null
null
null
0220.Contains Duplicate III/test.py
zhlinh/leetcode
6dfa0a4df9ec07b2c746a13c8257780880ea04af
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from solution import Solution # nums = [0, 1, 2, 3, 4, 1, 5, 2] # k = 5 # t = 4 nums = [1, 3, 1] k = 2 t = 1 sol = Solution() res = sol.containsNearbyAlmostDuplicate(nums, k, t) print(res)
16
51
0.575
df3bcad24fd1d474f45034344fb8a8d8f135e049
14,367
py
Python
spectral_clustering.py
MaryZolfaghar/NetflixRecommendationSystem
a11c13127057da8e3261e057958aafd66a4ff4b2
[ "Apache-2.0" ]
null
null
null
spectral_clustering.py
MaryZolfaghar/NetflixRecommendationSystem
a11c13127057da8e3261e057958aafd66a4ff4b2
[ "Apache-2.0" ]
null
null
null
spectral_clustering.py
MaryZolfaghar/NetflixRecommendationSystem
a11c13127057da8e3261e057958aafd66a4ff4b2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Apr 20 03:47:45 2020 @author: Maryam """ import numpy as np import argparse import pickle import time from sklearn.cluster import KMeans, MiniBatchKMeans, SpectralClustering from utils.read_preprocss_data import read_preprocss_data from utils.calc_eig...
43.93578
91
0.509501
c96a00896f609eea3d90240f6d30bdf8d512e028
7,632
py
Python
tests/conftest.py
giandos200/DiCE
b12c369a8327e876f4e14cdc2d01e2f53e471b46
[ "MIT" ]
1
2022-01-07T19:53:44.000Z
2022-01-07T19:53:44.000Z
tests/conftest.py
giandos200/DiCE
b12c369a8327e876f4e14cdc2d01e2f53e471b46
[ "MIT" ]
null
null
null
tests/conftest.py
giandos200/DiCE
b12c369a8327e876f4e14cdc2d01e2f53e471b46
[ "MIT" ]
null
null
null
from collections import OrderedDict import pandas as pd import pytest from sklearn.datasets import load_boston, load_iris from sklearn.model_selection import train_test_split import dice_ml from dice_ml.utils import helpers @pytest.fixture def binary_classification_exp_object(method="random"): backend = 'sklear...
33.182609
123
0.677149
5b7de3d2331183e1685dbd40af79ce13f90a7288
305
py
Python
modelkit/__init__.py
blakeliu/modelkit
ce2dc7c2d03b7ab9a28596ab2e53e2feb5c68ef7
[ "MIT" ]
1
2021-12-10T04:13:39.000Z
2021-12-10T04:13:39.000Z
modelkit/__init__.py
blakeliu/modelkit
ce2dc7c2d03b7ab9a28596ab2e53e2feb5c68ef7
[ "MIT" ]
null
null
null
modelkit/__init__.py
blakeliu/modelkit
ce2dc7c2d03b7ab9a28596ab2e53e2feb5c68ef7
[ "MIT" ]
null
null
null
import warnings from modelkit.core.library import ModelLibrary, load_model # NOQA from modelkit.core.model import Model # NOQA # Silence Tensorflow warnings # https://github.com/tensorflow/tensorflow/issues/30427 warnings.simplefilter(action="ignore", category=FutureWarning) __version__ = "0.0.18"
25.416667
66
0.796721
89fc1d1eef23d23a730fb9212b8ae0196a5524c2
5,660
py
Python
isi_sdk_8_2_1/isi_sdk_8_2_1/models/antivirus_policies_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_1/isi_sdk_8_2_1/models/antivirus_policies_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_1/isi_sdk_8_2_1/models/antivirus_policies_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 8 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from isi_sdk_8_2_1.models.antivir...
31.444444
132
0.600883
0e0e335fbad45bbbc3b1d444e8f480e1758a0669
562
py
Python
diventi/adventures/migrations/0014_auto_20200503_1919.py
flavoi/diven
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
[ "Apache-2.0" ]
2
2019-06-27T16:00:17.000Z
2020-08-14T07:46:05.000Z
diventi/adventures/migrations/0014_auto_20200503_1919.py
flavoi/diven
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
[ "Apache-2.0" ]
26
2020-02-15T22:39:35.000Z
2022-02-19T21:09:01.000Z
diventi/adventures/migrations/0014_auto_20200503_1919.py
flavoi/diven
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
[ "Apache-2.0" ]
1
2021-11-12T22:30:15.000Z
2021-11-12T22:30:15.000Z
# Generated by Django 2.2.12 on 2020-05-03 17:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('adventures', '0013_antagonistgoal_subject'), ] operations = [ migrations.RemoveField( model_name='antagonistgoal', ...
23.416667
71
0.588968
bf1819f528301a528a00970540cd1530c678e9fc
10,474
py
Python
zerver/webhooks/trello/view/card_actions.py
DD2480-group7-2020/zulip
9a1e18bcf383c38c35da168563a7345768c6d784
[ "Apache-2.0" ]
1
2020-02-28T11:26:19.000Z
2020-02-28T11:26:19.000Z
zerver/webhooks/trello/view/card_actions.py
DD2480-group7-2020/zulip
9a1e18bcf383c38c35da168563a7345768c6d784
[ "Apache-2.0" ]
2
2020-09-07T22:32:24.000Z
2021-05-08T18:17:53.000Z
zerver/webhooks/trello/view/card_actions.py
DD2480-group7-2020/zulip
9a1e18bcf383c38c35da168563a7345768c6d784
[ "Apache-2.0" ]
1
2020-07-16T06:00:10.000Z
2020-07-16T06:00:10.000Z
from typing import Any, Dict, Mapping, Optional, Tuple from zerver.lib.exceptions import UnexpectedWebhookEventType SUPPORTED_CARD_ACTIONS = [ u'updateCard', u'createCard', u'addLabelToCard', u'removeLabelFromCard', u'addMemberToCard', u'removeMemberFromCard', u'addAttachmentToCard', u...
41.896
108
0.701165
0568bd41e7d810ae4e6bfa290d75cb1395dc53c4
411
py
Python
backend/yestest_dev_23752/wsgi.py
crowdbotics-dev/yestest-dev-23752
32646c4febb80aebadc9ff7cde665df4a5083cda
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/yestest_dev_23752/wsgi.py
crowdbotics-dev/yestest-dev-23752
32646c4febb80aebadc9ff7cde665df4a5083cda
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/yestest_dev_23752/wsgi.py
crowdbotics-dev/yestest-dev-23752
32646c4febb80aebadc9ff7cde665df4a5083cda
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" WSGI config for yestest_dev_23752 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.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJ...
24.176471
78
0.79562
9d4311065ffa0c848ea900b3f258db4be08b0231
1,816
py
Python
bin/dbtest.py
AXErunners/sentinel
ca951bfcc43b5c098fb61186b8ac04be6d10f13c
[ "MIT" ]
58
2018-03-15T04:13:46.000Z
2019-07-18T02:32:41.000Z
bin/dbtest.py
AXErunners/sentinel
ca951bfcc43b5c098fb61186b8ac04be6d10f13c
[ "MIT" ]
1
2018-10-18T20:54:49.000Z
2018-10-19T04:46:37.000Z
bin/dbtest.py
AXErunners/sentinel
ca951bfcc43b5c098fb61186b8ac04be6d10f13c
[ "MIT" ]
50
2018-04-18T21:41:00.000Z
2021-03-01T10:16:07.000Z
# -*- coding: utf-8 -*- import pdb from pprint import pprint import re import sys import os sys.path.append(os.path.normpath(os.path.join(os.path.dirname(__file__), '../lib'))) import config from models import Superblock, Proposal, GovernanceObject, Setting, Signal, Vote, Outcome from models import VoteSignals, VoteOut...
28.825397
98
0.680066
66b9c2b20c77d80ac0d1c534f92e29380a98024d
267
py
Python
python3/june/day_4_Reverse String.py
kashyapvinay/leetcode-challenge
750b0056cb547dc5266d142a9a5048ebd50d8ae3
[ "MIT" ]
1
2020-06-01T11:35:46.000Z
2020-06-01T11:35:46.000Z
python3/june/day_4_Reverse String.py
kashyapvinay/leetcode-challenge
750b0056cb547dc5266d142a9a5048ebd50d8ae3
[ "MIT" ]
null
null
null
python3/june/day_4_Reverse String.py
kashyapvinay/leetcode-challenge
750b0056cb547dc5266d142a9a5048ebd50d8ae3
[ "MIT" ]
null
null
null
class Solution: def reverseString(self, s: List[str]) -> None: """ Do not return anything, modify s in-place instead. """ i,j = 0, len(s)-1 while i < j: s[i], s[j] = s[j], s[i] i+=1 j-=1
24.272727
58
0.419476
82ca469ed2c198889bcc15a3126ecb98d36a9532
277
py
Python
test.py
zengduo/flasktest
d10743f8626eff26d18483e5241f9612157fd026
[ "MIT" ]
null
null
null
test.py
zengduo/flasktest
d10743f8626eff26d18483e5241f9612157fd026
[ "MIT" ]
null
null
null
test.py
zengduo/flasktest
d10743f8626eff26d18483e5241f9612157fd026
[ "MIT" ]
null
null
null
import unittest from application import Storage class TestSuite(unittest.TestCase): def test(self): storage = Storage() storage.populate() score = storage.score() self.failIf(score != 1234) def main(): unittest.main() if __name__ == "__main__": main()
17.3125
35
0.68231
0d2e7a4bdfc41767b3d4b05d0dafa1fecdfbc2b4
19,645
py
Python
filebrowser/base.py
ricktaylord/django-filebrowser
49edd8423709f1902e2d0404d803e69877f160ba
[ "BSD-3-Clause" ]
null
null
null
filebrowser/base.py
ricktaylord/django-filebrowser
49edd8423709f1902e2d0404d803e69877f160ba
[ "BSD-3-Clause" ]
null
null
null
filebrowser/base.py
ricktaylord/django-filebrowser
49edd8423709f1902e2d0404d803e69877f160ba
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # PYTHON IMPORTS import os import datetime import time import platform import mimetypes from tempfile import NamedTemporaryFile import warnings import logging # DJANGO IMPORTS from django.core.files import File from django.utils.six import string_types # FILEBROWSER IMPORTS from filebrowser.settings...
32.796327
203
0.632527
77c0f4bb8ec0a6106fcd3cac925d5d175fe5a5e1
364
py
Python
test.py
jinde-liu/deeplabv3-_occ5000
c959923d54b650bf405804afe1befcfc893c822b
[ "MIT" ]
null
null
null
test.py
jinde-liu/deeplabv3-_occ5000
c959923d54b650bf405804afe1befcfc893c822b
[ "MIT" ]
null
null
null
test.py
jinde-liu/deeplabv3-_occ5000
c959923d54b650bf405804afe1befcfc893c822b
[ "MIT" ]
null
null
null
import os import numpy as np from dataloaders import make_data_loader from args import Args_occ5000 args = Args_occ5000() kwargs = {'num_workers': args.workers, 'pin_memory': True} train_loader, val_loader, test_loader, nclass = make_data_loader(args, **kwargs) for sample in train_loader: image = sample['image'] ...
33.090909
80
0.758242
8bbcfc3cc39f68489b0709c155ab6cdaefad516b
1,362
py
Python
src/message_dao.py
WLIU0628/lkml-gerrit-bridge
25954369d4afa5676f410e86ff390596a20ad6b9
[ "Apache-2.0" ]
null
null
null
src/message_dao.py
WLIU0628/lkml-gerrit-bridge
25954369d4afa5676f410e86ff390596a20ad6b9
[ "Apache-2.0" ]
null
null
null
src/message_dao.py
WLIU0628/lkml-gerrit-bridge
25954369d4afa5676f410e86ff390596a20ad6b9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.842105
103
0.726138
d3daaf0959b3267e662cacd6bc4925e31072df0a
2,690
py
Python
mrmat_python_api_flask/apis/resource/v1/model.py
MrMatOrg/mrmat-python-api-flask
404561d5d817ab0703487fb1119ebae6554a6bca
[ "MIT" ]
null
null
null
mrmat_python_api_flask/apis/resource/v1/model.py
MrMatOrg/mrmat-python-api-flask
404561d5d817ab0703487fb1119ebae6554a6bca
[ "MIT" ]
null
null
null
mrmat_python_api_flask/apis/resource/v1/model.py
MrMatOrg/mrmat-python-api-flask
404561d5d817ab0703487fb1119ebae6554a6bca
[ "MIT" ]
1
2021-07-25T14:31:27.000Z
2021-07-25T14:31:27.000Z
# MIT License # # Copyright (c) 2021 MrMat # # 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, merge, ...
36.351351
91
0.736059
9df22a52174a6bdeff5eba1afee8292a97b282b9
50,277
py
Python
docker/api/container.py
jbn/docker-py
1e38d31c9fc74d07cb8dd3b7b100723bfacd23f7
[ "Apache-2.0" ]
null
null
null
docker/api/container.py
jbn/docker-py
1e38d31c9fc74d07cb8dd3b7b100723bfacd23f7
[ "Apache-2.0" ]
null
null
null
docker/api/container.py
jbn/docker-py
1e38d31c9fc74d07cb8dd3b7b100723bfacd23f7
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import six from .. import errors from .. import utils from ..constants import DEFAULT_DATA_CHUNK_SIZE from ..types import CancellableStream from ..types import ContainerConfig from ..types import EndpointConfig from ..types import HostConfig from ..types import NetworkingConfig class C...
38.883991
80
0.560992
c4a43c8a34de9edfd447854dc29de7924f54c6b6
5,427
py
Python
slot_language/utils.py
jiaqi-xi/slot_attention
8420414eb261501e5b056e4d409c338d909397ef
[ "Apache-2.0" ]
null
null
null
slot_language/utils.py
jiaqi-xi/slot_attention
8420414eb261501e5b056e4d409c338d909397ef
[ "Apache-2.0" ]
null
null
null
slot_language/utils.py
jiaqi-xi/slot_attention
8420414eb261501e5b056e4d409c338d909397ef
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np from PIL import Image from typing import Any from typing import Tuple from typing import TypeVar from typing import Union import torch from pytorch_lightning import Callback import wandb Tensor = TypeVar("torch.tensor") T = TypeVar("T") TK = TypeVar("TK") TV = TypeVar("TV") def conv_t...
31.736842
79
0.543763
46f3a6fa9616e44d382d9581329e49587bdb4b6c
1,411
py
Python
botty_mcbotface/plugins/seen.py
ColumbiaSC-Tech/botty_mcbotface
f72fbc7e899650b40b0cf0197c9e6006a5224669
[ "MIT" ]
11
2017-09-16T21:00:52.000Z
2020-10-08T19:58:09.000Z
botty_mcbotface/plugins/seen.py
ColumbiaSC-Tech/botty_mcbotface
f72fbc7e899650b40b0cf0197c9e6006a5224669
[ "MIT" ]
12
2018-10-30T23:52:34.000Z
2021-12-13T19:46:21.000Z
botty_mcbotface/plugins/seen.py
ColumbiaSC-Tech/botty_mcbotface
f72fbc7e899650b40b0cf0197c9e6006a5224669
[ "MIT" ]
3
2017-09-15T13:22:37.000Z
2019-08-01T11:42:14.000Z
from slackbot.bot import listen_to, re from datetime import datetime from botty_mcbotface import bot_tz from botty_mcbotface.botty import api @listen_to('^\.seen (.*)', re.IGNORECASE) def seen(message, text): """ Check the last time a user was seen posting publicly on Slack. :param message: Slackbot messa...
36.179487
108
0.659816
dc7074acffb495b3f87bc6bc64ac44069afd756a
7,134
py
Python
tests/helpers/test_config_validation.py
fearoffish/home-assistant
8ef542927f8c795ed1206d1e0cde41ce822af147
[ "MIT" ]
null
null
null
tests/helpers/test_config_validation.py
fearoffish/home-assistant
8ef542927f8c795ed1206d1e0cde41ce822af147
[ "MIT" ]
null
null
null
tests/helpers/test_config_validation.py
fearoffish/home-assistant
8ef542927f8c795ed1206d1e0cde41ce822af147
[ "MIT" ]
null
null
null
from datetime import timedelta import pytest import voluptuous as vol import homeassistant.helpers.config_validation as cv from tests.common import get_test_home_assistant def test_boolean(): """Test boolean validation.""" schema = vol.Schema(cv.boolean) for value in ('T', 'negative', 'lock'): ...
23.313725
72
0.5649
b979ac0435e58ae45012c1ca0fe1d844a11a94da
18,957
py
Python
tests/components/modbus/test_sensor.py
lkempf/core
8d7744a74f6f28657941dc095fb5a197e726ffff
[ "Apache-2.0" ]
1
2021-04-20T09:51:31.000Z
2021-04-20T09:51:31.000Z
tests/components/modbus/test_sensor.py
lkempf/core
8d7744a74f6f28657941dc095fb5a197e726ffff
[ "Apache-2.0" ]
null
null
null
tests/components/modbus/test_sensor.py
lkempf/core
8d7744a74f6f28657941dc095fb5a197e726ffff
[ "Apache-2.0" ]
null
null
null
"""The tests for the Modbus sensor component.""" import pytest from homeassistant.components.modbus.const import ( CALL_TYPE_REGISTER_HOLDING, CALL_TYPE_REGISTER_INPUT, CONF_DATA_TYPE, CONF_INPUT_TYPE, CONF_LAZY_ERROR, CONF_PRECISION, CONF_SCALE, CONF_SWAP, CONF_SWAP_BYTE, CONF_...
27.197991
115
0.424487
5fd9e75f01bb192dc1845a566a4ec8046fa0df7b
4,208
py
Python
indexing_system/indexing/task4.py
DougZaoldyeck/provnet
46d5215bcea4b63886a42d4ab1d3451101ba2d6b
[ "Apache-2.0" ]
null
null
null
indexing_system/indexing/task4.py
DougZaoldyeck/provnet
46d5215bcea4b63886a42d4ab1d3451101ba2d6b
[ "Apache-2.0" ]
null
null
null
indexing_system/indexing/task4.py
DougZaoldyeck/provnet
46d5215bcea4b63886a42d4ab1d3451101ba2d6b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from subprocess import Popen, PIPE import numpy import sys ## GLOBALS ## K_VALS = [1, 2, 3] SIZES = ['sml', 'med', 'lrg'] K_INSERT_DICT = { 'sml': { 1: [], 2: [], 3: [],}, 'med': {...
36.912281
174
0.455323
57b68ecd5dfc2ee78e2ab9c27c939cf45fa61175
4,193
py
Python
initial_research/oop.py
EibrielInv/OpenOntoAgent
88e6a8abb05a20a50f2b053952752783077def9f
[ "Apache-2.0" ]
2
2022-02-16T23:15:18.000Z
2022-03-03T02:53:18.000Z
initial_research/oop.py
EibrielInv/OpenOntoAgent
88e6a8abb05a20a50f2b053952752783077def9f
[ "Apache-2.0" ]
null
null
null
initial_research/oop.py
EibrielInv/OpenOntoAgent
88e6a8abb05a20a50f2b053952752783077def9f
[ "Apache-2.0" ]
null
null
null
from constraint import * # Ontology class Onto: def __init__(self): self.ontology = { "INGEST": { "AGENT": { "SEM": "ANIMAL", "RELAXABLE-TO": ["SOCIAL-OBJECT"] }, "THEME": { "SEM": ["FOO...
22.664865
78
0.471023
3c275d417185ea6070bb9566698798b255e59860
9,894
py
Python
progs/SQLAlchemy-serializer-master/SQLAlchemy-serializer-master/tests/test_flat_model.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
progs/SQLAlchemy-serializer-master/SQLAlchemy-serializer-master/tests/test_flat_model.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
progs/SQLAlchemy-serializer-master/SQLAlchemy-serializer-master/tests/test_flat_model.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
from .models import FlatModel, DATETIME, TIME, DATE, MONEY def test_no_defaults_no_rules(get_instance): """ Checks to_dict method of flat model with no predefined options :param get_instance: :return: """ i = get_instance(FlatModel) data = i.to_dict() # Check SQLAlchemy fields ass...
30.631579
111
0.646857
3685748719feed087939e899edac351a505160c4
8,451
py
Python
SciDataTool/Methods/VectorField/plot_2D_Data_Animated.py
GauthierGar/SciDataTool
6208e8c061dcf57f94da940e3ef66b13c337328a
[ "Apache-2.0" ]
null
null
null
SciDataTool/Methods/VectorField/plot_2D_Data_Animated.py
GauthierGar/SciDataTool
6208e8c061dcf57f94da940e3ef66b13c337328a
[ "Apache-2.0" ]
null
null
null
SciDataTool/Methods/VectorField/plot_2D_Data_Animated.py
GauthierGar/SciDataTool
6208e8c061dcf57f94da940e3ef66b13c337328a
[ "Apache-2.0" ]
null
null
null
import numpy as np import imageio import matplotlib.pyplot as plt from SciDataTool.Functions.Plot.init_fig import init_fig, copy_fig def plot_2D_Data_Animated( self, animated_axis, *arg_list, nb_frames=50, fps=10, axis_data=None, radius=None, is_norm=False, unit="SI", component...
33.669323
154
0.587623
c5ccaec346df585c52931b559de3538bf4d1d92b
17,092
py
Python
vscode/extensions/ms-python.python-2019.2.5558/pythonFiles/lib/python/ptvsd/daemon.py
L2D22/dotfiles
0a01648e338159ef0cd998f6e0265beb7dc06fbf
[ "MIT" ]
null
null
null
vscode/extensions/ms-python.python-2019.2.5558/pythonFiles/lib/python/ptvsd/daemon.py
L2D22/dotfiles
0a01648e338159ef0cd998f6e0265beb7dc06fbf
[ "MIT" ]
null
null
null
vscode/extensions/ms-python.python-2019.2.5558/pythonFiles/lib/python/ptvsd/daemon.py
L2D22/dotfiles
0a01648e338159ef0cd998f6e0265beb7dc06fbf
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. import contextlib import sys import threading from ptvsd import wrapper, options, multiproc from ptvsd.socket import ( close_socket, create_server, cre...
31.189781
80
0.553709
fd4e2d6e47a375e1a05c16691e926ad8788be875
27,039
py
Python
suitesparse_graphblas/create_headers.py
GraphBLAS/python-suitesparse-graphblas
9585e0cba0cea629cf7135c6d23e6d23eb8b1952
[ "Apache-2.0" ]
8
2021-05-28T18:51:12.000Z
2022-03-17T10:25:04.000Z
suitesparse_graphblas/create_headers.py
GraphBLAS/python-suitesparse-graphblas
9585e0cba0cea629cf7135c6d23e6d23eb8b1952
[ "Apache-2.0" ]
20
2021-04-07T18:44:09.000Z
2022-03-31T13:30:31.000Z
suitesparse_graphblas/create_headers.py
GraphBLAS/python-suitesparse-graphblas
9585e0cba0cea629cf7135c6d23e6d23eb8b1952
[ "Apache-2.0" ]
4
2021-04-09T04:52:55.000Z
2021-08-06T20:19:18.000Z
""" Script to generate suitesparse_graphblas.h, suitesparse_graphblas_no_complex.h, and source.c files. - Copy the SuiteSparse header file GraphBLAS.h to the local directory. - Run the C preprocessor (cleans it up, but also loses #define values). - Parse the processed header file using pycparser. - Cre...
31.661593
100
0.60875
436214580af0cb0491640f5cd2ca3e3e829a556b
16,316
py
Python
src/test/test_pegin.py
backpacker69/libwally-core
ff0e456a63b1a1db980222302f1caa339750e743
[ "MIT" ]
null
null
null
src/test/test_pegin.py
backpacker69/libwally-core
ff0e456a63b1a1db980222302f1caa339750e743
[ "MIT" ]
null
null
null
src/test/test_pegin.py
backpacker69/libwally-core
ff0e456a63b1a1db980222302f1caa339750e743
[ "MIT" ]
null
null
null
import unittest from util import * SCRIPT_HASH160 = 0x1 SCRIPT_SHA256 = 0x2 FLAG_CHECKSUM = 0x1 # liquidv1 fedpegscript federation_script, federation_script_len = make_cbuffer('745c87635b21020e0338c96a8870479f2396c373cc7696ba124e8635d41b0ea581112b678172612102675333a4e4b8fb51d9d4e22fa5a8eaced3fdac8a8cbf9be8c030f75712...
84.979167
1,358
0.797132
8326089b04a411bcf5134cb1bb89bd3a86360e13
837
py
Python
python/is_antilist.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
3
2020-11-18T05:16:30.000Z
2021-03-08T06:36:01.000Z
python/is_antilist.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
null
null
null
python/is_antilist.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
1
2021-01-20T12:41:48.000Z
2021-01-20T12:41:48.000Z
""" is_anti_list(["1", "0", "0", "1"], ["0", "1", "1", "0"]) ➞ True is_anti_list(["apples", "bananas", "bananas"], ["bananas", "apples", "apples"]) ➞ True is_anti_list([3.14, True, 3.14], [3.14, False, 3.14]) ➞ False """ def is_anti_list(list1, list2) -> bool: if len(list1) ...
32.192308
86
0.519713
a55e90792b7eb9b42c2a80ebd0f5201599fd7296
9,549
py
Python
dataset.py
mawanda-jun/TReNDS-neuroimaging
8075f4196e7eb812ce96b5a10b18d13c293ce727
[ "MIT" ]
1
2020-06-28T18:13:49.000Z
2020-06-28T18:13:49.000Z
dataset.py
mawanda-jun/TReNDS-neuroimaging
8075f4196e7eb812ce96b5a10b18d13c293ce727
[ "MIT" ]
null
null
null
dataset.py
mawanda-jun/TReNDS-neuroimaging
8075f4196e7eb812ce96b5a10b18d13c293ce727
[ "MIT" ]
1
2022-03-18T13:13:10.000Z
2022-03-18T13:13:10.000Z
import os from tqdm import tqdm import numpy as np import pandas as pd from torch.utils.data import Dataset import torch from monai.transforms import \ RandAffine, \ RandGaussianNoise, \ RandShiftIntensity, \ RandSpatialCrop, \ Resize, \ RandFlip, \ RandScaleIntensity, \ RandRotate cla...
36.307985
126
0.618808
4284fcab6a09f38f425e2c531fdb7033ab979e19
3,616
py
Python
flow/service/board/board_service.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
39
2021-10-12T01:43:27.000Z
2022-03-28T04:46:35.000Z
flow/service/board/board_service.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
6
2021-10-14T02:11:47.000Z
2022-03-23T02:41:50.000Z
flow/service/board/board_service.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
10
2021-10-14T09:36:03.000Z
2022-02-10T11:05:12.000Z
# Copyright 2021 Tianmian Tech. 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...
28.031008
114
0.592091
c68dd0a552daf8533aaeeea72cd2dbcac46e4763
3,975
py
Python
f5/bigip/tm/sys/test/unit/test_daemon_log_settings.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
272
2016-02-23T06:05:44.000Z
2022-02-20T02:09:32.000Z
f5/bigip/tm/sys/test/unit/test_daemon_log_settings.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
1,103
2016-02-11T17:48:03.000Z
2022-02-15T17:13:37.000Z
f5/bigip/tm/sys/test/unit/test_daemon_log_settings.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
167
2016-02-11T17:48:21.000Z
2022-01-17T20:13:05.000Z
# Copyright 2017 F5 Networks Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
31.547619
78
0.695094
06182fc6a105d13a39e8b7e516711a34d9105430
3,755
py
Python
tests/test_advanced_config.py
simonwiles/xmltotabular
13c8b60e383aa16db662c744e57578f2b7e2ed57
[ "MIT" ]
2
2020-09-26T23:57:00.000Z
2021-06-16T23:59:46.000Z
tests/test_advanced_config.py
simonwiles/xmltotabular
13c8b60e383aa16db662c744e57578f2b7e2ed57
[ "MIT" ]
23
2020-11-09T05:43:50.000Z
2021-10-21T19:29:47.000Z
tests/test_advanced_config.py
simonwiles/xmltotabular
13c8b60e383aa16db662c744e57578f2b7e2ed57
[ "MIT" ]
null
null
null
import yaml from xmltotabular import XmlDocToTabular def test_concatenation_of_multiple_results(): """Tests that the <joiner> syntax is properly implemented.""" config = yaml.safe_load( r""" album: <entity>: album <fields>: name: name artist: artis...
42.670455
89
0.595206
c05314d7ccca2c8582eac1c4c7870359737038fd
130
py
Python
test/src/lib/idol/py_data/codegen/tests/basic/test_literal_top.py
lyric-com/idol
285005e9ddaa92b2284b7e9c28cd12f1e34746ec
[ "MIT" ]
null
null
null
test/src/lib/idol/py_data/codegen/tests/basic/test_literal_top.py
lyric-com/idol
285005e9ddaa92b2284b7e9c28cd12f1e34746ec
[ "MIT" ]
2
2020-03-24T18:03:10.000Z
2020-03-31T10:41:56.000Z
test/src/lib/idol/py_data/codegen/tests/basic/test_literal_top.py
lyric-com/idol
285005e9ddaa92b2284b7e9c28cd12f1e34746ec
[ "MIT" ]
null
null
null
# DO NOT EDIT # This file was generated by idol_data, any changes will be lost when idol_data is rerun again TestLiteralTop = str
32.5
94
0.784615