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
335bf0a811bcd08de67c0e4f701db41690d11e93
4,347
py
Python
experiments/ashvin/icml2020/hand/sparse/bc_mixture2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/sparse/bc_mixture2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/sparse/bc_mixture2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies import GaussianM...
31.273381
130
0.573039
335bfbd84d549ed0fe30b250eaa097c22aef21cf
2,824
py
Python
loaner/deployments/lib/google_api.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
loaner/deployments/lib/google_api.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
loaner/deployments/lib/google_api.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google Inc. 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 a...
31.377778
79
0.694051
335bfc01d2fbd123c96aa570e8bafdb87e657ae7
3,913
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/ml/predict_utilities.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/ml/predict_utilities.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/ml/predict_utilities.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2016 Google Inc. 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 ag...
34.324561
78
0.701252
335c1e4c43cc99766f6d45cea9bdff74e08db018
1,043
py
Python
tensorflow/contrib/tensor_forest/client/__init__.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/tensor_forest/client/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/tensor_forest/client/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
43.458333
80
0.735379
335c20d1f1afc9627cbf6f139e5db5519bc32b70
2,328
py
Python
styler_rest_framework/crud/base.py
STYLER-Inc/styler-rest-framework
edd2b6ab5f2989f8e0d688756e9e3839c652dd62
[ "MIT" ]
3
2020-08-31T06:29:15.000Z
2021-09-08T09:24:52.000Z
styler_rest_framework/crud/base.py
STYLER-Inc/styler-rest-framework
edd2b6ab5f2989f8e0d688756e9e3839c652dd62
[ "MIT" ]
31
2020-08-20T01:27:05.000Z
2022-02-10T07:17:21.000Z
styler_rest_framework/crud/base.py
STYLER-Inc/styler-rest-framework
edd2b6ab5f2989f8e0d688756e9e3839c652dd62
[ "MIT" ]
null
null
null
from typing import Any, Dict, Generic, List, Optional, Type, TypeVar, Union from fastapi.encoders import jsonable_encoder from pydantic import BaseModel from sqlalchemy.orm import Session from sqlalchemy.ext.declarative import as_declarative, declared_attr @as_declarative() class Base: id: Any __name__: str...
29.468354
76
0.633591
335c33e220315ccfc41f58f5e4eb546f5fed467b
8,661
py
Python
torchreid/models/mobilenetv2.py
Arindam-1991/deep_reid
ab68d95c2229ef5b832a6a6b614a9b91e4984bd5
[ "MIT" ]
1
2021-03-27T17:27:47.000Z
2021-03-27T17:27:47.000Z
torchreid/models/mobilenetv2.py
Arindam-1991/deep_reid
ab68d95c2229ef5b832a6a6b614a9b91e4984bd5
[ "MIT" ]
null
null
null
torchreid/models/mobilenetv2.py
Arindam-1991/deep_reid
ab68d95c2229ef5b832a6a6b614a9b91e4984bd5
[ "MIT" ]
null
null
null
from __future__ import division, absolute_import import torch.utils.model_zoo as model_zoo from torch import nn from torch.nn import functional as F __all__ = ['mobilenetv2_x1_0', 'mobilenetv2_x1_4'] model_urls = { # 1.0: top-1 71.3 'mobilenetv2_x1_0': 'https://mega.nz/#!NKp2wAIA!1NH1pbNzY_M2hVk...
31.494545
100
0.558134
335c3518ad6646695ba9390fa40c476e2c6b9dbd
4,976
py
Python
nova/tests/unit/api/openstack/compute/test_server_usage.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_server_usage.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_server_usage.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 OpenStack Foundation # 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 requ...
37.69697
78
0.653336
335c5ab993e5cf5515727b6440ae5942e2efcbe1
183
py
Python
0x08-python-more_classes/0-rectangle.py
gogomillan/holbertonschool-higher_level_programming
1549ffc4fdc284271684321ff6edd882a314193a
[ "MIT" ]
null
null
null
0x08-python-more_classes/0-rectangle.py
gogomillan/holbertonschool-higher_level_programming
1549ffc4fdc284271684321ff6edd882a314193a
[ "MIT" ]
null
null
null
0x08-python-more_classes/0-rectangle.py
gogomillan/holbertonschool-higher_level_programming
1549ffc4fdc284271684321ff6edd882a314193a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Module for an empty class Rectangle that defines a rectangle: """ class Rectangle: """An empty class Rectangle that defines a rectangle: """ pass
16.636364
61
0.677596
335c76cd3fdaf7bc1089237b106c2584e0bbee82
391
py
Python
juggler/juggler/asgi.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
juggler/juggler/asgi.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
juggler/juggler/asgi.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
""" ASGI config for juggler project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTI...
23
78
0.785166
335c8201e18630699462e5e50d1f1b32a6980a79
9,502
py
Python
theto/coordinate_utils.py
Valassis-Digital-Media/geoplotter
debd1bac4cfbac6d90693585661a88ef61d420d3
[ "BSD-3-Clause" ]
5
2019-05-01T23:29:21.000Z
2020-02-16T16:47:31.000Z
theto/coordinate_utils.py
Valassis-Digital-Media/geoplotter
debd1bac4cfbac6d90693585661a88ef61d420d3
[ "BSD-3-Clause" ]
23
2019-05-06T18:35:47.000Z
2020-05-11T13:57:58.000Z
theto/coordinate_utils.py
Valassis-Digital-Media/geoplotter
debd1bac4cfbac6d90693585661a88ef61d420d3
[ "BSD-3-Clause" ]
2
2020-04-15T10:52:25.000Z
2020-11-23T23:22:08.000Z
from shapely.wkt import loads, dumps from pyproj import Proj, transform as pyproj_transform from math import log10 from json import loads as json_loads from shapely.geometry import shape, box from functools import partial from shapely.ops import transform as shapely_transform from shapely.geometry import ( Polygon...
28.534535
113
0.620922
335c9f499a09e4dd50b501b34435c81bfc9767ab
1,341
py
Python
astroutils/tests/test_nonmathops.py
nithyanandan/AstroUtils
97473f52d4247bb9c8507598899215d0662e8d6f
[ "MIT" ]
1
2018-10-31T03:49:39.000Z
2018-10-31T03:49:39.000Z
astroutils/tests/test_nonmathops.py
nithyanandan/AstroUtils
97473f52d4247bb9c8507598899215d0662e8d6f
[ "MIT" ]
5
2017-11-18T01:45:50.000Z
2020-05-30T12:26:50.000Z
astroutils/tests/test_nonmathops.py
nithyanandan/AstroUtils
97473f52d4247bb9c8507598899215d0662e8d6f
[ "MIT" ]
1
2019-10-14T08:44:40.000Z
2019-10-14T08:44:40.000Z
from astroutils import nonmathops as NMO def test_recursive_find_notNone_in_dict(): inpdict = {'a': 1, 'b': None, 'c': [0,1], 'd': {'d1': None, 'd2': {'d21': None, 'd22': 22}, 'd3': 3}, 'e': {'e1': None, 'e2': None}} expdict = {'c': [0,1], 'a': 1, 'd': {'d3': 3, 'd2': {'d22': 22}}} outdict = NMO.recursive_...
51.576923
136
0.598807
335ca4a6299d7e72f3cb326804bfbe1575c233a3
7,536
py
Python
xos/synchronizers/base/steps/sync_instances.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/base/steps/sync_instances.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/base/steps/sync_instances.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
import os import base64 import socket from django.db.models import F, Q from xos.config import Config from xos.settings import RESTAPI_HOSTNAME, RESTAPI_PORT from synchronizers.base.openstacksyncstep import OpenStackSyncStep from core.models.instance import Instance from core.models.slice import Slice, SlicePrivilege, ...
43.062857
220
0.631635
335cdc71cbb3cd58756c16002375f945d71c3b8e
18,867
py
Python
tests/storage/test_service.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
2
2021-11-15T09:26:33.000Z
2022-02-24T09:53:54.000Z
tests/storage/test_service.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
542
2021-01-11T13:23:47.000Z
2022-03-31T15:38:10.000Z
tests/storage/test_service.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
1
2020-10-01T12:18:15.000Z
2020-10-01T12:18:15.000Z
from datetime import datetime from pathlib import Path from unittest.mock import Mock from uuid import uuid4 import pytest from antarest.core.config import Config, StorageConfig, WorkspaceConfig from antarest.core.jwt import JWTUser, JWTGroup from antarest.core.requests import ( RequestParameters, ) from antarest...
27.623719
79
0.61377
335cf485bfe8b7c9d28637e10347558212e5d4b7
7,058
py
Python
optimization.py
chenyu-jiang/bert
099cb1421dbf23f30f61a59b2770c4f06465c7bf
[ "Apache-2.0" ]
null
null
null
optimization.py
chenyu-jiang/bert
099cb1421dbf23f30f61a59b2770c4f06465c7bf
[ "Apache-2.0" ]
null
null
null
optimization.py
chenyu-jiang/bert
099cb1421dbf23f30f61a59b2770c4f06465c7bf
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
36.760417
97
0.690564
335d068194ecc2851c30cfb4ee5e3179b39e0a1c
440
py
Python
alipay/aop/api/response/AlipayCommerceReceiptSyncResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayCommerceReceiptSyncResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayCommerceReceiptSyncResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayCommerceReceiptSyncResponse(AlipayResponse): def __init__(self): super(AlipayCommerceReceiptSyncResponse, self).__init__() def parse_response_content(self, respon...
27.5
106
0.779545
335d138cf47c5801b7d003cf48a58aac39c722c4
22,451
py
Python
nxsdk_modules_ncl/lsnn/apps/relnet/data/loihi_placement_param_search.py
event-driven-robotics/models
5e5b6521b8bcab6e3576e177784baaed57fd5280
[ "BSD-3-Clause" ]
54
2020-03-04T17:37:17.000Z
2022-02-22T13:16:10.000Z
nxsdk_modules_ncl/lsnn/apps/relnet/data/loihi_placement_param_search.py
lyes-khacef/models
a8b6e2a83d4842eb99878d3fa53cd92f4c6b3db8
[ "BSD-3-Clause" ]
9
2020-08-26T13:17:54.000Z
2021-11-09T09:02:00.000Z
nxsdk_modules_ncl/lsnn/apps/relnet/data/loihi_placement_param_search.py
lyes-khacef/models
a8b6e2a83d4842eb99878d3fa53cd92f4c6b3db8
[ "BSD-3-Clause" ]
26
2020-03-18T17:09:34.000Z
2021-11-22T16:23:14.000Z
# Copyright © 2018-2021 Intel Corporation All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditions...
51.493119
220
0.729099
335d2f741a3f32253ed46296456cc77ebb9718f7
195
py
Python
sequence_classification/transformers/sequence_transformer.py
piotermiarer/Sequence-Classification
05b5491cc8470f477a160fb4207aacd1b12aa5ed
[ "MIT" ]
1
2021-03-14T17:22:41.000Z
2021-03-14T17:22:41.000Z
sequence_classification/transformers/sequence_transformer.py
piotermiarer/Sequence-Classification
05b5491cc8470f477a160fb4207aacd1b12aa5ed
[ "MIT" ]
23
2018-11-17T21:05:31.000Z
2019-01-15T09:58:33.000Z
sequence_classification/transformers/sequence_transformer.py
piotermiarer/Sequence-Classification
05b5491cc8470f477a160fb4207aacd1b12aa5ed
[ "MIT" ]
1
2020-07-31T06:09:31.000Z
2020-07-31T06:09:31.000Z
# generic class must be extended class SequenceTransformer: def transform(self, data): raise NotImplementedError def fit_transform(self, data): raise NotImplementedError
24.375
34
0.728205
335d8b01a3478e1e91d04a03f08a7d23c284309c
2,595
py
Python
kivy/tests/test_graphics.py
hakanardo/kivy
707b4aa35bfb79577bd87dfc23aa527f0eb03640
[ "MIT" ]
null
null
null
kivy/tests/test_graphics.py
hakanardo/kivy
707b4aa35bfb79577bd87dfc23aa527f0eb03640
[ "MIT" ]
null
null
null
kivy/tests/test_graphics.py
hakanardo/kivy
707b4aa35bfb79577bd87dfc23aa527f0eb03640
[ "MIT" ]
null
null
null
''' Graphics tests ============== Testing the simple vertex instructions ''' from kivy.tests.common import GraphicUnitTest class VertexInstructionTest(GraphicUnitTest): def test_circle(self): from kivy.uix.widget import Widget from kivy.graphics import Ellipse, Color r = self.render ...
24.252336
73
0.528324
335d939c2429fa72969a6a5117abcde5283f9d44
6,326
py
Python
ws_auth/http.py
newvicx/ws_auth
4632390cab94ec7d33ce45466a9f94c1d1c768d0
[ "MIT" ]
null
null
null
ws_auth/http.py
newvicx/ws_auth
4632390cab94ec7d33ce45466a9f94c1d1c768d0
[ "MIT" ]
null
null
null
ws_auth/http.py
newvicx/ws_auth
4632390cab94ec7d33ce45466a9f94c1d1c768d0
[ "MIT" ]
null
null
null
import asyncio import logging import ssl import weakref from typing import Union import h11 from websockets.datastructures import Headers from websockets.legacy.client import WebSocketClientProtocol from websockets.uri import WebSocketURI from .types import Request, Response logger = logging.getLogger...
35.943182
92
0.593108
335dc098eb18307a378cd69d058eaeb1a370948c
12,913
py
Python
tests/functional/test_pack.py
AgeOfLearning/uget-cli
ecaa54db9c9a6bd22f3ce2099b28828ea42cb853
[ "MIT" ]
1
2019-03-03T21:19:51.000Z
2019-03-03T21:19:51.000Z
tests/functional/test_pack.py
AgeOfLearning/uget-cli
ecaa54db9c9a6bd22f3ce2099b28828ea42cb853
[ "MIT" ]
3
2018-12-31T20:11:03.000Z
2021-11-15T17:47:57.000Z
tests/functional/test_pack.py
AgeOfLearning/uget-cli
ecaa54db9c9a6bd22f3ce2099b28828ea42cb853
[ "MIT" ]
2
2019-02-14T01:08:57.000Z
2019-03-03T21:19:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Functional tests for `ugetcli` package - `pack` command. Tests functionality of the cli pack command with various options. """ import unittest import os import json from click.testing import CliRunner from mock import MagicMock, patch from ugetcli import cli from uge...
48.545113
170
0.699992
335de8f6762ea74331fb47f80594f70a33ffd99c
33,545
py
Python
zerver/views/registration.py
Chizycodes/zulip
f5a65846a8296dc697639e97ba34815e7cc2376d
[ "Apache-2.0" ]
17,004
2015-09-25T18:27:24.000Z
2022-03-31T22:02:32.000Z
zerver/views/registration.py
Chizycodes/zulip
f5a65846a8296dc697639e97ba34815e7cc2376d
[ "Apache-2.0" ]
20,344
2015-09-25T19:02:42.000Z
2022-03-31T23:54:40.000Z
zerver/views/registration.py
Chizycodes/zulip
f5a65846a8296dc697639e97ba34815e7cc2376d
[ "Apache-2.0" ]
7,271
2015-09-25T18:48:39.000Z
2022-03-31T21:06:11.000Z
import logging import urllib from typing import Any, Dict, List, Optional from urllib.parse import urlencode from django.conf import settings from django.contrib.auth import authenticate, get_backends from django.core import validators from django.core.exceptions import ValidationError from django.db.models import Q f...
41.311576
100
0.640662
335e0412e67283089b9e78bf3f5c65b61df9565f
1,995
py
Python
test/test_invoice.py
Nukesor/taxcli
f313acd2f1c9a551361a535f8428a17c53e6b468
[ "MIT" ]
null
null
null
test/test_invoice.py
Nukesor/taxcli
f313acd2f1c9a551361a535f8428a17c53e6b468
[ "MIT" ]
null
null
null
test/test_invoice.py
Nukesor/taxcli
f313acd2f1c9a551361a535f8428a17c53e6b468
[ "MIT" ]
null
null
null
import os from taxcli.models.invoice import InvoiceTypes from taxcli.models import ( Invoice ) class TestInvoiceAnalysis: def test_invoice(self, session, invoice_factory): invoice_factory.get() invoice = session.query(Invoice) \ .filter(Invoice.contact_alias == 'test') \ ...
38.365385
91
0.621554
335e0ed6b53da7e139c1b7f3360f34534a8c3192
2,710
py
Python
test/test_models.py
JoaoFdC/PyroNear
ca56316d5ad986789feace9dd913115596f6c2ca
[ "MIT" ]
null
null
null
test/test_models.py
JoaoFdC/PyroNear
ca56316d5ad986789feace9dd913115596f6c2ca
[ "MIT" ]
null
null
null
test/test_models.py
JoaoFdC/PyroNear
ca56316d5ad986789feace9dd913115596f6c2ca
[ "MIT" ]
null
null
null
import unittest import torch import numpy as np import random from pyronear import models def set_rng_seed(seed): torch.manual_seed(seed) random.seed(seed) np.random.seed(seed) def get_available_classification_models(): # TODO add a registration mechanism to torchvision.models return [k for k, v...
31.511628
107
0.643542
335e24e3d0d7dc0d96fef45545d9a94ecb68c052
4,124
py
Python
benchmarks/transformer_fusion_patterns/benchmark.py
stas00/functorch
73759a665e29468ec2dc05c0d7148c2ec7b5e55b
[ "BSD-3-Clause" ]
279
2021-05-26T22:45:17.000Z
2021-10-19T14:21:44.000Z
benchmarks/transformer_fusion_patterns/benchmark.py
stas00/functorch
73759a665e29468ec2dc05c0d7148c2ec7b5e55b
[ "BSD-3-Clause" ]
136
2021-05-27T14:25:30.000Z
2021-10-18T23:28:49.000Z
benchmarks/transformer_fusion_patterns/benchmark.py
stas00/functorch
73759a665e29468ec2dc05c0d7148c2ec7b5e55b
[ "BSD-3-Clause" ]
15
2021-06-07T06:40:26.000Z
2021-09-30T08:11:59.000Z
import torch import time from functorch.compile import memory_efficient_fusion, clear_compile_cache import benchmark_helper device = "cuda" dtype = torch.float16 # LightSeq pattern 1 class DropoutResBias: @staticmethod def fn(input, bias, residual): a = torch.add(input, bias) b = torch.nn.fun...
26.779221
87
0.595296
335e29caac1bfd4cf731eca8933f389d7e2b179e
133
py
Python
mdanalysis/__init__.py
like201707/MD_data_analysis
066bc23b7353ed83d5b05213c28ccb455cb1b5a5
[ "MIT" ]
2
2017-09-29T16:12:01.000Z
2021-02-07T04:47:08.000Z
mdanalysis/__init__.py
like201707/MD_data_analysis
066bc23b7353ed83d5b05213c28ccb455cb1b5a5
[ "MIT" ]
null
null
null
mdanalysis/__init__.py
like201707/MD_data_analysis
066bc23b7353ed83d5b05213c28ccb455cb1b5a5
[ "MIT" ]
null
null
null
def joke(): return (u'Wenn ist das Nunst\u00fcck git und Slotermeyer? Ja! ... ' u'Beiherhund das Oder die Flipperwaldt gersput.')
44.333333
68
0.714286
335e2d4fedbe5343f9bba92c6f7be541ee578686
7,645
gyp
Python
third_party/harfbuzz-ng/harfbuzz.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
third_party/harfbuzz-ng/harfbuzz.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/harfbuzz-ng/harfbuzz.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright (c) 2012 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. { 'includes': [ '../../build/win_precompile.gypi', ], 'variables': { # Blink uses a cutting-edge version of Harfbuzz; most Linux distros do...
36.061321
137
0.474428
335e8f79df962193dbec35276ceaf542491a51f1
3,609
py
Python
PyTester/quat.py
MihaiF/SolidFEM
58e08130e2f31be3b056c387ed03aab3b0b3db38
[ "BSD-3-Clause" ]
3
2020-05-19T10:59:01.000Z
2022-02-04T08:59:32.000Z
PyTester/quat.py
MihaiF/SolidFEM
58e08130e2f31be3b056c387ed03aab3b0b3db38
[ "BSD-3-Clause" ]
null
null
null
PyTester/quat.py
MihaiF/SolidFEM
58e08130e2f31be3b056c387ed03aab3b0b3db38
[ "BSD-3-Clause" ]
1
2019-11-08T16:14:53.000Z
2019-11-08T16:14:53.000Z
import numpy as np class Quaternion(object): def __init__(self, w=0, x=0, y=0, z=0): self.q = np.array([w, x, y, z]) def attrsetter(attr): def set(self, value): setattr(self, attr, value) return set def __str__(self): return "({0}, {1}, {2}, {3})".format(*self...
37.989474
97
0.424494
335e9033469e3b93c72177031c9389c66eab8824
731
py
Python
tests/test_utils.py
ss-lab-cancerunit/pangaea
1d186db6aba76674edc3826797decbf487b4f337
[ "Unlicense" ]
null
null
null
tests/test_utils.py
ss-lab-cancerunit/pangaea
1d186db6aba76674edc3826797decbf487b4f337
[ "Unlicense" ]
1
2020-03-31T18:21:47.000Z
2020-03-31T18:21:47.000Z
tests/test_utils.py
ss-lab-cancerunit/pangaea
1d186db6aba76674edc3826797decbf487b4f337
[ "Unlicense" ]
null
null
null
from pangaea import utils GENES_FILE = 'pangaea/data/test/genes_test.txt' SYNONYMS_FILE = 'pangaea/data/test/gene_to_synonyms_test.json' def test_parse_file(): genes = utils.parse_file(GENES_FILE) assert len(genes) == 4 def test_process_synonyms(): genes = utils.parse_file(GENES_FILE) syns = utils.pr...
31.782609
74
0.74145
335e92008b6591e1fe96c6e050b33c5ad3b957fe
998
py
Python
dcdb/jinja2.py
mwschall/dcdb
0c650b9bfd877ffaf8023b8207ad6a54411c7bc5
[ "0BSD" ]
1
2017-06-15T23:27:14.000Z
2017-06-15T23:27:14.000Z
dcdb/jinja2.py
mwschall/dcdb
0c650b9bfd877ffaf8023b8207ad6a54411c7bc5
[ "0BSD" ]
null
null
null
dcdb/jinja2.py
mwschall/dcdb
0c650b9bfd877ffaf8023b8207ad6a54411c7bc5
[ "0BSD" ]
null
null
null
from django.template.defaultfilters import json_script, date, time from django.templatetags.static import static from django.urls import reverse from jinja2 import Environment from webpack_loader.templatetags.webpack_loader import render_bundle from comics.templatetags.comics_extras import page_num, oxford_comma, ugro...
30.242424
87
0.699399
335e95015ee120284623c8286bb5866660889bf4
1,924
py
Python
projects/DensePose/densepose/modeling/inference.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
projects/DensePose/densepose/modeling/inference.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
projects/DensePose/densepose/modeling/inference.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. from dataclasses import fields from typing import Any, List import torch from detectron.structures import Instances def densepose_inference(densepose_predictor_output: Any, detections: List[Instances]): """ Splits DensePose predictor outputs into chunks, eac...
43.727273
86
0.66736
335e99da680dcee02f5ed91e317dbd567ce3f545
1,639
py
Python
flask-video-streaming/camera_pi_android.py
robsmall/flask-raspi-video-streamer
6ed788b57b98ea25ff5bbb25923e519fbb1f9dc8
[ "Apache-2.0" ]
14
2017-11-20T01:30:50.000Z
2021-06-07T08:28:37.000Z
flask-video-streaming/camera_pi_android.py
robsmall/flask-raspi-video-streamer
6ed788b57b98ea25ff5bbb25923e519fbb1f9dc8
[ "Apache-2.0" ]
2
2018-10-30T22:32:37.000Z
2021-10-12T22:52:46.000Z
flask-video-streaming/camera_pi_android.py
robsmall/flask-raspi-video-streamer
6ed788b57b98ea25ff5bbb25923e519fbb1f9dc8
[ "Apache-2.0" ]
5
2018-10-25T22:50:33.000Z
2020-11-08T21:19:42.000Z
import io import time import picamera from base_camera import BaseCamera USER_STOP_LIST = set() # Taken from picamera.readthedocs.io section 4.10 class StreamingOutput(object): def __init__(self): self.frame = None self.buffer = io.BytesIO() def write(self, buf): if buf.startswith(b...
28.754386
93
0.610738
335eaae993ae871babc372879aff7dab8923b967
457
py
Python
poo/5-polimorfismo.py
cristian-rincon/escuela-datascience
a9c805ccd30d66bfb4d17f652e9ce2f20a8978fb
[ "MIT" ]
null
null
null
poo/5-polimorfismo.py
cristian-rincon/escuela-datascience
a9c805ccd30d66bfb4d17f652e9ce2f20a8978fb
[ "MIT" ]
32
2021-02-12T02:48:30.000Z
2022-03-13T01:56:19.000Z
poo/5-polimorfismo.py
cristian-rincon/escuela-datascience
a9c805ccd30d66bfb4d17f652e9ce2f20a8978fb
[ "MIT" ]
null
null
null
class Persona: def __init__(self, nombre): self.nombre = nombre def avanza(self): print('Ando caminando.') class Ciclista(Persona): def __init__(self, nombre): super().__init__(nombre) def avanza(self): print('Ando en mi bicicleta.') def main(): persona1 = Pe...
16.321429
38
0.610503
335eabaf40d78aa7a6896bd4689d704b512c3327
12,298
py
Python
test/python/LIM2Metrics/py2/base/common/Python024/Python024.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
20
2015-06-16T17:39:10.000Z
2022-03-20T22:39:40.000Z
test/python/LIM2Metrics/py2/base/common/Python024/Python024.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
29
2015-12-29T19:07:22.000Z
2022-03-22T10:39:02.000Z
test/python/LIM2Metrics/py2/base/common/Python024/Python024.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
12
2015-08-28T01:22:18.000Z
2021-09-25T08:17:31.000Z
""" PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 -------------------------------------------- 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated ...
35.646377
76
0.570906
335ec90a19fa60e11c4d77d8b988dee382901232
707
py
Python
cord19kg/__init__.py
BlueBrain/BlueGraph
7a7df9c97d01d7ebfa77cf911f187b18e2d6dc02
[ "Apache-2.0" ]
25
2021-04-09T09:57:10.000Z
2022-02-09T14:26:55.000Z
bluegraph/backends/networkx/analyse/__init__.py
BlueBrain/BlueGraph
7a7df9c97d01d7ebfa77cf911f187b18e2d6dc02
[ "Apache-2.0" ]
39
2021-04-09T08:23:28.000Z
2021-11-10T08:35:59.000Z
bluegraph/backends/neo4j/analyse/__init__.py
BlueBrain/BlueGraph
7a7df9c97d01d7ebfa77cf911f187b18e2d6dc02
[ "Apache-2.0" ]
3
2021-07-30T19:00:24.000Z
2022-03-16T21:01:48.000Z
# BlueGraph: unifying Python framework for graph analytics and co-occurrence analysis. # Copyright 2020-2021 Blue Brain Project / EPFL # 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 a...
44.1875
87
0.742574
335ecfc92bb735ef5706bdf93f059b1ec6b87898
2,164
py
Python
emtract/data/cleaning.py
dvamossy/EmTract
68a00e3d63fbc2c401b0d2b297bf96ffb75940e8
[ "MIT" ]
16
2021-12-02T18:59:56.000Z
2022-03-31T11:42:12.000Z
emtract/data/cleaning.py
dvamossy/EmTract
68a00e3d63fbc2c401b0d2b297bf96ffb75940e8
[ "MIT" ]
null
null
null
emtract/data/cleaning.py
dvamossy/EmTract
68a00e3d63fbc2c401b0d2b297bf96ffb75940e8
[ "MIT" ]
1
2021-12-09T06:05:22.000Z
2021-12-09T06:05:22.000Z
import pandas as pd special_dict_r1 = {"&#39,s": "'", "´": "'", "->": ""} special_dict_r2 = { "(s)": "s", "'": "'", "lt;": "", ";lt": "", "gt;": "", ";gt": "", "\'": "'", """: "", "&": " and ", "’": "'", "é": "'", "\n": " ", "\t": " ", "-l...
34.349206
137
0.61183
335edb9fe1e9a3a01966c3e037dbc657c49ff959
453
py
Python
notebooks/_todo.py
charnley/matplotlib-views
a141fe799cead6ed17b05f301bc1610823aab5f6
[ "MIT" ]
1
2020-05-05T08:51:19.000Z
2020-05-05T08:51:19.000Z
notebooks/_todo.py
charnley/matplotlib-views
a141fe799cead6ed17b05f301bc1610823aab5f6
[ "MIT" ]
null
null
null
notebooks/_todo.py
charnley/matplotlib-views
a141fe799cead6ed17b05f301bc1610823aab5f6
[ "MIT" ]
null
null
null
# Get hist in log-scale n_bins = 5 hist, bins = np.histogram(outliers_removed, bins=n_bins) logbins = np.logspace(np.log10(bins[0]),np.log10(bins[-1]),len(bins)) #plt.hist(x, bins=logbins) #plt.xscale('log') n, bins, patches = ax.hist( outliers_removed, #bins=logbins, histtype='stepfilled', color="k", de...
21.571429
69
0.693157
335f40b36e3aa1f532927c2502185b61dd914703
28,313
py
Python
src/python/pants/backend/python/tasks/setup_py.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/tasks/setup_py.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
src/python/pants/backend/python/tasks/setup_py.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import inspect import itertools import os import shutil import subprocess import textwrap from abc import ABC, abstractmethod from collections import OrderedDict, defaultdict from pex.ins...
43.160061
100
0.700668
335f482dd4d99b8a8bc91282631f41ae4a9fdd85
2,787
py
Python
smiler/serialisation/xml_serialiser.py
samadpaydar/acvtool
84d6977cf9e7db247216735cd8828ae90111cf85
[ "Apache-2.0" ]
53
2018-10-02T18:54:20.000Z
2022-01-11T03:56:36.000Z
smiler/serialisation/xml_serialiser.py
samadpaydar/acvtool
84d6977cf9e7db247216735cd8828ae90111cf85
[ "Apache-2.0" ]
23
2019-01-07T08:31:39.000Z
2021-12-13T19:50:02.000Z
smiler/serialisation/xml_serialiser.py
samadpaydar/acvtool
84d6977cf9e7db247216735cd8828ae90111cf85
[ "Apache-2.0" ]
22
2018-11-17T03:42:28.000Z
2022-02-12T05:29:52.000Z
import lxml from lxml import etree from lxml.etree import Element, SubElement from ..granularity import Granularity from smiler.instrumenting.utils import Utils as Utils2 class XmlSerialiser(object): def __init__(self, smalitree, app_name, granularity): self.smalitree = smalitree self.app_name = a...
44.951613
104
0.651597
335f5701dda1012ce63606d434953974fa60cb94
44,211
py
Python
wxgui.py
jdfr/TopoReg
10176ba2570717b882b15a20a9458fb3ce522de7
[ "BSL-1.0", "BSD-3-Clause" ]
1
2021-08-16T07:22:47.000Z
2021-08-16T07:22:47.000Z
wxgui.py
jdfr/TopoReg
10176ba2570717b882b15a20a9458fb3ce522de7
[ "BSL-1.0", "BSD-3-Clause" ]
null
null
null
wxgui.py
jdfr/TopoReg
10176ba2570717b882b15a20a9458fb3ce522de7
[ "BSL-1.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import os import os.path as op import traceback import sys import threading as thr import itertools as it FROZEN = getattr(sys, 'frozen', False) if FROZEN: thisdir = op.dirname(sys.executable) # frozen else: thisdir = op.dirname(op.realpath(__file__)) # unfrozen def terminate(): if not ...
43.301665
319
0.667323
335f7414ff849d5507f81c90a1a89e1ccba55be9
7,409
py
Python
jenkinsapi_tests/unittests/test_job_multiconf.py
ifwe/jenkinsapi
31a7fbb07efcd48e226f7dcf643fd2a2625416c0
[ "MIT" ]
1
2015-01-12T14:15:59.000Z
2015-01-12T14:15:59.000Z
jenkinsapi_tests/unittests/test_job_multiconf.py
moustuk/jenkinsapi-1
d18c1e669965c209093763f3295f79c9d3ccdeea
[ "MIT" ]
null
null
null
jenkinsapi_tests/unittests/test_job_multiconf.py
moustuk/jenkinsapi-1
d18c1e669965c209093763f3295f79c9d3ccdeea
[ "MIT" ]
null
null
null
# import mock # import unittest # from jenkinsapi.job import Job # from jenkinsapi.jenkinsbase import JenkinsBase # from jenkinsapi.custom_exceptions import NoBuildData # class TestMultiConfigJob(unittest.TestCase): # JOB_DATA = {'actions': [{'causes': [{'shortDescription': 'Started by user anonymous', # ...
39.409574
124
0.586449
335fadd14b8d00831fdc1af632e3db0521b0313d
622
py
Python
hw03/scoring.py
dmryutov/otus-python-0319
c825166ff16a2e26f3d99e375b13c9e2e8ada49b
[ "MIT" ]
null
null
null
hw03/scoring.py
dmryutov/otus-python-0319
c825166ff16a2e26f3d99e375b13c9e2e8ada49b
[ "MIT" ]
null
null
null
hw03/scoring.py
dmryutov/otus-python-0319
c825166ff16a2e26f3d99e375b13c9e2e8ada49b
[ "MIT" ]
null
null
null
import random def get_score(store, phone, email, birthday=None, gender=None, first_name=None, last_name=None): """ Get user's score based on given user fields """ score = 0 if phone: score += 1.5 if email: score += 1.5 if birthday and gender: score += 1.5 if fir...
23.037037
96
0.567524
335fb33aaaa7541e5c9c3cb0493c146958caf509
2,976
py
Python
python/example/pd_forward.py
srl-ethz/diffPD_sim2real
e491668995a163b8ff7542d99f0b4e0c0f4ed2df
[ "MIT" ]
4
2022-02-10T02:28:42.000Z
2022-02-10T07:28:35.000Z
python/example/pd_forward.py
srl-ethz/diffPD_sim2real
e491668995a163b8ff7542d99f0b4e0c0f4ed2df
[ "MIT" ]
null
null
null
python/example/pd_forward.py
srl-ethz/diffPD_sim2real
e491668995a163b8ff7542d99f0b4e0c0f4ed2df
[ "MIT" ]
null
null
null
import sys sys.path.append('../') import os from pathlib import Path import time import scipy.optimize import numpy as np from py_diff_pd.core.py_diff_pd_core import QuadMesh2d, QuadDeformable, StdRealVector from py_diff_pd.common.common import create_folder, ndarray, print_info, print_error, print_ok from py_diff_pd...
37.670886
126
0.595766
335fd2535ab91a62e23cbcea5b04546edcb28f83
10,573
py
Python
scrutiny/javacard/toolwrappers/jcalgtest.py
NimRo97/jcpeg
4b87f7c02c86d6ffdef2cf5170cc9977eac77727
[ "MIT" ]
2
2021-09-02T13:59:51.000Z
2021-09-04T12:29:19.000Z
scrutiny/javacard/toolwrappers/jcalgtest.py
crocs-muni/scrutiny
96da39d294c2cf375798eeb6335521b29a51643a
[ "MIT" ]
null
null
null
scrutiny/javacard/toolwrappers/jcalgtest.py
crocs-muni/scrutiny
96da39d294c2cf375798eeb6335521b29a51643a
[ "MIT" ]
null
null
null
import os import pathlib from abc import ABC, abstractmethod from typing import List, final from overrides import overrides, EnforceOverrides from scrutiny.config import Paths from scrutiny.interfaces import ToolWrapper from scrutiny.javacard.modules.algperformance import AlgPerformance from scrutiny.javacard.modules...
29.616246
106
0.614963
335fe9f0600689a95202957b2f0998b290689b03
4,443
py
Python
atari/environment.py
danecor/VaST
dabe5cc3a10dbe9c622976218a1f437c11d51012
[ "MIT" ]
13
2018-06-15T19:27:57.000Z
2021-04-16T15:40:18.000Z
atari/environment.py
danecor/VaST
dabe5cc3a10dbe9c622976218a1f437c11d51012
[ "MIT" ]
4
2018-11-30T06:43:48.000Z
2019-09-11T15:04:45.000Z
atari/environment.py
danecor/VaST
dabe5cc3a10dbe9c622976218a1f437c11d51012
[ "MIT" ]
4
2018-12-19T03:18:34.000Z
2021-02-18T20:18:26.000Z
""" Based on https://github.com/vvanirudh/Atari-DeepRL (Author: Nathan Sprague) """ import cv2 import numpy as np import atari_py import atari_py.ale_python_interface as ale_python_interface import logging from skimage import img_as_ubyte class Environment(object): def __init__(self, **kwargs): game = kwargs['ga...
30.22449
84
0.717083
335ff4b7b70b31cca6a8e9592160780f9d9d8045
6,232
py
Python
app/db/models.py
blubits/lakbay
acb242377f528953536cfca3e4920833a4c8bf6c
[ "Apache-2.0" ]
null
null
null
app/db/models.py
blubits/lakbay
acb242377f528953536cfca3e4920833a4c8bf6c
[ "Apache-2.0" ]
null
null
null
app/db/models.py
blubits/lakbay
acb242377f528953536cfca3e4920833a4c8bf6c
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import Boolean from sqlalchemy import Column from sqlalchemy import Float from sqlalchemy import ForeignKey from sqlalchemy import Integer from sqlalchemy import String from sqlalchemy import Time from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship ...
33.326203
78
0.581194
335ffd30f19c81b3d9f0ca1dbcd383080022b13b
713
py
Python
src/epivizFileParser/GWASBigBedPIP.py
epiviz/parser
255dc6409db3f55b6f967df079ada469862cd02c
[ "MIT" ]
4
2018-09-14T19:00:16.000Z
2020-04-08T07:58:34.000Z
src/epivizFileParser/GWASBigBedPIP.py
epiviz/parser
255dc6409db3f55b6f967df079ada469862cd02c
[ "MIT" ]
6
2019-04-27T21:08:49.000Z
2021-12-21T01:03:11.000Z
src/epivizFileParser/GWASBigBedPIP.py
epiviz/epivizFileParser
bba301db40458b6666653c77a446db8778ee07f8
[ "MIT" ]
2
2021-01-11T17:09:24.000Z
2021-01-28T16:17:11.000Z
from .BigBed import BigBed import struct import zlib import math import pandas as pd __author__ = "Jayaram Kancherla" __copyright__ = "jkanche" __license__ = "mit" class GWASBigBedPIP(BigBed): """ Bed file parser Args: file (str): GWASBigBedPIP file location """ magic = "0x8789F2EB" ...
26.407407
138
0.69425
336004b21f6186b424df81ef16de97e4d395362d
9,212
py
Python
analysis_collection/tracing_sim/results_smallworld_R0_NMEAS_100_ONLYSAVETIME_False/simulation.py
benmaier/DigCT
62fc3fddb7600e2a43761e08618b2e3df423569c
[ "MIT" ]
null
null
null
analysis_collection/tracing_sim/results_smallworld_R0_NMEAS_100_ONLYSAVETIME_False/simulation.py
benmaier/DigCT
62fc3fddb7600e2a43761e08618b2e3df423569c
[ "MIT" ]
null
null
null
analysis_collection/tracing_sim/results_smallworld_R0_NMEAS_100_ONLYSAVETIME_False/simulation.py
benmaier/DigCT
62fc3fddb7600e2a43761e08618b2e3df423569c
[ "MIT" ]
1
2021-07-12T13:50:35.000Z
2021-07-12T13:50:35.000Z
import epipack import numpy as np from epipack.stochastic_epi_models import StochasticEpiModel from math import exp from numpy import random import networkx as nx from smallworld import get_smallworld_graph from scipy.stats import expon import numpy as np import networkx as nx def _edge(i,j): if i > j: ret...
38.383333
180
0.461246
33601172c58193e1a392c4199dd91baecb459106
123,638
py
Python
leafmap/leafmap.py
irrelevantRyan/leafmap
20c349b69c057881846a7c174c1970edcba11d81
[ "MIT" ]
null
null
null
leafmap/leafmap.py
irrelevantRyan/leafmap
20c349b69c057881846a7c174c1970edcba11d81
[ "MIT" ]
null
null
null
leafmap/leafmap.py
irrelevantRyan/leafmap
20c349b69c057881846a7c174c1970edcba11d81
[ "MIT" ]
null
null
null
"""Main module.""" import os import ipyleaflet from box import Box from IPython.display import display from .basemaps import xyz_to_leaflet from .common import * from .legends import builtin_legends from .osm import * leafmap_basemaps = Box(xyz_to_leaflet(), frozen_box=True) class Map(ipyleaflet.Map): """The Ma...
39.576825
729
0.572429
3360260580c506b034b83723e001bacab4ffac3a
4,378
py
Python
tests/test_similarity.py
tbsexton/textacy
964614213c7261f91f09c106334269388d45f790
[ "Apache-2.0" ]
1
2021-11-03T19:11:11.000Z
2021-11-03T19:11:11.000Z
tests/test_similarity.py
tbsexton/textacy
964614213c7261f91f09c106334269388d45f790
[ "Apache-2.0" ]
null
null
null
tests/test_similarity.py
tbsexton/textacy
964614213c7261f91f09c106334269388d45f790
[ "Apache-2.0" ]
1
2022-02-20T14:23:03.000Z
2022-02-20T14:23:03.000Z
import pytest from textacy import similarity from textacy import make_spacy_doc @pytest.fixture(scope="module") def text_pairs(): return [ ("She spoke to the assembled journalists.", "He chatted with the gathered press."), ("The cats and dogs are playing.", "It's raining cats and dogs."), ...
34.203125
92
0.624943
336034516143ca18a25d5e29497bef19ea6b1c1c
1,689
py
Python
Leetcode/medium/combination-sum-III.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
6
2021-07-29T03:26:20.000Z
2022-01-28T15:11:45.000Z
Leetcode/medium/combination-sum-III.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
2
2021-09-30T09:47:23.000Z
2022-01-31T03:08:24.000Z
Leetcode/medium/combination-sum-III.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
5
2021-08-10T06:41:11.000Z
2022-01-29T17:50:20.000Z
""" # COMBINATION SUM III Find all valid combinations of k numbers that sum up to n such that the following conditions are true: Only numbers 1 through 9 are used. Each number is used at most once. Return a list of all possible valid combinations. The list must not contain the same combination twice, and the combina...
21.935065
154
0.55003
33604aebcb89caaa4baea11d951abc2f2cc15e6b
784
py
Python
zdevelop/tests/test_test_objects.py
illuscio-dev/gemma-py
c12b2aae8438b69236cf8b1c76ac6dd1912f6207
[ "MIT" ]
1
2020-11-05T04:42:39.000Z
2020-11-05T04:42:39.000Z
zdevelop/tests/test_test_objects.py
illuscio-dev/gemma-py
c12b2aae8438b69236cf8b1c76ac6dd1912f6207
[ "MIT" ]
null
null
null
zdevelop/tests/test_test_objects.py
illuscio-dev/gemma-py
c12b2aae8438b69236cf8b1c76ac6dd1912f6207
[ "MIT" ]
null
null
null
from gemma.test_objects import test_objects, DataSimple, DataTarget, DataStructured def test_make_test_objects(): simple, data_dict, data_list, structured, target = test_objects() assert isinstance(data_dict, dict) assert isinstance(data_list, list) assert isinstance(simple, DataSimple) assert is...
30.153846
83
0.709184
33605a612e0fc2d20acf06b21a5761a3bd3614b0
11,130
py
Python
musicntd/model/current_plot.py
ax-le/MusicNTD
682d67a7b25378200356db5ba9a831e4b05401cb
[ "BSD-3-Clause" ]
null
null
null
musicntd/model/current_plot.py
ax-le/MusicNTD
682d67a7b25378200356db5ba9a831e4b05401cb
[ "BSD-3-Clause" ]
null
null
null
musicntd/model/current_plot.py
ax-le/MusicNTD
682d67a7b25378200356db5ba9a831e4b05401cb
[ "BSD-3-Clause" ]
1
2021-04-07T17:01:54.000Z
2021-04-07T17:01:54.000Z
# -*- coding: utf-8 -*- """ Created on Fri Feb 22 16:29:17 2019 @author: amarmore """ # Defining current plotting functions. import numpy as np import matplotlib.pyplot as plt import matplotlib.cm as cm def plot_me_this_spectrogram(spec, title = "Spectrogram", x_axis = "x_axis", y_axis = "y_axis", invert_y_axis = T...
45.991736
205
0.635939
336080ea0f7abe7a9012df9e1ad6114f3592d547
30,548
py
Python
tests/test_worker.py
PY-GZKY/aiorq
23080b8098438d58ee3c736789452b8a55a7946e
[ "MIT" ]
6
2021-11-16T04:07:48.000Z
2022-03-18T09:15:09.000Z
tests/test_worker.py
PY-GZKY/aiorq
23080b8098438d58ee3c736789452b8a55a7946e
[ "MIT" ]
null
null
null
tests/test_worker.py
PY-GZKY/aiorq
23080b8098438d58ee3c736789452b8a55a7946e
[ "MIT" ]
null
null
null
import asyncio import functools import logging import re import signal import sys from unittest.mock import MagicMock import msgpack import pytest from aioredis import create_redis_pool from aiorq.connections import AioRedis from aiorq.constants import abort_jobs_ss, default_queue_name, health_check_key_suffix, job_k...
36.453461
120
0.696118
336096fab43644fc6b25d4d78cf3b6048d3d2a3a
653
py
Python
scrapfly/frozen_dict.py
scrapfly/python-scrapfly
ee3112971bc28b6a8e7039711f59da90de7025c2
[ "BSD-2-Clause" ]
3
2021-05-18T05:06:23.000Z
2021-12-19T02:57:33.000Z
scrapfly/frozen_dict.py
scrapfly/python-scrapfly
ee3112971bc28b6a8e7039711f59da90de7025c2
[ "BSD-2-Clause" ]
5
2021-01-08T04:12:28.000Z
2021-07-14T07:53:54.000Z
scrapfly/frozen_dict.py
scrapfly/python-scrapfly
ee3112971bc28b6a8e7039711f59da90de7025c2
[ "BSD-2-Clause" ]
1
2021-05-18T05:06:30.000Z
2021-05-18T05:06:30.000Z
class FrozenDict(dict): def __init__(self, *args, **kwargs): self._hash = None super(FrozenDict, self).__init__(*args, **kwargs) def __eq__(self, other): return self._hash == other.__hash def __hash__(self): if self._hash is None: self._hash = hash(tuple(sorted(...
27.208333
69
0.633997
33609756177c77eece1ec7a62792df8b97743b81
5,854
py
Python
sktime/classification/interval_based/_tsf.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
sktime/classification/interval_based/_tsf.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
sktime/classification/interval_based/_tsf.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Time Series Forest (TSF) Classifier. Interval based TSF classifier, extracts basic summary features from random intervals. """ __author__ = ["kkoziara", "luiszugasti", "kanand77"] __all__ = ["TimeSeriesForestClassifier"] import numpy as np from joblib import Parallel, delayed from sklearn....
35.91411
85
0.666382
3360c98ae01eefa396288f3ed3a69ca4ebd7096f
659
py
Python
src/wishlist/migrations/0003_wishlist_slug_unique.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
7
2017-04-14T15:28:29.000Z
2021-09-10T09:45:38.000Z
src/wishlist/migrations/0003_wishlist_slug_unique.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
799
2016-04-28T09:31:50.000Z
2022-03-29T09:05:02.000Z
src/wishlist/migrations/0003_wishlist_slug_unique.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
35
2016-04-28T09:23:53.000Z
2021-05-02T12:36:01.000Z
# Generated by Django 3.0.3 on 2020-05-09 12:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("wishlist", "0002_auto_20200219_2008"), ] operations = [ migrations.AlterModelOptions( name="wish", options={"verbose...
24.407407
89
0.544765
3360e1e97180adc9bb678b356d989d7d6a5f5d98
2,511
py
Python
bin/run_me.py
engjoy/suricate
5e5432b0889ab7c2acadd8619f6fdca866a5ea21
[ "MIT" ]
null
null
null
bin/run_me.py
engjoy/suricate
5e5432b0889ab7c2acadd8619f6fdca866a5ea21
[ "MIT" ]
null
null
null
bin/run_me.py
engjoy/suricate
5e5432b0889ab7c2acadd8619f6fdca866a5ea21
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """ Runs the analytics service in a development environment. """ __author__ = 'tmetsch' import bottle import pymongo import subprocess import sys import ConfigParser from urlparse import urlparse from suricate.ui import ui_app config = ConfigParser.RawConfigParser() config.r...
23.688679
71
0.634409
3361251341956fc29d112e7fe2abf8e005f9302a
2,991
py
Python
office365/runtime/client_query.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
office365/runtime/client_query.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
office365/runtime/client_query.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
from office365.runtime.client_object import ClientObject class ClientQuery(object): """Client query""" def __init__(self, binding_type, parameter_type=None, parameter_name=None, return_type=None): """ Base query :type binding_type: office365.runtime.client_object.ClientObject ...
31.819149
99
0.694417
33614c866d2a582bfb25fa059b81cb39ad0000b3
2,902
py
Python
samples/Windows/measureGetNextFrameRate.py
pixelink-support/PixelinkPythonWrapper
ad7ba24c550825eb12f16e1eaf9c66f35db52a8f
[ "MIT" ]
5
2020-04-21T07:18:44.000Z
2021-12-28T17:33:38.000Z
samples/Windows/measureGetNextFrameRate.py
pixelink-support/PixelinkPythonWrapper
ad7ba24c550825eb12f16e1eaf9c66f35db52a8f
[ "MIT" ]
1
2020-05-19T19:08:25.000Z
2020-05-22T10:24:11.000Z
samples/Windows/measureGetNextFrameRate.py
pixelink-support/PixelinkPythonWrapper
ad7ba24c550825eb12f16e1eaf9c66f35db52a8f
[ "MIT" ]
1
2021-11-16T18:55:54.000Z
2021-11-16T18:55:54.000Z
""" measureGetNextFrameRate.py Sample code to show a very simple frame grab. See the sample application 'getNextFrame' for a more robust frame grab example. This program simply calculates the frame rate of the camera (via frame grabs). """ from pixelinkWrapper import* from ctypes import* import sys impor...
28.732673
117
0.620951
33615b2e6f97c6a376e738b4bd8e3d24c126ae89
1,286
py
Python
src/constants.py
arnupretorius/noisysignalprop_neurips2018
77c4927c6d4745fae77d913b5d8a5220bef31758
[ "MIT" ]
5
2018-10-31T08:55:37.000Z
2020-01-14T08:18:22.000Z
src/constants.py
ElanVB/noisy_signal_prop
3ad81e15f02a92b3a669c9b81c8b2f12f331a1b6
[ "MIT" ]
null
null
null
src/constants.py
ElanVB/noisy_signal_prop
3ad81e15f02a92b3a669c9b81c8b2f12f331a1b6
[ "MIT" ]
null
null
null
# Hardcoded constants used throughout the paper import numpy as np from scipy.stats import hypsecant nq = 100 nw = 41 nb = 41 qmax = 15 qrange = np.linspace(0, qmax, nq) qidx = [26, 53, 80] n_hidden_layers = 20 bias_sigmas = [0] widxs = [0] bidxs = [0] def relu(x): # one of the fastest ways of applying the relu fu...
21.79661
94
0.664075
336163800d89e56fb3485ff6a342e9130edc65d8
24,496
py
Python
kaplot/text/fontfamilies.py
maartenbreddels/kaplot
305026209f8026094d54373e14541f4f039501d5
[ "MIT" ]
null
null
null
kaplot/text/fontfamilies.py
maartenbreddels/kaplot
305026209f8026094d54373e14541f4f039501d5
[ "MIT" ]
null
null
null
kaplot/text/fontfamilies.py
maartenbreddels/kaplot
305026209f8026094d54373e14541f4f039501d5
[ "MIT" ]
null
null
null
['/usr/X11R6/lib/X11/fonts/TTF', '/usr/X11R6/lib/X11/fonts/Type1', '/usr/share/fonts/culmus', '/usr/share/fonts/liberation', '/usr/share/fonts/dejavu', '/usr/share/fonts/default', '/usr/share/fonts/wqy-zenhei', '/usr/share/fonts/stix', '/usr/share/fonts/opensymbol', '/usr/share/fonts/google-crosextra-caladea', '/usr/sh...
298.731707
1,494
0.787149
3361841c138da333628cc5eba8a1694c942ce500
8,560
py
Python
src/python/test/test_dx_completion.py
xquek/dx-toolkit
9410871a54ba827d821d20dbd1c16294ff95230e
[ "Apache-2.0" ]
null
null
null
src/python/test/test_dx_completion.py
xquek/dx-toolkit
9410871a54ba827d821d20dbd1c16294ff95230e
[ "Apache-2.0" ]
null
null
null
src/python/test/test_dx_completion.py
xquek/dx-toolkit
9410871a54ba827d821d20dbd1c16294ff95230e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (C) 2013-2016 DNAnexus, Inc. # # This file is part of dx-toolkit (DNAnexus platform client libraries). # # 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 a...
41.756098
117
0.631192
33619418ca13a29e5d5f6231f9137ed4ad2d3685
3,387
py
Python
A340-SBKP/analysis/aspect.py
paulross/pprune-calc
ebed46e7e029bc7a3067f50ad180a1df236052cf
[ "MIT" ]
1
2020-10-24T15:46:18.000Z
2020-10-24T15:46:18.000Z
A340-SBKP/analysis/aspect.py
paulross/pprune-calc
ebed46e7e029bc7a3067f50ad180a1df236052cf
[ "MIT" ]
null
null
null
A340-SBKP/analysis/aspect.py
paulross/pprune-calc
ebed46e7e029bc7a3067f50ad180a1df236052cf
[ "MIT" ]
null
null
null
import math import typing import numpy as np from scipy.optimize import curve_fit from analysis import video_data from analysis import video_utils def _aspects_curve_fit(data: np.ndarray) -> typing.List[float]: """Returns the polynomial coefficients of the fit to the aspects data.""" # Third order polynomia...
32.567308
112
0.693829
3361bbbaca64c4c7641bdfcc4304699809379f98
213
py
Python
test/integration/test_load.py
donerancl/sedre
ad87ea8db7508ffce0060e4aca3eb176fda9e329
[ "MIT" ]
null
null
null
test/integration/test_load.py
donerancl/sedre
ad87ea8db7508ffce0060e4aca3eb176fda9e329
[ "MIT" ]
1
2020-03-21T00:10:49.000Z
2020-03-21T00:10:49.000Z
test/integration/test_load.py
donerancl/sedre
ad87ea8db7508ffce0060e4aca3eb176fda9e329
[ "MIT" ]
1
2020-03-25T14:34:49.000Z
2020-03-25T14:34:49.000Z
import sedre def ParserLoad(): myp = sedre.Parser(filename='./data/test_load.dat') myp.program = 'psi4' myp.psi4() myp.load() return len(myp.content['list']) def test_answer(): assert ParserLoad() == 252
17.75
52
0.685446
3361cff42408bc474545f05ce7fdabb26616b16d
1,475
py
Python
jesse/indicators/rsmk.py
botzill/jesse
cff9e69446980ae739f5020964c4618638b2014d
[ "MIT" ]
null
null
null
jesse/indicators/rsmk.py
botzill/jesse
cff9e69446980ae739f5020964c4618638b2014d
[ "MIT" ]
null
null
null
jesse/indicators/rsmk.py
botzill/jesse
cff9e69446980ae739f5020964c4618638b2014d
[ "MIT" ]
null
null
null
from collections import namedtuple import numpy as np import talib from jesse.indicators.ma import ma from jesse.helpers import get_candle_source RSMK = namedtuple('RSMK', ['indicator', 'signal']) def rsmk(candles: np.ndarray, candles_compare: np.ndarray, lookback: int = 90, period: int = 3, signal_period: int = 2...
32.065217
120
0.68678
33623dfe1313a49ebd1795a343af01bdb6fd19f5
3,318
py
Python
GIS/grapes1.py
r-martin-/Code_College
e2c8957c05412af188a71266d36b72ab6558440d
[ "MIT" ]
null
null
null
GIS/grapes1.py
r-martin-/Code_College
e2c8957c05412af188a71266d36b72ab6558440d
[ "MIT" ]
null
null
null
GIS/grapes1.py
r-martin-/Code_College
e2c8957c05412af188a71266d36b72ab6558440d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # --------------------------------------------------------------------------- # grapes1.py # Created on: 2014-11-03 17:06:42.00000 # (generated by ArcGIS/ModelBuilder) # Description: # --------------------------------------------------------------------------- # Import arcpy module import ar...
46.083333
488
0.74352
336255ff76b8c0eb6d813c2837c5babb03d75046
9,521
py
Python
airflow/providers/google/cloud/transfers/s3_to_gcs.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
1
2021-03-03T07:00:02.000Z
2021-03-03T07:00:02.000Z
airflow/providers/google/cloud/transfers/s3_to_gcs.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
36
2021-11-26T00:08:49.000Z
2021-11-26T00:09:33.000Z
airflow/providers/google/cloud/transfers/s3_to_gcs.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
3
2020-06-30T02:38:17.000Z
2022-01-19T06:14:08.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...
41.942731
110
0.634912
33625f7c1e368b6bbbd31fa5bea0d81263704d5e
3,124
py
Python
deeppavlov/models/preprocessors/one_hotter.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
1
2019-05-22T08:34:33.000Z
2019-05-22T08:34:33.000Z
deeppavlov/models/preprocessors/one_hotter.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
null
null
null
deeppavlov/models/preprocessors/one_hotter.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
1
2019-03-17T13:47:44.000Z
2019-03-17T13:47:44.000Z
# Copyright 2017 Neural Networks and Deep Learning lab, MIPT # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
38.567901
108
0.664533
3362ae9ee133e65ed96782a9f1022c0c8e28db8a
9,250
py
Python
gaphor/UML/interactions/tests/test_messageconnect.py
Xander982/gaphor
b5c55fa18b79b80d9c14ee0cb0ce8a9963e90f86
[ "Apache-2.0" ]
null
null
null
gaphor/UML/interactions/tests/test_messageconnect.py
Xander982/gaphor
b5c55fa18b79b80d9c14ee0cb0ce8a9963e90f86
[ "Apache-2.0" ]
null
null
null
gaphor/UML/interactions/tests/test_messageconnect.py
Xander982/gaphor
b5c55fa18b79b80d9c14ee0cb0ce8a9963e90f86
[ "Apache-2.0" ]
null
null
null
""" Message connection adapter tests. """ from gaphor import UML from gaphor.diagram.tests.fixtures import allow, connect, disconnect from gaphor.UML.interactions.executionspecification import ExecutionSpecificationItem from gaphor.UML.interactions.lifeline import LifelineItem from gaphor.UML.interactions.message impo...
30.833333
85
0.722811
3362e085b7265d6e579c41722d663190bbeb649c
4,260
py
Python
ibmsecurity/isam/base/network/felb/advanced_tuning/config.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
null
null
null
ibmsecurity/isam/base/network/felb/advanced_tuning/config.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
null
null
null
ibmsecurity/isam/base/network/felb/advanced_tuning/config.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
null
null
null
import ibmsecurity.utilities.tools import logging logger = logging.getLogger(__name__) module_uri = "/isam/felb/configuration/attributes" requires_modules = None requires_version = None def add(isamAppliance, name, value, check_mode=False, force=False): """ Creates attribute """ if force is True or ...
29.583333
117
0.627465
3362fcb0885112f4430a835044cd45842ed6cfb7
1,425
py
Python
main.py
qzhu2017/ML-DOS
c58ebdfc77746175771af0862ed5737c4eaa3eec
[ "MIT" ]
11
2018-11-18T21:57:16.000Z
2021-07-20T12:23:28.000Z
main.py
qzhu2017/ML-DOS
c58ebdfc77746175771af0862ed5737c4eaa3eec
[ "MIT" ]
34
2018-10-23T14:54:48.000Z
2019-03-26T18:07:09.000Z
main.py
qzhu2017/ML-Materials
c58ebdfc77746175771af0862ed5737c4eaa3eec
[ "MIT" ]
3
2018-11-15T06:34:37.000Z
2019-01-04T02:04:25.000Z
from pyxtal_ml.run import run from pkg_resources import resource_filename # Please define your values in here, option 1, and option 2. jsonfile = resource_filename("pyxtal_ml", "datasets/NaGaAu.json") feature = 'bispectrum+element+covariance' feature_scaling = False #'MinMaxScaler' prop = 'formation_energy' N_...
35.625
77
0.661053
336324b4619f761d334e272ff9e9e77f4414d733
58,462
py
Python
campy/graphics/gobjects.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
null
null
null
campy/graphics/gobjects.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
null
null
null
campy/graphics/gobjects.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
null
null
null
"""Provide a hierarchy of graphical shapes based on the ACM Graphics model. This module exports the superclass :class:`GObject`, as well as derived classes: - :class:`GRect` - :class:`GRoundRect` - :class:`G3DRect` - :class:`GOval` - :class:`GArc` - :class:`GLine` - :class:`GImage` - :class:`GLabel` - :cl...
37.620335
138
0.598166
33633e7d770dbf31801b576e1bab61df65fb990a
2,380
py
Python
rental/settings/local.py
dpakach/RentalService
2fe2c899b7f149ed3f0fc475100beaa0bc76619e
[ "MIT" ]
null
null
null
rental/settings/local.py
dpakach/RentalService
2fe2c899b7f149ed3f0fc475100beaa0bc76619e
[ "MIT" ]
1
2018-11-06T03:17:14.000Z
2018-11-06T03:17:14.000Z
rental/settings/local.py
dpakach/RentalService
2fe2c899b7f149ed3f0fc475100beaa0bc76619e
[ "MIT" ]
1
2020-02-04T10:44:11.000Z
2020-02-04T10:44:11.000Z
""" Django settings for rental project. Generated by 'django-admin startproject' using Django 1.11.8. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os ...
27.045455
87
0.684454
33634a51c52181e68be9207bc794a394e6e94e7e
2,529
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/models/creation_data.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/models/creation_data.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/models/creation_data.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
42.864407
83
0.6552
336352afcd8d431e632bdf384ede70b4a9b883c9
2,927
py
Python
cogs/stats.py
Bmbus/DiscordAnalytica
663ebbe83789432804e45929fdea136b957a6237
[ "MIT" ]
1
2019-09-15T14:31:05.000Z
2019-09-15T14:31:05.000Z
cogs/stats.py
Bmbus/DiscordAnalytica
663ebbe83789432804e45929fdea136b957a6237
[ "MIT" ]
null
null
null
cogs/stats.py
Bmbus/DiscordAnalytica
663ebbe83789432804e45929fdea136b957a6237
[ "MIT" ]
null
null
null
from discord.ext import commands from dataminer.bot_data import bot_requests from discord import Embed from datetime import datetime class Stats(commands.Cog): def __init__(self, bot): self.bot = bot @commands.has_permissions(administrator=True) @commands.cooldown(1, 5.0, commands.BucketType.user...
60.979167
154
0.681927
33635a612d248300fc2bdb855adda310d489e7bc
6,092
py
Python
myRadixPortfolio.py
Jazzer9F/RadBot
6735bd89e0e735bbf14b90ea77571a53cdb2869f
[ "MIT" ]
3
2020-12-23T17:49:11.000Z
2021-03-11T10:41:17.000Z
myRadixPortfolio.py
Jazzer9F/RadBot
6735bd89e0e735bbf14b90ea77571a53cdb2869f
[ "MIT" ]
6
2020-12-23T16:36:33.000Z
2021-01-05T17:11:08.000Z
myRadixPortfolio.py
Jazzer9F/RadBot
6735bd89e0e735bbf14b90ea77571a53cdb2869f
[ "MIT" ]
3
2020-12-26T13:36:48.000Z
2021-03-19T10:20:09.000Z
# -*- coding: utf-8 -*- """ RadBot.py Telegram bot tracking some Radix metrics """ import pandas as pd import time from utils import * from constants import * w3 = initWeb3() eXRD_Contract = readContract(w3, './eXRD_token.json', eXRD) vaultContract = readContract(w3, './eXRD_vault.json', eXRD_vault) rewardsContract...
40.885906
190
0.668253
3363ab9ba0b4677df088e0cdb39e41c52b5b0888
935
py
Python
turbulette/apps/auth/exceptions.py
gitter-badger/turbulette
abc61b58033f4f53bbefe5a1e10bf6550d2ce86f
[ "BSD-3-Clause" ]
null
null
null
turbulette/apps/auth/exceptions.py
gitter-badger/turbulette
abc61b58033f4f53bbefe5a1e10bf6550d2ce86f
[ "BSD-3-Clause" ]
null
null
null
turbulette/apps/auth/exceptions.py
gitter-badger/turbulette
abc61b58033f4f53bbefe5a1e10bf6550d2ce86f
[ "BSD-3-Clause" ]
null
null
null
from turbulette.errors import ErrorCode, BaseError class JWTDecodeError(BaseError): error_code = ErrorCode.JWT_INVALID class JWTInvalidSignature(BaseError): error_code = ErrorCode.JWT_INVALID_SINATURE class JWTExpired(BaseError): error_code = ErrorCode.JWT_EXPIRED class JWTNoUsername(BaseError): ...
20.326087
50
0.804278
3363b14274102e1c7af7c9b06373408243e79634
450
py
Python
src/utils/list_utils.py
jjmartinez-taiger/libreCatastro
b40bfa375095411814b99ac839959418a83c3071
[ "MIT" ]
9
2019-11-30T11:14:30.000Z
2022-03-14T09:41:57.000Z
src/utils/list_utils.py
jjmartinez-taiger/libreCatastro
b40bfa375095411814b99ac839959418a83c3071
[ "MIT" ]
1
2021-04-11T17:15:08.000Z
2021-04-11T17:15:08.000Z
src/utils/list_utils.py
jjmartinez-taiger/libreCatastro
b40bfa375095411814b99ac839959418a83c3071
[ "MIT" ]
1
2021-08-07T12:15:43.000Z
2021-08-07T12:15:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- class ListUtils: """ Different functions for make working with lists easier""" def __init__(self): pass @staticmethod def flat(non_flat_list): """ Flattens a multilevel list [[], []...] -> [, , , ] :param non_flat_list: Mul...
25
70
0.584444
3363d09a439ae2248d0b3b20d238a0849bb727a4
858
py
Python
Task1/GetCategoryReviewCount.py
njetty/Yelp-Review-Analysis
62af9f261734cebaa5c414bc3724a495a644c09d
[ "MIT" ]
null
null
null
Task1/GetCategoryReviewCount.py
njetty/Yelp-Review-Analysis
62af9f261734cebaa5c414bc3724a495a644c09d
[ "MIT" ]
null
null
null
Task1/GetCategoryReviewCount.py
njetty/Yelp-Review-Analysis
62af9f261734cebaa5c414bc3724a495a644c09d
[ "MIT" ]
null
null
null
#Author: Pradeep Ravilla from pymongo import MongoClient from collections import defaultdict connection = MongoClient("mongodb://silo.soic.indiana.edu:31786") db = connection.yelp.business categories = defaultdict() businesses = defaultdict() cursor = db.find() index = 0 count = cursor.count() while index != count: ...
23.833333
65
0.749417
3363d342b11a8ed4f464aa4d7ba5648f767a655a
10,772
py
Python
python/hsml/deployment.py
logicalclocks/machine-learning-api
26cc2df6a998d53ed2726d4ee6bc43310e64c124
[ "Apache-2.0" ]
8
2021-09-14T08:40:34.000Z
2022-03-23T23:18:56.000Z
python/hsml/deployment.py
logicalclocks/machine-learning-api
26cc2df6a998d53ed2726d4ee6bc43310e64c124
[ "Apache-2.0" ]
46
2021-11-03T13:17:13.000Z
2022-03-28T09:44:38.000Z
python/hsml/deployment.py
logicalclocks/machine-learning-api
26cc2df6a998d53ed2726d4ee6bc43310e64c124
[ "Apache-2.0" ]
2
2021-09-13T15:27:35.000Z
2021-12-16T21:11:32.000Z
# # Copyright 2022 Logical Clocks AB # # 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 ag...
31.964392
126
0.656238
336406c6d2a730e151f63fa51114e541e869fc75
3,408
py
Python
tencentcloud/nlp/v20190408/errorcodes.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
37
2017-10-12T01:50:42.000Z
2022-02-24T02:44:45.000Z
tencentcloud/nlp/v20190408/errorcodes.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
null
null
null
tencentcloud/nlp/v20190408/errorcodes.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
12
2018-07-31T10:04:56.000Z
2022-02-07T00:08:06.000Z
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
27.483871
87
0.834214
33643b8255fa3dea4d492e8baf533063180af421
582
py
Python
tests/test_mongodb.py
Nico34000/parking_mtp
4574f563ca49259c700969751623f73639018859
[ "Unlicense" ]
2
2021-05-12T14:10:16.000Z
2021-05-16T22:05:41.000Z
tests/test_mongodb.py
Nico34000/parking_mtp
4574f563ca49259c700969751623f73639018859
[ "Unlicense" ]
18
2021-05-11T14:24:05.000Z
2021-06-10T10:42:42.000Z
tests/test_mongodb.py
Nico34000/parking_mtp
4574f563ca49259c700969751623f73639018859
[ "Unlicense" ]
7
2021-05-01T17:50:54.000Z
2021-06-09T12:04:11.000Z
import unittest import pymongo from mock import patch class MyMongo(object): def initialize(self): try : self.client = pymongo.MongoClient("127.0.0.1", 27017) self.conn = self.client["DB_TEST"] except Exception: print("Except in initialize !") return...
26.454545
65
0.628866
3364b27145464711ec5cd2ddd00353d602fd00d5
2,650
py
Python
termine-be/conftest.py
LordRubin/covid19-teststation-termine
91a98ee66a960d19e3370f2788d8f1bd448c84ab
[ "MIT" ]
25
2020-04-06T19:21:15.000Z
2022-03-15T06:39:28.000Z
termine-be/conftest.py
LordRubin/covid19-teststation-termine
91a98ee66a960d19e3370f2788d8f1bd448c84ab
[ "MIT" ]
10
2020-04-21T20:38:55.000Z
2022-02-27T02:36:39.000Z
termine-be/conftest.py
LordRubin/covid19-teststation-termine
91a98ee66a960d19e3370f2788d8f1bd448c84ab
[ "MIT" ]
10
2020-04-08T18:21:45.000Z
2021-12-17T14:49:23.000Z
import logging import sys from base64 import b64encode import hug import pytest import jwt from access_control.access_control import UserRoles from db import model from db.directives import PeeweeContext USER = "user" ADMIN = "admin" INVALID = "invalid" FORMAT = '%(asctime)s - %(levelname)s\t%(name)s: %(message)s' ...
30.813953
118
0.681509
3364c0ba492136e3cf0806e525f9594d856040e1
3,072
py
Python
unittesting/current.py
evandroforks/UnitTesting
df202cd2d4d466a443e31944cf83c3a87c406f06
[ "MIT" ]
1
2018-12-08T21:44:48.000Z
2018-12-08T21:44:48.000Z
unittesting/current.py
evandroforks/UnitTesting
df202cd2d4d466a443e31944cf83c3a87c406f06
[ "MIT" ]
null
null
null
unittesting/current.py
evandroforks/UnitTesting
df202cd2d4d466a443e31944cf83c3a87c406f06
[ "MIT" ]
null
null
null
from fnmatch import fnmatch import os import sublime from .package import UnitTestingCommand from .coverage import UnitTestingCoverageCommand class UnitTestingCurrentPackageCommand(UnitTestingCommand): fallback33 = "unit_testing33_current_package" def run(self, **kwargs): project_name = self.current_...
37.463415
91
0.683594
3364c915bc9d7bcb704b81768345042fa92de6a8
3,393
py
Python
examples/multigpu_advtrain/run_multigpu.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
21
2019-06-07T17:05:30.000Z
2022-02-07T03:25:15.000Z
examples/multigpu_advtrain/run_multigpu.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
1
2021-03-01T15:06:09.000Z
2021-03-01T15:06:09.000Z
examples/multigpu_advtrain/run_multigpu.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
8
2019-06-11T03:06:29.000Z
2022-01-18T04:18:27.000Z
""" This script adversarially trains a model using iterative attacks on multiple GPUs. """ # pylint: disable=missing-docstring from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging from collections import name...
39.917647
77
0.669909
3364f071b51dfc5939279ae001d7884649df4d74
455
py
Python
src/dnaSeq/VAPr/variantannotation/mongo_DB_export.py
AspirinCode/jupyter-genomics
d45526fab3de8fcc3d9fef005d4e39368ff3dfdc
[ "MIT" ]
2
2019-01-04T08:17:27.000Z
2021-04-10T02:59:35.000Z
src/dnaSeq/VAPr/variantannotation/mongo_DB_export.py
AspirinCode/jupyter-genomics
d45526fab3de8fcc3d9fef005d4e39368ff3dfdc
[ "MIT" ]
null
null
null
src/dnaSeq/VAPr/variantannotation/mongo_DB_export.py
AspirinCode/jupyter-genomics
d45526fab3de8fcc3d9fef005d4e39368ff3dfdc
[ "MIT" ]
2
2021-09-10T02:57:51.000Z
2021-09-21T00:16:56.000Z
from pymongo import MongoClient def export(list_docs, collection_name, db_name): """ Export data do a MongoDB server :param list_docs: list of dictionaries containing variant information :param collection_name: name of collection :param db_name: name of database :return: null """ clien...
30.333333
73
0.723077
3364f62ba218467115d65a0d5b6afca4b8569db9
18,322
py
Python
tests/integration_test.py
davidt99/spotipy
a2dd379bda5daa442955b43f688357fdbc3fa94c
[ "MIT" ]
1
2019-10-06T16:37:35.000Z
2019-10-06T16:37:35.000Z
tests/integration_test.py
davidt99/spotipy
a2dd379bda5daa442955b43f688357fdbc3fa94c
[ "MIT" ]
null
null
null
tests/integration_test.py
davidt99/spotipy
a2dd379bda5daa442955b43f688357fdbc3fa94c
[ "MIT" ]
null
null
null
import unittest from http import HTTPStatus import spotipy from spotipy import auth from spotipy import exceptions USER_ID = "thetufik" class BaseSpec(unittest.TestCase): @classmethod def setUpClass(cls) -> None: cls.auth_provider = auth.AuthorizationCode.load(".cache") def setUp(self) -> None:...
30.036066
112
0.640487
3364f6fea59c3f267e09b05cda62f4518400ee99
19,536
py
Python
tests/test_check.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
tests/test_check.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
tests/test_check.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
# pylint:disable=line-too-long """ The tool to check the availability or syntax of domains, IPv4, IPv6 or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ ████...
30.055385
88
0.519912
3364f8de310bd91ae396c721b51c457f8aeb9380
71,542
py
Python
roles/lib_openshift/library/oc_adm_policy_user.py
dulek/openshift-ansible
2d0501b63ff07b177b3fb5b1c6663ed369656240
[ "Apache-2.0" ]
null
null
null
roles/lib_openshift/library/oc_adm_policy_user.py
dulek/openshift-ansible
2d0501b63ff07b177b3fb5b1c6663ed369656240
[ "Apache-2.0" ]
null
null
null
roles/lib_openshift/library/oc_adm_policy_user.py
dulek/openshift-ansible
2d0501b63ff07b177b3fb5b1c6663ed369656240
[ "Apache-2.0" ]
1
2020-12-02T00:39:02.000Z
2020-12-02T00:39:02.000Z
#!/usr/bin/env python # pylint: disable=missing-docstring # flake8: noqa: T001 # ___ ___ _ _ ___ ___ _ _____ ___ ___ # / __| __| \| | __| _ \ /_\_ _| __| \ # | (_ | _|| .` | _|| / / _ \| | | _|| |) | # \___|___|_|\_|___|_|_\/_/_\_\_|_|___|___/_ _____ # | \ / _ \ | \| |/ _ \_ _| | __| \_ ...
32.938306
118
0.556694
3365317a7158d4a5c6d702de229c6be4599a3e9d
3,107
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/_anything_client.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/_anything_client.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/_anything_client.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
36.988095
127
0.647892
3365b0f25fb10fe6cafb74a41c271c42c3122d4c
47,917
py
Python
nnvm/tests/python/frontend/onnx/test_forward.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
48
2020-07-29T18:09:23.000Z
2021-10-09T01:53:33.000Z
nnvm/tests/python/frontend/onnx/test_forward.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
9
2021-04-02T02:28:07.000Z
2022-03-26T18:23:59.000Z
nnvm/tests/python/frontend/onnx/test_forward.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.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...
43.560909
115
0.539788
3365b7184accabd98e893442862493abc70df81c
338
py
Python
tests/test_refill_agent.py
kosmitive/burro
cc6662bef8693a1c160e80d9482371620deb5304
[ "MIT" ]
5
2020-06-25T23:00:26.000Z
2020-08-28T02:51:28.000Z
tests/test_refill_agent.py
kosmitive/burrolib
2b1d690ec9c9371f5b455dd98439dce51d270909
[ "MIT" ]
5
2020-11-09T11:43:42.000Z
2021-01-09T13:15:09.000Z
tests/test_refill_agent.py
kosmitive/burrolib
2b1d690ec9c9371f5b455dd98439dce51d270909
[ "MIT" ]
null
null
null
from burrolib.agents.refill_agent import RefillAgent from burrolib.games.beer_game import BeerGame from burrolib.run import run def test_run_refill_agent(): n_players = 3 game = BeerGame(n_players, 5.0) agent_factory = lambda i: RefillAgent(3, 8) run(game, agent_factory, n_players=n_players, n_steps=1...
30.727273
76
0.769231
3365bd18348025f10b63f95a94e98238a28991a6
1,007
py
Python
wsgihandler.py
trosa/listool
f175c6e30bcc788a381a92c3a8b818a1f1a88de6
[ "BSD-3-Clause" ]
1
2017-08-11T20:37:21.000Z
2017-08-11T20:37:21.000Z
wsgihandler.py
trosa/listool
f175c6e30bcc788a381a92c3a8b818a1f1a88de6
[ "BSD-3-Clause" ]
null
null
null
wsgihandler.py
trosa/listool
f175c6e30bcc788a381a92c3a8b818a1f1a88de6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This file is part of the web2py Web Framework Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu> License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) This is a WSGI handler for Apache Requires apache+mod_wsgi. In httpd.conf put something like: LoadMo...
23.418605
69
0.688183
3365cadf0b9c4690f368c61419a4aa87b6aabd2f
28,113
py
Python
python_modules/dagster/dagster/core/definitions/graph.py
jacob-consulting/dagster
da3ee30cfb50c7e7c8ae67dd1c3f9c8170770e28
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/graph.py
jacob-consulting/dagster
da3ee30cfb50c7e7c8ae67dd1c3f9c8170770e28
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/graph.py
jacob-consulting/dagster
da3ee30cfb50c7e7c8ae67dd1c3f9c8170770e28
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict from typing import TYPE_CHECKING, Any, Dict, Iterable, Iterator, List, Optional, Set, Tuple, Union from dagster import check from dagster.config import Field, Shape from dagster.config.config_type import ConfigType from dagster.core.definitions.config import ConfigMapping from dagst...
40.45036
131
0.626934
3365dbf0730a0a0b2ff0a4676b34e8ba4f38d850
1,017
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_featherwing/alphanum_featherwing.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_featherwing/alphanum_featherwing.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_featherwing/alphanum_featherwing.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2019 Melissa LeBlanc-Williams for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_featherwing.alphanum_featherwing` ==================================================== Helper for using the `14-Segment AlphaNumeric FeatherWing <https://www.adafruit.com/product/3139>`_. * ...
29.911765
100
0.702065
33660c4f0c29b79ac010eb7886f4f52a371711a2
6,919
py
Python
tests/integration/database/test_influxdb.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
77
2019-04-08T12:55:29.000Z
2022-03-29T14:40:11.000Z
tests/integration/database/test_influxdb.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
55
2019-03-11T14:37:41.000Z
2022-02-02T08:19:43.000Z
tests/integration/database/test_influxdb.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
20
2019-03-11T16:10:53.000Z
2022-03-21T16:09:37.000Z
# Copyright (c) 2021, INRIA # Copyright (c) 2021, University of Lille # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright notice, thi...
34.768844
114
0.721492
336645bd993ff743cbe20bb5cae5cd278db57ce7
1,489
py
Python
python/paddle/v2/framework/tests/test_rowwise_add_op.py
AI-books/Paddle
5b5f4f514047975ac09ec42b31e46dabf235e7dd
[ "Apache-2.0" ]
null
null
null
python/paddle/v2/framework/tests/test_rowwise_add_op.py
AI-books/Paddle
5b5f4f514047975ac09ec42b31e46dabf235e7dd
[ "Apache-2.0" ]
null
null
null
python/paddle/v2/framework/tests/test_rowwise_add_op.py
AI-books/Paddle
5b5f4f514047975ac09ec42b31e46dabf235e7dd
[ "Apache-2.0" ]
1
2020-06-04T04:27:15.000Z
2020-06-04T04:27:15.000Z
import unittest import numpy as np from op_test import OpTest class TestRowwiseAddOp(OpTest): def setUp(self): self.op_type = "rowwise_add" self.inputs = { 'X': np.random.uniform(0.1, 1, [5, 10]).astype("float32"), 'b': np.random.uniform(0.1, 1, [10]).astype("float32") ...
28.634615
75
0.589657
33666fdf8603cf86395822c9235359ff50a8c9f1
388
py
Python
terrascript/resource/newrelic.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/newrelic.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/newrelic.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/newrelic.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:22:33 UTC) # # For imports without namespace, e.g. # # >>> import terrascript.resource.newrelic # # instead of # # >>> import terrascript.resource.newrelic.newrelic # # This is only available for 'official' and 'partne...
25.866667
73
0.75
3366830f9e7bbac67c15045ef54ab73a784cbd72
8,294
py
Python
sporco/admm/ppp.py
vishalbelsare/sporco
afc3dae3ab81d84a23e8487812670ecb7457e869
[ "BSD-3-Clause" ]
217
2016-06-13T16:41:26.000Z
2022-03-22T06:31:05.000Z
sporco/admm/ppp.py
vishalbelsare/sporco
afc3dae3ab81d84a23e8487812670ecb7457e869
[ "BSD-3-Clause" ]
21
2016-06-13T23:28:35.000Z
2022-02-17T23:20:01.000Z
sporco/admm/ppp.py
vishalbelsare/sporco
afc3dae3ab81d84a23e8487812670ecb7457e869
[ "BSD-3-Clause" ]
47
2016-12-14T13:08:33.000Z
2021-12-12T01:59:49.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2019-2020 by Brendt Wohlberg <brendt@ieee.org> # Ulugbek Kamilov <kamilov@wustl.edu> # All rights reserved. BSD 3-clause License. # This file is part of the SPORCO package. Details of the copyright # and user license can be found in the 'LICENSE.txt' fi...
27.646667
76
0.601399
3366c2cea5533bea11dfa6e6a310a97154229fa5
7,709
py
Python
scripts/tool_shed/check_s3_for_empty_tool_dependency_installation_paths.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
scripts/tool_shed/check_s3_for_empty_tool_dependency_installation_paths.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
scripts/tool_shed/check_s3_for_empty_tool_dependency_installation_paths.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
import argparse import os import sys sys.path.insert(1, os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, 'lib')) import boto from galaxy.util import asbool from tool_shed.util.basic_util import INSTALLATION_LOG class BucketList(object): def __init__(self, amazon_id, amazon_secret, bucket): ...
50.058442
127
0.627189