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
747c48dffcb0f4ee6cd5083834c0f0bc4a50bcff
2,680
py
Python
Lib/site-packages/kivy/core/video/video_ffmpeg.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
9
2016-09-03T07:20:01.000Z
2020-05-21T14:44:48.000Z
Lib/site-packages/kivy/core/video/video_ffmpeg.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
1
2017-05-30T20:45:15.000Z
2017-05-30T20:45:15.000Z
Lib/site-packages/kivy/core/video/video_ffmpeg.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
4
2016-09-10T15:27:54.000Z
2020-03-27T22:05:31.000Z
''' FFmpeg video abstraction ======================== .. versionadded:: 1.0.8 This abstraction requires ffmpeg python extensions. We have made a special extension that is used for the android platform but can also be used on x86 platforms. The project is available at:: http://github.com/tito/ffmpeg-android The ...
25.046729
77
0.598134
747c4c4ea4a85961bca67ee3cba562132c2b0c14
1,903
py
Python
dev/time_step_instability.py
luzpaz/Pylot
22726ce60c8fa6efb5b1bbb6b7a5c7ed987c275f
[ "MIT" ]
24
2019-12-16T08:42:20.000Z
2022-03-12T05:37:44.000Z
dev/time_step_instability.py
luzpaz/Pylot
22726ce60c8fa6efb5b1bbb6b7a5c7ed987c275f
[ "MIT" ]
1
2022-02-17T04:29:09.000Z
2022-03-01T23:28:26.000Z
dev/time_step_instability.py
luzpaz/Pylot
22726ce60c8fa6efb5b1bbb6b7a5c7ed987c275f
[ "MIT" ]
7
2020-07-31T05:02:30.000Z
2021-06-16T11:04:51.000Z
"""For investigating how the timestep of the RK4 integrator can affect the stability of a simulated system.""" import numpy as np import matplotlib.pyplot as plt def f(y, t): """State function. Parameters ---------- y : ndarray Vector of states. Returns ------- dy_dt : ndarray ...
19.418367
110
0.515502
747c56368565e51bb2c61ba4d68c54a05fe8604d
324
py
Python
myQuickbotCode/odometryTest.py
kohloderso/quickbot_bbb
430510b1b3bc54f72fd738b8235abecdfa186ff2
[ "BSD-3-Clause" ]
null
null
null
myQuickbotCode/odometryTest.py
kohloderso/quickbot_bbb
430510b1b3bc54f72fd738b8235abecdfa186ff2
[ "BSD-3-Clause" ]
null
null
null
myQuickbotCode/odometryTest.py
kohloderso/quickbot_bbb
430510b1b3bc54f72fd738b8235abecdfa186ff2
[ "BSD-3-Clause" ]
null
null
null
import quickbot_config as config import Adafruit_BBIO.ADC as ADC import Adafruit_BBIO.PWM as PWM import Adafruit_BBIO.GPIO as GPIO import time ADC.setup() while True: value_l = ADC.read_raw(config.Ol) value_r = ADC.read_raw(config.Or) print("left: " + str(value_l) + "right: " + str(value_r)) time.slee...
24.923077
61
0.725309
747c9286e63b2d464a9bb57b462a9b55881b9fcf
265
py
Python
terrascript/random/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/random/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/random/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/random/__init__.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class random(terrascript.Provider): pass
17.666667
79
0.769811
747c9c0f2be8b6ebb08812717e31d80f089331d2
386
py
Python
tolqc-api/app/main/resource/dataset.py
sanger-tol/tolqc
6ef535a0eb0028c5d9270ff18d95d38c6656cbdd
[ "MIT" ]
null
null
null
tolqc-api/app/main/resource/dataset.py
sanger-tol/tolqc
6ef535a0eb0028c5d9270ff18d95d38c6656cbdd
[ "MIT" ]
null
null
null
tolqc-api/app/main/resource/dataset.py
sanger-tol/tolqc
6ef535a0eb0028c5d9270ff18d95d38c6656cbdd
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 Genome Research Ltd. # # SPDX-License-Identifier: MIT from main.service import DatasetService from main.swagger import DatasetSwagger from .base import BaseResource, setup_resource api_dataset = DatasetSwagger.api @setup_resource class DatasetResource(BaseResource): class Meta: ...
20.315789
51
0.779793
747c9fcc8eead64b887d91a0075aa5bc8a04c6a9
5,143
py
Python
huginn/aircraft.py
pmatigakis/flightsim
a35fec1df844eec05c7ab97a7c70c750e43a9f08
[ "BSD-3-Clause" ]
13
2015-11-14T03:57:42.000Z
2021-04-19T18:12:30.000Z
huginn/aircraft.py
pmatigakis/flightsim
a35fec1df844eec05c7ab97a7c70c750e43a9f08
[ "BSD-3-Clause" ]
null
null
null
huginn/aircraft.py
pmatigakis/flightsim
a35fec1df844eec05c7ab97a7c70c750e43a9f08
[ "BSD-3-Clause" ]
7
2016-08-30T10:44:00.000Z
2019-11-23T10:24:24.000Z
""" The huginn.aircraft module contains classes that wrap the jsbsim object and and provide access to the simulated components of the aircraft. """ import logging from huginn.unit_conversions import convert_jsbsim_force from huginn.sensors import Sensors from huginn.instruments import Instruments from huginn.fdm impor...
30.431953
77
0.592456
747ca0c2c0f1f7a21fc02e1d0823c770af618f21
13,992
py
Python
keylime/tpm_abstract.py
nabilschear/python-keylime
85623891639819f5c2f503a5d187d9a076e1bcef
[ "BSD-2-Clause" ]
null
null
null
keylime/tpm_abstract.py
nabilschear/python-keylime
85623891639819f5c2f503a5d187d9a076e1bcef
[ "BSD-2-Clause" ]
null
null
null
keylime/tpm_abstract.py
nabilschear/python-keylime
85623891639819f5c2f503a5d187d9a076e1bcef
[ "BSD-2-Clause" ]
1
2019-11-06T22:48:52.000Z
2019-11-06T22:48:52.000Z
'''DISTRIBUTION STATEMENT A. Approved for public release: distribution unlimited. This material is based upon work supported by the Assistant Secretary of Defense for Research and Engineering under Air Force Contract No. FA8721-05-C-0002 and/or FA8702-15-D-0001. Any opinions, findings, conclusions or recommendations e...
33.078014
198
0.621069
747cc6f94eab2474836b1176e1dd3efb4864aae7
2,007
py
Python
integrations/tensorflow/e2e/keras/lstm_test.py
BernhardRiemann/iree
471349762b316f7d6b83eb5f9089255d78052758
[ "Apache-2.0" ]
1
2021-03-15T13:53:30.000Z
2021-03-15T13:53:30.000Z
integrations/tensorflow/e2e/keras/lstm_test.py
BernhardRiemann/iree
471349762b316f7d6b83eb5f9089255d78052758
[ "Apache-2.0" ]
null
null
null
integrations/tensorflow/e2e/keras/lstm_test.py
BernhardRiemann/iree
471349762b316f7d6b83eb5f9089255d78052758
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
29.514706
80
0.712008
747cf630987786867848ba69f62f7368ed55913f
5,727
py
Python
main.py
reigHns/RANZCR-CLiP---Catheter-and-Line-Position-Challenge
80d4177bf74f9ffa5f7906687ebe648832ec84e1
[ "Apache-2.0" ]
1
2021-09-16T06:24:39.000Z
2021-09-16T06:24:39.000Z
main.py
reigHns/RANZCR-CLiP---Catheter-and-Line-Position-Challenge
80d4177bf74f9ffa5f7906687ebe648832ec84e1
[ "Apache-2.0" ]
null
null
null
main.py
reigHns/RANZCR-CLiP---Catheter-and-Line-Position-Challenge
80d4177bf74f9ffa5f7906687ebe648832ec84e1
[ "Apache-2.0" ]
null
null
null
"""Model training.""" import datetime import os import random import time import numpy as np import pandas as pd import pytz import sklearn import torch import torch.nn as nn from sklearn.model_selection import GroupKFold from torch.utils.data import DataLoader import src.metrics as metrics import src.results as res...
35.79375
177
0.662651
747d4fb4d1466713ec0d509dc5bd8b3b1c2331c6
11,708
py
Python
tutorials/autotvm/tune_simple_template.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
null
null
null
tutorials/autotvm/tune_simple_template.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
null
null
null
tutorials/autotvm/tune_simple_template.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
null
null
null
""" Writing tunable template and Using auto-tuner ============================================= **Author**: `Lianmin Zheng <https://https://github.com/merrymercy>`_ This is an introduction tutorial to the auto-tuning module in tvm. There are two steps in auto-tuning. The first step is defining a search space. The sec...
41.225352
157
0.646054
747d5e93b622da20efd1bec2ab53bbca5f176e64
3,350
py
Python
tests/unit/test_reservation.py
ignatenkobrain/ns1-python
f814fd809d08356c48ba686c041bd057ee6cbb75
[ "MIT" ]
null
null
null
tests/unit/test_reservation.py
ignatenkobrain/ns1-python
f814fd809d08356c48ba686c041bd057ee6cbb75
[ "MIT" ]
null
null
null
tests/unit/test_reservation.py
ignatenkobrain/ns1-python
f814fd809d08356c48ba686c041bd057ee6cbb75
[ "MIT" ]
null
null
null
import pytest import ns1.rest.ipam try: # Python 3.3 + import unittest.mock as mock except ImportError: import mock def Any(): class Any(): def __eq__(self, other): return True return Any() @pytest.fixture def reservation_config(config): config.loadFromDict({ 'end...
35.263158
78
0.451343
747d745aeccdad5e85f83598bcf15e536609bfb2
440
py
Python
molotov/tests/example2.py
jldiaz-uniovi/molotov
137864eb4ca7301303af21aadadd3f735dd0d042
[ "Apache-2.0" ]
401
2017-01-25T13:42:37.000Z
2022-03-27T21:29:18.000Z
molotov/tests/example2.py
jldiaz-uniovi/molotov
137864eb4ca7301303af21aadadd3f735dd0d042
[ "Apache-2.0" ]
131
2017-01-19T20:34:40.000Z
2022-03-02T12:49:32.000Z
molotov/tests/example2.py
jldiaz-uniovi/molotov
137864eb4ca7301303af21aadadd3f735dd0d042
[ "Apache-2.0" ]
31
2017-01-26T01:18:55.000Z
2022-03-25T15:11:42.000Z
""" This Molotov script has 2 scenario """ from molotov import scenario _API = "http://localhost:8080" @scenario(weight=40) async def scenario_one(session): async with session.get(_API) as resp: res = await resp.json() assert res["result"] == "OK" assert resp.status == 200 @scenario(...
18.333333
41
0.659091
747d7ac6d6901450c7521e6aba3c2fe5c0f467c9
8,492
py
Python
oscar/lib/python2.7/site-packages/django/core/serializers/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/core/serializers/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/core/serializers/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
""" Interfaces for serializing Django objects. Usage:: from django.core import serializers json = serializers.serialize("json", some_queryset) objects = list(serializers.deserialize("json", json)) To add your own serializers, use the SERIALIZATION_MODULES setting:: SERIALIZATION_MODULES =...
35.383333
93
0.640132
747d85534bb0fa469196930159e3e47882a69606
2,089
py
Python
sharebears/db_util.py
mgp/sharebears
aabb2c568707cea1107498a05d7f56bd772ef4fb
[ "Apache-2.0" ]
1
2015-01-17T20:02:14.000Z
2015-01-17T20:02:14.000Z
sharebears/db_util.py
mgp/sharebears
aabb2c568707cea1107498a05d7f56bd772ef4fb
[ "Apache-2.0" ]
null
null
null
sharebears/db_util.py
mgp/sharebears
aabb2c568707cea1107498a05d7f56bd772ef4fb
[ "Apache-2.0" ]
null
null
null
import functools import sqlalchemy as sa import sqlalchemy.engine as sa_engine import sqlalchemy.orm as sa_orm import sys _session = None def create_engine(database_name, database_uri): """Returns an engine for the given database.""" if database_name == "sqlite": # http://docs.sqlalchemy.org/en/rel_0_9/dial...
25.168675
84
0.731929
747dd6191739e6618b485938d838129d2b4c6ec9
13,634
py
Python
tests/unit/modules/linux_lvm_test.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/linux_lvm_test.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/linux_lvm_test.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Rupesh Tare <rupesht@saltstack.com>` ''' # Import Python libs from __future__ import absolute_import import os.path # Import Salt Testing Libs from salttesting import TestCase, skipIf from salttesting.mock import ( MagicMock, patch, NO_MOCK, NO_MOCK...
47.176471
93
0.492079
747de438e0c0b2c80ce0f362d4bcbbe85eabf8a0
2,347
py
Python
scripts/lessons/Lesson3.py
njfritter/ml-mastery
d9fe3c0cfbbdf0ca039742f31537654c3b2d5a58
[ "MIT" ]
7
2020-07-09T12:06:11.000Z
2021-05-09T18:05:03.000Z
scripts/lessons/Lesson3.py
njfritter/ml-mastery
d9fe3c0cfbbdf0ca039742f31537654c3b2d5a58
[ "MIT" ]
6
2018-05-09T22:29:21.000Z
2018-05-24T23:03:55.000Z
scripts/lessons/Lesson3.py
Njfritter/ml-mastery
d9fe3c0cfbbdf0ca039742f31537654c3b2d5a58
[ "MIT" ]
7
2018-08-27T04:43:55.000Z
2021-09-05T14:09:25.000Z
#!/usr/bin/env python3 ############################### # Mastering ML Python Mini Course # # Inspired by the project here: # # https://s3.amazonaws.com/MLMastery/machine_learning_mastery_with_python_mini_course.pdf?__s=mxhvphowryg2sfmzus2q # # By Nathan Fritter # # Project will soon be found at: # # https://www.iner...
25.236559
114
0.696208
747de7fed84efb5dda14c7e9449620975aed6857
750
py
Python
ryu/ofproto/ether.py
rpt/ryu
ebf7638aac4481762e10ec90958f1480761a3893
[ "Apache-2.0" ]
1
2021-09-26T06:09:27.000Z
2021-09-26T06:09:27.000Z
ryu/ofproto/ether.py
rpt/ryu
ebf7638aac4481762e10ec90958f1480761a3893
[ "Apache-2.0" ]
null
null
null
ryu/ofproto/ether.py
rpt/ryu
ebf7638aac4481762e10ec90958f1480761a3893
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2012 Nippon Telegraph and Telephone 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 appli...
32.608696
69
0.773333
747df1f1b4929e601cc7f0000e3d899334e3b514
9,224
py
Python
project/tests/test_auth.py
repodevs/flask-microservices
021cb2f178753e429c0388202045fa53ac33427a
[ "MIT" ]
2
2018-08-02T18:19:19.000Z
2019-08-18T14:49:44.000Z
project/tests/test_auth.py
repodevs/flask-microservices
021cb2f178753e429c0388202045fa53ac33427a
[ "MIT" ]
null
null
null
project/tests/test_auth.py
repodevs/flask-microservices
021cb2f178753e429c0388202045fa53ac33427a
[ "MIT" ]
2
2019-05-30T11:19:20.000Z
2019-08-18T14:49:54.000Z
# -*- coding: utf-8 -*- import json import time from project import db from project.api.models import User from project.tests.base import BaseTestCase from project.tests.utils import add_user class TestAuthBlueprint(BaseTestCase): def test_user_registration(self): with self.client: response = self.client.pos...
29.28254
69
0.66533
747e08d4cccd4a46ccbe412d4c739ac67a39cb53
1,512
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/gallery_artifact_publishing_profile_base_py3.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/v2019_03_01/models/gallery_artifact_publishing_profile_base_py3.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/v2019_03_01/models/gallery_artifact_publishing_profile_base_py3.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 ...
36.878049
78
0.63955
747e12cfbfffe6a7bc384ab1fa071222d1b818de
234
py
Python
tredis/__init__.py
gmr/tredis
2e91c6a58a35460be0525c51ac6a98fde3b506ad
[ "BSD-3-Clause" ]
22
2015-11-16T18:24:23.000Z
2019-01-22T06:41:51.000Z
tredis/__init__.py
gmr/tredis
2e91c6a58a35460be0525c51ac6a98fde3b506ad
[ "BSD-3-Clause" ]
8
2016-01-26T21:55:15.000Z
2020-11-17T18:00:13.000Z
tredis/__init__.py
gmr/tredis
2e91c6a58a35460be0525c51ac6a98fde3b506ad
[ "BSD-3-Clause" ]
9
2015-11-28T19:32:14.000Z
2020-10-19T06:47:26.000Z
""" TRedis ====== An asynchronous Redis client for Tornado """ from tredis.client import Client, RedisClient from tredis.exceptions import * from tredis.strings import BITOP_AND, BITOP_OR, BITOP_XOR, BITOP_NOT __version__ = '0.8.0'
19.5
68
0.760684
747e15c0b545f639342e9a59627c353aa998c1a0
7,157
py
Python
twisted/words/protocols/jabber/jid.py
sxamit/twisted
30f6966329c857c3631c60aeb420d84d7828e01e
[ "MIT", "Unlicense" ]
1
2017-08-07T14:52:02.000Z
2017-08-07T14:52:02.000Z
Lib/site-packages/twisted/words/protocols/jabber/jid.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/twisted/words/protocols/jabber/jid.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
1
2018-11-07T12:52:07.000Z
2018-11-07T12:52:07.000Z
# -*- test-case-name: twisted.words.test.test_jabberjid -*- # # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Jabber Identifier support. This module provides an object to represent Jabber Identifiers (JIDs) and parse string representations into them with proper checking for illegal charact...
28.628
116
0.58069
747e37dc09a8177bc2b3637df45ff2f342aceeb7
14,273
py
Python
test/unit/channel/test_commandchannel.py
arielmakestuff/loadlimit
70d3d23eecfe7922699098ea4901cc8673d14576
[ "MIT" ]
null
null
null
test/unit/channel/test_commandchannel.py
arielmakestuff/loadlimit
70d3d23eecfe7922699098ea4901cc8673d14576
[ "MIT" ]
5
2016-11-28T16:59:44.000Z
2017-03-18T17:10:40.000Z
test/unit/channel/test_commandchannel.py
arielmakestuff/loadlimit
70d3d23eecfe7922699098ea4901cc8673d14576
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # test/unit/channel/test_commandchannel.py # Copyright (C) 2016 authors and contributors (see AUTHORS file) # # This module is released under the MIT License. """Test CommmandChannel""" # ============================================================================ # Imports # =================...
29.859833
78
0.553773
747e3d7d753cc502bb55654fd06b6b3062a76b22
4,308
py
Python
data_analysis/functions_connectivity.py
DiGyt/NBP_Hyperscanning
2981e0475b48702ba7bfc14d93aa57298d603928
[ "BSD-3-Clause" ]
null
null
null
data_analysis/functions_connectivity.py
DiGyt/NBP_Hyperscanning
2981e0475b48702ba7bfc14d93aa57298d603928
[ "BSD-3-Clause" ]
1
2020-03-31T11:35:25.000Z
2020-03-31T11:35:25.000Z
data_analysis/functions_connectivity.py
DiGyt/NBP_Hyperscanning
2981e0475b48702ba7bfc14d93aa57298d603928
[ "BSD-3-Clause" ]
null
null
null
# functions_connectivity.py # # A collection of functions used to compute our connectivity measures # import time import logging logging.basicConfig(format='%(asctime)s %(message)s') from joblib import Parallel, delayed import numpy as np import scipy.signal import matplotlib.pyplot as plt import numexpr as ne impor...
36.820513
116
0.667595
747e677b3aff8911413af27e02f9bb87a1ab5d50
491
py
Python
ersteops/emergency/migrations/0007_emergency_has_paid.py
Prescrypto/ErsteOps
0b744173fb4f500003c96c4dcb26fb67d6eaa5ec
[ "MIT" ]
null
null
null
ersteops/emergency/migrations/0007_emergency_has_paid.py
Prescrypto/ErsteOps
0b744173fb4f500003c96c4dcb26fb67d6eaa5ec
[ "MIT" ]
33
2017-11-24T19:44:57.000Z
2022-02-12T07:02:53.000Z
ersteops/emergency/migrations/0007_emergency_has_paid.py
Prescrypto/ErsteOps
0b744173fb4f500003c96c4dcb26fb67d6eaa5ec
[ "MIT" ]
1
2017-12-11T09:15:04.000Z
2017-12-11T09:15:04.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-05-24 06:36 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('emergency', '0006_auto_20180524_0433'), ] operations = [ migrations.AddFiel...
23.380952
85
0.633401
747e701cb6a3eeb371aa2d02f8658e6cba102d27
2,013
py
Python
pycycle/elements/ambient.py
swryan/pyCycleOld
fbab35b74d0e5487abe686ae0823ff52e75afb3b
[ "Apache-2.0" ]
null
null
null
pycycle/elements/ambient.py
swryan/pyCycleOld
fbab35b74d0e5487abe686ae0823ff52e75afb3b
[ "Apache-2.0" ]
null
null
null
pycycle/elements/ambient.py
swryan/pyCycleOld
fbab35b74d0e5487abe686ae0823ff52e75afb3b
[ "Apache-2.0" ]
null
null
null
from openmdao.api import Group, ExplicitComponent from openmdao.api import LinearBlockGS from pycycle.elements.US1976 import USatm1976Comp class DeltaTs(ExplicitComponent): """Computes temperature based on delta from atmospheric""" def setup(self): # inputs self.add_input('Ts_in', val=500.0,...
27.575342
111
0.620467
747e80812430fa75166daf48ec18272b58d525e2
13,199
py
Python
plugins/habitat_plugin/habitat_tasks.py
prithv1/allenact
ee736e6a3aeed29b3661ee18fa0dc0a68a40201e
[ "MIT" ]
1
2020-09-10T13:09:14.000Z
2020-09-10T13:09:14.000Z
plugins/habitat_plugin/habitat_tasks.py
andrlima/allenact
f29dd6f0ec62425b02ca07fee815b1a82627a28e
[ "MIT" ]
null
null
null
plugins/habitat_plugin/habitat_tasks.py
andrlima/allenact
f29dd6f0ec62425b02ca07fee815b1a82627a28e
[ "MIT" ]
null
null
null
# TODO: @klemenkotar please fix all type errors from typing import Tuple, List, Dict, Any, Optional, Union, Sequence, cast import gym import numpy as np from habitat.tasks.nav.shortest_path_follower import ShortestPathFollower from core.base_abstractions.misc import RLStepResult from core.base_abstractions.sensor im...
34.917989
97
0.618683
747e808c7f8a18910e020066dc2e8e811d0c6a9a
4,077
py
Python
SCRAPE/Lib/site-packages/parsel/csstranslator.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
3
2020-05-16T01:54:47.000Z
2021-04-27T01:37:08.000Z
SCRAPE/Lib/site-packages/parsel/csstranslator.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
7
2020-05-11T01:45:45.000Z
2022-03-02T14:58:30.000Z
SCRAPE/Lib/site-packages/parsel/csstranslator.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
5
2020-05-12T11:04:44.000Z
2020-05-31T14:08:00.000Z
try: from functools import lru_cache except ImportError: from functools32 import lru_cache from cssselect import GenericTranslator as OriginalGenericTranslator from cssselect import HTMLTranslator as OriginalHTMLTranslator from cssselect.xpath import XPathExpr as OriginalXPathExpr from cssselect.xpath import _...
35.146552
82
0.634535
747e9ac031bd06c889cffe19a375a28c9a434250
37,790
py
Python
src/sgraph/sgraph.py
softagram/sgraph
ef16ad86ffb69a8f5210c69748f6e32c0f579141
[ "MIT" ]
null
null
null
src/sgraph/sgraph.py
softagram/sgraph
ef16ad86ffb69a8f5210c69748f6e32c0f579141
[ "MIT" ]
6
2021-08-12T18:08:54.000Z
2021-11-22T00:14:09.000Z
src/sgraph/sgraph.py
softagram/sgraph
ef16ad86ffb69a8f5210c69748f6e32c0f579141
[ "MIT" ]
2
2021-08-12T05:52:21.000Z
2021-11-22T13:21:26.000Z
""" Example how to use this to parse and handle model files with this tool. import sys from sgraph.sgraph import parse_deps egm = parse_deps('file.txt') #see above line comment print 'Nodes',egm.rootNode.getNodeCount() """ import io import os import xml.sax.handler import sys import collections import codecs im...
37.121807
100
0.459645
747ea4c75d0147b0d28e85915193639b334f4ca4
2,429
py
Python
alipay/aop/api/domain/AlipayMarketingActivityOrdervoucherCodedepositModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayMarketingActivityOrdervoucherCodedepositModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayMarketingActivityOrdervoucherCodedepositModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayMarketingActivityOrdervoucherCodedepositModel(object): def __init__(self): self._activity_id = None self._out_biz_no = None self._voucher_codes = None @property...
30.746835
77
0.5986
747ec8dec65d881e756482971031d8336eaafc7b
8,163
py
Python
trainer.py
tarepan/mutated_DVC
7fbbf4754285944387ec5d5108ed5f3d473d4f81
[ "MIT" ]
null
null
null
trainer.py
tarepan/mutated_DVC
7fbbf4754285944387ec5d5108ed5f3d473d4f81
[ "MIT" ]
null
null
null
trainer.py
tarepan/mutated_DVC
7fbbf4754285944387ec5d5108ed5f3d473d4f81
[ "MIT" ]
1
2019-06-05T16:03:32.000Z
2019-06-05T16:03:32.000Z
import argparse import os import numpy as np import cupy as cp import chainer from chainer import training from chainer.training import extensions from chainer.dataset import convert from chainer import cuda, Variable import dataset import image from nets.models import Generator, Discriminator, padding from dataset im...
42.963158
136
0.640328
747ecbbe2badbe89a255313eda128f9f84373461
3,488
py
Python
tests/chainer_tests/functions_tests/activation_tests/test_tanh.py
kafi2016/chainer-kafi
6cc4228dc8c1ebd78d9f5347c1e848cc0b77c4d2
[ "MIT" ]
null
null
null
tests/chainer_tests/functions_tests/activation_tests/test_tanh.py
kafi2016/chainer-kafi
6cc4228dc8c1ebd78d9f5347c1e848cc0b77c4d2
[ "MIT" ]
null
null
null
tests/chainer_tests/functions_tests/activation_tests/test_tanh.py
kafi2016/chainer-kafi
6cc4228dc8c1ebd78d9f5347c1e848cc0b77c4d2
[ "MIT" ]
null
null
null
import unittest import mock import numpy import chainer from chainer import cuda from chainer import functions from chainer import gradient_check from chainer import testing from chainer.testing import attr from chainer.testing import condition @testing.parameterize(*testing.product({ 'shape': [(3, 2), ()], ...
32
79
0.662844
747eeb7da5af77da4c33a9205b2e355f5ac7ca55
2,572
py
Python
src/typed_graphs/graph.py
pkch/typed_graphs
5f7bc17967002edf54df3347552d58bb54f54e6f
[ "MIT" ]
3
2017-04-02T00:51:34.000Z
2017-04-20T16:56:10.000Z
src/typed_graphs/graph.py
pkch/typed_graphs
5f7bc17967002edf54df3347552d58bb54f54e6f
[ "MIT" ]
null
null
null
src/typed_graphs/graph.py
pkch/typed_graphs
5f7bc17967002edf54df3347552d58bb54f54e6f
[ "MIT" ]
null
null
null
# module: graph.py from typing import ( Set, Dict, DefaultDict, Iterable, Iterator, Any, Type, AbstractSet, TypeVar ) from collections import defaultdict from io import StringIO import pytest # type: ignore from igraph import IGraphMutable, INodeMutable, InvalidOperation from graph_functions import generic_tes...
27.073684
80
0.614308
747f0477227dfa1720c43ae8d4ad2ce91fda3ceb
2,219
py
Python
optneal/dimod_generators_random.py
mullzhang/genqubo
ad0a29aeb31d931419c847d02669fffd08bb974e
[ "Apache-2.0" ]
null
null
null
optneal/dimod_generators_random.py
mullzhang/genqubo
ad0a29aeb31d931419c847d02669fffd08bb974e
[ "Apache-2.0" ]
null
null
null
optneal/dimod_generators_random.py
mullzhang/genqubo
ad0a29aeb31d931419c847d02669fffd08bb974e
[ "Apache-2.0" ]
1
2021-02-21T15:18:28.000Z
2021-02-21T15:18:28.000Z
import numpy as np import numpy.random from dimod.binary_quadratic_model import BinaryQuadraticModel from dimod.decorators import graph_argument @graph_argument('graph') def normal(graph, vartype, loc=0.0, scale=1.0, cls=BinaryQuadraticModel, seed=None, zero_lbias=False): """Generate a bqm with random...
38.258621
97
0.624155
747f360c322071e5093ceb0c424901f01bfa978d
2,766
py
Python
backend/schedule_worker/workers/spawn_worker.py
evemorgen/GdzieJestMojTramwajProject
65a090ae4222053a2a0a1b145df5196f3658065c
[ "MIT" ]
null
null
null
backend/schedule_worker/workers/spawn_worker.py
evemorgen/GdzieJestMojTramwajProject
65a090ae4222053a2a0a1b145df5196f3658065c
[ "MIT" ]
null
null
null
backend/schedule_worker/workers/spawn_worker.py
evemorgen/GdzieJestMojTramwajProject
65a090ae4222053a2a0a1b145df5196f3658065c
[ "MIT" ]
null
null
null
import logging import os import json import time from tornado.gen import coroutine from lib.tornado_yieldperiodic.yieldperiodic import YieldPeriodicCallback from utils import Config, Przystanki, TramwajFactory from db import MpkDb, PrzystankiDb class SpawnWorker(YieldPeriodicCallback): def __init__(self): ...
33.731707
100
0.573391
747f476b4b9bb816f1a5af067e39501900685ed5
33,381
py
Python
cubepy/test/test_cube.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
17
2019-12-04T19:22:19.000Z
2021-07-28T11:17:05.000Z
cubepy/test/test_cube.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
9
2019-12-13T15:34:43.000Z
2022-02-10T11:43:00.000Z
cubepy/test/test_cube.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
5
2019-12-04T15:57:06.000Z
2021-08-20T19:59:26.000Z
import unittest import functools import numpy as np from cubepy import Index, Axis, Cube, stack, concatenate from cubepy.exceptions import InvalidAxisLengthError, NonUniqueDimNamesError from cubepy.utils import is_axis, is_indexed def year_quarter_cube(): """Creates a sample 2D cube with axes "year" and "quarter...
39.087822
106
0.577334
747f6f4de69d201c7c8baaa96db496bc68fec215
2,353
py
Python
scoreboard/auth/appengine.py
jnovikov/ctfscoreboard
15c2d2ec766a8360c42581e5952c8a18e2b4f7d8
[ "Apache-2.0" ]
null
null
null
scoreboard/auth/appengine.py
jnovikov/ctfscoreboard
15c2d2ec766a8360c42581e5952c8a18e2b4f7d8
[ "Apache-2.0" ]
null
null
null
scoreboard/auth/appengine.py
jnovikov/ctfscoreboard
15c2d2ec766a8360c42581e5952c8a18e2b4f7d8
[ "Apache-2.0" ]
null
null
null
# 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...
27.682353
78
0.699108
747f7429b915b77a30dd219f81f6ba52a8576602
6,646
py
Python
python_modules/libraries/dagster-docker/dagster_docker/docker_run_launcher.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-docker/dagster_docker/docker_run_launcher.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-docker/dagster_docker/docker_run_launcher.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
import os import docker from dagster_docker.utils import DOCKER_CONFIG_SCHEMA, validate_docker_config, validate_docker_image from dagster import check from dagster.core.launcher.base import ( CheckRunHealthResult, LaunchRunContext, ResumeRunContext, RunLauncher, WorkerStatus, ) from dagster.core.s...
30.626728
103
0.634066
747f899f6bc86d30c7336043dc9effb9724f2a64
1,578
py
Python
setup.py
linhd-postdata/spacy-affixes
c4aff3a75cec8f782cced8a7765fbfb25369d677
[ "Apache-2.0" ]
3
2019-11-21T09:55:41.000Z
2020-07-18T04:01:10.000Z
setup.py
linhd-postdata/spacy-affixes
c4aff3a75cec8f782cced8a7765fbfb25369d677
[ "Apache-2.0" ]
19
2019-05-28T11:20:39.000Z
2021-02-16T09:16:32.000Z
setup.py
linhd-postdata/spacy-affixes
c4aff3a75cec8f782cced8a7765fbfb25369d677
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from glob import glob from setuptools import setup, find_packages from os.path import basename from os.path import splitext with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: hist...
28.690909
79
0.660963
747ff930061d50a91fe64011b525c9d097c1b747
2,100
py
Python
src/microengine/testbase.py
polyswarm/microengine
3e8a2263ef7320e7c603177ddb9ef64fd659c324
[ "MIT" ]
3
2018-08-20T19:33:30.000Z
2018-09-15T00:13:56.000Z
src/microengine/testbase.py
polyswarm/microengine
3e8a2263ef7320e7c603177ddb9ef64fd659c324
[ "MIT" ]
10
2018-08-27T23:39:21.000Z
2018-09-24T21:12:19.000Z
src/microengine/testbase.py
polyswarm/microengine
3e8a2263ef7320e7c603177ddb9ef64fd659c324
[ "MIT" ]
null
null
null
import unittest import uuid import click from microengine.util import get_test_key_and_pw import asyncio from malwarerepoclient.client import PolySwarmMalwareRepoClient, DummyMalwareRepoClient from microengine.backend import choose_backend class CommonMicroEngineTests: malware_repo_client_cls = DummyMalwareRepo...
28.378378
100
0.68619
74805b0d764a9b991a0c39ed2639a196dfed5bbe
1,300
py
Python
do_qmcpack_sz.py
Meso272/PyTorch-VAE
b1f80082a92c706969a63162ae083b9f7d15d9aa
[ "Apache-2.0" ]
null
null
null
do_qmcpack_sz.py
Meso272/PyTorch-VAE
b1f80082a92c706969a63162ae083b9f7d15d9aa
[ "Apache-2.0" ]
null
null
null
do_qmcpack_sz.py
Meso272/PyTorch-VAE
b1f80082a92c706969a63162ae083b9f7d15d9aa
[ "Apache-2.0" ]
1
2022-02-11T23:22:41.000Z
2022-02-11T23:22:41.000Z
import os import numpy as np datafolder="../QMCPACK/288/288x115x69x69/split" ebs=[i*1e-4 for i in range(1,10)]+[i*1e-3 for i in range(1,10)]+[i*1e-2 for i in range(1,11)] cr=np.zeros((29,289),dtype=np.float32) psnr=np.zeros((29,289),dtype=np.float32) idxrange=range(288) for i,eb in enumerate(ebs): cr[i+1][0]=e...
31.707317
93
0.552308
748068eedd76008a7883225e153472c28fbeebb2
1,114
py
Python
crash_generator/trilateration/trilateration_solution.py
donlelef/robot
5aeedaa05117bbb0f766167ae66ade143e0e91ea
[ "MIT" ]
null
null
null
crash_generator/trilateration/trilateration_solution.py
donlelef/robot
5aeedaa05117bbb0f766167ae66ade143e0e91ea
[ "MIT" ]
null
null
null
crash_generator/trilateration/trilateration_solution.py
donlelef/robot
5aeedaa05117bbb0f766167ae66ade143e0e91ea
[ "MIT" ]
null
null
null
import numpy as np from crash_generator.trilateration.planar_geometry import Line2D, Point2D class CollinearityException(BaseException): def __init__(self): super(CollinearityException, self).__init__('Points are collinear.') class TrilaterationSolver: def __init__(self, tolerance=0.2): """ ...
35.935484
91
0.552065
74808a7b1fb29729390ecb3b963aebfb63c527c2
1,266
py
Python
blousebrothers/search/search_indexes.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
1
2022-01-27T11:58:10.000Z
2022-01-27T11:58:10.000Z
blousebrothers/search/search_indexes.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
5
2021-03-19T00:01:54.000Z
2022-03-11T23:46:21.000Z
blousebrothers/search/search_indexes.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
null
null
null
from oscar.apps.search.search_indexes import ProductIndex as CoreProductIndex from haystack import indexes class ProductIndex(CoreProductIndex): """ When ProductIndex is modifed, you need to update solr schema.xml by running : $> ./manage.py build_solr_schema Then you need to sync compose/solr/solr_...
33.315789
87
0.692733
7480b07bee4fa8eaf5c18d934ef7e3efe6e369e1
1,524
py
Python
tests/test_load_multiple.py
fool65c/jupytext
4b55d2e6ccc995c04679de0863234c60c3741a69
[ "MIT" ]
1
2019-05-06T07:39:15.000Z
2019-05-06T07:39:15.000Z
tests/test_load_multiple.py
royalosyin/jupytext
72aa6c4968da714323fbd7a7c548ee4b1274c946
[ "MIT" ]
null
null
null
tests/test_load_multiple.py
royalosyin/jupytext
72aa6c4968da714323fbd7a7c548ee4b1274c946
[ "MIT" ]
null
null
null
import pytest import mock from tornado.web import HTTPError from nbformat.v4.nbbase import new_notebook import jupytext def test_combine_same_version_ok(tmpdir): tmp_ipynb = 'notebook.ipynb' tmp_nbpy = 'notebook.py' with open(str(tmpdir.join(tmp_nbpy)), 'w') as fp: fp.write("""# --- # jupyter: # ...
24.983607
74
0.662073
7480b97b65ca2961938fefea46019b2064ae520e
4,116
py
Python
app/util/httprunner/built_in.py
wuqundong520/ApiTestManage
ad6afcbb4876e4f9183ec9027009a8f027b41783
[ "Apache-2.0" ]
318
2018-07-06T08:47:52.000Z
2022-03-29T08:50:29.000Z
app/util/httprunner/built_in.py
wuqundong520/ApiTestManage
ad6afcbb4876e4f9183ec9027009a8f027b41783
[ "Apache-2.0" ]
6
2019-07-25T02:56:57.000Z
2021-01-25T08:31:30.000Z
app/util/httprunner/built_in.py
wuqundong520/ApiTestManage
ad6afcbb4876e4f9183ec9027009a8f027b41783
[ "Apache-2.0" ]
145
2018-07-06T14:00:15.000Z
2022-02-23T07:20:18.000Z
# encoding: utf-8 """ Built-in dependent functions used in YAML/JSON testcases. """ import datetime import os import random import re import string import time from .compat import basestring, builtin_str, integer_types from .exceptions import ParamsError from requests_toolbelt import MultipartEncoder """ built-in f...
24.945455
84
0.730807
7480f78804b6a9ce7de3c8fe1cb68fcc77ace12e
8,181
py
Python
splinedic/fileIO.py
stpotter16/splineDIC
d61f9615699aade74e14f56f3c9ede505d86e39f
[ "MIT" ]
null
null
null
splinedic/fileIO.py
stpotter16/splineDIC
d61f9615699aade74e14f56f3c9ede505d86e39f
[ "MIT" ]
null
null
null
splinedic/fileIO.py
stpotter16/splineDIC
d61f9615699aade74e14f56f3c9ede505d86e39f
[ "MIT" ]
1
2020-08-29T22:17:26.000Z
2020-08-29T22:17:26.000Z
""" .. module:: fileIO :platform: Unix, Windows :synopsis: Methods for reading and writing to files (image data, strain results) .. moduleauthor:: Sam Potter <spotter1642@gmail.com> """ from . import np from . import sio from . import os from . import cv2 from . import cm from . import utilities from . import...
32.335968
115
0.652365
74810db10664ef94b418265ce3affd95a8e16704
78,398
py
Python
Bio/SeqIO/QualityIO.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
null
null
null
Bio/SeqIO/QualityIO.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
null
null
null
Bio/SeqIO/QualityIO.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
1
2019-03-14T18:59:30.000Z
2019-03-14T18:59:30.000Z
# Copyright 2009-2017 by Peter Cock. All rights reserved. # # This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agreement" or the "BSD 3-Clause License". # Please see the LICENSE file that should have been included as part of this # package. """Bio.SeqIO support fo...
41.024594
178
0.662708
748155d863d5026636b77d51d1844c41f447be77
4,697
py
Python
sdk/cosmos/azure-cosmos/azure/cosmos/_execution_context/query_execution_info.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/cosmos/azure-cosmos/azure/cosmos/_execution_context/query_execution_info.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/cosmos/azure-cosmos/azure/cosmos/_execution_context/query_execution_info.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# The MIT License (MIT) # Copyright (c) 2014 Microsoft Corporation # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy...
35.854962
107
0.69555
7481720fe8214e965718c810e8aebbbc950479c2
8,164
py
Python
vyperlogix/classes/SmartObject.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/classes/SmartObject.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/classes/SmartObject.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
from vyperlogix.misc import ObjectTypeName from vyperlogix import misc from vyperlogix.hash import lists from vyperlogix.classes.CooperativeClass import Cooperative import sys import logging __copyright__ = """\ (c). Copyright 2008-2013, Vyper Logix Corp., All Rights Reserved. Published under Cr...
38.87619
266
0.594072
748184c9e936bb345a035baeecb069b9615d1030
1,914
py
Python
parsl/tests/test_bash_apps/test_memoize.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
null
null
null
parsl/tests/test_bash_apps/test_memoize.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
null
null
null
parsl/tests/test_bash_apps/test_memoize.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
null
null
null
import argparse import os import parsl from parsl.app.app import bash_app from parsl.data_provider.files import File from parsl.tests.configs.local_threads import config @bash_app(cache=True) def fail_on_presence(outputs=[]): return 'if [ -f {0} ] ; then exit 1 ; else touch {0}; fi'.format(outputs[0]) def test...
24.857143
80
0.626959
748185bec03f515a6c3e27ede49633378711f408
2,900
py
Python
core/urls.py
thehimel/lawyers
c66e0cd2ea43ee302977da03f294472e2a0b0dc7
[ "CC0-1.0" ]
2
2021-08-04T09:29:54.000Z
2022-03-04T03:49:45.000Z
core/urls.py
thehimel/lawyers
c66e0cd2ea43ee302977da03f294472e2a0b0dc7
[ "CC0-1.0" ]
null
null
null
core/urls.py
thehimel/lawyers
c66e0cd2ea43ee302977da03f294472e2a0b0dc7
[ "CC0-1.0" ]
null
null
null
from django.urls import path from core.views.common import (HomeView, dashboard, AppointmentCreateView, AppointmentListView, AppointmentCancelView) from core.views.lawyers import (LawyerDashboardView, LawyerProfileCreateView, ...
39.726027
79
0.65931
74819bfa0a4448ac400c2d595f082b3195360a55
3,227
py
Python
reliabilly/tasks/__init__.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2018-11-24T02:07:37.000Z
2018-11-24T02:07:37.000Z
reliabilly/tasks/__init__.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2019-01-23T07:12:30.000Z
2019-01-23T07:12:30.000Z
reliabilly/tasks/__init__.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2019-01-16T05:30:49.000Z
2019-01-16T05:30:49.000Z
from invoke import Collection, task from reliabilly.tasks import docker, build, data, tests, process, deploy, chat, k8s, publish from reliabilly.scaffold.generator import scaffold_up_service from reliabilly.settings import Constants, Settings ns = Collection() # pylint: disable=invalid-name ns.add_collection(Collect...
31.028846
92
0.760459
7481c520830897a58bf7c2fd139b324790b74a21
25,984
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.764706
261
0.690309
74820146d11bb21aed11feca9304fded3c4829a7
4,867
py
Python
devito/ir/iet/utils.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
2
2019-04-05T20:52:23.000Z
2019-11-03T21:36:53.000Z
devito/ir/iet/utils.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
31
2020-05-19T15:08:19.000Z
2022-03-21T13:01:38.000Z
devito/ir/iet/utils.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
2
2018-11-15T12:03:48.000Z
2018-11-15T13:16:19.000Z
from collections import OrderedDict from devito.ir.iet import (Iteration, List, IterationTree, FindSections, FindSymbols, FindNodes, Section, Expression) from devito.symbolics import Literal, Macro from devito.tools import flatten, ReducerMap from devito.types import Array, LocalObject __al...
31
86
0.602424
7482130075525a844d3c01c29b6c178db20d0df3
3,020
py
Python
tests/test_links.py
joernheissler/httplink
34253f1c97e662a157c0b959f017ff57e21ab219
[ "MIT" ]
5
2019-06-19T15:19:04.000Z
2021-12-30T16:16:22.000Z
tests/test_links.py
joernheissler/httplink
34253f1c97e662a157c0b959f017ff57e21ab219
[ "MIT" ]
3
2019-06-19T15:20:37.000Z
2020-12-13T08:11:06.000Z
tests/test_links.py
joernheissler/httplink
34253f1c97e662a157c0b959f017ff57e21ab219
[ "MIT" ]
2
2019-06-19T15:21:18.000Z
2020-12-11T16:47:12.000Z
""" Tests """ import pytest from httplink import parse_link_header, unescape def test_unescape() -> None: """ Test unescape function. """ assert unescape("") == "" assert unescape("foo") == "foo" assert unescape(r"\r\n") == "rn" assert unescape(r"foo\\b\ar") == r"foo\bar" with pytest...
34.712644
106
0.608609
748229c87d6c90334501a5ce8f252f2ee73e32fb
4,978
py
Python
tests/test_schema.py
rialtic-community/insight-engine-schema-python
e37c730e4043711233d71762b01556990af51f49
[ "BSD-2-Clause" ]
null
null
null
tests/test_schema.py
rialtic-community/insight-engine-schema-python
e37c730e4043711233d71762b01556990af51f49
[ "BSD-2-Clause" ]
6
2021-08-20T18:14:47.000Z
2022-03-10T00:26:25.000Z
tests/test_schema.py
rialtic-community/insight-engine-schema-python
e37c730e4043711233d71762b01556990af51f49
[ "BSD-2-Clause" ]
1
2021-08-20T19:44:57.000Z
2021-08-20T19:44:57.000Z
import json from typing import cast, List from fhir.resources.claim import Claim from fhir.resources.claim import ClaimItem from fhir.resources.address import Address from fhir.resources.organization import Organization from schema.insight_engine_response import InsightEngineResponse, Insight, InsightType, Trace def...
31.506329
116
0.653274
748239b3ea839a1e8fb71e137b707fd31f718fe6
6,395
py
Python
genomeview/genomeview.py
ilevantis/genomeview
c1ac797642b86f8f411f75f5de68c4a9e6519078
[ "MIT" ]
112
2018-06-26T16:52:46.000Z
2022-03-25T06:00:32.000Z
genomeview/genomeview.py
fomightez/genomeview-binder
ba0fe634422953b096cbf8b78226d4390b3f8ecf
[ "MIT" ]
22
2017-11-20T23:50:42.000Z
2021-01-31T15:56:02.000Z
genomeview/genomeview.py
fomightez/genomeview-binder
ba0fe634422953b096cbf8b78226d4390b3f8ecf
[ "MIT" ]
15
2018-05-14T15:56:28.000Z
2022-01-07T14:48:40.000Z
import collections from genomeview.svg import Renderer, SVG class Document: header = """<svg version="1.1" baseProfile="full" width="{width}" height="{height}" xmlns="http://www.w3.org/2000/svg">""" footer = """</svg>""" def __init__(self, width): self.elements = [] self.width =...
28.936652
134
0.582174
748280d8ab9b366ae2ac5d1a1bf65ac09b5b650d
3,390
py
Python
tests/regressiontests/admin_inlines/models.py
jezdez-archive/django-old
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
1
2019-06-13T16:18:27.000Z
2019-06-13T16:18:27.000Z
tests/regressiontests/admin_inlines/models.py
sirmmo/rango
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/admin_inlines/models.py
sirmmo/rango
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
1
2020-07-15T05:01:00.000Z
2020-07-15T05:01:00.000Z
""" Testing of admin inline formsets. """ from django.db import models from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes import generic class Parent(models.Model): name = models.CharField(max_length=50) def __unicode__(self): return self.name class Teacher...
24.388489
91
0.734513
7482b511b7074c61e46895ad2b32afbb2bc7ab80
632
py
Python
string/171_excel_sheet_column_number.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
string/171_excel_sheet_column_number.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
string/171_excel_sheet_column_number.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
2
2020-02-07T20:49:02.000Z
2020-02-11T06:01:55.000Z
class Solution(object): def titleToNumber(self, s): """ :type s: str :rtype: int """ # if not s: # return 0 l = list(s) ans = 0 for c in l: ans = (ord(c) - ord('A') + 1) + ans * 26 return ans def titleToNumber2(s): ...
23.407407
59
0.40981
7482cbb8c5ab76899df554ab42f5e5e630a7683a
10,049
py
Python
MachineLearning/TensorFlow/image-clssifier/tool/tfrecord.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
58
2019-03-03T04:42:23.000Z
2022-01-13T04:36:31.000Z
MachineLearning/TensorFlow/image-clssifier/tool/tfrecord.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
MachineLearning/TensorFlow/image-clssifier/tool/tfrecord.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
# coding:utf-8 # 2019-1-10 # tf-record tool from __future__ import absolute_import from __future__ import division from __future__ import print_function from datetime import datetime import os import random import sys import threading import numpy as np import tensorflow as tf import logging __all__ = ['main'] d...
30.451515
194
0.586626
7482d9aa2a196591649ae24d146bc5e1aa76a31c
8,196
py
Python
pyciderevalcap/ciderD/ciderD_scorer.py
Amritds/cider
f2d38917187b9b8a116751c58812df721725e001
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pyciderevalcap/ciderD/ciderD_scorer.py
Amritds/cider
f2d38917187b9b8a116751c58812df721725e001
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pyciderevalcap/ciderD/ciderD_scorer.py
Amritds/cider
f2d38917187b9b8a116751c58812df721725e001
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#!/usr/bin/env python # Tsung-Yi Lin <tl483@cornell.edu> # Ramakrishna Vedantam <vrama91@vt.edu> import copy from collections import defaultdict import numpy as np import pdb import math import pickle import os cider_val_freq = pickle.load(open(os.path.join('data', 'coco-val-df' + '.p'),'r')) def precook(s, n=4, out...
39.980488
116
0.5898
7482fbea7c4282859fda2a2ffafd8877177d811a
4,248
bzl
Python
go/go_differential_privacy_deps.bzl
Jolly608090/differential-privacy
74d5be96d4abe6820ef4838c00a1b78c72ae01af
[ "Apache-2.0" ]
1
2022-03-02T20:02:34.000Z
2022-03-02T20:02:34.000Z
go/go_differential_privacy_deps.bzl
fbalicchia/differential-privacy
099080e49c4c047802d785bc818898c0caf84d45
[ "Apache-2.0" ]
null
null
null
go/go_differential_privacy_deps.bzl
fbalicchia/differential-privacy
099080e49c4c047802d785bc818898c0caf84d45
[ "Apache-2.0" ]
null
null
null
# # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
32.427481
100
0.653955
748301cd4090d47bffc21b99d2166d28eaae60f8
6,739
py
Python
src/main/python/programmingtheiot/cda/app/DeviceDataManager.py
Aditya-NEU/testconstrained
da190e33669328ab236f7c7a0c87f651fc0f5ec5
[ "MIT" ]
null
null
null
src/main/python/programmingtheiot/cda/app/DeviceDataManager.py
Aditya-NEU/testconstrained
da190e33669328ab236f7c7a0c87f651fc0f5ec5
[ "MIT" ]
null
null
null
src/main/python/programmingtheiot/cda/app/DeviceDataManager.py
Aditya-NEU/testconstrained
da190e33669328ab236f7c7a0c87f651fc0f5ec5
[ "MIT" ]
null
null
null
##### # # This class is part of the Programming the Internet of Things project. # # It is provided as a simple shell to guide the student and assist with # implementation for the Programming the Internet of Things exercises, # and designed to be modified by the student as needed. # import logging from programmingth...
44.629139
151
0.802938
748310c67cd324418219879edb7f5121a72b2b64
446
py
Python
jagrmi_scrapping/tutorial/tutorial/items.py
Jagrmi-C/jagrmitest
7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96
[ "MIT" ]
null
null
null
jagrmi_scrapping/tutorial/tutorial/items.py
Jagrmi-C/jagrmitest
7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96
[ "MIT" ]
null
null
null
jagrmi_scrapping/tutorial/tutorial/items.py
Jagrmi-C/jagrmitest
7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy class TutorialItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass class Product(scrapy.Item): ...
20.272727
52
0.679372
74835df4ac71c3017f499de2fb1bc2b4473f1413
1,139
py
Python
run4v/tests/test_jobs.py
alejandrogallo/run4v
678950608979fad8bee455f70c18278c6ee508ae
[ "MIT" ]
null
null
null
run4v/tests/test_jobs.py
alejandrogallo/run4v
678950608979fad8bee455f70c18278c6ee508ae
[ "MIT" ]
null
null
null
run4v/tests/test_jobs.py
alejandrogallo/run4v
678950608979fad8bee455f70c18278c6ee508ae
[ "MIT" ]
null
null
null
from common import * import unittest import run4v THIS_FOLDER = os.path.split(__file__)[0] class TestGeneralSingleJob(unittest.TestCase): def makeDummyFile(self, name, path=os.curdir): filePath = os.path.join(path,name) f = open(filePath,"w+") f.close() self.dummyFiles.append(...
27.780488
119
0.6295
748367026df2ddcc353d246c56c03cc83c681a80
267
py
Python
formatml/pipelines/codrep/__init__.py
src-d/formatml
f052313391a5a2ca47af7859520f968c423024f1
[ "Apache-2.0" ]
2
2019-06-07T16:30:51.000Z
2019-10-09T10:10:17.000Z
formatml/pipelines/codrep/__init__.py
src-d/formatml
f052313391a5a2ca47af7859520f968c423024f1
[ "Apache-2.0" ]
1
2019-07-02T12:55:10.000Z
2019-07-02T12:55:10.000Z
formatml/pipelines/codrep/__init__.py
src-d/formatml
f052313391a5a2ca47af7859520f968c423024f1
[ "Apache-2.0" ]
3
2019-05-29T13:09:18.000Z
2021-01-28T11:35:01.000Z
import formatml.pipelines.codrep.index # noqa: F401 import formatml.pipelines.codrep.parse # noqa: F401 import formatml.pipelines.codrep.run # noqa: F401 import formatml.pipelines.codrep.tensorize # noqa: F401 import formatml.pipelines.codrep.train # noqa: F401
44.5
56
0.794007
74837d00b3adab562eaf83846daa9234ed075b21
5,288
py
Python
ingen/bundles.py
dianagudu/inputgen
161ccb4497c3ab7904bad4a89973769cd6d2b3e4
[ "MIT" ]
1
2020-03-06T00:40:34.000Z
2020-03-06T00:40:34.000Z
ingen/bundles.py
dianagudu/inputgen
161ccb4497c3ab7904bad4a89973769cd6d2b3e4
[ "MIT" ]
null
null
null
ingen/bundles.py
dianagudu/inputgen
161ccb4497c3ab7904bad4a89973769cd6d2b3e4
[ "MIT" ]
null
null
null
import numpy as np import datetime from time import time from .binning import Binning from .binning import Binning_Types from .helper import objectview from .preprocessors import DataSource class BundleGenerator(): def __init__(self, model, binning): self.__model = model self.__binning = binning...
37.503546
93
0.576967
74839e7afdfe504f94d1c3679e2ea64660c0ff32
54
py
Python
src/__init__.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
src/__init__.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
src/__init__.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
from src import data_curation from src import modeling
27
29
0.87037
74839f810783f1bca41baec0d61d03ff1cdd2d49
711
py
Python
src/tfg_webapp/forms.py
franloza/TFG_Webapp
64bbec0276c92ad625b2f6aa8d8306f60a668b64
[ "MIT" ]
null
null
null
src/tfg_webapp/forms.py
franloza/TFG_Webapp
64bbec0276c92ad625b2f6aa8d8306f60a668b64
[ "MIT" ]
6
2020-02-12T03:22:33.000Z
2021-12-13T20:35:08.000Z
src/tfg_webapp/forms.py
franloza/TFG_Webapp
64bbec0276c92ad625b2f6aa8d8306f60a668b64
[ "MIT" ]
null
null
null
from django import forms from multiselectfield import MultiSelectFormField from tfg_webapp.models import DataFile, ReportSettings class DataFileForm(forms.ModelForm): class Meta: model = DataFile fields = ('data_file',) labels = { 'data_file': '' } class ColumnsForm(...
26.333333
105
0.662447
7483f48a9c844c21b160da1fd4d829caf60ac425
3,199
py
Python
back/infolica/__init__.py
rufener/infolica
c50acc89dfe9a677a4e50defba11c7567c7b9cb5
[ "MIT" ]
null
null
null
back/infolica/__init__.py
rufener/infolica
c50acc89dfe9a677a4e50defba11c7567c7b9cb5
[ "MIT" ]
null
null
null
back/infolica/__init__.py
rufener/infolica
c50acc89dfe9a677a4e50defba11c7567c7b9cb5
[ "MIT" ]
null
null
null
from pyramid.config import Configurator from pyramid.events import NewRequest from papyrus.renderers import GeoJSON #Authentification from pyramid_ldap3 import ( get_ldap_connector, groupfinder, ) from pyramid.authentication import AuthTktAuthenticationPolicy from pyramid.authorization import ACLAuthorization...
39.012195
121
0.617068
74840205516f278cd7a5c2b9691fe5e47f737810
2,003
py
Python
native/bitcoin/tests/test_base58.py
pcsubirachs/ptpybtc
eb1571547c449fb5d7454a684140f67b871b7c04
[ "MIT" ]
null
null
null
native/bitcoin/tests/test_base58.py
pcsubirachs/ptpybtc
eb1571547c449fb5d7454a684140f67b871b7c04
[ "MIT" ]
null
null
null
native/bitcoin/tests/test_base58.py
pcsubirachs/ptpybtc
eb1571547c449fb5d7454a684140f67b871b7c04
[ "MIT" ]
null
null
null
# Copyright (C) 2013-2014 The python-bitcoinlib developers # # This file is part of python-bitcoinlib. # # It is subject to the license terms in the LICENSE file found in the top-level # directory of this distribution. # # No part of python-bitcoinlib, including this file, may be copied, modified, # propagated, or dist...
34.534483
105
0.67349
74840ab8eba29961d9f10c7be3a5710b4ab1edea
3,832
py
Python
dploy/tasks/django.py
h3/fabric-contrib-dploy
82e96385a46d07938d3e079fc502fca7d433db4b
[ "MIT" ]
2
2018-03-21T17:45:08.000Z
2022-03-07T20:55:39.000Z
dploy/tasks/django.py
h3/fabric-contrib-dploy
82e96385a46d07938d3e079fc502fca7d433db4b
[ "MIT" ]
null
null
null
dploy/tasks/django.py
h3/fabric-contrib-dploy
82e96385a46d07938d3e079fc502fca7d433db4b
[ "MIT" ]
2
2018-03-09T09:11:43.000Z
2018-06-20T09:31:34.000Z
import os import sys from fabric.colors import cyan, red, yellow from fabric.api import task, env, sudo, get, hide, execute from dploy.context import ctx, get_project_dir from dploy.commands import manage as django_manage from dploy.utils import ( FabricException, version_supports_migrations, select_template, ...
30.903226
79
0.643267
74841d65916a197a168919c750a5c13561dce1f6
820
py
Python
tests/utils.py
stryng/python-cloudservers
a12d8b424d295b17497cd7b86c506d799b9b2e41
[ "BSD-3-Clause" ]
1
2021-04-08T10:13:32.000Z
2021-04-08T10:13:32.000Z
tests/utils.py
stryng/python-cloudservers
a12d8b424d295b17497cd7b86c506d799b9b2e41
[ "BSD-3-Clause" ]
null
null
null
tests/utils.py
stryng/python-cloudservers
a12d8b424d295b17497cd7b86c506d799b9b2e41
[ "BSD-3-Clause" ]
null
null
null
from nose.tools import ok_ def fail(msg): raise AssertionError(msg) def assert_in(thing, seq, msg=None): msg = msg or "'%s' not found in %s" % (thing, seq) ok_(thing in seq, msg) def assert_not_in(thing, seq, msg=None): msg = msg or "unexpected '%s' found in %s" % (thing, seq) ok_(thing not i...
34.166667
77
0.637805
748444546f74d1877d436466978158dab03bdffe
68
py
Python
pyUnderLX/__init__.py
dpjrodrigues/pyUnderLX
3d60e29bb2c2a9435c8086a8f532e57a5e9589e4
[ "MIT" ]
null
null
null
pyUnderLX/__init__.py
dpjrodrigues/pyUnderLX
3d60e29bb2c2a9435c8086a8f532e57a5e9589e4
[ "MIT" ]
null
null
null
pyUnderLX/__init__.py
dpjrodrigues/pyUnderLX
3d60e29bb2c2a9435c8086a8f532e57a5e9589e4
[ "MIT" ]
null
null
null
from .occurrences import * from .api import * from .consts import *
17
26
0.735294
748444f50d73b36894986c9b916ac77ec2390a2c
86
py
Python
yamkix/__init__.py
looztra/yamkix
1a7f0fcba1bbce723da322d487f768acde23bf06
[ "Apache-2.0" ]
5
2017-10-30T09:47:30.000Z
2022-02-16T17:42:23.000Z
yamkix/__init__.py
looztra/yamkix
1a7f0fcba1bbce723da322d487f768acde23bf06
[ "Apache-2.0" ]
40
2019-02-25T08:46:32.000Z
2021-04-27T12:56:46.000Z
yamkix/__init__.py
looztra/yamkix
1a7f0fcba1bbce723da322d487f768acde23bf06
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for yamkix.""" __version__ = "0.9.1rc2"
17.2
35
0.593023
7484481eac06a0b48b85885cd7525174789c0947
2,021
py
Python
metrics.py
Amin-T/RD_Topic_Modeling
27dd7998275325accbd342d92a0a668930eb4ad4
[ "MIT" ]
1
2022-01-11T10:27:05.000Z
2022-01-11T10:27:05.000Z
metrics.py
Amin-T/RD_Topic_Modeling
27dd7998275325accbd342d92a0a668930eb4ad4
[ "MIT" ]
null
null
null
metrics.py
Amin-T/RD_Topic_Modeling
27dd7998275325accbd342d92a0a668930eb4ad4
[ "MIT" ]
null
null
null
from functools import partial from multiprocessing import Pool, freeze_support import numpy as np from time import gmtime, strftime def get_document_frequency(data, wi, wj=None): if wj is None: D_wi = 0 for document in data: # FIXME: 'if' for original article's code, 'else' for updated ...
30.621212
80
0.534389
748466ed58b3c2866b30d0973dccee318a156ec6
1,679
py
Python
build/plugins/scarab_cant_clash.py
r1nadeg/04_catboost
6755bbbd1496540b92ded57eea1974f64bef87c5
[ "Apache-2.0" ]
null
null
null
build/plugins/scarab_cant_clash.py
r1nadeg/04_catboost
6755bbbd1496540b92ded57eea1974f64bef87c5
[ "Apache-2.0" ]
null
null
null
build/plugins/scarab_cant_clash.py
r1nadeg/04_catboost
6755bbbd1496540b92ded57eea1974f64bef87c5
[ "Apache-2.0" ]
1
2018-08-06T14:13:12.000Z
2018-08-06T14:13:12.000Z
import _common as common def onacceleo(unit, *args): flat, kv = common.sort_by_keywords( {'XSD': -1, 'MTL': -1, 'MTL_ROOT': 1, 'MTL_EXTENSION': -1, 'LANG': -1, 'OUT': -1, 'OUT_NOAUTO': -1, 'OUTPUT_INCLUDES': -1, 'DEBUG': 0}, args ) try: mtlroot = kv['MTL_ROOT'][0] except Excep...
27.080645
143
0.537225
748497886de956d33c5810b352827b2035f49589
3,985
py
Python
alipay/aop/api/request/AlipayOverseasTaxNeworderCreateRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayOverseasTaxNeworderCreateRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayOverseasTaxNeworderCreateRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOverseasTaxNeworderCreateModel import AlipayOverseasTaxNeworderCreateModel class AlipayOverseasTaxNeworderCreateRequest(object...
27.482759
148
0.645922
7484c7bf2854bdcd5af676089006b52ee52d56cd
28,045
py
Python
django/template/defaultfilters.py
jezdez-archive/django-old
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
1
2019-06-13T16:18:27.000Z
2019-06-13T16:18:27.000Z
django/template/defaultfilters.py
sirmmo/rango
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
null
null
null
django/template/defaultfilters.py
sirmmo/rango
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
null
null
null
"""Default variable filters.""" import re import random as random_module import unicodedata from decimal import Decimal, InvalidOperation, ROUND_HALF_UP from functools import wraps from pprint import pformat from django.template.base import Variable, Library from django.conf import settings from django.utils import f...
31.689266
97
0.620752
7484cc3170942b832e7a0be6c3b7e772d4ea16d2
4,905
py
Python
pyOCD/flash/flash_lpc1768.py
oliviermartin/pyOCD
87ca6b91477db7d458960504f2103dae9b7a319f
[ "Apache-2.0" ]
2
2019-07-18T06:51:27.000Z
2021-06-30T00:36:12.000Z
pyOCD/flash/flash_lpc1768.py
oliviermartin/pyOCD
87ca6b91477db7d458960504f2103dae9b7a319f
[ "Apache-2.0" ]
null
null
null
pyOCD/flash/flash_lpc1768.py
oliviermartin/pyOCD
87ca6b91477db7d458960504f2103dae9b7a319f
[ "Apache-2.0" ]
1
2017-07-20T20:47:18.000Z
2017-07-20T20:47:18.000Z
""" mbed CMSIS-DAP debugger Copyright (c) 2006-2015 ARM Limited Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable ...
54.5
127
0.639755
74851426605261b7167ce5ac3d5bdd1429c77228
2,680
py
Python
tests/dygraph/test_unstructured_prune_quant.py
1375207619/PaddleSlim
1a9376a8b68e2219db3e95dea900ef4003e72c36
[ "Apache-2.0" ]
1
2021-12-30T08:23:21.000Z
2021-12-30T08:23:21.000Z
tests/dygraph/test_unstructured_prune_quant.py
maxpark/PaddleSlim
f6b827fca5f3d9cc467426b8ef30e3a6d2b012b9
[ "Apache-2.0" ]
null
null
null
tests/dygraph/test_unstructured_prune_quant.py
maxpark/PaddleSlim
f6b827fca5f3d9cc467426b8ef30e3a6d2b012b9
[ "Apache-2.0" ]
null
null
null
import sys sys.path.append("../../") import unittest import paddle import numpy as np from paddleslim import UnstructuredPruner from paddle.vision.models import mobilenet_v1 import paddle.vision.transforms as T import paddle.fluid as fluid from paddle.static import InputSpec as Input import paddle.nn.functional as F ...
36.712329
77
0.625373
74853224900b3ebbb9b6d1a3dd6cedf67deebe45
15,401
py
Python
scripts/evaluate.py
ZurichNLP/segtest
38fa641d5cb7c06060ce04baa6d9ed53dfe957b7
[ "MIT" ]
7
2021-09-02T11:23:40.000Z
2022-02-01T21:14:07.000Z
scripts/evaluate.py
ZurichNLP/segtest
38fa641d5cb7c06060ce04baa6d9ed53dfe957b7
[ "MIT" ]
null
null
null
scripts/evaluate.py
ZurichNLP/segtest
38fa641d5cb7c06060ce04baa6d9ed53dfe957b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import re import argparse from typing import List, Dict, Tuple import string from collections import defaultdict TRANSLATOR = str.maketrans('', '', string.punctuation + '“' + '”' + "'") ALL_VOWELS = "AaEeIiOoUuÄäÜüÖö" # Order according to pattern pair frequency: surfac...
47.978193
334
0.579897
74858feaddc08cf68545b81c0763827f48972d85
6,298
py
Python
experiments/shikhar/corl2019/pointmass/pointmass_rig_state.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/shikhar/corl2019/pointmass/pointmass_rig_state.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/shikhar/corl2019/pointmass/pointmass_rig_state.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from experiments.murtaza.multiworld.skew_fit.reacher.generate_uniform_dataset import generate_uniform_dataset_reacher from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in from rlkit.launchers.launcher_util import run_experiment from rlkit.torch.grill.launcher i...
36.195402
120
0.573198
7485949d9d7a1364e8978d7719fbfc7657154d80
125
py
Python
app.py
conradsuuna/uac-computer-competency
40f8b165e5432ca22ab97838f424e26650a3d300
[ "MIT" ]
null
null
null
app.py
conradsuuna/uac-computer-competency
40f8b165e5432ca22ab97838f424e26650a3d300
[ "MIT" ]
null
null
null
app.py
conradsuuna/uac-computer-competency
40f8b165e5432ca22ab97838f424e26650a3d300
[ "MIT" ]
null
null
null
from app import create_app application = create_app() if __name__ == '__main__': application.run(debug=True,port=8899)
17.857143
41
0.744
7485b8ce50b7369e90ede08a96a0675dec245de5
2,094
py
Python
tofnet/annotations/segmentation.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
null
null
null
tofnet/annotations/segmentation.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
8
2021-02-02T23:07:37.000Z
2022-03-12T00:51:26.000Z
tofnet/annotations/segmentation.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
2
2020-10-01T08:23:24.000Z
2020-11-09T22:01:47.000Z
import os import cv2 import numpy as np from tofnet.utils import pointcloud from tofnet.utils.io import read_sample from scipy.interpolate import griddata import matplotlib.pyplot as plt from tofnet.pointcloud.utils import find_z def segment(sample): shape = sample["pcd"]["shape"][::-1] conf = sample["conf"] ...
29.083333
82
0.638491
7485c84c5c19559ce1418d249ec4324bd5089bc0
22,524
py
Python
salt/log/setup.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
1
2018-02-03T17:30:56.000Z
2018-02-03T17:30:56.000Z
salt/log/setup.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/log/setup.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` :copyright: © 2011-2013 by the SaltStack Team, see AUTHORS for more details. :license: Apache 2.0, see LICENSE for more details. salt.log.setup ~~~~~~~~~~~~~~ This is where Salt's logging gets set up. Th...
33.668161
80
0.629684
7485d3de03943ea61f14f22d0b6e66a273013a08
2,550
py
Python
tools/tests/tests_templatetags.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
2
2016-09-02T12:45:31.000Z
2018-02-10T10:18:11.000Z
tools/tests/tests_templatetags.py
Socialsquare/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
17
2020-03-24T15:58:05.000Z
2022-02-10T08:08:57.000Z
tools/tests/tests_templatetags.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
1
2018-01-05T08:02:18.000Z
2018-01-05T08:02:18.000Z
from django.test import TestCase from django.db.models import FileField from tools.templatetags.toolstags import css_filefield from tools.templatetags.partition_slice import partition, partition_horizontal class CssFileFieldTestCase(TestCase): def test_css_filefield_mp4(self): ff = FileField(name="somen...
31.875
78
0.598431
7485d52702746fa3001b187e689b5857929a16fa
239
py
Python
src/kmol/core/exceptions.py
elix-tech/kmol
f7fb610d0cbe958891ed15032bb301fb664e4e25
[ "MIT" ]
27
2021-11-18T12:12:38.000Z
2022-03-15T06:34:55.000Z
src/kmol/core/exceptions.py
elix-tech/kmol
f7fb610d0cbe958891ed15032bb301fb664e4e25
[ "MIT" ]
3
2022-01-25T05:19:54.000Z
2022-02-03T01:30:29.000Z
src/kmol/core/exceptions.py
elix-tech/kmol
f7fb610d0cbe958891ed15032bb301fb664e4e25
[ "MIT" ]
3
2022-02-08T16:12:14.000Z
2022-03-31T05:47:57.000Z
class CheckpointNotFound(ValueError): pass class ReflectionError(ModuleNotFoundError): pass class FeaturizationError(ValueError): pass class TransformerError(ValueError): pass class SplitError(ValueError): pass
12.578947
43
0.757322
7485f4fddfa7044db9e11741e6e25a29de124bb9
2,808
py
Python
datascience/weather_data/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
datascience/weather_data/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
datascience/weather_data/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
# -*- coding: utf-8 -*- class WeatherData(object): def __init__(self): # open and read the file weather_file = open("weather.dat") with weather_file as data: rows = [] # get all the rows and store them in a list for line in data.readlines(): ...
30.857143
96
0.580128
748660bfc0664c021338a6c7f982342e77d94da0
2,003
py
Python
profiles/models.py
YukaSadaoka/rest-api-profiles
56916a5cc8d51169f3a1159a12b4c87f6d2c1e6a
[ "MIT" ]
null
null
null
profiles/models.py
YukaSadaoka/rest-api-profiles
56916a5cc8d51169f3a1159a12b4c87f6d2c1e6a
[ "MIT" ]
null
null
null
profiles/models.py
YukaSadaoka/rest-api-profiles
56916a5cc8d51169f3a1159a12b4c87f6d2c1e6a
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.models import BaseUserManager from django.conf import settings class UserProfileManager(BaseUserManager): """Manager for user profiles""" def c...
28.211268
65
0.680479
7486621456bd90d5978af1bf7503c10e83cb1f03
3,455
py
Python
pybrake/metrics.py
mastak/pybrake
32968efbebea07580680f16228be818726c13933
[ "MIT" ]
36
2018-04-24T09:26:12.000Z
2022-02-17T13:44:41.000Z
pybrake/metrics.py
mastak/pybrake
32968efbebea07580680f16228be818726c13933
[ "MIT" ]
90
2018-03-06T15:13:53.000Z
2022-03-25T11:32:25.000Z
pybrake/metrics.py
mastak/pybrake
32968efbebea07580680f16228be818726c13933
[ "MIT" ]
21
2018-04-04T14:50:12.000Z
2022-03-23T05:48:51.000Z
import threading from contextlib import contextmanager import time as pytime from .utils import logger threadLocal = threading.local() FLUSH_PERIOD = 15 _METRIC_KEY = "_ab_metric" @contextmanager def activated_metric(metric): set_active(metric) yield set_active(None) def set_active(metric): seta...
24.856115
72
0.588712
74869eafc5f278e71224c21d2d782bffc6fe1ff5
6,190
py
Python
Lib/site-packages/kivy/tools/report.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
9
2016-09-03T07:20:01.000Z
2020-05-21T14:44:48.000Z
Lib/site-packages/kivy/tools/report.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
1
2017-05-30T20:45:15.000Z
2017-05-30T20:45:15.000Z
Lib/site-packages/kivy/tools/report.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
4
2016-09-10T15:27:54.000Z
2020-03-27T22:05:31.000Z
''' Report tool =========== This tool is a helper for users. It can be used to dump information for help during the debugging process. ''' import os import sys import platform as plf from time import ctime try: # PY3 from configparser import ConfigParser except ImportError: # PY2 from ConfigParser i...
26.340426
78
0.587561
7486b4105816e1abd37cdea7b747fedb38c9e59e
2,228
py
Python
torus/aggregates.py
sckevmit/torus
b815f259db856c5c73c87009fe93bbf6ad08f1ff
[ "BSD-3-Clause" ]
13
2015-02-23T22:45:24.000Z
2021-05-23T06:17:35.000Z
torus/aggregates.py
sckevmit/torus
b815f259db856c5c73c87009fe93bbf6ad08f1ff
[ "BSD-3-Clause" ]
null
null
null
torus/aggregates.py
sckevmit/torus
b815f259db856c5c73c87009fe93bbf6ad08f1ff
[ "BSD-3-Clause" ]
1
2017-02-25T10:14:16.000Z
2017-02-25T10:14:16.000Z
''' Copyright (c) 2013, Agora Games, LLC All rights reserved. https://github.com/agoragames/torus/blob/master/LICENSE.txt ''' import re STAR = '[a-zA-Z0-9_-]+' class Aggregates(object): ''' Implements the aggregating of stats through pattern matches. ''' def __init__(self, rules=[]): ''' Initialize...
23.452632
77
0.62298
7486b90e89606ef9875bacfae7d7d8a257747f55
726
py
Python
nvflare/fuel/common/excepts.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
155
2021-08-05T18:05:09.000Z
2022-03-27T15:32:56.000Z
nvflare/fuel/common/excepts.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
216
2021-12-01T06:07:12.000Z
2022-03-30T23:34:02.000Z
nvflare/fuel/common/excepts.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
44
2021-11-24T16:03:29.000Z
2022-03-24T23:28:39.000Z
# Copyright (c) 2021-2022, NVIDIA CORPORATION. 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 ...
33
74
0.742424
7486bb48dd68c9426861de4eef9c1b6afd9286f4
376
py
Python
src/pyvboxmanage/utils/exec_command.py
ndejong/pyvboxmanage
6cb49546782ae97f177e7035982b1dc86b8f61db
[ "BSD-2-Clause" ]
1
2020-12-28T02:19:35.000Z
2020-12-28T02:19:35.000Z
src/pyvboxmanage/utils/exec_command.py
ndejong/pyvboxmanage
6cb49546782ae97f177e7035982b1dc86b8f61db
[ "BSD-2-Clause" ]
null
null
null
src/pyvboxmanage/utils/exec_command.py
ndejong/pyvboxmanage
6cb49546782ae97f177e7035982b1dc86b8f61db
[ "BSD-2-Clause" ]
null
null
null
import subprocess from pyvboxmanage.exceptions.PyVBoxManageException import PyVBoxManageException def exec_command(command_line, timeout=10): try: sp = subprocess.run(command_line, shell=True, capture_output=True, timeout=timeout) except subprocess.TimeoutExpired as e: raise PyVBoxManageExcep...
28.923077
91
0.773936
7486c02bc007c616a8079df5cda6400a39e05b9f
5,259
py
Python
taskflow/tests/unit/test_progress.py
JonasMie/taskflow
942bb76d9cf69a87e7c78f0e231ce9b94e69bb37
[ "Apache-2.0" ]
299
2015-01-11T01:36:28.000Z
2022-03-11T08:56:27.000Z
taskflow/tests/unit/test_progress.py
JonasMie/taskflow
942bb76d9cf69a87e7c78f0e231ce9b94e69bb37
[ "Apache-2.0" ]
4
2015-02-06T11:12:58.000Z
2018-10-19T18:55:58.000Z
taskflow/tests/unit/test_progress.py
jimbobhickville/taskflow
6ea991ce94f5be46b7e4726b4c4f014e10407786
[ "Apache-2.0" ]
67
2015-01-11T14:34:24.000Z
2022-01-14T02:57:03.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2012 Yahoo! 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...
35.533784
78
0.62046
7486fd0ba4df6e285c10c335683dd8b70cf90bdc
1,422
py
Python
onmt/encoders/encoder.py
lbda1/OpenNMT-py-AMR-to-text
b59347246fb330feff4139b677014554e8b9aad0
[ "MIT" ]
26
2019-03-29T07:52:43.000Z
2021-12-29T02:41:31.000Z
onmt/encoders/encoder.py
lbda1/OpenNMT-py-AMR-to-text
b59347246fb330feff4139b677014554e8b9aad0
[ "MIT" ]
1
2020-02-15T10:31:58.000Z
2020-02-17T14:19:26.000Z
onmt/encoders/encoder.py
lbda1/OpenNMT-py-AMR-to-text
b59347246fb330feff4139b677014554e8b9aad0
[ "MIT" ]
5
2019-06-30T19:57:46.000Z
2021-04-01T07:56:53.000Z
"""Base class for encoders and generic multi encoders.""" from __future__ import division import torch.nn as nn from onmt.utils.misc import aeq class EncoderBase(nn.Module): """ Base encoder class. Specifies the interface used by different encoder types and required by :obj:`onmt.Models.NMTModel`. ...
24.947368
79
0.525316
748725891551489ca7bb3713035c32db5af54772
5,724
py
Python
tests/integration/modules/hosts.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2015-10-06T22:25:22.000Z
2015-10-06T22:25:22.000Z
tests/integration/modules/hosts.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
tests/integration/modules/hosts.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
''' Test the hosts module ''' # Import python libs import os import shutil # Import Salt libs import salt.utils import integration HFN = os.path.join(integration.TMP, 'hosts') class HostsModuleTest(integration.ModuleCase): ''' Test the hosts module ''' def __clean_hosts(self): ''' Cl...
31.450549
79
0.563417
748726684b78bc39e8c69e0b19e205ccb2c860b8
3,942
py
Python
alipay/aop/api/domain/AlipayDataAiserviceSmartpriceMerchanteffectQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayDataAiserviceSmartpriceMerchanteffectQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayDataAiserviceSmartpriceMerchanteffectQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayDataAiserviceSmartpriceMerchanteffectQueryModel(object): def __init__(self): self._app_version = None self._end_time = None self._merchant_id = None self._sc...
30.091603
75
0.591578
74874106c1af820b2083a3fb0135b263ca4b6e47
7,189
py
Python
ID3 implementation with pruning/ID3.py
syeehyn/Machine-Learning-in-Practice
97ce9f767fa1d291a03b3b39899965382b5e88cf
[ "MIT" ]
1
2019-08-07T02:34:22.000Z
2019-08-07T02:34:22.000Z
ID3 implementation with pruning/ID3.py
syeehyn/Machine-Learning-in-Practice
97ce9f767fa1d291a03b3b39899965382b5e88cf
[ "MIT" ]
null
null
null
ID3 implementation with pruning/ID3.py
syeehyn/Machine-Learning-in-Practice
97ce9f767fa1d291a03b3b39899965382b5e88cf
[ "MIT" ]
null
null
null
### Classifier ### class ID3(): '''Initialize ID3 Class''' class Node(): '''Tree Node''' def __init__(self, feature = None, threshold= None, samples = None, label = None): self.left = None self.right = None self.feature = feature self.threshold = t...
38.037037
115
0.538601
748773d951934437af455cd60ec1474d382dda2a
3,420
py
Python
scripts/export_csv_motor_data.py
ryanp543/agrobotarmcontrol
cf1bed8a2fb36e5d9c64039c20e3e4d6cea4a31c
[ "MIT" ]
null
null
null
scripts/export_csv_motor_data.py
ryanp543/agrobotarmcontrol
cf1bed8a2fb36e5d9c64039c20e3e4d6cea4a31c
[ "MIT" ]
null
null
null
scripts/export_csv_motor_data.py
ryanp543/agrobotarmcontrol
cf1bed8a2fb36e5d9c64039c20e3e4d6cea4a31c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import time import numpy as np import rospy import csv import os import matplotlib.pyplot as plt from std_msgs.msg import String from std_msgs.msg import Float32 from agrobot_arm_v2.msg import FloatList from struct import * PULLEY_RATIO = 1.56 # This function receives ...
30
126
0.654971