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
d524fe81f19604227c8f60b3c483ba6eaa05dc34
26,780
py
Python
python/sdist/amici/petab_import.py
kristianmeyerr/AMICI
15f14c24b781daf5ceb3606d79edbbf57155a043
[ "CC0-1.0" ]
44
2020-09-17T07:12:07.000Z
2022-02-23T21:25:27.000Z
python/sdist/amici/petab_import.py
kristianmeyerr/AMICI
15f14c24b781daf5ceb3606d79edbbf57155a043
[ "CC0-1.0" ]
589
2020-08-07T21:56:42.000Z
2022-03-31T17:32:27.000Z
python/sdist/amici/petab_import.py
kristianmeyerr/AMICI
15f14c24b781daf5ceb3606d79edbbf57155a043
[ "CC0-1.0" ]
10
2020-09-02T09:32:43.000Z
2022-03-23T12:43:45.000Z
""" PEtab Import ------------ Import a model in the :mod:`petab` (https://github.com/PEtab-dev/PEtab) format into AMICI. """ import argparse import importlib import logging import math import os import re import shutil import tempfile from _collections import OrderedDict from itertools import chain from typing import ...
35.994624
79
0.653398
d524ff599e91419d7c75350914bf86d8359cfb1e
2,430
py
Python
tests/measure_tests/numerical_data_tests/manhattan_distance_test.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
23
2015-01-21T01:39:11.000Z
2019-08-27T09:43:39.000Z
tests/measure_tests/numerical_data_tests/manhattan_distance_test.py
cenkbircanoglu/similarityPy
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
1
2021-07-24T19:55:47.000Z
2021-07-24T19:55:47.000Z
tests/measure_tests/numerical_data_tests/manhattan_distance_test.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
6
2015-03-23T16:58:18.000Z
2019-03-12T06:31:56.000Z
# coding=utf-8 from unittest import TestCase from similarityPy.measure.numerical_data.manhattan_distance import ManhattanDistance from tests import test_logger __author__ = 'cenk' class ManhattanDistanceTest(TestCase): def test_algorithm(self): test_logger.debug("ManhattanDistanceTest - test_algorithm ...
37.384615
95
0.644033
d5254ee497e6cac5dbf5fda2458201f362a26961
15,710
py
Python
gaia_project/automa.py
yogurt-company/gaia_ai
1885059e99a96f45e6cc082b87c189829c4eaed9
[ "MIT" ]
null
null
null
gaia_project/automa.py
yogurt-company/gaia_ai
1885059e99a96f45e6cc082b87c189829c4eaed9
[ "MIT" ]
null
null
null
gaia_project/automa.py
yogurt-company/gaia_ai
1885059e99a96f45e6cc082b87c189829c4eaed9
[ "MIT" ]
null
null
null
from traits.api import (HasPrivateTraits, List, Instance, Enum, Int, Bool, Range, ) from .automa_card import AUTOMA_CARDS, FACTION_CARDS, AutomaCard from .constants import TECH_ORDER, POWER_ACTIONS from .move_action import AutomaAction, EventDescription import numpy as n...
36.705607
80
0.662126
d5257fb7f0dcf135e54ecbd00ef59a8be8352055
1,807
py
Python
cep_price_console/unified_upload/step.py
zanebclark/cep_price_console
2f0e0a487a02a1eeceab9bc326d4cef153bd6781
[ "MIT" ]
null
null
null
cep_price_console/unified_upload/step.py
zanebclark/cep_price_console
2f0e0a487a02a1eeceab9bc326d4cef153bd6781
[ "MIT" ]
5
2021-03-31T19:27:48.000Z
2022-01-13T01:57:46.000Z
cep_price_console/unified_upload/step.py
zanebclark/cep_price_console
2f0e0a487a02a1eeceab9bc326d4cef153bd6781
[ "MIT" ]
null
null
null
from cep_price_console.utils.log_utils import CustomAdapter, debug from cep_price_console.utils.gui_utils import center_window import tkinter as tk import tkinter.ttk as ttk import logging class Step(ttk.Frame): logger = CustomAdapter(logging.getLogger(str(__name__)), None) step_dict = {} @debug(lvl=logg...
31.155172
66
0.641395
d525818b385c1a7ff5ce7a127891cd43d015f2cb
67,335
py
Python
google/appengine/ext/mapreduce/input_readers.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/ext/mapreduce/input_readers.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/ext/mapreduce/input_readers.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # 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 o...
32.450602
80
0.678652
d52593bd61a0a504124e806704a6ec7dcbd58127
8,415
py
Python
chrome/test/functional/instant.py
leiferikb/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-11-15T15:17:43.000Z
2021-11-15T15:17:43.000Z
chrome/test/functional/instant.py
houseoflifeproperty/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/test/functional/instant.py
houseoflifeproperty/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:24:02.000Z
2020-11-04T07:24:02.000Z
#!/usr/bin/env python # Copyright 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. import cgi import os import pyauto_functional # Must be imported before pyauto import pyauto class InstantSettingsTest(pyauto.PyUITe...
39.693396
79
0.694593
d525c8eb0af6d23596f7cadd578913551258bed5
16,111
py
Python
python/ray/serve/controller.py
krfricke/ray
ed0e2e4fd7377f2c99e32881aa425ff0947bf759
[ "Apache-2.0" ]
null
null
null
python/ray/serve/controller.py
krfricke/ray
ed0e2e4fd7377f2c99e32881aa425ff0947bf759
[ "Apache-2.0" ]
77
2021-01-14T09:40:08.000Z
2022-03-23T10:39:56.000Z
python/ray/serve/controller.py
krfricke/ray
ed0e2e4fd7377f2c99e32881aa425ff0947bf759
[ "Apache-2.0" ]
null
null
null
import asyncio import json import time from collections import defaultdict import os from typing import Dict, List, Optional, Tuple, Any from ray.serve.autoscaling_policy import BasicAutoscalingPolicy from copy import copy import ray from ray.actor import ActorHandle from ray.serve.async_goal_manager import AsyncGoalM...
42.621693
79
0.638198
d525cda1e5f25a5c66f8f5f04bd92f4aeec76dde
1,259
py
Python
qiskit/qasm/_node/_magic.py
emmabostian/qiskit-sdk-py
2feba1cba156ba85fc840630c62a793099f208d0
[ "Apache-2.0" ]
2
2020-11-17T18:49:44.000Z
2021-02-16T11:01:41.000Z
qiskit/qasm/_node/_magic.py
emmabostian/qiskit-sdk-py
2feba1cba156ba85fc840630c62a793099f208d0
[ "Apache-2.0" ]
null
null
null
qiskit/qasm/_node/_magic.py
emmabostian/qiskit-sdk-py
2feba1cba156ba85fc840630c62a793099f208d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2017 IBM RESEARCH. 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 # # U...
34.027027
80
0.637014
d525d91039c906875766b860511f3980a5514bcf
437
py
Python
testing_ideas/gdrive_rw_scripting/try_gdrive.py
hschilling/data-collection-and-prep
b70ab54fd887592bad05d5748f492fc2f9ef0f6f
[ "Unlicense" ]
null
null
null
testing_ideas/gdrive_rw_scripting/try_gdrive.py
hschilling/data-collection-and-prep
b70ab54fd887592bad05d5748f492fc2f9ef0f6f
[ "Unlicense" ]
41
2021-01-01T14:01:30.000Z
2021-01-27T20:17:21.000Z
testing_ideas/gdrive_rw_scripting/try_gdrive.py
hschilling/data-collection-and-prep
b70ab54fd887592bad05d5748f492fc2f9ef0f6f
[ "Unlicense" ]
5
2021-02-08T14:19:35.000Z
2021-10-19T12:10:55.000Z
#Creating PyDrive instance to load in data from PeTaL shared drive, follow the steps to authenticate from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive from google.colab import auth from oauth2client.client import GoogleCredentials # Authenticate and create the PyDrive client. auth.authenticate_u...
43.7
100
0.839817
d525f6768d586efa8002613a60b67787b856fc4a
2,999
py
Python
physicslib/dimension.py
NamorNiradnug/PyPhysics
e20dce266724c5bcfd2d83c978e2683360b69c22
[ "MIT" ]
null
null
null
physicslib/dimension.py
NamorNiradnug/PyPhysics
e20dce266724c5bcfd2d83c978e2683360b69c22
[ "MIT" ]
null
null
null
physicslib/dimension.py
NamorNiradnug/PyPhysics
e20dce266724c5bcfd2d83c978e2683360b69c22
[ "MIT" ]
null
null
null
"""Module with Dimension class and dimension constants.""" from typing import Final from .formating import superscripted class Dimension: """Physics dimension.""" BASE_DIMENSIONS_NUMBER = 7 def __init__( self, length: int = 0, mass: int = 0, time: int = 0, amper...
30.292929
101
0.635212
d525fbfe5833ff2b0e624ee5f529aa3eba7443a8
2,222
py
Python
src/utils.py
muziyongshixin/pytorch_SSRP
e54b3098927ba2ff16bdc8f64f3a2bf46d1f72c5
[ "MIT" ]
1
2022-01-11T06:29:01.000Z
2022-01-11T06:29:01.000Z
src/utils.py
muziyongshixin/pytorch_SSRP
e54b3098927ba2ff16bdc8f64f3a2bf46d1f72c5
[ "MIT" ]
null
null
null
src/utils.py
muziyongshixin/pytorch_SSRP
e54b3098927ba2ff16bdc8f64f3a2bf46d1f72c5
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyleft 2019 Project LXRT import sys import csv import base64 import time import numpy as np from tqdm import tqdm csv.field_size_limit(sys.maxsize) FIELDNAMES = ["img_id", "img_h", "img_w", "objects_id", "objects_conf", "attrs_id", "attrs_conf", "num_boxes", "boxes", "fea tures"] de...
34.71875
90
0.561656
d52642b8d27ae34a04dc1768378193d553d39e63
2,426
py
Python
yangvalidator/v2/xymParser.py
YangCatalog/bottle-yang-extractor-validator
73515b77d9f85751eee89fc9cd438b1961912587
[ "BSD-2-Clause" ]
4
2019-06-15T03:11:41.000Z
2021-06-29T05:34:59.000Z
yangvalidator/v2/xymParser.py
YangCatalog/bottle-yang-extractor-validator
73515b77d9f85751eee89fc9cd438b1961912587
[ "BSD-2-Clause" ]
39
2019-07-08T06:58:26.000Z
2021-10-06T11:39:25.000Z
yangvalidator/v2/xymParser.py
YangCatalog/bottle-yang-extractor-validator
73515b77d9f85751eee89fc9cd438b1961912587
[ "BSD-2-Clause" ]
7
2019-09-18T15:08:26.000Z
2021-12-12T13:56:05.000Z
# Copyright The IETF Trust 2021, 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 o...
40.433333
116
0.670239
d526639e24fa3a919cfc0d960b2d563bd2c1dd4d
6,098
py
Python
scyllaso/scylla.py
bhalevy/scylla-stress-orchestrator
89fb3f55a48af69bf0ea6d694b97fd4185503100
[ "Apache-2.0" ]
null
null
null
scyllaso/scylla.py
bhalevy/scylla-stress-orchestrator
89fb3f55a48af69bf0ea6d694b97fd4185503100
[ "Apache-2.0" ]
null
null
null
scyllaso/scylla.py
bhalevy/scylla-stress-orchestrator
89fb3f55a48af69bf0ea6d694b97fd4185503100
[ "Apache-2.0" ]
null
null
null
from time import sleep from scyllaso.ssh import PSSH, SSH from scyllaso.util import log, run_parallel, log_important, log_machine from scyllaso.cql import wait_for_cql_start def clear_cluster(cluster_public_ips, cluster_user, ssh_options, duration_seconds=90): log_important("Shutting down cluster and removing all...
42.643357
104
0.690062
d5266eb934a816b4ae84d5e1b2b5b8ed0b2d841d
12,553
py
Python
devel/lib/python2.7/dist-packages/kinova_msgs/msg/_ArmPoseActionGoal.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
devel/lib/python2.7/dist-packages/kinova_msgs/msg/_ArmPoseActionGoal.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
devel/lib/python2.7/dist-packages/kinova_msgs/msg/_ArmPoseActionGoal.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from kinova_msgs/ArmPoseActionGoal.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import geometry_msgs.msg import kinova_msgs.msg import genpy import actionlib_msgs.msg i...
37.029499
271
0.631005
d52678130cc1148bc29cd985fdc15cccfcebe7ef
5,742
py
Python
troposphere/elasticache.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
1
2021-01-11T22:01:37.000Z
2021-01-11T22:01:37.000Z
troposphere/elasticache.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
null
null
null
troposphere/elasticache.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
1
2019-08-06T13:39:57.000Z
2019-08-06T13:39:57.000Z
# Copyright (c) 2013, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. import re from . import AWSObject, AWSProperty, Tags from .validators import boolean, integer, network_port def validate_node_group_id(node_group_id): if re.match(r'\d{1,4}', node_group_id): ret...
36.341772
79
0.625566
d526838165183f725aebc867a94bbde48d320cd4
920
py
Python
ppobyter/events/elite4.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
ppobyter/events/elite4.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
ppobyter/events/elite4.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
from .clanevent import ClanEvent class Elite4(ClanEvent): """ This is an event that happens when any player defeats an elite 4. """ def __init__(self, player: str, region: str): """ calls the init of the superclass and sets the region that the player beat. :param player: the pl...
30.666667
82
0.615217
d5268e9d672ba4f45ec1d5fdedbf17f7b783571e
8,170
py
Python
admin_tests/nodes/test_views.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
1
2015-10-02T18:35:53.000Z
2015-10-02T18:35:53.000Z
admin_tests/nodes/test_views.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
4
2016-05-13T14:24:16.000Z
2017-03-30T15:28:31.000Z
admin_tests/nodes/test_views.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
null
null
null
import mock from nose import tools as nt from django.test import RequestFactory from django.core.urlresolvers import reverse from django.core.exceptions import PermissionDenied from django.contrib.auth.models import Permission from tests.base import AdminTestCase from tests.factories import AuthUserFactory, ProjectFac...
38.356808
108
0.661567
d52697192917958e7dff9ba7058ebd3fd0a19cde
440
py
Python
salt/returners/syslog_return.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2015-10-06T22:25:22.000Z
2015-10-06T22:25:22.000Z
salt/returners/syslog_return.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
salt/returners/syslog_return.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
''' Return data to the host operating system's syslog facility Required python modules: syslog, json The syslog returner simply reuses the operating system's syslog facility to log return data ''' # Import python libs import syslog import json def __virtual__(): return 'syslog' def returner(ret): ''' ...
18.333333
78
0.718182
d5269c5a9378d09dcd2ccba5907aa0de3e05eb65
27,018
py
Python
frontend/explain.py
zengljnwpu/yaspc
5e85efb5fb8bee02471814b10e950dfb5b04c5d5
[ "MIT" ]
null
null
null
frontend/explain.py
zengljnwpu/yaspc
5e85efb5fb8bee02471814b10e950dfb5b04c5d5
[ "MIT" ]
null
null
null
frontend/explain.py
zengljnwpu/yaspc
5e85efb5fb8bee02471814b10e950dfb5b04c5d5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, with_statement import json from frontend.ast import * #@UnusedWildImport from frontend.exchange import * #@UnusedWildImport from frontend.compiler import * #@UnusedWildImport from frontend.typesys import * #@UnusedWildImport from frontend...
37.369295
102
0.615294
d526ac90025aab4ad8db6da1d0334c4c5da15822
34,623
py
Python
backend/config_app/config_orgues/config_app_data_endpoints.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
1
2019-12-17T22:31:00.000Z
2019-12-17T22:31:00.000Z
backend/config_app/config_orgues/config_app_data_endpoints.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
10
2019-05-28T19:57:28.000Z
2021-06-01T23:46:00.000Z
backend/config_app/config_orgues/config_app_data_endpoints.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from . import version, uuid_models default_data_endpoints_config = [ ### - - - - - - - - - - - - - - - ### ### CONFIG TIERS LIEUX ### - - - - - - - - - - - - - - - ### ### USER MANAGEMENT ### - - - - - - - - - - - - - - - ### ### AUTH ROOT URLS { "field" ...
61.063492
330
0.482338
d526d1b4a4a31970e6dd991a32caa40ed8286aef
4,128
py
Python
nova/virt/ironic/patcher.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/virt/ironic/patcher.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/virt/ironic/patcher.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# coding=utf-8 # # Copyright 2014 Hewlett-Packard Development Company, L.P. # Copyright 2014 Red Hat, 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 # # ...
37.87156
79
0.601017
d526e255a0d4417a1406f223c5ccfa696bd68b92
7,725
py
Python
leo/plugins/leo_to_rtf.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/leo_to_rtf.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/leo_to_rtf.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
#@+leo-ver=5-thin #@+node:danr7.20060902083957: * @file leo_to_rtf.py #@+<< docstring >> #@+node:danr7.20060902085340: ** << docstring >> (leo_to_rtf.py) r''' Outputs a Leo outline as a numbered list to an RTF file. The RTF file can be loaded into Microsoft Word and formatted as a proper outline. This plug-in loads in...
49.203822
265
0.657864
d526e3a7c2a927f1c4a87dadf9cf15f4324f0939
737
py
Python
setup.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
setup.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
setup.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
import setuptools pkg_name = "spikeforest2" # NOTE: you should install this project in development mode # > python setup.py develop setuptools.setup( name=pkg_name, version="0.2.0", author="Jeremy Magland", author_email="jmagland@flatironinstitute.org", description="Spike sorting validation and c...
27.296296
65
0.672999
d527150621f7d81aef362f5616287fc05a56f477
1,649
py
Python
chrome/common/extensions/docs/server2/known_issues_data_source.py
leiferikb/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2018-03-10T13:08:49.000Z
2018-03-10T13:08:49.000Z
chrome/common/extensions/docs/server2/known_issues_data_source.py
houseoflifeproperty/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/common/extensions/docs/server2/known_issues_data_source.py
houseoflifeproperty/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:24:02.000Z
2020-11-04T07:24:02.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. import csv import logging import operator from StringIO import StringIO import object_store from url_constants import OPEN_ISSUES_CSV_URL, CLOSED_ISSUES...
32.98
79
0.707095
d527281e0a68bf9f367349b21df24b2e509f56b0
2,386
py
Python
test2/test_bug1842.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
null
null
null
test2/test_bug1842.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
null
null
null
test2/test_bug1842.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
null
null
null
# ==================================================================== # 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 re...
35.088235
78
0.64166
d5274b5a2d1e7721f0f9c59a8887b6dbcf76f979
3,314
py
Python
PedSimulation/gui/drawer/drawer_register.py
HDL951236874/PedSimulation
153882289477c93306c38f9e3a41f9cfeb53f261
[ "Apache-2.0" ]
1
2018-08-15T17:42:58.000Z
2018-08-15T17:42:58.000Z
PedSimulation/gui/drawer/drawer_register.py
HDL951236874/PedSimulation
153882289477c93306c38f9e3a41f9cfeb53f261
[ "Apache-2.0" ]
null
null
null
PedSimulation/gui/drawer/drawer_register.py
HDL951236874/PedSimulation
153882289477c93306c38f9e3a41f9cfeb53f261
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from PedSimulation.shape2d import * from PedSimulation.scene import * from PedSimulation.entity import * from PedSimulation.gui.drawer.shape_drawer import * from PedSimulation.gui.drawer.scene_drawer import * from PedSimulation.gui.drawer.entity_drawer import * # TODO write docs ...
31.264151
119
0.664152
d52765c685607e28f8c3e9341007e855a1d96d55
780
py
Python
src/pybass3/datatypes.py
devdave/PyBASS3
d8fbb665f3956d35ecfef57ef5e21263678e1739
[ "MIT" ]
2
2022-01-10T12:05:23.000Z
2022-01-19T18:39:51.000Z
src/pybass3/datatypes.py
devdave/pybass3
d8fbb665f3956d35ecfef57ef5e21263678e1739
[ "MIT" ]
null
null
null
src/pybass3/datatypes.py
devdave/pybass3
d8fbb665f3956d35ecfef57ef5e21263678e1739
[ "MIT" ]
null
null
null
import ctypes QWORD = ctypes.c_int64 def LOBYTE(a): return (ctypes.c_byte)(a) def HIBYTE(a): return (ctypes.c_byte)((a)>>8) def LOWORD(a): return (ctypes.c_ushort)(a) def HIWORD(a): return (ctypes.c_ushort)((a)>>16) def MAKEWORD(a,b): return (ctypes.c_ushort)(((a)&0xff)|((b)<<8)) def MAKELONG(a,b): return (ctypes.c_ul...
37.142857
66
0.724359
d5277b1dc2359b6154550ec40a3ac543c2176b9b
2,898
py
Python
util_convert_tflite_quant.py
WesleyCh3n/few-shot-fine-grained
131d4e0f0414259a79513036bd5d28b171a546c4
[ "BSD-3-Clause" ]
2
2021-09-02T07:50:01.000Z
2021-09-02T08:24:31.000Z
util_convert_tflite_quant.py
WesleyCh3n/few-shot-fine-grained
131d4e0f0414259a79513036bd5d28b171a546c4
[ "BSD-3-Clause" ]
null
null
null
util_convert_tflite_quant.py
WesleyCh3n/few-shot-fine-grained
131d4e0f0414259a79513036bd5d28b171a546c4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' #supress tensorflow info except error gpuNum = 0 import argparse import tensorflow as tf gpus = tf.config.experimental.list_physical_devices('GPU') if gpus: try: tf.config.experimental.set_visible_devices(gpus[gpuNum]...
37.636364
107
0.673568
d5278624172aa6b034d48065a876d75d62491277
4,444
py
Python
test/test_registry_api.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
test/test_registry_api.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
test/test_registry_api.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
1
2020-05-15T04:20:48.000Z
2020-05-15T04:20:48.000Z
# coding: utf-8 """ Container Security APIs All features of the Container Security are available through REST APIs.<br/>Access support information at www.qualys.com/support/<br/><br/><b>Permissions:</b><br/>User must have the Container module enabled<br/>User must have API ACCESS permission # noqa: E501 ...
27.775
265
0.672367
d527ace3c32527707aa4abff68754301d5eb6862
2,098
py
Python
client/postgre.py
jupadhya1/Odometry_Signal_Anomaly
37a1e549b640fcec7b21ba06e55f8744dbe4614b
[ "MIT" ]
null
null
null
client/postgre.py
jupadhya1/Odometry_Signal_Anomaly
37a1e549b640fcec7b21ba06e55f8744dbe4614b
[ "MIT" ]
null
null
null
client/postgre.py
jupadhya1/Odometry_Signal_Anomaly
37a1e549b640fcec7b21ba06e55f8744dbe4614b
[ "MIT" ]
null
null
null
import logging from typing import List, Dict # import psycopg2 from sqlalchemy import create_engine import pandas as pd class PostgreSqlClient(): """postgres sql client to write dataframe to a table """ def __init__(self, host: str, database: str, user: str = None, password: str = None): ...
29.971429
90
0.530029
d527c0bc9712d92d86fbe0fb8f04a382779f8c9e
169
py
Python
setup.py
ananttuli-elipse-uq/code-sandbox
fcb333a32c14b5684c18e4a6005a8254a5d2b7dd
[ "MIT" ]
null
null
null
setup.py
ananttuli-elipse-uq/code-sandbox
fcb333a32c14b5684c18e4a6005a8254a5d2b7dd
[ "MIT" ]
null
null
null
setup.py
ananttuli-elipse-uq/code-sandbox
fcb333a32c14b5684c18e4a6005a8254a5d2b7dd
[ "MIT" ]
2
2018-01-12T01:10:25.000Z
2021-02-10T05:01:55.000Z
from setuptools import setup setup( name="codesandbox", packages=["codesandbox"], include_package_data=True, install_requires=[ "flask" ] )
15.363636
30
0.64497
d527c19528111faa4e76c76cdc303fb498d63cc1
715
py
Python
forecastiowrap/models/currently.py
LyleScott/forecastio-python-wrapper
d64ab93aaa91ace5408b3850cd895337a810203f
[ "MIT" ]
null
null
null
forecastiowrap/models/currently.py
LyleScott/forecastio-python-wrapper
d64ab93aaa91ace5408b3850cd895337a810203f
[ "MIT" ]
1
2015-03-05T11:01:35.000Z
2015-03-05T14:40:44.000Z
forecastiowrap/models/currently.py
LyleScott/forecastio-python-wrapper
d64ab93aaa91ace5408b3850cd895337a810203f
[ "MIT" ]
null
null
null
from . import Hour class Currently(Hour): """ See https://developer.forecast.io/docs/v2 for more info. Example JSON: { u'apparentTemperature': 62.82, u'cloudCover': 0.44, u'dewPoint': 54.53, u'humidity': 0.74, u'icon': u'partly-cloudy-day', u'neare...
24.655172
60
0.525874
d527ce276b7b2fdfcf3f6b4892b2d07b491de6b6
6,339
py
Python
repose/resources.py
adamcharnock/repose
fa1307da4e26d337297a169df096325c2b4707fa
[ "MIT" ]
3
2016-04-19T01:36:10.000Z
2017-02-06T06:58:33.000Z
repose/resources.py
adamcharnock/repose
fa1307da4e26d337297a169df096325c2b4707fa
[ "MIT" ]
3
2015-09-12T13:55:45.000Z
2019-10-03T19:00:29.000Z
repose/resources.py
adamcharnock/repose
fa1307da4e26d337297a169df096325c2b4707fa
[ "MIT" ]
1
2016-04-18T08:49:59.000Z
2016-04-18T08:49:59.000Z
import weakref import booby._utils from booby.models import ModelMeta, Model import six from repose.managers import Manager from repose.utilities import make_endpoint, get_values_from_endpoint class ResourceMetaclass(ModelMeta): """ Meta class for setting up Resource classes """ def __new__(cls, clsname,...
32.341837
82
0.594573
d52806cc105a2a90e511a38f47080e873308954d
1,661
py
Python
foresight/environment/git/git_env_info_provider.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
15
2021-07-28T08:03:50.000Z
2021-11-08T08:36:06.000Z
foresight/environment/git/git_env_info_provider.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
1
2021-08-08T07:45:45.000Z
2021-08-08T12:41:36.000Z
foresight/environment/git/git_env_info_provider.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
3
2021-08-07T14:19:23.000Z
2021-12-08T15:35:40.000Z
import logging from foresight.environment.git.git_helper import GitHelper from foresight.environment.environment_info import EnvironmentInfo from foresight.utils.test_runner_utils import TestRunnerUtils from foresight.utils.generic_utils import print_debug_message_to_console LOGGER = logging.getLogger(__name__) class...
42.589744
97
0.704997
d52807fcd89c401546137df4f362f2d88fb6c1d6
10,881
py
Python
models/base_model.py
ostadabbas/PressureEye
ae715ec5de89ea8e992568b32edcbf893a02c1df
[ "BSD-3-Clause" ]
1
2022-02-24T14:26:50.000Z
2022-02-24T14:26:50.000Z
models/base_model.py
USTCWzy/PressureEye
ae715ec5de89ea8e992568b32edcbf893a02c1df
[ "BSD-3-Clause" ]
null
null
null
models/base_model.py
USTCWzy/PressureEye
ae715ec5de89ea8e992568b32edcbf893a02c1df
[ "BSD-3-Clause" ]
1
2022-02-24T14:26:45.000Z
2022-02-24T14:26:45.000Z
import os import torch from collections import OrderedDict from abc import ABC, abstractmethod from . import networks class BaseModel(ABC): """This class is an abstract base class (ABC) for models. To create a subclass, you need to implement the following five functions: -- <__init__>: ...
45.911392
260
0.602426
d528170cd670b442b2e11215832e092c54c6e943
19,248
py
Python
pokecli.py
matheussampaio/botmon-bot
d2b145c500956fa1368263a2aad371337fc37a6d
[ "MIT" ]
null
null
null
pokecli.py
matheussampaio/botmon-bot
d2b145c500956fa1368263a2aad371337fc37a6d
[ "MIT" ]
null
null
null
pokecli.py
matheussampaio/botmon-bot
d2b145c500956fa1368263a2aad371337fc37a6d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ pgoapi - Pokemon Go API Copyright (c) 2016 tjado <https://github.com/tejado> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, ...
32.458685
204
0.59362
d5284cb371c4ebbfd75dd82de3308cf663f67726
397
py
Python
examples/protocols/adherent/plugins/logo.py
pauleveritt/viewdom_wired
40d8f2f190a12bbd07ff957654626001a9f3a778
[ "MIT" ]
null
null
null
examples/protocols/adherent/plugins/logo.py
pauleveritt/viewdom_wired
40d8f2f190a12bbd07ff957654626001a9f3a778
[ "MIT" ]
null
null
null
examples/protocols/adherent/plugins/logo.py
pauleveritt/viewdom_wired
40d8f2f190a12bbd07ff957654626001a9f3a778
[ "MIT" ]
null
null
null
from dataclasses import dataclass from viewdom import html, VDOM from viewdom_wired import component from ..app.decorators import adherent from ..app.protocols import Logo @component(for_=Logo) @adherent(Logo) @dataclass class NoAltLogo: src: str alt: str = 'Alt' # Comment this out to break the protocol ...
20.894737
62
0.717884
d5286a2065d0f9a3b7b22c69d6d1e5c9850792f8
6,075
py
Python
experiments/vitchyr/probabilistic_goal_reaching/basic_reaching_with_dynamics_visualization/exp_21_u_wall_high_nupo.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/probabilistic_goal_reaching/basic_reaching_with_dynamics_visualization/exp_21_u_wall_high_nupo.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/probabilistic_goal_reaching/basic_reaching_with_dynamics_visualization/exp_21_u_wall_high_nupo.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import rlkit.misc.hyperparameter as hyp from rlkit.launchers.experiments.vitchyr.probabilistic_goal_reaching.launcher import \ probabilistic_goal_reaching_experiment from rlkit.launchers.launcher_util import run_experiment if __name__ == "__main__": variant = dict( qf_kwargs=dict( hidden_si...
30.837563
86
0.524774
d528ab56f56bef4659043579a09a3065df03e07d
1,102
py
Python
tests/api/test_config.py
Akeru/ACI-EnhancedEndpointTracker
498bc4c07604b27a57f82cde12967eaa9117b5bc
[ "MIT" ]
null
null
null
tests/api/test_config.py
Akeru/ACI-EnhancedEndpointTracker
498bc4c07604b27a57f82cde12967eaa9117b5bc
[ "MIT" ]
null
null
null
tests/api/test_config.py
Akeru/ACI-EnhancedEndpointTracker
498bc4c07604b27a57f82cde12967eaa9117b5bc
[ "MIT" ]
null
null
null
import json """ Settings database data available (and possibly manipulated) by/for config tests: tests/testdata/settings.json """ def test_api_read_config(app): # verify read to config returns data (test may not include full config) response = app.client.get("/api/config") assert response.status_code ...
33.393939
80
0.703267
d528b34a6ae68123511a5e74b496ad357350f37e
7,330
py
Python
src/greentest/known_failures.py
snjypl/gevent
0e524d8143646d3a9dde33a94a035b30d08a1793
[ "MIT" ]
1
2019-05-09T08:59:55.000Z
2019-05-09T08:59:55.000Z
src/greentest/known_failures.py
snjypl/gevent
0e524d8143646d3a9dde33a94a035b30d08a1793
[ "MIT" ]
null
null
null
src/greentest/known_failures.py
snjypl/gevent
0e524d8143646d3a9dde33a94a035b30d08a1793
[ "MIT" ]
null
null
null
# This is a list of known failures (=bugs). # The tests listed there must fail (or testrunner.py will report error) unless they are prefixed with FLAKY # in which cases the result of them is simply ignored from __future__ import print_function import os import sys import struct APPVEYOR = os.getenv('APPVEYOR') TRAVIS...
35.756098
127
0.600955
d528b71da03964b2816bf3456461aae4ec582afb
716
py
Python
bookr/reviews/migrations/0001_initial.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
bookr/reviews/migrations/0001_initial.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
bookr/reviews/migrations/0001_initial.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2021-08-05 00:47 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Publisher', fields=[ ('id', models.AutoField(...
29.833333
114
0.597765
d528c795405fb37f7054739d1465db40ef3f3f4f
5,214
py
Python
PyTorch-Lightning/main_basic.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
PyTorch-Lightning/main_basic.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
PyTorch-Lightning/main_basic.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
# PyTorch stuff import torch import torch.nn as nn import torch.nn.functional as F # For handling dataset from torch.utils.data import Dataset from torch.utils.data import DataLoader from sklearn.datasets import load_breast_cancer from sklearn.model_selection import train_test_split # The super PyTorch Lightning impo...
34.078431
97
0.650556
d528e3e2dbe43e3adc84b3b36552f48fa00880d6
174
py
Python
models/net.py
misads/cifar10_cnn
fe29859aba63becad2c81dae20ef7269138025f6
[ "MIT" ]
1
2019-12-23T05:13:25.000Z
2019-12-23T05:13:25.000Z
models/net.py
misads/cifar10_cnn
fe29859aba63becad2c81dae20ef7269138025f6
[ "MIT" ]
null
null
null
models/net.py
misads/cifar10_cnn
fe29859aba63becad2c81dae20ef7269138025f6
[ "MIT" ]
null
null
null
import tensorflow as tf class Network(object): def __init__(self): self.is_training = tf.placeholder(tf.bool) self.keep_prob = tf.placeholder(tf.float32)
29
51
0.701149
d5292b26a77778fd78c479804e112de880e2f8f7
3,660
py
Python
quote_splashRequest_adv/jsquotescrape/middlewares.py
barnwalp/web_scrapping
776d9d00d406976959caeb707850e0b871676552
[ "MIT" ]
null
null
null
quote_splashRequest_adv/jsquotescrape/middlewares.py
barnwalp/web_scrapping
776d9d00d406976959caeb707850e0b871676552
[ "MIT" ]
null
null
null
quote_splashRequest_adv/jsquotescrape/middlewares.py
barnwalp/web_scrapping
776d9d00d406976959caeb707850e0b871676552
[ "MIT" ]
null
null
null
# Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals # useful for handling different item types with a single interface from itemadapter import is_item, ItemAdapter class JsquotescrapeSpiderMiddlewa...
35.192308
78
0.67541
d5292e2fafb9e34da8bc0074f401ecc703887cae
2,523
py
Python
common/metro.py
yaatehr/ChordShed
5b04fd086792898bf41dd9a88f4ab1b1656a3f9e
[ "MIT" ]
null
null
null
common/metro.py
yaatehr/ChordShed
5b04fd086792898bf41dd9a88f4ab1b1656a3f9e
[ "MIT" ]
null
null
null
common/metro.py
yaatehr/ChordShed
5b04fd086792898bf41dd9a88f4ab1b1656a3f9e
[ "MIT" ]
null
null
null
##################################################################### # # metro.py # # Copyright (c) 2016, Eran Egozy # # Released under the MIT License (http://opensource.org/licenses/MIT) # ##################################################################### from .clock import kTicksPerQuarter, quantize_tick_up c...
29.682353
97
0.57828
d52977458e3d84d84655e1deaf4bb45d481e6b22
1,779
py
Python
venv/Scripts/rst2odt_prepstyles.py
StMay/Mahjong_Server
66ecbaac0bddafffd439a02a3c422e2f207d4fb9
[ "MIT" ]
null
null
null
venv/Scripts/rst2odt_prepstyles.py
StMay/Mahjong_Server
66ecbaac0bddafffd439a02a3c422e2f207d4fb9
[ "MIT" ]
null
null
null
venv/Scripts/rst2odt_prepstyles.py
StMay/Mahjong_Server
66ecbaac0bddafffd439a02a3c422e2f207d4fb9
[ "MIT" ]
null
null
null
#!C:\Users\Steve\PycharmProjects\Mahjong_Server\venv\Scripts\python.exe # $Id: rst2odt_prepstyles.py 8346 2019-08-26 12:11:32Z milde $ # Author: Dave Kuhlman <dkuhlman@rexx.com> # Copyright: This module has been placed in the public domain. """ Fix a word-processor-generated styles.odt for odtwriter use: Drop page si...
26.161765
75
0.646993
d5297b9bd78fb4e803948cc0e95bd111126403ab
6,466
py
Python
prody/apps/prody_apps/nmaoptions.py
RicardoSerr/ProDy
bdd7bab89d32033d20cd26bb17789f94ee4f7c02
[ "MIT" ]
null
null
null
prody/apps/prody_apps/nmaoptions.py
RicardoSerr/ProDy
bdd7bab89d32033d20cd26bb17789f94ee4f7c02
[ "MIT" ]
null
null
null
prody/apps/prody_apps/nmaoptions.py
RicardoSerr/ProDy
bdd7bab89d32033d20cd26bb17789f94ee4f7c02
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """This module defines options common to anm/gnm/pca commands.""" DEFAULTS = {} HELPTEXT = {} FIGFORMATS = 'eps pdf png ps raw rgba svg svgz'.split() for key, txt, val in [ ('outdir', 'output directory', '.'), ('prefix', 'output file prefix', ''), ('select', 'atom selection', ...
36.531073
89
0.621404
d52988a1e113dbe911d40d31a5dd2aeb5d7d8139
5,624
py
Python
src/radical/ensemblemd/patterns/replica_exchange.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
src/radical/ensemblemd/patterns/replica_exchange.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
src/radical/ensemblemd/patterns/replica_exchange.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
#!/usr/bin/env python """This module defines a Replica Exchange pattern. """ __author__ = "Antons Treikalis <antons.treikalis@rutgers.edu>" __copyright__ = "Copyright 2014, http://radical.rutgers.edu" __license__ = "MIT" from radical.ensemblemd.exceptions import NotImplementedError from radical.ensemblemd.execu...
32.888889
81
0.528805
d5299a0661b91b04348e2b06ce7e147cffbff7b2
9,242
py
Python
st2common/st2common/util/workflow/mistral.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
st2common/st2common/util/workflow/mistral.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
st2common/st2common/util/workflow/mistral.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
33.485507
99
0.650725
d529aaa2985c6a1241d67c21e54462a7c6301cfa
4,816
py
Python
examples/large_deformation/hyperelastic.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
examples/large_deformation/hyperelastic.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
examples/large_deformation/hyperelastic.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- r""" Nearly incompressible Mooney-Rivlin hyperelastic material model. Large deformation is described using the total Lagrangian formulation. Models of this kind can be used to model e.g. rubber or some biological materials. Find :math:`\ul{u}` such that: .. math:: \intl{\Omega\suz}{} \lef...
25.617021
77
0.534261
d529bacc40a5b97800a2ecdac8197c19aee02065
505
py
Python
pyplan/pyplan/diagram_shortcut/models.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
17
2019-12-04T19:22:19.000Z
2021-07-28T11:17:05.000Z
pyplan/pyplan/diagram_shortcut/models.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
9
2019-12-13T15:34:43.000Z
2022-02-10T11:43:00.000Z
pyplan/pyplan/diagram_shortcut/models.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
5
2019-12-04T15:57:06.000Z
2021-08-20T19:59:26.000Z
from django.db import models from pyplan.pyplan.usercompanies.models import UserCompany class DiagramShortcut(models.Model): model = models.CharField(max_length=255) node_id = models.CharField(max_length=255) name = models.CharField(max_length=255, blank=True, null=True) usercompany = models.Foreign...
33.666667
108
0.758416
d52a118898f47f15d8c6c91b6871339a8ba65a69
671
py
Python
examples/script/count_instructions.py
etcd/manticore
87073d9985c4ca445217b7b135a6af0a51044b21
[ "Apache-2.0" ]
null
null
null
examples/script/count_instructions.py
etcd/manticore
87073d9985c4ca445217b7b135a6af0a51044b21
[ "Apache-2.0" ]
null
null
null
examples/script/count_instructions.py
etcd/manticore
87073d9985c4ca445217b7b135a6af0a51044b21
[ "Apache-2.0" ]
null
null
null
import sys from manticore import Manticore ''' Count the number of emulated instructions. This example uses the context property of the Manticore object to store data that's updated by the hook function. Manticore.context is needed to properly share data when running with multiple worker processes. ''' if __name__ ...
23.137931
76
0.658718
d52a28ef3b111daf834ab8559fe30e1ba9da256c
1,803
py
Python
obsolete/reports/pipeline_chipseq/trackers/Repeats.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
49
2015-04-13T16:49:25.000Z
2022-03-29T10:29:14.000Z
obsolete/reports/pipeline_chipseq/trackers/Repeats.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
252
2015-04-08T13:23:34.000Z
2019-03-18T21:51:29.000Z
obsolete/reports/pipeline_chipseq/trackers/Repeats.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
22
2015-05-21T00:37:52.000Z
2019-09-25T05:04:27.000Z
from ChipseqReport import * import Annotations import Motifs ########################################################################## ########################################################################## ########################################################################## # Looking at overlap with repeats...
36.06
118
0.442041
d52a812ecaad8039e539a2cb944ca8cd2fe61a79
1,424
py
Python
apps/show_sample.py
gatheluck/FourierBasisDB
12ac8a8049304df59d4faa3ddb0bb7b2bfda5566
[ "MIT" ]
null
null
null
apps/show_sample.py
gatheluck/FourierBasisDB
12ac8a8049304df59d4faa3ddb0bb7b2bfda5566
[ "MIT" ]
null
null
null
apps/show_sample.py
gatheluck/FourierBasisDB
12ac8a8049304df59d4faa3ddb0bb7b2bfda5566
[ "MIT" ]
null
null
null
import os import sys import hydra import omegaconf import glob import random import torch import torchvision import PIL base = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../') sys.path.append(base) @hydra.main(config_path='../conf/show_sample.yaml') def main(cfg: omegaconf.DictConfig) -> None: if ...
30.297872
131
0.679775
d52a98d7a914b0f2d141433dc71a6c4e881665ae
7,669
py
Python
sasmodels/models/hollow_rectangular_prism.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
sasmodels/models/hollow_rectangular_prism.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
sasmodels/models/hollow_rectangular_prism.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
# rectangular_prism model # Note: model title and parameter table are inserted automatically r""" Definition ---------- This model provides the form factor, $P(q)$, for a hollow rectangular parallelepiped with a wall of thickness $\Delta$. The 1D scattering intensity for this model is calculated by forming the differe...
41.010695
100
0.632025
d52add3b00a0fa685df88fc773a56a7f2cdad2ec
14,059
py
Python
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_protection_intent_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_protection_intent_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_protection_intent_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
43.125767
250
0.681912
d52afbe5438dbc48ad25e8d5df7d84034ee8d7f3
10,957
py
Python
third_party/closure_compiler/compile2.py
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/closure_compiler/compile2.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/closure_compiler/compile2.py
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
#!/usr/bin/python # 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. """Runs Closure compiler on JavaScript files to check for errors and produce minified output.""" import argparse import os import re impor...
33.817901
80
0.666606
d52b2262fbc6514e237535c8fbbfc290e3307c79
1,348
py
Python
util/data/gen/WINNSI.DLL.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
util/data/gen/WINNSI.DLL.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
util/data/gen/WINNSI.DLL.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
symbols = [] exports = [{'type': 'function', 'name': 'NsiConnectToServer', 'address': '0x7ffb35021bf0'}, {'type': 'function', 'name': 'NsiDisconnectFromServer', 'address': '0x7ffb35021e50'}, {'type': 'function', 'name': 'NsiRpcDeregisterChangeNotification', 'address': '0x7ffb35021010'}, {'type': 'function', 'name': 'Ns...
674
1,335
0.704006
d52b616a9ed0238ccbc66c3299a2f8c6b77955ac
12,220
py
Python
optim/nodes/BayesianOptimizer.py
Humhu/percepto
4a45cce7dd294a8ce0b962bb68cae5c2b48c3b7f
[ "AFL-3.0" ]
1
2021-06-15T09:34:24.000Z
2021-06-15T09:34:24.000Z
optim/nodes/BayesianOptimizer.py
Humhu/percepto
4a45cce7dd294a8ce0b962bb68cae5c2b48c3b7f
[ "AFL-3.0" ]
null
null
null
optim/nodes/BayesianOptimizer.py
Humhu/percepto
4a45cce7dd294a8ce0b962bb68cae5c2b48c3b7f
[ "AFL-3.0" ]
null
null
null
#!/usr/bin/env python import math from itertools import izip import dill import pickle import numpy as np import rospy import optim import broadcast from percepto_msgs.srv import RunOptimization, RunOptimizationResponse class BayesianOptimizer(object): """Iteratively samples and updates a reward model (respons...
37.6
107
0.593453
d52b87f30e48707072965ee1e78f39789d4831df
239
py
Python
test/client_test.py
afcmrp/mfiles
a357585f6bd22a6022b0205b123e8e46e8277fcd
[ "MIT" ]
6
2020-07-07T17:41:23.000Z
2021-01-02T22:44:22.000Z
test/client_test.py
afcmrp/python-mfiles
a357585f6bd22a6022b0205b123e8e46e8277fcd
[ "MIT" ]
3
2020-05-01T07:58:26.000Z
2021-02-08T08:30:18.000Z
test/client_test.py
afcmrp/mfiles
a357585f6bd22a6022b0205b123e8e46e8277fcd
[ "MIT" ]
2
2020-08-27T07:56:10.000Z
2021-01-02T22:44:33.000Z
"""Test cases for client.py""" from mfiles.client import MFilesClient TEST_USER = "test_user" TEST_PASS = "test_pass" def test_init(): """Test creation of MFilesClient object.""" MFilesClient(user=TEST_USER, password=TEST_PASS)
21.727273
52
0.736402
d52b8b8c5b0efaa7c58bf9b792d847ff8e8fd03e
96
py
Python
no_shebang.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
1
2022-01-14T18:08:04.000Z
2022-01-14T18:08:04.000Z
no_shebang.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
no_shebang.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
print("ello!") print("Did you say, hello?") print("No, I said ello, but that\'s close enough.")
24
51
0.65625
d52b8d5aa32c510c414ad1b5f5c174a0c69f0359
5,347
py
Python
mediagoblin/tests/test_notifications.py
acidburn0zzz/mediagoblin
8fc57eaaa6e22358a1220a0baf589a4b20dd8cfe
[ "CC0-1.0" ]
1
2018-12-19T00:05:55.000Z
2018-12-19T00:05:55.000Z
mediagoblin/tests/test_notifications.py
acidburn0zzz/mediagoblin
8fc57eaaa6e22358a1220a0baf589a4b20dd8cfe
[ "CC0-1.0" ]
null
null
null
mediagoblin/tests/test_notifications.py
acidburn0zzz/mediagoblin
8fc57eaaa6e22358a1220a0baf589a4b20dd8cfe
[ "CC0-1.0" ]
null
null
null
# GNU MediaGoblin -- federated, autonomous media hosting # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either versio...
35.177632
251
0.66729
d52ba4a4ba5d44dd68b17e074ef9de319c2efb21
7,866
py
Python
src/rcmodel/RCModel.py
BFourcin/rcmodel
160eb2ad7ea60f328abde157baeef7378e28d815
[ "MIT" ]
5
2021-07-05T13:48:59.000Z
2021-12-08T11:40:51.000Z
src/rcmodel/RCModel.py
BFourcin/rcmodel
160eb2ad7ea60f328abde157baeef7378e28d815
[ "MIT" ]
null
null
null
src/rcmodel/RCModel.py
BFourcin/rcmodel
160eb2ad7ea60f328abde157baeef7378e28d815
[ "MIT" ]
null
null
null
import torch import numpy as np from torch import nn from torchdiffeq import odeint from datetime import datetime class RCModel(nn.Module): """ Custom Pytorch model for gradient optimization. Initialises with random parameters. scaling - Class containing methods to scale inputs from 0-1 back to their...
42.064171
149
0.639334
d52be30f0ed0e5d0778a1a8ce062224a6b426a52
65,848
py
Python
src/indriya_robot_interface/transformations.py
praveenv4k/Indriya
a74a4b8bb9f04b5e858305769e892edfcab32df5
[ "MIT" ]
1
2017-07-12T15:30:58.000Z
2017-07-12T15:30:58.000Z
src/indriya_robot_interface/transformations.py
praveenv4k/Indriya
a74a4b8bb9f04b5e858305769e892edfcab32df5
[ "MIT" ]
null
null
null
src/indriya_robot_interface/transformations.py
praveenv4k/Indriya
a74a4b8bb9f04b5e858305769e892edfcab32df5
[ "MIT" ]
1
2016-03-09T12:34:19.000Z
2016-03-09T12:34:19.000Z
# -*- coding: utf-8 -*- # transformations.py # Copyright (c) 2006-2015, Christoph Gohlke # Copyright (c) 2006-2015, The Regents of the University of California # Produced at the Laboratory for Fluorescence Dynamics # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modifica...
34.385379
79
0.587702
d52c681e9767fe2607c28e03d55e81462fe54eea
2,870
py
Python
zipline/data/benchmarks.py
jasonstrimpel/zipline
21b4d3e2bbd32e1af5ded3e4834b007fe02bd83a
[ "Apache-2.0" ]
1
2020-09-24T15:25:26.000Z
2020-09-24T15:25:26.000Z
zipline/data/benchmarks.py
jasonstrimpel/zipline
21b4d3e2bbd32e1af5ded3e4834b007fe02bd83a
[ "Apache-2.0" ]
null
null
null
zipline/data/benchmarks.py
jasonstrimpel/zipline
21b4d3e2bbd32e1af5ded3e4834b007fe02bd83a
[ "Apache-2.0" ]
null
null
null
# # Copyright 2013 Quantopian, Inc. # # 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 wr...
30.860215
95
0.672822
d52c81c22ac9d441324b1c99d8735af02e886f45
16,464
py
Python
ci/anubis-driver.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
6
2020-09-29T09:03:04.000Z
2022-03-14T06:52:25.000Z
ci/anubis-driver.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
null
null
null
ci/anubis-driver.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
4
2020-10-01T07:49:22.000Z
2021-06-16T19:44:12.000Z
#!/usr/bin/env python3 import json import os import requests import urllib3 import shutil import textwrap import subprocess import argparse import boto3 import sys import time import logging from pathlib import Path from collections import namedtuple from typing import Dict def open_terraform_vars_file(filename) -> D...
40.452088
191
0.641399
d52c9b98c6c69404f569a7e049c3bb788ce7d551
2,747
py
Python
python/fundamentals/6.0.error_catch.py
enesonmez/data-science-tutorial-turkish
755c539f44b9f5571cd3efc3e0358f14f96bc096
[ "CC0-1.0" ]
1
2022-02-02T08:41:23.000Z
2022-02-02T08:41:23.000Z
python/fundamentals/6.0.error_catch.py
enesonmez/data-science-tutorial-turkish
755c539f44b9f5571cd3efc3e0358f14f96bc096
[ "CC0-1.0" ]
null
null
null
python/fundamentals/6.0.error_catch.py
enesonmez/data-science-tutorial-turkish
755c539f44b9f5571cd3efc3e0358f14f96bc096
[ "CC0-1.0" ]
null
null
null
""" Kod yazarken devamlı hatalar çıkar ve biz bunu konsoldan hata mesajı olarak alırız. Bu hata mesajları kullanıcı tarafından anlaşılmaz ve programı yarıda keser. Peki bu mesajları yakalayıp kendi istediğimiz çıktıları ya da hataya göre yapılması gereken işlemleri programa yaptırmayız mı? Tabiki ...
30.186813
107
0.728795
d52cab978b913a605bd6571757526232ef98cf86
3,708
py
Python
libcloudforensics/providers/gcp/internal/serviceusage.py
zkck/cloud-forensics-utils
ac1cdf74b595cf57629c23a52e46da98283e552f
[ "Apache-2.0" ]
241
2020-02-08T20:05:54.000Z
2022-03-31T23:51:30.000Z
libcloudforensics/providers/gcp/internal/serviceusage.py
Fryyyyy/cloud-forensics-utils
d7fb845bd7df1498d67230520e2c7169c9a929df
[ "Apache-2.0" ]
376
2020-02-05T10:22:54.000Z
2022-03-30T00:09:18.000Z
libcloudforensics/providers/gcp/internal/serviceusage.py
Fryyyyy/cloud-forensics-utils
d7fb845bd7df1498d67230520e2c7169c9a929df
[ "Apache-2.0" ]
72
2020-02-06T07:34:30.000Z
2022-03-05T18:02:13.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Google Inc. # # 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 ...
30.644628
76
0.688511
d52caba27f1c6468566997bc823c4961849ac1b0
7,379
py
Python
experiments/e1_st_association_vs_tree_rules/model_induction/single_target_car_mids_model_induction.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
3
2020-08-03T19:25:44.000Z
2021-06-27T22:25:55.000Z
experiments/e1_st_association_vs_tree_rules/model_induction/single_target_car_mids_model_induction.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
null
null
null
experiments/e1_st_association_vs_tree_rules/model_induction/single_target_car_mids_model_induction.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
2
2020-08-07T22:54:28.000Z
2021-02-18T06:11:01.000Z
import os from typing import List, Tuple, Dict import pandas as pd from dask import delayed from dask.delayed import Delayed from distributed import Client from experiments.dask_utils.computations import compute_delayed_functions from experiments.dask_utils.dask_initialization import reconnect_client_to_ssh_cluster f...
45.832298
119
0.68058
d52cc3cc2a4b36421a6eff945f298a8dfda947fc
2,378
py
Python
wasatch/DeviceFinderUSB.py
adiravishankara/Wasatch.PY
058b3de2c9399e9aea6347fa360f9c7dbbf296aa
[ "MIT" ]
null
null
null
wasatch/DeviceFinderUSB.py
adiravishankara/Wasatch.PY
058b3de2c9399e9aea6347fa360f9c7dbbf296aa
[ "MIT" ]
null
null
null
wasatch/DeviceFinderUSB.py
adiravishankara/Wasatch.PY
058b3de2c9399e9aea6347fa360f9c7dbbf296aa
[ "MIT" ]
null
null
null
import logging import usb import usb.backend.libusb0 as libusb0 log = logging.getLogger(__name__) from .DeviceID import DeviceID ## # Generates a list of DeviceID objects for all connected USB Wasatch Photonics # spectrometers. class DeviceFinderUSB(object): WASATCH_VID = 0x24aa OCEAN_VID = 0x2457 ANDO...
34.463768
125
0.636669
d52cc9694c391f8395f93c2a00e0cfd950d1d7aa
5,140
py
Python
SMLProject_G3/LRP/functional/linear.py
pourmand1376/statistical-machine-learning-projects
c1ff4057beb4256c4d0a4743bb0e7a9ce44c938f
[ "MIT" ]
1
2021-10-10T23:55:37.000Z
2021-10-10T23:55:37.000Z
SMLProject_G3/LRP/functional/linear.py
pourmand1376/statistical-machine-learning-projects
c1ff4057beb4256c4d0a4743bb0e7a9ce44c938f
[ "MIT" ]
null
null
null
SMLProject_G3/LRP/functional/linear.py
pourmand1376/statistical-machine-learning-projects
c1ff4057beb4256c4d0a4743bb0e7a9ce44c938f
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F from torch.autograd import Function from .utils import identity_fn, gamma_fn, add_epsilon_fn, normalize from .trace import do_trace def _forward_rho(rho, incr, ctx, input, weight, bias): ctx.save_for_backward(input, weight, bias) ctx.rho = rho ctx.incr = incr ...
32.327044
91
0.669261
d52cd665e18f5561bd8a35fdd283d21eede01855
7,812
py
Python
plot_jwst_calmodels.py
STScI-MIRI/absflux_spectra
bbe9c43ee3cf420a49b352b4f489f5c60c3fc679
[ "BSD-3-Clause" ]
null
null
null
plot_jwst_calmodels.py
STScI-MIRI/absflux_spectra
bbe9c43ee3cf420a49b352b4f489f5c60c3fc679
[ "BSD-3-Clause" ]
null
null
null
plot_jwst_calmodels.py
STScI-MIRI/absflux_spectra
bbe9c43ee3cf420a49b352b4f489f5c60c3fc679
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, print_function, division import argparse import numpy as np import matplotlib.pyplot as plt from matplotlib import rc from matplotlib.ticker import ScalarFormatter from astropy.table import Table import astropy.units as u from rebin_ndarray import bin_ndarray FNU = u.erg / (...
30.046154
88
0.587174
d52ce97b1af8ab967889fe51521e5aa512988427
3,412
py
Python
modules/dbnd/src/dbnd/_core/task_executor/local_task_executor.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/_core/task_executor/local_task_executor.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/_core/task_executor/local_task_executor.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
import logging from dbnd._core.constants import TaskRunState from dbnd._core.errors.base import DatabandRunError, DatabandSigTermError from dbnd._core.task_ctrl.task_dag import topological_sort from dbnd._core.task_executor.task_executor import TaskExecutor logger = logging.getLogger(__name__) class LocalTaskExecu...
35.175258
83
0.599941
d52cea7d6541197c1358bf27a79373a06c62b538
753
py
Python
sdk/python/sawtooth_sdk/processor/exceptions.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
sdk/python/sawtooth_sdk/processor/exceptions.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
1
2021-12-09T23:11:26.000Z
2021-12-09T23:11:26.000Z
sdk/python/sawtooth_sdk/processor/exceptions.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
32.73913
80
0.679947
d52d14dd2439093538f16fa75b44fcb37d26706d
136
py
Python
doc-src/coverage/index.py
samtaufa/pry
155b783351cef5d8c8669bba4484f1a5f159150e
[ "MIT" ]
1
2016-05-09T08:20:56.000Z
2016-05-09T08:20:56.000Z
doc-src/coverage/index.py
samtaufa/pry
155b783351cef5d8c8669bba4484f1a5f159150e
[ "MIT" ]
null
null
null
doc-src/coverage/index.py
samtaufa/pry
155b783351cef5d8c8669bba4484f1a5f159150e
[ "MIT" ]
null
null
null
from countershape.doc import * pages = [ Page("dotpry.md", ".pry config file"), Page("annotations.md", "Code Annotation"), ]
19.428571
47
0.632353
d52d2d80bce0188092e79a43afe437e9a799df38
1,143
py
Python
kombu/transport/django/models.py
sloria/kombu
51fb93769746c155be3047509c173e764962416d
[ "BSD-3-Clause" ]
3
2016-07-29T16:38:29.000Z
2021-01-14T21:07:39.000Z
kombu/transport/django/models.py
alanjds/kombu
3b6aa9b4e5719314ddb6f8df705b1d556a298e66
[ "BSD-3-Clause" ]
null
null
null
kombu/transport/django/models.py
alanjds/kombu
3b6aa9b4e5719314ddb6f8df705b1d556a298e66
[ "BSD-3-Clause" ]
2
2019-05-09T03:17:21.000Z
2020-03-11T08:02:19.000Z
from __future__ import absolute_import, unicode_literals import django from django.db import models from django.utils.translation import ugettext_lazy as _ from .managers import QueueManager, MessageManager class Queue(models.Model): name = models.CharField(_('name'), max_length=200, unique=True) objects ...
29.307692
72
0.668416
d52d2ec7a306595331ac87b216af1d29e12ed741
10,861
py
Python
autoesk_main/silas_abre_g5_loop_v7_finally.py
SilasPDJ/autoesk_project_v2
249730307ad350a1aaacfd5abe08b0781253854e
[ "MIT" ]
1
2021-03-12T00:40:13.000Z
2021-03-12T00:40:13.000Z
autoesk_main/silas_abre_g5_loop_v7_finally.py
SilasPDJ/autoesk_project_v2
249730307ad350a1aaacfd5abe08b0781253854e
[ "MIT" ]
1
2021-04-02T04:40:38.000Z
2021-04-02T04:42:20.000Z
autoesk_main/silas_abre_g5_loop_v7_finally.py
SilasPDJ/autoesk_project_v2
249730307ad350a1aaacfd5abe08b0781253854e
[ "MIT" ]
null
null
null
import pyautogui as pygui from time import sleep from default.interact import * from imports import ExcelToData from _new_set_paths import NewSetPaths from pgdas_fiscal_oesk.relacao_nfs import tres_valores_faturados, NfCanceled from pyperclip import paste # from default.webdriver_utilities import * """ from LE_NF_C...
36.446309
126
0.471411
d52d64a7724649d18a9c2af3401f63e97a9893fb
1,186
py
Python
main/courses/forums/forms.py
Andymic/class2go
45a457e89790cb83942d24ada816357dc91b8fe4
[ "Apache-2.0" ]
1
2015-11-05T20:49:11.000Z
2015-11-05T20:49:11.000Z
main/courses/forums/forms.py
Andymic/class2go
45a457e89790cb83942d24ada816357dc91b8fe4
[ "Apache-2.0" ]
null
null
null
main/courses/forums/forms.py
Andymic/class2go
45a457e89790cb83942d24ada816357dc91b8fe4
[ "Apache-2.0" ]
null
null
null
from django import forms class PiazzaAuthForm(forms.Form): # User Info user_id = forms.CharField() lis_person_contact_email_primary = forms.CharField() #lis_person_name_given = forms.CharField() #lis_person_name_family = forms.CharField() lis_person_name_full = forms.CharField() lis_person_...
31.210526
58
0.726813
d52d6cb8c3c186e874fb09d785355e828c5f5991
975
py
Python
feature_extraction/extract_speaker.py
sarmilaupadhyaya/MultiSpeaker-TTS-V1
4b6351f74145f254521e4946e10fa646d6ec197c
[ "MIT" ]
1
2022-03-14T13:06:48.000Z
2022-03-14T13:06:48.000Z
feature_extraction/extract_speaker.py
sarmilaupadhyaya/MultiSpeaker-TTS-V1
4b6351f74145f254521e4946e10fa646d6ec197c
[ "MIT" ]
null
null
null
feature_extraction/extract_speaker.py
sarmilaupadhyaya/MultiSpeaker-TTS-V1
4b6351f74145f254521e4946e10fa646d6ec197c
[ "MIT" ]
null
null
null
from collections import defaultdict import os import itertools txt_path = "/srv/storage/multispeechedu@talc-data2.nancy.grid5000.fr/software_project/corpus/all_text.txt" audio_path = "/srv/storage/multispeechedu@talc-data2.nancy.grid5000.fr/software_project/corpus/synpaflex/wavs_16bit/" f = open(txt_path, "r") data =...
31.451613
117
0.670769
d52d6f0c13d58bdd8f028da4004a5e5c2e35e681
5,675
py
Python
tests/unit_tests/blocks/preprocessing_test.py
micheleFraccaroli/autokeras
4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1
[ "Apache-2.0" ]
3,979
2019-04-02T02:01:52.000Z
2022-03-31T16:53:14.000Z
tests/unit_tests/blocks/preprocessing_test.py
micheleFraccaroli/autokeras
4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1
[ "Apache-2.0" ]
939
2019-04-02T18:13:53.000Z
2022-03-31T16:25:08.000Z
tests/unit_tests/blocks/preprocessing_test.py
micheleFraccaroli/autokeras
4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1
[ "Apache-2.0" ]
826
2019-04-02T00:53:31.000Z
2022-03-31T10:11:02.000Z
# Copyright 2020 The AutoKeras 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 applicable law or agreed to i...
26.895735
82
0.725639
d52da8b20e662338c1e500c4bf1250d84a719051
4,025
py
Python
python/dp_accounting/pld/pld_privacy_accountant.py
Jolly608090/differential-privacy
74d5be96d4abe6820ef4838c00a1b78c72ae01af
[ "Apache-2.0" ]
1
2022-03-02T20:02:34.000Z
2022-03-02T20:02:34.000Z
python/dp_accounting/pld/pld_privacy_accountant.py
fbalicchia/differential-privacy
099080e49c4c047802d785bc818898c0caf84d45
[ "Apache-2.0" ]
null
null
null
python/dp_accounting/pld/pld_privacy_accountant.py
fbalicchia/differential-privacy
099080e49c4c047802d785bc818898c0caf84d45
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
38.701923
78
0.73764
d52da9fb6dfda533ded5647a2b9056a477d4970e
11,590
py
Python
bonneville/cli/__init__.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/cli/__init__.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/cli/__init__.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' The management of salt command line utilities are stored in here ''' # Import python libs from __future__ import print_function import os import sys # Import bonneville libs import bonneville.cli.caller import bonneville.cli.cp import bonneville.cli.batch import bonneville.client import bo...
32.105263
78
0.477222
d52dcc2b6ba1d15f70409e63727976a4dd1eefdb
1,220
py
Python
neuropype/gui/addNodeDockWidget.py
ablot/Pinceau
ae8f3dd088349f8976a5ddf91d83c60ca1ef39e2
[ "MIT" ]
null
null
null
neuropype/gui/addNodeDockWidget.py
ablot/Pinceau
ae8f3dd088349f8976a5ddf91d83c60ca1ef39e2
[ "MIT" ]
null
null
null
neuropype/gui/addNodeDockWidget.py
ablot/Pinceau
ae8f3dd088349f8976a5ddf91d83c60ca1ef39e2
[ "MIT" ]
null
null
null
#!/usr/bin/env python from PyQt4.QtCore import * from PyQt4.QtGui import * import ui_addNodeDockWidget from pkgutil import iter_modules from .. import nodes class addNodeDockWidget(QDockWidget, ui_addNodeDockWidget.Ui_DockWidget): def __init__(self, parent=None): super(addNodeDockWidget, self).__init__(p...
29.756098
73
0.632787
d52e187f4436d7f171d69cef414b0d9b809211a4
3,477
py
Python
test/unit/test_datetime.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
null
null
null
test/unit/test_datetime.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
14
2021-01-26T06:53:10.000Z
2022-03-14T11:16:54.000Z
test/unit/test_datetime.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012-2021 Snowflake Computing Inc. All right reserved. # import time from datetime import datetime import pytest from snowflake.connector.compat import IS_WINDOWS from snowflake.connector.sfdatetime import SnowflakeDateTime, SnowflakeDateTimeFormat de...
35.479592
85
0.688237
d52e2b899c79e40836cbd4991edbca99eaa8766a
2,603
py
Python
src/exabgp/bgp/message/update/attribute/sr/srv6/l3service.py
mesfin30seg/bgp
436bf10c32846266fb3554d8188d3c0abfdf6c92
[ "BSD-3-Clause" ]
null
null
null
src/exabgp/bgp/message/update/attribute/sr/srv6/l3service.py
mesfin30seg/bgp
436bf10c32846266fb3554d8188d3c0abfdf6c92
[ "BSD-3-Clause" ]
null
null
null
src/exabgp/bgp/message/update/attribute/sr/srv6/l3service.py
mesfin30seg/bgp
436bf10c32846266fb3554d8188d3c0abfdf6c92
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 """ srv6/l3service.py Created by Ryoga Saito 2022-02-24 Copyright (c) 2022 Ryoga Saito. All rights reserved. """ from struct import pack, unpack from exabgp.bgp.message.update.attribute.sr.prefixsid import PrefixSid from exabgp.bgp.message.update.attribute.sr.srv6.generic import GenericSrv6ServiceSu...
31.743902
100
0.510181
d52e6368f9b4b12f5272f264d9e7fd3022b5c018
5,142
py
Python
main/danny_fhd_delay_spectrum_lstbin_data_consolidation.py
dannyjacobs/PRISim
89e544d771cf5c4113a4d5787a57c9586fa98eac
[ "MIT" ]
null
null
null
main/danny_fhd_delay_spectrum_lstbin_data_consolidation.py
dannyjacobs/PRISim
89e544d771cf5c4113a4d5787a57c9586fa98eac
[ "MIT" ]
null
null
null
main/danny_fhd_delay_spectrum_lstbin_data_consolidation.py
dannyjacobs/PRISim
89e544d771cf5c4113a4d5787a57c9586fa98eac
[ "MIT" ]
null
null
null
import glob import numpy as NP from astropy.io import fits from astropy.io import ascii import scipy.constants as FCNST import progressbar as PGB import interferometry as RI import ipdb as PDB rootdir = '/data3/t_nithyanandan/' # rootdir = '/data3/MWA/lstbin_RA0/NT/' project_MWA = False project_LSTbin = True project...
39.553846
233
0.680863
d52e80a598cb07829f91870bdd3a6e014bdaa750
6,724
py
Python
python/modelparser.py
OleJohanBerg/riscv-custom-extension
53d63233bd3c9b7a01bea99916efea63f7ff677f
[ "BSD-3-Clause" ]
2
2019-08-21T07:19:35.000Z
2021-11-12T05:40:02.000Z
python/modelparser.py
OleJohanBerg/riscv-custom-extension
53d63233bd3c9b7a01bea99916efea63f7ff677f
[ "BSD-3-Clause" ]
null
null
null
python/modelparser.py
OleJohanBerg/riscv-custom-extension
53d63233bd3c9b7a01bea99916efea63f7ff677f
[ "BSD-3-Clause" ]
1
2019-11-28T21:08:50.000Z
2019-11-28T21:08:50.000Z
#!/usr/bin/env python # Copyright (c) 2018 TU Dresden # 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 condi...
34.839378
79
0.625074
d52e8c54708d67f467fcb301a3fce272da9fd0f8
3,648
py
Python
mudpi/server/mudpi_server.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
163
2020-02-17T16:34:54.000Z
2022-02-28T23:12:11.000Z
mudpi/server/mudpi_server.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
28
2020-05-05T19:42:25.000Z
2021-08-04T18:36:32.000Z
mudpi/server/mudpi_server.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
31
2020-02-27T18:30:42.000Z
2022-01-18T21:14:56.000Z
import sys import json import time import redis import socket import threading from logger.Logger import Logger, LOG_LEVEL class MudpiServer(object): """ A socket server used to allow incoming wiresless connections. MudPi will listen on the socket server for clients to join and send a message that should be ...
31.179487
137
0.67023
d52eb810ba354277c50a52755e25bc6123566db5
1,732
py
Python
LimonadaDevEnv/bin/jp.py
OpenSourceIronman/Limonada
323e4b162d46ff5dfe731b1d86e10351c5844408
[ "MIT" ]
null
null
null
LimonadaDevEnv/bin/jp.py
OpenSourceIronman/Limonada
323e4b162d46ff5dfe731b1d86e10351c5844408
[ "MIT" ]
null
null
null
LimonadaDevEnv/bin/jp.py
OpenSourceIronman/Limonada
323e4b162d46ff5dfe731b1d86e10351c5844408
[ "MIT" ]
null
null
null
#!/home/linux-kb3tyv/Limonada/LimonadaDevEnv/bin/python import sys import json import argparse from pprint import pformat import jmespath from jmespath import exceptions def main(): parser = argparse.ArgumentParser() parser.add_argument('expression') parser.add_argument('-f', '--filename', ...
31.490909
79
0.603349
d52edb77efa4890070eadefa6074573529d4699e
2,489
py
Python
tests/writers/test_processors.py
jbpratt78/mypy_boto3
c1cfc39aa5643ca149dd6a4b16124826fcc28fa0
[ "MIT" ]
null
null
null
tests/writers/test_processors.py
jbpratt78/mypy_boto3
c1cfc39aa5643ca149dd6a4b16124826fcc28fa0
[ "MIT" ]
null
null
null
tests/writers/test_processors.py
jbpratt78/mypy_boto3
c1cfc39aa5643ca149dd6a4b16124826fcc28fa0
[ "MIT" ]
null
null
null
import unittest from pathlib import Path from unittest.mock import patch, MagicMock from mypy_boto3_builder.structures.boto3_stubs_package import Boto3StubsPackage from mypy_boto3_builder.writers.processors import ( process_boto3_stubs, process_master, process_service, ) class ProcessorsTestCase(unittest...
43.666667
84
0.746485
d52eefeef5567f2233f8be65d04703ec4e2b6594
23,820
py
Python
cinder/tests/unit/volume/drivers/dell_emc/unity/test_adapter.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/drivers/dell_emc/unity/test_adapter.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/drivers/dell_emc/unity/test_adapter.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 Dell Inc. or its subsidiaries. # 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 requi...
36.646154
79
0.651721
d52f13966fe91d19301447149962c05ea331af1c
651
py
Python
survae/transforms/bijections/functional/mixtures/utils_logistic.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
262
2020-07-05T20:57:44.000Z
2022-03-28T02:24:43.000Z
survae/transforms/bijections/functional/mixtures/utils_logistic.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
17
2020-08-15T05:43:34.000Z
2022-01-31T12:24:21.000Z
survae/transforms/bijections/functional/mixtures/utils_logistic.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
35
2020-08-24T06:55:37.000Z
2022-02-11T05:17:58.000Z
import torch import torch.nn.functional as F def logistic_log_cdf(x, means, log_scales): return F.logsigmoid(torch.exp(-log_scales) * (x - means)) def logistic_log_one_minus_cdf(x, means, log_scales): ''' Uses that: `log(1-sigmoid(x)) = - softplus(x)` ''' return -F.softplus(torch.exp(-log_sc...
26.04
115
0.623656
d52f2c37e01fbec6b2c6f8d4500fdcafa8c91c1b
53,948
py
Python
tests/integration/test_expansions.py
arareko/pysoa
a90e428558500cf692f7f6e33fd358dd2779c328
[ "Apache-2.0" ]
91
2017-05-08T22:41:33.000Z
2022-02-09T11:37:07.000Z
tests/integration/test_expansions.py
arareko/pysoa
a90e428558500cf692f7f6e33fd358dd2779c328
[ "Apache-2.0" ]
63
2017-06-14T20:08:49.000Z
2021-06-16T23:08:25.000Z
tests/integration/test_expansions.py
arareko/pysoa
a90e428558500cf692f7f6e33fd358dd2779c328
[ "Apache-2.0" ]
26
2017-10-13T23:23:13.000Z
2022-01-11T16:58:17.000Z
from __future__ import ( absolute_import, unicode_literals, ) from typing import cast from unittest import TestCase from pysoa.client.client import Client from pysoa.test.compatibility import mock from pysoa.test.stub_service import ( StubClientTransport, stub_action, ) class TestClientWithExpansion...
37.231194
120
0.375139
d52f5502b0e3b45a51b1c98059e88bc5f8a1ec94
9,728
py
Python
flopy/utils/flopy_io.py
GWSci/flopy
5a17b879f46610f96a77e3be5da47965295dd20d
[ "BSD-3-Clause" ]
null
null
null
flopy/utils/flopy_io.py
GWSci/flopy
5a17b879f46610f96a77e3be5da47965295dd20d
[ "BSD-3-Clause" ]
null
null
null
flopy/utils/flopy_io.py
GWSci/flopy
5a17b879f46610f96a77e3be5da47965295dd20d
[ "BSD-3-Clause" ]
null
null
null
""" Module for input/output utilities """ import sys import numpy as np def _fmt_string(array, float_format='{}'): """makes a formatting string for a rec-array; given a desired float_format.""" fmt_string = '' for field in array.dtype.descr: vtype = field[1][1].lower() if (vtype ...
32.318937
99
0.549342
d52f71d0c839910b121aed596e2822ec9f7e8e87
48,377
py
Python
PREP_CAOM/gui/config_generator.py
spacetelescope/MAST_HLSP
48c1df2e6bef3e03f6eefe9f52808b345e1587b4
[ "MIT" ]
1
2017-10-16T15:30:08.000Z
2017-10-16T15:30:08.000Z
PREP_CAOM/gui/config_generator.py
spacetelescope/MAST_HLSP
48c1df2e6bef3e03f6eefe9f52808b345e1587b4
[ "MIT" ]
18
2018-05-11T16:07:48.000Z
2018-11-19T19:45:40.000Z
PREP_CAOM/gui/config_generator.py
spacetelescope/MAST_HLSP
48c1df2e6bef3e03f6eefe9f52808b345e1587b4
[ "MIT" ]
1
2017-10-03T19:38:59.000Z
2017-10-03T19:38:59.000Z
""" ..module:: crawl_dictionary :synopsis: This module is designed to add a given parameter to a provided dictionary under a designated parent. It searches for the parent recursively in order to examine all possible levels of nested dictionaries. If the parent is found, the parameter is added to the d...
42.773652
79
0.621659
d52f7aaf2c0a2b78fe952f8da6e0bd849a91c46d
3,708
py
Python
torchkbnufft/functional/kbnufft.py
chaithyagr/torchkbnufft
3592175fe2d1f611fb2cfec4d4150a850c92605f
[ "MIT" ]
null
null
null
torchkbnufft/functional/kbnufft.py
chaithyagr/torchkbnufft
3592175fe2d1f611fb2cfec4d4150a850c92605f
[ "MIT" ]
null
null
null
torchkbnufft/functional/kbnufft.py
chaithyagr/torchkbnufft
3592175fe2d1f611fb2cfec4d4150a850c92605f
[ "MIT" ]
null
null
null
from torch.autograd import Function from ..nufft.fft_functions import ( ifft_and_scale_on_gridded_data, scale_and_fft_on_image_volume, fft_filter, ) from .kbinterp import AdjKbInterpFunction, KbInterpFunction class KbNufftFunction(Function): @staticmethod def forward(ctx, x, om, interpob, interp_...
28.090909
85
0.647789
d52f8ab7664838ba31d733e3208253b98f574e8b
3,071
py
Python
google-cloud-sdk/.install/.backup/lib/surface/compute/instances/delete_access_config.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/surface/compute/instances/delete_access_config.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/compute/instances/delete_access_config.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2014 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...
38.3875
80
0.74015
d52fb23838f2d78026fe595d9b912773fb9889d8
2,983
py
Python
timdimm_auto.py
marissakotze/timDIMM
dde00a3bb6ca7c3d9b71e24f9363350a0e2a323f
[ "BSD-3-Clause" ]
1
2021-06-06T15:26:36.000Z
2021-06-06T15:26:36.000Z
timdimm_auto.py
marissakotze/timDIMM
dde00a3bb6ca7c3d9b71e24f9363350a0e2a323f
[ "BSD-3-Clause" ]
null
null
null
timdimm_auto.py
marissakotze/timDIMM
dde00a3bb6ca7c3d9b71e24f9363350a0e2a323f
[ "BSD-3-Clause" ]
3
2015-07-29T15:16:35.000Z
2017-12-01T13:02:36.000Z
#!/usr/bin/env python import logging import ephem import numpy as np import weather as wx import timdimm import ox_wagon from time import sleep def check_wx(log): salt_wx = wx.salt() wasp_wx = wx.wasp() grav_wx = wx.grav() rh = [] wind = [] for w in salt_wx, wasp_wx, grav_wx: if w: ...
24.252033
82
0.5823
d53013e47d994e5cbafd12fc7492851cc9965512
20,120
py
Python
sunpy/instr/tests/test_lyra.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
null
null
null
sunpy/instr/tests/test_lyra.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
null
null
null
sunpy/instr/tests/test_lyra.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
null
null
null
import os.path import datetime import numpy as np import pandas import pytest import astropy.units as u from astropy.time import TimeDelta from sunpy import timeseries from sunpy.data.test import rootdir from sunpy.instr import lyra from sunpy.time import is_time_equal, parse_time # Define location for test LYTAF d...
49.434889
99
0.632256
d5301468d51d5179b77b5541639356a2a732f9d4
1,814
py
Python
tests/cornac/utils/test_init_utils.py
redhat6/cornac
856cf0f546a0dc6b46f407128d89ef2534994c60
[ "Apache-2.0" ]
null
null
null
tests/cornac/utils/test_init_utils.py
redhat6/cornac
856cf0f546a0dc6b46f407128d89ef2534994c60
[ "Apache-2.0" ]
null
null
null
tests/cornac/utils/test_init_utils.py
redhat6/cornac
856cf0f546a0dc6b46f407128d89ef2534994c60
[ "Apache-2.0" ]
1
2020-03-19T13:58:33.000Z
2020-03-19T13:58:33.000Z
# Copyright 2018 The Cornac 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 ...
34.884615
117
0.658765