hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7392517ae65d5a13b2161344bedcf4a339c75e28
3,999
py
Python
src/Network.py
ZackWolf614/BlackBird
1575127c611be0f9aa606a25f898b58b5f1afd9d
[ "MIT" ]
5
2018-06-05T00:42:44.000Z
2019-08-10T05:36:06.000Z
src/Network.py
jordan-singer/BlackBird
1575127c611be0f9aa606a25f898b58b5f1afd9d
[ "MIT" ]
39
2018-05-17T02:31:45.000Z
2021-02-02T21:46:08.000Z
src/Network.py
ZackWolf614/BlackBird
1575127c611be0f9aa606a25f898b58b5f1afd9d
[ "MIT" ]
2
2018-06-05T00:53:35.000Z
2018-08-17T23:06:04.000Z
import numpy as np import tensorflow as tf import json import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' class Network: def __init__(self, name, networkConstructor=None, tensorflowConfig={}): self.batchCount = 0 self.graph = tf.Graph() gpuOptions = tensorflowConfig.get( 'GPU...
35.705357
75
0.610653
739253a8461f536eb86edbee8c872a23faa56bb0
4,180
py
Python
applications/plot_data_paper2.py
RaulRPrado/tev-binaries-model
c60959caaffbcdf3398914b03531647f95e97da0
[ "Apache-2.0" ]
1
2020-06-03T15:39:38.000Z
2020-06-03T15:39:38.000Z
applications/plot_data_paper2.py
RaulRPrado/tev-binaries-model
c60959caaffbcdf3398914b03531647f95e97da0
[ "Apache-2.0" ]
null
null
null
applications/plot_data_paper2.py
RaulRPrado/tev-binaries-model
c60959caaffbcdf3398914b03531647f95e97da0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import matplotlib.pyplot as plt import logging import math from astropy import units as u from tgblib import util from tgblib.data import get_data, get_data_ul logging.getLogger().setLevel(logging.INFO) if __name__ == '__main__': util.set_my_fonts(mode='talk') show = False label = ...
25.180723
85
0.517464
73927a84a4e88a5d7d3cdf041258ff38154666f7
1,214
py
Python
scf/chkfile.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
scf/chkfile.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
scf/chkfile.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # import h5py import pyscf.gto from pyscf.lib.chkfile import load_chkfile_key, load from pyscf.lib.chkfile import dump_chkfile_key, dump, save from pyscf.lib.chkfile import load_mol, save_mol def load_scf(chkfile): return load_mol(chkfile), load(...
31.128205
62
0.558484
73928333634f09c65d44fd09e34b9fe67b860dda
189
py
Python
tests/test_socfaker_logs.py
atstpls/soc-faker
119fcb9c4329a918ef9001ac5eaa36251b862bf0
[ "MIT" ]
122
2020-02-21T16:06:54.000Z
2022-03-21T13:53:03.000Z
tests/test_socfaker_logs.py
atstpls/soc-faker
119fcb9c4329a918ef9001ac5eaa36251b862bf0
[ "MIT" ]
13
2020-01-29T16:37:05.000Z
2022-01-27T21:30:10.000Z
tests/test_socfaker_logs.py
atstpls/soc-faker
119fcb9c4329a918ef9001ac5eaa36251b862bf0
[ "MIT" ]
20
2020-04-10T11:59:29.000Z
2022-02-10T09:20:26.000Z
def test_socfaker_logs_syslog(socfaker_fixture): assert socfaker_fixture.logs.syslog(count=1) def test_socfaker_logs_windows(socfaker_fixture): assert socfaker_fixture.logs.windows
37.8
49
0.846561
7392eec7be9aa0b2a855da7296d1547f803d0ef0
3,370
py
Python
src/ggrc_workflows/migrations/utils/task_group_task_date_calculator/quarterly_cycle_calculator.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc_workflows/migrations/utils/task_group_task_date_calculator/quarterly_cycle_calculator.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc_workflows/migrations/utils/task_group_task_date_calculator/quarterly_cycle_calculator.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ Calculator for task group task start_, end_ dates in annual Workflow """ import datetime from dateutil import relativedelta from ggrc_workflows.migrations.utils.task_group_task_date_calculator import \ ...
40.119048
79
0.649555
7392fb3ce44bc892a77fe91520a93adb28c38fc8
4,367
py
Python
ch05/code/ch05-04_snap_point2line.py
MatthiasWunsch/python-geospatial-analysis-cookbook
88946ca6242283c9110488c64ac44057a53e2831
[ "MIT" ]
98
2015-06-14T08:42:21.000Z
2022-03-09T16:48:43.000Z
ch05/code/ch05-04_snap_point2line.py
MatthiasWunsch/python-geospatial-analysis-cookbook
88946ca6242283c9110488c64ac44057a53e2831
[ "MIT" ]
6
2015-12-23T09:56:33.000Z
2022-02-13T20:06:05.000Z
ch05/code/ch05-04_snap_point2line.py
MatthiasWunsch/python-geospatial-analysis-cookbook
88946ca6242283c9110488c64ac44057a53e2831
[ "MIT" ]
43
2015-08-24T13:13:32.000Z
2022-03-14T20:55:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from shapely.geometry import asShape import json import os from pyproj import Proj, transform # define the pyproj CRS # our output CRS wgs84 = Proj("+init=EPSG:4326") # output CRS pseudo_mercator = Proj("+init=EPSG:3857") def transform_point(in_point, in_crs, out_crs): ...
34.65873
192
0.690634
7392ffaa11f710fe6ec060d5a7e84b0e6d9982fb
76
py
Python
src/hub/dataload/sources/sider/__init__.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
10
2017-07-24T11:45:27.000Z
2022-02-14T13:42:36.000Z
src/hub/dataload/sources/sider/__init__.py
veleritas/mychem.info
bb22357d4cbbc3c4865da224bf998f2cbc59f8f2
[ "Apache-2.0" ]
92
2017-06-22T16:49:20.000Z
2022-03-24T20:50:01.000Z
src/hub/dataload/sources/sider/__init__.py
veleritas/mychem.info
bb22357d4cbbc3c4865da224bf998f2cbc59f8f2
[ "Apache-2.0" ]
11
2017-06-12T18:31:35.000Z
2022-01-31T02:56:52.000Z
from .sider_upload import SiderUploader from .sider_dump import SiderDumper
25.333333
39
0.868421
7393672a2c822b9696a7c64330f8ca1be1337601
12,314
py
Python
tests/integration/api/v2010/account/sip/test_domain.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
tests/integration/api/v2010/account/sip/test_domain.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
tests/integration/api/v2010/account/sip/test_domain.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class DomainTestCase(Integration...
45.607407
200
0.567078
739374fe48fc7c6a4a98d11bcaf1b1978411a3fc
2,669
py
Python
multicurrency/dram.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
2
2021-03-26T18:19:57.000Z
2021-07-27T01:15:50.000Z
multicurrency/dram.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
multicurrency/dram.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # # copyright: 2020-2022, Frederico Martins # author: Frederico Martins <http://github.com/fscm> # license: SPDX-License-Identifier: MIT """Dram currency representation(s).""" from decimal import Decimal from typing import Optional, Union from .currency import Currency class ArmenianDram(Cur...
34.662338
77
0.610341
7393dc1e9844e7a90336027755e933c5316cfd2d
2,135
py
Python
create_jobs_for_perf_eval.py
kirilenkobm/BDCSP
ca76880e98316ac7a8d4d95310b2d214a194d65a
[ "MIT" ]
null
null
null
create_jobs_for_perf_eval.py
kirilenkobm/BDCSP
ca76880e98316ac7a8d4d95310b2d214a194d65a
[ "MIT" ]
1
2019-09-11T07:02:29.000Z
2019-09-11T07:02:29.000Z
create_jobs_for_perf_eval.py
kirilenkobm/BDCSP
ca76880e98316ac7a8d4d95310b2d214a194d65a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Create cluster jobs for performance evaluation.""" import os import random DATASETS_DIR = "tests/input_files" JOBS_NUM = 400 JOBS_DIR = "perf_jobs" RES_DIR = "perf_results" COMBINED = "perf_comb_jobs.txt" def parts(lst, n): """Split an iterable into parts with size n.""" return [lst...
34.435484
105
0.604215
739406bb122d845e0d6a50faf05c88f9f9bbedb3
4,715
py
Python
test/test_api.py
rgilham/inventree-python
9431d0479ee9ddb05bb4345ee68c3fd2d9029c70
[ "MIT" ]
null
null
null
test/test_api.py
rgilham/inventree-python
9431d0479ee9ddb05bb4345ee68c3fd2d9029c70
[ "MIT" ]
null
null
null
test/test_api.py
rgilham/inventree-python
9431d0479ee9ddb05bb4345ee68c3fd2d9029c70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import os import sys sys.path.append(os.path.abspath(os.path.dirname(__file__))) from inventree import base # noqa: E402 from inventree import api # noqa: E402 from inventree import part # noqa: E402 from inventree import stock # noqa: E402 SERVER = os.environ.get('INVE...
26.942857
96
0.619088
7394563abd5aeb86b957b0a590af95ac24e93ce1
1,608
py
Python
webserver/lswb/webserver3d.py
zeroam/build-your-own-x
e7932cd25145aa3c347511db6846b1242dbb30eb
[ "MIT" ]
null
null
null
webserver/lswb/webserver3d.py
zeroam/build-your-own-x
e7932cd25145aa3c347511db6846b1242dbb30eb
[ "MIT" ]
5
2021-04-08T21:59:04.000Z
2022-02-10T14:19:59.000Z
webserver/lswb/webserver3d.py
zeroam/build-your-own-x
e7932cd25145aa3c347511db6846b1242dbb30eb
[ "MIT" ]
null
null
null
"""Concurrent server - webserver3d.py - Child process sleeps for 60 seconds after handling a client's request - Parent and child processes close duplicate descriptors """ import os import socket import time SERVER_ADDRESS = (HOST, PORT) = "", 8888 REQUEST_QUEUE_SIZE = 5 def handle_request(client_connection): re...
28.714286
71
0.663557
739459a7644235f6c929b1bc47069631243a2a79
3,964
py
Python
UtilsHandler/BenchmarkHandler.py
GitiHubi/deepContinualAuditing
858830cb72b4c772120a623da753c0c5d535ee4e
[ "MIT" ]
null
null
null
UtilsHandler/BenchmarkHandler.py
GitiHubi/deepContinualAuditing
858830cb72b4c772120a623da753c0c5d535ee4e
[ "MIT" ]
null
null
null
UtilsHandler/BenchmarkHandler.py
GitiHubi/deepContinualAuditing
858830cb72b4c772120a623da753c0c5d535ee4e
[ "MIT" ]
1
2022-02-24T11:10:50.000Z
2022-02-24T11:10:50.000Z
import numpy as np import random import copy from avalanche.benchmarks.generators import ni_benchmark class BenchmarkHandler(object): def __init__(self): pass def get_benchmark(self, params, payment_ds, exp_assignments): benchmark = ni_benchmark(payment_ds, p...
40.865979
106
0.608729
7394c1bfe21f383ebf70c449abbe02d9ebdd20ff
2,284
py
Python
ForgeSVN/forgesvn/tests/functional/test_auth.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
1
2017-07-31T23:13:58.000Z
2017-07-31T23:13:58.000Z
ForgeSVN/forgesvn/tests/functional/test_auth.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
ForgeSVN/forgesvn/tests/functional/test_auth.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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 Apach...
38.066667
76
0.66944
7394ebf82fd6428d04eaa8bc1b36c3a7914af70c
4,936
py
Python
tests/plugins/test_context.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
17
2019-02-04T12:58:10.000Z
2021-07-16T12:36:23.000Z
tests/plugins/test_context.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
201
2018-08-07T19:39:10.000Z
2022-03-15T00:20:24.000Z
tests/plugins/test_context.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
5
2019-06-07T15:45:34.000Z
2021-10-13T18:49:52.000Z
import re import pytest from barril.units import Scalar from alfasim_sdk._internal.constants import EmulsionModelType from alfasim_sdk._internal.constants import HydrodynamicModelType from alfasim_sdk._internal.constants import SolidsModelType from alfasim_sdk._internal.context import EdgeInfo from alfasim_sdk._inter...
36.562963
116
0.678079
7394ec68561a24c8b82576b2173c26922f0270ad
4,235
py
Python
accounts/account_test/run_noui.py
caizhanjin/vnpy
c0886dbd8eba7f506634b1700dfd09b0b098ef26
[ "MIT" ]
5
2020-09-13T05:07:38.000Z
2020-12-26T15:10:00.000Z
accounts/account_test/run_noui.py
caizhanjin/vnpy
c0886dbd8eba7f506634b1700dfd09b0b098ef26
[ "MIT" ]
null
null
null
accounts/account_test/run_noui.py
caizhanjin/vnpy
c0886dbd8eba7f506634b1700dfd09b0b098ef26
[ "MIT" ]
2
2020-06-03T06:40:31.000Z
2020-06-12T14:55:17.000Z
import os import sys ROOT_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) sys.path.append(ROOT_PATH) if not os.path.exists(".vntrader"): os.mkdir(".vntrader") import multiprocessing from time import sleep from datetime import datetime, time from logging import INFO, DEBUG from vnpy.tra...
28.046358
80
0.674144
7394ff38e53a752f0724bfe740d60a78ae5587d7
9,934
py
Python
march_madness/source/aggregated_stats.py
lucabasa/kaggle_competitions
15296375dc303218093aa576533fb809a4540bb8
[ "Apache-2.0" ]
1
2021-01-31T19:33:30.000Z
2021-01-31T19:33:30.000Z
march_madness/source/aggregated_stats.py
lucabasa/kaggle_competitions
15296375dc303218093aa576533fb809a4540bb8
[ "Apache-2.0" ]
4
2021-08-23T21:00:16.000Z
2021-08-23T21:07:45.000Z
march_madness/source/aggregated_stats.py
lucabasa/kaggle_competitions
15296375dc303218093aa576533fb809a4540bb8
[ "Apache-2.0" ]
null
null
null
__author__ = 'lucabasa' __version__ = '4.0.0' __status__ = 'development' import pandas as pd import numpy as np from source.add_info import big_wins, perc_OT_win, add_days def process_details(data, rank_loc=None): ''' This function processes individual games by creating advanced statistics It also fl...
44.747748
114
0.552647
73950088a0531d570d5f2ffda1f354c4e7de28dd
259,822
py
Python
lib/remote/remote_util.py
scottwedge/testrunner
eac59d7737e4c3d75cc705dfb7712bb9de69f482
[ "Apache-2.0" ]
null
null
null
lib/remote/remote_util.py
scottwedge/testrunner
eac59d7737e4c3d75cc705dfb7712bb9de69f482
[ "Apache-2.0" ]
null
null
null
lib/remote/remote_util.py
scottwedge/testrunner
eac59d7737e4c3d75cc705dfb7712bb9de69f482
[ "Apache-2.0" ]
null
null
null
import os import re import sys import copy import urllib.request, urllib.parse, urllib.error import uuid import time import logging import stat import json import TestInput from subprocess import Popen, PIPE import logger from builds.build_query import BuildQuery import testconstants from testconstants import VERSION...
50.608103
189
0.518636
739519e752a1e28700313b020fa80f8124986c01
8,539
py
Python
src/sardana/tango/pool/test/base_sartest.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
src/sardana/tango/pool/test/base_sartest.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
src/sardana/tango/pool/test/base_sartest.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
58
2016-11-21T11:33:55.000Z
2021-09-01T06:21:21.000Z
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.tango-controls.org/static/sardana/latest/doc/html/index.html ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redi...
39.901869
86
0.583909
739543d1639a3cf13ce3f30cdbf0f1f8f910fa4f
249
py
Python
manage.py
rais-opportunities/django-pgcrypto
1b726377609100e05bedaaabb84b4da78f124536
[ "BSD-2-Clause" ]
48
2015-02-13T06:31:15.000Z
2022-02-09T14:16:31.000Z
manage.py
rais-opportunities/django-pgcrypto
1b726377609100e05bedaaabb84b4da78f124536
[ "BSD-2-Clause" ]
18
2015-01-02T19:23:07.000Z
2021-07-12T11:36:09.000Z
manage.py
rais-opportunities/django-pgcrypto
1b726377609100e05bedaaabb84b4da78f124536
[ "BSD-2-Clause" ]
12
2015-04-22T14:54:01.000Z
2021-07-23T10:34:53.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testapp.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
24.9
71
0.7751
73956a119c40d91aa409baba3a1142231a0bc768
2,317
py
Python
scandeval/benchmarks/twitter_sent.py
NbAiLab/ScandEval
59eb1902a1880d7483d48a4ee213bbec0e2eb71a
[ "MIT" ]
10
2021-07-21T10:47:42.000Z
2022-03-03T13:45:25.000Z
scandeval/benchmarks/twitter_sent.py
NbAiLab/ScandEval
59eb1902a1880d7483d48a4ee213bbec0e2eb71a
[ "MIT" ]
28
2021-07-29T12:21:15.000Z
2022-03-09T12:46:49.000Z
scandeval/benchmarks/twitter_sent.py
NbAiLab/ScandEval
59eb1902a1880d7483d48a4ee213bbec0e2eb71a
[ "MIT" ]
4
2022-01-17T12:11:58.000Z
2022-03-14T18:42:01.000Z
'''Sentiment evaluation of a language model on the TwitterSent dataset''' import logging from .abstract import TextClassificationBenchmark logger = logging.getLogger(__name__) class TwitterSentBenchmark(TextClassificationBenchmark): '''Benchmark of language models on the TwitterSent dataset. Args: ...
42.127273
78
0.620199
7395994217d28292a13662fc4a20c40e40ef643c
2,460
py
Python
chaospy/distributions/evaluation/forward.py
lblonk/chaospy
1759a4307c6134b74ce63ff44973195f1e185f94
[ "MIT" ]
1
2020-04-29T20:53:25.000Z
2020-04-29T20:53:25.000Z
chaospy/distributions/evaluation/forward.py
agonzs11/Polinomio-del-caos
5a415ece07e6535488174bac69a6c0fcc2ca272d
[ "MIT" ]
null
null
null
chaospy/distributions/evaluation/forward.py
agonzs11/Polinomio-del-caos
5a415ece07e6535488174bac69a6c0fcc2ca272d
[ "MIT" ]
null
null
null
""" Evaluate forward Rosenblatt transformation. In the case of univariate distributions, this is equivalent to the cumulative distribution function (CDF). Example usage ------------- Define a simple distribution and data:: >>> class Exponential(chaospy.Dist): ... _cdf = lambda self, x_data, alpha: 1-num...
29.285714
79
0.64187
7395e6c7aa3deaac104d2ce4c8b9b0d244150afb
31,644
py
Python
code/ARAX/ARAXQuery/ARAX_query_graph_interpreter.py
RTXteam/RTX
eabc4f4445d69c71d428acc8e9fa9865a85fb593
[ "MIT" ]
31
2018-03-05T20:01:10.000Z
2022-02-01T03:31:22.000Z
code/ARAX/ARAXQuery/ARAX_query_graph_interpreter.py
RTXteam/RTX
eabc4f4445d69c71d428acc8e9fa9865a85fb593
[ "MIT" ]
1,774
2018-03-06T01:55:03.000Z
2022-03-31T03:09:04.000Z
code/ARAX/ARAXQuery/ARAX_query_graph_interpreter.py
RTXteam/RTX
eabc4f4445d69c71d428acc8e9fa9865a85fb593
[ "MIT" ]
19
2018-05-10T00:43:19.000Z
2022-03-08T19:26:16.000Z
#!/bin/env python3 import sys def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) import os import json import ast import re import yaml from datetime import datetime from ARAX_response import ARAXResponse from query_graph_info import QueryGraphInfo from knowledge_graph_info import KnowledgeGraphInfo...
39.260546
289
0.554386
73961ed0ee047b527cd49db9dda40b109f30c27b
23,377
py
Python
HDF4_H5_NETCDF/source2.7/pyximport/pyximport.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
3
2019-04-01T11:03:04.000Z
2019-12-31T02:17:15.000Z
HDF4_H5_NETCDF/source2.7/pyximport/pyximport.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2021-04-15T18:46:45.000Z
2021-04-15T18:46:45.000Z
HDF4_H5_NETCDF/source2.7/pyximport/pyximport.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2020-07-23T04:28:37.000Z
2020-07-23T04:28:37.000Z
""" Import hooks; when installed with the install() function, these hooks allow importing .pyx files as if they were Python modules. If you want the hook installed every time you run Python you can add it to your Python version by adding these lines to sitecustomize.py (which you can create from scratch in site-packag...
39.026711
136
0.616076
73964dfb65134fbb06d2002c9c4d6fa2e75f0de9
6,532
py
Python
tests/test_misc.py
eggplants/pybsddb-mirror
692635036ffa70e2562da94ea0a447d15ae57025
[ "BSD-3-Clause" ]
null
null
null
tests/test_misc.py
eggplants/pybsddb-mirror
692635036ffa70e2562da94ea0a447d15ae57025
[ "BSD-3-Clause" ]
null
null
null
tests/test_misc.py
eggplants/pybsddb-mirror
692635036ffa70e2562da94ea0a447d15ae57025
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2008-2022, Jesus Cea Avion <jcea@jcea.es> 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, this list of...
36.696629
97
0.599816
7396bd69706ef7371879575e272d2acaece758df
15,256
py
Python
scripts/training/run_tuner.py
noisychannel/joshua
cabf0a30b717ade61a3b8e2d2d65b0cb61f7cf36
[ "BSD-2-Clause" ]
null
null
null
scripts/training/run_tuner.py
noisychannel/joshua
cabf0a30b717ade61a3b8e2d2d65b0cb61f7cf36
[ "BSD-2-Clause" ]
null
null
null
scripts/training/run_tuner.py
noisychannel/joshua
cabf0a30b717ade61a3b8e2d2d65b0cb61f7cf36
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Runs the Z-MERT and PRO tuners. """ from __future__ import print_function import argparse from collections import namedtuple import logging import os import shutil import signal import stat from subprocess import CalledProcessError, Popen, PIPE, check_output, call impor...
33.382932
159
0.639224
7396cb1dfca4f215e93c424352ac45e9f6802f8e
19,114
py
Python
tests/unit/unit_tests.py
zimingd/synapsePythonClient
6bddd4d9de2f06f6f79d8ce814ac57970d6bebee
[ "Apache-2.0" ]
null
null
null
tests/unit/unit_tests.py
zimingd/synapsePythonClient
6bddd4d9de2f06f6f79d8ce814ac57970d6bebee
[ "Apache-2.0" ]
null
null
null
tests/unit/unit_tests.py
zimingd/synapsePythonClient
6bddd4d9de2f06f6f79d8ce814ac57970d6bebee
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ## unit tests for python synapse client ############################################################ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from datetime import datetime as Datetime fro...
44.451163
170
0.669719
7396f70aeb28e5da218596ce6b483e3fab2794ba
2,947
py
Python
limix/io/plink.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
limix/io/plink.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
limix/io/plink.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
from numpy import loadtxt def read_plink(prefix, verbose=True): r""" Read PLINK files into Pandas data frames. Parameters ---------- prefix : str Path prefix to the set of PLINK files. verbose : bool `True` for progress information; `False` otherwise. Returns ------- ...
27.542056
78
0.499152
73970d5f29dde7b869ab7a01c84c6d09eb4c51dc
5,566
py
Python
netweet/collection/collect.py
higorsmonteiro/tweetnet
9589ab9b122f049d16941e8705bde92a1f7a5085
[ "MIT" ]
null
null
null
netweet/collection/collect.py
higorsmonteiro/tweetnet
9589ab9b122f049d16941e8705bde92a1f7a5085
[ "MIT" ]
null
null
null
netweet/collection/collect.py
higorsmonteiro/tweetnet
9589ab9b122f049d16941e8705bde92a1f7a5085
[ "MIT" ]
null
null
null
import os import json import sys import sqlite3 import requests import netweet.collection.utils as utils # fix class Collector: """Class used to collect tweets using the Twitter API. """ def __init__(self): self.number_apps = None self._keys = None self._secret_keys = None s...
34.7875
103
0.574021
739711bde77782772a587c8235f3a0da8986b5f0
1,918
py
Python
setup.py
rdmontgomery/exa
8fc5cbda80dd8834a8b63cdee999a8394af90e5c
[ "Apache-2.0" ]
null
null
null
setup.py
rdmontgomery/exa
8fc5cbda80dd8834a8b63cdee999a8394af90e5c
[ "Apache-2.0" ]
null
null
null
setup.py
rdmontgomery/exa
8fc5cbda80dd8834a8b63cdee999a8394af90e5c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os from distutils import log from setuptools import setup, find_packages name = "exa" description = "A framework for data science" staticdir = "static" readme = "README.md" requirements = "requirements.txt" verfile = "_version.py" root = os.path.dirname(os.path.abspath(__file__)) log.set_...
31.966667
99
0.649114
7397326e4a2f86704b1e6de41a6fbeab61e6fab3
1,584
py
Python
apps/alexa/auth_web.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
null
null
null
apps/alexa/auth_web.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
2
2020-02-05T01:26:55.000Z
2020-02-05T01:31:32.000Z
apps/alexa/auth_web.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
1
2021-12-05T19:53:32.000Z
2021-12-05T19:53:32.000Z
#! /usr/bin/env python import cherrypy import os from cherrypy.process import servers import requests import json from creds import * import six.moves.urllib as urllib class Start(object): def index(self): scope="alexa_all" sd = json.dumps({ "alexa:all": { "productID": ProductID, "produ...
34.434783
150
0.666035
73973dc6e9f5efa56821ab46aa3d514121a4d8fb
8,763
py
Python
bioseq/bioio/DB2JBrowse.py
sndg-arg/covid19-web
fe809c87563a00bbec53c3646338d571fdde6a69
[ "MIT" ]
null
null
null
bioseq/bioio/DB2JBrowse.py
sndg-arg/covid19-web
fe809c87563a00bbec53c3646338d571fdde6a69
[ "MIT" ]
2
2021-03-10T17:08:59.000Z
2021-09-29T17:40:48.000Z
bioseq/bioio/DB2JBrowse.py
sndg-arg/covid19-web
fe809c87563a00bbec53c3646338d571fdde6a69
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os import sys from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord import Bio.SeqIO as bpio from bioseq.models.Bioentry import Bioentry from bioseq.models.Location import Location from bioseq.models.Seqfeature import Seqfeature from bioseq....
42.746341
191
0.604359
73974a45bf9f8617875bc45f91eccd6fbafcdb1a
4,865
py
Python
river/datasets/synth/waveform.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
1,105
2019-01-24T15:15:30.000Z
2020-11-10T18:27:00.000Z
river/datasets/synth/waveform.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
328
2019-01-25T13:48:43.000Z
2020-11-11T11:41:44.000Z
river/datasets/synth/waveform.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
150
2019-01-29T19:05:21.000Z
2020-11-11T11:50:14.000Z
import numpy as np from river import datasets from river.utils.skmultiflow_utils import check_random_state class Waveform(datasets.base.SyntheticDataset): """Waveform stream generator. Generates samples with 21 numeric features and 3 classes, based on a random differentiation of some base waveforms. Sup...
41.581197
94
0.574923
73975e84f296903cbadf9070e5090fba95de9e85
2,297
py
Python
Python3/Books/Douson/chapter10/movie_chooser2.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Books/Douson/chapter10/movie_chooser2.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Books/Douson/chapter10/movie_chooser2.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
# Movie Chooser 2 # Demonstrates radio buttons from tkinter import * class Application(Frame): """ GUI Application for favorite movie type. """ def __init__(self, master): """ Initialize Frame. """ super(Application, self).__init__(master) self.grid() self.create_widgets() ...
32.352113
74
0.52808
739763cfd52118090ef27b3f5cd819b14dea6e5e
10,113
py
Python
modules/tools/rosbag/body_sensation_evaluation.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
6
2019-10-11T07:57:49.000Z
2022-02-23T15:23:41.000Z
modules/tools/rosbag/body_sensation_evaluation.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
null
null
null
modules/tools/rosbag/body_sensation_evaluation.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
12
2019-10-11T07:57:49.000Z
2022-03-16T05:13:00.000Z
#!/usr/bin/env python ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # Modifications Copyright (c) 2018 LG Electronics, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not ...
42.670886
96
0.541185
73976b5a17224f9b0f5f6648de89b8d465915353
13,748
py
Python
python/cuXfilter/charts/cudatashader/plots.py
AjayThorve/cuxfilter
537ff67de80439a43e0bad7373558f5e25dcb112
[ "Apache-2.0" ]
2
2019-03-06T02:10:05.000Z
2020-05-06T06:33:02.000Z
python/cuXfilter/charts/cudatashader/plots.py
AjayThorve/cuxfilter
537ff67de80439a43e0bad7373558f5e25dcb112
[ "Apache-2.0" ]
null
null
null
python/cuXfilter/charts/cudatashader/plots.py
AjayThorve/cuxfilter
537ff67de80439a43e0bad7373558f5e25dcb112
[ "Apache-2.0" ]
null
null
null
from ..core.non_aggregate import BaseScatterGeo, BaseScatter, BaseLine from .custom_extensions import InteractiveImage import cudatashader as cds from cudatashader import transfer_functions as tf from cudatashader.colors import Hot, Elevation import pandas as pd import numpy as np from typing import Type import re fr...
30.415929
181
0.50691
73978fa31b2a84c274512516258ad3a70883f676
15,006
py
Python
deepdoctection/mapper/pubstruct.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
39
2021-12-14T11:05:25.000Z
2022-03-31T18:50:58.000Z
deepdoctection/mapper/pubstruct.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
17
2022-01-04T14:32:26.000Z
2022-03-29T14:01:36.000Z
deepdoctection/mapper/pubstruct.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
4
2022-01-11T16:40:17.000Z
2022-03-30T02:09:55.000Z
# -*- coding: utf-8 -*- # File: pubstruct.py # Copyright 2021 Dr. Janis Meyer. 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/LIC...
41.112329
118
0.62495
7397cddbda8f3eb3e39fa40c1df90a78ff361482
464
py
Python
politicalplaces/migrations/0011_mapitem_error_log.py
20tab/django-political-map
ca43fd492e65450b063a67580978e9a8e86c7b08
[ "MIT" ]
9
2017-02-24T20:01:11.000Z
2021-07-20T09:35:55.000Z
politicalplaces/migrations/0011_mapitem_error_log.py
20tab/django-political-map
ca43fd492e65450b063a67580978e9a8e86c7b08
[ "MIT" ]
9
2017-03-01T18:34:01.000Z
2021-06-01T22:01:23.000Z
politicalplaces/migrations/0011_mapitem_error_log.py
20tab/django-political-map
ca43fd492e65450b063a67580978e9a8e86c7b08
[ "MIT" ]
4
2017-03-01T10:29:46.000Z
2019-09-29T01:31:22.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-07-08 17:43 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('politicalplaces', '0010_politicalplace_self_item'), ] operations = [ migrat...
22.095238
61
0.627155
7397fe242ddc5167067cc87f4f4e3d01ddd13018
657
py
Python
binarysearch.io/repeated_deletion.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
binarysearch.io/repeated_deletion.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
binarysearch.io/repeated_deletion.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
from collections import Counter class Solution: def solve(self, s): # Write your code here stack1 = [] n = len(s) i = 0 while i < n: if len(stack1): if stack1[-1] == s[i]: stack1.pop() k = s[i] ...
22.655172
39
0.290715
7398035144b426a9f41bf7f1d2acec2f2b0a7144
6,533
py
Python
redisbench_admin/utils/ssh.py
chayim/redisbench-admin
11ca257c8d3f3af3cd1cd95ee2b2dedf366a807f
[ "Apache-2.0" ]
5
2021-08-03T12:38:30.000Z
2022-03-23T07:35:38.000Z
redisbench_admin/utils/ssh.py
chayim/redisbench-admin
11ca257c8d3f3af3cd1cd95ee2b2dedf366a807f
[ "Apache-2.0" ]
91
2021-03-17T12:05:35.000Z
2022-03-29T22:20:00.000Z
redisbench_admin/utils/ssh.py
filipecosta90/redisbench-admin
d00ac6834c22f17f82bd8fba55d14a989e41ad2b
[ "Apache-2.0" ]
2
2021-06-07T14:06:58.000Z
2021-07-27T10:37:15.000Z
# MIT License # # Copyright (c) 2012 John Fink # All rights reserved. # import logging import paramiko import socket import os from stat import S_ISDIR class SSHSession(object): # Usage: # Detects DSA or RSA from key_file, either as a string filename or a # file object. Password auth is possible, but ...
37.982558
103
0.577989
739806ef0de3a110ca55a5f5ac59d7fffd52935d
3,445
py
Python
abstar/utils/basespace_credentials.py
gfinak/abstar
dde92f8cd8ddda84e98b53062fc39a7d103d9fba
[ "MIT" ]
30
2016-05-20T13:45:15.000Z
2022-03-29T08:16:03.000Z
abstar/utils/basespace_credentials.py
shulp2211/abstar
9641ccfb792f72cc8cdd8a59ae2d43bc3620d38a
[ "MIT" ]
14
2016-02-26T03:38:40.000Z
2021-01-27T16:59:57.000Z
abstar/utils/basespace_credentials.py
shulp2211/abstar
9641ccfb792f72cc8cdd8a59ae2d43bc3620d38a
[ "MIT" ]
13
2017-02-25T06:38:51.000Z
2022-01-27T21:28:18.000Z
#!/usr/bin/python # filename: make_basespace_credfile.py # # Copyright (c) 2015 Bryan Briney # License: The MIT license (http://opensource.org/licenses/MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software # and associated documentation files (the "Software"), to deal i...
41.011905
99
0.692598
739811d5a91dc58d7ac82c9447b6de22840f4920
5,613
py
Python
docs/source/conf.py
robert-haas/gravis
3e63b606141bf78617b1247048a9e3ccca6d5824
[ "Apache-2.0" ]
3
2022-01-19T15:57:29.000Z
2022-03-06T02:36:44.000Z
docs/source/conf.py
robert-haas/gravis
3e63b606141bf78617b1247048a9e3ccca6d5824
[ "Apache-2.0" ]
2
2022-03-01T19:29:49.000Z
2022-03-01T19:31:08.000Z
docs/source/conf.py
robert-haas/gravis
3e63b606141bf78617b1247048a9e3ccca6d5824
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Configuration for the Sphinx documentation builder.""" import os import re import sys sys.path.append(os.path.abspath('_python')) from autosum import AutoAutoSummary def load_version(filepath_init): """Load version from variable __version__ in file __init__.py""" try: with...
35.08125
97
0.703367
73983f826b3d0e31c54435cc94b2fbee93027233
1,137
py
Python
python/tree/1448_count_good_nodes_in_binary_tree.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/tree/1448_count_good_nodes_in_binary_tree.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/tree/1448_count_good_nodes_in_binary_tree.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
# Definition for a binary tree node. class TreeNode(object): def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution(object): def goodNodes(self, root): """ :type root: TreeNode :rtype: int """ ...
19.271186
55
0.530343
73986fd787d74c40fa9cb60854bc54e9a8355081
1,917
py
Python
5_dedupe/dedupe_summaries.py
invinst/cpdp_ocr
cf5a3f9c9267e28c686ced1e2e3a04bd896c230b
[ "MIT" ]
2
2020-09-02T18:23:32.000Z
2020-10-01T22:12:47.000Z
5_dedupe/dedupe_summaries.py
invinst/cpdp_ocr
cf5a3f9c9267e28c686ced1e2e3a04bd896c230b
[ "MIT" ]
null
null
null
5_dedupe/dedupe_summaries.py
invinst/cpdp_ocr
cf5a3f9c9267e28c686ced1e2e3a04bd896c230b
[ "MIT" ]
1
2022-02-27T22:24:19.000Z
2022-02-27T22:24:19.000Z
#!/usr/bin/python3 import psycopg2 import csv import re import pandas as pd from pprint import pprint def pg_conn(db_name='cpdp', db_host='localhost', db_user='cpdp', db_pass='cpdp'): vals = dict(db_name=db_name, db_host=db_host, db_user=db_user, db_pass=db_pass) conn_str = "dbname={db_name} host={db_host} us...
29.492308
124
0.706312
739899a79dfe49f9a46055355646aba0ca7644b6
2,805
py
Python
datawinners/messageprovider/tests/customized_message_tests.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/messageprovider/tests/customized_message_tests.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/messageprovider/tests/customized_message_tests.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from mock import patch, Mock, MagicMock from datawinners.messageprovider.handlers import success_questionnaire_submission_handler from mangrove.form_model.form_model import FormModel from mangrove.form_model.project import Project class TestSuccessfulSubmissionReplyMessage(TestCase): ...
50.089286
146
0.705526
7398c3dd2a98332865a9e1597ecfd054f8fa2f64
1,886
py
Python
flair/embeddings/__init__.py
pd3f/flair
17067639e94fba344b8a063b38f80d7ac255edb8
[ "MIT" ]
3
2020-09-15T14:03:51.000Z
2020-09-15T16:34:18.000Z
flair/embeddings/__init__.py
pd3f/flair
17067639e94fba344b8a063b38f80d7ac255edb8
[ "MIT" ]
null
null
null
flair/embeddings/__init__.py
pd3f/flair
17067639e94fba344b8a063b38f80d7ac255edb8
[ "MIT" ]
null
null
null
# Expose base classses from .base import Embeddings from .base import ScalarMix # Expose token embedding classes from .token import TokenEmbeddings # from .token import StackedEmbeddings # from .token import WordEmbeddings # from .token import CharacterEmbeddings from .token import FlairEmbeddings # from .token import...
37.72
61
0.831919
7398e0dc4e27667c8e0db50185dee42f81d6af28
1,357
py
Python
prepare_dataset.py
Jessmin/PaddleDetection-Competition
6ccb5448bb6434e642aaaa21d1e7069870309245
[ "Apache-2.0" ]
null
null
null
prepare_dataset.py
Jessmin/PaddleDetection-Competition
6ccb5448bb6434e642aaaa21d1e7069870309245
[ "Apache-2.0" ]
null
null
null
prepare_dataset.py
Jessmin/PaddleDetection-Competition
6ccb5448bb6434e642aaaa21d1e7069870309245
[ "Apache-2.0" ]
null
null
null
# 输入dataset 路径转换为VOC格式 import os import shutil import glob import random DATASET_BASE_DIR = '/home/data/VOC' JPEGIMAGES_DIR = f'{DATASET_BASE_DIR}/JPEGImages' ANNO_DIR = f'{DATASET_BASE_DIR}/Annotations' os.makedirs(DATASET_BASE_DIR, exist_ok=True) os.makedirs(JPEGIMAGES_DIR, exist_ok=True) os.makedirs(ANNO_DIR, exist...
31.55814
92
0.667649
73995643a343fa8dc804d8ea3f450fff46b07635
5,726
py
Python
sko/PSO.py
gitter-badger/scikit-opt
fc3a5790b17cf7c8ece8127c0487652567799fe8
[ "MIT" ]
null
null
null
sko/PSO.py
gitter-badger/scikit-opt
fc3a5790b17cf7c8ece8127c0487652567799fe8
[ "MIT" ]
null
null
null
sko/PSO.py
gitter-badger/scikit-opt
fc3a5790b17cf7c8ece8127c0487652567799fe8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 2019/8/20 # @Author : github.com/guofei9987 import numpy as np import matplotlib.pyplot as plt from sko.tools import func_transformer class PSO: """ Do PSO (Particle swarm optimization) algorithm. This algorithm was adapted from the earlier wo...
37.424837
110
0.601991
73995ed3e06fccbaefbff57a99505bdce0b4d4fd
3,161
py
Python
tests/test_tensor_data.py
chris-tng/minitorch
f5facd366aac6a4d3a437796c43ac02a9b7069ff
[ "MIT" ]
null
null
null
tests/test_tensor_data.py
chris-tng/minitorch
f5facd366aac6a4d3a437796c43ac02a9b7069ff
[ "MIT" ]
null
null
null
tests/test_tensor_data.py
chris-tng/minitorch
f5facd366aac6a4d3a437796c43ac02a9b7069ff
[ "MIT" ]
null
null
null
# + import sys sys.path.append("..") import minitorch from hypothesis import given from hypothesis.strategies import data try: from .strategies import tensor_data, indices except: from strategies import tensor_data, indices import pytest # - @pytest.mark.task2_1 def test_layout(): "Test basis prop...
26.788136
65
0.643151
739962c8b22cf2b86d5d2b1d599f4fcc1f4caf58
2,925
py
Python
src/sardana/pool/poolextension.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
src/sardana/pool/poolextension.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
src/sardana/pool/poolextension.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
58
2016-11-21T11:33:55.000Z
2021-09-01T06:21:21.000Z
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
32.142857
78
0.693675
73997296152d852bca80ccc06a361a128834f4e4
41,896
py
Python
python/ccxt/async_support/idex.py
capitmu/ccxt
9faec08330ca2565f63c7c2b11c99161883e2bdd
[ "MIT" ]
4
2020-04-21T09:36:44.000Z
2021-01-25T03:18:03.000Z
python/ccxt/async_support/idex.py
capitmu/ccxt
9faec08330ca2565f63c7c2b11c99161883e2bdd
[ "MIT" ]
1
2021-08-01T01:15:40.000Z
2021-08-01T01:15:40.000Z
python/ccxt/async_support/idex.py
capitmu/ccxt
9faec08330ca2565f63c7c2b11c99161883e2bdd
[ "MIT" ]
4
2020-03-12T08:36:27.000Z
2021-10-04T03:05:16.000Z
# -*- 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_support.base.exchange import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import A...
40.596899
202
0.511934
7399774cc8ef844816c7f4939a764e26ff8b2ab5
9,400
py
Python
tests/base_tests.py
rodrigoguariento/incubator-superset
b2633a51d43faaca74751349b96fc32784d4b377
[ "Apache-2.0" ]
7
2017-11-01T06:00:12.000Z
2019-01-05T13:31:48.000Z
tests/base_tests.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
13
2020-03-24T17:57:53.000Z
2022-03-08T23:33:09.000Z
tests/base_tests.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
3
2020-04-15T16:34:09.000Z
2020-06-22T17:26:45.000Z
# 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 u...
35.338346
88
0.629574
739979f5fe72870a9510b3d2b642910e5aca9ed5
502
py
Python
python/fundamentals/sorting/selection_sort.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/fundamentals/sorting/selection_sort.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/fundamentals/sorting/selection_sort.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
def selection_sort(arr): n = len (arr) for i in range(n): # find the smallest int smallest = 9999999 j_ix = i for j in range(i, n): if arr[j] < smallest: smallest = arr[j] j_ix = j # swap thems arr[j_ix], arr[i] = arr[i], arr[j_ix] if __name__ == "__...
19.307692
56
0.549801
73997f1fcc8a650264725a65315b38a63faf3e70
8,074
py
Python
qnarre/prep/tokens/marian.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/tokens/marian.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/tokens/marian.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
32.821138
124
0.625093
7399c53c1aa766fce8d8c492554defc0eefef286
4,304
py
Python
mopidy_transistor/library.py
lukh/mopidy-transistor
42f7d7c5707b39b82a978404b2a09b50fe5992ae
[ "Apache-2.0" ]
1
2019-08-19T11:08:05.000Z
2019-08-19T11:08:05.000Z
mopidy_transistor/library.py
lukh/mopidy-transistor
42f7d7c5707b39b82a978404b2a09b50fe5992ae
[ "Apache-2.0" ]
null
null
null
mopidy_transistor/library.py
lukh/mopidy-transistor
42f7d7c5707b39b82a978404b2a09b50fe5992ae
[ "Apache-2.0" ]
null
null
null
import mopidy import logging from urllib.request import urlopen import ssl import certifi from pathlib import Path import podcastparser import threading from mopidy.internal import storage as internal_storage logger = logging.getLogger(__name__) class Library(object): def __init__(self, json_file, podcast_time...
34.99187
142
0.395214
7399d321a99f4dde5fcb10df64aada621546ad97
1,246
py
Python
python/bin/fcst_create_pvd.py
jeremyjiezhou/Learn-PyTorch
7e4404609bacd2ec796f6ca3ea118e8e34ab4a22
[ "MIT" ]
24
2016-10-04T20:49:55.000Z
2022-03-12T19:07:10.000Z
python/bin/fcst_create_pvd.py
jeremyjiezhou/Learn-PyTorch
7e4404609bacd2ec796f6ca3ea118e8e34ab4a22
[ "MIT" ]
null
null
null
python/bin/fcst_create_pvd.py
jeremyjiezhou/Learn-PyTorch
7e4404609bacd2ec796f6ca3ea118e8e34ab4a22
[ "MIT" ]
9
2016-12-11T22:15:03.000Z
2020-11-21T13:51:05.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # Author: FCST Development Team # License: TBD # Copyright (c) 2014, MIT License """ Python script to create a pvd paraview file """ # Basic imports: from PythonFCST.util.parsers import CreatePvd import argparse print "="*50 print "= Paraview pvd file creator" print "="...
25.958333
97
0.680578
7399d8e7abe8fb1457fa83a8870bfc24c4a3b780
868
py
Python
test.py
liuyuns/ezsync
781b561f4416f64ba34c29b569cd07057fde1eb7
[ "Apache-2.0" ]
3
2015-12-14T01:38:00.000Z
2018-10-08T03:54:25.000Z
test.py
liuyuns/ezsync
781b561f4416f64ba34c29b569cd07057fde1eb7
[ "Apache-2.0" ]
null
null
null
test.py
liuyuns/ezsync
781b561f4416f64ba34c29b569cd07057fde1eb7
[ "Apache-2.0" ]
null
null
null
''' Created on Mar 6, 2013 @author: ethan liu ''' from ez_trans import monitor, config, logger def exec(): log = logger.SimpleLogger() log.log("hello, welcome to ethan's easy file transfer.\n") cfg = config.config({}) cfg.key = "test" cfg.base_dir='p:/builds' cfg.pattern='11.??.0.0'...
20.666667
62
0.638249
7399d94a9169d7e0ad657621ff151b609801e912
1,151
py
Python
firetower/alerts.py
gmcquillan/firetower
7eafcaea3d428807e1b5578bd325466e47211092
[ "MIT" ]
3
2015-11-08T11:30:56.000Z
2019-11-20T07:31:47.000Z
firetower/alerts.py
gmcquillan/firetower
7eafcaea3d428807e1b5578bd325466e47211092
[ "MIT" ]
null
null
null
firetower/alerts.py
gmcquillan/firetower
7eafcaea3d428807e1b5578bd325466e47211092
[ "MIT" ]
null
null
null
import datetime class Alert(object): def __init__(self, redis): self.conn = redis self.all_counts = {} def send_alert(self, msg): """Send a quick email with the error message.""" print "%s: Alert! %s" % (str(datetime.datetime.now()), msg) def check_thresh(self, error_sum...
38.366667
80
0.60556
7399e97e1524ae01a3c8cb41732ccdad749a25d1
16,854
py
Python
trackeval/datasets/_base_dataset.py
mchagneux/TrackEval
1c39da57343525306af523b9ab4557b7ed7480f4
[ "MIT" ]
null
null
null
trackeval/datasets/_base_dataset.py
mchagneux/TrackEval
1c39da57343525306af523b9ab4557b7ed7480f4
[ "MIT" ]
null
null
null
trackeval/datasets/_base_dataset.py
mchagneux/TrackEval
1c39da57343525306af523b9ab4557b7ed7480f4
[ "MIT" ]
null
null
null
import csv import io import zipfile import os import traceback import numpy as np from copy import deepcopy from abc import ABC, abstractmethod from .. import _timing from ..utils import TrackEvalException class _BaseDataset(ABC): @abstractmethod def __init__(self): self.tracker_list = None se...
52.341615
120
0.598196
739a06c5401b6824d4e9911efd3a8a1307d0e04f
2,688
py
Python
tron/Misc/hub_log.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
tron/Misc/hub_log.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
tron/Misc/hub_log.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
__all__ = ['setID', 'setLogdir', 'enableLoggingFor', 'disableLoggingFor', 'isoTS', 'log', 'error'] import os from math import modf from time import gmtime, strftime, time systems = {} DISABLED = '0' ENABLED = '.' ERROR = 'E' FATAL = 'F' UNDEFINED = '?' logfileDir = os.environ["TRON_LOG_DIR"] logfileName...
22.974359
87
0.608631
739a24682ae5c817569f15af535989f694432b6b
4,680
py
Python
examples/cspAnalysis/exhaustedModes.py
rmalpica/PyCSP
cf2dcbcfd66d4e74b6ec6dcd3bc6f06ccca5b607
[ "MIT" ]
7
2021-06-10T12:36:12.000Z
2022-03-29T09:56:31.000Z
examples/cspAnalysis/exhaustedModes.py
rmalpica/PyCSP
cf2dcbcfd66d4e74b6ec6dcd3bc6f06ccca5b607
[ "MIT" ]
null
null
null
examples/cspAnalysis/exhaustedModes.py
rmalpica/PyCSP
cf2dcbcfd66d4e74b6ec6dcd3bc6f06ccca5b607
[ "MIT" ]
4
2021-06-10T12:36:14.000Z
2021-12-04T12:12:15.000Z
# -*- coding: utf-8 -*- """ @author: Riccardo Malpica Galassi, Sapienza University, Roma, Italy """ import cantera as ct import numpy as np import matplotlib.pyplot as plt import PyCSP.Functions as csp import PyCSP.utils as utils #create gas from original mechanism file hydrogen.cti gas = csp.CanteraCSP('hydrogen.cti'...
30.588235
131
0.685684
739a42fa3a5c40cd0d152e25c3fd38c583ffd1b4
75
py
Python
parsing/utils/__init__.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
parsing/utils/__init__.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
parsing/utils/__init__.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
from . import category, common, group, junction from . import junction_old
25
47
0.786667
739a9ca47c70dde17d2c6d813dcdb86b346b3737
14,080
py
Python
nova/virt/xenapi/volume_utils.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/virt/xenapi/volume_utils.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/virt/xenapi/volume_utils.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010 Citrix Systems, Inc. # Copyright (c) 2013 OpenStack Foundation # # 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...
35.2
78
0.62358
739abcf2f9b3c6772928c97f1002aeb6488366a6
9,914
py
Python
gibson2/envs/parallel_env.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
3
2021-02-07T14:00:38.000Z
2021-07-03T19:40:59.000Z
gibson2/envs/parallel_env.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
null
null
null
gibson2/envs/parallel_env.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
2
2021-04-01T12:14:59.000Z
2021-06-18T13:04:39.000Z
import gibson2 from gibson2.envs.igibson_env import iGibsonEnv import atexit import multiprocessing import sys import traceback import numpy as np import os class ParallelNavEnv(iGibsonEnv): """Batch together environments and simulate them in external processes. The environments are created in external proces...
36.855019
111
0.608836
739acb9e80330d9b74a1caab58f2dc3226130ddb
1,574
py
Python
digital_image_processing/change_contrast.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
digital_image_processing/change_contrast.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
digital_image_processing/change_contrast.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
1
2020-06-26T09:46:17.000Z
2020-06-26T09:46:17.000Z
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
29.148148
74
0.705845
739acd09784d28fbc2875b458be709311e2e1458
11,967
py
Python
brultech_serial2mqtt/device/channel.py
sdwilsh/brultech-serial2mqtt
7856168c46b4ef9df9b74e25e41ec7ecaaef9ed6
[ "MIT" ]
null
null
null
brultech_serial2mqtt/device/channel.py
sdwilsh/brultech-serial2mqtt
7856168c46b4ef9df9b74e25e41ec7ecaaef9ed6
[ "MIT" ]
21
2021-11-02T17:56:14.000Z
2022-03-28T12:13:31.000Z
brultech_serial2mqtt/device/channel.py
sdwilsh/brultech-serial2mqtt
7856168c46b4ef9df9b74e25e41ec7ecaaef9ed6
[ "MIT" ]
null
null
null
import asyncio import functools from enum import Enum, unique from typing import Any, Coroutine, Dict, List, Literal, Set, Tuple from siobrultech_protocols.gem.packets import Packet from brultech_serial2mqtt.config import Config from brultech_serial2mqtt.config.config_device import ChannelConfig, ChannelType from bru...
37.514107
129
0.540904
739aedfcb5e9aa969b5ae2809db423163ae489e7
3,660
py
Python
rlkit/launchers/experiments/murtaza/multiworld.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
rlkit/launchers/experiments/murtaza/multiworld.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/launchers/experiments/murtaza/multiworld.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
def her_td3_experiment(variant): import gym import multiworld.envs.mujoco import multiworld.envs.pygame import rlkit.samplers.rollout_functions as rf import rlkit.torch.pytorch_util as ptu from rlkit.exploration_strategies.base import ( PolicyWrappedWithExplorationStrategy ) from...
34.857143
79
0.66776
739b3b0b37a7e0f2adb2e47315b1f14bf909c828
6,757
py
Python
src/utils/utils.py
entn-at/QPNet
6c11ad452531bb8fb1cbba10f1b385032445d240
[ "Apache-2.0" ]
12
2019-11-07T14:54:21.000Z
2020-09-14T20:13:26.000Z
src/utils/utils.py
entn-at/QPNet
6c11ad452531bb8fb1cbba10f1b385032445d240
[ "Apache-2.0" ]
2
2020-08-13T04:19:45.000Z
2021-11-08T08:29:40.000Z
src/utils/utils.py
entn-at/QPNet
6c11ad452531bb8fb1cbba10f1b385032445d240
[ "Apache-2.0" ]
1
2020-03-15T15:32:26.000Z
2020-03-15T15:32:26.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2019 Wu Yi-Chiao (Nagoya University) # based on a WaveNet script by Tomoki Hayashi (Nagoya University) # (https://github.com/kan-bayashi/PytorchWaveNetVocoder) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) from __future__ import division from __f...
28.154167
93
0.630605
739b4456f99c9902231c5baaaf41a23eed0caaf2
410
py
Python
scripts/py/find/missing_id_human.py
Lexparency/lexhost
71ad624d4ea608294ed40496e44fbdfcd11622c7
[ "MIT" ]
null
null
null
scripts/py/find/missing_id_human.py
Lexparency/lexhost
71ad624d4ea608294ed40496e44fbdfcd11622c7
[ "MIT" ]
null
null
null
scripts/py/find/missing_id_human.py
Lexparency/lexhost
71ad624d4ea608294ed40496e44fbdfcd11622c7
[ "MIT" ]
null
null
null
from legislative_act import model as dm s = dm.Search().filter('term', doc_type='cover') result = set() for hit in s.scan(): try: ih = hit.id_human except AttributeError: result.add(hit.abstract.id_local) else: if ih == hit.abstract.id_local: result.add(hit.abstract.i...
18.636364
48
0.62439
739b5f9d7161bbb7a5b5785c4a676735ceaee091
1,695
py
Python
settings.py
Lysovenko/bpc
bd396c40e09f38adedec0de27d0ee178fa056888
[ "Apache-2.0" ]
null
null
null
settings.py
Lysovenko/bpc
bd396c40e09f38adedec0de27d0ee178fa056888
[ "Apache-2.0" ]
null
null
null
settings.py
Lysovenko/bpc
bd396c40e09f38adedec0de27d0ee178fa056888
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Serhiy Lysovenko # # 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 writ...
33.9
74
0.582301
739b86e370e84fd7233569003df7505aa4f65535
3,250
py
Python
mmdet/datasets/voc.py
zhaohongyin/mmdetection-2.15
9fd29bfd373a6ad00674471c04ecc916f8ad413e
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/voc.py
zhaohongyin/mmdetection-2.15
9fd29bfd373a6ad00674471c04ecc916f8ad413e
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/voc.py
zhaohongyin/mmdetection-2.15
9fd29bfd373a6ad00674471c04ecc916f8ad413e
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict from mmcv.utils import print_log from mmdet.core import eval_map, eval_recalls from .builder import DATASETS from .xml_style import XMLDataset @DATASETS.register_module() class VOCDataset(XMLDataset): CLASSES = ('Crack','Net','AbnormalManhole','Pothole','Marking') def _...
39.156627
79
0.553231
739b8aa5b380ae2d45b588beddd314919f005fea
55
py
Python
vision/__init__.py
jcrickmer/pyvision
5aea7cd9a85d7d26196c375275e7bf00c27a8ac8
[ "MIT" ]
53
2015-03-10T06:20:50.000Z
2021-06-07T07:34:02.000Z
vision/__init__.py
jcrickmer/pyvision
5aea7cd9a85d7d26196c375275e7bf00c27a8ac8
[ "MIT" ]
1
2016-11-20T14:28:38.000Z
2016-11-20T14:28:38.000Z
vision/__init__.py
jcrickmer/pyvision
5aea7cd9a85d7d26196c375275e7bf00c27a8ac8
[ "MIT" ]
56
2015-02-10T20:49:42.000Z
2021-04-03T05:41:09.000Z
from annotations import * from frameiterators import *
18.333333
28
0.818182
739b9942653ce110b09603a99dcdd41bbb5f2937
10,796
py
Python
isaac_from_ov/samples/scripts/utils/franka.py
TheGoblinTechies/dual_arm_env
07c39f076106df2dcbe54721e1a7a0a597caca3b
[ "Apache-2.0" ]
null
null
null
isaac_from_ov/samples/scripts/utils/franka.py
TheGoblinTechies/dual_arm_env
07c39f076106df2dcbe54721e1a7a0a597caca3b
[ "Apache-2.0" ]
null
null
null
isaac_from_ov/samples/scripts/utils/franka.py
TheGoblinTechies/dual_arm_env
07c39f076106df2dcbe54721e1a7a0a597caca3b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software an...
36.228188
117
0.629585
739b9b6aee0731a1a21ce912e16b3b233cc08d73
8,115
py
Python
tests/conftest.py
Damon8q/geonotebook
285c0f281cf7659a281d1e991384effb9de27a3a
[ "Apache-2.0" ]
1,076
2016-07-28T13:05:39.000Z
2022-03-15T13:27:43.000Z
tests/conftest.py
ladien/geonotebook
a20a86909677ab02dc3e59c302f056ecb906b0e4
[ "Apache-2.0" ]
138
2016-09-06T13:23:47.000Z
2020-11-23T13:08:30.000Z
tests/conftest.py
ladien/geonotebook
a20a86909677ab02dc3e59c302f056ecb906b0e4
[ "Apache-2.0" ]
153
2016-10-10T19:04:09.000Z
2022-03-19T01:55:10.000Z
import matplotlib as mpl # noqa mpl.use('Agg') # noqa from contextlib import contextmanager import os import numpy as np import pytest from rasterio.crs import CRS from geonotebook import layers from geonotebook.wrappers import RasterData, RasterDataCollection from geonotebook.wrappers.file_reader import validate_...
26.433225
103
0.678743
739c004ce3e9dd6372772be22d6eb6e86f9d114a
1,508
py
Python
src/Solution629.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
src/Solution629.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
src/Solution629.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
import numpy as np class Solution: #the maximum number of inverse-pairs of length n is n*(n-1)/2 def kInversePairs2(self, n: int, k: int) -> int: if k == 0:return 1 max_in = int(n*(n-1)/2) if k > max_in: return 0 dp = np.zeros((n+1, k+1), int) for i in range(1, n+1): ...
37.7
114
0.374668
739c1c67f9110b48910b8f6698c92f8f6524517e
441
py
Python
spa/migrations/0014_show_recurrence.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
spa/migrations/0014_show_recurrence.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
spa/migrations/0014_show_recurrence.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('spa', '0013_show_recurrence_rrule'), ] operations = [ migrations.AddField( model_name='show', name='...
21
54
0.605442
739c346c4895219019ca360b5710839b547e2bba
4,593
py
Python
src/saas/bkuser_shell/common/export.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/saas/bkuser_shell/common/export.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/saas/bkuser_shell/common/export.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
40.289474
115
0.634661
739c5ca1d92c7114633df77343415a3c47e140f0
3,184
py
Python
StreamPy/TestExamplesListToStreams/test_example_element_multi_in_multi_out_stateless.py
AnomalyInc/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
2
2017-04-27T11:04:27.000Z
2019-02-07T21:03:32.000Z
StreamPy/TestExamplesListToStreams/test_example_element_multi_in_multi_out_stateless.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
StreamPy/TestExamplesListToStreams/test_example_element_multi_in_multi_out_stateless.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
"""This module contains examples of stream_func where f_type is 'element' and stream_func has a list of multiple input streams, a single output stream, and the operation is stateless. These examples must have a LIST of input streams and not a single input stream. The functions on static Python data structures are of t...
26.756303
77
0.624372
739c63d992f9d2b3fa293bb8c1f8c86dd0ac49e8
6,753
py
Python
alipay/aop/api/domain/ShopOrderConfigInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/ShopOrderConfigInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/ShopOrderConfigInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.NormalBusinessTimeRule import NormalBusinessTimeRule from alipay.aop.api.domain.SpecialBusinessTimeRule import SpecialBusinessTimeRule from alipay.aop.api.domain.PreOrderConfigInfo ...
38.810345
105
0.640012
739c85d2e44cc741bcf2bce235e9e885881a60ca
3,362
py
Python
core/migrations/0004_researcherpage.py
kingsdigitallab/egomedia-django
7347fc96ca52ac195b388e43204d0a0faab0c88f
[ "MIT" ]
null
null
null
core/migrations/0004_researcherpage.py
kingsdigitallab/egomedia-django
7347fc96ca52ac195b388e43204d0a0faab0c88f
[ "MIT" ]
10
2021-04-06T18:17:44.000Z
2022-03-01T12:21:40.000Z
core/migrations/0004_researcherpage.py
kingsdigitallab/egomedia-django
7347fc96ca52ac195b388e43204d0a0faab0c88f
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-02-05 15:46 from django.db import migrations, models import django.db.models.deletion import wagtail.contrib.table_block.blocks import wagtail.core.blocks import wagtail.core.fields import wagtail.documents.blocks import wagtail.embeds.blocks import wagtail.images.blocks class Mig...
88.473684
1,882
0.713563
739cb12fbfdf3f62b953b29529692795225f9b87
2,700
py
Python
Utils/Graph.py
phicks22/HiCARN
4df30b41ebc20722b9791f6eef0d4317250e7258
[ "MIT" ]
1
2021-12-02T17:45:34.000Z
2021-12-02T17:45:34.000Z
Utils/Graph.py
phicks22/HiCARN
4df30b41ebc20722b9791f6eef0d4317250e7258
[ "MIT" ]
null
null
null
Utils/Graph.py
phicks22/HiCARN
4df30b41ebc20722b9791f6eef0d4317250e7258
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec def heatmap(ax, mat, title=None, x_label=None, y_label=None, show_bar=True, close_ticks=False): cmap = "Reds" vmin, vmax = 0, 0.5 im = ax.matshow(mat, interpolation='nearest', cmap=cmap, aspect='auto', vmin=vmin, vma...
38.028169
97
0.606667
739cb242612f685e2c572bfaf54be57ce9f4e645
613
py
Python
python2/tests/test_P.py
blackelk/hell
4bb72b2efcb8c83396a95fb6b75c169e2d2315cd
[ "MIT" ]
2
2017-10-01T16:50:37.000Z
2019-07-03T21:19:09.000Z
python2/tests/test_P.py
blackelk/hell
4bb72b2efcb8c83396a95fb6b75c169e2d2315cd
[ "MIT" ]
3
2020-03-31T03:04:38.000Z
2021-11-15T17:48:34.000Z
python2/tests/test_P.py
blackelk/hell
4bb72b2efcb8c83396a95fb6b75c169e2d2315cd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from hell import P from conftest import capture_out p = capture_out(P) def test_args(): assert p() == '\n' assert p('') == '\n' assert p('A') == 'A\n' assert p(1) == '1\n' assert p('A', 1) == 'A 1\n' assert p([0, 1, 'A']) == "[0, 1, 'A']\n" def test_kwargs(): ...
18.575758
48
0.450245
739cb6fb53435e111f57696e42c746ff9b7318e9
4,548
py
Python
allennlp_mylib/models/priority_crisis_classifier.py
wangcongcong123/UCDTrecIS2019
01c7ec6a492bf049bc8ce52d04a012033d1f89c6
[ "Apache-2.0" ]
3
2019-10-24T13:32:27.000Z
2020-03-26T18:54:36.000Z
allennlp_mylib/models/priority_crisis_classifier.py
wangcongcong123/UCDTrecIS2019
01c7ec6a492bf049bc8ce52d04a012033d1f89c6
[ "Apache-2.0" ]
null
null
null
allennlp_mylib/models/priority_crisis_classifier.py
wangcongcong123/UCDTrecIS2019
01c7ec6a492bf049bc8ce52d04a012033d1f89c6
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Optional import numpy from overrides import overrides import torch import torch.nn.functional as F from allennlp.common.checks import ConfigurationError from allennlp.data import Vocabulary from allennlp.modules import FeedForward, Seq2VecEncoder, TextFieldEmbedder from allennlp.models.model ...
42.111111
107
0.654793
739cea1029d7471543e239242f07ba1f7a272ad0
4,484
py
Python
tgas_region_structure.py
kevinjardine/gaia-tgas
58cec102b25c1a3e5ff12e82577e5c5c7e2a2c48
[ "Unlicense" ]
null
null
null
tgas_region_structure.py
kevinjardine/gaia-tgas
58cec102b25c1a3e5ff12e82577e5c5c7e2a2c48
[ "Unlicense" ]
null
null
null
tgas_region_structure.py
kevinjardine/gaia-tgas
58cec102b25c1a3e5ff12e82577e5c5c7e2a2c48
[ "Unlicense" ]
null
null
null
import sys import os #config rootDir = 'd:/projects/astronomy/tgas/' #code def processIso(structures,o,s,prevIso,prevStructureCount,startList,startIso,labelPrefix): iso = o['iso'] region = o['region'] starCount = o['count'] occurrence = o['occurrence'] if prevIso == 0: for o2 in sorted(s...
35.587302
121
0.577386
739ced4c973503d851296dbd31aad3a601f8cb7f
9,985
py
Python
src/empirical_fire_modelling/variable.py
akuhnregnier/empirical-fire-modelling
4187f5bfce0595d98361a9264793c25607043047
[ "MIT" ]
null
null
null
src/empirical_fire_modelling/variable.py
akuhnregnier/empirical-fire-modelling
4187f5bfce0595d98361a9264793c25607043047
[ "MIT" ]
null
null
null
src/empirical_fire_modelling/variable.py
akuhnregnier/empirical-fire-modelling
4187f5bfce0595d98361a9264793c25607043047
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from abc import ABC from dataclasses import dataclass, field from enum import Enum from immutabledict import immutabledict @dataclass(frozen=True) class VariableFactory: """Creation of related Variables based on given shifts (in months).""" rank: int name: str units: str ...
25.801034
87
0.603405
739d09be3e7839d2729b0800fcbb0d7da458bb58
1,124
py
Python
test/zenodo_integration.py
fchorney/pudl
a2c1b996ea81015e586e392bb95609da76161cec
[ "MIT" ]
null
null
null
test/zenodo_integration.py
fchorney/pudl
a2c1b996ea81015e586e392bb95609da76161cec
[ "MIT" ]
18
2021-03-31T06:48:46.000Z
2022-03-30T13:08:06.000Z
test/zenodo_integration.py
fchorney/pudl
a2c1b996ea81015e586e392bb95609da76161cec
[ "MIT" ]
null
null
null
"""Integration tests that verify that zenodo datapackages are correct.""" import pytest from requests.exceptions import ConnectionError from urllib3.exceptions import MaxRetryError from pudl.workspace.datastore import Datastore class TestZenodoDatapackages: """Ensure both prod & sandbox Datastores point to vali...
40.142857
92
0.727758
739d16333a97b1cbfb6bda33b05a934e9434592d
397
py
Python
comment8or/comment8or/asgi.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
comment8or/comment8or/asgi.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
comment8or/comment8or/asgi.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
""" ASGI config for comment8or project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.788413
739d31c3a9eafc0ddce2381fd170aaea72f3e0b5
891
py
Python
contrib/diggext/drivers/devices/consoleservers/opengear.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
216
2015-01-10T17:03:25.000Z
2022-03-24T07:23:41.000Z
contrib/diggext/drivers/devices/consoleservers/opengear.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
23
2015-01-08T16:51:22.000Z
2021-03-13T12:56:04.000Z
contrib/diggext/drivers/devices/consoleservers/opengear.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
49
2015-01-08T00:13:17.000Z
2021-09-22T02:01:20.000Z
from clusto.drivers.devices.consoleservers.basicconsoleserver import BasicConsoleServer from clusto.exceptions import ConnectionException from clusto.drivers.resourcemanagers import IPManager from subprocess import Popen class OpenGearCM4148(BasicConsoleServer): _driver_name = 'opengearcm4148' _portmeta = {...
31.821429
87
0.61055
739d441c0e0674c7c11026186ed2fdce4c94339c
835
py
Python
server/src/models/notation.py
CorentinBrtx/modvice
6c68dca2a60a898b6a6af82c94facddd735d8faa
[ "MIT" ]
null
null
null
server/src/models/notation.py
CorentinBrtx/modvice
6c68dca2a60a898b6a6af82c94facddd735d8faa
[ "MIT" ]
null
null
null
server/src/models/notation.py
CorentinBrtx/modvice
6c68dca2a60a898b6a6af82c94facddd735d8faa
[ "MIT" ]
null
null
null
""" Define the Notation model """ from . import db from .abc import BaseModel, MetaBaseModel class Notation(db.Model, BaseModel, metaclass=MetaBaseModel): """ The Notation model """ __tablename__ = "notation" value = db.Column(db.Integer, primary_key=False) movie_title = db.Column(db.String(300), d...
30.925926
91
0.692216
739d55781608917d55e6da53bf775cbe7aacaab2
8,902
py
Python
pyAND_2.py
selfyu/License-Plates-Recognition
bbbe8ada6761828aafa8d135b462e4971b07c513
[ "MIT" ]
null
null
null
pyAND_2.py
selfyu/License-Plates-Recognition
bbbe8ada6761828aafa8d135b462e4971b07c513
[ "MIT" ]
null
null
null
pyAND_2.py
selfyu/License-Plates-Recognition
bbbe8ada6761828aafa8d135b462e4971b07c513
[ "MIT" ]
1
2020-09-02T16:06:35.000Z
2020-09-02T16:06:35.000Z
import cv2 import numpy as np import sys import glob import math import time import os import pytesseract import tesserocr from PIL import Image def plate_recognition(plate): """Performs OCR with Tesseract to a plate image. Args: plate (nparray): License plate cropped from an image (Ope...
35.466135
108
0.570321
739d6e00f04d6df6eb1474b7bf5580ee9a7b7265
3,521
py
Python
nova/objects/cell_mapping.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/objects/cell_mapping.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/objects/cell_mapping.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-07-24T01:18:44.000Z
2020-07-24T01:18:44.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
33.216981
78
0.692417
739d761dcd1fb771bebfb10363ff22bd606faf92
37,036
py
Python
nums/core/array/blockarray.py
nums-project/nums
3984b7942e9f1eb0d824086cbbbdca737af50f97
[ "Apache-2.0" ]
111
2020-06-16T02:52:11.000Z
2022-03-29T10:24:19.000Z
nums/core/array/blockarray.py
nums-project/nums
3984b7942e9f1eb0d824086cbbbdca737af50f97
[ "Apache-2.0" ]
160
2020-10-07T21:49:36.000Z
2022-03-11T03:06:23.000Z
nums/core/array/blockarray.py
nums-project/nums
3984b7942e9f1eb0d824086cbbbdca737af50f97
[ "Apache-2.0" ]
25
2020-11-11T17:10:26.000Z
2022-03-07T23:17:16.000Z
# coding=utf-8 # Copyright (C) 2020 NumS Development Team. # # 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...
40.082251
99
0.578248
739d9101bac03aad05022bfd7ab8db54bfc12503
1,568
py
Python
mapproxy/test/unit/test_ogr_reader.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
mapproxy/test/unit/test_ogr_reader.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
mapproxy/test/unit/test_ogr_reader.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# This file is part of the MapProxy project. # Copyright (C) 2010 Omniscale <http://omniscale.de> # # 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...
37.333333
82
0.695153
739dc126e439b6f9d6166abbbd2d5e3bf0214b2b
923
py
Python
atom/nucleus/python/test/test_client_view_goal_data.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_client_view_goal_data.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_client_view_goal_data.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import nucleus_api from nu...
22.512195
93
0.71506
739dcac3fc7a06924389b5dd29af21ed4de17208
2,173
py
Python
ice_setup/tests/test_configure_ceph_deploy.py
inktankstorage/ice-setup
fa7b00c774dfcc0a922d97271267e7e95ed8ed51
[ "MIT" ]
null
null
null
ice_setup/tests/test_configure_ceph_deploy.py
inktankstorage/ice-setup
fa7b00c774dfcc0a922d97271267e7e95ed8ed51
[ "MIT" ]
22
2015-01-28T21:06:30.000Z
2017-02-01T18:28:19.000Z
ice_setup/tests/test_configure_ceph_deploy.py
inktankstorage/ice-setup
fa7b00c774dfcc0a922d97271267e7e95ed8ed51
[ "MIT" ]
5
2015-01-22T16:47:36.000Z
2021-01-27T11:10:35.000Z
import __builtin__ from errno import EROFS from os import mkdir from os.path import isfile import pytest from ice_setup.ice import configure_ceph_deploy class TestConfigureCephDeploy(object): @pytest.fixture def mock_ceph_deploy_dirs(self, tmpdir, monkeypatch): """ configure_ceph_deploy() writes two...
35.048387
78
0.628164
739de1c65bfc5f106d334e34b92dc1e763786714
15,499
py
Python
superset/views/base.py
rodrigoguariento/incubator-superset
b2633a51d43faaca74751349b96fc32784d4b377
[ "Apache-2.0" ]
7
2017-11-01T06:00:12.000Z
2019-01-05T13:31:48.000Z
superset/views/base.py
rodrigoguariento/incubator-superset
b2633a51d43faaca74751349b96fc32784d4b377
[ "Apache-2.0" ]
7
2020-03-24T18:17:39.000Z
2022-03-29T22:28:10.000Z
superset/views/base.py
rodrigoguariento/incubator-superset
b2633a51d43faaca74751349b96fc32784d4b377
[ "Apache-2.0" ]
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 u...
32.906582
88
0.634299
739def45670344e05f59589ebefb2c3ce0137f44
1,366
py
Python
sdk/python/tests/compiler/testdata/loop_over_lightweight_output.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
sdk/python/tests/compiler/testdata/loop_over_lightweight_output.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
sdk/python/tests/compiler/testdata/loop_over_lightweight_output.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
#!/usr/bin/env python3 # Copyright 2019 The Kubeflow Authors # # 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...
25.296296
74
0.716691
739e313900819f2bd3bb839e8e126ca49716b510
481
py
Python
util/tf_session.py
shaverschuren/SmartDetect_segmentation
9fea95bbb334e375948823413778db5596f27b0c
[ "MIT" ]
1
2021-05-06T18:00:56.000Z
2021-05-06T18:00:56.000Z
util/tf_session.py
shaverschuren/SmartDetect_segmentation
9fea95bbb334e375948823413778db5596f27b0c
[ "MIT" ]
null
null
null
util/tf_session.py
shaverschuren/SmartDetect_segmentation
9fea95bbb334e375948823413778db5596f27b0c
[ "MIT" ]
null
null
null
# Here, we define general functions that may be useful for # setting up tensorflow sessions. import tensorflow as tf def setup_tf_gpu_session(): """ Function that fixes memory problems for gpu runs """ gpus = tf.config.experimental.list_physical_devices('GPU') if gpus: try: f...
22.904762
67
0.644491
739e522e41d563ea55c32c1b9b302691c744818b
4,040
py
Python
alipay/aop/api/request/AlipayAssetPointPointprodBudgetlibReturnRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayAssetPointPointprodBudgetlibReturnRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayAssetPointPointprodBudgetlibReturnRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayAssetPointPointprodBudgetlibReturnModel import AlipayAssetPointPointprodBudgetlibReturnModel class AlipayAssetPointPointprodBu...
27.862069
148
0.650495
739e57077a60ea27d7d4b033e1df3d66047eb17a
5,029
py
Python
edflow/datasets/cifar.py
mritv/edflow
9bef77e32a74d9ee4108182d8cab177b5dd36731
[ "MIT" ]
1
2020-04-01T07:41:21.000Z
2020-04-01T07:41:21.000Z
edflow/datasets/cifar.py
mritv/edflow
9bef77e32a74d9ee4108182d8cab177b5dd36731
[ "MIT" ]
null
null
null
edflow/datasets/cifar.py
mritv/edflow
9bef77e32a74d9ee4108182d8cab177b5dd36731
[ "MIT" ]
null
null
null
import sys, os, tarfile, pickle from pathlib import Path import numpy as np from tqdm import tqdm, trange import urllib import edflow.datasets.utils as edu class CIFAR10(edu.DatasetMixin): NAME = "CIFAR10" URL = "https://www.cs.toronto.edu/~kriz/" FILES = dict(DATA="cifar-10-python.tar.gz") def __in...
36.179856
87
0.544243