hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
9e38a834734a6ee54290770e704a6d6f6044048f
987
py
Python
python/test/test_dual.py
EQt/treelas
24a5cebf101180822198806c0a4131b0efb7a36d
[ "MIT" ]
3
2020-06-18T13:31:26.000Z
2021-04-05T17:42:56.000Z
python/test/test_dual.py
EQt/treelas
24a5cebf101180822198806c0a4131b0efb7a36d
[ "MIT" ]
null
null
null
python/test/test_dual.py
EQt/treelas
24a5cebf101180822198806c0a4131b0efb7a36d
[ "MIT" ]
null
null
null
import numpy as np from pytest import approx from graphidx import find_root import treelas as tl def test_dual3(root=0): """Tree with 3 nodes""" parent = np.array([0, 0, 0], dtype=np.int32) x = np.array([-3., 1., 2]) assert x.mean() == 0.0 z = x.copy() alpha = tl.tree_dual(parent, z) asser...
27.416667
68
0.576494
9e38f57d73d03262012e22c7ea46d4a7924fd1cb
22,795
py
Python
Python/utils/experiments/launcher.py
sgiguere/Fairness-Gaurantees-under-Demographic-Shift
d081307d34cde75ca74e07ddbe059e8273095aee
[ "MIT" ]
1
2022-03-22T20:13:02.000Z
2022-03-22T20:13:02.000Z
Python/utils/experiments/launcher.py
sgiguere/Fairness-Gaurantees-under-Demographic-Shift
d081307d34cde75ca74e07ddbe059e8273095aee
[ "MIT" ]
null
null
null
Python/utils/experiments/launcher.py
sgiguere/Fairness-Gaurantees-under-Demographic-Shift
d081307d34cde75ca74e07ddbe059e8273095aee
[ "MIT" ]
null
null
null
import multiprocessing as mp import multiprocessing.managers as managers import time import numpy as np import pandas as pd import utils import datasets import os import errno import signal from collections import Sequence from itertools import product import progressbar ############################## # Experiment...
38.375421
155
0.541171
9e38fa4a31742c50f913fc44a53c15bcae4870da
10,412
py
Python
AnalysisDAFM/program/DAFM/binary_layers.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
26
2016-09-14T18:15:29.000Z
2021-12-01T20:01:29.000Z
AnalysisDAFM/program/DAFM/binary_layers.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
122
2017-09-12T15:22:03.000Z
2021-09-27T17:25:08.000Z
AnalysisDAFM/program/DAFM/binary_layers.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
17
2017-02-16T16:04:41.000Z
2021-02-06T05:36:44.000Z
# -*- coding: utf-8 -*- import numpy as np from keras import backend as K from keras.layers import InputSpec, Layer, Dense, Conv2D from keras import constraints from keras import initializers from keras import regularizers from DAFM.binary_ops import binarize class Clip(constraints.Constraint): ...
40.992126
134
0.560027
9e391f42522b8e12a7809abfaa5453aeb972e62f
809
py
Python
tests/encoding_test.py
bertrandchenal/tanker
b955311dc8f05f8bb3c0b391e169974e5c6a11b2
[ "0BSD" ]
1
2019-11-12T08:35:10.000Z
2019-11-12T08:35:10.000Z
tests/encoding_test.py
bertrandchenal/tanker
b955311dc8f05f8bb3c0b391e169974e5c6a11b2
[ "0BSD" ]
1
2019-11-20T09:00:33.000Z
2019-11-20T09:00:33.000Z
tests/encoding_test.py
bertrandchenal/tanker
b955311dc8f05f8bb3c0b391e169974e5c6a11b2
[ "0BSD" ]
1
2019-11-19T21:53:16.000Z
2019-11-19T21:53:16.000Z
#coding: utf-8 import sys from tanker import View from .base_test import session PY2 = sys.version_info[0] == 2 def test_str(session): japan = '日本' team_view = View('country', ['name']) team_view.write([(japan,)]) row = team_view.read(filters={'name': japan}).one() assert row[0] ...
21.864865
56
0.566131
9e392585ad93376be2ad5b098aae4263cac9f296
43,963
py
Python
core/domain/story_domain.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
null
null
null
core/domain/story_domain.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
4
2019-08-15T10:49:21.000Z
2022-03-02T05:10:20.000Z
core/domain/story_domain.py
grishamjindal/oppia
3a29329a446e30b3b70641cf0286e23fad85418f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Oppia 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 ...
38.93977
80
0.618839
9e394059fc0be9f4dd05527b4aff6e3a9bf1da48
2,103
py
Python
tests/db_engine_specs/oracle_tests.py
rodrigoguariento/incubator-superset
b2633a51d43faaca74751349b96fc32784d4b377
[ "Apache-2.0" ]
7
2017-11-01T06:00:12.000Z
2019-01-05T13:31:48.000Z
tests/db_engine_specs/oracle_tests.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
108
2019-06-10T05:48:22.000Z
2021-07-26T04:20:03.000Z
tests/db_engine_specs/oracle_tests.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
4
2018-12-13T06:20:34.000Z
2020-10-02T16:07:17.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
41.235294
92
0.722777
9e39a1d6517f8a7f40729753be7017bf15b26b6b
115,913
py
Python
imgfac/rest/bottle.py
henrysher/imgfac
e0979139a93b055f018f460b1404cc9b1796c838
[ "Apache-2.0" ]
1
2019-06-16T07:05:24.000Z
2019-06-16T07:05:24.000Z
imgfac/rest/bottle.py
henrysher/imgfac
e0979139a93b055f018f460b1404cc9b1796c838
[ "Apache-2.0" ]
null
null
null
imgfac/rest/bottle.py
henrysher/imgfac
e0979139a93b055f018f460b1404cc9b1796c838
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Bottle is a fast and simple micro-framework for small web applications. It offers request dispatching (Routes) with url parameter support, templates, a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and template engines - all in a single file an...
39.533765
103
0.591202
9e39d0e5283e37a074296506f56a7d2b675f8e9c
4,054
py
Python
webapp/app.py
tBaxter/pi-things
ecba577748178f1a85b393144d872a16112ee26d
[ "CC0-1.0" ]
null
null
null
webapp/app.py
tBaxter/pi-things
ecba577748178f1a85b393144d872a16112ee26d
[ "CC0-1.0" ]
null
null
null
webapp/app.py
tBaxter/pi-things
ecba577748178f1a85b393144d872a16112ee26d
[ "CC0-1.0" ]
null
null
null
import datetime import json import os, re, sys from threading import Thread from flask import Flask, render_template, redirect, request # Because only the Pi has any concept of GPIO # the real RPi.GPIO will blow up when trying to test on a Mac. try: import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) except Modul...
30.481203
83
0.649482
9e39f084eaf87bbf4d4f7b703ad5189f69341311
6,734
py
Python
tests/test_potential.py
FZJ-IAS5-MLMD/PiNN
bbadd16b534b1c32de18da482fc04d463a6131f6
[ "BSD-3-Clause" ]
null
null
null
tests/test_potential.py
FZJ-IAS5-MLMD/PiNN
bbadd16b534b1c32de18da482fc04d463a6131f6
[ "BSD-3-Clause" ]
1
2020-09-15T11:50:41.000Z
2020-09-15T11:50:41.000Z
tests/test_potential.py
FZJ-IAS5-MLMD/PiNN
bbadd16b534b1c32de18da482fc04d463a6131f6
[ "BSD-3-Clause" ]
1
2020-09-07T09:56:43.000Z
2020-09-07T09:56:43.000Z
# -*- coding: utf-8 -*- """Numerical tests for virials and energy conservation of potentials""" import tempfile import pytest import numpy as np import tensorflow as tf from pinn.io import load_numpy, sparse_batch from helpers import assert_almost_equal from shutil import rmtree from ase import Atoms def test_pinn_po...
33.172414
96
0.553609
9e39f3897f69495ffe7609e6def7fe9bcc2fc468
16,488
py
Python
tests/integration/pods/test_pod.py
gauribhutani/jina
e1e23643f8260e6917d9704b63edc54bcebbc7e9
[ "Apache-2.0" ]
null
null
null
tests/integration/pods/test_pod.py
gauribhutani/jina
e1e23643f8260e6917d9704b63edc54bcebbc7e9
[ "Apache-2.0" ]
1
2022-03-08T18:46:28.000Z
2022-03-08T18:47:24.000Z
tests/integration/pods/test_pod.py
kuraakhilesh8230/jina
7cc23944fcdfd9944dc805ce8a116818d45317ee
[ "Apache-2.0" ]
null
null
null
import asyncio import json import time import pytest from jina import Document, Executor, Client, requests from jina.enums import PollingType, PodRoleType from jina.parsers import set_gateway_parser, set_pod_parser from jina.serve.networking import GrpcConnectionPool from jina.orchestrate.pods import Pod from jina.ty...
31.830116
113
0.660905
9e39fe0d3ed60855adbca267a8f4f1b6a8c7ff89
5,690
py
Python
src/python/halutmatmul/learn.py
joennlae/halutmatmul
69340d3386298401d421b0e67dcb0649534b0c12
[ "MIT" ]
null
null
null
src/python/halutmatmul/learn.py
joennlae/halutmatmul
69340d3386298401d421b0e67dcb0649534b0c12
[ "MIT" ]
null
null
null
src/python/halutmatmul/learn.py
joennlae/halutmatmul
69340d3386298401d421b0e67dcb0649534b0c12
[ "MIT" ]
null
null
null
import glob import os from math import ceil import re from typing import Callable from timeit import default_timer as timer from multiprocessing import Process, JoinableQueue import numpy as np from models.resnet import END_STORE_A, END_STORE_B import halutmatmul.halutmatmul as hm # https://docs.python.org/3/library/...
28.883249
86
0.596134
9e3a1c2e76b7f30405f52ddb991ecb4435aaee93
708
py
Python
migrations/versions/5d3ded72de8_.py
tuanquanghpvn/flask-intro
4dbc6bfbbdee13bc601b7ba8f10ede3635a2cfaf
[ "MIT" ]
null
null
null
migrations/versions/5d3ded72de8_.py
tuanquanghpvn/flask-intro
4dbc6bfbbdee13bc601b7ba8f10ede3635a2cfaf
[ "MIT" ]
null
null
null
migrations/versions/5d3ded72de8_.py
tuanquanghpvn/flask-intro
4dbc6bfbbdee13bc601b7ba8f10ede3635a2cfaf
[ "MIT" ]
null
null
null
"""empty message Revision ID: 5d3ded72de8 Revises: f59bfd5312e Create Date: 2015-11-30 13:51:40.741708 """ # revision identifiers, used by Alembic. revision = '5d3ded72de8' down_revision = 'f59bfd5312e' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - plea...
24.413793
75
0.682203
9e3a3271cc2a7c5b7d955f1fc0d9da3a072d19a6
1,341
py
Python
unittests/test_helper_functions.py
electrumsv/electrumsv-database
3fecc738534f678b57f39e53e776cf5851847f29
[ "MIT" ]
null
null
null
unittests/test_helper_functions.py
electrumsv/electrumsv-database
3fecc738534f678b57f39e53e776cf5851847f29
[ "MIT" ]
null
null
null
unittests/test_helper_functions.py
electrumsv/electrumsv-database
3fecc738534f678b57f39e53e776cf5851847f29
[ "MIT" ]
null
null
null
import os from typing import Generator import pytest try: # Linux expects the latest package version of 3.35.4 (as of pysqlite-binary 0.4.6) import pysqlite3 as sqlite3 except ModuleNotFoundError: # MacOS has latest brew version of 3.35.5 (as of 2021-06-20). # Windows builds use the official Python 3.1...
39.441176
94
0.747949
9e3a42f7e4de23ae09812511d60ce285ba7b5f80
703
py
Python
tests/1_datadir_test.py
hydrationdynamics/zeigen
34a78b39ca95be45514839fd98be293d09446212
[ "BSD-3-Clause" ]
null
null
null
tests/1_datadir_test.py
hydrationdynamics/zeigen
34a78b39ca95be45514839fd98be293d09446212
[ "BSD-3-Clause" ]
127
2021-05-07T22:58:15.000Z
2022-03-21T15:13:15.000Z
tests/1_datadir_test.py
hydrationdynamics/zeigen
34a78b39ca95be45514839fd98be293d09446212
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for input table creation.""" # standard library imports import shutil from pathlib import Path from . import print_docstring # module imports @print_docstring() def test_clean_datadir(request): """Clean up datadir.""" testdir = Path(request.fspath.dirpath()) datadir = te...
25.107143
72
0.697013
9e3a47937f832525d9c629f29068277d41ac8038
8,595
py
Python
app/server.py
Eric-Showers/snake2020
9c0d227da8c57a009e5b950996e9a3d1a5170696
[ "MIT" ]
null
null
null
app/server.py
Eric-Showers/snake2020
9c0d227da8c57a009e5b950996e9a3d1a5170696
[ "MIT" ]
null
null
null
app/server.py
Eric-Showers/snake2020
9c0d227da8c57a009e5b950996e9a3d1a5170696
[ "MIT" ]
null
null
null
import json import os import random import time import bottle from bottle import HTTPResponse def getAdjacentMoves(head): # Given a square, return adjacent squares. return [ {'x': head['x']+1, 'y': head['y']}, {'x': head['x']-1, 'y': head['y']}, {'x': head['x'], 'y': head['y']+1}, ...
32.556818
119
0.619546
9e3a8a5b28cff46bca7fe2a0751b4631d6e836a9
3,833
py
Python
retrobiocat_web/retro/enzyme_identification/load/make_fingerprints.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
9
2020-12-01T16:33:02.000Z
2022-01-19T20:02:42.000Z
retrobiocat_web/retro/enzyme_identification/load/make_fingerprints.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
4
2020-10-02T14:38:32.000Z
2021-08-02T09:23:58.000Z
retrobiocat_web/retro/enzyme_identification/load/make_fingerprints.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
6
2021-01-14T07:48:36.000Z
2022-03-20T17:34:27.000Z
from rdkit import Chem import pandas as pd from rdkit.Chem import rdFingerprintGenerator from retrobiocat_web.mongo.models.biocatdb_models import Molecule from rdkit import DataStructs fingerprint_options = {'mfp_default': ['morgan', {}], 'rdfp_default': ['rdkit', {}]} default_fp_mode = 'rdfp_...
31.162602
102
0.667884
9e3a8b151125d504175ea198d4838a7ab0843210
3,863
py
Python
src/python/pants/engine/round_manager.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
src/python/pants/engine/round_manager.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
null
null
null
src/python/pants/engine/round_manager.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from collections import defaultdict, namedtuple from twitter.common.collections import OrderedSet from pants.goal.goal import Goal class ProducerInfo(namedtuple("ProducerInfo", ["produ...
38.247525
100
0.699974
9e3a8cdafd1ebc869703129a6e6a2d537ef94cd2
3,324
py
Python
vyperlogix/iterators/dict/dictutils.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/iterators/dict/dictutils.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/iterators/dict/dictutils.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
__copyright__ = """\ (c). Copyright 2008-2020, Vyper Logix Corp., All Rights Reserved. Published under Creative Commons License (http://creativecommons.org/licenses/by-nc/3.0/) restricted to non-commercial educational use only., http://www.VyperLogix.com for details THE AUTHOR VYPER LOGIX CORP DISCLAIMS ALL WARRA...
36.933333
103
0.586943
9e3aa3c0ccbcda2bbe9156ace6d05b4c46c429a8
29,300
py
Python
troposphere/__init__.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
null
null
null
troposphere/__init__.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
null
null
null
troposphere/__init__.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2012-2017, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. import warnings import cfn_flip import collections import json import re import sys import types from . import validators __version__ = "2.4.8" # constants for DeletionPolicy and UpdateReplacePolicy De...
33.219955
79
0.576928
9e3aa78070a01b82642c6aacd91b430ffa22bf0d
3,897
py
Python
chroma_core/lib/storage_plugin/base_resource_attribute.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
1
2021-02-08T16:59:14.000Z
2021-02-08T16:59:14.000Z
chroma_core/lib/storage_plugin/base_resource_attribute.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
chroma_core/lib/storage_plugin/base_resource_attribute.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
# Copyright (c) 2018 DDN. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. from chroma_core.models.storage_plugin import StorageResourceAttributeSerialized class BaseResourceAttribute(object): """Base class for declared attributes of Base...
39.765306
113
0.675905
9e3ac0b80cb163f29ae361895c9a0d0a3893b923
2,382
py
Python
open-hackathon-server/src/hackathon/template/base_template.py
akondasif/open-hackathon-bak_01
d60ad764edf689a95b6ffcc56815338b380801de
[ "MIT" ]
null
null
null
open-hackathon-server/src/hackathon/template/base_template.py
akondasif/open-hackathon-bak_01
d60ad764edf689a95b6ffcc56815338b380801de
[ "MIT" ]
null
null
null
open-hackathon-server/src/hackathon/template/base_template.py
akondasif/open-hackathon-bak_01
d60ad764edf689a95b6ffcc56815338b380801de
[ "MIT" ]
1
2019-04-03T23:13:55.000Z
2019-04-03T23:13:55.000Z
# -*- coding: utf-8 -*- """ Copyright (c) Microsoft Open Technologies (Shanghai) Co. Ltd.  All rights reserved. The MIT License (MIT) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without res...
35.552239
85
0.709908
9e3ae06d975083474eec613e9c41cc3625657b3a
21,842
py
Python
options.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
1
2019-09-11T10:09:37.000Z
2019-09-11T10:09:37.000Z
options.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
null
null
null
options.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
1
2019-09-15T17:22:58.000Z
2019-09-15T17:22:58.000Z
import argparse def make_parser(parser): # Data options parser.add_argument('-data', required=True, help='Path to the *-train.pt file from preprocess.py') parser.add_argument('-data_format', required=False, default='raw', help='Default data format: raw') ...
53.143552
124
0.617343
9e3b16e5fb8b4ef97afb408a6f9b65abd69c9414
11,972
py
Python
nginx/datadog_checks/nginx/nginx.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
nginx/datadog_checks/nginx/nginx.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
nginx/datadog_checks/nginx/nginx.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2010-2017 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import re import urlparse import time from itertools import chain from datetime import datetime import requests import simplejson as json from datadog_checks.checks import AgentCheck from datadog_checks.utils.he...
38.996743
113
0.570665
9e3b3b068876f28186f9b349a4f00c819542eedc
1,295
py
Python
tests/test_comments.py
Waithera-m/You-Got-This
efc83bd712ffbb5d57acf3c9925389905adf8673
[ "Unlicense" ]
null
null
null
tests/test_comments.py
Waithera-m/You-Got-This
efc83bd712ffbb5d57acf3c9925389905adf8673
[ "Unlicense" ]
null
null
null
tests/test_comments.py
Waithera-m/You-Got-This
efc83bd712ffbb5d57acf3c9925389905adf8673
[ "Unlicense" ]
null
null
null
import unittest from flask_login import current_user from app import db from app.models import Comment,User,Pitch class TestComment(unittest.TestCase): ''' class facilitates the creation of test units to test comment class behavior ''' def setUp(self): ''' test runs before all other t...
34.078947
247
0.681853
9e3b5931c568c35e2ea2f87c17cdd93752546beb
38,480
py
Python
onmt/models/transformers.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
1
2019-09-11T10:09:37.000Z
2019-09-11T10:09:37.000Z
onmt/models/transformers.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
null
null
null
onmt/models/transformers.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
1
2019-09-15T17:22:58.000Z
2019-09-15T17:22:58.000Z
import copy import math import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from collections import defaultdict from torch.utils.checkpoint import checkpoint import onmt from onmt.models.transformer_layers import EncoderLayer, DecoderLayer, PositionalEncoding, \ PrePostProcessing ...
39.54779
120
0.598311
9e3b8177e43575ca7acf490f53fafb7cf9cd7b1a
11,336
py
Python
keystoneclient/tests/v3/test_roles.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
1
2020-12-18T01:07:30.000Z
2020-12-18T01:07:30.000Z
keystoneclient/tests/v3/test_roles.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
null
null
null
keystoneclient/tests/v3/test_roles.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
null
null
null
# Copyright 2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
32.296296
79
0.578158
9e3b84859d673bdb2f8aae2b6c95a5c2c7961edf
853
py
Python
tests/test_cache.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
3
2020-05-10T23:52:41.000Z
2021-08-31T14:38:24.000Z
tests/test_cache.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
1
2020-09-27T03:26:51.000Z
2022-03-30T12:18:08.000Z
tests/test_cache.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
1
2020-10-01T04:07:39.000Z
2020-10-01T04:07:39.000Z
from time import sleep import pytest from pydemic.cache import ttl_cache class TestCaches: @pytest.mark.slow def test_tle_cache_works(self): lst = [] @ttl_cache("testing", timeout=0.01) def cache_function_with_side_effects(n): print(f"Calling with argument {n}") ...
22.447368
70
0.554513
9e3b871f861d85fe9e82acd6b3c05bb5caccbb14
978
py
Python
Code/Embeddings/SeekingAlphaDoc2Vec.py
dordonezc/SSInductionStocks
457dae9ecbe5a6f05c09e27c4dbeb5e0a50a04e9
[ "MIT" ]
null
null
null
Code/Embeddings/SeekingAlphaDoc2Vec.py
dordonezc/SSInductionStocks
457dae9ecbe5a6f05c09e27c4dbeb5e0a50a04e9
[ "MIT" ]
null
null
null
Code/Embeddings/SeekingAlphaDoc2Vec.py
dordonezc/SSInductionStocks
457dae9ecbe5a6f05c09e27c4dbeb5e0a50a04e9
[ "MIT" ]
null
null
null
## Generate Seeking Alpha Doc2Vec import os os.chdir("C:/Users/dordo/Dropbox/Capstone Project") import pandas as pd import numpy as np import pickle import re import random from gensim.models.doc2vec import Doc2Vec, TaggedDocument ##---------------------------------------------------------------------------## rando...
30.5625
84
0.705521
9e3b8794cd831e446caa6ad1352898230636f412
1,145
py
Python
hsv_dot_beer/test_cache.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
18
2018-12-06T01:46:37.000Z
2021-10-17T10:37:17.000Z
hsv_dot_beer/test_cache.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
194
2018-11-04T12:50:49.000Z
2022-01-06T22:43:43.000Z
hsv_dot_beer/test_cache.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
7
2019-03-18T05:36:06.000Z
2020-12-25T03:27:29.000Z
import os from django_bmemcached.memcached import BMemcached, InvalidCacheOptions from unittest.mock import patch from hsv_dot_beer.config.production import get_cache from django.test import TestCase class CacheConfigTestCase(TestCase): def test_good(self): with patch.dict( os.environ, ...
31.805556
84
0.623581
9e3ba8cdf23b17afa4d41615662688f68411132c
4,007
py
Python
BSTree/bst_l.py
luoshao23/ML_algorithm
6e94fdd0718cd892118fd036c7c5851cf3e6d796
[ "MIT" ]
4
2017-06-19T06:33:38.000Z
2019-01-31T12:07:12.000Z
BSTree/bst_l.py
luoshao23/ML_algorithm
6e94fdd0718cd892118fd036c7c5851cf3e6d796
[ "MIT" ]
null
null
null
BSTree/bst_l.py
luoshao23/ML_algorithm
6e94fdd0718cd892118fd036c7c5851cf3e6d796
[ "MIT" ]
1
2017-12-06T08:41:06.000Z
2017-12-06T08:41:06.000Z
# http://courses.csail.mit.edu/6.006/spring11/notes.shtml class BSNode(object): """docstring for BSTree""" def __init__(self, key=None, left=None, right=None, parent=None): self.key = key self.disconnect() def disconnect(self): self.left = None self.right = None s...
29.902985
139
0.50262
9e3bde29ab38fc23b45d2b9145a0b6d47a73f432
182
py
Python
project/web/steps/home.py
albalabkin/PyCats
b3fa09e116f38cebbb66faef16785e2795d80aa9
[ "Apache-2.0" ]
null
null
null
project/web/steps/home.py
albalabkin/PyCats
b3fa09e116f38cebbb66faef16785e2795d80aa9
[ "Apache-2.0" ]
null
null
null
project/web/steps/home.py
albalabkin/PyCats
b3fa09e116f38cebbb66faef16785e2795d80aa9
[ "Apache-2.0" ]
null
null
null
from project.web.pages.home_page import HomePage class HomePageSteps(HomePage): def get_api_key(self): self.click_api_keys_menu() return self.lbl_api_key.text
20.222222
48
0.736264
9e3be38f3beb07f5093c903294dfc68cb3391224
24,045
py
Python
Dashboard/views.py
seclib/archerysec
a5ddacf9597c9feee6759a9905cbe6c029f046ea
[ "BSD-3-Clause" ]
null
null
null
Dashboard/views.py
seclib/archerysec
a5ddacf9597c9feee6759a9905cbe6c029f046ea
[ "BSD-3-Clause" ]
2
2020-02-12T00:39:07.000Z
2020-06-05T18:14:46.000Z
Dashboard/views.py
seclib/archerysec
a5ddacf9597c9feee6759a9905cbe6c029f046ea
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # _ # /\ | | # / \ _ __ ___| |__ ___ _ __ _ _ # / /\ \ | '__/ __| '_ \ / _ \ '__| | | | # / ____ \| | | (__| | | | __/ | | |_| | # /_/ \_\_| \___|_| |_|\___|_| \__, | # __/ | # ...
32.449393
100
0.576336
9e3be993893c74d9a615878b2197db1683830fd0
1,261
py
Python
datalad/tests/test_strings.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/tests/test_strings.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/tests/test_strings.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 et: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ### ...
43.482759
87
0.599524
9e3bf565f4ed6e5488c5aaa06490fbecb06f6990
30,582
py
Python
sunpy/instr/lyra.py
derdon/sunpy
619102cd48c73a326c45263369446be9b74366e8
[ "MIT" ]
null
null
null
sunpy/instr/lyra.py
derdon/sunpy
619102cd48c73a326c45263369446be9b74366e8
[ "MIT" ]
null
null
null
sunpy/instr/lyra.py
derdon/sunpy
619102cd48c73a326c45263369446be9b74366e8
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import os.path import datetime from warnings import warn import copy import csv import urllib import sqlite3 import numpy as np from astropy.io import fits import pandas from sunpy.time import parse_time from sunpy import config from sunpy.util.net imp...
41.439024
93
0.627297
9e3bf61e5fc985358807b8b93ad83bfbfa33e75b
420
py
Python
services/users/project/tests/base.py
EmEmGee/oddityhr
f6d8dad18b15089e2e34c36c45a6e0795a3db2db
[ "MIT" ]
null
null
null
services/users/project/tests/base.py
EmEmGee/oddityhr
f6d8dad18b15089e2e34c36c45a6e0795a3db2db
[ "MIT" ]
3
2020-09-07T11:12:54.000Z
2021-10-06T04:58:32.000Z
services/users/project/tests/base.py
EmEmGee/oddityhr
f6d8dad18b15089e2e34c36c45a6e0795a3db2db
[ "MIT" ]
2
2019-09-25T08:33:03.000Z
2019-09-25T08:33:22.000Z
# services/users/project/tests/base.py from flask_testing import TestCase from project import create_app, db app = create_app() class BaseTestCase(TestCase): def create_app(self): app.config.from_object("project.config.TestingConfig") return app def setUp(self): db.create_all() ...
19.090909
62
0.666667
9e3c1ed6606ba613f2c53a9df2d7914912ddb3c5
4,601
py
Python
dataset_generator/scene/generators/box_generator.py
EirikGG/3DModelDsGen
de973e51be69c36d2c5b9d99d6726db3d1a5980e
[ "MIT" ]
1
2021-06-23T02:04:25.000Z
2021-06-23T02:04:25.000Z
dataset_generator/scene/generators/box_generator.py
EirikGG/SyntheticDataGenObjectDetection
de973e51be69c36d2c5b9d99d6726db3d1a5980e
[ "MIT" ]
null
null
null
dataset_generator/scene/generators/box_generator.py
EirikGG/SyntheticDataGenObjectDetection
de973e51be69c36d2c5b9d99d6726db3d1a5980e
[ "MIT" ]
null
null
null
import pyrender, math, trimesh import numpy as np def get_box(scene, renderer, model_node, class_name, bbox_format): '''Creates box label of model from scene and returns label str in kitti format https://github.com/bostondiditeam/kitti/blob/master/resources/devkit_object/readme.txt''' cam_node = scene.ma...
47.927083
134
0.375571
9e3c28c28b30ea369e808502fad877136841c3be
1,519
py
Python
code/part_a/db5_ninapro/inceptionv3_ninaprodb5.py
DSIP-UPatras/sEMG-based-gesture-recognition-mgeorgoula
a5f8f234aebad671b38296730f46f0b637fadc64
[ "MIT" ]
3
2019-08-22T11:24:09.000Z
2020-06-09T07:16:45.000Z
code/part_a/db5_ninapro/inceptionv3_ninaprodb5.py
DSIP-UPatras/sEMG-based-gesture-recognition-mgeorgoula
a5f8f234aebad671b38296730f46f0b637fadc64
[ "MIT" ]
1
2019-08-24T06:25:24.000Z
2019-08-24T06:25:24.000Z
code/part_a/db5_ninapro/inceptionv3_ninaprodb5.py
DSIP-UPatras/sEMG-based-gesture-recognition-mgeorgoula
a5f8f234aebad671b38296730f46f0b637fadc64
[ "MIT" ]
1
2020-05-25T02:21:35.000Z
2020-05-25T02:21:35.000Z
# -*- coding: utf-8 -*- """ Modify InceptionV3 -DB5 NinaPro """ from keras.layers import * from keras import initializers, regularizers, constraints, optimizers from keras.models import load_model, Model from keras.applications import inception_v3 import keras.backend as K import keras.utils def Inception...
31
84
0.669519
9e3c69f8c0da888825807ee0666c0ea2af230897
6,892
py
Python
pong.py
industArk/GameProject_PONG
6aeefe1a0579e2e45b6617a88c1f3f88dd62fc35
[ "MIT" ]
null
null
null
pong.py
industArk/GameProject_PONG
6aeefe1a0579e2e45b6617a88c1f3f88dd62fc35
[ "MIT" ]
null
null
null
pong.py
industArk/GameProject_PONG
6aeefe1a0579e2e45b6617a88c1f3f88dd62fc35
[ "MIT" ]
null
null
null
# Copyright (c) 2021 Arkadiusz Choruży # License: MIT import pygame as pg import sys import random pg.init() pg.font.init() # App variables app_size = app_w, app_h = 1200, 740 app = pg.display.set_mode(app_size) pg.display.set_caption('PONGme') # Resolution downscaling window_size = window_w, window_h = 240, 144 wi...
26.507692
107
0.578497
9e3c6ec1412d6e76d85c778b8af045d700db1a62
2,042
py
Python
component/scripts/recipe.py
sepal-contrib/se.plan
a534d0f15e371310b6bc483867685f8a21f790c0
[ "MIT" ]
null
null
null
component/scripts/recipe.py
sepal-contrib/se.plan
a534d0f15e371310b6bc483867685f8a21f790c0
[ "MIT" ]
null
null
null
component/scripts/recipe.py
sepal-contrib/se.plan
a534d0f15e371310b6bc483867685f8a21f790c0
[ "MIT" ]
null
null
null
import json from datetime import datetime from copy import copy from pathlib import Path import ee from sepal_ui.scripts import utils from component import parameter as cp ee.Initialize() def save_recipe(layer_model, aoi_model, question_model, recipe_name): """save the recipe in a json file with a timestamp""" ...
26.868421
77
0.678257
9e3c708d1b7d6e9a4a3b48cd31589e5a02794caa
827
py
Python
mne/fiff/channels.py
mluessi/mne-python
aef0cd79b0543c6d121de236098bd7865feff39e
[ "BSD-3-Clause" ]
1
2022-03-23T22:26:50.000Z
2022-03-23T22:26:50.000Z
mne/fiff/channels.py
neurodebian/mne-python
44a5ef5241a748b2f77c62fdcda6334220c6af45
[ "BSD-3-Clause" ]
null
null
null
mne/fiff/channels.py
neurodebian/mne-python
44a5ef5241a748b2f77c62fdcda6334220c6af45
[ "BSD-3-Clause" ]
null
null
null
# Authors: Alexandre Gramfort <gramfort@nmr.mgh.harvard.edu> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # # License: BSD (3-clause) from .tree import dir_tree_find from .tag import find_tag from .constants import FIFF def _read_bad_channels(fid, node): """Read bad channels Parameters --------...
22.972222
71
0.614268
9e3cb6bd87c2843cd645bb696962bb96d6cb75e3
201
py
Python
mclumi/align/__init__.py
cribbslab/mclumi
3c38f1dd4de11f0f20121a4027f7e104c4059bbe
[ "MIT" ]
3
2021-12-18T09:55:09.000Z
2022-01-12T10:25:28.000Z
mclumi/align/__init__.py
cribbslab/mclumi
3c38f1dd4de11f0f20121a4027f7e104c4059bbe
[ "MIT" ]
null
null
null
mclumi/align/__init__.py
cribbslab/mclumi
3c38f1dd4de11f0f20121a4027f7e104c4059bbe
[ "MIT" ]
null
null
null
# ## /*** block. remote ***/ from .Read import * from .Write import * from .BundlePos import * # ## /*** block. local ***/ # try: # from mclumi.align.Read import * # except ImportError: # pass
20.1
37
0.587065
9e3cba4517f99f0da5c15a64dd0ad4f226b1ab51
1,167
py
Python
app/migrations/0047_auto_20190928_1200.py
olivierpons/evalr
7c76474ad41769804965a11550501321d7b1889b
[ "MIT" ]
null
null
null
app/migrations/0047_auto_20190928_1200.py
olivierpons/evalr
7c76474ad41769804965a11550501321d7b1889b
[ "MIT" ]
null
null
null
app/migrations/0047_auto_20190928_1200.py
olivierpons/evalr
7c76474ad41769804965a11550501321d7b1889b
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-09-28 10:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0046_auto_20190927_1351'), ] operations = [ migrations.AlterModelOptions( name='category', options={'verbose_...
33.342857
134
0.588689
9e3cc598828c21df30bc33eaeee23279de8e908c
1,399
py
Python
tests/examples/test_wait_until_element_displayed.py
Etiqa/bromine
cabf0931f5a06796c26fdc7fb9f7ecf147554fd5
[ "BSD-2-Clause" ]
2
2018-09-20T12:37:01.000Z
2021-08-30T14:44:25.000Z
tests/examples/test_wait_until_element_displayed.py
Etiqa/bromine
cabf0931f5a06796c26fdc7fb9f7ecf147554fd5
[ "BSD-2-Clause" ]
null
null
null
tests/examples/test_wait_until_element_displayed.py
Etiqa/bromine
cabf0931f5a06796c26fdc7fb9f7ecf147554fd5
[ "BSD-2-Clause" ]
null
null
null
import pytest from selenium.webdriver import Remote as SeWebDriver from bromine import WebElement from bromine.element import Locator from bromine.exceptions import TimeoutException from bromine.utils.wait import Wait from .. import Mock def test_wait_until_displayed(appearing_element): assert not appearing_el...
31.088889
81
0.795568
9e3cdfec9e4544ca19ce5280864384c1189c0841
2,642
py
Python
tests/test_events.py
enterstudio/nylas-python
a722b0122b81c8a221a969ad23b9651fe5cc7c8b
[ "MIT" ]
null
null
null
tests/test_events.py
enterstudio/nylas-python
a722b0122b81c8a221a969ad23b9651fe5cc7c8b
[ "MIT" ]
null
null
null
tests/test_events.py
enterstudio/nylas-python
a722b0122b81c8a221a969ad23b9651fe5cc7c8b
[ "MIT" ]
null
null
null
import json import pytest import responses import httpretty from httpretty import Response from conftest import API_URL from nylas.client.errors import InvalidRequestError url = API_URL + '/events/' body = { "busy": True, "calendar_id": "94rssh7bd3rmsxsp19kiocxze", "description": None, "id": "cv4ei7sy...
27.237113
103
0.652157
9e3cfe37285c0f55aaadeb83584758869009a7f3
6,665
py
Python
doc/conf.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
doc/conf.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
doc/conf.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # MapProxy documentation build configuration file, created by # sphinx-quickstart on Thu Feb 25 15:36:04 2010. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # Al...
32.512195
80
0.726782
9e3d25a2447d928c31401ddf000924423295131d
8,634
py
Python
tests/test_shell.py
inclement/bettershutils
7605beae5519177048b614df99552cbe26d2b351
[ "CNRI-Python" ]
null
null
null
tests/test_shell.py
inclement/bettershutils
7605beae5519177048b614df99552cbe26d2b351
[ "CNRI-Python" ]
null
null
null
tests/test_shell.py
inclement/bettershutils
7605beae5519177048b614df99552cbe26d2b351
[ "CNRI-Python" ]
null
null
null
import nosh as no import nosh.utils as noutils import nosh.dirutils as nodirutils from nosh import state from os import path import os import pytest DIR_NAMES = ('dir1', 'dir2') FILE_NAMES = ['{}.txt'.format(i) for i in range(5)] def temp_dir(func): '''Decorator to carry out tests in a py.test temp dir.''' ...
27.496815
75
0.590456
9e3d2a5d030f07dcdfe7e6e7b5df01d7a5a3ea37
1,489
py
Python
tensorflow_playground/function.py
vermouth1992/tf-playground
3beab9e477b88ec33f95e9726da9ce7ab94758a9
[ "Apache-2.0" ]
1
2018-03-11T18:53:00.000Z
2018-03-11T18:53:00.000Z
tensorflow_playground/function.py
vermouth1992/tf-playground
3beab9e477b88ec33f95e9726da9ce7ab94758a9
[ "Apache-2.0" ]
null
null
null
tensorflow_playground/function.py
vermouth1992/tf-playground
3beab9e477b88ec33f95e9726da9ce7ab94758a9
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf def add(a, b): @tf.function def add_step(a, b): print('Compile graph') return tf.reduce_mean(a + b) return add_step(a, b).numpy() @tf.function def condition(state, action=None): if action is None: print('Building path true') return state e...
20.680556
106
0.605776
9e3d43e947fe40e141f20932bc4aec66bdd8e966
3,728
py
Python
docusign_rooms/models/region_reference_count_list.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
2
2020-11-11T01:38:45.000Z
2021-11-14T17:00:43.000Z
docusign_rooms/models/region_reference_count_list.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
null
null
null
docusign_rooms/models/region_reference_count_list.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
1
2021-11-14T17:00:32.000Z
2021-11-14T17:00:32.000Z
# coding: utf-8 """ DocuSign Rooms API - v2 An API for an integrator to access the features of DocuSign Rooms # noqa: E501 OpenAPI spec version: v2 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import...
30.308943
101
0.604077
9e3d473909dac36985896e8ed44b2b3f68778c25
129
py
Python
kauffman/data/__init__.py
htmurray15/downwardata
df2620a0398e91efda4aa373a6169ad4e2f85d64
[ "MIT" ]
null
null
null
kauffman/data/__init__.py
htmurray15/downwardata
df2620a0398e91efda4aa373a6169ad4e2f85d64
[ "MIT" ]
null
null
null
kauffman/data/__init__.py
htmurray15/downwardata
df2620a0398e91efda4aa373a6169ad4e2f85d64
[ "MIT" ]
null
null
null
from .eship_data_sources import acs, bed, bds, bfs, pep, qwi, shed __all__ = ['acs', 'bed', 'bds', 'bfs', 'pep', 'qwi', 'shed']
32.25
66
0.612403
9e3d913b7ac5335bc9ad5a1a6a1b2d7dbdd351ec
3,882
py
Python
modules/tools/routing/util.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
6
2019-10-11T07:57:49.000Z
2022-02-23T15:23:41.000Z
modules/tools/routing/util.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
null
null
null
modules/tools/routing/util.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
12
2019-10-11T07:57:49.000Z
2022-03-16T05:13:00.000Z
#!/usr/bin/env python ############################################################################### # Copyright 2017 The Apollo Authors. All Rights Reserved. # Modifications Copyright (c) 2018 LG Electronics, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not ...
30.566929
79
0.653787
9e3d972ad4dab68c737af813756fa4515fd2614a
3,111
py
Python
rl-toolkit/rlf/algos/on_policy/ppo.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
4
2021-11-17T20:19:34.000Z
2022-03-31T04:21:26.000Z
rl-toolkit/rlf/algos/on_policy/ppo.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
rl-toolkit/rlf/algos/on_policy/ppo.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from collections import defaultdict from rlf.algos.on_policy.on_policy_base import OnPolicy class PPO(OnPolicy): def update(self, rollouts): self._compute_returns(rollouts) advantages = rollouts.compute_a...
39.379747
102
0.536805
9e3daaaf3cafe52244e5465a75c1b6f6b9535aaa
2,881
py
Python
savu/test/travis/plugin_tests/correction_tests/corrections_test.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
null
null
null
savu/test/travis/plugin_tests/correction_tests/corrections_test.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
null
null
null
savu/test/travis/plugin_tests/correction_tests/corrections_test.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Diamond Light Source Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
38.413333
74
0.679625
9e3db0abb604c021dd1f4ebd0b7d33ac1400cb69
839
py
Python
src/confidentialledger/azext_confidentialledger/generated/_client_factory.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/confidentialledger/azext_confidentialledger/generated/_client_factory.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/confidentialledger/azext_confidentialledger/generated/_client_factory.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "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. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incor...
36.478261
78
0.64124
9e3db38802f8ac88d6ca3c702b8d9f54530474b3
62,525
py
Python
src/build/android/pylib/local/device/local_device_instrumentation_test_run.py
lazymartin/naiveproxy
696e8714278e85e67e56a2eaea11f26c53116f0c
[ "BSD-3-Clause" ]
null
null
null
src/build/android/pylib/local/device/local_device_instrumentation_test_run.py
lazymartin/naiveproxy
696e8714278e85e67e56a2eaea11f26c53116f0c
[ "BSD-3-Clause" ]
null
null
null
src/build/android/pylib/local/device/local_device_instrumentation_test_run.py
lazymartin/naiveproxy
696e8714278e85e67e56a2eaea11f26c53116f0c
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections import contextlib import copy import hashlib import json import logging import os import posixpath import re import shutil import sys imp...
41.766867
80
0.672867
9e3dbb3db345ac2d3f2e3901377c8070d97055ad
1,897
py
Python
tests/scrapers/test_post.py
fo0nikens/instascrape
699dd2169a96438d1d71bce5b1401fd5c5f0e531
[ "MIT" ]
1
2021-03-10T03:36:43.000Z
2021-03-10T03:36:43.000Z
tests/scrapers/test_post.py
fo0nikens/instascrape
699dd2169a96438d1d71bce5b1401fd5c5f0e531
[ "MIT" ]
null
null
null
tests/scrapers/test_post.py
fo0nikens/instascrape
699dd2169a96438d1d71bce5b1401fd5c5f0e531
[ "MIT" ]
null
null
null
import csv import datetime import json import re import pytest from instascrape import Post class TestPost: @pytest.fixture def page_instance(self): google_post_url = "https://www.instagram.com/p/CGX0G64hu4Q/" random_google_post = Post(google_post_url) random_google_post.load() ...
32.706897
102
0.637322
9e3dc7144d06dc8a29bd43eb1281dcb23f8d50c8
1,657
py
Python
code/processing/seq/20210716_RNA_DNA_seq/processing_seq.py
RPGroup-PBoC/rnaseq_barcode
f90bdd7388d08b8dd1eeaaaedd75040580af5f10
[ "MIT" ]
null
null
null
code/processing/seq/20210716_RNA_DNA_seq/processing_seq.py
RPGroup-PBoC/rnaseq_barcode
f90bdd7388d08b8dd1eeaaaedd75040580af5f10
[ "MIT" ]
1
2020-11-02T19:07:52.000Z
2020-11-02T19:07:52.000Z
code/processing/seq/20210716_RNA_DNA_seq/processing_seq.py
RPGroup-PBoC/rnaseq_barcode
f90bdd7388d08b8dd1eeaaaedd75040580af5f10
[ "MIT" ]
null
null
null
#%% import os import glob import pandas as pd import git #%% # Date for sequencing run of the library to map DATE = 20210716 # Description to be attached to folder names DESCRIPTION = '_RNA_DNA_seq/' # Find project parental folder repo = git.Repo('./', search_parent_directories=True) homedir = repo.working_dir # Pat...
27.163934
71
0.680748
9e3deb684d236a7e25369a9613128e526d42310a
3,980
py
Python
examples/personal_rooms.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
3
2020-10-05T14:34:46.000Z
2020-11-27T07:44:57.000Z
examples/personal_rooms.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
1
2022-02-15T16:01:12.000Z
2022-02-15T16:01:12.000Z
examples/personal_rooms.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
1
2021-03-04T08:16:07.000Z
2021-03-04T08:16:07.000Z
""" Example script showing the new async API: create rooms for users with given internal domain 18.11.2021 Octavio Simone """ from dracoon import DRACOON import asyncio async def main(): baseURL = 'https://dracoon.team' client_id = 'XXXXXXXXXXXXXXXXXXXXXX' client_secret = 'XXXXXXXXXXXXXXXXXXXXXXXXXXX' ...
38.640777
125
0.635427
9e3dfac7ec120d6222f0e962cbec4eb7b9b65f04
10,952
py
Python
xos/synchronizers/vcpe/steps/sync_vcpetenant.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/vcpe/steps/sync_vcpetenant.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/vcpe/steps/sync_vcpetenant.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
import hashlib import os import socket import sys import base64 import time from django.db.models import F, Q from xos.config import Config from synchronizers.base.syncstep import SyncStep from synchronizers.base.ansible import run_template_ssh from synchronizers.base.SyncInstanceUsingAnsible import SyncInstanceUsingAn...
42.449612
131
0.594503
9e3e056b4e47ca6d2160d058cc9fec47f9f2d2c2
7,598
py
Python
src/kmeans_pycompss.py
bsc-wdc/pycompss_bda
6cfcba47bfefaea4baee178380de850d41620f98
[ "Apache-2.0" ]
null
null
null
src/kmeans_pycompss.py
bsc-wdc/pycompss_bda
6cfcba47bfefaea4baee178380de850d41620f98
[ "Apache-2.0" ]
null
null
null
src/kmeans_pycompss.py
bsc-wdc/pycompss_bda
6cfcba47bfefaea4baee178380de850d41620f98
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2002-2015 Barcelona Supercomputing Center (www.bsc.es) # # 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.o...
32.891775
85
0.605291
9e3e4e20f169f1b6e2d90f00662a6cd3e7c50130
10,454
py
Python
inference/inference_wrapper.py
xyukiono/tf-tracking
408df350140f4a5eda3359070495c3218952e6f5
[ "MIT" ]
19
2018-07-27T04:46:32.000Z
2021-06-05T07:36:35.000Z
inference/inference_wrapper.py
xyukiono/tf-tracking
408df350140f4a5eda3359070495c3218952e6f5
[ "MIT" ]
1
2018-12-15T14:16:31.000Z
2018-12-19T07:46:27.000Z
inference/inference_wrapper.py
xyukiono/tf-tracking
408df350140f4a5eda3359070495c3218952e6f5
[ "MIT" ]
7
2018-09-04T12:49:43.000Z
2019-12-11T01:28:21.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import functools import logging import os import os.path as osp import numpy as np import tensorflow as tf from utils.misc import * from models import * from cf_...
42.153226
158
0.607232
9e3e56bbd316c2e1a42b77cf7f23e91e593ec0b4
1,000
py
Python
regbot/__main__.py
adampiskorski/pyconza-regbot
3f8af083b1119795856c1790341455cae5cc1fd1
[ "MIT" ]
2
2021-11-04T09:46:32.000Z
2021-11-04T10:52:18.000Z
regbot/__main__.py
adampiskorski/pyconza-regbot
3f8af083b1119795856c1790341455cae5cc1fd1
[ "MIT" ]
null
null
null
regbot/__main__.py
adampiskorski/pyconza-regbot
3f8af083b1119795856c1790341455cae5cc1fd1
[ "MIT" ]
null
null
null
import logging import os import sys import regbot.commands # noqa: F401 import regbot.events # noqa: F401 from regbot import bot from regbot.google import get_client_credentials from regbot.helpers import get_bool_env, get_str_env from regbot.tasks import QuicketSync, WaferSync, YouTubeVideoSync TOKEN = get_str_env...
27.027027
65
0.769
9e3e5b944c159feb2fcb9e040eced97740c4c038
20,326
py
Python
notebook/lib/p3_deprecated_mock_data.py
citizenlabsgr/adopt-a-drain
d8dc68aef3f05e63d7e4083294454934d86d8a8a
[ "BSD-3-Clause" ]
4
2019-02-06T00:35:44.000Z
2020-03-03T23:51:30.000Z
notebook/lib/p3_deprecated_mock_data.py
citizenlabsgr/adopt-a-drain
d8dc68aef3f05e63d7e4083294454934d86d8a8a
[ "BSD-3-Clause" ]
201
2018-02-05T20:10:19.000Z
2022-03-30T22:28:53.000Z
notebook/lib/p3_deprecated_mock_data.py
citizenlabsgr/adopt-a-drain
d8dc68aef3f05e63d7e4083294454934d86d8a8a
[ "BSD-3-Clause" ]
5
2018-02-16T13:54:04.000Z
2019-06-09T05:27:39.000Z
import pandas as pd import p3_data_structures as stru def get_patient_dataframe(): return pd.DataFrame.from_dict({'age': {517: 43, 1201: 43, 1315: 16, 1570: 6, 2093: 60, 2647: 43, 3314: 88, 4006: 56, 4225: 28, 5988: 56, 6910: 52, 8203: 10, 9001: 72, 10857: 1, 11271: 2, 14812: 45, 152...
16.183121
490
0.573502
9e3e97ee55977439013b8e944bc4069f44bb899a
201
py
Python
chapter8/exercises/EG8-02 Read and Display.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter8/exercises/EG8-02 Read and Display.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter8/exercises/EG8-02 Read and Display.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
# EG8-02 Read and Display from BTCInput import * sales=[] for count in range(1,11): prompt='Enter the sales for stand ' + str(count) + ': ' sales.append(read_int(prompt)) print(sales)
16.75
60
0.646766
9e3eb0faefb8b1a3218ac0680a2d16daa0e4d6c6
2,487
py
Python
python/tvm/__init__.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
python/tvm/__init__.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
python/tvm/__init__.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
32.723684
70
0.775231
9e3eb3657b7dc03a3de531d5a33746dd5f4a570e
3,469
py
Python
DBSCAN/DBSCAN.py
AvisenaAlwi/DataMining
5a2dc404c7c120a3ff99f93b9a4627804cd1486a
[ "Apache-2.0" ]
2
2019-03-22T12:29:08.000Z
2019-04-05T06:27:01.000Z
DBSCAN/DBSCAN.py
AvisenaAlwi/DataMining
5a2dc404c7c120a3ff99f93b9a4627804cd1486a
[ "Apache-2.0" ]
null
null
null
DBSCAN/DBSCAN.py
AvisenaAlwi/DataMining
5a2dc404c7c120a3ff99f93b9a4627804cd1486a
[ "Apache-2.0" ]
null
null
null
import csv from pprint import pprint import random import matplotlib.pyplot as plt import sys # Definisikan fungsi yang dibutuhkan def item(x): # Fungsi ini untuk memetakan data CSV ke bentuk yang dapat digunakan return {'Data No':int(x[0]), 'T':int(x[1]), 'K':int(x[2]), 'cluster':0} def calculate_distance(i...
29.649573
99
0.638224
9e3eb771a46787362e84e76ae568619497ac8812
504
py
Python
govini_site_crawler/app_logging/__init__.py
crherman7/govini-site-crawler
c8ca026a3af241a2740ed77ed15889dbb3839d38
[ "MIT" ]
null
null
null
govini_site_crawler/app_logging/__init__.py
crherman7/govini-site-crawler
c8ca026a3af241a2740ed77ed15889dbb3839d38
[ "MIT" ]
null
null
null
govini_site_crawler/app_logging/__init__.py
crherman7/govini-site-crawler
c8ca026a3af241a2740ed77ed15889dbb3839d38
[ "MIT" ]
null
null
null
"""govini-site-crawler logger configuration. """ import logging logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) # create file handler which logs even debug messages # create console handler with a higher log level ch = logging.StreamHandler() ch.setLevel(logging.INFO) # create formatter and add it ...
29.647059
85
0.767857
9e3ef54038189c810d71b574f6a032ee3d2f7219
10,746
py
Python
run_trust_region_experiments.py
Miffyli/policy-supervectors
358284805e5bc96b95cae15e9741571e46d84bc9
[ "MIT" ]
17
2020-12-02T15:27:03.000Z
2022-01-14T06:42:14.000Z
run_trust_region_experiments.py
Miffyli/policy-supervectors
358284805e5bc96b95cae15e9741571e46d84bc9
[ "MIT" ]
null
null
null
run_trust_region_experiments.py
Miffyli/policy-supervectors
358284805e5bc96b95cae15e9741571e46d84bc9
[ "MIT" ]
null
null
null
# Run hardcoded experiments with the trust-region policy gradient # import os from argparse import ArgumentParser import warnings import numpy as np import gym import torch as th from stable_baselines3.common.vec_env import DummyVecEnv from stable_baselines3.common.monitor import Monitor from stable_baselines3.common...
38.106383
130
0.681835
9e3ef811b94b66e8a27763a1a25cf137c309792b
10,684
py
Python
oscar/lib/python2.7/site-packages/webob/dec.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/webob/dec.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/webob/dec.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
""" Decorators to wrap functions to make them WSGI applications. The main decorator :class:`wsgify` turns a function into a WSGI application (while also allowing normal calling of the method with an instantiated request). """ from webob.compat import ( bytes_, text_type, ) from webob.request...
34.688312
82
0.560558
9e3f07f3de248c927bf59febfae5101fbd9a2a5e
4,795
py
Python
tests/broker/bittrexbroker.py
Dodo33/alchemist-lib
40c2d3b48d5f46315eb09e7f572d578b7e5324b4
[ "MIT" ]
5
2018-07-11T05:38:51.000Z
2021-12-19T03:06:51.000Z
tests/broker/bittrexbroker.py
Dodo33/alchemist-lib
40c2d3b48d5f46315eb09e7f572d578b7e5324b4
[ "MIT" ]
null
null
null
tests/broker/bittrexbroker.py
Dodo33/alchemist-lib
40c2d3b48d5f46315eb09e7f572d578b7e5324b4
[ "MIT" ]
2
2019-07-12T08:51:11.000Z
2021-09-29T22:22:46.000Z
import alchemist_lib.order as order from decimal import Decimal from alchemist_lib.broker import BittrexBroker import alchemist_lib.utils as utils from alchemist_lib.database import Session from alchemist_lib.database.asset import Asset from alchemist_lib.database.exchange import Exchange from alchemist_lib.databas...
31.754967
133
0.617727
9e3f151902d274b16ff971a56a05bbc8a6ff1a02
741
py
Python
commands/handoutstats.py
Dabomstew/goldenrod
36c4f9e5321788779840371b09a78cc6b26b38b1
[ "MIT" ]
2
2015-05-20T00:42:03.000Z
2015-05-23T04:18:42.000Z
commands/handoutstats.py
Dabomstew/goldenrod
36c4f9e5321788779840371b09a78cc6b26b38b1
[ "MIT" ]
null
null
null
commands/handoutstats.py
Dabomstew/goldenrod
36c4f9e5321788779840371b09a78cc6b26b38b1
[ "MIT" ]
null
null
null
import config def execute(parser, bot, user, args): if not args: args = user arglist = args.split() balanceCheck = bot.execQuerySelectOne("SELECT COALESCE(ROUND(1.0*SUM(amount)/COUNT(*), 5), 0) AS averageHandout, COUNT(*) as handCount FROM handouts WHERE twitchname = ?", (arglist[0]...
37.05
217
0.647773
9e3f15eda1d25c5a40350ae15a7d1c63368ee39f
5,083
py
Python
onmt/train_single.py
leejihwan23/NMT-GPU
96464effc6f328cc94d553df996b19a9ffe64c60
[ "Apache-2.0" ]
39
2020-04-14T09:41:41.000Z
2022-02-21T14:32:06.000Z
onmt/train_single.py
leejihwan23/NMT-GPU
96464effc6f328cc94d553df996b19a9ffe64c60
[ "Apache-2.0" ]
17
2020-05-11T23:44:57.000Z
2021-02-17T10:53:15.000Z
onmt/train_single.py
leejihwan23/NMT-GPU
96464effc6f328cc94d553df996b19a9ffe64c60
[ "Apache-2.0" ]
20
2020-04-14T11:22:43.000Z
2021-11-25T03:57:21.000Z
#!/usr/bin/env python """Training on a single process.""" import os import torch from onmt.inputters.inputter import build_dataset_iter, patch_fields, \ load_old_vocab, old_style_vocab, build_dataset_iter_multiple from onmt.model_builder import build_model from onmt.utils.optimizers import Optimizer from onmt.uti...
33.886667
79
0.652371
9e3f4b49b1956445b526bf5f59b6ea35c3a615b7
17,083
py
Python
tests/test_serving.py
SteadBytes/werkzeug
0853c2af6f5e222db4fed49288d66212e3020c06
[ "BSD-3-Clause" ]
null
null
null
tests/test_serving.py
SteadBytes/werkzeug
0853c2af6f5e222db4fed49288d66212e3020c06
[ "BSD-3-Clause" ]
null
null
null
tests/test_serving.py
SteadBytes/werkzeug
0853c2af6f5e222db4fed49288d66212e3020c06
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ tests.serving ~~~~~~~~~~~~~ Added serving tests. :copyright: 2007 Pallets :license: BSD-3-Clause """ import os import socket import ssl import subprocess import sys import textwrap import time import pytest import requests.exceptions from werkzeug import __version__ a...
30.235398
87
0.616402
9e3f59ed12dc5de2d550aadc15b917e657887b6f
7,410
py
Python
src/cat_detector_ui.py
AlexHodgson/cat-detector
b64cae32a13eb16e5facbf97f88e217829c9fdff
[ "MIT" ]
null
null
null
src/cat_detector_ui.py
AlexHodgson/cat-detector
b64cae32a13eb16e5facbf97f88e217829c9fdff
[ "MIT" ]
null
null
null
src/cat_detector_ui.py
AlexHodgson/cat-detector
b64cae32a13eb16e5facbf97f88e217829c9fdff
[ "MIT" ]
null
null
null
''' UI For the cat picture detector Base window built with Wx Form Builder ''' import os import threading import wx import wx.xrc import detector_backend as cat class frameMain ( wx.Frame ): def __init__( self): self.recursive_search: bool = False # If subfolders are searched for cat pics self.hardware_accel...
31.265823
184
0.735628
9e3f6103ce6a6a6295ba5e197d4826a80f3aec08
1,689
py
Python
do_hurricane_zfp.py
Meso272/PyTorch-VAE
b1f80082a92c706969a63162ae083b9f7d15d9aa
[ "Apache-2.0" ]
null
null
null
do_hurricane_zfp.py
Meso272/PyTorch-VAE
b1f80082a92c706969a63162ae083b9f7d15d9aa
[ "Apache-2.0" ]
null
null
null
do_hurricane_zfp.py
Meso272/PyTorch-VAE
b1f80082a92c706969a63162ae083b9f7d15d9aa
[ "Apache-2.0" ]
1
2022-02-11T23:22:41.000Z
2022-02-11T23:22:41.000Z
import os import numpy as np import sys #fieldname=sys.argv[1] datafolder="/home/jliu447/lossycompression/Hurricane/clean-data-Jinyang" fields=["CLOUD","PRECIP","QGRAUP","QRAIN","QVAPOR","U","W","P","QCLOUD","QICE","QSNOW","TC","V"] ebs=[-x for x in range(-5,16)] cr=np.zeros((len(ebs)+1,len(fields)+1),dtype=np.float32...
31.867925
96
0.544701
9e3f66e18dc5cb6f484ba7928175527e6fbbfcb1
6,937
py
Python
category_encoders/sum_coding.py
deil87/categorical-encoding
c867aa09343b55cbcb600958542d6e8b0c405d86
[ "BSD-3-Clause" ]
null
null
null
category_encoders/sum_coding.py
deil87/categorical-encoding
c867aa09343b55cbcb600958542d6e8b0c405d86
[ "BSD-3-Clause" ]
null
null
null
category_encoders/sum_coding.py
deil87/categorical-encoding
c867aa09343b55cbcb600958542d6e8b0c405d86
[ "BSD-3-Clause" ]
null
null
null
"""Sum contrast coding""" import pandas as pd import numpy as np from sklearn.base import BaseEstimator, TransformerMixin from patsy.highlevel import dmatrix from category_encoders.ordinal import OrdinalEncoder from category_encoders.utils import get_obj_cols, convert_input, get_generated_cols __author__ = 'willmcgin...
32.721698
129
0.614242
9e3f702e3df79e3dd92652f79018bf459b66de37
1,449
py
Python
tests/common/test_op/ascend/greater.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_op/ascend/greater.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_op/ascend/greater.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
33.697674
103
0.707384
9e3f7c2a81c7f605ba66874c52cbba6f19a1b65b
4,028
py
Python
alipay/aop/api/request/AlipayBossFncGfsettleprodPoamountQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayBossFncGfsettleprodPoamountQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayBossFncGfsettleprodPoamountQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayBossFncGfsettleprodPoamountQueryModel import AlipayBossFncGfsettleprodPoamountQueryModel class AlipayBossFncGfsettleprodPoamou...
27.77931
148
0.649454
9e3f853db80535160dc15ed90d4ef8c046991aeb
1,403
py
Python
projects/writer-infra-2021/settings/urls.py
JackonYang/projects-in-one
edca9a313bfc80ddd5c1ca20cdfb0e0a12f8fc62
[ "MIT" ]
3
2021-12-04T09:03:06.000Z
2022-01-10T07:30:15.000Z
projects/writer-infra-2021/settings/urls.py
JackonYang/projects-in-one
edca9a313bfc80ddd5c1ca20cdfb0e0a12f8fc62
[ "MIT" ]
1
2021-12-04T08:59:00.000Z
2021-12-07T11:20:18.000Z
projects/writer-infra-2021/settings/urls.py
JackonYang/projects-in-one
edca9a313bfc80ddd5c1ca20cdfb0e0a12f8fc62
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='ho...
37.918919
77
0.702067
9e3f9b1d58491afdca111de546855c71b7adcf8d
2,898
py
Python
gui/MessageDisplayWindow.py
pfrwilson/snailmail
9c1f55b6e3225faa9f41516766be87452148a915
[ "Apache-2.0" ]
null
null
null
gui/MessageDisplayWindow.py
pfrwilson/snailmail
9c1f55b6e3225faa9f41516766be87452148a915
[ "Apache-2.0" ]
null
null
null
gui/MessageDisplayWindow.py
pfrwilson/snailmail
9c1f55b6e3225faa9f41516766be87452148a915
[ "Apache-2.0" ]
null
null
null
import tkinter as tk from tkinter import ttk from data_classes.Message import Message class MessageDisplayWindow(tk.Toplevel): """A simple message display window. Pass it a message object and it shows all the information. """ def __init__(self, parent, message): """Constructs window by adding the...
40.25
98
0.640097
9e3fb5be4cd1ae30820e3d96b3229d5696bc6984
2,047
py
Python
LoopStructural/modelling/fault/fault_function_feature.py
saward/LoopStructural
541f0500a5387f2a337c5e715828d2c9e4cfe7b2
[ "MIT" ]
null
null
null
LoopStructural/modelling/fault/fault_function_feature.py
saward/LoopStructural
541f0500a5387f2a337c5e715828d2c9e4cfe7b2
[ "MIT" ]
null
null
null
LoopStructural/modelling/fault/fault_function_feature.py
saward/LoopStructural
541f0500a5387f2a337c5e715828d2c9e4cfe7b2
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger(__name__) class FaultDisplacementFeature: """ """ def __init__(self, fault_frame, displacement, name = 'fault_displacement'): """ Geological feature representing the fault displacement Parameters ---------- fault_frame - ...
27.293333
79
0.62384
9e3fe1160a205d952092ed6d7eb37c458bfb0e29
467
py
Python
alipay/aop/api/response/AlipayUserPeerpayprodAgreementSignResponse.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/AlipayUserPeerpayprodAgreementSignResponse.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/AlipayUserPeerpayprodAgreementSignResponse.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 AlipayUserPeerpayprodAgreementSignResponse(AlipayResponse): def __init__(self): super(AlipayUserPeerpayprodAgreementSignResponse, self).__init__() def parse_response_co...
29.1875
115
0.792291
9e4008220a507c59fabdaa89954283ad616afc84
6,173
py
Python
src/azul/service/manifest_controller.py
DataBiosphere/azul
abcaa7c6a04f1f5b8fd74e449e254eff6c433913
[ "Apache-2.0" ]
17
2018-07-20T02:53:35.000Z
2022-01-11T12:27:31.000Z
src/azul/service/manifest_controller.py
DataBiosphere/azul
abcaa7c6a04f1f5b8fd74e449e254eff6c433913
[ "Apache-2.0" ]
3,887
2018-06-29T15:23:02.000Z
2022-03-31T23:29:37.000Z
src/azul/service/manifest_controller.py
DataBiosphere/azul
abcaa7c6a04f1f5b8fd74e449e254eff6c433913
[ "Apache-2.0" ]
21
2018-07-06T03:17:33.000Z
2022-02-18T04:10:02.000Z
import json from typing import ( Mapping, ) import attr from chalice import ( BadRequestError, Response, ) from furl import ( furl, ) from azul import ( CatalogName, cached_property, config, ) from azul.chalice import ( GoneError, ) from azul.service import ( Controller, ) from azu...
36.099415
90
0.525838
9e401e2caef7c2341ea1a0e320e6b0e8aedbecb6
720
py
Python
tests/integration/flows/test_azure_sql_transform.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
23
2021-05-04T13:28:30.000Z
2022-02-16T18:51:24.000Z
tests/integration/flows/test_azure_sql_transform.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
142
2021-05-01T10:48:12.000Z
2022-03-28T15:00:06.000Z
tests/integration/flows/test_azure_sql_transform.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
13
2021-05-14T18:28:10.000Z
2022-03-17T10:17:17.000Z
import pytest from viadot.flows import AzureSQLTransform from viadot.tasks import AzureSQLDBQuery SCHEMA = "sandbox" TABLE = "test" FQN = f"{SCHEMA}.{TABLE}" @pytest.fixture() def TEST_TABLE(): run_sql_task = AzureSQLDBQuery() run_sql_task.run(f"CREATE TABLE {FQN} (id INT, name VARCHAR(25))") run_sql_ta...
24.827586
70
0.672222
9e4037eff970b6f78d66ee9f90a266addbc8f95c
409
py
Python
gat/__init__.py
GlobalAppTesting/gat-cli
6019660f201a444fd857dc17858f332f9c3c5e5a
[ "BSD-3-Clause" ]
1
2020-03-11T14:08:57.000Z
2020-03-11T14:08:57.000Z
gat/__init__.py
GlobalAppTesting/gat-cli
6019660f201a444fd857dc17858f332f9c3c5e5a
[ "BSD-3-Clause" ]
null
null
null
gat/__init__.py
GlobalAppTesting/gat-cli
6019660f201a444fd857dc17858f332f9c3c5e5a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 from .client import GatApi, GatError from .data import ( Application, EmbeddedTestCase, Environment, GatApiConfiguration, InternetBrowser, MobileDevice, NativeBuild, Organization, TestCase, TestCaseInstruction, TestCaseRun, TestCaseRunsBatch, T...
19.47619
36
0.723716
9e40407e1d8113d8ab6bf269e7e8d665abab5b60
834
py
Python
openstack-dashboard/openstack_dashboard/dashboards/project/pertino/models.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/pertino/models.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/pertino/models.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
from django.db import models # Create your models here. class people(object): def __init__(self,name,email,statusi,device,network): self.name = name self.email = email self.status = status self.device = device self.network = network class device(object): def __init__(se...
27.8
75
0.645084
9e40548348bfd616d5111f8f1d584d402e9eb1f5
8,814
py
Python
redash/query_runner/__init__.py
aladdinwang/redash
934b340ff7dab7caa3c91618ffdbe109dfdb31f5
[ "BSD-2-Clause" ]
1
2019-10-25T07:30:26.000Z
2019-10-25T07:30:26.000Z
redash/query_runner/__init__.py
aladdinwang/redash
934b340ff7dab7caa3c91618ffdbe109dfdb31f5
[ "BSD-2-Clause" ]
null
null
null
redash/query_runner/__init__.py
aladdinwang/redash
934b340ff7dab7caa3c91618ffdbe109dfdb31f5
[ "BSD-2-Clause" ]
null
null
null
import logging from dateutil import parser import requests from six import text_type from redash import settings from redash.utils import json_loads logger = logging.getLogger(__name__) __all__ = [ 'BaseQueryRunner', 'BaseHTTPQueryRunner', 'InterruptException', 'BaseSQLQueryRunner', 'TYPE_DATET...
27.54375
117
0.60801
9e407f13b0272a72af387a51fc965f678121c54d
12,614
py
Python
Ideas/Tennis Project/Source Code/VisualizeResults.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
null
null
null
Ideas/Tennis Project/Source Code/VisualizeResults.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
1
2021-11-11T22:15:36.000Z
2021-11-11T22:15:36.000Z
Ideas/Tennis Project/Source Code/VisualizeResults.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
null
null
null
# script to visualize results of ball tracking + court detection # expects three files as input: # 1) video from Megan's camera # 2) video from Kyle's camera # 3) text/csv file with frame number and x, y, z coordinates of ball import sys import numpy as np import matplotlib.pyplot as plt from VideoReader impo...
36.991202
94
0.555335
9e409af26b3b00d01db009798a12da3fa3a9a071
4,447
py
Python
benchmark/run.py
valaxkong/SMARTS
c5a16088152e840dbaa9afe302e8bb9338bc6a93
[ "MIT" ]
1
2021-05-19T06:19:41.000Z
2021-05-19T06:19:41.000Z
benchmark/run.py
valaxkong/SMARTS
c5a16088152e840dbaa9afe302e8bb9338bc6a93
[ "MIT" ]
12
2021-08-25T16:17:20.000Z
2022-03-12T01:00:37.000Z
benchmark/run.py
Dikshuy/SMARTS
f603a900507e2ba8579b3029d85408c197316b13
[ "MIT" ]
null
null
null
#!/usr/bin/env python -W ignore::DeprecationWarning # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # 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 restrict...
31.539007
88
0.659096
9e40a08dea06d878c0583aa4510b6d814c395524
2,126
py
Python
venv/Lib/site-packages/pyrogram/raw/base/data_json.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/base/data_json.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/base/data_json.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
36.033898
91
0.631703
9e40b3d889e68ebd5c4b78dff79afdb0f73d5fb4
57
py
Python
bitrix24_bridge/__init__.py
initflow/bitrix24-bridge-oscar
fd50985fa354a92d7163055c9e3adfd5c4f4d7a9
[ "BSD-3-Clause" ]
null
null
null
bitrix24_bridge/__init__.py
initflow/bitrix24-bridge-oscar
fd50985fa354a92d7163055c9e3adfd5c4f4d7a9
[ "BSD-3-Clause" ]
13
2020-02-12T00:58:41.000Z
2022-03-11T23:53:16.000Z
bitrix24_bridge/__init__.py
initflow/bitrix24-bridge-oscar
fd50985fa354a92d7163055c9e3adfd5c4f4d7a9
[ "BSD-3-Clause" ]
null
null
null
default_app_config = 'bitrix24_bridge.apps.BitrixConfig'
28.5
56
0.859649
9e40d6e2dbd5f68f5d8cf55a5d25616ba18c94eb
89
py
Python
version.py
ssjunnebo/scilifelab
79960f7042118f900bd1eaabe4902ee76abd8020
[ "MIT" ]
1
2016-03-21T14:04:09.000Z
2016-03-21T14:04:09.000Z
version.py
ssjunnebo/scilifelab
79960f7042118f900bd1eaabe4902ee76abd8020
[ "MIT" ]
35
2015-01-22T08:25:02.000Z
2020-02-17T12:09:12.000Z
version.py
ssjunnebo/scilifelab
79960f7042118f900bd1eaabe4902ee76abd8020
[ "MIT" ]
6
2015-01-16T15:32:08.000Z
2020-01-30T14:34:40.000Z
# Do not edit this file, versioning is governed by git tags __version__=1.0-790-gf319c32
29.666667
59
0.786517
9e40f0fb54d2a58aa315da25348076f42f484f83
2,353
py
Python
manual_test_cmds.py
jzuhone/kadi
de4885327d256e156cfe42b2b1700775f5b4d6cf
[ "BSD-3-Clause" ]
1
2015-07-30T18:33:14.000Z
2015-07-30T18:33:14.000Z
manual_test_cmds.py
jzuhone/kadi
de4885327d256e156cfe42b2b1700775f5b4d6cf
[ "BSD-3-Clause" ]
104
2015-01-20T18:44:36.000Z
2022-03-29T18:51:55.000Z
manual_test_cmds.py
jzuhone/kadi
de4885327d256e156cfe42b2b1700775f5b4d6cf
[ "BSD-3-Clause" ]
2
2018-08-23T02:36:08.000Z
2020-03-13T19:24:36.000Z
#!/usr/bin/env python # Licensed under a 3-clause BSD style license - see LICENSE.rst """ Test cmds archive. """ import os import numpy as np from kadi import update_cmds from Chandra.Time import DateTime import Ska.File def test_ingest(): """ Test that doing the ingest a day at a time (which is the norma...
33.614286
84
0.658734
9e40f9dbf4be3798522c978390918e2aa28ebbbb
3,641
py
Python
tests/integration/cartography/intel/aws/test_iam.py
eRaMvn/cartography
807e9216700d32f23739e3b5d227b32fd81aee19
[ "Apache-2.0" ]
null
null
null
tests/integration/cartography/intel/aws/test_iam.py
eRaMvn/cartography
807e9216700d32f23739e3b5d227b32fd81aee19
[ "Apache-2.0" ]
null
null
null
tests/integration/cartography/intel/aws/test_iam.py
eRaMvn/cartography
807e9216700d32f23739e3b5d227b32fd81aee19
[ "Apache-2.0" ]
null
null
null
import cartography.intel.aws.iam import cartography.intel.aws.permission_relationships import tests.data.aws.iam TEST_ACCOUNT_ID = '000000000000' TEST_REGION = 'us-east-1' TEST_UPDATE_TAG = 123456789 def _create_base_account(neo4j_session): neo4j_session.run("MERGE (a:AWSAccount{id:{AccountId}})", AccountId=TEST...
30.341667
108
0.680308
9e411d745aec1ef33af75a49394b49c8267c75ad
11,509
py
Python
kedro/runner/parallel_runner.py
blah2sr/kedro
a953a8b25a0d2085888464cb17de1a59f18f7dca
[ "Apache-2.0" ]
null
null
null
kedro/runner/parallel_runner.py
blah2sr/kedro
a953a8b25a0d2085888464cb17de1a59f18f7dca
[ "Apache-2.0" ]
null
null
null
kedro/runner/parallel_runner.py
blah2sr/kedro
a953a8b25a0d2085888464cb17de1a59f18f7dca
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 QuantumBlack Visual Analytics Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # THE SOFTWARE IS PROVIDED "AS IS", WIT...
40.667845
92
0.62803
9e412a7c9a5d1218e86220ab38b6e6fa6c79bcb4
161,722
py
Python
nova/tests/integrated/test_api_samples.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/tests/integrated/test_api_samples.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/tests/integrated/test_api_samples.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Nebula, Inc. # Copyright 2013 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
37.865137
79
0.605224
9e413316bd41444c91dea39be99324ea61416b87
1,354
py
Python
plugins/holland.backup.mysqldump/tests/util/test_unicode.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
plugins/holland.backup.mysqldump/tests/util/test_unicode.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
plugins/holland.backup.mysqldump/tests/util/test_unicode.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
# pylint: skip-file import unittest from io import StringIO from holland.backup.mysqldump.util import compat, ini class test_unicode(unittest.TestCase): """Test files read in unicode-mode.""" s1 = """\ [foo] bar = fish """ s2 = """\ \ufeff[foo] bar = mammal baz = Marc-Andr\202 """ def basic...
26.038462
65
0.618168
9e41568a4425b5b1156f3b6c4801b5f32dac564e
5,025
py
Python
zerver/migrations/0011_remove_guardian.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2017-07-27T19:49:12.000Z
2017-07-27T19:49:12.000Z
zerver/migrations/0011_remove_guardian.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
9
2021-02-08T20:22:39.000Z
2022-02-11T03:40:19.000Z
zerver/migrations/0011_remove_guardian.py
tobby2002/zulip
66e7c455759f9368bae16b9a604cf63f8e3524cd
[ "Apache-2.0" ]
1
2021-06-10T15:12:52.000Z
2021-06-10T15:12:52.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.migrations.state import StateApps from django.db import models, migrations, connection from django.conf import settings # Translate the UserProfile fields back ...
43.695652
118
0.681592
9e4167eaa8ce08c456a3ab4d68d34de8b6c5e62e
3,336
py
Python
editstring.py
niole/Edit-String
16bbf38d4ffe8f51d84ee6901432979a94ca9b26
[ "Apache-2.0" ]
null
null
null
editstring.py
niole/Edit-String
16bbf38d4ffe8f51d84ee6901432979a94ca9b26
[ "Apache-2.0" ]
null
null
null
editstring.py
niole/Edit-String
16bbf38d4ffe8f51d84ee6901432979a94ca9b26
[ "Apache-2.0" ]
null
null
null
import heapq # string, string, int -> bool def sameplaceheur(gstring,sstring,i): if i >= len(gstring) or i >= len(sstring): return False else: if sstring[i] == gstring[i]: return True return False assert(sameplaceheur('hag','rag',1) == True) # string,string -> [int] def sam...
30.888889
97
0.571942
9e4189185f0d08a5594c008a1545bd52bbe5e808
19,928
py
Python
fathom/seq2seq/seq2seq.py
rdadolf/fathom
1dc013d055e59fb09c886ae3a667084119deac5c
[ "Apache-2.0" ]
77
2016-09-28T01:34:38.000Z
2022-03-22T10:43:12.000Z
fathom/seq2seq/seq2seq.py
rdadolf/fathom
1dc013d055e59fb09c886ae3a667084119deac5c
[ "Apache-2.0" ]
21
2016-10-05T21:30:03.000Z
2019-11-01T10:26:40.000Z
fathom/seq2seq/seq2seq.py
rdadolf/fathom
1dc013d055e59fb09c886ae3a667084119deac5c
[ "Apache-2.0" ]
25
2016-09-28T01:50:47.000Z
2020-03-06T07:27:11.000Z
#!/usr/bin/env python import math import random import sys import time import tensorflow as tf import numpy as np from fathom.nn import NeuralNetworkModel, default_runstep from . import data_utils class Seq2Seq(NeuralNetworkModel): """Based on TensorFlow example of sequence-to-sequence translation.""" def build...
43.227766
115
0.654908
9e418bb72cf08351cb90f31ddd540a2d1acc9c17
27,312
py
Python
dnplab/core/nddata.py
DNPLab/DNPLab
78999a4e8320b6476a5aa55d9884c49d74149edc
[ "MIT" ]
4
2020-09-23T08:09:33.000Z
2022-02-10T22:02:11.000Z
dnplab/core/nddata.py
DNPLab/DNPLab
78999a4e8320b6476a5aa55d9884c49d74149edc
[ "MIT" ]
126
2020-09-16T22:25:59.000Z
2022-03-29T17:15:27.000Z
dnplab/core/nddata.py
DNPLab/DNPLab
78999a4e8320b6476a5aa55d9884c49d74149edc
[ "MIT" ]
5
2020-09-24T20:57:31.000Z
2021-08-19T01:52:16.000Z
from __future__ import division import operator import numpy as np import warnings from copy import deepcopy from collections import OrderedDict from . import nddata_coord _numerical_types = (np.ndarray, int, float, complex, np.complex64) _nddata_core_version = "1.0" class nddata_core(object): """nddata class""...
30.112459
161
0.542655