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
350773780280bf72a88734cc04163b95c26b9c4a
449
py
Python
alipay/aop/api/response/AlipayOpenAppTestagainCreateResponse.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/response/AlipayOpenAppTestagainCreateResponse.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/response/AlipayOpenAppTestagainCreateResponse.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.response.AlipayResponse import AlipayResponse class AlipayOpenAppTestagainCreateResponse(AlipayResponse): def __init__(self): super(AlipayOpenAppTestagainCreateResponse, self).__init__() def parse_response_content(self, ...
28.0625
109
0.783964
478622dc07eba23f12f9f1de5fe570fd3c50dee1
14,496
py
Python
octavia/api/v2/controllers/l7policy.py
zhangi/octavia
e68c851fecf55e1b5ffe7d5b849f729626af28a3
[ "Apache-2.0" ]
129
2015-06-23T08:06:23.000Z
2022-03-31T12:38:20.000Z
octavia/api/v2/controllers/l7policy.py
zhangi/octavia
e68c851fecf55e1b5ffe7d5b849f729626af28a3
[ "Apache-2.0" ]
6
2016-05-20T11:05:27.000Z
2021-03-23T06:05:52.000Z
octavia/api/v2/controllers/l7policy.py
zhangi/octavia
e68c851fecf55e1b5ffe7d5b849f729626af28a3
[ "Apache-2.0" ]
166
2015-07-15T16:24:05.000Z
2022-03-02T20:54:36.000Z
# Copyright 2016 Blue Box, an IBM Company # # 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...
44.466258
79
0.645557
25a736c0966e4c68c8c32b6a0634ff24a88ccc5d
79
py
Python
test/call-2.py
Macr0phag3/souse
1752d0693074212da52904d5aeef565ea4869d52
[ "MIT" ]
4
2022-02-11T14:30:07.000Z
2022-03-17T11:37:44.000Z
test/call-2.py
Macr0phag3/souse
1752d0693074212da52904d5aeef565ea4869d52
[ "MIT" ]
null
null
null
test/call-2.py
Macr0phag3/souse
1752d0693074212da52904d5aeef565ea4869d52
[ "MIT" ]
null
null
null
from os import system system("whoami") # b'cos\nsystem\np0\ng0\n(Vwhoami\ntR.'
19.75
39
0.734177
7d78271a1ce3d8bb0f8bd9c654591f1df3cc7b95
321
py
Python
toontown/parties/DistributedPartyDanceActivityAI.py
CrankySupertoon01/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
toontown/parties/DistributedPartyDanceActivityAI.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/parties/DistributedPartyDanceActivityAI.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
from direct.directnotify import DirectNotifyGlobal from toontown.parties.DistributedPartyDanceActivityBaseAI import DistributedPartyDanceActivityBaseAI class DistributedPartyDanceActivityAI(DistributedPartyDanceActivityBaseAI): notify = DirectNotifyGlobal.directNotify.newCategory("DistributedPartyDanceActivityAI")...
53.5
100
0.903427
edd3046cc9002ac3a51845d8509fd82779b2ca5f
5,487
py
Python
var/spack/repos/builtin/packages/octopus/package.py
mt-empty/spack
4573261de5b32bb22289752b9023aa767b50b700
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-03-05T10:54:32.000Z
2021-03-05T14:14:52.000Z
var/spack/repos/builtin/packages/octopus/package.py
mt-empty/spack
4573261de5b32bb22289752b9023aa767b50b700
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
32
2020-12-15T17:29:20.000Z
2022-03-21T15:08:31.000Z
var/spack/repos/builtin/packages/octopus/package.py
mt-empty/spack
4573261de5b32bb22289752b9023aa767b50b700
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-07-19T20:31:27.000Z
2021-07-19T21:14:14.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import llnl.util.tty as tty from spack import * class Octopus(Package): """A real-space finite-difference (time-dep...
39.192857
95
0.565336
1160e4c19c93d654e72a1e5a17fd724c4f791912
105,556
py
Python
pysnmp/AP80-PRIVATE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/AP80-PRIVATE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/AP80-PRIVATE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module AP80-PRIVATE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/AP80-PRIVATE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:07:12 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar ...
154.09635
13,182
0.773845
8cbaad77ddfce4beca85f08cb6d4329f20fa120c
69,630
py
Python
airflow/models/baseoperator.py
baryluk/airflow
a7abe427f6f087a9df2d6a3ec43788923ed30061
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-07-30T17:19:18.000Z
2021-08-03T13:51:17.000Z
airflow/models/baseoperator.py
baryluk/airflow
a7abe427f6f087a9df2d6a3ec43788923ed30061
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/models/baseoperator.py
baryluk/airflow
a7abe427f6f087a9df2d6a3ec43788923ed30061
[ "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...
38.834356
110
0.63059
9f53b8ae6c771ab7f45eb01b167884900779fd68
1,593
py
Python
pythonbacktest/animation/indicatorhistorydataframerenderer.py
quantwizard-com/pythonbacktest
7056c2804c30ca571eb43dc1ae4cc3d537f6613e
[ "Apache-2.0" ]
null
null
null
pythonbacktest/animation/indicatorhistorydataframerenderer.py
quantwizard-com/pythonbacktest
7056c2804c30ca571eb43dc1ae4cc3d537f6613e
[ "Apache-2.0" ]
null
null
null
pythonbacktest/animation/indicatorhistorydataframerenderer.py
quantwizard-com/pythonbacktest
7056c2804c30ca571eb43dc1ae4cc3d537f6613e
[ "Apache-2.0" ]
null
null
null
import numpy class IndicatorHistoryDataFrameRenderer(object): @staticmethod def render_indicator_data(plots_per_axis, snapshot_data, ymin, ymax, progress_plot, progress_bar_location): # draw individual indicators for indicator_name, plot in plots_per_axis.items(): snapshot_data_per...
27.947368
114
0.599498
7ec0534d669de6aa577b13dd8b7057222bd38ac7
3,149
py
Python
tests/unit/op/test_tsutil.py
rubis-lab/rts
42ea3709cfa4e9ed0608d779b87349550890accd
[ "MIT" ]
null
null
null
tests/unit/op/test_tsutil.py
rubis-lab/rts
42ea3709cfa4e9ed0608d779b87349550890accd
[ "MIT" ]
null
null
null
tests/unit/op/test_tsutil.py
rubis-lab/rts
42ea3709cfa4e9ed0608d779b87349550890accd
[ "MIT" ]
null
null
null
from rts.core.task import Task from rts.core.ts import TaskSet from rts.op import tsutil import unittest from nose.tools import assert_almost_equals class TSUtilTestCase(unittest.TestCase): """ Tests for `tsutil.py`.""" def test_max_density(self): task_param1 = { 'exec_time': 8, ...
30.278846
75
0.584312
3b8823bb01625ebd05cd329f036af6b0c2997eed
992
py
Python
cake_uni_transaction_bot-main/buy_example.py
hongquantq92/Pancakeswap-and-uniswap-trading-bot
6df841e044589b2b839858dc8339145c4a8c12ee
[ "BSD-2-Clause" ]
null
null
null
cake_uni_transaction_bot-main/buy_example.py
hongquantq92/Pancakeswap-and-uniswap-trading-bot
6df841e044589b2b839858dc8339145c4a8c12ee
[ "BSD-2-Clause" ]
null
null
null
cake_uni_transaction_bot-main/buy_example.py
hongquantq92/Pancakeswap-and-uniswap-trading-bot
6df841e044589b2b839858dc8339145c4a8c12ee
[ "BSD-2-Clause" ]
null
null
null
from txns import Txn_bot import web3 from web3 import Web3 import time private = '739c45243e8702e2ffce4f62d7af270a0abfa7e3af81b4906e05f31ff1c16231' bsc = "https://bsc-dataseed.binance.org/" bsc = "wss://bsc-ws-node.nariox.org:443" web3x = Web3(Web3.WebsocketProvider(bsc)) # token_address = '0xf9ba5210f91d0474bd1e1dc...
36.740741
109
0.794355
ecb73b723a8b195c8ddc468631f3e6b5cfd0d18b
2,229
py
Python
app/package/services/path.py
pablohawz/tfg-Scan-Paint-clone
056cd50d9e4274620cf085a41ed9d326e16dd47b
[ "MIT" ]
null
null
null
app/package/services/path.py
pablohawz/tfg-Scan-Paint-clone
056cd50d9e4274620cf085a41ed9d326e16dd47b
[ "MIT" ]
null
null
null
app/package/services/path.py
pablohawz/tfg-Scan-Paint-clone
056cd50d9e4274620cf085a41ed9d326e16dd47b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Feb 22 18:16:28 2021 @author: pablo """ import numpy as np __all__ = ['interpolate_coords'] def interpolate_coords(array: np.ndarray) -> tuple: """Trims the array of possible np.nan values at the end of the array and interpolates any np.nan value that is located i...
22.515152
76
0.616869
93f668a3d23dfc9c227cc06cf755030747886966
28,916
py
Python
uhd_restpy/testplatform/sessions/ixnetwork/globals/topology/bgpipv6peer/bgpipv6peer_7e5e36454dedaa483fd7dd20abef422b.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/globals/topology/bgpipv6peer/bgpipv6peer_7e5e36454dedaa483fd7dd20abef422b.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/globals/topology/bgpipv6peer/bgpipv6peer_7e5e36454dedaa483fd7dd20abef422b.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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, ...
39.939227
1,175
0.650401
1a96bb489d90e64cad711ad1466577e0279f36d0
232
py
Python
pysimpleplotter/relation.py
wodend/pysimpleplotter
1b72cd0ec0fbe298775ed863e17d8d39b3fc881d
[ "MIT" ]
null
null
null
pysimpleplotter/relation.py
wodend/pysimpleplotter
1b72cd0ec0fbe298775ed863e17d8d39b3fc881d
[ "MIT" ]
1
2021-04-29T16:18:47.000Z
2021-04-29T16:18:47.000Z
pysimpleplotter/relation.py
wodend/pysimpleplotter
1b72cd0ec0fbe298775ed863e17d8d39b3fc881d
[ "MIT" ]
1
2021-04-29T16:09:45.000Z
2021-04-29T16:09:45.000Z
#!/usr/bin/env python3 from dataclasses import dataclass @dataclass(frozen=True) class Relation: name: str independent_dataset: str independent_col: str dependent_dataset: str dependent_col: str color: str
17.846154
33
0.728448
0f4f98ef7d455fc5d27b952826de6ff675703f05
3,003
py
Python
tests/lib/test_blast.py
rafelafrance/atram
56458e0d15b688abf762f4562b53ea890b27d3f2
[ "BSD-3-Clause" ]
26
2015-03-20T16:12:24.000Z
2022-03-25T09:34:34.000Z
tests/lib/test_blast.py
rafelafrance/atram
56458e0d15b688abf762f4562b53ea890b27d3f2
[ "BSD-3-Clause" ]
161
2015-01-12T20:18:14.000Z
2022-03-10T20:30:56.000Z
tests/lib/test_blast.py
rafelafrance/atram
56458e0d15b688abf762f4562b53ea890b27d3f2
[ "BSD-3-Clause" ]
11
2015-04-30T06:32:31.000Z
2021-11-27T05:57:43.000Z
"""Testing functions in lib/blast.""" import lib.blast as blast # for (ends, clamp) in [('mixed_ends', ''), ('end_1', '1'), # ('end_2', '2'), ('single_ends', '')]: def test_parse_fasta_title_01(): """It handles empty strings.""" actual_seq_name, actual_seq_end = blast.parse_fasta_titl...
29.15534
73
0.637696
8c42aae5ef5919cdf46196b2a86b4e238844475f
7,233
py
Python
tools/MMT/main.py
ziqi-jin/OpenUnReID
50eb516945c418398cac890029d1b366c27c0185
[ "Apache-2.0" ]
344
2020-07-01T03:11:21.000Z
2022-03-30T03:01:41.000Z
tools/MMT/main.py
ziqi-jin/OpenUnReID
50eb516945c418398cac890029d1b366c27c0185
[ "Apache-2.0" ]
43
2020-07-14T05:03:25.000Z
2022-03-29T06:15:54.000Z
tools/MMT/main.py
ziqi-jin/OpenUnReID
50eb516945c418398cac890029d1b366c27c0185
[ "Apache-2.0" ]
71
2020-07-01T06:54:30.000Z
2022-03-23T02:57:53.000Z
import argparse import shutil import sys import time from datetime import timedelta from pathlib import Path import torch from openunreid.apis import BaseRunner, batch_processor, test_reid, set_random_seed from openunreid.core.metrics.accuracy import accuracy from openunreid.core.solvers import build_lr_scheduler, bu...
32.290179
88
0.632241
7f23cfc76dc6a0686d04397b1a466584f1ee008f
4,567
py
Python
tech_project/lib/python2.7/site-packages/app_data/admin.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
null
null
null
tech_project/lib/python2.7/site-packages/app_data/admin.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
null
null
null
tech_project/lib/python2.7/site-packages/app_data/admin.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
null
null
null
from functools import partial from django.contrib.admin.utils import flatten_fieldsets from django.contrib.admin.options import ModelAdmin, InlineModelAdmin from django import forms from django.forms.models import modelform_defines_fields from app_data.forms import multiform_factory, multiinlineformset_factory, Multi...
37.743802
109
0.632144
c9ebc0840b2143e50931fa1bcd122244e55834e5
1,873
py
Python
tests/test_mwl.py
sandralorenz268/hylite
7a76132f80287917a28d0422c09c32dac8926465
[ "MIT" ]
null
null
null
tests/test_mwl.py
sandralorenz268/hylite
7a76132f80287917a28d0422c09c32dac8926465
[ "MIT" ]
null
null
null
tests/test_mwl.py
sandralorenz268/hylite
7a76132f80287917a28d0422c09c32dac8926465
[ "MIT" ]
null
null
null
import unittest import os from hylite import io from pathlib import Path from hylite.analyse.mwl import * import shutil from tempfile import mkdtemp import numpy as np class MyTestCase(unittest.TestCase): def test_mwl(self): image = io.load(os.path.join(str(Path(__file__).parent.parent), "test_data/image.hd...
42.568182
111
0.602776
9be3bff155984903a75328ae7ba1f0742c3dd6b2
10,740
bzl
Python
go/private/rules/transition.bzl
Saser/rules_go
95f1a272ff53048c01a0386ff830a6fd6154cdda
[ "Apache-2.0" ]
3
2020-11-30T15:35:37.000Z
2022-01-06T14:17:18.000Z
go/private/rules/transition.bzl
Saser/rules_go
95f1a272ff53048c01a0386ff830a6fd6154cdda
[ "Apache-2.0" ]
54
2020-06-23T17:34:04.000Z
2022-03-31T02:04:06.000Z
go/private/rules/transition.bzl
Saser/rules_go
95f1a272ff53048c01a0386ff830a6fd6154cdda
[ "Apache-2.0" ]
12
2020-07-14T23:59:57.000Z
2022-03-22T09:59:18.000Z
# Copyright 2020 The Bazel 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 la...
38.772563
108
0.658194
1dea7759f83295683d078098f2194a1d14f8deb6
23,905
py
Python
securesystemslib/formats.py
secure-systems-lab/securesystemslib
9b3ea003ab93ab6909d1327dfb2ab7af0309e7cc
[ "MIT" ]
29
2018-01-26T12:01:28.000Z
2022-02-25T01:52:19.000Z
securesystemslib/formats.py
secure-systems-lab/securesystemslib
9b3ea003ab93ab6909d1327dfb2ab7af0309e7cc
[ "MIT" ]
295
2017-01-04T22:07:07.000Z
2022-03-30T07:21:46.000Z
securesystemslib/formats.py
secure-systems-lab/securesystemslib
9b3ea003ab93ab6909d1327dfb2ab7af0309e7cc
[ "MIT" ]
25
2016-12-06T21:26:57.000Z
2022-02-25T01:52:20.000Z
#!/usr/bin/env python """ <Program Name> formats.py <Author> Geremy Condra Vladimir Diaz <vladimir.v.diaz@gmail.com> <Started> Refactored April 30, 2012. -vladimir.v.diaz <Copyright> 2008-2011 The Tor Project, Inc 2012-2016 New York University and the TUF contributors 2016-2021 Securesystemslib contri...
32.746575
91
0.738674
5c92e99f82ecbcac32f758a31f8503896062a408
21,719
py
Python
torchrec/distributed/twrw_sharding.py
terrorizer1980/torchrec
824efb76e4a1c8500e5ce976ac01e6bae894e03a
[ "BSD-3-Clause" ]
null
null
null
torchrec/distributed/twrw_sharding.py
terrorizer1980/torchrec
824efb76e4a1c8500e5ce976ac01e6bae894e03a
[ "BSD-3-Clause" ]
null
null
null
torchrec/distributed/twrw_sharding.py
terrorizer1980/torchrec
824efb76e4a1c8500e5ce976ac01e6bae894e03a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import itertools import math from typing import List, Optional, Dict, Any, Tuple, cast ...
39.203971
89
0.650628
fcecab626432e5fc0f39cd7030c7eb212eb470c6
6,287
py
Python
pruning/re_pruning/re_pruning_conv_det.py
lorenz0890/pytorch-admm-pruning
85f15d86e6d9037fe4016ebcd435065ecba823b5
[ "BSD-3-Clause" ]
null
null
null
pruning/re_pruning/re_pruning_conv_det.py
lorenz0890/pytorch-admm-pruning
85f15d86e6d9037fe4016ebcd435065ecba823b5
[ "BSD-3-Clause" ]
null
null
null
pruning/re_pruning/re_pruning_conv_det.py
lorenz0890/pytorch-admm-pruning
85f15d86e6d9037fe4016ebcd435065ecba823b5
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import torch from pruning import RePruning class RePruningConvDet(RePruning): def __init__(self, softness, magnitude_threshold, metric_quantile, lr, sample, lb, scale): super().__init__() self.masks = {} self.strength = softness self.magnitude_threshold = magnit...
60.451923
145
0.414188
9a3181d409edb2f886a895c87177036d462b1c0f
5,980
py
Python
src/dcss/main.py
jsuagee/dcss-ai-wrapper
da446a88d4f2ca290fe8477773373ce7c9bb88a7
[ "MIT" ]
29
2020-03-06T05:55:15.000Z
2022-01-24T19:10:23.000Z
src/dcss/main.py
jsuagee/dcss-ai-wrapper
da446a88d4f2ca290fe8477773373ce7c9bb88a7
[ "MIT" ]
22
2020-04-06T19:17:32.000Z
2022-03-08T02:42:38.000Z
src/dcss/main.py
jsuagee/dcss-ai-wrapper
da446a88d4f2ca290fe8477773373ce7c9bb88a7
[ "MIT" ]
10
2020-03-06T03:04:35.000Z
2022-03-24T18:08:17.000Z
""" Make sure to run crawl before running this demo, see: start_crawl_terminal_sprint.sh """ from dcss.actions.action import Action from dcss.actions.command import Command from dcss.connection.game_connection import GameConnection from dcss.agent import SimpleRandomAgent def main(): game = GameConnection() ...
31.640212
100
0.582609
2daa56bdba65720771b217c2947954f62026242a
179
py
Python
mozillians/humans/__init__.py
caktus/mozillians
312eb5d993b60092fa4f8eb94548c1db4b21fa01
[ "BSD-3-Clause" ]
null
null
null
mozillians/humans/__init__.py
caktus/mozillians
312eb5d993b60092fa4f8eb94548c1db4b21fa01
[ "BSD-3-Clause" ]
null
null
null
mozillians/humans/__init__.py
caktus/mozillians
312eb5d993b60092fa4f8eb94548c1db4b21fa01
[ "BSD-3-Clause" ]
null
null
null
""" Humans.txt generator, based on work done on Kuma. https://github.com/mozilla/kuma/blob/master/apps/humans/models.py More info about humans.txt here http://humanstxt.org/"""
29.833333
65
0.748603
aae46a38f40a0249aff44a60ab988205d26b57fe
3,329
py
Python
huaweicloud-sdk-iec/huaweicloudsdkiec/v1/model/change_os_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-iec/huaweicloudsdkiec/v1/model/change_os_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-iec/huaweicloudsdkiec/v1/model/change_os_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six class ChangeOsRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is...
24.659259
74
0.540102
601c8f2ce998d798241c06b68534b9e02a7539e2
6,755
py
Python
bindings/python/ensmallen_graph/datasets/string/endozoicomonasnumazuensis.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/endozoicomonasnumazuensis.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/endozoicomonasnumazuensis.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Endozoicomonas numazuensis. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: ...
35.740741
223
0.706736
957f8b2e01b4afdeac11087142b2489951a69a98
16,421
py
Python
sympy/simplify/tests/test_fu.py
lemmalearning/sympy
62ad387ed3f7b243c889dd342296afc9a32ad1ea
[ "BSD-3-Clause" ]
1
2015-08-31T06:55:47.000Z
2015-08-31T06:55:47.000Z
sympy/simplify/tests/test_fu.py
lemmalearning/sympy
62ad387ed3f7b243c889dd342296afc9a32ad1ea
[ "BSD-3-Clause" ]
null
null
null
sympy/simplify/tests/test_fu.py
lemmalearning/sympy
62ad387ed3f7b243c889dd342296afc9a32ad1ea
[ "BSD-3-Clause" ]
3
2015-04-18T22:33:32.000Z
2015-09-23T06:45:07.000Z
from sympy import ( Add, Mul, S, Symbol, cos, cot, csc, pi, I, sec, sin, sqrt, tan, root, powsimp, symbols, sinh, cosh, tanh, coth, Dummy) from sympy.simplify.fu import ( L, TR1, TR10, TR10i, TR11, TR12, TR12i, TR13, TR14, TR15, TR16, TR111, TR2, TR2i, TR3, TR5, TR6, TR7, TR8, TR9, TRmorrie, _TR56 as T,...
38.546948
88
0.498873
f843d3e6e654fb20b02704ba0c2b3866ae28d804
850
py
Python
Scripts/Rates/Pyramids/download.py
andreaparisi-science/SpatialCOVID19
a2962079139c4400af105cc5da3a9502ee734699
[ "Apache-2.0" ]
1
2021-02-16T02:07:26.000Z
2021-02-16T02:07:26.000Z
Scripts/Rates/Pyramids/download.py
andreaparisi-science/SpatialCOVID19
a2962079139c4400af105cc5da3a9502ee734699
[ "Apache-2.0" ]
null
null
null
Scripts/Rates/Pyramids/download.py
andreaparisi-science/SpatialCOVID19
a2962079139c4400af105cc5da3a9502ee734699
[ "Apache-2.0" ]
null
null
null
import urllib.request import sys import csv import os.path countryCodes = { 'Spain': 'ES', 'Italy': 'IT', 'Germany': 'GM', 'Portugal': 'PT', 'Switzerland': 'CH', 'Canada': 'CA', 'UK': 'GB' } country = sys.argv[1] code = countryCodes[country] filename = country+".csv" if os.path.isfile( filename ): print(...
21.794872
103
0.661176
24ae4f774ffef7f229f38331c0eabdd9299c8e52
2,601
py
Python
second/data/dataset.py
Sakura1221/second.pytorch
7c452e4bef5035f4fc14c1b78d9adde02ac69e00
[ "MIT" ]
2
2019-03-29T07:06:09.000Z
2021-05-14T04:29:08.000Z
second/data/dataset.py
Sakura1221/second.pytorch
7c452e4bef5035f4fc14c1b78d9adde02ac69e00
[ "MIT" ]
null
null
null
second/data/dataset.py
Sakura1221/second.pytorch
7c452e4bef5035f4fc14c1b78d9adde02ac69e00
[ "MIT" ]
null
null
null
import pathlib import pickle import time from functools import partial import numpy as np from second.core import box_np_ops from second.core import preprocess as prep from second.data import kitti_common as kitti from second.data.preprocess import _read_and_prep_v9 class Dataset(object): """An abstract class r...
37.157143
94
0.685121
f7e2e67323670ac56dac754ab19706a9fa0b594a
1,524
py
Python
vacancies_and_studentships/cms_plugins.py
techdragon/Arkestra
8dad01982339f9d702f5ed6d58179b3a90aff193
[ "BSD-2-Clause" ]
1
2019-06-27T13:05:16.000Z
2019-06-27T13:05:16.000Z
vacancies_and_studentships/cms_plugins.py
techdragon/Arkestra
8dad01982339f9d702f5ed6d58179b3a90aff193
[ "BSD-2-Clause" ]
null
null
null
vacancies_and_studentships/cms_plugins.py
techdragon/Arkestra
8dad01982339f9d702f5ed6d58179b3a90aff193
[ "BSD-2-Clause" ]
null
null
null
from django import forms from django.utils.translation import ugettext as _ from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from arkestra_utilities.generic_models import ArkestraGenericPlugin from arkestra_utilities.generic_models import ArkestraGenericPluginForm from arkestra_utilit...
33.866667
113
0.762467
48d0f4f2d633bc44135be7344f44e30f7e619d20
7,916
py
Python
backend/bwg_demo_33501/settings.py
crowdbotics-apps/bwg-demo-33501
314a658366f5723becff2f682e4b3ac37b95e94f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/bwg_demo_33501/settings.py
crowdbotics-apps/bwg-demo-33501
314a658366f5723becff2f682e4b3ac37b95e94f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/bwg_demo_33501/settings.py
crowdbotics-apps/bwg-demo-33501
314a658366f5723becff2f682e4b3ac37b95e94f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for bwg_demo_33501 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
30.098859
99
0.734841
3f5b718e1a36d0addb1ae5f12e32bd1b4e6d9936
6,847
py
Python
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_region_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
4
2019-08-20T02:58:03.000Z
2020-05-22T10:23:11.000Z
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_region_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2022-03-08T17:46:24.000Z
2022-03-23T18:27:45.000Z
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_region_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
4
2019-08-29T02:52:14.000Z
2021-09-14T10:41:48.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 may ...
50.345588
259
0.660435
e92b97347fe531896d4512a808417ecda3e29dfa
1,617
py
Python
hanlp/components/taggers/tagger_tf.py
antfootAlex/HanLP
e8044b27ae1de54b9070db08549853d3ca8271e2
[ "Apache-2.0" ]
27,208
2015-03-27T10:25:45.000Z
2022-03-31T13:26:32.000Z
hanlp/components/taggers/tagger_tf.py
hushaoyun/HanLP
967b52404c9d0adbc0cff2699690c127ecfca36e
[ "Apache-2.0" ]
1,674
2015-03-30T06:36:44.000Z
2022-03-16T01:52:56.000Z
hanlp/components/taggers/tagger_tf.py
hushaoyun/HanLP
967b52404c9d0adbc0cff2699690c127ecfca36e
[ "Apache-2.0" ]
7,710
2015-03-27T08:07:57.000Z
2022-03-31T14:57:23.000Z
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2019-10-25 21:49 import logging from abc import ABC import tensorflow as tf from hanlp.common.keras_component import KerasComponent from hanlp.layers.crf.crf_layer_tf import CRF, CRFLoss, CRFWrapper from hanlp.metrics.chunking.iobes_tf import IOBES_F1_TF class TaggerC...
41.461538
109
0.621521
9935b2daf45e7848d30d22676010f20a12b80fc7
5,466
py
Python
sdk/python/pulumi_azure_nextgen/documentdb/v20200301/get_sql_resource_sql_stored_procedure.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/documentdb/v20200301/get_sql_resource_sql_stored_procedure.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/documentdb/v20200301/get_sql_resource_sql_stored_procedure.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
39.608696
505
0.653128
ada546d74d3c4acc50d5a3adc0aafd7592d4d2fa
8,788
py
Python
opentamp/src/policy_hooks/baselines/stable.py
Algorithmic-Alignment-Lab/openTAMP-legacy
3b7c3be164cc968ad77a928286d6460cd70a670e
[ "MIT" ]
2
2022-03-09T19:48:20.000Z
2022-03-26T17:31:07.000Z
opentamp/src/policy_hooks/baselines/stable.py
Algorithmic-Alignment-Lab/OpenTAMP
eecb950bd273da8cbed4394487630e8453f2c242
[ "MIT" ]
null
null
null
opentamp/src/policy_hooks/baselines/stable.py
Algorithmic-Alignment-Lab/OpenTAMP
eecb950bd273da8cbed4394487630e8453f2c242
[ "MIT" ]
null
null
null
import numpy as np import os import time from stable_baselines import SAC, PPO2 from stable_baselines.bench.monitor import Monitor from stable_baselines.common.callbacks import BaseCallback, EvalCallback, EventCallback from stable_baselines.common.cmd_util import make_vec_env, set_global_seeds from stable_baselines.c...
41.258216
163
0.624829
899f714f678e1c244fd29a6cb164cd5f4bb28992
16,147
py
Python
app/securities/data.py
RobertPrellwitz/RiskTool
6d304e75ccd8a49c01c97976673938581e1e0a5c
[ "MIT" ]
null
null
null
app/securities/data.py
RobertPrellwitz/RiskTool
6d304e75ccd8a49c01c97976673938581e1e0a5c
[ "MIT" ]
null
null
null
app/securities/data.py
RobertPrellwitz/RiskTool
6d304e75ccd8a49c01c97976673938581e1e0a5c
[ "MIT" ]
null
null
null
import pandas import requests from wallstreet import Stock, Call, Put import numpy as np import scipy.stats as si import sympy as sy from sympy.stats import Normal, cdf from datetime import datetime from app.models.user_models import UserProfileForm from flask_user import current_user, login_required, roles_required im...
41.402564
121
0.511488
75502b47445273213ef03ddd06a8202293d4ad74
72,509
py
Python
meshtastic/mesh_pb2.py
Hydra-Designs/Meshtastic-python
e5ecba7ec0136180f5d36d96938fb027c633f409
[ "Apache-2.0" ]
null
null
null
meshtastic/mesh_pb2.py
Hydra-Designs/Meshtastic-python
e5ecba7ec0136180f5d36d96938fb027c633f409
[ "Apache-2.0" ]
null
null
null
meshtastic/mesh_pb2.py
Hydra-Designs/Meshtastic-python
e5ecba7ec0136180f5d36d96938fb027c633f409
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mesh.proto from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from...
41.864319
8,002
0.732475
a1d25034062fdc072af41bb76faae63f91a99c53
14,168
py
Python
lib/third_party/mcu_vendor/espressif/esp-idf/components/partition_table/test_gen_esp32part_host/gen_esp32part_tests.py
fanwenl/amazon-freertos
7e28cfc6c35819688fbab738546e3746992cc51c
[ "MIT" ]
43
2019-12-03T19:48:53.000Z
2021-09-05T05:34:53.000Z
vendors/espressif/esp-idf/components/partition_table/test_gen_esp32part_host/gen_esp32part_tests.py
swhan1610/amazon-freertos
a9b6dafaf09dda6b0762688a99ab68f27657b29e
[ "MIT" ]
59
2019-12-04T00:06:45.000Z
2022-03-30T20:04:03.000Z
vendors/espressif/esp-idf/components/partition_table/test_gen_esp32part_host/gen_esp32part_tests.py
swhan1610/amazon-freertos
a9b6dafaf09dda6b0762688a99ab68f27657b29e
[ "MIT" ]
20
2019-11-29T14:51:04.000Z
2021-07-10T22:11:16.000Z
#!/usr/bin/env python from __future__ import print_function, division import unittest import struct import csv import sys import subprocess import tempfile import os sys.path.append("..") from gen_esp32part import * SIMPLE_CSV = """ # Name,Type,SubType,Offset,Size,Flags factory,0,2,65536,1048576, """ LONGER_BINARY_TA...
34.640587
118
0.596697
e54e082f55d7a104be538c267c0bd90e03fb7944
1,776
py
Python
src/collectors/slabinfo/test/testslabinfo.py
matt-ullmer/Diamond
6ea198f3ebe58473467c6dc38b20e683c278192c
[ "MIT" ]
2
2015-03-13T05:46:54.000Z
2015-11-05T15:54:28.000Z
src/collectors/slabinfo/test/testslabinfo.py
matt-ullmer/Diamond
6ea198f3ebe58473467c6dc38b20e683c278192c
[ "MIT" ]
1
2019-01-31T01:00:14.000Z
2019-01-31T01:00:14.000Z
src/collectors/slabinfo/test/testslabinfo.py
matt-ullmer/Diamond
6ea198f3ebe58473467c6dc38b20e683c278192c
[ "MIT" ]
2
2019-01-30T23:51:03.000Z
2020-02-04T19:27:26.000Z
#!/usr/bin/python # coding=utf-8 ################################################################################ from test import CollectorTestCase from test import get_collector_config from test import unittest from mock import Mock from mock import patch try: from cStringIO import StringIO except ImportError: ...
31.714286
80
0.603604
f0b6248fa7c684aed8bcf9e60785575a5ad0687b
7,610
py
Python
tests/tck/utils/assertions.py
emmeneses/RedisGraph
0aef1af36be487e90ed8a03a0e299a4e6e60ab17
[ "ISC", "Apache-2.0", "MIT", "Ruby", "BSD-3-Clause" ]
null
null
null
tests/tck/utils/assertions.py
emmeneses/RedisGraph
0aef1af36be487e90ed8a03a0e299a4e6e60ab17
[ "ISC", "Apache-2.0", "MIT", "Ruby", "BSD-3-Clause" ]
null
null
null
tests/tck/utils/assertions.py
emmeneses/RedisGraph
0aef1af36be487e90ed8a03a0e299a4e6e60ab17
[ "ISC", "Apache-2.0", "MIT", "Ruby", "BSD-3-Clause" ]
null
null
null
from numbers import Number from collections import Counter from redisgraph import Node, Edge, Path from RLTest import Env # Returns True if value is a number or string representation of a number. def is_numeric(value): # check for value's type to be a number or a string if not isinstance(value, (Number, str)...
32.245763
118
0.66728
89a696ea4f885378a1f44559ad4160802989def5
2,048
py
Python
tasque/cuda_selector.py
cdluminate/tq
270f45b1cb8484fa06d5b960e1108d3e3c1c7fdc
[ "MIT" ]
12
2018-10-18T04:31:22.000Z
2020-08-17T09:47:58.000Z
tasque/cuda_selector.py
cdluminate/tasque
270f45b1cb8484fa06d5b960e1108d3e3c1c7fdc
[ "MIT" ]
2
2018-04-26T17:18:11.000Z
2018-04-27T12:24:56.000Z
tasque/cuda_selector.py
CDLuminate/tq
270f45b1cb8484fa06d5b960e1108d3e3c1c7fdc
[ "MIT" ]
1
2019-05-13T08:43:17.000Z
2019-05-13T08:43:17.000Z
''' Copyright (C) 2020-2021 Mo Zhou <lumin@debian.org> License: MIT/Expat ''' from typing import List, Union from . import utils import csv import time from collections import namedtuple import subprocess as sp Card = namedtuple('Card', 'index, memory_total, memory_used, memory_free') class CudaSelector: ''' ...
30.117647
77
0.553223
ff689e7fda7f3bd9acf2c5c23a8acee469643a81
211,845
py
Python
tests/driver/runner_test.py
karmi/rally
51a83d7ad2b94de90b135749956b354cb50bcffc
[ "Apache-2.0" ]
null
null
null
tests/driver/runner_test.py
karmi/rally
51a83d7ad2b94de90b135749956b354cb50bcffc
[ "Apache-2.0" ]
null
null
null
tests/driver/runner_test.py
karmi/rally
51a83d7ad2b94de90b135749956b354cb50bcffc
[ "Apache-2.0" ]
null
null
null
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
36.028061
241
0.460695
35decbb632ebd4ad298cb706f1c7267ac7f8189b
3,727
py
Python
easy_command_sdk/model/metadata_center/stream_aggregate_states_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
easy_command_sdk/model/metadata_center/stream_aggregate_states_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
easy_command_sdk/model/metadata_center/stream_aggregate_states_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: stream_aggregate_states.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from goo...
41.876404
433
0.794204
44874a56d55cd13ab01a1c63ad2dd656cb319668
400,187
py
Python
seleniumbase/fixtures/base_case.py
wt5681/SeleniumBase
3e35b4ba0642e8d65ce74e7ee23e27327bf5b3c6
[ "MIT" ]
null
null
null
seleniumbase/fixtures/base_case.py
wt5681/SeleniumBase
3e35b4ba0642e8d65ce74e7ee23e27327bf5b3c6
[ "MIT" ]
null
null
null
seleniumbase/fixtures/base_case.py
wt5681/SeleniumBase
3e35b4ba0642e8d65ce74e7ee23e27327bf5b3c6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The BaseCase class is the main gateway for using The SeleniumBase Framework. It inherits Python's unittest.TestCase class, and runs with Pytest or Nose. All tests using BaseCase automatically launch WebDriver browsers for tests. Usage: from seleniumbase import BaseCase class MyTest...
41.891238
79
0.572442
c374bab97e50495498a86b2c2281ed1b78aa976c
7,544
py
Python
mcache/tests/test_check.py
Siecje/integrations-core
b2f3ea4145b25394be0b274093d1f0723e8f968d
[ "BSD-3-Clause" ]
null
null
null
mcache/tests/test_check.py
Siecje/integrations-core
b2f3ea4145b25394be0b274093d1f0723e8f968d
[ "BSD-3-Clause" ]
null
null
null
mcache/tests/test_check.py
Siecje/integrations-core
b2f3ea4145b25394be0b274093d1f0723e8f968d
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import subprocess import os import time from datadog_checks.mcache import Memcache import pytest import bmemcached from bmemcached.exceptions import MemcachedException from .common import PORT, SERVICE_CHECK, HO...
29.127413
102
0.667815
d22eea61f13c855c668b0542247e1507004c2af4
212
py
Python
musicmore/core/views.py
IPenuelas/musicmore_r01
94726c84aa61201940916feb4d5e535bcd4dc230
[ "MIT" ]
null
null
null
musicmore/core/views.py
IPenuelas/musicmore_r01
94726c84aa61201940916feb4d5e535bcd4dc230
[ "MIT" ]
null
null
null
musicmore/core/views.py
IPenuelas/musicmore_r01
94726c84aa61201940916feb4d5e535bcd4dc230
[ "MIT" ]
null
null
null
from django.shortcuts import render, HttpResponse # Create your views here. # Create your views here. def home(request): #return render(request, "shop/shop.html") return render(request, "core/home.html")
30.285714
49
0.740566
13abef9324133812676698715916a603dd349b2d
548
py
Python
tests/examples/script-failure-1.py
cav71/click-plus
a910a7b6d45d5bf0213faf101fb9a97578f7f4c6
[ "BSD-2-Clause" ]
null
null
null
tests/examples/script-failure-1.py
cav71/click-plus
a910a7b6d45d5bf0213faf101fb9a97578f7f4c6
[ "BSD-2-Clause" ]
null
null
null
tests/examples/script-failure-1.py
cav71/click-plus
a910a7b6d45d5bf0213faf101fb9a97578f7f4c6
[ "BSD-2-Clause" ]
null
null
null
from click.decorators import command, argument import click.plus from click.plus import api class MyArguments(api.ExtensionBase): def setup(self, fn, arguments): pass def process(self, kwargs, arguments): pass class MyArguments2(api.ExtensionBase): def setup(self, fn, arguments): ...
17.677419
56
0.669708
be81617cde3e2ef36ae64d08682276b4471fa5be
96
py
Python
gnuradio/gr-iotSDR/python/iotSDR_Remote/test.py
mfkiwl/iotSDR
2a2e4953894107b225f50d95dbdee0f90fa0f934
[ "BSD-3-Clause" ]
12
2020-10-01T02:50:56.000Z
2022-02-24T22:43:24.000Z
gnuradio/gr-iotSDR/python/iotSDR_Remote/test.py
mfkiwl/iotSDR
2a2e4953894107b225f50d95dbdee0f90fa0f934
[ "BSD-3-Clause" ]
1
2021-11-21T11:17:27.000Z
2021-12-31T17:23:50.000Z
gnuradio/gr-iotSDR/python/iotSDR_Remote/test.py
mfkiwl/iotSDR
2a2e4953894107b225f50d95dbdee0f90fa0f934
[ "BSD-3-Clause" ]
3
2021-03-19T07:53:19.000Z
2022-02-24T00:52:28.000Z
from iotSDR_Remote import iotSDR_Remote iot = iotSDR_Remote() iot.connect("10.42.0.128:42400")
19.2
39
0.78125
69099b70220ca7972c6d4455cb4da0349b4bd246
8,552
py
Python
alectryon/html.py
mattam82/alectryon
ec63bae501da52afcdd851c23a2cbd257f2ebfa6
[ "MIT" ]
null
null
null
alectryon/html.py
mattam82/alectryon
ec63bae501da52afcdd851c23a2cbd257f2ebfa6
[ "MIT" ]
null
null
null
alectryon/html.py
mattam82/alectryon
ec63bae501da52afcdd851c23a2cbd257f2ebfa6
[ "MIT" ]
null
null
null
# Copyright © 2019 Clément Pit-Claudel # # 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, d...
43.85641
292
0.619387
872c8db7f9b30abd07726dc84f3d4a0aee1adde7
3,557
py
Python
env/lib/python3.5/site-packages/nbconvert/postprocessors/serve.py
riordan/who-owns-what
62538fdb6d40ed1e0cdafb0df388be95fb388907
[ "Apache-2.0" ]
1
2021-04-08T17:05:42.000Z
2021-04-08T17:05:42.000Z
env/lib/python3.5/site-packages/nbconvert/postprocessors/serve.py
riordan/who-owns-what
62538fdb6d40ed1e0cdafb0df388be95fb388907
[ "Apache-2.0" ]
26
2020-03-24T18:07:06.000Z
2022-03-12T00:12:27.000Z
env/lib/python3.5/site-packages/nbconvert/postprocessors/serve.py
riordan/who-owns-what
62538fdb6d40ed1e0cdafb0df388be95fb388907
[ "Apache-2.0" ]
7
2017-08-01T04:02:07.000Z
2018-10-06T21:07:20.000Z
"""PostProcessor for serving reveal.js HTML slideshows.""" # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. from __future__ import print_function import os import webbrowser from tornado import web, ioloop, httpserver, log from tornado.httpclient import AsyncHTTPC...
35.217822
95
0.625246
d334ee6f9d1c88429c02b89f6fa39f6f7184e592
7,003
py
Python
toontown/ai/DatabaseObject.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/ai/DatabaseObject.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/ai/DatabaseObject.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
import types from panda3d.core import * from toontown.ai.ToontownAIMsgTypes import * from direct.directnotify.DirectNotifyGlobal import * from toontown.toon import DistributedToonAI from direct.distributed.PyDatagram import PyDatagram from direct.distributed.PyDatagramIterator import PyDatagramIterator class Database...
33.995146
91
0.580323
bb5f38fbf4000348e7ebfa9e7be5a3fa3bf482b0
15,341
py
Python
build_magic/output.py
Nightfurex/build-magic
ed6c5e36cd98a760a9cc1939589833722126e088
[ "MIT" ]
null
null
null
build_magic/output.py
Nightfurex/build-magic
ed6c5e36cd98a760a9cc1939589833722126e088
[ "MIT" ]
null
null
null
build_magic/output.py
Nightfurex/build-magic
ed6c5e36cd98a760a9cc1939589833722126e088
[ "MIT" ]
null
null
null
"""Module for defining build-magic output functionality.""" from datetime import datetime import os import sys from colorama import Cursor, Fore, init, Style from build_magic import __version__ as version from build_magic.reference import OutputMethod, ExitCode class Output: """Interface for defining output me...
34.396861
109
0.59077
2de5d65f945ae6ca061b1ded21b62785de876210
4,942
py
Python
modules/path_util.py
tappi287/simmon_gui
86a58fc5d3e81aacf551c1f2bd1312fd1c2b0526
[ "MIT" ]
2
2021-03-06T12:10:30.000Z
2021-04-06T07:20:56.000Z
modules/path_util.py
tappi287/simmon_gui
86a58fc5d3e81aacf551c1f2bd1312fd1c2b0526
[ "MIT" ]
2
2021-04-06T08:47:10.000Z
2021-09-14T19:44:44.000Z
modules/path_util.py
tappi287/simmon_gui
86a58fc5d3e81aacf551c1f2bd1312fd1c2b0526
[ "MIT" ]
null
null
null
""" gui_set_path module provides a file dialog for selecting paths or a line edit to paste and display the chosen path Copyright (C) 2017 Stefan Tapper, All rights reserved. This file is part of RenderKnecht Strink Kerker. RenderKnecht Strink Kerker is free software: you can redistribute it and/or modify ...
32.090909
114
0.638001
1fa98cb7e509ee57eedd67ba341682451c80acfa
1,374
py
Python
Assignment_1/Exercise_2/data_generator.py
jpvt/Deep_Learning
e51461b6aad1daef47582bbbb4350a14a04e1ddd
[ "MIT" ]
6
2020-10-23T15:24:25.000Z
2021-04-24T21:25:10.000Z
Assignment_1/Exercise_2/data_generator.py
jpvt/Deep_Learning
e51461b6aad1daef47582bbbb4350a14a04e1ddd
[ "MIT" ]
null
null
null
Assignment_1/Exercise_2/data_generator.py
jpvt/Deep_Learning
e51461b6aad1daef47582bbbb4350a14a04e1ddd
[ "MIT" ]
2
2020-10-23T22:04:54.000Z
2020-10-23T22:49:17.000Z
import numpy as np import math def f(x): y = math.sin(math.pi * x) / (math.pi * x) return y class DataGenerator(): def generate_problem_A(self, opt = 'std'): """ Function that generates the data for the XOR logic function: X | Y | A| 0 | 0 | 0 B| 0 ...
23.689655
74
0.432314
6a01d65d2e382fc87a15910268a86221d7568a32
4,977
py
Python
Malmo/samples/Python_examples/tutorial_8.py
geekstor/malmo-1
ce1e7972d9c1d6244a2615af0dc80f709222c6fd
[ "MIT" ]
2
2017-04-10T21:01:35.000Z
2019-06-08T10:02:16.000Z
Malmo/samples/Python_examples/tutorial_8.py
geekstor/malmo-1
ce1e7972d9c1d6244a2615af0dc80f709222c6fd
[ "MIT" ]
null
null
null
Malmo/samples/Python_examples/tutorial_8.py
geekstor/malmo-1
ce1e7972d9c1d6244a2615af0dc80f709222c6fd
[ "MIT" ]
1
2018-08-02T10:51:51.000Z
2018-08-02T10:51:51.000Z
# ------------------------------------------------------------------------------------------------ # Copyright (c) 2016 Microsoft Corporation # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and # associated documentation files (the "Software"), to deal in the Software ...
35.297872
105
0.653004
625c4097ec28aa9297490c608890c4337412bd85
3,507
py
Python
ENCODE_read_lengths.py
T2DREAM/pyencoded-tools
75fa636995bfc9fe181f9af490ce70dde3f6ce21
[ "MIT" ]
null
null
null
ENCODE_read_lengths.py
T2DREAM/pyencoded-tools
75fa636995bfc9fe181f9af490ce70dde3f6ce21
[ "MIT" ]
null
null
null
ENCODE_read_lengths.py
T2DREAM/pyencoded-tools
75fa636995bfc9fe181f9af490ce70dde3f6ce21
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: latin-1 -*- import argparse import os.path import encodedcc import sys EPILOG = ''' This script opens a fastq and calculates the read length, it can also print the header line of the fastq currently unable to parse header for information such as machine name %(prog)s --inf...
35.424242
116
0.564585
661a6bb497699041e56129c433b5464aba418fa3
11,874
py
Python
tests/utils_tests/test_text.py
adilwaheed21/django
d924f10b84a66b5007d7ac2641313ab9d30b02ff
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/utils_tests/test_text.py
adilwaheed21/django
d924f10b84a66b5007d7ac2641313ab9d30b02ff
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/utils_tests/test_text.py
adilwaheed21/django
d924f10b84a66b5007d7ac2641313ab9d30b02ff
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
import json from django.test import SimpleTestCase from django.utils import text from django.utils.functional import lazystr from django.utils.text import format_lazy from django.utils.translation import gettext_lazy, override IS_WIDE_BUILD = (len('\U0001F4A9') == 1) class TestUtilsText(SimpleTestCase): def te...
45.84556
116
0.562153
1217fb85893032cf1003a045547c3f360e852256
1,673
py
Python
poetry/console/commands/publish.py
nayyarv/poetry
07e71abb32050514c2d2269709480c48fd7827b2
[ "MIT" ]
2
2018-11-25T15:37:41.000Z
2018-11-27T03:01:43.000Z
poetry/console/commands/publish.py
djetelina/poetry
1aa1ab2962bb8b6aed33c2308cf8352809d91685
[ "MIT" ]
1
2021-02-15T17:05:58.000Z
2021-02-15T17:05:58.000Z
poetry/console/commands/publish.py
djetelina/poetry
1aa1ab2962bb8b6aed33c2308cf8352809d91685
[ "MIT" ]
null
null
null
from .command import Command class PublishCommand(Command): """ Publishes a package to a remote repository. publish { --r|repository= : The repository to publish the package to. } { --u|username= : The username to access the repository. } { --p|password= : The password to access t...
29.875
88
0.585176
22209ba7d2efc8f6dfd18b15e5f019e70727d122
494
py
Python
tests/fixtures/train.py
rguerrettaz/client
06a8759ad9c3c407e815cecbd789c3a2d44e4a2b
[ "MIT" ]
null
null
null
tests/fixtures/train.py
rguerrettaz/client
06a8759ad9c3c407e815cecbd789c3a2d44e4a2b
[ "MIT" ]
null
null
null
tests/fixtures/train.py
rguerrettaz/client
06a8759ad9c3c407e815cecbd789c3a2d44e4a2b
[ "MIT" ]
null
null
null
import argparse import time import random import wandb import os import signal parser = argparse.ArgumentParser() parser.add_argument('--epochs', type=int, default=2) args = parser.parse_args() wandb.init(config=args) #raise ValueError() #os.kill(os.getpid(), signal.SIGINT) for i in range(0, wandb.config.epochs): ...
21.478261
53
0.706478
669f63403d16a8e54ff9653f95fa65aecb485a81
795
py
Python
OxfordVaccine/oxfordefficacy-hypothesistest.py
alex1770/Covid-19
0212593bf5d9bcbb7009c7d1fb1710116ad8bf32
[ "MIT" ]
5
2021-06-26T09:22:45.000Z
2021-12-20T21:29:22.000Z
OxfordVaccine/oxfordefficacy-hypothesistest.py
alex1770/Covid-19
0212593bf5d9bcbb7009c7d1fb1710116ad8bf32
[ "MIT" ]
1
2021-12-21T09:45:17.000Z
2021-12-21T09:45:17.000Z
OxfordVaccine/oxfordefficacy-hypothesistest.py
alex1770/Covid-19
0212593bf5d9bcbb7009c7d1fb1710116ad8bf32
[ "MIT" ]
2
2021-06-25T18:27:56.000Z
2021-12-12T17:49:31.000Z
(p0,v0,p1,v1)=(30,3,71,27) r=(v0+v1)/(p0+p1) print("H0: Efficacy = %.1f%% regardless of which of the two dose regimens are used"%((1-r)*100)) from scipy.stats import poisson, binom # Assume p0 was really from a Poisson(p0), and assume v0 was from a B(Poisson(p0), r) # Assume p1 was really from a Poisson(p1), and as...
31.8
101
0.693082
3a02a266c6a760da5ec8253b7f01bd17abe44032
1,095
py
Python
02-AML_Development/pipeline_step_scripts/get_data.py
nickwiecien/AzureML_Autoencoder_MLOps
95f5bcf75d75c51bf0e4abb3751fc3f64fb4572c
[ "MIT" ]
1
2021-09-12T22:41:25.000Z
2021-09-12T22:41:25.000Z
03-AML_AzDO_MLOpsDevelopment/pipeline_step_scripts/get_data.py
nickwiecien/AzureML_Autoencoder_MLOps
95f5bcf75d75c51bf0e4abb3751fc3f64fb4572c
[ "MIT" ]
null
null
null
03-AML_AzDO_MLOpsDevelopment/pipeline_step_scripts/get_data.py
nickwiecien/AzureML_Autoencoder_MLOps
95f5bcf75d75c51bf0e4abb3751fc3f64fb4572c
[ "MIT" ]
1
2021-09-12T22:41:26.000Z
2021-09-12T22:41:26.000Z
from azureml.core import Run, Workspace, Datastore, Dataset from azureml.data.datapath import DataPath import pandas as pd import os import argparse from sklearn import preprocessing import numpy as np #Parse input arguments parser = argparse.ArgumentParser("Get data from ADLS Gen2 and register in AML workspace") pars...
31.285714
95
0.810959
e74ef06eb8e856d3bbb8280d6a530c6ca00dfc5e
56,284
py
Python
msticpy/nbtools/nbwidgets.py
emablanco/seguridad-microsoft
464824d9742ca5ca941fbd455e23f386592189fe
[ "MIT" ]
null
null
null
msticpy/nbtools/nbwidgets.py
emablanco/seguridad-microsoft
464824d9742ca5ca941fbd455e23f386592189fe
[ "MIT" ]
null
null
null
msticpy/nbtools/nbwidgets.py
emablanco/seguridad-microsoft
464824d9742ca5ca941fbd455e23f386592189fe
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """Module ...
32.609502
89
0.586277
896e40a92d4ecc01f90f45089604b70b4287b023
1,110
py
Python
vbsem_experiments/discrete/Exp_hiv_test.py
ferjorosa/test-glfm
b219c650d0429ea71b953743730ae53cc122a61b
[ "MIT" ]
null
null
null
vbsem_experiments/discrete/Exp_hiv_test.py
ferjorosa/test-glfm
b219c650d0429ea71b953743730ae53cc122a61b
[ "MIT" ]
null
null
null
vbsem_experiments/discrete/Exp_hiv_test.py
ferjorosa/test-glfm
b219c650d0429ea71b953743730ae53cc122a61b
[ "MIT" ]
null
null
null
import DiscreteExperiment class Exp_hiv_test(DiscreteExperiment.DiscreteExperiment): def __init__(self, _data_name): DiscreteExperiment.DiscreteExperiment.__init__(self, _data_name) def run(self, missing_percentage, n_runs, run_log): print("\n-------------------------------------------------...
33.636364
92
0.463063
16c5e10b52ce2207e2e184cefc83526f178fe2b0
2,661
py
Python
Sec_8_funcoes/c_funcoes_com_parametro.py
PauloAlexSilva/Python
690913cdcfd8bde52d9ddd15e3c838e6aef27730
[ "MIT" ]
null
null
null
Sec_8_funcoes/c_funcoes_com_parametro.py
PauloAlexSilva/Python
690913cdcfd8bde52d9ddd15e3c838e6aef27730
[ "MIT" ]
null
null
null
Sec_8_funcoes/c_funcoes_com_parametro.py
PauloAlexSilva/Python
690913cdcfd8bde52d9ddd15e3c838e6aef27730
[ "MIT" ]
null
null
null
""" Funções com Parametro (de entrada) - Funções que recebem dados para serem processados dentro da mesma; Num programa qualquer geralmente temos: - Entrada -> Processamento -> Saída Se for uma função, sabemos que: - Não possuem entrada; - Não possuem saída; - Possuem entrada mas não possuem saída; ...
20.469231
85
0.699737
c145cfe4596e0d324cc8515c3df661809142413b
2,615
py
Python
autoretouch/api_client/model.py
autoretouch/autoretouch-python-client
61ca3af3fa6e1dccaf6e1622b1cc287c6e086e0d
[ "0BSD" ]
null
null
null
autoretouch/api_client/model.py
autoretouch/autoretouch-python-client
61ca3af3fa6e1dccaf6e1622b1cc287c6e086e0d
[ "0BSD" ]
null
null
null
autoretouch/api_client/model.py
autoretouch/autoretouch-python-client
61ca3af3fa6e1dccaf6e1622b1cc287c6e086e0d
[ "0BSD" ]
1
2022-02-13T17:45:10.000Z
2022-02-13T17:45:10.000Z
import dataclasses from datetime import datetime from typing import List, Dict, Optional, Union from uuid import UUID import inspect from dataclasses import dataclass @dataclass class BaseModel: @classmethod def from_dict(cls, dct: Dict): """method to instantiate a dataclass without TypeError on extra...
22.73913
84
0.679541
07a109ce786e779411a57f36e81f698ca2fdba13
1,600
py
Python
problems/SR/auto/problem22_SR.py
sunandita/ICAPS_Summer_School_RAE_2020
a496b62185bcfdd2c76eb7986ae99cfa85708d28
[ "BSD-3-Clause" ]
5
2020-10-15T14:40:03.000Z
2021-08-20T17:45:41.000Z
problems/SR/auto/problem22_SR.py
sunandita/ICAPS_Summer_School_RAE_2020
a496b62185bcfdd2c76eb7986ae99cfa85708d28
[ "BSD-3-Clause" ]
null
null
null
problems/SR/auto/problem22_SR.py
sunandita/ICAPS_Summer_School_RAE_2020
a496b62185bcfdd2c76eb7986ae99cfa85708d28
[ "BSD-3-Clause" ]
2
2020-10-15T07:06:14.000Z
2020-10-15T17:33:01.000Z
__author__ = 'patras' from domain_searchAndRescue import * from timer import DURATION from state import state def GetCostOfMove(r, l1, l2, dist): return dist DURATION.TIME = { 'giveSupportToPerson': 15, 'clearLocation': 5, 'inspectPerson': 20, 'moveEuclidean': GetCostOfMove, 'moveCurved': GetC...
26.229508
92
0.580625
b7a885ea79436e4410d1c3cfb74d712516867c3d
206
py
Python
openstack/__init__.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
43
2018-12-19T08:39:15.000Z
2021-07-21T02:45:43.000Z
openstack/__init__.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
11
2019-03-17T13:28:56.000Z
2020-09-23T23:57:50.000Z
openstack/__init__.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
47
2018-12-19T05:14:25.000Z
2022-03-19T15:28:30.000Z
import socket if hasattr(socket, "TCP_KEEPCNT"): del socket.TCP_KEEPCNT if hasattr(socket, "TCP_KEEPIDLE"): del socket.TCP_KEEPIDLE if hasattr(socket, "TCP_KEEPINTVL"): del socket.TCP_KEEPINTVL
25.75
36
0.757282
307f808c17ec98bf7856aa4c06d5ae8abe356454
2,072
py
Python
nasim/agents/SumTree2.py
Joe-zsc/NetworkAttackSimulator
e92a73918622c6c3e7cd61b697a8221cbdbe82eb
[ "MIT" ]
2
2021-11-22T23:04:18.000Z
2021-12-16T14:36:42.000Z
nasim/agents/SumTree2.py
Joe-zsc/NetworkAttackSimulator
e92a73918622c6c3e7cd61b697a8221cbdbe82eb
[ "MIT" ]
null
null
null
nasim/agents/SumTree2.py
Joe-zsc/NetworkAttackSimulator
e92a73918622c6c3e7cd61b697a8221cbdbe82eb
[ "MIT" ]
null
null
null
import numpy # SumTree # a binary tree data structure where the parent’s value is the sum of its children class SumTree: write = 0 def __init__(self, capacity): self.capacity = capacity self.tree = numpy.zeros(2 * capacity - 1) self.data = numpy.zeros(capacity, dtype=object) s...
28.383562
88
0.521718
2bd1be68317775b8e7ed264098317cec5f1bfaaa
10,006
py
Python
tests/test_operators.py
miku/pandasticsearch
3b2c3dc26eba7f57878501a61aa691dbc8137800
[ "MIT" ]
null
null
null
tests/test_operators.py
miku/pandasticsearch
3b2c3dc26eba7f57878501a61aa691dbc8137800
[ "MIT" ]
null
null
null
tests/test_operators.py
miku/pandasticsearch
3b2c3dc26eba7f57878501a61aa691dbc8137800
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import unittest from pandasticsearch.operators import * class TestOperators(unittest.TestCase): def test_metric_agg(self): self.assertEqual(MetricAggregator('x', 'avg').build(), {'avg(x)': {'avg': {'field': 'x'}}}) self.assertEqual(MetricAggregator('x', 'max').build(), {'m...
35.992806
113
0.311413
53ad2dbc46d4b895ad67989fa48bab4617d702de
188,073
py
Python
tensorflow/python/keras/backend.py
gfwilliams/tensorflow
a57135f1204bd71c0260e425b49f3fa5e18e57e1
[ "Apache-2.0" ]
1
2019-09-28T13:47:23.000Z
2019-09-28T13:47:23.000Z
tensorflow/python/keras/backend.py
Hunterlcf/tensorflow
c7f3bb27278a2392b55cde6e3bd6714556511f9d
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/backend.py
Hunterlcf/tensorflow
c7f3bb27278a2392b55cde6e3bd6714556511f9d
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
31.497739
112
0.664269
9fef38a8d58e46b13e016cd38c8dafa05420e09b
13,216
py
Python
ApiManager/views.py
hqw0805/HttpRunnerManager
6bce3d4f15c1530b52f9f016d3ee0e05d8bb4949
[ "MIT" ]
2
2021-06-17T08:16:59.000Z
2022-02-14T08:46:06.000Z
ApiManager/views.py
hqw0805/HttpRunnerManager
6bce3d4f15c1530b52f9f016d3ee0e05d8bb4949
[ "MIT" ]
null
null
null
ApiManager/views.py
hqw0805/HttpRunnerManager
6bce3d4f15c1530b52f9f016d3ee0e05d8bb4949
[ "MIT" ]
null
null
null
import json import os from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render_to_response from ApiManager.utils.common import module_info_logic, project_info_logic, case_info_logic, config_info_logic, \ set_filter_session, get_ajax_msg, register_info_logic, yml_parser from A...
32.632099
112
0.596625
42ffca4f3dc33cd425b9d7d8e112c705ed3d1e8e
722
py
Python
model/bottles.py
georgistojanov/abc
598a89c5939d97fa14aaae2e3b0a4d3d5495b467
[ "MIT" ]
26
2017-12-12T01:03:50.000Z
2022-01-10T03:33:24.000Z
model/bottles.py
georgistojanov/abc
598a89c5939d97fa14aaae2e3b0a4d3d5495b467
[ "MIT" ]
null
null
null
model/bottles.py
georgistojanov/abc
598a89c5939d97fa14aaae2e3b0a4d3d5495b467
[ "MIT" ]
8
2017-11-16T09:20:53.000Z
2021-06-28T21:06:18.000Z
"""Nd wrappers for modules that operate on the columns of a matrix.""" import torch from torch import nn class Bottle(nn.Module): """Allows a 2D module to process an Nd input.""" def forward(self, *args, **kwargs): return bottle(super(Bottle, self).forward, *args, **kwargs) def bottle(fn, inp, *arg...
24.896552
70
0.632964
8881467ce60e909c043bdfb8c432acf45778b01f
1,203
py
Python
fastapi_chat/chat/settings.py
wykyee/fastapi_chat
8d6424a00c86dd0ec15412cf8f36998417557d99
[ "MIT" ]
3
2021-11-13T20:41:33.000Z
2022-01-19T11:55:20.000Z
fastapi_chat/chat/settings.py
wykyee/fastapi_chat
8d6424a00c86dd0ec15412cf8f36998417557d99
[ "MIT" ]
null
null
null
fastapi_chat/chat/settings.py
wykyee/fastapi_chat
8d6424a00c86dd0ec15412cf8f36998417557d99
[ "MIT" ]
null
null
null
from functools import lru_cache from os import getenv from pydantic import BaseSettings class UvicornSettings(BaseSettings): app: str = "fastapi_chat.chat.app:app" host: str = getenv("CHAT_HOST", "0.0.0.0") port: int = getenv("CHAT_PORT", 8088) workers: int = getenv("CHAT_WORKERS", 1) reload: bool...
28.642857
84
0.715711
06865c3d54eb54a5e4f539fc11b1f9ee1ab3c5b6
1,235
py
Python
tests/test_relation.py
lmignon/pydantic-ext
3cdb75b625782172f84dd449f081521e560ac9ad
[ "MIT" ]
null
null
null
tests/test_relation.py
lmignon/pydantic-ext
3cdb75b625782172f84dd449f081521e560ac9ad
[ "MIT" ]
null
null
null
tests/test_relation.py
lmignon/pydantic-ext
3cdb75b625782172f84dd449f081521e560ac9ad
[ "MIT" ]
null
null
null
"""Test relations.""" from pydantic.main import BaseModel from extendable_pydantic import ExtendableModelMeta def test_model_relation(test_registry): class Coordinate(BaseModel, metaclass=ExtendableModelMeta): lat = 0.1 lng = 10.1 class Person(BaseModel, metaclass=ExtendableModelMeta): ...
34.305556
86
0.667206
f7e4b56ef5d7e5d58baa12c54b00f6afa816c571
12,175
py
Python
beta/tests/tensorflow/sparsity/test_common.py
l-bat/nncf
6258916cd5fa7fc010ad09da63113354358bffd8
[ "Apache-2.0" ]
null
null
null
beta/tests/tensorflow/sparsity/test_common.py
l-bat/nncf
6258916cd5fa7fc010ad09da63113354358bffd8
[ "Apache-2.0" ]
null
null
null
beta/tests/tensorflow/sparsity/test_common.py
l-bat/nncf
6258916cd5fa7fc010ad09da63113354358bffd8
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2020 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
42.421603
110
0.631869
fcb7c69b5ca2cc381a7b09ea506c831add01a4ec
78
py
Python
CraftProtocol/VersionConstants.py
Toranktto/CraftProtocol
a6f4a67756c3868820ab76df5e148d76b020d990
[ "MIT" ]
21
2018-05-12T20:18:02.000Z
2022-02-18T17:33:50.000Z
CraftProtocol/VersionConstants.py
Toranktto/CraftProtocol
a6f4a67756c3868820ab76df5e148d76b020d990
[ "MIT" ]
1
2018-06-23T09:13:39.000Z
2018-06-27T01:22:27.000Z
CraftProtocol/VersionConstants.py
Toranktto/CraftProtocol
a6f4a67756c3868820ab76df5e148d76b020d990
[ "MIT" ]
2
2018-05-19T21:36:00.000Z
2020-10-02T03:23:13.000Z
#!/usr/bin/env python class VersionConstants(object): VERSION = "0.2.6"
13
31
0.666667
0be19e1279d044a050637c8f6cd26d1ab2f56b3f
305
py
Python
src/robusta/core/sinks/sink_config.py
Shubh28698/robusta
57493748cbe6fac77761af616b2ec8cacdd870b6
[ "MIT" ]
null
null
null
src/robusta/core/sinks/sink_config.py
Shubh28698/robusta
57493748cbe6fac77761af616b2ec8cacdd870b6
[ "MIT" ]
null
null
null
src/robusta/core/sinks/sink_config.py
Shubh28698/robusta
57493748cbe6fac77761af616b2ec8cacdd870b6
[ "MIT" ]
null
null
null
import abc from pydantic import BaseModel from .sink_base_params import SinkBaseParams class SinkConfigBase(BaseModel): @abc.abstractmethod def get_name(self) -> str: """get sink name""" @abc.abstractmethod def get_params(self) -> SinkBaseParams: """get sink params"""
20.333333
44
0.691803
70e291391a3c71aafd637c2e4502be9c945d0daa
1,593
py
Python
lib/cryptopy/keyedHash/pbkdf2.py
Twilight0/script.module.streamlink.crypto
a5e4542aee5cd3ff08673e946b02cc629bc5368e
[ "MIT" ]
null
null
null
lib/cryptopy/keyedHash/pbkdf2.py
Twilight0/script.module.streamlink.crypto
a5e4542aee5cd3ff08673e946b02cc629bc5368e
[ "MIT" ]
null
null
null
lib/cryptopy/keyedHash/pbkdf2.py
Twilight0/script.module.streamlink.crypto
a5e4542aee5cd3ff08673e946b02cc629bc5368e
[ "MIT" ]
1
2019-08-31T11:29:00.000Z
2019-08-31T11:29:00.000Z
""" cryptopy.keyedHash.pbkdf2 Password Based Key Derivation Function 2 References: RFC2898, B. Kaliski, September 2000, PKCS #5 This function is used for IEEE 802.11/WPA passphrase to key hashing Copyright (c) 2002 by Paul A. Lambert Read LICENSE.txt for license information. """ from cryptopy.keyedH...
36.204545
96
0.710609
0f26fe06bd7463f4240af5230330b6836daac613
1,557
py
Python
framework/Exploits/OSVDB_82707_A.py
UncleWillis/BugBox
25682f25fc3222db383649a4924bcd65f2ddcb34
[ "BSD-3-Clause" ]
1
2019-01-25T21:32:42.000Z
2019-01-25T21:32:42.000Z
framework/Exploits/OSVDB_82707_A.py
UncleWillis/BugBox
25682f25fc3222db383649a4924bcd65f2ddcb34
[ "BSD-3-Clause" ]
null
null
null
framework/Exploits/OSVDB_82707_A.py
UncleWillis/BugBox
25682f25fc3222db383649a4924bcd65f2ddcb34
[ "BSD-3-Clause" ]
1
2021-06-23T04:44:25.000Z
2021-06-23T04:44:25.000Z
# Copyright 2013 University of Maryland. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE.TXT file. import framework import time import selenium.common.exceptions class Exploit (framework.Exploit): attributes = {'Name' ...
34.6
98
0.573539
b25098738fe57a314de88c6d83256d1f71c9e020
3,114
py
Python
lab_1/lab1_project/lab1_project/settings.py
jennifernolan/Software-for-the-Global-Market
9a219dd0c0ceb284b3458cd7ad3fe103859fbfe8
[ "MIT" ]
null
null
null
lab_1/lab1_project/lab1_project/settings.py
jennifernolan/Software-for-the-Global-Market
9a219dd0c0ceb284b3458cd7ad3fe103859fbfe8
[ "MIT" ]
null
null
null
lab_1/lab1_project/lab1_project/settings.py
jennifernolan/Software-for-the-Global-Market
9a219dd0c0ceb284b3458cd7ad3fe103859fbfe8
[ "MIT" ]
null
null
null
""" Django settings for lab1_project project. Generated by 'django-admin startproject' using Django 1.11.4. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ impo...
25.735537
91
0.698137
7756b8e65a80c8e77a4796e6bc1cc4c9b91fe52d
73,338
py
Python
chia/full_node/weight_proof.py
ForestCrazy/chia-blockchain
88ac1bfd3f11fcd384ff07b81c777e7f11cbaf9c
[ "Apache-2.0" ]
null
null
null
chia/full_node/weight_proof.py
ForestCrazy/chia-blockchain
88ac1bfd3f11fcd384ff07b81c777e7f11cbaf9c
[ "Apache-2.0" ]
null
null
null
chia/full_node/weight_proof.py
ForestCrazy/chia-blockchain
88ac1bfd3f11fcd384ff07b81c777e7f11cbaf9c
[ "Apache-2.0" ]
null
null
null
import asyncio import dataclasses import logging import math from multiprocessing.context import BaseContext import pathlib import random from concurrent.futures.process import ProcessPoolExecutor import tempfile from typing import Dict, IO, List, Optional, Tuple from chia.consensus.block_header_validation import vali...
42.196778
120
0.668753
7eec4fc9b38b206f22e187a3457c31058f6c1710
18,736
py
Python
pysnmp-with-texts/DLINK-3100-GVRP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/DLINK-3100-GVRP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/DLINK-3100-GVRP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module DLINK-3100-GVRP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DLINK-3100-GVRP-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:48:25 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
132.879433
2,163
0.796915
220ba649867b8e44a70441783debba33d7170e96
6,697
py
Python
tests/test_config_parsing.py
ess-dmsc/just-bin-it
8fcd03337a8a88087f25c510c589d482bdd9e4ad
[ "BSD-2-Clause" ]
null
null
null
tests/test_config_parsing.py
ess-dmsc/just-bin-it
8fcd03337a8a88087f25c510c589d482bdd9e4ad
[ "BSD-2-Clause" ]
23
2018-12-04T11:50:37.000Z
2022-03-17T11:30:39.000Z
tests/test_config_parsing.py
ess-dmsc/just-bin-it
8fcd03337a8a88087f25c510c589d482bdd9e4ad
[ "BSD-2-Clause" ]
2
2019-07-24T11:13:41.000Z
2020-08-04T18:33:22.000Z
import copy import pytest from just_bin_it.histograms.histogram1d import TOF_1D_TYPE from just_bin_it.histograms.histogram2d import TOF_2D_TYPE from just_bin_it.histograms.histogram2d_map import MAP_TYPE from just_bin_it.histograms.histogram_factory import parse_config CONFIG_FULL = { "cmd": "config", "start...
32.197115
84
0.573242
1f84ed8cf08778ef1664ffefdd7000de5e010498
36,412
py
Python
pysftp/__init__.py
guilleJB/pysftp
647e3902ada2a37e5f095dd902fe567d0e5c2501
[ "BSD-3-Clause" ]
2
2020-09-21T12:11:57.000Z
2020-09-25T02:13:01.000Z
pysftp/__init__.py
guilleJB/pysftp
647e3902ada2a37e5f095dd902fe567d0e5c2501
[ "BSD-3-Clause" ]
2
2021-12-14T10:49:41.000Z
2021-12-31T22:59:42.000Z
pysftp/__init__.py
guilleJB/pysftp
647e3902ada2a37e5f095dd902fe567d0e5c2501
[ "BSD-3-Clause" ]
1
2022-02-01T20:12:44.000Z
2022-02-01T20:12:44.000Z
"""A friendly Python SFTP interface.""" from __future__ import print_function import os from contextlib import contextmanager import posixpath import socket from stat import S_IMODE, S_ISDIR, S_ISREG import tempfile import warnings import paramiko from paramiko import SSHException, AuthenticationException # make av...
35.698039
80
0.608865
25ca6e05e9c29e9daad18a438efd759383cad59a
7,583
py
Python
PythonAPI/carla/setup.py
JohanVer/carla
f7c36574057aacd002c478d858b4cdfe19ee8da9
[ "MIT" ]
null
null
null
PythonAPI/carla/setup.py
JohanVer/carla
f7c36574057aacd002c478d858b4cdfe19ee8da9
[ "MIT" ]
null
null
null
PythonAPI/carla/setup.py
JohanVer/carla
f7c36574057aacd002c478d858b4cdfe19ee8da9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. from setuptools import setup, Extension import fnmatch import os import sys ...
45.680723
145
0.609653
9a0817ea2533842a8357784be277888e5002bb4c
11,975
py
Python
dcolumn/dcolumns/tests/base_tests.py
cnobile2012/dcolumn
db8432b73b8106fa9aa4da845addc79ac8cbfb6d
[ "MIT" ]
9
2016-04-05T16:51:21.000Z
2020-12-10T21:54:20.000Z
dcolumn/dcolumns/tests/base_tests.py
cnobile2012/dcolumn
db8432b73b8106fa9aa4da845addc79ac8cbfb6d
[ "MIT" ]
null
null
null
dcolumn/dcolumns/tests/base_tests.py
cnobile2012/dcolumn
db8432b73b8106fa9aa4da845addc79ac8cbfb6d
[ "MIT" ]
1
2020-08-16T15:58:05.000Z
2020-08-16T15:58:05.000Z
# -*- coding: utf-8 -*- # # dcolumn/dcolumns/tests/base_tests.py # import datetime import pytz import json from django.contrib.auth import get_user_model from django.test import TestCase from example_site.books.models import Author, Book, Publisher, Promotion from dcolumn.dcolumns.manager import DynamicColumnManager...
37.657233
79
0.592317
0b9c938d8a22b7a9755d9489e2da300363a79e28
1,063
py
Python
openpyxlzip/drawing/tests/test_relation.py
ankitJoshi03/openpyxlzip
f3b8aa2f80f9d8bc31ce5fcf05c822d88d2ff647
[ "MIT" ]
null
null
null
openpyxlzip/drawing/tests/test_relation.py
ankitJoshi03/openpyxlzip
f3b8aa2f80f9d8bc31ce5fcf05c822d88d2ff647
[ "MIT" ]
null
null
null
openpyxlzip/drawing/tests/test_relation.py
ankitJoshi03/openpyxlzip
f3b8aa2f80f9d8bc31ce5fcf05c822d88d2ff647
[ "MIT" ]
null
null
null
# Copyright (c) 2010-2020 openpyxlzip import pytest from openpyxlzip.xml.functions import fromstring, tostring from openpyxlzip.tests.helper import compare_xml @pytest.fixture def ChartRelation(): from ..graphic import ChartRelation return ChartRelation class TestChartRelation: def test_ctor(self, Ch...
30.371429
173
0.683913
f90562e82a7dfeae513ad46f216394ed654d54f8
1,159
py
Python
19.py
csmith/aoc-2017
e9ef83f514fc6c877deb74eb296dd69a5d895e90
[ "CC0-1.0" ]
null
null
null
19.py
csmith/aoc-2017
e9ef83f514fc6c877deb74eb296dd69a5d895e90
[ "CC0-1.0" ]
null
null
null
19.py
csmith/aoc-2017
e9ef83f514fc6c877deb74eb296dd69a5d895e90
[ "CC0-1.0" ]
null
null
null
import operator def junction_route(maze, pos, original_heading): headings = [(-1, 0), (1, 0)] if original_heading[0] == 0 else [(0, -1), (0, 1)] for heading in headings: new_pos = tuple(map(operator.add, pos, heading)) try: cell = maze[new_pos] if cell.isalpha() or cell...
32.194444
88
0.556514
8c2a1cf3f8656e61a5d80ab895815ec1f1c025af
1,236
py
Python
source/irfs/full_enclosure/bkg/create_bkg_2d_example_file.py
javierrico/gamma-astro-data-formats
04e943ff9bda137e0a2c3c291ee97d0b8253ebf7
[ "CC-BY-4.0" ]
24
2016-04-04T15:22:13.000Z
2021-09-10T03:43:08.000Z
source/irfs/full_enclosure/bkg/create_bkg_2d_example_file.py
javierrico/gamma-astro-data-formats
04e943ff9bda137e0a2c3c291ee97d0b8253ebf7
[ "CC-BY-4.0" ]
147
2016-02-20T16:05:13.000Z
2022-03-18T12:40:15.000Z
source/irfs/full_enclosure/bkg/create_bkg_2d_example_file.py
javierrico/gamma-astro-data-formats
04e943ff9bda137e0a2c3c291ee97d0b8253ebf7
[ "CC-BY-4.0" ]
24
2016-02-24T07:39:57.000Z
2021-09-13T09:06:43.000Z
"""Generate an example background rate file. """ from astropy.io import fits from astropy.table import Table import numpy as np e_bins = 20 o_bins = 5 e_axis = np.logspace(-1,2,e_bins+1) o_axis = np.linspace(0,3,o_bins+1) bkg = np.ones([e_bins, o_bins]) * 100 table = Table([[e_axis[:-1]],[e_axis[1:]], ...
28.744186
89
0.627832
41247ecb48a3f890398ade7d5e9f0ca65ca065f7
368
py
Python
discourse_forum/discourse_forum/pipelines.py
tpronk/scraper
a44913d5efd319fc30d1b395aa817fb9fc5537c9
[ "Apache-2.0" ]
null
null
null
discourse_forum/discourse_forum/pipelines.py
tpronk/scraper
a44913d5efd319fc30d1b395aa817fb9fc5537c9
[ "Apache-2.0" ]
null
null
null
discourse_forum/discourse_forum/pipelines.py
tpronk/scraper
a44913d5efd319fc30d1b395aa817fb9fc5537c9
[ "Apache-2.0" ]
null
null
null
# Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html # useful for handling different item types with a single interface from itemadapter import ItemAdapter class DiscourseForumPipeline: def proces...
26.285714
66
0.771739
0a504b996b74490d0636022a43cc0bfd844c58ea
559
py
Python
src/squirrel/shared/setupsql.py
bvz2000/squirrel
5d3ba00825aaa5337d8972a0edc6530230a8a754
[ "Unlicense" ]
null
null
null
src/squirrel/shared/setupsql.py
bvz2000/squirrel
5d3ba00825aaa5337d8972a0edc6530230a8a754
[ "Unlicense" ]
null
null
null
src/squirrel/shared/setupsql.py
bvz2000/squirrel
5d3ba00825aaa5337d8972a0edc6530230a8a754
[ "Unlicense" ]
null
null
null
import inspect import configparser import os.path # ---------------------------------------------------------------------------------------------------------------------- def create_sql_object(): """ Create a sql resources object. :return: A sql resources object. """ module_d = os.pa...
25.409091
120
0.495528
47bfcc749ee4cfe3a89ecb871e42a42422ad3dda
13,814
py
Python
tf_quant_finance/rates/hagan_west/bond_curve_test.py
0xflotus/tf-quant-finance
9b38bf2006889d66e9eebab00226807bb233843f
[ "Apache-2.0" ]
1
2021-03-14T10:09:04.000Z
2021-03-14T10:09:04.000Z
tf_quant_finance/rates/hagan_west/bond_curve_test.py
dickreuter/tf-quant-finance
97b44a3eafda49c8158ea302cad8ca6b1eaa92c9
[ "Apache-2.0" ]
null
null
null
tf_quant_finance/rates/hagan_west/bond_curve_test.py
dickreuter/tf-quant-finance
97b44a3eafda49c8158ea302cad8ca6b1eaa92c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
42.504615
95
0.598668
497d1e4975f0cec3f1d338c05fe1a678713d1905
585
py
Python
facenet/test_idgen.py
hqbao/dlp_tf
e8fe3281470faebbe8e36caf55025c270e84c44f
[ "MIT" ]
null
null
null
facenet/test_idgen.py
hqbao/dlp_tf
e8fe3281470faebbe8e36caf55025c270e84c44f
[ "MIT" ]
null
null
null
facenet/test_idgen.py
hqbao/dlp_tf
e8fe3281470faebbe8e36caf55025c270e84c44f
[ "MIT" ]
1
2021-12-30T08:55:37.000Z
2021-12-30T08:55:37.000Z
import tensorflow as tf from pprint import pprint output_path = 'output' ishape = [112, 112, 1] interpreter = tf.lite.Interpreter(model_path='{}/clz/rec_model.tflite'.format(output_path)) interpreter.allocate_tensors() input_details = interpreter.get_input_details() output_details = interpreter.get_output_details()...
23.4
91
0.782906
49688894bb5a5cc46b368b2fd539f1b35cf94355
973
py
Python
Python_Test/PyDataMiningSample/com/djs/learn/test/ura/TestProcessDataInDb.py
djsilenceboy/LearnTest
9e4959db04f61133faafb206dcb2f7be67f8a4f4
[ "Apache-2.0" ]
3
2017-11-18T21:34:33.000Z
2020-09-17T08:32:24.000Z
Python_Test/PyDataMiningSample/com/djs/learn/test/ura/TestProcessDataInDb.py
djsilenceboy/LearnTest
9e4959db04f61133faafb206dcb2f7be67f8a4f4
[ "Apache-2.0" ]
11
2020-03-04T23:04:17.000Z
2022-03-31T18:51:08.000Z
Python_Test/PyDataMiningSample/com/djs/learn/test/ura/TestProcessDataInDb.py
djsilenceboy/LearnTest
9e4959db04f61133faafb206dcb2f7be67f8a4f4
[ "Apache-2.0" ]
3
2019-07-02T14:24:49.000Z
2020-09-17T08:32:26.000Z
''' Process URA data by SQLite. Update log: (date / version / author : comments) 2020-06-07 / 1.0.0 / Du Jiang : Creation ''' from com.djs.learn.ura import ProcessDataInDb __input_file_path_transaction = "../../../../../Temp/{0}.csv".format("URA_CondoEcTrans_MP") __input_file_path_rental = "../../../../../...
37.423077
218
0.637205
07def6858f3beedc5ae0a91f7a909e2ee7a2033c
752
py
Python
test/test_relative_delta.py
zachliu/airflow-python-sdk
70b5d08955a9e218fa6163b0612856e09eedce63
[ "MIT" ]
12
2021-01-22T15:07:47.000Z
2021-10-19T13:47:40.000Z
test/test_relative_delta.py
zachliu/airflow-python-sdk
70b5d08955a9e218fa6163b0612856e09eedce63
[ "MIT" ]
null
null
null
test/test_relative_delta.py
zachliu/airflow-python-sdk
70b5d08955a9e218fa6163b0612856e09eedce63
[ "MIT" ]
2
2021-04-04T13:30:53.000Z
2021-07-20T13:58:07.000Z
""" Airflow API (Stable) Apache Airflow management API. # noqa: E501 The version of the OpenAPI document: 1.0.0 Contact: zach.z.liu@gmail.com Generated by: https://openapi-generator.tech """ import sys import unittest import airflow_python_sdk from airflow_python_sdk.model.relative_delta impor...
20.324324
79
0.676862
350d5b7c22ad38e56458cef65613a376ec7a4fc2
11,399
py
Python
002.library/python/amajusmating/mcmc.py
ellisztamas/amajus_mating
9bfdb4ebaa96178c801e5fdd8aecb6b83132b397
[ "MIT" ]
null
null
null
002.library/python/amajusmating/mcmc.py
ellisztamas/amajus_mating
9bfdb4ebaa96178c801e5fdd8aecb6b83132b397
[ "MIT" ]
null
null
null
002.library/python/amajusmating/mcmc.py
ellisztamas/amajus_mating
9bfdb4ebaa96178c801e5fdd8aecb6b83132b397
[ "MIT" ]
null
null
null
import numpy as np import faps as fp from pprint import pprint import sys from time import time, strftime from tqdm import tqdm import platform from amajusmating.dispersal import dispersal_GND from scipy.stats import beta from scipy.stats import gamma as gma def check_parameters(model, sigma): """ Check that...
40.279152
148
0.638038
5fb6a8724706f34b53da671d7265c268e4128468
227
py
Python
benchmarks/http1mb/wsgi.py
chbrown/sandbox
c408ef7409bb4f27855a09264ae9f2e529c2f220
[ "MIT" ]
null
null
null
benchmarks/http1mb/wsgi.py
chbrown/sandbox
c408ef7409bb4f27855a09264ae9f2e529c2f220
[ "MIT" ]
null
null
null
benchmarks/http1mb/wsgi.py
chbrown/sandbox
c408ef7409bb4f27855a09264ae9f2e529c2f220
[ "MIT" ]
null
null
null
from wsgiref.simple_server import make_server bytes = chr(100)*1024*1024 def req(environ, start_response): start_response('200 OK', []) yield bytes server = make_server('localhost', 8000, req) server.serve_forever()
20.636364
45
0.740088
c6f187e835147a8d084b7d6b6f7b8c07399dc415
746
bzl
Python
bazel/ray_deps_build_all.bzl
timgates42/ray
032e8553c78d9f72db99be6f95621887a4d24d7f
[ "Apache-2.0" ]
1
2020-01-09T09:15:52.000Z
2020-01-09T09:15:52.000Z
bazel/ray_deps_build_all.bzl
timgates42/ray
032e8553c78d9f72db99be6f95621887a4d24d7f
[ "Apache-2.0" ]
null
null
null
bazel/ray_deps_build_all.bzl
timgates42/ray
032e8553c78d9f72db99be6f95621887a4d24d7f
[ "Apache-2.0" ]
null
null
null
load("@com_github_ray_project_ray//java:dependencies.bzl", "gen_java_deps") load("@com_github_nelhage_rules_boost//:boost/boost.bzl", "boost_deps") load("@com_github_jupp0r_prometheus_cpp//bazel:repositories.bzl", "prometheus_cpp_repositories") load("@com_github_checkstyle_java//:repo.bzl", "checkstyle_deps") load("@co...
41.444444
96
0.802949
ee527532bca798752b6366640d0e4be3b2a6a4f1
706
py
Python
Project 2 -- SurvNet -- Cancer Clinical Outcomes Predictor/SurvNet/analysis/__init__.py
Vauke/Deep-Neural-Networks-HealthCare
a6e0cc9d44e06ab3b3f3a947c512ca25f3e17a14
[ "MIT" ]
94
2019-01-20T12:34:05.000Z
2022-03-24T04:03:16.000Z
Project 2 -- SurvNet -- Cancer Clinical Outcomes Predictor/SurvNet/analysis/__init__.py
Vauke/Deep-Neural-Networks-HealthCare
a6e0cc9d44e06ab3b3f3a947c512ca25f3e17a14
[ "MIT" ]
19
2017-07-12T15:05:54.000Z
2020-11-12T05:02:36.000Z
Project 2 -- SurvNet -- Cancer Clinical Outcomes Predictor/SurvNet/analysis/__init__.py
Vauke/Deep-Neural-Networks-HealthCare
a6e0cc9d44e06ab3b3f3a947c512ca25f3e17a14
[ "MIT" ]
44
2019-01-18T15:43:45.000Z
2022-03-29T10:44:09.000Z
from .RiskCohort import RiskCohort # must be imported after RiskCohort from .FeatureAnalysis import FeatureAnalysis from .PathwayAnalysis import PathwayAnalysis from .Visualization import KMPlots from .Visualization import PairScatter from .Visualization import RankedBar from .Visualization import RankedBox from .Writ...
23.533333
53
0.759207
54cd8d10e71a79bd05e4f9642398b09559857508
2,368
py
Python
pyexamples/unet.py
billymoonxd/PlotNeuralNet
9a998ae19dc4e6423969ef4a92ac4e40c317139c
[ "MIT" ]
null
null
null
pyexamples/unet.py
billymoonxd/PlotNeuralNet
9a998ae19dc4e6423969ef4a92ac4e40c317139c
[ "MIT" ]
null
null
null
pyexamples/unet.py
billymoonxd/PlotNeuralNet
9a998ae19dc4e6423969ef4a92ac4e40c317139c
[ "MIT" ]
null
null
null
import sys sys.path.append('../') from pycore.tikzeng import * from pycore.blocks import * arch = [ to_head('..'), to_cor(), to_begin(), #input to_input( '../examples/fcn8s/cats.jpg' ), #block-001 to_ConvConvRelu( name='ccr_b1', s_filer=500, n_filer=(64,64), offset="(0,0,0)", to="...
43.851852
164
0.607264
6628ab441ef71170966cf78074c8a59c5488758d
4,434
py
Python
kws_streaming/layers/delay.py
egonrian/google-research
8177adbe9ca0d7e5a9463b54581fe6dd27be0974
[ "Apache-2.0" ]
1
2020-10-25T04:07:57.000Z
2020-10-25T04:07:57.000Z
kws_streaming/layers/delay.py
egonrian/google-research
8177adbe9ca0d7e5a9463b54581fe6dd27be0974
[ "Apache-2.0" ]
null
null
null
kws_streaming/layers/delay.py
egonrian/google-research
8177adbe9ca0d7e5a9463b54581fe6dd27be0974
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Google Research 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 applicab...
34.107692
79
0.692828